@teamblind/axeda-better-auth 0.0.0-stage → 0.1.0-alpha.1

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.
@@ -0,0 +1,1987 @@
1
+ import { type Axeda, type AxedaOptions, type AxedaPersistence, type Clock, type InvitationMessage } from '@teamblind/axeda-core';
2
+ /** Cómo hacer llegar una invitación. Sin esto las invitaciones están desactivadas. */
3
+ export interface InvitationDeliveryOptions {
4
+ /**
5
+ * El enlace de aceptación a partir del secreto. Lo construye la aplicación con su URL base
6
+ * configurada: nunca debe salir de la cabecera `Host` de una petición.
7
+ */
8
+ readonly acceptUrl: (token: string) => string;
9
+ /** Envía el correo. Recibe datos, no HTML: escapa lo que muestres. */
10
+ readonly send: (message: InvitationMessage & {
11
+ readonly link: string;
12
+ }) => Promise<void>;
13
+ }
14
+ export interface AxedaPluginOptions extends AxedaOptions {
15
+ /** Solo para pruebas. */
16
+ readonly clock?: Clock;
17
+ /** Cómo enviar las invitaciones. Sin esto están desactivadas. */
18
+ readonly invitationDelivery?: InvitationDeliveryOptions;
19
+ /**
20
+ * Publica `GET /axeda/public/identity` (nombre y logos de una compañía o negocio activo, sin
21
+ * sesión). Desactivado por defecto: es el único endpoint que no exige iniciar sesión.
22
+ */
23
+ readonly publicIdentity?: boolean;
24
+ /**
25
+ * La vida máxima de una sesión, en segundos, contada desde que se abrió. Better Auth renueva la
26
+ * sesión mientras se usa (`session.expiresIn` es el tiempo sin actividad), así que sin esto una
27
+ * sesión usada a diario no caducaría nunca. Pasado este tiempo hay que volver a iniciar sesión.
28
+ * Por defecto 30 días; `false` lo desactiva.
29
+ */
30
+ readonly maxSessionAge?: number | false;
31
+ }
32
+ /**
33
+ * Plugin de Axeda para Better Auth: esquema, endpoints `/axeda/*`, el hook de borrado de usuario
34
+ * y la conexión de la persistencia de Axeda al adaptador de base de datos de Better Auth.
35
+ *
36
+ * ```ts
37
+ * const axedaPlugin = axeda({ permissions: ['invoice:read'], roles: { viewer: ['invoice:read'] } });
38
+ * const auth = betterAuth({ plugins: [axedaPlugin] });
39
+ * await axedaPlugin.start(); // tras migrar la base de datos
40
+ * ```
41
+ */
42
+ export declare function axeda(options: AxedaPluginOptions): {
43
+ id: "axeda";
44
+ schema: {
45
+ user: {
46
+ fields: {
47
+ authzVersion: {
48
+ type: "number";
49
+ required: false;
50
+ defaultValue: number;
51
+ input: false;
52
+ };
53
+ banned: {
54
+ type: "boolean";
55
+ required: false;
56
+ defaultValue: false;
57
+ input: false;
58
+ };
59
+ banReason: {
60
+ type: "string";
61
+ required: false;
62
+ input: false;
63
+ };
64
+ banExpires: {
65
+ type: "date";
66
+ required: false;
67
+ input: false;
68
+ };
69
+ };
70
+ };
71
+ axedaRole: {
72
+ fields: {
73
+ key: {
74
+ type: "string";
75
+ required: true;
76
+ input: false;
77
+ };
78
+ name: {
79
+ type: "string";
80
+ required: true;
81
+ input: false;
82
+ };
83
+ description: {
84
+ type: "string";
85
+ required: false;
86
+ input: false;
87
+ };
88
+ permissions: {
89
+ type: "string[]";
90
+ required: true;
91
+ input: false;
92
+ };
93
+ requireMfa: {
94
+ type: "boolean";
95
+ required: true;
96
+ defaultValue: false;
97
+ input: false;
98
+ };
99
+ status: {
100
+ type: "string";
101
+ required: true;
102
+ defaultValue: string;
103
+ input: false;
104
+ };
105
+ managed: {
106
+ type: "boolean";
107
+ required: true;
108
+ defaultValue: false;
109
+ input: false;
110
+ };
111
+ version: {
112
+ type: "number";
113
+ required: true;
114
+ defaultValue: number;
115
+ input: false;
116
+ };
117
+ createdAt: {
118
+ type: "date";
119
+ required: true;
120
+ input: false;
121
+ };
122
+ updatedAt: {
123
+ type: "date";
124
+ required: true;
125
+ input: false;
126
+ };
127
+ };
128
+ indexes: {
129
+ fields: [string];
130
+ unique: true;
131
+ }[];
132
+ };
133
+ axedaAssignment: {
134
+ fields: {
135
+ userId: {
136
+ type: "string";
137
+ required: true;
138
+ input: false;
139
+ references: {
140
+ model: string;
141
+ field: string;
142
+ onDelete: "cascade";
143
+ };
144
+ };
145
+ roleId: {
146
+ type: "string";
147
+ required: true;
148
+ input: false;
149
+ references: {
150
+ model: "axedaRole";
151
+ field: string;
152
+ onDelete: "cascade";
153
+ };
154
+ };
155
+ scopeType: {
156
+ type: "string";
157
+ required: true;
158
+ input: false;
159
+ };
160
+ scopeId: {
161
+ type: "string";
162
+ required: true;
163
+ input: false;
164
+ };
165
+ grantedBy: {
166
+ type: "string";
167
+ required: false;
168
+ input: false;
169
+ };
170
+ createdAt: {
171
+ type: "date";
172
+ required: true;
173
+ input: false;
174
+ };
175
+ expiresAt: {
176
+ type: "date";
177
+ required: false;
178
+ input: false;
179
+ };
180
+ };
181
+ indexes: ({
182
+ fields: [string, string, string, string];
183
+ unique: true;
184
+ } | {
185
+ fields: [string, string];
186
+ unique?: never;
187
+ })[];
188
+ };
189
+ axedaState: {
190
+ fields: {
191
+ key: {
192
+ type: "string";
193
+ required: true;
194
+ input: false;
195
+ };
196
+ version: {
197
+ type: "number";
198
+ required: true;
199
+ defaultValue: number;
200
+ input: false;
201
+ };
202
+ };
203
+ indexes: {
204
+ fields: [string];
205
+ unique: true;
206
+ }[];
207
+ };
208
+ axedaAudit: {
209
+ fields: {
210
+ actorId: {
211
+ type: "string";
212
+ required: false;
213
+ input: false;
214
+ };
215
+ action: {
216
+ type: "string";
217
+ required: true;
218
+ input: false;
219
+ };
220
+ targetType: {
221
+ type: "string";
222
+ required: true;
223
+ input: false;
224
+ };
225
+ targetId: {
226
+ type: "string";
227
+ required: false;
228
+ input: false;
229
+ };
230
+ scopeType: {
231
+ type: "string";
232
+ required: false;
233
+ input: false;
234
+ };
235
+ scopeId: {
236
+ type: "string";
237
+ required: false;
238
+ input: false;
239
+ };
240
+ outcome: {
241
+ type: "string";
242
+ required: true;
243
+ input: false;
244
+ };
245
+ ip: {
246
+ type: "string";
247
+ required: false;
248
+ input: false;
249
+ };
250
+ userAgent: {
251
+ type: "string";
252
+ required: false;
253
+ input: false;
254
+ };
255
+ metadata: {
256
+ type: "json";
257
+ required: true;
258
+ input: false;
259
+ };
260
+ at: {
261
+ type: "date";
262
+ required: true;
263
+ input: false;
264
+ };
265
+ };
266
+ indexes: ({
267
+ fields: [string];
268
+ } | {
269
+ fields: [string, string];
270
+ })[];
271
+ };
272
+ axedaCompany: {
273
+ fields: {
274
+ slug: {
275
+ type: "string";
276
+ required: true;
277
+ input: false;
278
+ };
279
+ name: {
280
+ type: "string";
281
+ required: true;
282
+ input: false;
283
+ };
284
+ legalName: {
285
+ type: "string";
286
+ required: false;
287
+ input: false;
288
+ };
289
+ logoUrl: {
290
+ type: "string";
291
+ required: false;
292
+ input: false;
293
+ };
294
+ faviconUrl: {
295
+ type: "string";
296
+ required: false;
297
+ input: false;
298
+ };
299
+ status: {
300
+ type: "string";
301
+ required: true;
302
+ defaultValue: string;
303
+ input: false;
304
+ };
305
+ metadata: {
306
+ type: "json";
307
+ required: true;
308
+ input: false;
309
+ };
310
+ version: {
311
+ type: "number";
312
+ required: true;
313
+ defaultValue: number;
314
+ input: false;
315
+ };
316
+ deletedAt: {
317
+ type: "date";
318
+ required: false;
319
+ input: false;
320
+ };
321
+ createdAt: {
322
+ type: "date";
323
+ required: true;
324
+ input: false;
325
+ };
326
+ updatedAt: {
327
+ type: "date";
328
+ required: true;
329
+ input: false;
330
+ };
331
+ };
332
+ indexes: ({
333
+ fields: [string];
334
+ unique: true;
335
+ } | {
336
+ fields: [string];
337
+ unique?: never;
338
+ })[];
339
+ };
340
+ axedaBusiness: {
341
+ fields: {
342
+ companyId: {
343
+ type: "string";
344
+ required: true;
345
+ input: false;
346
+ references: {
347
+ model: "axedaCompany";
348
+ field: string;
349
+ onDelete: "cascade";
350
+ };
351
+ };
352
+ slug: {
353
+ type: "string";
354
+ required: true;
355
+ input: false;
356
+ };
357
+ name: {
358
+ type: "string";
359
+ required: true;
360
+ input: false;
361
+ };
362
+ logoUrl: {
363
+ type: "string";
364
+ required: false;
365
+ input: false;
366
+ };
367
+ faviconUrl: {
368
+ type: "string";
369
+ required: false;
370
+ input: false;
371
+ };
372
+ status: {
373
+ type: "string";
374
+ required: true;
375
+ defaultValue: string;
376
+ input: false;
377
+ };
378
+ metadata: {
379
+ type: "json";
380
+ required: true;
381
+ input: false;
382
+ };
383
+ version: {
384
+ type: "number";
385
+ required: true;
386
+ defaultValue: number;
387
+ input: false;
388
+ };
389
+ deletedAt: {
390
+ type: "date";
391
+ required: false;
392
+ input: false;
393
+ };
394
+ createdAt: {
395
+ type: "date";
396
+ required: true;
397
+ input: false;
398
+ };
399
+ updatedAt: {
400
+ type: "date";
401
+ required: true;
402
+ input: false;
403
+ };
404
+ };
405
+ indexes: ({
406
+ fields: [string, string];
407
+ unique: true;
408
+ } | {
409
+ fields: [string];
410
+ unique?: never;
411
+ })[];
412
+ };
413
+ axedaInvitation: {
414
+ fields: {
415
+ email: {
416
+ type: "string";
417
+ required: true;
418
+ input: false;
419
+ };
420
+ scopeType: {
421
+ type: "string";
422
+ required: true;
423
+ input: false;
424
+ };
425
+ scopeId: {
426
+ type: "string";
427
+ required: true;
428
+ input: false;
429
+ };
430
+ roleIds: {
431
+ type: "string[]";
432
+ required: true;
433
+ input: false;
434
+ };
435
+ invitedBy: {
436
+ type: "string";
437
+ required: true;
438
+ input: false;
439
+ };
440
+ secretHash: {
441
+ type: "string";
442
+ required: true;
443
+ input: false;
444
+ };
445
+ expiresAt: {
446
+ type: "date";
447
+ required: true;
448
+ input: false;
449
+ };
450
+ acceptedAt: {
451
+ type: "date";
452
+ required: false;
453
+ input: false;
454
+ };
455
+ revokedAt: {
456
+ type: "date";
457
+ required: false;
458
+ input: false;
459
+ };
460
+ pendingKey: {
461
+ type: "string";
462
+ required: true;
463
+ input: false;
464
+ };
465
+ consumed: {
466
+ type: "number";
467
+ required: true;
468
+ defaultValue: number;
469
+ input: false;
470
+ };
471
+ createdAt: {
472
+ type: "date";
473
+ required: true;
474
+ input: false;
475
+ };
476
+ };
477
+ indexes: ({
478
+ fields: [string];
479
+ unique: true;
480
+ } | {
481
+ fields: [string, string];
482
+ unique?: never;
483
+ } | {
484
+ fields: [string];
485
+ unique?: never;
486
+ })[];
487
+ };
488
+ };
489
+ endpoints: {
490
+ axedaPublicIdentity: import("better-call").StrictEndpoint<"/axeda/public/identity", {
491
+ method: "GET";
492
+ query: import("zod").ZodObject<{
493
+ company: import("zod").ZodString;
494
+ business: import("zod").ZodOptional<import("zod").ZodString>;
495
+ }, import("zod/v4/core").$strict>;
496
+ metadata: {
497
+ axeda: {
498
+ public: boolean;
499
+ requires: string;
500
+ scope: "own";
501
+ };
502
+ };
503
+ }, import("@teamblind/axeda-core").PublicIdentity>;
504
+ axedaUserList: import("better-call").StrictEndpoint<"/axeda/user/list", {
505
+ method: "GET";
506
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
507
+ session: {
508
+ session: Record<string, any> & {
509
+ id: string;
510
+ createdAt: Date;
511
+ updatedAt: Date;
512
+ userId: string;
513
+ expiresAt: Date;
514
+ token: string;
515
+ ipAddress?: string | null | undefined;
516
+ userAgent?: string | null | undefined;
517
+ };
518
+ user: Record<string, any> & {
519
+ id: string;
520
+ createdAt: Date;
521
+ updatedAt: Date;
522
+ email: string;
523
+ emailVerified: boolean;
524
+ name: string;
525
+ image?: string | null | undefined;
526
+ };
527
+ };
528
+ }>>[];
529
+ query: import("zod").ZodObject<{
530
+ emailPrefix: import("zod").ZodOptional<import("zod").ZodString>;
531
+ banned: import("zod").ZodOptional<import("zod").ZodEnum<{
532
+ true: "true";
533
+ false: "false";
534
+ }>>;
535
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
536
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
537
+ }, import("zod/v4/core").$strict>;
538
+ metadata: {
539
+ axeda: {
540
+ requires: string;
541
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
542
+ };
543
+ };
544
+ }, {
545
+ items: import("./dto.js").ManagedUserDto[];
546
+ nextCursor: string | null;
547
+ }>;
548
+ axedaUserCreate: import("better-call").StrictEndpoint<"/axeda/user/create", {
549
+ method: "POST";
550
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
551
+ session: {
552
+ session: Record<string, any> & {
553
+ id: string;
554
+ createdAt: Date;
555
+ updatedAt: Date;
556
+ userId: string;
557
+ expiresAt: Date;
558
+ token: string;
559
+ ipAddress?: string | null | undefined;
560
+ userAgent?: string | null | undefined;
561
+ };
562
+ user: Record<string, any> & {
563
+ id: string;
564
+ createdAt: Date;
565
+ updatedAt: Date;
566
+ email: string;
567
+ emailVerified: boolean;
568
+ name: string;
569
+ image?: string | null | undefined;
570
+ };
571
+ };
572
+ }>>[];
573
+ body: import("zod").ZodObject<{
574
+ email: import("zod").ZodString;
575
+ name: import("zod").ZodString;
576
+ }, import("zod/v4/core").$strict>;
577
+ metadata: {
578
+ axeda: {
579
+ requires: string;
580
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
581
+ };
582
+ };
583
+ }, import("./dto.js").ManagedUserDto>;
584
+ axedaUserBan: import("better-call").StrictEndpoint<"/axeda/user/ban", {
585
+ method: "POST";
586
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
587
+ session: {
588
+ session: Record<string, any> & {
589
+ id: string;
590
+ createdAt: Date;
591
+ updatedAt: Date;
592
+ userId: string;
593
+ expiresAt: Date;
594
+ token: string;
595
+ ipAddress?: string | null | undefined;
596
+ userAgent?: string | null | undefined;
597
+ };
598
+ user: Record<string, any> & {
599
+ id: string;
600
+ createdAt: Date;
601
+ updatedAt: Date;
602
+ email: string;
603
+ emailVerified: boolean;
604
+ name: string;
605
+ image?: string | null | undefined;
606
+ };
607
+ };
608
+ }>>[];
609
+ body: import("zod").ZodObject<{
610
+ id: import("zod").ZodString;
611
+ reason: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
612
+ expiresAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodISODateTime>>;
613
+ }, import("zod/v4/core").$strict>;
614
+ metadata: {
615
+ axeda: {
616
+ requires: string;
617
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
618
+ };
619
+ };
620
+ }, import("./dto.js").ManagedUserDto>;
621
+ axedaUserUnban: import("better-call").StrictEndpoint<"/axeda/user/unban", {
622
+ method: "POST";
623
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
624
+ session: {
625
+ session: Record<string, any> & {
626
+ id: string;
627
+ createdAt: Date;
628
+ updatedAt: Date;
629
+ userId: string;
630
+ expiresAt: Date;
631
+ token: string;
632
+ ipAddress?: string | null | undefined;
633
+ userAgent?: string | null | undefined;
634
+ };
635
+ user: Record<string, any> & {
636
+ id: string;
637
+ createdAt: Date;
638
+ updatedAt: Date;
639
+ email: string;
640
+ emailVerified: boolean;
641
+ name: string;
642
+ image?: string | null | undefined;
643
+ };
644
+ };
645
+ }>>[];
646
+ body: import("zod").ZodObject<{
647
+ id: import("zod").ZodString;
648
+ }, import("zod/v4/core").$strict>;
649
+ metadata: {
650
+ axeda: {
651
+ requires: string;
652
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
653
+ };
654
+ };
655
+ }, import("./dto.js").ManagedUserDto>;
656
+ axedaUserRevokeSessions: import("better-call").StrictEndpoint<"/axeda/user/revoke-sessions", {
657
+ method: "POST";
658
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
659
+ session: {
660
+ session: Record<string, any> & {
661
+ id: string;
662
+ createdAt: Date;
663
+ updatedAt: Date;
664
+ userId: string;
665
+ expiresAt: Date;
666
+ token: string;
667
+ ipAddress?: string | null | undefined;
668
+ userAgent?: string | null | undefined;
669
+ };
670
+ user: Record<string, any> & {
671
+ id: string;
672
+ createdAt: Date;
673
+ updatedAt: Date;
674
+ email: string;
675
+ emailVerified: boolean;
676
+ name: string;
677
+ image?: string | null | undefined;
678
+ };
679
+ };
680
+ }>>[];
681
+ body: import("zod").ZodObject<{
682
+ id: import("zod").ZodString;
683
+ }, import("zod/v4/core").$strict>;
684
+ metadata: {
685
+ axeda: {
686
+ requires: string;
687
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
688
+ };
689
+ };
690
+ }, {
691
+ revoked: number;
692
+ }>;
693
+ axedaMenu: import("better-call").StrictEndpoint<"/axeda/menu", {
694
+ method: "GET";
695
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
696
+ session: {
697
+ session: Record<string, any> & {
698
+ id: string;
699
+ createdAt: Date;
700
+ updatedAt: Date;
701
+ userId: string;
702
+ expiresAt: Date;
703
+ token: string;
704
+ ipAddress?: string | null | undefined;
705
+ userAgent?: string | null | undefined;
706
+ };
707
+ user: Record<string, any> & {
708
+ id: string;
709
+ createdAt: Date;
710
+ updatedAt: Date;
711
+ email: string;
712
+ emailVerified: boolean;
713
+ name: string;
714
+ image?: string | null | undefined;
715
+ };
716
+ };
717
+ }>>[];
718
+ query: import("zod").ZodObject<{
719
+ locale: import("zod").ZodOptional<import("zod").ZodString>;
720
+ scopeType: import("zod").ZodOptional<import("zod").ZodEnum<{
721
+ company: "company";
722
+ business: "business";
723
+ global: "global";
724
+ }>>;
725
+ scopeId: import("zod").ZodOptional<import("zod").ZodString>;
726
+ }, import("zod/v4/core").$strict>;
727
+ metadata: {
728
+ axeda: {
729
+ requires: string;
730
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
731
+ };
732
+ };
733
+ }, {
734
+ items: import("@teamblind/axeda-core").MenuNode[];
735
+ }>;
736
+ axedaInvitationList: import("better-call").StrictEndpoint<"/axeda/invitation/list", {
737
+ method: "GET";
738
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
739
+ session: {
740
+ session: Record<string, any> & {
741
+ id: string;
742
+ createdAt: Date;
743
+ updatedAt: Date;
744
+ userId: string;
745
+ expiresAt: Date;
746
+ token: string;
747
+ ipAddress?: string | null | undefined;
748
+ userAgent?: string | null | undefined;
749
+ };
750
+ user: Record<string, any> & {
751
+ id: string;
752
+ createdAt: Date;
753
+ updatedAt: Date;
754
+ email: string;
755
+ emailVerified: boolean;
756
+ name: string;
757
+ image?: string | null | undefined;
758
+ };
759
+ };
760
+ }>>[];
761
+ query: import("zod").ZodObject<{
762
+ pendingOnly: import("zod").ZodOptional<import("zod").ZodEnum<{
763
+ true: "true";
764
+ false: "false";
765
+ }>>;
766
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
767
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
768
+ scopeType: import("zod").ZodOptional<import("zod").ZodEnum<{
769
+ company: "company";
770
+ business: "business";
771
+ global: "global";
772
+ }>>;
773
+ scopeId: import("zod").ZodOptional<import("zod").ZodString>;
774
+ }, import("zod/v4/core").$strict>;
775
+ metadata: {
776
+ axeda: {
777
+ requires: string;
778
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
779
+ };
780
+ };
781
+ }, {
782
+ items: import("./dto.js").InvitationDto[];
783
+ nextCursor: string | null;
784
+ }>;
785
+ axedaInvitationCreate: import("better-call").StrictEndpoint<"/axeda/invitation/create", {
786
+ method: "POST";
787
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
788
+ session: {
789
+ session: Record<string, any> & {
790
+ id: string;
791
+ createdAt: Date;
792
+ updatedAt: Date;
793
+ userId: string;
794
+ expiresAt: Date;
795
+ token: string;
796
+ ipAddress?: string | null | undefined;
797
+ userAgent?: string | null | undefined;
798
+ };
799
+ user: Record<string, any> & {
800
+ id: string;
801
+ createdAt: Date;
802
+ updatedAt: Date;
803
+ email: string;
804
+ emailVerified: boolean;
805
+ name: string;
806
+ image?: string | null | undefined;
807
+ };
808
+ };
809
+ }>>[];
810
+ body: import("zod").ZodObject<{
811
+ email: import("zod").ZodString;
812
+ scope: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
813
+ type: import("zod").ZodLiteral<"global">;
814
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
815
+ type: import("zod").ZodEnum<{
816
+ company: "company";
817
+ business: "business";
818
+ }>;
819
+ id: import("zod").ZodString;
820
+ }, import("zod/v4/core").$strict>]>;
821
+ roleIds: import("zod").ZodArray<import("zod").ZodString>;
822
+ ttlHours: import("zod").ZodOptional<import("zod").ZodNumber>;
823
+ }, import("zod/v4/core").$strict>;
824
+ metadata: {
825
+ axeda: {
826
+ requires: string;
827
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
828
+ };
829
+ };
830
+ }, import("./dto.js").InvitationDto>;
831
+ axedaInvitationAccept: import("better-call").StrictEndpoint<"/axeda/invitation/accept", {
832
+ method: "POST";
833
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
834
+ session: {
835
+ session: Record<string, any> & {
836
+ id: string;
837
+ createdAt: Date;
838
+ updatedAt: Date;
839
+ userId: string;
840
+ expiresAt: Date;
841
+ token: string;
842
+ ipAddress?: string | null | undefined;
843
+ userAgent?: string | null | undefined;
844
+ };
845
+ user: Record<string, any> & {
846
+ id: string;
847
+ createdAt: Date;
848
+ updatedAt: Date;
849
+ email: string;
850
+ emailVerified: boolean;
851
+ name: string;
852
+ image?: string | null | undefined;
853
+ };
854
+ };
855
+ }>>[];
856
+ body: import("zod").ZodObject<{
857
+ token: import("zod").ZodString;
858
+ }, import("zod/v4/core").$strict>;
859
+ metadata: {
860
+ axeda: {
861
+ requires: string;
862
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
863
+ };
864
+ };
865
+ }, {
866
+ assignments: import("./dto.js").AssignmentDto[];
867
+ }>;
868
+ axedaInvitationRevoke: import("better-call").StrictEndpoint<"/axeda/invitation/revoke", {
869
+ method: "POST";
870
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
871
+ session: {
872
+ session: Record<string, any> & {
873
+ id: string;
874
+ createdAt: Date;
875
+ updatedAt: Date;
876
+ userId: string;
877
+ expiresAt: Date;
878
+ token: string;
879
+ ipAddress?: string | null | undefined;
880
+ userAgent?: string | null | undefined;
881
+ };
882
+ user: Record<string, any> & {
883
+ id: string;
884
+ createdAt: Date;
885
+ updatedAt: Date;
886
+ email: string;
887
+ emailVerified: boolean;
888
+ name: string;
889
+ image?: string | null | undefined;
890
+ };
891
+ };
892
+ }>>[];
893
+ body: import("zod").ZodObject<{
894
+ id: import("zod").ZodString;
895
+ }, import("zod/v4/core").$strict>;
896
+ metadata: {
897
+ axeda: {
898
+ requires: string;
899
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
900
+ };
901
+ };
902
+ }, {
903
+ revoked: true;
904
+ }>;
905
+ axedaCompanyList: import("better-call").StrictEndpoint<"/axeda/company/list", {
906
+ method: "GET";
907
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
908
+ session: {
909
+ session: Record<string, any> & {
910
+ id: string;
911
+ createdAt: Date;
912
+ updatedAt: Date;
913
+ userId: string;
914
+ expiresAt: Date;
915
+ token: string;
916
+ ipAddress?: string | null | undefined;
917
+ userAgent?: string | null | undefined;
918
+ };
919
+ user: Record<string, any> & {
920
+ id: string;
921
+ createdAt: Date;
922
+ updatedAt: Date;
923
+ email: string;
924
+ emailVerified: boolean;
925
+ name: string;
926
+ image?: string | null | undefined;
927
+ };
928
+ };
929
+ }>>[];
930
+ query: import("zod").ZodObject<{
931
+ deleted: import("zod").ZodOptional<import("zod").ZodEnum<{
932
+ exclude: "exclude";
933
+ include: "include";
934
+ only: "only";
935
+ }>>;
936
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
937
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
938
+ }, import("zod/v4/core").$strict>;
939
+ metadata: {
940
+ axeda: {
941
+ requires: string;
942
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
943
+ };
944
+ };
945
+ }, {
946
+ items: import("./dto.js").CompanyDto[];
947
+ nextCursor: string | null;
948
+ }>;
949
+ axedaCompanyGet: import("better-call").StrictEndpoint<"/axeda/company/get", {
950
+ method: "GET";
951
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
952
+ session: {
953
+ session: Record<string, any> & {
954
+ id: string;
955
+ createdAt: Date;
956
+ updatedAt: Date;
957
+ userId: string;
958
+ expiresAt: Date;
959
+ token: string;
960
+ ipAddress?: string | null | undefined;
961
+ userAgent?: string | null | undefined;
962
+ };
963
+ user: Record<string, any> & {
964
+ id: string;
965
+ createdAt: Date;
966
+ updatedAt: Date;
967
+ email: string;
968
+ emailVerified: boolean;
969
+ name: string;
970
+ image?: string | null | undefined;
971
+ };
972
+ };
973
+ }>>[];
974
+ query: import("zod").ZodObject<{
975
+ id: import("zod").ZodString;
976
+ }, import("zod/v4/core").$strict>;
977
+ metadata: {
978
+ axeda: {
979
+ requires: string;
980
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
981
+ };
982
+ };
983
+ }, import("./dto.js").CompanyDto>;
984
+ axedaCompanyCreate: import("better-call").StrictEndpoint<"/axeda/company/create", {
985
+ method: "POST";
986
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
987
+ session: {
988
+ session: Record<string, any> & {
989
+ id: string;
990
+ createdAt: Date;
991
+ updatedAt: Date;
992
+ userId: string;
993
+ expiresAt: Date;
994
+ token: string;
995
+ ipAddress?: string | null | undefined;
996
+ userAgent?: string | null | undefined;
997
+ };
998
+ user: Record<string, any> & {
999
+ id: string;
1000
+ createdAt: Date;
1001
+ updatedAt: Date;
1002
+ email: string;
1003
+ emailVerified: boolean;
1004
+ name: string;
1005
+ image?: string | null | undefined;
1006
+ };
1007
+ };
1008
+ }>>[];
1009
+ body: import("zod").ZodObject<{
1010
+ slug: import("zod").ZodString;
1011
+ name: import("zod").ZodString;
1012
+ legalName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1013
+ logoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1014
+ faviconUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1015
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1016
+ }, import("zod/v4/core").$strict>;
1017
+ metadata: {
1018
+ axeda: {
1019
+ requires: string;
1020
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1021
+ };
1022
+ };
1023
+ }, import("./dto.js").CompanyDto>;
1024
+ axedaCompanyUpdate: import("better-call").StrictEndpoint<"/axeda/company/update", {
1025
+ method: "POST";
1026
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1027
+ session: {
1028
+ session: Record<string, any> & {
1029
+ id: string;
1030
+ createdAt: Date;
1031
+ updatedAt: Date;
1032
+ userId: string;
1033
+ expiresAt: Date;
1034
+ token: string;
1035
+ ipAddress?: string | null | undefined;
1036
+ userAgent?: string | null | undefined;
1037
+ };
1038
+ user: Record<string, any> & {
1039
+ id: string;
1040
+ createdAt: Date;
1041
+ updatedAt: Date;
1042
+ email: string;
1043
+ emailVerified: boolean;
1044
+ name: string;
1045
+ image?: string | null | undefined;
1046
+ };
1047
+ };
1048
+ }>>[];
1049
+ body: import("zod").ZodObject<{
1050
+ id: import("zod").ZodString;
1051
+ version: import("zod").ZodNumber;
1052
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1053
+ legalName: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1054
+ logoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1055
+ faviconUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1056
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1057
+ }, import("zod/v4/core").$strict>;
1058
+ metadata: {
1059
+ axeda: {
1060
+ requires: string;
1061
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1062
+ };
1063
+ };
1064
+ }, import("./dto.js").CompanyDto>;
1065
+ axedaCompanySetStatus: import("better-call").StrictEndpoint<"/axeda/company/set-status", {
1066
+ method: "POST";
1067
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1068
+ session: {
1069
+ session: Record<string, any> & {
1070
+ id: string;
1071
+ createdAt: Date;
1072
+ updatedAt: Date;
1073
+ userId: string;
1074
+ expiresAt: Date;
1075
+ token: string;
1076
+ ipAddress?: string | null | undefined;
1077
+ userAgent?: string | null | undefined;
1078
+ };
1079
+ user: Record<string, any> & {
1080
+ id: string;
1081
+ createdAt: Date;
1082
+ updatedAt: Date;
1083
+ email: string;
1084
+ emailVerified: boolean;
1085
+ name: string;
1086
+ image?: string | null | undefined;
1087
+ };
1088
+ };
1089
+ }>>[];
1090
+ body: import("zod").ZodObject<{
1091
+ id: import("zod").ZodString;
1092
+ version: import("zod").ZodNumber;
1093
+ status: import("zod").ZodEnum<{
1094
+ active: "active";
1095
+ inactive: "inactive";
1096
+ }>;
1097
+ }, import("zod/v4/core").$strict>;
1098
+ metadata: {
1099
+ axeda: {
1100
+ requires: string;
1101
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1102
+ };
1103
+ };
1104
+ }, import("./dto.js").CompanyDto>;
1105
+ axedaCompanyDelete: import("better-call").StrictEndpoint<"/axeda/company/delete", {
1106
+ method: "POST";
1107
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1108
+ session: {
1109
+ session: Record<string, any> & {
1110
+ id: string;
1111
+ createdAt: Date;
1112
+ updatedAt: Date;
1113
+ userId: string;
1114
+ expiresAt: Date;
1115
+ token: string;
1116
+ ipAddress?: string | null | undefined;
1117
+ userAgent?: string | null | undefined;
1118
+ };
1119
+ user: Record<string, any> & {
1120
+ id: string;
1121
+ createdAt: Date;
1122
+ updatedAt: Date;
1123
+ email: string;
1124
+ emailVerified: boolean;
1125
+ name: string;
1126
+ image?: string | null | undefined;
1127
+ };
1128
+ };
1129
+ }>>[];
1130
+ body: import("zod").ZodObject<{
1131
+ id: import("zod").ZodString;
1132
+ version: import("zod").ZodNumber;
1133
+ immediate: import("zod").ZodOptional<import("zod").ZodBoolean>;
1134
+ }, import("zod/v4/core").$strict>;
1135
+ metadata: {
1136
+ axeda: {
1137
+ requires: string;
1138
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1139
+ };
1140
+ };
1141
+ }, {
1142
+ deleted: true;
1143
+ }>;
1144
+ axedaCompanyRestore: import("better-call").StrictEndpoint<"/axeda/company/restore", {
1145
+ method: "POST";
1146
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1147
+ session: {
1148
+ session: Record<string, any> & {
1149
+ id: string;
1150
+ createdAt: Date;
1151
+ updatedAt: Date;
1152
+ userId: string;
1153
+ expiresAt: Date;
1154
+ token: string;
1155
+ ipAddress?: string | null | undefined;
1156
+ userAgent?: string | null | undefined;
1157
+ };
1158
+ user: Record<string, any> & {
1159
+ id: string;
1160
+ createdAt: Date;
1161
+ updatedAt: Date;
1162
+ email: string;
1163
+ emailVerified: boolean;
1164
+ name: string;
1165
+ image?: string | null | undefined;
1166
+ };
1167
+ };
1168
+ }>>[];
1169
+ body: import("zod").ZodObject<{
1170
+ id: import("zod").ZodString;
1171
+ version: import("zod").ZodNumber;
1172
+ }, import("zod/v4/core").$strict>;
1173
+ metadata: {
1174
+ axeda: {
1175
+ requires: string;
1176
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1177
+ };
1178
+ };
1179
+ }, import("./dto.js").CompanyDto>;
1180
+ axedaBusinessList: import("better-call").StrictEndpoint<"/axeda/business/list", {
1181
+ method: "GET";
1182
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1183
+ session: {
1184
+ session: Record<string, any> & {
1185
+ id: string;
1186
+ createdAt: Date;
1187
+ updatedAt: Date;
1188
+ userId: string;
1189
+ expiresAt: Date;
1190
+ token: string;
1191
+ ipAddress?: string | null | undefined;
1192
+ userAgent?: string | null | undefined;
1193
+ };
1194
+ user: Record<string, any> & {
1195
+ id: string;
1196
+ createdAt: Date;
1197
+ updatedAt: Date;
1198
+ email: string;
1199
+ emailVerified: boolean;
1200
+ name: string;
1201
+ image?: string | null | undefined;
1202
+ };
1203
+ };
1204
+ }>>[];
1205
+ query: import("zod").ZodObject<{
1206
+ companyId: import("zod").ZodString;
1207
+ deleted: import("zod").ZodOptional<import("zod").ZodEnum<{
1208
+ exclude: "exclude";
1209
+ include: "include";
1210
+ only: "only";
1211
+ }>>;
1212
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1213
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1214
+ }, import("zod/v4/core").$strict>;
1215
+ metadata: {
1216
+ axeda: {
1217
+ requires: string;
1218
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1219
+ };
1220
+ };
1221
+ }, {
1222
+ items: import("./dto.js").BusinessDto[];
1223
+ nextCursor: string | null;
1224
+ }>;
1225
+ axedaBusinessGet: import("better-call").StrictEndpoint<"/axeda/business/get", {
1226
+ method: "GET";
1227
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1228
+ session: {
1229
+ session: Record<string, any> & {
1230
+ id: string;
1231
+ createdAt: Date;
1232
+ updatedAt: Date;
1233
+ userId: string;
1234
+ expiresAt: Date;
1235
+ token: string;
1236
+ ipAddress?: string | null | undefined;
1237
+ userAgent?: string | null | undefined;
1238
+ };
1239
+ user: Record<string, any> & {
1240
+ id: string;
1241
+ createdAt: Date;
1242
+ updatedAt: Date;
1243
+ email: string;
1244
+ emailVerified: boolean;
1245
+ name: string;
1246
+ image?: string | null | undefined;
1247
+ };
1248
+ };
1249
+ }>>[];
1250
+ query: import("zod").ZodObject<{
1251
+ id: import("zod").ZodString;
1252
+ }, import("zod/v4/core").$strict>;
1253
+ metadata: {
1254
+ axeda: {
1255
+ requires: string;
1256
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1257
+ };
1258
+ };
1259
+ }, import("./dto.js").BusinessDto>;
1260
+ axedaBusinessCreate: import("better-call").StrictEndpoint<"/axeda/business/create", {
1261
+ method: "POST";
1262
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1263
+ session: {
1264
+ session: Record<string, any> & {
1265
+ id: string;
1266
+ createdAt: Date;
1267
+ updatedAt: Date;
1268
+ userId: string;
1269
+ expiresAt: Date;
1270
+ token: string;
1271
+ ipAddress?: string | null | undefined;
1272
+ userAgent?: string | null | undefined;
1273
+ };
1274
+ user: Record<string, any> & {
1275
+ id: string;
1276
+ createdAt: Date;
1277
+ updatedAt: Date;
1278
+ email: string;
1279
+ emailVerified: boolean;
1280
+ name: string;
1281
+ image?: string | null | undefined;
1282
+ };
1283
+ };
1284
+ }>>[];
1285
+ body: import("zod").ZodObject<{
1286
+ companyId: import("zod").ZodString;
1287
+ slug: import("zod").ZodString;
1288
+ name: import("zod").ZodString;
1289
+ logoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1290
+ faviconUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1291
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1292
+ }, import("zod/v4/core").$strict>;
1293
+ metadata: {
1294
+ axeda: {
1295
+ requires: string;
1296
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1297
+ };
1298
+ };
1299
+ }, import("./dto.js").BusinessDto>;
1300
+ axedaBusinessUpdate: import("better-call").StrictEndpoint<"/axeda/business/update", {
1301
+ method: "POST";
1302
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1303
+ session: {
1304
+ session: Record<string, any> & {
1305
+ id: string;
1306
+ createdAt: Date;
1307
+ updatedAt: Date;
1308
+ userId: string;
1309
+ expiresAt: Date;
1310
+ token: string;
1311
+ ipAddress?: string | null | undefined;
1312
+ userAgent?: string | null | undefined;
1313
+ };
1314
+ user: Record<string, any> & {
1315
+ id: string;
1316
+ createdAt: Date;
1317
+ updatedAt: Date;
1318
+ email: string;
1319
+ emailVerified: boolean;
1320
+ name: string;
1321
+ image?: string | null | undefined;
1322
+ };
1323
+ };
1324
+ }>>[];
1325
+ body: import("zod").ZodObject<{
1326
+ id: import("zod").ZodString;
1327
+ version: import("zod").ZodNumber;
1328
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1329
+ logoUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1330
+ faviconUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1331
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
1332
+ }, import("zod/v4/core").$strict>;
1333
+ metadata: {
1334
+ axeda: {
1335
+ requires: string;
1336
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1337
+ };
1338
+ };
1339
+ }, import("./dto.js").BusinessDto>;
1340
+ axedaBusinessSetStatus: import("better-call").StrictEndpoint<"/axeda/business/set-status", {
1341
+ method: "POST";
1342
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1343
+ session: {
1344
+ session: Record<string, any> & {
1345
+ id: string;
1346
+ createdAt: Date;
1347
+ updatedAt: Date;
1348
+ userId: string;
1349
+ expiresAt: Date;
1350
+ token: string;
1351
+ ipAddress?: string | null | undefined;
1352
+ userAgent?: string | null | undefined;
1353
+ };
1354
+ user: Record<string, any> & {
1355
+ id: string;
1356
+ createdAt: Date;
1357
+ updatedAt: Date;
1358
+ email: string;
1359
+ emailVerified: boolean;
1360
+ name: string;
1361
+ image?: string | null | undefined;
1362
+ };
1363
+ };
1364
+ }>>[];
1365
+ body: import("zod").ZodObject<{
1366
+ id: import("zod").ZodString;
1367
+ version: import("zod").ZodNumber;
1368
+ status: import("zod").ZodEnum<{
1369
+ active: "active";
1370
+ inactive: "inactive";
1371
+ }>;
1372
+ }, import("zod/v4/core").$strict>;
1373
+ metadata: {
1374
+ axeda: {
1375
+ requires: string;
1376
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1377
+ };
1378
+ };
1379
+ }, import("./dto.js").BusinessDto>;
1380
+ axedaBusinessDelete: import("better-call").StrictEndpoint<"/axeda/business/delete", {
1381
+ method: "POST";
1382
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1383
+ session: {
1384
+ session: Record<string, any> & {
1385
+ id: string;
1386
+ createdAt: Date;
1387
+ updatedAt: Date;
1388
+ userId: string;
1389
+ expiresAt: Date;
1390
+ token: string;
1391
+ ipAddress?: string | null | undefined;
1392
+ userAgent?: string | null | undefined;
1393
+ };
1394
+ user: Record<string, any> & {
1395
+ id: string;
1396
+ createdAt: Date;
1397
+ updatedAt: Date;
1398
+ email: string;
1399
+ emailVerified: boolean;
1400
+ name: string;
1401
+ image?: string | null | undefined;
1402
+ };
1403
+ };
1404
+ }>>[];
1405
+ body: import("zod").ZodObject<{
1406
+ id: import("zod").ZodString;
1407
+ version: import("zod").ZodNumber;
1408
+ immediate: import("zod").ZodOptional<import("zod").ZodBoolean>;
1409
+ }, import("zod/v4/core").$strict>;
1410
+ metadata: {
1411
+ axeda: {
1412
+ requires: string;
1413
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1414
+ };
1415
+ };
1416
+ }, {
1417
+ deleted: true;
1418
+ }>;
1419
+ axedaBusinessRestore: import("better-call").StrictEndpoint<"/axeda/business/restore", {
1420
+ method: "POST";
1421
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1422
+ session: {
1423
+ session: Record<string, any> & {
1424
+ id: string;
1425
+ createdAt: Date;
1426
+ updatedAt: Date;
1427
+ userId: string;
1428
+ expiresAt: Date;
1429
+ token: string;
1430
+ ipAddress?: string | null | undefined;
1431
+ userAgent?: string | null | undefined;
1432
+ };
1433
+ user: Record<string, any> & {
1434
+ id: string;
1435
+ createdAt: Date;
1436
+ updatedAt: Date;
1437
+ email: string;
1438
+ emailVerified: boolean;
1439
+ name: string;
1440
+ image?: string | null | undefined;
1441
+ };
1442
+ };
1443
+ }>>[];
1444
+ body: import("zod").ZodObject<{
1445
+ id: import("zod").ZodString;
1446
+ version: import("zod").ZodNumber;
1447
+ }, import("zod/v4/core").$strict>;
1448
+ metadata: {
1449
+ axeda: {
1450
+ requires: string;
1451
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1452
+ };
1453
+ };
1454
+ }, import("./dto.js").BusinessDto>;
1455
+ axedaMe: import("better-call").StrictEndpoint<"/axeda/me", {
1456
+ method: "GET";
1457
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1458
+ session: {
1459
+ session: Record<string, any> & {
1460
+ id: string;
1461
+ createdAt: Date;
1462
+ updatedAt: Date;
1463
+ userId: string;
1464
+ expiresAt: Date;
1465
+ token: string;
1466
+ ipAddress?: string | null | undefined;
1467
+ userAgent?: string | null | undefined;
1468
+ };
1469
+ user: Record<string, any> & {
1470
+ id: string;
1471
+ createdAt: Date;
1472
+ updatedAt: Date;
1473
+ email: string;
1474
+ emailVerified: boolean;
1475
+ name: string;
1476
+ image?: string | null | undefined;
1477
+ };
1478
+ };
1479
+ }>>[];
1480
+ metadata: {
1481
+ axeda: {
1482
+ requires: string;
1483
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1484
+ };
1485
+ };
1486
+ }, {
1487
+ userId: string;
1488
+ twoFactorEnabled: boolean;
1489
+ globalPermissions: string[];
1490
+ assignments: import("./dto.js").AssignmentDto[];
1491
+ }>;
1492
+ axedaPermissionList: import("better-call").StrictEndpoint<"/axeda/permission/list", {
1493
+ method: "GET";
1494
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1495
+ session: {
1496
+ session: Record<string, any> & {
1497
+ id: string;
1498
+ createdAt: Date;
1499
+ updatedAt: Date;
1500
+ userId: string;
1501
+ expiresAt: Date;
1502
+ token: string;
1503
+ ipAddress?: string | null | undefined;
1504
+ userAgent?: string | null | undefined;
1505
+ };
1506
+ user: Record<string, any> & {
1507
+ id: string;
1508
+ createdAt: Date;
1509
+ updatedAt: Date;
1510
+ email: string;
1511
+ emailVerified: boolean;
1512
+ name: string;
1513
+ image?: string | null | undefined;
1514
+ };
1515
+ };
1516
+ }>>[];
1517
+ metadata: {
1518
+ axeda: {
1519
+ requires: string;
1520
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1521
+ };
1522
+ };
1523
+ }, {
1524
+ permissions: string[];
1525
+ }>;
1526
+ axedaRoleList: import("better-call").StrictEndpoint<"/axeda/role/list", {
1527
+ method: "GET";
1528
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1529
+ session: {
1530
+ session: Record<string, any> & {
1531
+ id: string;
1532
+ createdAt: Date;
1533
+ updatedAt: Date;
1534
+ userId: string;
1535
+ expiresAt: Date;
1536
+ token: string;
1537
+ ipAddress?: string | null | undefined;
1538
+ userAgent?: string | null | undefined;
1539
+ };
1540
+ user: Record<string, any> & {
1541
+ id: string;
1542
+ createdAt: Date;
1543
+ updatedAt: Date;
1544
+ email: string;
1545
+ emailVerified: boolean;
1546
+ name: string;
1547
+ image?: string | null | undefined;
1548
+ };
1549
+ };
1550
+ }>>[];
1551
+ query: import("zod").ZodObject<{
1552
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1553
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1554
+ }, import("zod/v4/core").$strict>;
1555
+ metadata: {
1556
+ axeda: {
1557
+ requires: string;
1558
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1559
+ };
1560
+ };
1561
+ }, {
1562
+ items: import("./dto.js").RoleDto[];
1563
+ nextCursor: string | null;
1564
+ }>;
1565
+ axedaRoleGet: import("better-call").StrictEndpoint<"/axeda/role/get", {
1566
+ method: "GET";
1567
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1568
+ session: {
1569
+ session: Record<string, any> & {
1570
+ id: string;
1571
+ createdAt: Date;
1572
+ updatedAt: Date;
1573
+ userId: string;
1574
+ expiresAt: Date;
1575
+ token: string;
1576
+ ipAddress?: string | null | undefined;
1577
+ userAgent?: string | null | undefined;
1578
+ };
1579
+ user: Record<string, any> & {
1580
+ id: string;
1581
+ createdAt: Date;
1582
+ updatedAt: Date;
1583
+ email: string;
1584
+ emailVerified: boolean;
1585
+ name: string;
1586
+ image?: string | null | undefined;
1587
+ };
1588
+ };
1589
+ }>>[];
1590
+ query: import("zod").ZodObject<{
1591
+ id: import("zod").ZodString;
1592
+ }, import("zod/v4/core").$strict>;
1593
+ metadata: {
1594
+ axeda: {
1595
+ requires: string;
1596
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1597
+ };
1598
+ };
1599
+ }, import("./dto.js").RoleDto>;
1600
+ axedaRoleCreate: import("better-call").StrictEndpoint<"/axeda/role/create", {
1601
+ method: "POST";
1602
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1603
+ session: {
1604
+ session: Record<string, any> & {
1605
+ id: string;
1606
+ createdAt: Date;
1607
+ updatedAt: Date;
1608
+ userId: string;
1609
+ expiresAt: Date;
1610
+ token: string;
1611
+ ipAddress?: string | null | undefined;
1612
+ userAgent?: string | null | undefined;
1613
+ };
1614
+ user: Record<string, any> & {
1615
+ id: string;
1616
+ createdAt: Date;
1617
+ updatedAt: Date;
1618
+ email: string;
1619
+ emailVerified: boolean;
1620
+ name: string;
1621
+ image?: string | null | undefined;
1622
+ };
1623
+ };
1624
+ }>>[];
1625
+ body: import("zod").ZodObject<{
1626
+ key: import("zod").ZodString;
1627
+ name: import("zod").ZodString;
1628
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1629
+ permissions: import("zod").ZodArray<import("zod").ZodString>;
1630
+ requireMfa: import("zod").ZodOptional<import("zod").ZodBoolean>;
1631
+ }, import("zod/v4/core").$strict>;
1632
+ metadata: {
1633
+ axeda: {
1634
+ requires: string;
1635
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1636
+ };
1637
+ };
1638
+ }, import("./dto.js").RoleDto>;
1639
+ axedaRoleUpdate: import("better-call").StrictEndpoint<"/axeda/role/update", {
1640
+ method: "POST";
1641
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1642
+ session: {
1643
+ session: Record<string, any> & {
1644
+ id: string;
1645
+ createdAt: Date;
1646
+ updatedAt: Date;
1647
+ userId: string;
1648
+ expiresAt: Date;
1649
+ token: string;
1650
+ ipAddress?: string | null | undefined;
1651
+ userAgent?: string | null | undefined;
1652
+ };
1653
+ user: Record<string, any> & {
1654
+ id: string;
1655
+ createdAt: Date;
1656
+ updatedAt: Date;
1657
+ email: string;
1658
+ emailVerified: boolean;
1659
+ name: string;
1660
+ image?: string | null | undefined;
1661
+ };
1662
+ };
1663
+ }>>[];
1664
+ body: import("zod").ZodObject<{
1665
+ id: import("zod").ZodString;
1666
+ version: import("zod").ZodNumber;
1667
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1668
+ description: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1669
+ permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
1670
+ requireMfa: import("zod").ZodOptional<import("zod").ZodBoolean>;
1671
+ }, import("zod/v4/core").$strict>;
1672
+ metadata: {
1673
+ axeda: {
1674
+ requires: string;
1675
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1676
+ };
1677
+ };
1678
+ }, import("./dto.js").RoleDto>;
1679
+ axedaRoleSetStatus: import("better-call").StrictEndpoint<"/axeda/role/set-status", {
1680
+ method: "POST";
1681
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1682
+ session: {
1683
+ session: Record<string, any> & {
1684
+ id: string;
1685
+ createdAt: Date;
1686
+ updatedAt: Date;
1687
+ userId: string;
1688
+ expiresAt: Date;
1689
+ token: string;
1690
+ ipAddress?: string | null | undefined;
1691
+ userAgent?: string | null | undefined;
1692
+ };
1693
+ user: Record<string, any> & {
1694
+ id: string;
1695
+ createdAt: Date;
1696
+ updatedAt: Date;
1697
+ email: string;
1698
+ emailVerified: boolean;
1699
+ name: string;
1700
+ image?: string | null | undefined;
1701
+ };
1702
+ };
1703
+ }>>[];
1704
+ body: import("zod").ZodObject<{
1705
+ id: import("zod").ZodString;
1706
+ version: import("zod").ZodNumber;
1707
+ status: import("zod").ZodEnum<{
1708
+ active: "active";
1709
+ inactive: "inactive";
1710
+ }>;
1711
+ }, import("zod/v4/core").$strict>;
1712
+ metadata: {
1713
+ axeda: {
1714
+ requires: string;
1715
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1716
+ };
1717
+ };
1718
+ }, import("./dto.js").RoleDto>;
1719
+ axedaRoleDelete: import("better-call").StrictEndpoint<"/axeda/role/delete", {
1720
+ method: "POST";
1721
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1722
+ session: {
1723
+ session: Record<string, any> & {
1724
+ id: string;
1725
+ createdAt: Date;
1726
+ updatedAt: Date;
1727
+ userId: string;
1728
+ expiresAt: Date;
1729
+ token: string;
1730
+ ipAddress?: string | null | undefined;
1731
+ userAgent?: string | null | undefined;
1732
+ };
1733
+ user: Record<string, any> & {
1734
+ id: string;
1735
+ createdAt: Date;
1736
+ updatedAt: Date;
1737
+ email: string;
1738
+ emailVerified: boolean;
1739
+ name: string;
1740
+ image?: string | null | undefined;
1741
+ };
1742
+ };
1743
+ }>>[];
1744
+ body: import("zod").ZodObject<{
1745
+ id: import("zod").ZodString;
1746
+ }, import("zod/v4/core").$strict>;
1747
+ metadata: {
1748
+ axeda: {
1749
+ requires: string;
1750
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1751
+ };
1752
+ };
1753
+ }, {
1754
+ deleted: true;
1755
+ }>;
1756
+ axedaAssignmentList: import("better-call").StrictEndpoint<"/axeda/assignment/list", {
1757
+ method: "GET";
1758
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1759
+ session: {
1760
+ session: Record<string, any> & {
1761
+ id: string;
1762
+ createdAt: Date;
1763
+ updatedAt: Date;
1764
+ userId: string;
1765
+ expiresAt: Date;
1766
+ token: string;
1767
+ ipAddress?: string | null | undefined;
1768
+ userAgent?: string | null | undefined;
1769
+ };
1770
+ user: Record<string, any> & {
1771
+ id: string;
1772
+ createdAt: Date;
1773
+ updatedAt: Date;
1774
+ email: string;
1775
+ emailVerified: boolean;
1776
+ name: string;
1777
+ image?: string | null | undefined;
1778
+ };
1779
+ };
1780
+ }>>[];
1781
+ query: import("zod").ZodObject<{
1782
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1783
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1784
+ scopeType: import("zod").ZodOptional<import("zod").ZodEnum<{
1785
+ company: "company";
1786
+ business: "business";
1787
+ global: "global";
1788
+ }>>;
1789
+ scopeId: import("zod").ZodOptional<import("zod").ZodString>;
1790
+ userId: import("zod").ZodOptional<import("zod").ZodString>;
1791
+ }, import("zod/v4/core").$strict>;
1792
+ metadata: {
1793
+ axeda: {
1794
+ requires: string;
1795
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1796
+ };
1797
+ };
1798
+ }, {
1799
+ items: import("./dto.js").AssignmentDto[];
1800
+ nextCursor: string | null;
1801
+ }>;
1802
+ axedaAssignmentCreate: import("better-call").StrictEndpoint<"/axeda/assignment/create", {
1803
+ method: "POST";
1804
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1805
+ session: {
1806
+ session: Record<string, any> & {
1807
+ id: string;
1808
+ createdAt: Date;
1809
+ updatedAt: Date;
1810
+ userId: string;
1811
+ expiresAt: Date;
1812
+ token: string;
1813
+ ipAddress?: string | null | undefined;
1814
+ userAgent?: string | null | undefined;
1815
+ };
1816
+ user: Record<string, any> & {
1817
+ id: string;
1818
+ createdAt: Date;
1819
+ updatedAt: Date;
1820
+ email: string;
1821
+ emailVerified: boolean;
1822
+ name: string;
1823
+ image?: string | null | undefined;
1824
+ };
1825
+ };
1826
+ }>>[];
1827
+ body: import("zod").ZodObject<{
1828
+ userId: import("zod").ZodString;
1829
+ roleId: import("zod").ZodString;
1830
+ scope: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
1831
+ type: import("zod").ZodLiteral<"global">;
1832
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
1833
+ type: import("zod").ZodEnum<{
1834
+ company: "company";
1835
+ business: "business";
1836
+ }>;
1837
+ id: import("zod").ZodString;
1838
+ }, import("zod/v4/core").$strict>]>;
1839
+ expiresAt: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodISODateTime>>;
1840
+ }, import("zod/v4/core").$strict>;
1841
+ metadata: {
1842
+ axeda: {
1843
+ requires: string;
1844
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1845
+ };
1846
+ };
1847
+ }, import("./dto.js").AssignmentDto>;
1848
+ axedaAssignmentRevoke: import("better-call").StrictEndpoint<"/axeda/assignment/revoke", {
1849
+ method: "POST";
1850
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1851
+ session: {
1852
+ session: Record<string, any> & {
1853
+ id: string;
1854
+ createdAt: Date;
1855
+ updatedAt: Date;
1856
+ userId: string;
1857
+ expiresAt: Date;
1858
+ token: string;
1859
+ ipAddress?: string | null | undefined;
1860
+ userAgent?: string | null | undefined;
1861
+ };
1862
+ user: Record<string, any> & {
1863
+ id: string;
1864
+ createdAt: Date;
1865
+ updatedAt: Date;
1866
+ email: string;
1867
+ emailVerified: boolean;
1868
+ name: string;
1869
+ image?: string | null | undefined;
1870
+ };
1871
+ };
1872
+ }>>[];
1873
+ body: import("zod").ZodObject<{
1874
+ id: import("zod").ZodString;
1875
+ }, import("zod/v4/core").$strict>;
1876
+ metadata: {
1877
+ axeda: {
1878
+ requires: string;
1879
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1880
+ };
1881
+ };
1882
+ }, {
1883
+ revoked: true;
1884
+ }>;
1885
+ axedaAuditList: import("better-call").StrictEndpoint<"/axeda/audit/list", {
1886
+ method: "GET";
1887
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1888
+ session: {
1889
+ session: Record<string, any> & {
1890
+ id: string;
1891
+ createdAt: Date;
1892
+ updatedAt: Date;
1893
+ userId: string;
1894
+ expiresAt: Date;
1895
+ token: string;
1896
+ ipAddress?: string | null | undefined;
1897
+ userAgent?: string | null | undefined;
1898
+ };
1899
+ user: Record<string, any> & {
1900
+ id: string;
1901
+ createdAt: Date;
1902
+ updatedAt: Date;
1903
+ email: string;
1904
+ emailVerified: boolean;
1905
+ name: string;
1906
+ image?: string | null | undefined;
1907
+ };
1908
+ };
1909
+ }>>[];
1910
+ query: import("zod").ZodObject<{
1911
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
1912
+ limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
1913
+ scopeType: import("zod").ZodOptional<import("zod").ZodEnum<{
1914
+ company: "company";
1915
+ business: "business";
1916
+ global: "global";
1917
+ }>>;
1918
+ scopeId: import("zod").ZodOptional<import("zod").ZodString>;
1919
+ actorId: import("zod").ZodOptional<import("zod").ZodString>;
1920
+ action: import("zod").ZodOptional<import("zod").ZodString>;
1921
+ targetType: import("zod").ZodOptional<import("zod").ZodString>;
1922
+ targetId: import("zod").ZodOptional<import("zod").ZodString>;
1923
+ }, import("zod/v4/core").$strict>;
1924
+ metadata: {
1925
+ axeda: {
1926
+ requires: string;
1927
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
1928
+ };
1929
+ };
1930
+ }, {
1931
+ items: import("./dto.js").AuditEventDto[];
1932
+ nextCursor: string | null;
1933
+ }>;
1934
+ };
1935
+ rateLimit: {
1936
+ pathMatcher: (path: string) => boolean;
1937
+ max: number;
1938
+ window: number;
1939
+ }[];
1940
+ hooks: {
1941
+ after: {
1942
+ matcher: (context: import("@better-auth/core").HookEndpointContext) => boolean;
1943
+ handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>;
1944
+ }[];
1945
+ };
1946
+ init(ctx: import("@better-auth/core").AuthContext): {
1947
+ options: {
1948
+ databaseHooks: {
1949
+ session: {
1950
+ create: {
1951
+ before: (session: {
1952
+ userId: string;
1953
+ }) => Promise<{
1954
+ data: {
1955
+ expiresAt: Date;
1956
+ };
1957
+ } | undefined>;
1958
+ };
1959
+ update: {
1960
+ before: (session: {
1961
+ expiresAt?: unknown;
1962
+ }, context: unknown) => Promise<{
1963
+ data: {
1964
+ expiresAt: Date;
1965
+ };
1966
+ } | undefined>;
1967
+ };
1968
+ };
1969
+ user: {
1970
+ delete: {
1971
+ after: (user: {
1972
+ id: string;
1973
+ }) => Promise<void>;
1974
+ };
1975
+ };
1976
+ };
1977
+ };
1978
+ };
1979
+ } & {
1980
+ /** El núcleo de Axeda (`can`, `scopesFor`, `bootstrap`…). Disponible tras crear Better Auth. */
1981
+ instance: () => Axeda;
1982
+ /** Comprueba la base de datos y sincroniza las funciones declaradas. Llamar tras migrar. */
1983
+ start: () => Promise<void>;
1984
+ /** La persistencia, para herramientas de la propia aplicación. */
1985
+ persistence: () => AxedaPersistence;
1986
+ };
1987
+ export type AxedaPlugin = ReturnType<typeof axeda>;