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.
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # rabt
2
+
3
+ To install dependencies:
4
+
5
+ ```bash
6
+ pnpm install
7
+ ```
8
+
9
+ To run:
10
+
11
+ ```bash
12
+ pnpm run cf-dev
13
+ ```
@@ -0,0 +1,29 @@
1
+ import type { Context as HonoContext } from 'hono';
2
+ export type CreateContextOptions = {
3
+ context: HonoContext;
4
+ };
5
+ export declare function createContext({ context }: CreateContextOptions): Promise<{
6
+ auth: null;
7
+ session: {
8
+ session: {
9
+ id: string;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ userId: string;
13
+ expiresAt: Date;
14
+ token: string;
15
+ ipAddress?: string | null | undefined | undefined;
16
+ userAgent?: string | null | undefined | undefined;
17
+ };
18
+ user: {
19
+ id: string;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ email: string;
23
+ emailVerified: boolean;
24
+ name: string;
25
+ image?: string | null | undefined | undefined;
26
+ };
27
+ } | null;
28
+ }>;
29
+ export type Context = Awaited<ReturnType<typeof createContext>>;
@@ -0,0 +1,209 @@
1
+ export declare const o: import("@orpc/server").Builder<{
2
+ auth: null;
3
+ session: {
4
+ session: {
5
+ id: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ userId: string;
9
+ expiresAt: Date;
10
+ token: string;
11
+ ipAddress?: string | null | undefined | undefined;
12
+ userAgent?: string | null | undefined | undefined;
13
+ };
14
+ user: {
15
+ id: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ email: string;
19
+ emailVerified: boolean;
20
+ name: string;
21
+ image?: string | null | undefined | undefined;
22
+ };
23
+ } | null;
24
+ } & Record<never, never>, {
25
+ auth: null;
26
+ session: {
27
+ session: {
28
+ id: string;
29
+ createdAt: Date;
30
+ updatedAt: Date;
31
+ userId: string;
32
+ expiresAt: Date;
33
+ token: string;
34
+ ipAddress?: string | null | undefined | undefined;
35
+ userAgent?: string | null | undefined | undefined;
36
+ };
37
+ user: {
38
+ id: string;
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ email: string;
42
+ emailVerified: boolean;
43
+ name: string;
44
+ image?: string | null | undefined | undefined;
45
+ };
46
+ } | null;
47
+ }, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
48
+ export declare const publicProcedure: import("@orpc/server").Builder<{
49
+ auth: null;
50
+ session: {
51
+ session: {
52
+ id: string;
53
+ createdAt: Date;
54
+ updatedAt: Date;
55
+ userId: string;
56
+ expiresAt: Date;
57
+ token: string;
58
+ ipAddress?: string | null | undefined | undefined;
59
+ userAgent?: string | null | undefined | undefined;
60
+ };
61
+ user: {
62
+ id: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ email: string;
66
+ emailVerified: boolean;
67
+ name: string;
68
+ image?: string | null | undefined | undefined;
69
+ };
70
+ } | null;
71
+ } & Record<never, never>, {
72
+ auth: null;
73
+ session: {
74
+ session: {
75
+ id: string;
76
+ createdAt: Date;
77
+ updatedAt: Date;
78
+ userId: string;
79
+ expiresAt: Date;
80
+ token: string;
81
+ ipAddress?: string | null | undefined | undefined;
82
+ userAgent?: string | null | undefined | undefined;
83
+ };
84
+ user: {
85
+ id: string;
86
+ createdAt: Date;
87
+ updatedAt: Date;
88
+ email: string;
89
+ emailVerified: boolean;
90
+ name: string;
91
+ image?: string | null | undefined | undefined;
92
+ };
93
+ } | null;
94
+ }, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
95
+ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddlewares<import("@orpc/server").MergedInitialContext<{
96
+ auth: null;
97
+ session: {
98
+ session: {
99
+ id: string;
100
+ createdAt: Date;
101
+ updatedAt: Date;
102
+ userId: string;
103
+ expiresAt: Date;
104
+ token: string;
105
+ ipAddress?: string | null | undefined | undefined;
106
+ userAgent?: string | null | undefined | undefined;
107
+ };
108
+ user: {
109
+ id: string;
110
+ createdAt: Date;
111
+ updatedAt: Date;
112
+ email: string;
113
+ emailVerified: boolean;
114
+ name: string;
115
+ image?: string | null | undefined | undefined;
116
+ };
117
+ } | null;
118
+ } & Record<never, never>, {
119
+ auth: null;
120
+ session: {
121
+ session: {
122
+ id: string;
123
+ createdAt: Date;
124
+ updatedAt: Date;
125
+ userId: string;
126
+ expiresAt: Date;
127
+ token: string;
128
+ ipAddress?: string | null | undefined | undefined;
129
+ userAgent?: string | null | undefined | undefined;
130
+ };
131
+ user: {
132
+ id: string;
133
+ createdAt: Date;
134
+ updatedAt: Date;
135
+ email: string;
136
+ emailVerified: boolean;
137
+ name: string;
138
+ image?: string | null | undefined | undefined;
139
+ };
140
+ } | null;
141
+ } & Record<never, never>, {
142
+ auth: null;
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
+ } | null;
164
+ }>, import("@orpc/server").MergedCurrentContext<{
165
+ auth: null;
166
+ session: {
167
+ session: {
168
+ id: string;
169
+ createdAt: Date;
170
+ updatedAt: Date;
171
+ userId: string;
172
+ expiresAt: Date;
173
+ token: string;
174
+ ipAddress?: string | null | undefined | undefined;
175
+ userAgent?: string | null | undefined | undefined;
176
+ };
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
+ } | null;
187
+ }, {
188
+ session: {
189
+ session: {
190
+ id: string;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ userId: string;
194
+ expiresAt: Date;
195
+ token: string;
196
+ ipAddress?: string | null | undefined | undefined;
197
+ userAgent?: string | null | undefined | undefined;
198
+ };
199
+ user: {
200
+ id: string;
201
+ createdAt: Date;
202
+ updatedAt: Date;
203
+ email: string;
204
+ emailVerified: boolean;
205
+ name: string;
206
+ image?: string | null | undefined | undefined;
207
+ };
208
+ };
209
+ }>, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;