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,147 @@
1
+ export type * from './api/routers/index.ts';
2
+ import { OpenAPIHandler } from '@orpc/openapi/fetch';
3
+ import { RPCHandler } from '@orpc/server/fetch';
4
+ import { Hono } from 'hono';
5
+ declare const app: Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
6
+ export declare const apiHandler: OpenAPIHandler<import("@orpc/server").MergedInitialContext<{
7
+ auth: null;
8
+ session: {
9
+ session: {
10
+ id: string;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ userId: string;
14
+ expiresAt: Date;
15
+ token: string;
16
+ ipAddress?: string | null | undefined | undefined;
17
+ userAgent?: string | null | undefined | undefined;
18
+ };
19
+ user: {
20
+ id: string;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
+ email: string;
24
+ emailVerified: boolean;
25
+ name: string;
26
+ image?: string | null | undefined | undefined;
27
+ };
28
+ } | null;
29
+ } & Record<never, never>, {
30
+ auth: null;
31
+ session: {
32
+ session: {
33
+ id: string;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ userId: string;
37
+ expiresAt: Date;
38
+ token: string;
39
+ ipAddress?: string | null | undefined | undefined;
40
+ userAgent?: string | null | undefined | undefined;
41
+ };
42
+ user: {
43
+ id: string;
44
+ createdAt: Date;
45
+ updatedAt: Date;
46
+ email: string;
47
+ emailVerified: boolean;
48
+ name: string;
49
+ image?: string | null | undefined | undefined;
50
+ };
51
+ } | null;
52
+ } & Record<never, never>, {
53
+ auth: null;
54
+ session: {
55
+ session: {
56
+ id: string;
57
+ createdAt: Date;
58
+ updatedAt: Date;
59
+ userId: string;
60
+ expiresAt: Date;
61
+ token: string;
62
+ ipAddress?: string | null | undefined | undefined;
63
+ userAgent?: string | null | undefined | undefined;
64
+ };
65
+ user: {
66
+ id: string;
67
+ createdAt: Date;
68
+ updatedAt: Date;
69
+ email: string;
70
+ emailVerified: boolean;
71
+ name: string;
72
+ image?: string | null | undefined | undefined;
73
+ };
74
+ } | null;
75
+ }>>;
76
+ export declare const rpcHandler: RPCHandler<import("@orpc/server").MergedInitialContext<{
77
+ auth: null;
78
+ session: {
79
+ session: {
80
+ id: string;
81
+ createdAt: Date;
82
+ updatedAt: Date;
83
+ userId: string;
84
+ expiresAt: Date;
85
+ token: string;
86
+ ipAddress?: string | null | undefined | undefined;
87
+ userAgent?: string | null | undefined | undefined;
88
+ };
89
+ user: {
90
+ id: string;
91
+ createdAt: Date;
92
+ updatedAt: Date;
93
+ email: string;
94
+ emailVerified: boolean;
95
+ name: string;
96
+ image?: string | null | undefined | undefined;
97
+ };
98
+ } | null;
99
+ } & Record<never, never>, {
100
+ auth: null;
101
+ session: {
102
+ session: {
103
+ id: string;
104
+ createdAt: Date;
105
+ updatedAt: Date;
106
+ userId: string;
107
+ expiresAt: Date;
108
+ token: string;
109
+ ipAddress?: string | null | undefined | undefined;
110
+ userAgent?: string | null | undefined | undefined;
111
+ };
112
+ user: {
113
+ id: string;
114
+ createdAt: Date;
115
+ updatedAt: Date;
116
+ email: string;
117
+ emailVerified: boolean;
118
+ name: string;
119
+ image?: string | null | undefined | undefined;
120
+ };
121
+ } | null;
122
+ } & Record<never, never>, {
123
+ auth: null;
124
+ session: {
125
+ session: {
126
+ id: string;
127
+ createdAt: Date;
128
+ updatedAt: Date;
129
+ userId: string;
130
+ expiresAt: Date;
131
+ token: string;
132
+ ipAddress?: string | null | undefined | undefined;
133
+ userAgent?: string | null | undefined | undefined;
134
+ };
135
+ user: {
136
+ id: string;
137
+ createdAt: Date;
138
+ updatedAt: Date;
139
+ email: string;
140
+ emailVerified: boolean;
141
+ name: string;
142
+ image?: string | null | undefined | undefined;
143
+ };
144
+ } | null;
145
+ }>>;
146
+ export default app;
147
+ export type App = typeof app;
@@ -0,0 +1,390 @@
1
+ import z from 'zod';
2
+ export declare const todoRouter: {
3
+ getAll: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
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
+ } & Record<never, never>, {
50
+ auth: null;
51
+ session: {
52
+ session: {
53
+ id: string;
54
+ createdAt: Date;
55
+ updatedAt: Date;
56
+ userId: string;
57
+ expiresAt: Date;
58
+ token: string;
59
+ ipAddress?: string | null | undefined | undefined;
60
+ userAgent?: string | null | undefined | undefined;
61
+ };
62
+ user: {
63
+ id: string;
64
+ createdAt: Date;
65
+ updatedAt: Date;
66
+ email: string;
67
+ emailVerified: boolean;
68
+ name: string;
69
+ image?: string | null | undefined | undefined;
70
+ };
71
+ } | null;
72
+ }>, {
73
+ auth: null;
74
+ session: {
75
+ session: {
76
+ id: string;
77
+ createdAt: Date;
78
+ updatedAt: Date;
79
+ userId: string;
80
+ expiresAt: Date;
81
+ token: string;
82
+ ipAddress?: string | null | undefined | undefined;
83
+ userAgent?: string | null | undefined | undefined;
84
+ };
85
+ user: {
86
+ id: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ email: string;
90
+ emailVerified: boolean;
91
+ name: string;
92
+ image?: string | null | undefined | undefined;
93
+ };
94
+ } | null;
95
+ }, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<{
96
+ id: number;
97
+ text: string;
98
+ completed: boolean;
99
+ }[], {
100
+ id: number;
101
+ text: string;
102
+ completed: boolean;
103
+ }[]>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
104
+ create: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
105
+ auth: null;
106
+ session: {
107
+ session: {
108
+ id: string;
109
+ createdAt: Date;
110
+ updatedAt: Date;
111
+ userId: string;
112
+ expiresAt: Date;
113
+ token: string;
114
+ ipAddress?: string | null | undefined | undefined;
115
+ userAgent?: string | null | undefined | undefined;
116
+ };
117
+ user: {
118
+ id: string;
119
+ createdAt: Date;
120
+ updatedAt: Date;
121
+ email: string;
122
+ emailVerified: boolean;
123
+ name: string;
124
+ image?: string | null | undefined | undefined;
125
+ };
126
+ } | null;
127
+ } & Record<never, never>, {
128
+ auth: null;
129
+ session: {
130
+ session: {
131
+ id: string;
132
+ createdAt: Date;
133
+ updatedAt: Date;
134
+ userId: string;
135
+ expiresAt: Date;
136
+ token: string;
137
+ ipAddress?: string | null | undefined | undefined;
138
+ userAgent?: string | null | undefined | undefined;
139
+ };
140
+ user: {
141
+ id: string;
142
+ createdAt: Date;
143
+ updatedAt: Date;
144
+ email: string;
145
+ emailVerified: boolean;
146
+ name: string;
147
+ image?: string | null | undefined | undefined;
148
+ };
149
+ } | null;
150
+ } & Record<never, never>, {
151
+ auth: null;
152
+ session: {
153
+ session: {
154
+ id: string;
155
+ createdAt: Date;
156
+ updatedAt: Date;
157
+ userId: string;
158
+ expiresAt: Date;
159
+ token: string;
160
+ ipAddress?: string | null | undefined | undefined;
161
+ userAgent?: string | null | undefined | undefined;
162
+ };
163
+ user: {
164
+ id: string;
165
+ createdAt: Date;
166
+ updatedAt: Date;
167
+ email: string;
168
+ emailVerified: boolean;
169
+ name: string;
170
+ image?: string | null | undefined | undefined;
171
+ };
172
+ } | null;
173
+ }>, {
174
+ auth: null;
175
+ session: {
176
+ session: {
177
+ id: string;
178
+ createdAt: Date;
179
+ updatedAt: Date;
180
+ userId: string;
181
+ expiresAt: Date;
182
+ token: string;
183
+ ipAddress?: string | null | undefined | undefined;
184
+ userAgent?: string | null | undefined | undefined;
185
+ };
186
+ user: {
187
+ id: string;
188
+ createdAt: Date;
189
+ updatedAt: Date;
190
+ email: string;
191
+ emailVerified: boolean;
192
+ name: string;
193
+ image?: string | null | undefined | undefined;
194
+ };
195
+ } | null;
196
+ }, z.ZodObject<{
197
+ text: z.ZodString;
198
+ }, z.core.$strip>, import("@orpc/contract").Schema<D1Result<unknown>, D1Result<unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
199
+ toggle: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
200
+ auth: null;
201
+ session: {
202
+ session: {
203
+ id: string;
204
+ createdAt: Date;
205
+ updatedAt: Date;
206
+ userId: string;
207
+ expiresAt: Date;
208
+ token: string;
209
+ ipAddress?: string | null | undefined | undefined;
210
+ userAgent?: string | null | undefined | undefined;
211
+ };
212
+ user: {
213
+ id: string;
214
+ createdAt: Date;
215
+ updatedAt: Date;
216
+ email: string;
217
+ emailVerified: boolean;
218
+ name: string;
219
+ image?: string | null | undefined | undefined;
220
+ };
221
+ } | null;
222
+ } & Record<never, never>, {
223
+ auth: null;
224
+ session: {
225
+ session: {
226
+ id: string;
227
+ createdAt: Date;
228
+ updatedAt: Date;
229
+ userId: string;
230
+ expiresAt: Date;
231
+ token: string;
232
+ ipAddress?: string | null | undefined | undefined;
233
+ userAgent?: string | null | undefined | undefined;
234
+ };
235
+ user: {
236
+ id: string;
237
+ createdAt: Date;
238
+ updatedAt: Date;
239
+ email: string;
240
+ emailVerified: boolean;
241
+ name: string;
242
+ image?: string | null | undefined | undefined;
243
+ };
244
+ } | null;
245
+ } & Record<never, never>, {
246
+ auth: null;
247
+ session: {
248
+ session: {
249
+ id: string;
250
+ createdAt: Date;
251
+ updatedAt: Date;
252
+ userId: string;
253
+ expiresAt: Date;
254
+ token: string;
255
+ ipAddress?: string | null | undefined | undefined;
256
+ userAgent?: string | null | undefined | undefined;
257
+ };
258
+ user: {
259
+ id: string;
260
+ createdAt: Date;
261
+ updatedAt: Date;
262
+ email: string;
263
+ emailVerified: boolean;
264
+ name: string;
265
+ image?: string | null | undefined | undefined;
266
+ };
267
+ } | null;
268
+ }>, {
269
+ auth: null;
270
+ session: {
271
+ session: {
272
+ id: string;
273
+ createdAt: Date;
274
+ updatedAt: Date;
275
+ userId: string;
276
+ expiresAt: Date;
277
+ token: string;
278
+ ipAddress?: string | null | undefined | undefined;
279
+ userAgent?: string | null | undefined | undefined;
280
+ };
281
+ user: {
282
+ id: string;
283
+ createdAt: Date;
284
+ updatedAt: Date;
285
+ email: string;
286
+ emailVerified: boolean;
287
+ name: string;
288
+ image?: string | null | undefined | undefined;
289
+ };
290
+ } | null;
291
+ }, z.ZodObject<{
292
+ id: z.ZodNumber;
293
+ completed: z.ZodBoolean;
294
+ }, z.core.$strip>, import("@orpc/contract").Schema<D1Result<unknown>, D1Result<unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
295
+ delete: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<{
296
+ auth: null;
297
+ session: {
298
+ session: {
299
+ id: string;
300
+ createdAt: Date;
301
+ updatedAt: Date;
302
+ userId: string;
303
+ expiresAt: Date;
304
+ token: string;
305
+ ipAddress?: string | null | undefined | undefined;
306
+ userAgent?: string | null | undefined | undefined;
307
+ };
308
+ user: {
309
+ id: string;
310
+ createdAt: Date;
311
+ updatedAt: Date;
312
+ email: string;
313
+ emailVerified: boolean;
314
+ name: string;
315
+ image?: string | null | undefined | undefined;
316
+ };
317
+ } | null;
318
+ } & Record<never, never>, {
319
+ auth: null;
320
+ session: {
321
+ session: {
322
+ id: string;
323
+ createdAt: Date;
324
+ updatedAt: Date;
325
+ userId: string;
326
+ expiresAt: Date;
327
+ token: string;
328
+ ipAddress?: string | null | undefined | undefined;
329
+ userAgent?: string | null | undefined | undefined;
330
+ };
331
+ user: {
332
+ id: string;
333
+ createdAt: Date;
334
+ updatedAt: Date;
335
+ email: string;
336
+ emailVerified: boolean;
337
+ name: string;
338
+ image?: string | null | undefined | undefined;
339
+ };
340
+ } | null;
341
+ } & Record<never, never>, {
342
+ auth: null;
343
+ session: {
344
+ session: {
345
+ id: string;
346
+ createdAt: Date;
347
+ updatedAt: Date;
348
+ userId: string;
349
+ expiresAt: Date;
350
+ token: string;
351
+ ipAddress?: string | null | undefined | undefined;
352
+ userAgent?: string | null | undefined | undefined;
353
+ };
354
+ user: {
355
+ id: string;
356
+ createdAt: Date;
357
+ updatedAt: Date;
358
+ email: string;
359
+ emailVerified: boolean;
360
+ name: string;
361
+ image?: string | null | undefined | undefined;
362
+ };
363
+ } | null;
364
+ }>, {
365
+ auth: null;
366
+ session: {
367
+ session: {
368
+ id: string;
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ userId: string;
372
+ expiresAt: Date;
373
+ token: string;
374
+ ipAddress?: string | null | undefined | undefined;
375
+ userAgent?: string | null | undefined | undefined;
376
+ };
377
+ user: {
378
+ id: string;
379
+ createdAt: Date;
380
+ updatedAt: Date;
381
+ email: string;
382
+ emailVerified: boolean;
383
+ name: string;
384
+ image?: string | null | undefined | undefined;
385
+ };
386
+ } | null;
387
+ }, z.ZodObject<{
388
+ id: z.ZodNumber;
389
+ }, z.core.$strip>, import("@orpc/contract").Schema<D1Result<unknown>, D1Result<unknown>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
390
+ };
@@ -0,0 +1,60 @@
1
+ export declare const todo: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
+ name: "todo";
3
+ schema: undefined;
4
+ columns: {
5
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
+ name: "id";
7
+ tableName: "todo";
8
+ dataType: "number";
9
+ columnType: "SQLiteInteger";
10
+ data: number;
11
+ driverParam: number;
12
+ notNull: true;
13
+ hasDefault: true;
14
+ isPrimaryKey: true;
15
+ isAutoincrement: false;
16
+ hasRuntimeDefault: false;
17
+ enumValues: undefined;
18
+ baseColumn: never;
19
+ identity: undefined;
20
+ generated: undefined;
21
+ }, {}, {}>;
22
+ text: import("drizzle-orm/sqlite-core").SQLiteColumn<{
23
+ name: "text";
24
+ tableName: "todo";
25
+ dataType: "string";
26
+ columnType: "SQLiteText";
27
+ data: string;
28
+ driverParam: string;
29
+ notNull: true;
30
+ hasDefault: false;
31
+ isPrimaryKey: false;
32
+ isAutoincrement: false;
33
+ hasRuntimeDefault: false;
34
+ enumValues: [string, ...string[]];
35
+ baseColumn: never;
36
+ identity: undefined;
37
+ generated: undefined;
38
+ }, {}, {
39
+ length: number | undefined;
40
+ }>;
41
+ completed: import("drizzle-orm/sqlite-core").SQLiteColumn<{
42
+ name: "completed";
43
+ tableName: "todo";
44
+ dataType: "boolean";
45
+ columnType: "SQLiteBoolean";
46
+ data: boolean;
47
+ driverParam: number;
48
+ notNull: true;
49
+ hasDefault: true;
50
+ isPrimaryKey: false;
51
+ isAutoincrement: false;
52
+ hasRuntimeDefault: false;
53
+ enumValues: undefined;
54
+ baseColumn: never;
55
+ identity: undefined;
56
+ generated: undefined;
57
+ }, {}, {}>;
58
+ };
59
+ dialect: "sqlite";
60
+ }>;
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "rabt-universe",
3
+ "version": "0.0.3",
4
+ "files": [
5
+ "dist",
6
+ "!dist/index.js"
7
+ ],
8
+ "type": "module",
9
+ "module": "src/index.ts",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./contract": {
17
+ "import": "./dist/contract.json"
18
+ }
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "dependencies": {
24
+ "@orpc/contract": "1.14.3",
25
+ "@orpc/openapi": "1.14.3",
26
+ "@orpc/server": "1.14.3",
27
+ "@orpc/zod": "1.14.3",
28
+ "better-auth": "1.6.11",
29
+ "drizzle-orm": "0.45.2",
30
+ "hono": "4.12.21",
31
+ "zod": "4.4.3"
32
+ },
33
+ "devDependencies": {
34
+ "@types/node": "24.1.0",
35
+ "alchemy": "0.93.7",
36
+ "auth": "1.6.11",
37
+ "drizzle-kit": "0.31.10",
38
+ "lefthook": "2.1.8",
39
+ "oxfmt": "0.51.0",
40
+ "oxlint": "1.66.0",
41
+ "typescript": "6.0.3",
42
+ "wrangler": "4.93.0"
43
+ },
44
+ "devEngines": {
45
+ "packageManager": {
46
+ "name": "pnpm",
47
+ "version": "11.1.3"
48
+ },
49
+ "runtime": [
50
+ {
51
+ "name": "node",
52
+ "version": "24.0.0"
53
+ }
54
+ ]
55
+ },
56
+ "scripts": {
57
+ "dev": "alchemy dev",
58
+ "deploy": "alchemy deploy",
59
+ "destroy": "alchemy destroy",
60
+ "db:generate": "drizzle-kit generate",
61
+ "db:migrate": "drizzle-kit migrate",
62
+ "db:push": "drizzle-kit push",
63
+ "db:up": "drizzle-kit up --dialect=sqlite",
64
+ "db:studio": "drizzle-kit studio",
65
+ "auth:generate": "auth generate --output src/auth/schema.ts --config ./better-auth.config.ts --yes",
66
+ "cf-dev": "wrangler dev",
67
+ "cf-deploy": "wrangler deploy",
68
+ "cf-typegen": "wrangler types",
69
+ "type-check": "pnpm cf-typegen && tsc",
70
+ "build:types": "pnpm cf-typegen && tsc --project tsconfig.dts.json",
71
+ "build:contract": "node --experimental-strip-types --experimental-loader ./cloudflare-loader.mjs ./build.contract.ts",
72
+ "fmt": "oxfmt",
73
+ "lint": "oxlint",
74
+ "lint:fix": "oxlint --fix",
75
+ "release": "pnpm version patch && pnpm publish"
76
+ }
77
+ }