@dodopayments/better-auth 1.0.1 → 1.0.2

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/dist/index.d.ts CHANGED
@@ -1,629 +1,33 @@
1
- import * as better_auth from 'better-auth';
2
- import * as dodopayments_resources_payments_mjs from 'dodopayments/resources/payments.mjs';
3
- import * as dodopayments_resources_subscriptions_mjs from 'dodopayments/resources/subscriptions.mjs';
4
- import * as better_call from 'better-call';
5
- import * as zod from 'zod';
6
- import { z } from 'zod';
7
- import DodoPayments, { DodoPayments as DodoPayments$1 } from 'dodopayments';
8
- import { WebhookHandlerConfig } from '@dodopayments/core/webhook';
9
-
10
- interface CheckoutOptions {
11
- /**
12
- * Optional list of slug -> productId mappings for easy slug checkouts
13
- */
14
- products?: Product[] | (() => Promise<Product[]>);
15
- /**
16
- * Checkout Success URL
17
- */
18
- successUrl?: string;
19
- /**
20
- * Only allow authenticated customers to checkout
21
- */
22
- authenticatedUsersOnly?: boolean;
23
- }
24
- declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: DodoPayments) => {
25
- checkout: {
26
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
27
- body: z.objectInputType<{
28
- product_id: z.ZodOptional<z.ZodString>;
29
- quantity: z.ZodOptional<z.ZodNumber>;
30
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
31
- product_id: z.ZodString;
32
- quantity: z.ZodNumber;
33
- }, "strip", z.ZodTypeAny, {
34
- quantity: number;
35
- product_id: string;
36
- }, {
37
- quantity: number;
38
- product_id: string;
39
- }>, "many">>;
40
- billing: z.ZodObject<{
41
- city: z.ZodString;
42
- country: z.ZodString;
43
- state: z.ZodString;
44
- street: z.ZodString;
45
- zipcode: z.ZodString;
46
- }, "strip", z.ZodTypeAny, {
47
- country: string;
48
- city: string;
49
- state: string;
50
- street: string;
51
- zipcode: string;
52
- }, {
53
- country: string;
54
- city: string;
55
- state: string;
56
- street: string;
57
- zipcode: string;
58
- }>;
59
- customer: z.ZodObject<{
60
- customer_id: z.ZodOptional<z.ZodString>;
61
- email: z.ZodOptional<z.ZodString>;
62
- name: z.ZodOptional<z.ZodString>;
63
- }, "strip", z.ZodTypeAny, {
64
- email?: string | undefined;
65
- customer_id?: string | undefined;
66
- name?: string | undefined;
67
- }, {
68
- email?: string | undefined;
69
- customer_id?: string | undefined;
70
- name?: string | undefined;
71
- }>;
72
- discount_id: z.ZodOptional<z.ZodString>;
73
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
- addon_id: z.ZodString;
75
- quantity: z.ZodNumber;
76
- }, "strip", z.ZodTypeAny, {
77
- quantity: number;
78
- addon_id: string;
79
- }, {
80
- quantity: number;
81
- addon_id: string;
82
- }>, "many">>;
83
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
84
- currency: z.ZodOptional<z.ZodString>;
85
- } & {
86
- slug: z.ZodOptional<z.ZodString>;
87
- referenceId: z.ZodOptional<z.ZodString>;
88
- }, z.ZodUnknown, "strip">;
89
- } & {
90
- method?: "POST" | undefined;
91
- } & {
92
- query?: Record<string, any> | undefined;
93
- } & {
94
- params?: Record<string, any>;
95
- } & {
96
- request: Request;
97
- } & {
98
- headers?: HeadersInit;
99
- } & {
100
- asResponse?: boolean;
101
- returnHeaders?: boolean;
102
- use?: better_call.Middleware[];
103
- path?: string;
104
- } & {
105
- asResponse?: AsResponse | undefined;
106
- returnHeaders?: ReturnHeaders | undefined;
107
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
108
- headers: Headers;
109
- response: {
110
- url: string;
111
- redirect: boolean;
112
- };
113
- } : {
114
- url: string;
115
- redirect: boolean;
116
- }>;
117
- options: {
118
- method: "POST";
119
- body: z.ZodObject<{
120
- product_id: z.ZodOptional<z.ZodString>;
121
- quantity: z.ZodOptional<z.ZodNumber>;
122
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
123
- product_id: z.ZodString;
124
- quantity: z.ZodNumber;
125
- }, "strip", z.ZodTypeAny, {
126
- quantity: number;
127
- product_id: string;
128
- }, {
129
- quantity: number;
130
- product_id: string;
131
- }>, "many">>;
132
- billing: z.ZodObject<{
133
- city: z.ZodString;
134
- country: z.ZodString;
135
- state: z.ZodString;
136
- street: z.ZodString;
137
- zipcode: z.ZodString;
138
- }, "strip", z.ZodTypeAny, {
139
- country: string;
140
- city: string;
141
- state: string;
142
- street: string;
143
- zipcode: string;
144
- }, {
145
- country: string;
146
- city: string;
147
- state: string;
148
- street: string;
149
- zipcode: string;
150
- }>;
151
- customer: z.ZodObject<{
152
- customer_id: z.ZodOptional<z.ZodString>;
153
- email: z.ZodOptional<z.ZodString>;
154
- name: z.ZodOptional<z.ZodString>;
155
- }, "strip", z.ZodTypeAny, {
156
- email?: string | undefined;
157
- customer_id?: string | undefined;
158
- name?: string | undefined;
159
- }, {
160
- email?: string | undefined;
161
- customer_id?: string | undefined;
162
- name?: string | undefined;
163
- }>;
164
- discount_id: z.ZodOptional<z.ZodString>;
165
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
166
- addon_id: z.ZodString;
167
- quantity: z.ZodNumber;
168
- }, "strip", z.ZodTypeAny, {
169
- quantity: number;
170
- addon_id: string;
171
- }, {
172
- quantity: number;
173
- addon_id: string;
174
- }>, "many">>;
175
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
176
- currency: z.ZodOptional<z.ZodString>;
177
- } & {
178
- slug: z.ZodOptional<z.ZodString>;
179
- referenceId: z.ZodOptional<z.ZodString>;
180
- }, "strip", z.ZodUnknown, z.objectOutputType<{
181
- product_id: z.ZodOptional<z.ZodString>;
182
- quantity: z.ZodOptional<z.ZodNumber>;
183
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
- product_id: z.ZodString;
185
- quantity: z.ZodNumber;
186
- }, "strip", z.ZodTypeAny, {
187
- quantity: number;
188
- product_id: string;
189
- }, {
190
- quantity: number;
191
- product_id: string;
192
- }>, "many">>;
193
- billing: z.ZodObject<{
194
- city: z.ZodString;
195
- country: z.ZodString;
196
- state: z.ZodString;
197
- street: z.ZodString;
198
- zipcode: z.ZodString;
199
- }, "strip", z.ZodTypeAny, {
200
- country: string;
201
- city: string;
202
- state: string;
203
- street: string;
204
- zipcode: string;
205
- }, {
206
- country: string;
207
- city: string;
208
- state: string;
209
- street: string;
210
- zipcode: string;
211
- }>;
212
- customer: z.ZodObject<{
213
- customer_id: z.ZodOptional<z.ZodString>;
214
- email: z.ZodOptional<z.ZodString>;
215
- name: z.ZodOptional<z.ZodString>;
216
- }, "strip", z.ZodTypeAny, {
217
- email?: string | undefined;
218
- customer_id?: string | undefined;
219
- name?: string | undefined;
220
- }, {
221
- email?: string | undefined;
222
- customer_id?: string | undefined;
223
- name?: string | undefined;
224
- }>;
225
- discount_id: z.ZodOptional<z.ZodString>;
226
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
227
- addon_id: z.ZodString;
228
- quantity: z.ZodNumber;
229
- }, "strip", z.ZodTypeAny, {
230
- quantity: number;
231
- addon_id: string;
232
- }, {
233
- quantity: number;
234
- addon_id: string;
235
- }>, "many">>;
236
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
237
- currency: z.ZodOptional<z.ZodString>;
238
- } & {
239
- slug: z.ZodOptional<z.ZodString>;
240
- referenceId: z.ZodOptional<z.ZodString>;
241
- }, z.ZodUnknown, "strip">, z.objectInputType<{
242
- product_id: z.ZodOptional<z.ZodString>;
243
- quantity: z.ZodOptional<z.ZodNumber>;
244
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
- product_id: z.ZodString;
246
- quantity: z.ZodNumber;
247
- }, "strip", z.ZodTypeAny, {
248
- quantity: number;
249
- product_id: string;
250
- }, {
251
- quantity: number;
252
- product_id: string;
253
- }>, "many">>;
254
- billing: z.ZodObject<{
255
- city: z.ZodString;
256
- country: z.ZodString;
257
- state: z.ZodString;
258
- street: z.ZodString;
259
- zipcode: z.ZodString;
260
- }, "strip", z.ZodTypeAny, {
261
- country: string;
262
- city: string;
263
- state: string;
264
- street: string;
265
- zipcode: string;
266
- }, {
267
- country: string;
268
- city: string;
269
- state: string;
270
- street: string;
271
- zipcode: string;
272
- }>;
273
- customer: z.ZodObject<{
274
- customer_id: z.ZodOptional<z.ZodString>;
275
- email: z.ZodOptional<z.ZodString>;
276
- name: z.ZodOptional<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
278
- email?: string | undefined;
279
- customer_id?: string | undefined;
280
- name?: string | undefined;
281
- }, {
282
- email?: string | undefined;
283
- customer_id?: string | undefined;
284
- name?: string | undefined;
285
- }>;
286
- discount_id: z.ZodOptional<z.ZodString>;
287
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
- addon_id: z.ZodString;
289
- quantity: z.ZodNumber;
290
- }, "strip", z.ZodTypeAny, {
291
- quantity: number;
292
- addon_id: string;
293
- }, {
294
- quantity: number;
295
- addon_id: string;
296
- }>, "many">>;
297
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
298
- currency: z.ZodOptional<z.ZodString>;
299
- } & {
300
- slug: z.ZodOptional<z.ZodString>;
301
- referenceId: z.ZodOptional<z.ZodString>;
302
- }, z.ZodUnknown, "strip">>;
303
- requireRequest: true;
304
- } & {
305
- use: any[];
306
- };
307
- path: "/dodopayments/checkout";
308
- };
309
- };
310
-
311
- declare const portal: () => (dodopayments: DodoPayments$1) => {
312
- portal: {
313
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0?: ({
314
- body?: undefined;
315
- } & {
316
- method?: "GET" | undefined;
317
- } & {
318
- query?: Record<string, any> | undefined;
319
- } & {
320
- params?: Record<string, any>;
321
- } & {
322
- request?: Request;
323
- } & {
324
- headers?: HeadersInit;
325
- } & {
326
- asResponse?: boolean;
327
- returnHeaders?: boolean;
328
- use?: better_call.Middleware[];
329
- path?: string;
330
- } & {
331
- asResponse?: AsResponse | undefined;
332
- returnHeaders?: ReturnHeaders | undefined;
333
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
334
- headers: Headers;
335
- response: {
336
- url: string;
337
- redirect: boolean;
338
- };
339
- } : {
340
- url: string;
341
- redirect: boolean;
342
- }>;
343
- options: {
344
- method: "GET";
345
- use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
346
- session: {
347
- session: Record<string, any> & {
348
- id: string;
349
- userId: string;
350
- expiresAt: Date;
351
- createdAt: Date;
352
- updatedAt: Date;
353
- token: string;
354
- ipAddress?: string | null | undefined;
355
- userAgent?: string | null | undefined;
356
- };
357
- user: Record<string, any> & {
358
- id: string;
359
- email: string;
360
- emailVerified: boolean;
361
- name: string;
362
- createdAt: Date;
363
- updatedAt: Date;
364
- image?: string | null | undefined;
365
- };
366
- };
367
- }>)[];
368
- } & {
369
- use: any[];
370
- };
371
- path: "/dodopayments/customer/portal";
372
- };
373
- subscriptions: {
374
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0?: ({
375
- body?: undefined;
376
- } & {
377
- method?: "GET" | undefined;
378
- } & {
379
- query?: {
380
- status?: "active" | "cancelled" | "on_hold" | "pending" | "paused" | "failed" | "expired" | undefined;
381
- page?: number | undefined;
382
- limit?: number | undefined;
383
- } | undefined;
384
- } & {
385
- params?: Record<string, any>;
386
- } & {
387
- request?: Request;
388
- } & {
389
- headers?: HeadersInit;
390
- } & {
391
- asResponse?: boolean;
392
- returnHeaders?: boolean;
393
- use?: better_call.Middleware[];
394
- path?: string;
395
- } & {
396
- asResponse?: AsResponse | undefined;
397
- returnHeaders?: ReturnHeaders | undefined;
398
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
399
- headers: Headers;
400
- response: {
401
- items: DodoPayments$1.Subscriptions.SubscriptionListResponse[];
402
- };
403
- } : {
404
- items: DodoPayments$1.Subscriptions.SubscriptionListResponse[];
405
- }>;
406
- options: {
407
- method: "GET";
408
- query: z.ZodOptional<z.ZodObject<{
409
- page: z.ZodOptional<z.ZodNumber>;
410
- limit: z.ZodOptional<z.ZodNumber>;
411
- status: z.ZodOptional<z.ZodEnum<["active", "cancelled", "on_hold", "pending", "paused", "failed", "expired"]>>;
412
- }, "strip", z.ZodTypeAny, {
413
- status?: "active" | "cancelled" | "on_hold" | "pending" | "paused" | "failed" | "expired" | undefined;
414
- page?: number | undefined;
415
- limit?: number | undefined;
416
- }, {
417
- status?: "active" | "cancelled" | "on_hold" | "pending" | "paused" | "failed" | "expired" | undefined;
418
- page?: number | undefined;
419
- limit?: number | undefined;
420
- }>>;
421
- use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
422
- session: {
423
- session: Record<string, any> & {
424
- id: string;
425
- userId: string;
426
- expiresAt: Date;
427
- createdAt: Date;
428
- updatedAt: Date;
429
- token: string;
430
- ipAddress?: string | null | undefined;
431
- userAgent?: string | null | undefined;
432
- };
433
- user: Record<string, any> & {
434
- id: string;
435
- email: string;
436
- emailVerified: boolean;
437
- name: string;
438
- createdAt: Date;
439
- updatedAt: Date;
440
- image?: string | null | undefined;
441
- };
442
- };
443
- }>)[];
444
- } & {
445
- use: any[];
446
- };
447
- path: "/dodopayments/customer/subscriptions/list";
448
- };
449
- payments: {
450
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0?: ({
451
- body?: undefined;
452
- } & {
453
- method?: "GET" | undefined;
454
- } & {
455
- query?: {
456
- status?: "cancelled" | "failed" | "succeeded" | "processing" | "requires_customer_action" | "requires_merchant_action" | "requires_payment_method" | "requires_confirmation" | "requires_capture" | "partially_captured" | "partially_captured_and_capturable" | undefined;
457
- page?: number | undefined;
458
- limit?: number | undefined;
459
- } | undefined;
460
- } & {
461
- params?: Record<string, any>;
462
- } & {
463
- request?: Request;
464
- } & {
465
- headers?: HeadersInit;
466
- } & {
467
- asResponse?: boolean;
468
- returnHeaders?: boolean;
469
- use?: better_call.Middleware[];
470
- path?: string;
471
- } & {
472
- asResponse?: AsResponse | undefined;
473
- returnHeaders?: ReturnHeaders | undefined;
474
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
475
- headers: Headers;
476
- response: {
477
- items: DodoPayments$1.Payments.PaymentListResponse[];
478
- };
479
- } : {
480
- items: DodoPayments$1.Payments.PaymentListResponse[];
481
- }>;
482
- options: {
483
- method: "GET";
484
- query: z.ZodOptional<z.ZodObject<{
485
- page: z.ZodOptional<z.ZodNumber>;
486
- limit: z.ZodOptional<z.ZodNumber>;
487
- status: z.ZodOptional<z.ZodEnum<["succeeded", "failed", "cancelled", "processing", "requires_customer_action", "requires_merchant_action", "requires_payment_method", "requires_confirmation", "requires_capture", "partially_captured", "partially_captured_and_capturable"]>>;
488
- }, "strip", z.ZodTypeAny, {
489
- status?: "cancelled" | "failed" | "succeeded" | "processing" | "requires_customer_action" | "requires_merchant_action" | "requires_payment_method" | "requires_confirmation" | "requires_capture" | "partially_captured" | "partially_captured_and_capturable" | undefined;
490
- page?: number | undefined;
491
- limit?: number | undefined;
492
- }, {
493
- status?: "cancelled" | "failed" | "succeeded" | "processing" | "requires_customer_action" | "requires_merchant_action" | "requires_payment_method" | "requires_confirmation" | "requires_capture" | "partially_captured" | "partially_captured_and_capturable" | undefined;
494
- page?: number | undefined;
495
- limit?: number | undefined;
496
- }>>;
497
- use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
498
- session: {
499
- session: Record<string, any> & {
500
- id: string;
501
- userId: string;
502
- expiresAt: Date;
503
- createdAt: Date;
504
- updatedAt: Date;
505
- token: string;
506
- ipAddress?: string | null | undefined;
507
- userAgent?: string | null | undefined;
508
- };
509
- user: Record<string, any> & {
510
- id: string;
511
- email: string;
512
- emailVerified: boolean;
513
- name: string;
514
- createdAt: Date;
515
- updatedAt: Date;
516
- image?: string | null | undefined;
517
- };
518
- };
519
- }>)[];
520
- } & {
521
- use: any[];
522
- };
523
- path: "/dodopayments/customer/payments/list";
524
- };
525
- };
526
-
527
- declare const webhooks: (options: WebhookHandlerConfig) => (_dodopayments: DodoPayments$1) => {
528
- dodopaymentsWebhooks: {
529
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0?: ({
530
- body?: undefined;
531
- } & {
532
- method?: "POST" | undefined;
533
- } & {
534
- query?: Record<string, any> | undefined;
535
- } & {
536
- params?: Record<string, any>;
537
- } & {
538
- request?: Request;
539
- } & {
540
- headers?: HeadersInit;
541
- } & {
542
- asResponse?: boolean;
543
- returnHeaders?: boolean;
544
- use?: better_call.Middleware[];
545
- path?: string;
546
- } & {
547
- asResponse?: AsResponse | undefined;
548
- returnHeaders?: ReturnHeaders | undefined;
549
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
550
- headers: Headers;
551
- response: {
552
- received: boolean;
553
- };
554
- } : {
555
- received: boolean;
556
- }>;
557
- options: {
558
- method: "POST";
559
- metadata: {
560
- isAction: boolean;
561
- };
562
- cloneRequest: true;
563
- } & {
564
- use: any[];
565
- };
566
- path: "/dodopayments/webhooks";
567
- };
568
- };
569
-
570
- type Product = {
571
- /**
572
- * Product Id from DodoPayments Product
573
- */
574
- productId: string;
575
- /**
576
- * Easily identifiable slug for the product
577
- */
578
- slug: string;
579
- };
580
- type DodoPaymentsPlugin = ReturnType<typeof checkout> | ReturnType<typeof portal> | ReturnType<typeof webhooks>;
581
- type DodoPaymentsPlugins = [DodoPaymentsPlugin, ...DodoPaymentsPlugin[]];
582
- interface DodoPaymentsOptions {
583
- /**
584
- * DodoPayments Client
585
- */
586
- client: DodoPayments$1;
587
- /**
588
- * Enable customer creation when a user signs up
589
- */
590
- createCustomerOnSignUp?: boolean;
591
- /**
592
- * Use DodoPayments plugins
593
- */
594
- use: DodoPaymentsPlugins;
595
- }
596
-
597
- declare const dodopaymentsClient: () => {
598
- id: "dodopayments-client";
599
- $InferServerPlugin: ReturnType<typeof dodopayments>;
600
- };
601
-
602
- declare const dodopayments: (options: DodoPaymentsOptions) => {
1
+ import type { DodoPaymentsOptions } from "./types";
2
+ export { dodopaymentsClient } from "./client";
3
+ export * from "./plugins/portal";
4
+ export * from "./plugins/checkout";
5
+ export * from "./plugins/webhooks";
6
+ export declare const dodopayments: (options: DodoPaymentsOptions) => {
603
7
  id: "dodopayments";
604
8
  endpoints: {
605
9
  checkout: {
606
10
  <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
607
- body: zod.objectInputType<{
608
- product_id: zod.ZodOptional<zod.ZodString>;
609
- quantity: zod.ZodOptional<zod.ZodNumber>;
610
- product_cart: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
611
- product_id: zod.ZodString;
612
- quantity: zod.ZodNumber;
613
- }, "strip", zod.ZodTypeAny, {
11
+ body: import("zod").objectInputType<{
12
+ product_id: import("zod").ZodOptional<import("zod").ZodString>;
13
+ quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
14
+ product_cart: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
15
+ product_id: import("zod").ZodString;
16
+ quantity: import("zod").ZodNumber;
17
+ }, "strip", import("zod").ZodTypeAny, {
614
18
  quantity: number;
615
19
  product_id: string;
616
20
  }, {
617
21
  quantity: number;
618
22
  product_id: string;
619
23
  }>, "many">>;
620
- billing: zod.ZodObject<{
621
- city: zod.ZodString;
622
- country: zod.ZodString;
623
- state: zod.ZodString;
624
- street: zod.ZodString;
625
- zipcode: zod.ZodString;
626
- }, "strip", zod.ZodTypeAny, {
24
+ billing: import("zod").ZodObject<{
25
+ city: import("zod").ZodString;
26
+ country: import("zod").ZodString;
27
+ state: import("zod").ZodString;
28
+ street: import("zod").ZodString;
29
+ zipcode: import("zod").ZodString;
30
+ }, "strip", import("zod").ZodTypeAny, {
627
31
  country: string;
628
32
  city: string;
629
33
  state: string;
@@ -636,11 +40,11 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
636
40
  street: string;
637
41
  zipcode: string;
638
42
  }>;
639
- customer: zod.ZodObject<{
640
- customer_id: zod.ZodOptional<zod.ZodString>;
641
- email: zod.ZodOptional<zod.ZodString>;
642
- name: zod.ZodOptional<zod.ZodString>;
643
- }, "strip", zod.ZodTypeAny, {
43
+ customer: import("zod").ZodObject<{
44
+ customer_id: import("zod").ZodOptional<import("zod").ZodString>;
45
+ email: import("zod").ZodOptional<import("zod").ZodString>;
46
+ name: import("zod").ZodOptional<import("zod").ZodString>;
47
+ }, "strip", import("zod").ZodTypeAny, {
644
48
  email?: string | undefined;
645
49
  customer_id?: string | undefined;
646
50
  name?: string | undefined;
@@ -649,23 +53,23 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
649
53
  customer_id?: string | undefined;
650
54
  name?: string | undefined;
651
55
  }>;
652
- discount_id: zod.ZodOptional<zod.ZodString>;
653
- addons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
654
- addon_id: zod.ZodString;
655
- quantity: zod.ZodNumber;
656
- }, "strip", zod.ZodTypeAny, {
56
+ discount_id: import("zod").ZodOptional<import("zod").ZodString>;
57
+ addons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
58
+ addon_id: import("zod").ZodString;
59
+ quantity: import("zod").ZodNumber;
60
+ }, "strip", import("zod").ZodTypeAny, {
657
61
  quantity: number;
658
62
  addon_id: string;
659
63
  }, {
660
64
  quantity: number;
661
65
  addon_id: string;
662
66
  }>, "many">>;
663
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
664
- currency: zod.ZodOptional<zod.ZodString>;
67
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
68
+ currency: import("zod").ZodOptional<import("zod").ZodString>;
665
69
  } & {
666
- slug: zod.ZodOptional<zod.ZodString>;
667
- referenceId: zod.ZodOptional<zod.ZodString>;
668
- }, zod.ZodUnknown, "strip">;
70
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
71
+ referenceId: import("zod").ZodOptional<import("zod").ZodString>;
72
+ }, import("zod").ZodUnknown, "strip">;
669
73
  } & {
670
74
  method?: "POST" | undefined;
671
75
  } & {
@@ -679,7 +83,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
679
83
  } & {
680
84
  asResponse?: boolean;
681
85
  returnHeaders?: boolean;
682
- use?: better_call.Middleware[];
86
+ use?: import("better-call").Middleware[];
683
87
  path?: string;
684
88
  } & {
685
89
  asResponse?: AsResponse | undefined;
@@ -696,26 +100,26 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
696
100
  }>;
697
101
  options: {
698
102
  method: "POST";
699
- body: zod.ZodObject<{
700
- product_id: zod.ZodOptional<zod.ZodString>;
701
- quantity: zod.ZodOptional<zod.ZodNumber>;
702
- product_cart: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
703
- product_id: zod.ZodString;
704
- quantity: zod.ZodNumber;
705
- }, "strip", zod.ZodTypeAny, {
103
+ body: import("zod").ZodObject<{
104
+ product_id: import("zod").ZodOptional<import("zod").ZodString>;
105
+ quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
106
+ product_cart: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
107
+ product_id: import("zod").ZodString;
108
+ quantity: import("zod").ZodNumber;
109
+ }, "strip", import("zod").ZodTypeAny, {
706
110
  quantity: number;
707
111
  product_id: string;
708
112
  }, {
709
113
  quantity: number;
710
114
  product_id: string;
711
115
  }>, "many">>;
712
- billing: zod.ZodObject<{
713
- city: zod.ZodString;
714
- country: zod.ZodString;
715
- state: zod.ZodString;
716
- street: zod.ZodString;
717
- zipcode: zod.ZodString;
718
- }, "strip", zod.ZodTypeAny, {
116
+ billing: import("zod").ZodObject<{
117
+ city: import("zod").ZodString;
118
+ country: import("zod").ZodString;
119
+ state: import("zod").ZodString;
120
+ street: import("zod").ZodString;
121
+ zipcode: import("zod").ZodString;
122
+ }, "strip", import("zod").ZodTypeAny, {
719
123
  country: string;
720
124
  city: string;
721
125
  state: string;
@@ -728,11 +132,11 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
728
132
  street: string;
729
133
  zipcode: string;
730
134
  }>;
731
- customer: zod.ZodObject<{
732
- customer_id: zod.ZodOptional<zod.ZodString>;
733
- email: zod.ZodOptional<zod.ZodString>;
734
- name: zod.ZodOptional<zod.ZodString>;
735
- }, "strip", zod.ZodTypeAny, {
135
+ customer: import("zod").ZodObject<{
136
+ customer_id: import("zod").ZodOptional<import("zod").ZodString>;
137
+ email: import("zod").ZodOptional<import("zod").ZodString>;
138
+ name: import("zod").ZodOptional<import("zod").ZodString>;
139
+ }, "strip", import("zod").ZodTypeAny, {
736
140
  email?: string | undefined;
737
141
  customer_id?: string | undefined;
738
142
  name?: string | undefined;
@@ -741,42 +145,42 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
741
145
  customer_id?: string | undefined;
742
146
  name?: string | undefined;
743
147
  }>;
744
- discount_id: zod.ZodOptional<zod.ZodString>;
745
- addons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
746
- addon_id: zod.ZodString;
747
- quantity: zod.ZodNumber;
748
- }, "strip", zod.ZodTypeAny, {
148
+ discount_id: import("zod").ZodOptional<import("zod").ZodString>;
149
+ addons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
150
+ addon_id: import("zod").ZodString;
151
+ quantity: import("zod").ZodNumber;
152
+ }, "strip", import("zod").ZodTypeAny, {
749
153
  quantity: number;
750
154
  addon_id: string;
751
155
  }, {
752
156
  quantity: number;
753
157
  addon_id: string;
754
158
  }>, "many">>;
755
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
756
- currency: zod.ZodOptional<zod.ZodString>;
159
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
160
+ currency: import("zod").ZodOptional<import("zod").ZodString>;
757
161
  } & {
758
- slug: zod.ZodOptional<zod.ZodString>;
759
- referenceId: zod.ZodOptional<zod.ZodString>;
760
- }, "strip", zod.ZodUnknown, zod.objectOutputType<{
761
- product_id: zod.ZodOptional<zod.ZodString>;
762
- quantity: zod.ZodOptional<zod.ZodNumber>;
763
- product_cart: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
764
- product_id: zod.ZodString;
765
- quantity: zod.ZodNumber;
766
- }, "strip", zod.ZodTypeAny, {
162
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
163
+ referenceId: import("zod").ZodOptional<import("zod").ZodString>;
164
+ }, "strip", import("zod").ZodUnknown, import("zod").objectOutputType<{
165
+ product_id: import("zod").ZodOptional<import("zod").ZodString>;
166
+ quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
167
+ product_cart: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
168
+ product_id: import("zod").ZodString;
169
+ quantity: import("zod").ZodNumber;
170
+ }, "strip", import("zod").ZodTypeAny, {
767
171
  quantity: number;
768
172
  product_id: string;
769
173
  }, {
770
174
  quantity: number;
771
175
  product_id: string;
772
176
  }>, "many">>;
773
- billing: zod.ZodObject<{
774
- city: zod.ZodString;
775
- country: zod.ZodString;
776
- state: zod.ZodString;
777
- street: zod.ZodString;
778
- zipcode: zod.ZodString;
779
- }, "strip", zod.ZodTypeAny, {
177
+ billing: import("zod").ZodObject<{
178
+ city: import("zod").ZodString;
179
+ country: import("zod").ZodString;
180
+ state: import("zod").ZodString;
181
+ street: import("zod").ZodString;
182
+ zipcode: import("zod").ZodString;
183
+ }, "strip", import("zod").ZodTypeAny, {
780
184
  country: string;
781
185
  city: string;
782
186
  state: string;
@@ -789,11 +193,11 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
789
193
  street: string;
790
194
  zipcode: string;
791
195
  }>;
792
- customer: zod.ZodObject<{
793
- customer_id: zod.ZodOptional<zod.ZodString>;
794
- email: zod.ZodOptional<zod.ZodString>;
795
- name: zod.ZodOptional<zod.ZodString>;
796
- }, "strip", zod.ZodTypeAny, {
196
+ customer: import("zod").ZodObject<{
197
+ customer_id: import("zod").ZodOptional<import("zod").ZodString>;
198
+ email: import("zod").ZodOptional<import("zod").ZodString>;
199
+ name: import("zod").ZodOptional<import("zod").ZodString>;
200
+ }, "strip", import("zod").ZodTypeAny, {
797
201
  email?: string | undefined;
798
202
  customer_id?: string | undefined;
799
203
  name?: string | undefined;
@@ -802,42 +206,42 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
802
206
  customer_id?: string | undefined;
803
207
  name?: string | undefined;
804
208
  }>;
805
- discount_id: zod.ZodOptional<zod.ZodString>;
806
- addons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
807
- addon_id: zod.ZodString;
808
- quantity: zod.ZodNumber;
809
- }, "strip", zod.ZodTypeAny, {
209
+ discount_id: import("zod").ZodOptional<import("zod").ZodString>;
210
+ addons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
211
+ addon_id: import("zod").ZodString;
212
+ quantity: import("zod").ZodNumber;
213
+ }, "strip", import("zod").ZodTypeAny, {
810
214
  quantity: number;
811
215
  addon_id: string;
812
216
  }, {
813
217
  quantity: number;
814
218
  addon_id: string;
815
219
  }>, "many">>;
816
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
817
- currency: zod.ZodOptional<zod.ZodString>;
220
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
221
+ currency: import("zod").ZodOptional<import("zod").ZodString>;
818
222
  } & {
819
- slug: zod.ZodOptional<zod.ZodString>;
820
- referenceId: zod.ZodOptional<zod.ZodString>;
821
- }, zod.ZodUnknown, "strip">, zod.objectInputType<{
822
- product_id: zod.ZodOptional<zod.ZodString>;
823
- quantity: zod.ZodOptional<zod.ZodNumber>;
824
- product_cart: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
825
- product_id: zod.ZodString;
826
- quantity: zod.ZodNumber;
827
- }, "strip", zod.ZodTypeAny, {
223
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
224
+ referenceId: import("zod").ZodOptional<import("zod").ZodString>;
225
+ }, import("zod").ZodUnknown, "strip">, import("zod").objectInputType<{
226
+ product_id: import("zod").ZodOptional<import("zod").ZodString>;
227
+ quantity: import("zod").ZodOptional<import("zod").ZodNumber>;
228
+ product_cart: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
229
+ product_id: import("zod").ZodString;
230
+ quantity: import("zod").ZodNumber;
231
+ }, "strip", import("zod").ZodTypeAny, {
828
232
  quantity: number;
829
233
  product_id: string;
830
234
  }, {
831
235
  quantity: number;
832
236
  product_id: string;
833
237
  }>, "many">>;
834
- billing: zod.ZodObject<{
835
- city: zod.ZodString;
836
- country: zod.ZodString;
837
- state: zod.ZodString;
838
- street: zod.ZodString;
839
- zipcode: zod.ZodString;
840
- }, "strip", zod.ZodTypeAny, {
238
+ billing: import("zod").ZodObject<{
239
+ city: import("zod").ZodString;
240
+ country: import("zod").ZodString;
241
+ state: import("zod").ZodString;
242
+ street: import("zod").ZodString;
243
+ zipcode: import("zod").ZodString;
244
+ }, "strip", import("zod").ZodTypeAny, {
841
245
  country: string;
842
246
  city: string;
843
247
  state: string;
@@ -850,11 +254,11 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
850
254
  street: string;
851
255
  zipcode: string;
852
256
  }>;
853
- customer: zod.ZodObject<{
854
- customer_id: zod.ZodOptional<zod.ZodString>;
855
- email: zod.ZodOptional<zod.ZodString>;
856
- name: zod.ZodOptional<zod.ZodString>;
857
- }, "strip", zod.ZodTypeAny, {
257
+ customer: import("zod").ZodObject<{
258
+ customer_id: import("zod").ZodOptional<import("zod").ZodString>;
259
+ email: import("zod").ZodOptional<import("zod").ZodString>;
260
+ name: import("zod").ZodOptional<import("zod").ZodString>;
261
+ }, "strip", import("zod").ZodTypeAny, {
858
262
  email?: string | undefined;
859
263
  customer_id?: string | undefined;
860
264
  name?: string | undefined;
@@ -863,23 +267,23 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
863
267
  customer_id?: string | undefined;
864
268
  name?: string | undefined;
865
269
  }>;
866
- discount_id: zod.ZodOptional<zod.ZodString>;
867
- addons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
868
- addon_id: zod.ZodString;
869
- quantity: zod.ZodNumber;
870
- }, "strip", zod.ZodTypeAny, {
270
+ discount_id: import("zod").ZodOptional<import("zod").ZodString>;
271
+ addons: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
272
+ addon_id: import("zod").ZodString;
273
+ quantity: import("zod").ZodNumber;
274
+ }, "strip", import("zod").ZodTypeAny, {
871
275
  quantity: number;
872
276
  addon_id: string;
873
277
  }, {
874
278
  quantity: number;
875
279
  addon_id: string;
876
280
  }>, "many">>;
877
- metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
878
- currency: zod.ZodOptional<zod.ZodString>;
281
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
282
+ currency: import("zod").ZodOptional<import("zod").ZodString>;
879
283
  } & {
880
- slug: zod.ZodOptional<zod.ZodString>;
881
- referenceId: zod.ZodOptional<zod.ZodString>;
882
- }, zod.ZodUnknown, "strip">>;
284
+ slug: import("zod").ZodOptional<import("zod").ZodString>;
285
+ referenceId: import("zod").ZodOptional<import("zod").ZodString>;
286
+ }, import("zod").ZodUnknown, "strip">>;
883
287
  requireRequest: true;
884
288
  } & {
885
289
  use: any[];
@@ -903,7 +307,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
903
307
  } & {
904
308
  asResponse?: boolean;
905
309
  returnHeaders?: boolean;
906
- use?: better_call.Middleware[];
310
+ use?: import("better-call").Middleware[];
907
311
  path?: string;
908
312
  } & {
909
313
  asResponse?: AsResponse | undefined;
@@ -920,7 +324,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
920
324
  }>;
921
325
  options: {
922
326
  method: "GET";
923
- use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
327
+ use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
924
328
  session: {
925
329
  session: Record<string, any> & {
926
330
  id: string;
@@ -968,7 +372,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
968
372
  } & {
969
373
  asResponse?: boolean;
970
374
  returnHeaders?: boolean;
971
- use?: better_call.Middleware[];
375
+ use?: import("better-call").Middleware[];
972
376
  path?: string;
973
377
  } & {
974
378
  asResponse?: AsResponse | undefined;
@@ -976,18 +380,18 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
976
380
  }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
977
381
  headers: Headers;
978
382
  response: {
979
- items: dodopayments_resources_subscriptions_mjs.SubscriptionListResponse[];
383
+ items: import("dodopayments/resources/subscriptions.mjs").SubscriptionListResponse[];
980
384
  };
981
385
  } : {
982
- items: dodopayments_resources_subscriptions_mjs.SubscriptionListResponse[];
386
+ items: import("dodopayments/resources/subscriptions.mjs").SubscriptionListResponse[];
983
387
  }>;
984
388
  options: {
985
389
  method: "GET";
986
- query: zod.ZodOptional<zod.ZodObject<{
987
- page: zod.ZodOptional<zod.ZodNumber>;
988
- limit: zod.ZodOptional<zod.ZodNumber>;
989
- status: zod.ZodOptional<zod.ZodEnum<["active", "cancelled", "on_hold", "pending", "paused", "failed", "expired"]>>;
990
- }, "strip", zod.ZodTypeAny, {
390
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
391
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
392
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
393
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["active", "cancelled", "on_hold", "pending", "paused", "failed", "expired"]>>;
394
+ }, "strip", import("zod").ZodTypeAny, {
991
395
  status?: "active" | "cancelled" | "on_hold" | "pending" | "paused" | "failed" | "expired" | undefined;
992
396
  page?: number | undefined;
993
397
  limit?: number | undefined;
@@ -996,7 +400,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
996
400
  page?: number | undefined;
997
401
  limit?: number | undefined;
998
402
  }>>;
999
- use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
403
+ use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1000
404
  session: {
1001
405
  session: Record<string, any> & {
1002
406
  id: string;
@@ -1044,7 +448,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1044
448
  } & {
1045
449
  asResponse?: boolean;
1046
450
  returnHeaders?: boolean;
1047
- use?: better_call.Middleware[];
451
+ use?: import("better-call").Middleware[];
1048
452
  path?: string;
1049
453
  } & {
1050
454
  asResponse?: AsResponse | undefined;
@@ -1052,18 +456,18 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1052
456
  }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
1053
457
  headers: Headers;
1054
458
  response: {
1055
- items: dodopayments_resources_payments_mjs.PaymentListResponse[];
459
+ items: import("dodopayments/resources/payments.mjs").PaymentListResponse[];
1056
460
  };
1057
461
  } : {
1058
- items: dodopayments_resources_payments_mjs.PaymentListResponse[];
462
+ items: import("dodopayments/resources/payments.mjs").PaymentListResponse[];
1059
463
  }>;
1060
464
  options: {
1061
465
  method: "GET";
1062
- query: zod.ZodOptional<zod.ZodObject<{
1063
- page: zod.ZodOptional<zod.ZodNumber>;
1064
- limit: zod.ZodOptional<zod.ZodNumber>;
1065
- status: zod.ZodOptional<zod.ZodEnum<["succeeded", "failed", "cancelled", "processing", "requires_customer_action", "requires_merchant_action", "requires_payment_method", "requires_confirmation", "requires_capture", "partially_captured", "partially_captured_and_capturable"]>>;
1066
- }, "strip", zod.ZodTypeAny, {
466
+ query: import("zod").ZodOptional<import("zod").ZodObject<{
467
+ page: import("zod").ZodOptional<import("zod").ZodNumber>;
468
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
469
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["succeeded", "failed", "cancelled", "processing", "requires_customer_action", "requires_merchant_action", "requires_payment_method", "requires_confirmation", "requires_capture", "partially_captured", "partially_captured_and_capturable"]>>;
470
+ }, "strip", import("zod").ZodTypeAny, {
1067
471
  status?: "cancelled" | "failed" | "succeeded" | "processing" | "requires_customer_action" | "requires_merchant_action" | "requires_payment_method" | "requires_confirmation" | "requires_capture" | "partially_captured" | "partially_captured_and_capturable" | undefined;
1068
472
  page?: number | undefined;
1069
473
  limit?: number | undefined;
@@ -1072,7 +476,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1072
476
  page?: number | undefined;
1073
477
  limit?: number | undefined;
1074
478
  }>>;
1075
- use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
479
+ use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1076
480
  session: {
1077
481
  session: Record<string, any> & {
1078
482
  id: string;
@@ -1117,7 +521,7 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1117
521
  } & {
1118
522
  asResponse?: boolean;
1119
523
  returnHeaders?: boolean;
1120
- use?: better_call.Middleware[];
524
+ use?: import("better-call").Middleware[];
1121
525
  path?: string;
1122
526
  } & {
1123
527
  asResponse?: AsResponse | undefined;
@@ -1147,16 +551,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1147
551
  databaseHooks: {
1148
552
  user: {
1149
553
  create: {
1150
- after: (user: better_auth.User, ctx?: better_auth.GenericEndpointContext) => Promise<void>;
554
+ after: (user: import("better-auth").User, ctx?: import("better-auth").GenericEndpointContext) => Promise<void>;
1151
555
  };
1152
556
  update: {
1153
- after: (user: better_auth.User, ctx?: better_auth.GenericEndpointContext) => Promise<void>;
557
+ after: (user: import("better-auth").User, ctx?: import("better-auth").GenericEndpointContext) => Promise<void>;
1154
558
  };
1155
559
  };
1156
560
  };
1157
561
  };
1158
562
  };
1159
563
  };
1160
-
1161
- export { checkout, dodopayments, dodopaymentsClient, portal, webhooks };
1162
- export type { CheckoutOptions };