rabt-universe 0.0.3

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,578 @@
1
+ import type { RouterClient } from '@orpc/server';
2
+ export declare const appRouter: {
3
+ healthCheck: import("@orpc/server").DecoratedProcedure<{
4
+ auth: null;
5
+ session: {
6
+ session: {
7
+ id: string;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ userId: string;
11
+ expiresAt: Date;
12
+ token: string;
13
+ ipAddress?: string | null | undefined | undefined;
14
+ userAgent?: string | null | undefined | undefined;
15
+ };
16
+ user: {
17
+ id: string;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ email: string;
21
+ emailVerified: boolean;
22
+ name: string;
23
+ image?: string | null | undefined | undefined;
24
+ };
25
+ } | null;
26
+ } & Record<never, never>, {
27
+ auth: null;
28
+ session: {
29
+ session: {
30
+ id: string;
31
+ createdAt: Date;
32
+ updatedAt: Date;
33
+ userId: string;
34
+ expiresAt: Date;
35
+ token: string;
36
+ ipAddress?: string | null | undefined | undefined;
37
+ userAgent?: string | null | undefined | undefined;
38
+ };
39
+ user: {
40
+ id: string;
41
+ createdAt: Date;
42
+ updatedAt: Date;
43
+ email: string;
44
+ emailVerified: boolean;
45
+ name: string;
46
+ image?: string | null | undefined | undefined;
47
+ };
48
+ } | null;
49
+ }, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<string, string>, Record<never, never>, Record<never, never>>;
50
+ privateData: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<{
51
+ auth: null;
52
+ session: {
53
+ session: {
54
+ id: string;
55
+ createdAt: Date;
56
+ updatedAt: Date;
57
+ userId: string;
58
+ expiresAt: Date;
59
+ token: string;
60
+ ipAddress?: string | null | undefined | undefined;
61
+ userAgent?: string | null | undefined | undefined;
62
+ };
63
+ user: {
64
+ id: string;
65
+ createdAt: Date;
66
+ updatedAt: Date;
67
+ email: string;
68
+ emailVerified: boolean;
69
+ name: string;
70
+ image?: string | null | undefined | undefined;
71
+ };
72
+ } | null;
73
+ } & Record<never, never>, {
74
+ auth: null;
75
+ session: {
76
+ session: {
77
+ id: string;
78
+ createdAt: Date;
79
+ updatedAt: Date;
80
+ userId: string;
81
+ expiresAt: Date;
82
+ token: string;
83
+ ipAddress?: string | null | undefined | undefined;
84
+ userAgent?: string | null | undefined | undefined;
85
+ };
86
+ user: {
87
+ id: string;
88
+ createdAt: Date;
89
+ updatedAt: Date;
90
+ email: string;
91
+ emailVerified: boolean;
92
+ name: string;
93
+ image?: string | null | undefined | undefined;
94
+ };
95
+ } | null;
96
+ } & Record<never, never>, {
97
+ auth: null;
98
+ session: {
99
+ session: {
100
+ id: string;
101
+ createdAt: Date;
102
+ updatedAt: Date;
103
+ userId: string;
104
+ expiresAt: Date;
105
+ token: string;
106
+ ipAddress?: string | null | undefined | undefined;
107
+ userAgent?: string | null | undefined | undefined;
108
+ };
109
+ user: {
110
+ id: string;
111
+ createdAt: Date;
112
+ updatedAt: Date;
113
+ email: string;
114
+ emailVerified: boolean;
115
+ name: string;
116
+ image?: string | null | undefined | undefined;
117
+ };
118
+ } | null;
119
+ }>, import("@orpc/server").MergedCurrentContext<{
120
+ auth: null;
121
+ session: {
122
+ session: {
123
+ id: string;
124
+ createdAt: Date;
125
+ updatedAt: Date;
126
+ userId: string;
127
+ expiresAt: Date;
128
+ token: string;
129
+ ipAddress?: string | null | undefined | undefined;
130
+ userAgent?: string | null | undefined | undefined;
131
+ };
132
+ user: {
133
+ id: string;
134
+ createdAt: Date;
135
+ updatedAt: Date;
136
+ email: string;
137
+ emailVerified: boolean;
138
+ name: string;
139
+ image?: string | null | undefined | undefined;
140
+ };
141
+ } | null;
142
+ }, {
143
+ session: {
144
+ session: {
145
+ id: string;
146
+ createdAt: Date;
147
+ updatedAt: Date;
148
+ userId: string;
149
+ expiresAt: Date;
150
+ token: string;
151
+ ipAddress?: string | null | undefined | undefined;
152
+ userAgent?: string | null | undefined | undefined;
153
+ };
154
+ user: {
155
+ id: string;
156
+ createdAt: Date;
157
+ updatedAt: Date;
158
+ email: string;
159
+ emailVerified: boolean;
160
+ name: string;
161
+ image?: string | null | undefined | undefined;
162
+ };
163
+ };
164
+ }>, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<{
165
+ message: string;
166
+ user: {
167
+ id: string;
168
+ createdAt: Date;
169
+ updatedAt: Date;
170
+ email: string;
171
+ emailVerified: boolean;
172
+ name: string;
173
+ image?: string | null | undefined | undefined;
174
+ };
175
+ }, {
176
+ message: string;
177
+ user: {
178
+ id: string;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ email: string;
182
+ emailVerified: boolean;
183
+ name: string;
184
+ image?: string | null | undefined | undefined;
185
+ };
186
+ }>, Record<never, never>, Record<never, never>>;
187
+ todo: {
188
+ getAll: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
189
+ auth: null;
190
+ session: {
191
+ session: {
192
+ id: string;
193
+ createdAt: Date;
194
+ updatedAt: Date;
195
+ userId: string;
196
+ expiresAt: Date;
197
+ token: string;
198
+ ipAddress?: string | null | undefined | undefined;
199
+ userAgent?: string | null | undefined | undefined;
200
+ };
201
+ user: {
202
+ id: string;
203
+ createdAt: Date;
204
+ updatedAt: Date;
205
+ email: string;
206
+ emailVerified: boolean;
207
+ name: string;
208
+ image?: string | null | undefined | undefined;
209
+ };
210
+ } | null;
211
+ } & Record<never, never>, {
212
+ auth: null;
213
+ session: {
214
+ session: {
215
+ id: string;
216
+ createdAt: Date;
217
+ updatedAt: Date;
218
+ userId: string;
219
+ expiresAt: Date;
220
+ token: string;
221
+ ipAddress?: string | null | undefined | undefined;
222
+ userAgent?: string | null | undefined | undefined;
223
+ };
224
+ user: {
225
+ id: string;
226
+ createdAt: Date;
227
+ updatedAt: Date;
228
+ email: string;
229
+ emailVerified: boolean;
230
+ name: string;
231
+ image?: string | null | undefined | undefined;
232
+ };
233
+ } | null;
234
+ } & Record<never, never>, {
235
+ auth: null;
236
+ session: {
237
+ session: {
238
+ id: string;
239
+ createdAt: Date;
240
+ updatedAt: Date;
241
+ userId: string;
242
+ expiresAt: Date;
243
+ token: string;
244
+ ipAddress?: string | null | undefined | undefined;
245
+ userAgent?: string | null | undefined | undefined;
246
+ };
247
+ user: {
248
+ id: string;
249
+ createdAt: Date;
250
+ updatedAt: Date;
251
+ email: string;
252
+ emailVerified: boolean;
253
+ name: string;
254
+ image?: string | null | undefined | undefined;
255
+ };
256
+ } | null;
257
+ }>, {
258
+ auth: null;
259
+ session: {
260
+ session: {
261
+ id: string;
262
+ createdAt: Date;
263
+ updatedAt: Date;
264
+ userId: string;
265
+ expiresAt: Date;
266
+ token: string;
267
+ ipAddress?: string | null | undefined | undefined;
268
+ userAgent?: string | null | undefined | undefined;
269
+ };
270
+ user: {
271
+ id: string;
272
+ createdAt: Date;
273
+ updatedAt: Date;
274
+ email: string;
275
+ emailVerified: boolean;
276
+ name: string;
277
+ image?: string | null | undefined | undefined;
278
+ };
279
+ } | null;
280
+ }, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<{
281
+ id: number;
282
+ text: string;
283
+ completed: boolean;
284
+ }[], {
285
+ id: number;
286
+ text: string;
287
+ completed: boolean;
288
+ }[]>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
289
+ create: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
290
+ auth: null;
291
+ session: {
292
+ session: {
293
+ id: string;
294
+ createdAt: Date;
295
+ updatedAt: Date;
296
+ userId: string;
297
+ expiresAt: Date;
298
+ token: string;
299
+ ipAddress?: string | null | undefined | undefined;
300
+ userAgent?: string | null | undefined | undefined;
301
+ };
302
+ user: {
303
+ id: string;
304
+ createdAt: Date;
305
+ updatedAt: Date;
306
+ email: string;
307
+ emailVerified: boolean;
308
+ name: string;
309
+ image?: string | null | undefined | undefined;
310
+ };
311
+ } | null;
312
+ } & Record<never, never>, {
313
+ auth: null;
314
+ session: {
315
+ session: {
316
+ id: string;
317
+ createdAt: Date;
318
+ updatedAt: Date;
319
+ userId: string;
320
+ expiresAt: Date;
321
+ token: string;
322
+ ipAddress?: string | null | undefined | undefined;
323
+ userAgent?: string | null | undefined | undefined;
324
+ };
325
+ user: {
326
+ id: string;
327
+ createdAt: Date;
328
+ updatedAt: Date;
329
+ email: string;
330
+ emailVerified: boolean;
331
+ name: string;
332
+ image?: string | null | undefined | undefined;
333
+ };
334
+ } | null;
335
+ } & Record<never, never>, {
336
+ auth: null;
337
+ session: {
338
+ session: {
339
+ id: string;
340
+ createdAt: Date;
341
+ updatedAt: Date;
342
+ userId: string;
343
+ expiresAt: Date;
344
+ token: string;
345
+ ipAddress?: string | null | undefined | undefined;
346
+ userAgent?: string | null | undefined | undefined;
347
+ };
348
+ user: {
349
+ id: string;
350
+ createdAt: Date;
351
+ updatedAt: Date;
352
+ email: string;
353
+ emailVerified: boolean;
354
+ name: string;
355
+ image?: string | null | undefined | undefined;
356
+ };
357
+ } | null;
358
+ }>, {
359
+ auth: null;
360
+ session: {
361
+ session: {
362
+ id: string;
363
+ createdAt: Date;
364
+ updatedAt: Date;
365
+ userId: string;
366
+ expiresAt: Date;
367
+ token: string;
368
+ ipAddress?: string | null | undefined | undefined;
369
+ userAgent?: string | null | undefined | undefined;
370
+ };
371
+ user: {
372
+ id: string;
373
+ createdAt: Date;
374
+ updatedAt: Date;
375
+ email: string;
376
+ emailVerified: boolean;
377
+ name: string;
378
+ image?: string | null | undefined | undefined;
379
+ };
380
+ } | null;
381
+ }, import("zod").ZodObject<{
382
+ text: import("zod").ZodString;
383
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<D1Result<unknown>, D1Result<unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
384
+ toggle: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
385
+ auth: null;
386
+ session: {
387
+ session: {
388
+ id: string;
389
+ createdAt: Date;
390
+ updatedAt: Date;
391
+ userId: string;
392
+ expiresAt: Date;
393
+ token: string;
394
+ ipAddress?: string | null | undefined | undefined;
395
+ userAgent?: string | null | undefined | undefined;
396
+ };
397
+ user: {
398
+ id: string;
399
+ createdAt: Date;
400
+ updatedAt: Date;
401
+ email: string;
402
+ emailVerified: boolean;
403
+ name: string;
404
+ image?: string | null | undefined | undefined;
405
+ };
406
+ } | null;
407
+ } & Record<never, never>, {
408
+ auth: null;
409
+ session: {
410
+ session: {
411
+ id: string;
412
+ createdAt: Date;
413
+ updatedAt: Date;
414
+ userId: string;
415
+ expiresAt: Date;
416
+ token: string;
417
+ ipAddress?: string | null | undefined | undefined;
418
+ userAgent?: string | null | undefined | undefined;
419
+ };
420
+ user: {
421
+ id: string;
422
+ createdAt: Date;
423
+ updatedAt: Date;
424
+ email: string;
425
+ emailVerified: boolean;
426
+ name: string;
427
+ image?: string | null | undefined | undefined;
428
+ };
429
+ } | null;
430
+ } & Record<never, never>, {
431
+ auth: null;
432
+ session: {
433
+ session: {
434
+ id: string;
435
+ createdAt: Date;
436
+ updatedAt: Date;
437
+ userId: string;
438
+ expiresAt: Date;
439
+ token: string;
440
+ ipAddress?: string | null | undefined | undefined;
441
+ userAgent?: string | null | undefined | undefined;
442
+ };
443
+ user: {
444
+ id: string;
445
+ createdAt: Date;
446
+ updatedAt: Date;
447
+ email: string;
448
+ emailVerified: boolean;
449
+ name: string;
450
+ image?: string | null | undefined | undefined;
451
+ };
452
+ } | null;
453
+ }>, {
454
+ auth: null;
455
+ session: {
456
+ session: {
457
+ id: string;
458
+ createdAt: Date;
459
+ updatedAt: Date;
460
+ userId: string;
461
+ expiresAt: Date;
462
+ token: string;
463
+ ipAddress?: string | null | undefined | undefined;
464
+ userAgent?: string | null | undefined | undefined;
465
+ };
466
+ user: {
467
+ id: string;
468
+ createdAt: Date;
469
+ updatedAt: Date;
470
+ email: string;
471
+ emailVerified: boolean;
472
+ name: string;
473
+ image?: string | null | undefined | undefined;
474
+ };
475
+ } | null;
476
+ }, import("zod").ZodObject<{
477
+ id: import("zod").ZodNumber;
478
+ completed: import("zod").ZodBoolean;
479
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<D1Result<unknown>, D1Result<unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
480
+ delete: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
481
+ auth: null;
482
+ session: {
483
+ session: {
484
+ id: string;
485
+ createdAt: Date;
486
+ updatedAt: Date;
487
+ userId: string;
488
+ expiresAt: Date;
489
+ token: string;
490
+ ipAddress?: string | null | undefined | undefined;
491
+ userAgent?: string | null | undefined | undefined;
492
+ };
493
+ user: {
494
+ id: string;
495
+ createdAt: Date;
496
+ updatedAt: Date;
497
+ email: string;
498
+ emailVerified: boolean;
499
+ name: string;
500
+ image?: string | null | undefined | undefined;
501
+ };
502
+ } | null;
503
+ } & Record<never, never>, {
504
+ auth: null;
505
+ session: {
506
+ session: {
507
+ id: string;
508
+ createdAt: Date;
509
+ updatedAt: Date;
510
+ userId: string;
511
+ expiresAt: Date;
512
+ token: string;
513
+ ipAddress?: string | null | undefined | undefined;
514
+ userAgent?: string | null | undefined | undefined;
515
+ };
516
+ user: {
517
+ id: string;
518
+ createdAt: Date;
519
+ updatedAt: Date;
520
+ email: string;
521
+ emailVerified: boolean;
522
+ name: string;
523
+ image?: string | null | undefined | undefined;
524
+ };
525
+ } | null;
526
+ } & Record<never, never>, {
527
+ auth: null;
528
+ session: {
529
+ session: {
530
+ id: string;
531
+ createdAt: Date;
532
+ updatedAt: Date;
533
+ userId: string;
534
+ expiresAt: Date;
535
+ token: string;
536
+ ipAddress?: string | null | undefined | undefined;
537
+ userAgent?: string | null | undefined | undefined;
538
+ };
539
+ user: {
540
+ id: string;
541
+ createdAt: Date;
542
+ updatedAt: Date;
543
+ email: string;
544
+ emailVerified: boolean;
545
+ name: string;
546
+ image?: string | null | undefined | undefined;
547
+ };
548
+ } | null;
549
+ }>, {
550
+ auth: null;
551
+ session: {
552
+ session: {
553
+ id: string;
554
+ createdAt: Date;
555
+ updatedAt: Date;
556
+ userId: string;
557
+ expiresAt: Date;
558
+ token: string;
559
+ ipAddress?: string | null | undefined | undefined;
560
+ userAgent?: string | null | undefined | undefined;
561
+ };
562
+ user: {
563
+ id: string;
564
+ createdAt: Date;
565
+ updatedAt: Date;
566
+ email: string;
567
+ emailVerified: boolean;
568
+ name: string;
569
+ image?: string | null | undefined | undefined;
570
+ };
571
+ } | null;
572
+ }, import("zod").ZodObject<{
573
+ id: import("zod").ZodNumber;
574
+ }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<D1Result<unknown>, D1Result<unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
575
+ };
576
+ };
577
+ export type AppRouter = typeof appRouter;
578
+ export type AppRouterClient = RouterClient<typeof appRouter>;
@@ -0,0 +1,28 @@
1
+ import type { Auth } from 'better-auth';
2
+ import { type BetterAuthOptions } from 'better-auth/minimal';
3
+ export declare function createAuth(): Auth<{
4
+ readonly database: (options: BetterAuthOptions) => import("better-auth").DBAdapter<BetterAuthOptions>;
5
+ readonly trustedOrigins: [string];
6
+ readonly emailAndPassword: {
7
+ readonly enabled: true;
8
+ };
9
+ readonly session: {
10
+ readonly cookieCache: {
11
+ readonly enabled: true;
12
+ readonly maxAge: 60;
13
+ };
14
+ };
15
+ readonly secret: string;
16
+ readonly baseURL: string;
17
+ readonly advanced: {
18
+ readonly defaultCookieAttributes: {
19
+ readonly sameSite: "none";
20
+ readonly secure: true;
21
+ readonly httpOnly: true;
22
+ };
23
+ readonly crossSubDomainCookies: {
24
+ readonly enabled: true;
25
+ readonly domain: "<your-workers-subdomain>";
26
+ };
27
+ };
28
+ }>;