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

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,748 @@
1
+ import { z } from 'zod';
2
+ import { type CoreProvider } from './endpoints.js';
3
+ /** Compañías y negocios. El permiso lo impone el caso de uso (ver `AxedaError` → 403 / 404). */
4
+ export declare function createTenantEndpoints(core: CoreProvider): {
5
+ axedaCompanyList: import("better-call").StrictEndpoint<"/axeda/company/list", {
6
+ method: "GET";
7
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
8
+ session: {
9
+ session: Record<string, any> & {
10
+ id: string;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ userId: string;
14
+ expiresAt: Date;
15
+ token: string;
16
+ ipAddress?: string | null | undefined;
17
+ userAgent?: string | null | undefined;
18
+ };
19
+ user: Record<string, any> & {
20
+ id: string;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ email: string;
24
+ emailVerified: boolean;
25
+ name: string;
26
+ image?: string | null | undefined;
27
+ };
28
+ };
29
+ }>>[];
30
+ query: z.ZodObject<{
31
+ deleted: z.ZodOptional<z.ZodEnum<{
32
+ exclude: "exclude";
33
+ include: "include";
34
+ only: "only";
35
+ }>>;
36
+ cursor: z.ZodOptional<z.ZodString>;
37
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
38
+ }, z.core.$strict>;
39
+ metadata: {
40
+ axeda: {
41
+ requires: string;
42
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
43
+ };
44
+ };
45
+ }, {
46
+ items: import("./dto.js").CompanyDto[];
47
+ nextCursor: string | null;
48
+ }>;
49
+ axedaCompanyGet: import("better-call").StrictEndpoint<"/axeda/company/get", {
50
+ method: "GET";
51
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
52
+ session: {
53
+ session: Record<string, any> & {
54
+ id: string;
55
+ createdAt: Date;
56
+ updatedAt: Date;
57
+ userId: string;
58
+ expiresAt: Date;
59
+ token: string;
60
+ ipAddress?: string | null | undefined;
61
+ userAgent?: string | null | undefined;
62
+ };
63
+ user: Record<string, any> & {
64
+ id: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ email: string;
68
+ emailVerified: boolean;
69
+ name: string;
70
+ image?: string | null | undefined;
71
+ };
72
+ };
73
+ }>>[];
74
+ query: z.ZodObject<{
75
+ id: z.ZodString;
76
+ }, z.core.$strict>;
77
+ metadata: {
78
+ axeda: {
79
+ requires: string;
80
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
81
+ };
82
+ };
83
+ }, import("./dto.js").CompanyDto>;
84
+ axedaCompanyCreate: import("better-call").StrictEndpoint<"/axeda/company/create", {
85
+ method: "POST";
86
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
87
+ session: {
88
+ session: Record<string, any> & {
89
+ id: string;
90
+ createdAt: Date;
91
+ updatedAt: Date;
92
+ userId: string;
93
+ expiresAt: Date;
94
+ token: string;
95
+ ipAddress?: string | null | undefined;
96
+ userAgent?: string | null | undefined;
97
+ };
98
+ user: Record<string, any> & {
99
+ id: string;
100
+ createdAt: Date;
101
+ updatedAt: Date;
102
+ email: string;
103
+ emailVerified: boolean;
104
+ name: string;
105
+ image?: string | null | undefined;
106
+ };
107
+ };
108
+ }>>[];
109
+ body: z.ZodObject<{
110
+ slug: z.ZodString;
111
+ name: z.ZodString;
112
+ legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
116
+ }, z.core.$strict>;
117
+ metadata: {
118
+ axeda: {
119
+ requires: string;
120
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
121
+ };
122
+ };
123
+ }, import("./dto.js").CompanyDto>;
124
+ axedaCompanyUpdate: import("better-call").StrictEndpoint<"/axeda/company/update", {
125
+ method: "POST";
126
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
127
+ session: {
128
+ session: Record<string, any> & {
129
+ id: string;
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
+ userId: string;
133
+ expiresAt: Date;
134
+ token: string;
135
+ ipAddress?: string | null | undefined;
136
+ userAgent?: string | null | undefined;
137
+ };
138
+ user: Record<string, any> & {
139
+ id: string;
140
+ createdAt: Date;
141
+ updatedAt: Date;
142
+ email: string;
143
+ emailVerified: boolean;
144
+ name: string;
145
+ image?: string | null | undefined;
146
+ };
147
+ };
148
+ }>>[];
149
+ body: z.ZodObject<{
150
+ id: z.ZodString;
151
+ version: z.ZodNumber;
152
+ name: z.ZodOptional<z.ZodString>;
153
+ legalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
157
+ }, z.core.$strict>;
158
+ metadata: {
159
+ axeda: {
160
+ requires: string;
161
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
162
+ };
163
+ };
164
+ }, import("./dto.js").CompanyDto>;
165
+ axedaCompanySetStatus: import("better-call").StrictEndpoint<"/axeda/company/set-status", {
166
+ method: "POST";
167
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
168
+ session: {
169
+ session: Record<string, any> & {
170
+ id: string;
171
+ createdAt: Date;
172
+ updatedAt: Date;
173
+ userId: string;
174
+ expiresAt: Date;
175
+ token: string;
176
+ ipAddress?: string | null | undefined;
177
+ userAgent?: string | null | undefined;
178
+ };
179
+ user: Record<string, any> & {
180
+ id: string;
181
+ createdAt: Date;
182
+ updatedAt: Date;
183
+ email: string;
184
+ emailVerified: boolean;
185
+ name: string;
186
+ image?: string | null | undefined;
187
+ };
188
+ };
189
+ }>>[];
190
+ body: z.ZodObject<{
191
+ id: z.ZodString;
192
+ version: z.ZodNumber;
193
+ status: z.ZodEnum<{
194
+ active: "active";
195
+ inactive: "inactive";
196
+ }>;
197
+ }, z.core.$strict>;
198
+ metadata: {
199
+ axeda: {
200
+ requires: string;
201
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
202
+ };
203
+ };
204
+ }, import("./dto.js").CompanyDto>;
205
+ axedaCompanyDelete: import("better-call").StrictEndpoint<"/axeda/company/delete", {
206
+ method: "POST";
207
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
208
+ session: {
209
+ session: Record<string, any> & {
210
+ id: string;
211
+ createdAt: Date;
212
+ updatedAt: Date;
213
+ userId: string;
214
+ expiresAt: Date;
215
+ token: string;
216
+ ipAddress?: string | null | undefined;
217
+ userAgent?: string | null | undefined;
218
+ };
219
+ user: Record<string, any> & {
220
+ id: string;
221
+ createdAt: Date;
222
+ updatedAt: Date;
223
+ email: string;
224
+ emailVerified: boolean;
225
+ name: string;
226
+ image?: string | null | undefined;
227
+ };
228
+ };
229
+ }>>[];
230
+ body: z.ZodObject<{
231
+ id: z.ZodString;
232
+ version: z.ZodNumber;
233
+ immediate: z.ZodOptional<z.ZodBoolean>;
234
+ }, z.core.$strict>;
235
+ metadata: {
236
+ axeda: {
237
+ requires: string;
238
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
239
+ };
240
+ };
241
+ }, {
242
+ deleted: true;
243
+ }>;
244
+ axedaCompanyRestore: import("better-call").StrictEndpoint<"/axeda/company/restore", {
245
+ method: "POST";
246
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
247
+ session: {
248
+ session: Record<string, any> & {
249
+ id: string;
250
+ createdAt: Date;
251
+ updatedAt: Date;
252
+ userId: string;
253
+ expiresAt: Date;
254
+ token: string;
255
+ ipAddress?: string | null | undefined;
256
+ userAgent?: string | null | undefined;
257
+ };
258
+ user: Record<string, any> & {
259
+ id: string;
260
+ createdAt: Date;
261
+ updatedAt: Date;
262
+ email: string;
263
+ emailVerified: boolean;
264
+ name: string;
265
+ image?: string | null | undefined;
266
+ };
267
+ };
268
+ }>>[];
269
+ body: z.ZodObject<{
270
+ id: z.ZodString;
271
+ version: z.ZodNumber;
272
+ }, z.core.$strict>;
273
+ metadata: {
274
+ axeda: {
275
+ requires: string;
276
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
277
+ };
278
+ };
279
+ }, import("./dto.js").CompanyDto>;
280
+ axedaBusinessList: import("better-call").StrictEndpoint<"/axeda/business/list", {
281
+ method: "GET";
282
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
283
+ session: {
284
+ session: Record<string, any> & {
285
+ id: string;
286
+ createdAt: Date;
287
+ updatedAt: Date;
288
+ userId: string;
289
+ expiresAt: Date;
290
+ token: string;
291
+ ipAddress?: string | null | undefined;
292
+ userAgent?: string | null | undefined;
293
+ };
294
+ user: Record<string, any> & {
295
+ id: string;
296
+ createdAt: Date;
297
+ updatedAt: Date;
298
+ email: string;
299
+ emailVerified: boolean;
300
+ name: string;
301
+ image?: string | null | undefined;
302
+ };
303
+ };
304
+ }>>[];
305
+ query: z.ZodObject<{
306
+ companyId: z.ZodString;
307
+ deleted: z.ZodOptional<z.ZodEnum<{
308
+ exclude: "exclude";
309
+ include: "include";
310
+ only: "only";
311
+ }>>;
312
+ cursor: z.ZodOptional<z.ZodString>;
313
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
314
+ }, z.core.$strict>;
315
+ metadata: {
316
+ axeda: {
317
+ requires: string;
318
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
319
+ };
320
+ };
321
+ }, {
322
+ items: import("./dto.js").BusinessDto[];
323
+ nextCursor: string | null;
324
+ }>;
325
+ axedaBusinessGet: import("better-call").StrictEndpoint<"/axeda/business/get", {
326
+ method: "GET";
327
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
328
+ session: {
329
+ session: Record<string, any> & {
330
+ id: string;
331
+ createdAt: Date;
332
+ updatedAt: Date;
333
+ userId: string;
334
+ expiresAt: Date;
335
+ token: string;
336
+ ipAddress?: string | null | undefined;
337
+ userAgent?: string | null | undefined;
338
+ };
339
+ user: Record<string, any> & {
340
+ id: string;
341
+ createdAt: Date;
342
+ updatedAt: Date;
343
+ email: string;
344
+ emailVerified: boolean;
345
+ name: string;
346
+ image?: string | null | undefined;
347
+ };
348
+ };
349
+ }>>[];
350
+ query: z.ZodObject<{
351
+ id: z.ZodString;
352
+ }, z.core.$strict>;
353
+ metadata: {
354
+ axeda: {
355
+ requires: string;
356
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
357
+ };
358
+ };
359
+ }, import("./dto.js").BusinessDto>;
360
+ axedaBusinessCreate: import("better-call").StrictEndpoint<"/axeda/business/create", {
361
+ method: "POST";
362
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
363
+ session: {
364
+ session: Record<string, any> & {
365
+ id: string;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ userId: string;
369
+ expiresAt: Date;
370
+ token: string;
371
+ ipAddress?: string | null | undefined;
372
+ userAgent?: string | null | undefined;
373
+ };
374
+ user: Record<string, any> & {
375
+ id: string;
376
+ createdAt: Date;
377
+ updatedAt: Date;
378
+ email: string;
379
+ emailVerified: boolean;
380
+ name: string;
381
+ image?: string | null | undefined;
382
+ };
383
+ };
384
+ }>>[];
385
+ body: z.ZodObject<{
386
+ companyId: z.ZodString;
387
+ slug: z.ZodString;
388
+ name: z.ZodString;
389
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
390
+ faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
391
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
392
+ }, z.core.$strict>;
393
+ metadata: {
394
+ axeda: {
395
+ requires: string;
396
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
397
+ };
398
+ };
399
+ }, import("./dto.js").BusinessDto>;
400
+ axedaBusinessUpdate: import("better-call").StrictEndpoint<"/axeda/business/update", {
401
+ method: "POST";
402
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
403
+ session: {
404
+ session: Record<string, any> & {
405
+ id: string;
406
+ createdAt: Date;
407
+ updatedAt: Date;
408
+ userId: string;
409
+ expiresAt: Date;
410
+ token: string;
411
+ ipAddress?: string | null | undefined;
412
+ userAgent?: string | null | undefined;
413
+ };
414
+ user: Record<string, any> & {
415
+ id: string;
416
+ createdAt: Date;
417
+ updatedAt: Date;
418
+ email: string;
419
+ emailVerified: boolean;
420
+ name: string;
421
+ image?: string | null | undefined;
422
+ };
423
+ };
424
+ }>>[];
425
+ body: z.ZodObject<{
426
+ id: z.ZodString;
427
+ version: z.ZodNumber;
428
+ name: z.ZodOptional<z.ZodString>;
429
+ logoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
430
+ faviconUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
432
+ }, z.core.$strict>;
433
+ metadata: {
434
+ axeda: {
435
+ requires: string;
436
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
437
+ };
438
+ };
439
+ }, import("./dto.js").BusinessDto>;
440
+ axedaBusinessSetStatus: import("better-call").StrictEndpoint<"/axeda/business/set-status", {
441
+ method: "POST";
442
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
443
+ session: {
444
+ session: Record<string, any> & {
445
+ id: string;
446
+ createdAt: Date;
447
+ updatedAt: Date;
448
+ userId: string;
449
+ expiresAt: Date;
450
+ token: string;
451
+ ipAddress?: string | null | undefined;
452
+ userAgent?: string | null | undefined;
453
+ };
454
+ user: Record<string, any> & {
455
+ id: string;
456
+ createdAt: Date;
457
+ updatedAt: Date;
458
+ email: string;
459
+ emailVerified: boolean;
460
+ name: string;
461
+ image?: string | null | undefined;
462
+ };
463
+ };
464
+ }>>[];
465
+ body: z.ZodObject<{
466
+ id: z.ZodString;
467
+ version: z.ZodNumber;
468
+ status: z.ZodEnum<{
469
+ active: "active";
470
+ inactive: "inactive";
471
+ }>;
472
+ }, z.core.$strict>;
473
+ metadata: {
474
+ axeda: {
475
+ requires: string;
476
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
477
+ };
478
+ };
479
+ }, import("./dto.js").BusinessDto>;
480
+ axedaBusinessDelete: import("better-call").StrictEndpoint<"/axeda/business/delete", {
481
+ method: "POST";
482
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
483
+ session: {
484
+ session: Record<string, any> & {
485
+ id: string;
486
+ createdAt: Date;
487
+ updatedAt: Date;
488
+ userId: string;
489
+ expiresAt: Date;
490
+ token: string;
491
+ ipAddress?: string | null | undefined;
492
+ userAgent?: string | null | undefined;
493
+ };
494
+ user: Record<string, any> & {
495
+ id: string;
496
+ createdAt: Date;
497
+ updatedAt: Date;
498
+ email: string;
499
+ emailVerified: boolean;
500
+ name: string;
501
+ image?: string | null | undefined;
502
+ };
503
+ };
504
+ }>>[];
505
+ body: z.ZodObject<{
506
+ id: z.ZodString;
507
+ version: z.ZodNumber;
508
+ immediate: z.ZodOptional<z.ZodBoolean>;
509
+ }, z.core.$strict>;
510
+ metadata: {
511
+ axeda: {
512
+ requires: string;
513
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
514
+ };
515
+ };
516
+ }, {
517
+ deleted: true;
518
+ }>;
519
+ axedaBusinessRestore: import("better-call").StrictEndpoint<"/axeda/business/restore", {
520
+ method: "POST";
521
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
522
+ session: {
523
+ session: Record<string, any> & {
524
+ id: string;
525
+ createdAt: Date;
526
+ updatedAt: Date;
527
+ userId: string;
528
+ expiresAt: Date;
529
+ token: string;
530
+ ipAddress?: string | null | undefined;
531
+ userAgent?: string | null | undefined;
532
+ };
533
+ user: Record<string, any> & {
534
+ id: string;
535
+ createdAt: Date;
536
+ updatedAt: Date;
537
+ email: string;
538
+ emailVerified: boolean;
539
+ name: string;
540
+ image?: string | null | undefined;
541
+ };
542
+ };
543
+ }>>[];
544
+ body: z.ZodObject<{
545
+ id: z.ZodString;
546
+ version: z.ZodNumber;
547
+ }, z.core.$strict>;
548
+ metadata: {
549
+ axeda: {
550
+ requires: string;
551
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
552
+ };
553
+ };
554
+ }, import("./dto.js").BusinessDto>;
555
+ };
556
+ /** Invitaciones. Aceptar solo exige sesión: lo que lo autoriza es el secreto y el correo verificado. */
557
+ export declare function createInvitationEndpoints(core: CoreProvider): {
558
+ axedaInvitationList: import("better-call").StrictEndpoint<"/axeda/invitation/list", {
559
+ method: "GET";
560
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
561
+ session: {
562
+ session: Record<string, any> & {
563
+ id: string;
564
+ createdAt: Date;
565
+ updatedAt: Date;
566
+ userId: string;
567
+ expiresAt: Date;
568
+ token: string;
569
+ ipAddress?: string | null | undefined;
570
+ userAgent?: string | null | undefined;
571
+ };
572
+ user: Record<string, any> & {
573
+ id: string;
574
+ createdAt: Date;
575
+ updatedAt: Date;
576
+ email: string;
577
+ emailVerified: boolean;
578
+ name: string;
579
+ image?: string | null | undefined;
580
+ };
581
+ };
582
+ }>>[];
583
+ query: z.ZodObject<{
584
+ pendingOnly: z.ZodOptional<z.ZodEnum<{
585
+ true: "true";
586
+ false: "false";
587
+ }>>;
588
+ cursor: z.ZodOptional<z.ZodString>;
589
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
590
+ scopeType: z.ZodOptional<z.ZodEnum<{
591
+ company: "company";
592
+ business: "business";
593
+ global: "global";
594
+ }>>;
595
+ scopeId: z.ZodOptional<z.ZodString>;
596
+ }, z.core.$strict>;
597
+ metadata: {
598
+ axeda: {
599
+ requires: string;
600
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
601
+ };
602
+ };
603
+ }, {
604
+ items: import("./dto.js").InvitationDto[];
605
+ nextCursor: string | null;
606
+ }>;
607
+ axedaInvitationCreate: import("better-call").StrictEndpoint<"/axeda/invitation/create", {
608
+ method: "POST";
609
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
610
+ session: {
611
+ session: Record<string, any> & {
612
+ id: string;
613
+ createdAt: Date;
614
+ updatedAt: Date;
615
+ userId: string;
616
+ expiresAt: Date;
617
+ token: string;
618
+ ipAddress?: string | null | undefined;
619
+ userAgent?: string | null | undefined;
620
+ };
621
+ user: Record<string, any> & {
622
+ id: string;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ email: string;
626
+ emailVerified: boolean;
627
+ name: string;
628
+ image?: string | null | undefined;
629
+ };
630
+ };
631
+ }>>[];
632
+ body: z.ZodObject<{
633
+ email: z.ZodString;
634
+ scope: z.ZodUnion<readonly [z.ZodObject<{
635
+ type: z.ZodLiteral<"global">;
636
+ }, z.core.$strict>, z.ZodObject<{
637
+ type: z.ZodEnum<{
638
+ company: "company";
639
+ business: "business";
640
+ }>;
641
+ id: z.ZodString;
642
+ }, z.core.$strict>]>;
643
+ roleIds: z.ZodArray<z.ZodString>;
644
+ ttlHours: z.ZodOptional<z.ZodNumber>;
645
+ }, z.core.$strict>;
646
+ metadata: {
647
+ axeda: {
648
+ requires: string;
649
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
650
+ };
651
+ };
652
+ }, import("./dto.js").InvitationDto>;
653
+ axedaInvitationAccept: import("better-call").StrictEndpoint<"/axeda/invitation/accept", {
654
+ method: "POST";
655
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
656
+ session: {
657
+ session: Record<string, any> & {
658
+ id: string;
659
+ createdAt: Date;
660
+ updatedAt: Date;
661
+ userId: string;
662
+ expiresAt: Date;
663
+ token: string;
664
+ ipAddress?: string | null | undefined;
665
+ userAgent?: string | null | undefined;
666
+ };
667
+ user: Record<string, any> & {
668
+ id: string;
669
+ createdAt: Date;
670
+ updatedAt: Date;
671
+ email: string;
672
+ emailVerified: boolean;
673
+ name: string;
674
+ image?: string | null | undefined;
675
+ };
676
+ };
677
+ }>>[];
678
+ body: z.ZodObject<{
679
+ token: z.ZodString;
680
+ }, z.core.$strict>;
681
+ metadata: {
682
+ axeda: {
683
+ requires: string;
684
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
685
+ };
686
+ };
687
+ }, {
688
+ assignments: import("./dto.js").AssignmentDto[];
689
+ }>;
690
+ axedaInvitationRevoke: import("better-call").StrictEndpoint<"/axeda/invitation/revoke", {
691
+ method: "POST";
692
+ use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
693
+ session: {
694
+ session: Record<string, any> & {
695
+ id: string;
696
+ createdAt: Date;
697
+ updatedAt: Date;
698
+ userId: string;
699
+ expiresAt: Date;
700
+ token: string;
701
+ ipAddress?: string | null | undefined;
702
+ userAgent?: string | null | undefined;
703
+ };
704
+ user: Record<string, any> & {
705
+ id: string;
706
+ createdAt: Date;
707
+ updatedAt: Date;
708
+ email: string;
709
+ emailVerified: boolean;
710
+ name: string;
711
+ image?: string | null | undefined;
712
+ };
713
+ };
714
+ }>>[];
715
+ body: z.ZodObject<{
716
+ id: z.ZodString;
717
+ }, z.core.$strict>;
718
+ metadata: {
719
+ axeda: {
720
+ requires: string;
721
+ scope: "own" | "any" | "global" | "scope-parameter" | "per-target";
722
+ };
723
+ };
724
+ }, {
725
+ revoked: true;
726
+ }>;
727
+ };
728
+ /**
729
+ * Identidad pública: nombre y logos de una compañía o negocio activo. **No** pide sesión, por eso
730
+ * está aparte y solo se registra si la aplicación lo activa (`publicIdentity: true`). Una
731
+ * compañía inexistente, inactiva o borrada responde igual: 404.
732
+ */
733
+ export declare function createPublicEndpoints(core: CoreProvider, enabled: () => boolean): {
734
+ axedaPublicIdentity: import("better-call").StrictEndpoint<"/axeda/public/identity", {
735
+ method: "GET";
736
+ query: z.ZodObject<{
737
+ company: z.ZodString;
738
+ business: z.ZodOptional<z.ZodString>;
739
+ }, z.core.$strict>;
740
+ metadata: {
741
+ axeda: {
742
+ public: boolean;
743
+ requires: string;
744
+ scope: "own";
745
+ };
746
+ };
747
+ }, import("@teamblind/axeda-core").PublicIdentity>;
748
+ };