rabt-universe 0.0.6 → 0.0.7
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/dist/api/context.d.ts +8 -0
- package/dist/api/procedure.d.ts +72 -0
- package/dist/api/routers/index.d.ts +198 -0
- package/dist/auth/index.d.ts +1905 -0
- package/dist/auth/permissions.d.ts +178 -0
- package/dist/auth/schema.d.ts +329 -0
- package/dist/auth/utils.d.ts +1 -0
- package/dist/contract-full.d.ts +129 -0
- package/dist/contract-full.js +128 -0
- package/dist/contract-full.json +126 -0
- package/dist/contract-full.json.d.ts +126 -0
- package/dist/contract.d.ts +37 -3
- package/dist/contract.js +36 -0
- package/dist/contract.json +34 -1
- package/dist/contract.json.d.ts +34 -1
- package/dist/index.d.ts +48 -0
- package/dist/todo/index.d.ts +128 -0
- package/package.json +12 -4
package/dist/api/context.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function createContext({ context }: CreateContextOptions): Promis
|
|
|
14
14
|
token: string;
|
|
15
15
|
ipAddress?: string | null | undefined | undefined;
|
|
16
16
|
userAgent?: string | null | undefined | undefined;
|
|
17
|
+
impersonatedBy?: string | null | undefined;
|
|
17
18
|
};
|
|
18
19
|
user: {
|
|
19
20
|
id: string;
|
|
@@ -23,6 +24,13 @@ export declare function createContext({ context }: CreateContextOptions): Promis
|
|
|
23
24
|
emailVerified: boolean;
|
|
24
25
|
name: string;
|
|
25
26
|
image?: string | null | undefined | undefined;
|
|
27
|
+
username?: string | null | undefined;
|
|
28
|
+
displayUsername?: string | null | undefined;
|
|
29
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
30
|
+
banned: boolean | null | undefined;
|
|
31
|
+
role?: string | null | undefined;
|
|
32
|
+
banReason?: string | null | undefined;
|
|
33
|
+
banExpires?: Date | null | undefined;
|
|
26
34
|
};
|
|
27
35
|
} | null;
|
|
28
36
|
}>;
|
package/dist/api/procedure.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const o: import("@orpc/server").Builder<{
|
|
|
10
10
|
token: string;
|
|
11
11
|
ipAddress?: string | null | undefined | undefined;
|
|
12
12
|
userAgent?: string | null | undefined | undefined;
|
|
13
|
+
impersonatedBy?: string | null | undefined;
|
|
13
14
|
};
|
|
14
15
|
user: {
|
|
15
16
|
id: string;
|
|
@@ -19,6 +20,13 @@ export declare const o: import("@orpc/server").Builder<{
|
|
|
19
20
|
emailVerified: boolean;
|
|
20
21
|
name: string;
|
|
21
22
|
image?: string | null | undefined | undefined;
|
|
23
|
+
username?: string | null | undefined;
|
|
24
|
+
displayUsername?: string | null | undefined;
|
|
25
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
26
|
+
banned: boolean | null | undefined;
|
|
27
|
+
role?: string | null | undefined;
|
|
28
|
+
banReason?: string | null | undefined;
|
|
29
|
+
banExpires?: Date | null | undefined;
|
|
22
30
|
};
|
|
23
31
|
} | null;
|
|
24
32
|
} & Record<never, never>, {
|
|
@@ -33,6 +41,7 @@ export declare const o: import("@orpc/server").Builder<{
|
|
|
33
41
|
token: string;
|
|
34
42
|
ipAddress?: string | null | undefined | undefined;
|
|
35
43
|
userAgent?: string | null | undefined | undefined;
|
|
44
|
+
impersonatedBy?: string | null | undefined;
|
|
36
45
|
};
|
|
37
46
|
user: {
|
|
38
47
|
id: string;
|
|
@@ -42,6 +51,13 @@ export declare const o: import("@orpc/server").Builder<{
|
|
|
42
51
|
emailVerified: boolean;
|
|
43
52
|
name: string;
|
|
44
53
|
image?: string | null | undefined | undefined;
|
|
54
|
+
username?: string | null | undefined;
|
|
55
|
+
displayUsername?: string | null | undefined;
|
|
56
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
57
|
+
banned: boolean | null | undefined;
|
|
58
|
+
role?: string | null | undefined;
|
|
59
|
+
banReason?: string | null | undefined;
|
|
60
|
+
banExpires?: Date | null | undefined;
|
|
45
61
|
};
|
|
46
62
|
} | null;
|
|
47
63
|
}, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
|
|
@@ -57,6 +73,7 @@ export declare const publicProcedure: import("@orpc/server").Builder<{
|
|
|
57
73
|
token: string;
|
|
58
74
|
ipAddress?: string | null | undefined | undefined;
|
|
59
75
|
userAgent?: string | null | undefined | undefined;
|
|
76
|
+
impersonatedBy?: string | null | undefined;
|
|
60
77
|
};
|
|
61
78
|
user: {
|
|
62
79
|
id: string;
|
|
@@ -66,6 +83,13 @@ export declare const publicProcedure: import("@orpc/server").Builder<{
|
|
|
66
83
|
emailVerified: boolean;
|
|
67
84
|
name: string;
|
|
68
85
|
image?: string | null | undefined | undefined;
|
|
86
|
+
username?: string | null | undefined;
|
|
87
|
+
displayUsername?: string | null | undefined;
|
|
88
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
89
|
+
banned: boolean | null | undefined;
|
|
90
|
+
role?: string | null | undefined;
|
|
91
|
+
banReason?: string | null | undefined;
|
|
92
|
+
banExpires?: Date | null | undefined;
|
|
69
93
|
};
|
|
70
94
|
} | null;
|
|
71
95
|
} & Record<never, never>, {
|
|
@@ -80,6 +104,7 @@ export declare const publicProcedure: import("@orpc/server").Builder<{
|
|
|
80
104
|
token: string;
|
|
81
105
|
ipAddress?: string | null | undefined | undefined;
|
|
82
106
|
userAgent?: string | null | undefined | undefined;
|
|
107
|
+
impersonatedBy?: string | null | undefined;
|
|
83
108
|
};
|
|
84
109
|
user: {
|
|
85
110
|
id: string;
|
|
@@ -89,6 +114,13 @@ export declare const publicProcedure: import("@orpc/server").Builder<{
|
|
|
89
114
|
emailVerified: boolean;
|
|
90
115
|
name: string;
|
|
91
116
|
image?: string | null | undefined | undefined;
|
|
117
|
+
username?: string | null | undefined;
|
|
118
|
+
displayUsername?: string | null | undefined;
|
|
119
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
120
|
+
banned: boolean | null | undefined;
|
|
121
|
+
role?: string | null | undefined;
|
|
122
|
+
banReason?: string | null | undefined;
|
|
123
|
+
banExpires?: Date | null | undefined;
|
|
92
124
|
};
|
|
93
125
|
} | null;
|
|
94
126
|
}, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
|
|
@@ -104,6 +136,7 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
104
136
|
token: string;
|
|
105
137
|
ipAddress?: string | null | undefined | undefined;
|
|
106
138
|
userAgent?: string | null | undefined | undefined;
|
|
139
|
+
impersonatedBy?: string | null | undefined;
|
|
107
140
|
};
|
|
108
141
|
user: {
|
|
109
142
|
id: string;
|
|
@@ -113,6 +146,13 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
113
146
|
emailVerified: boolean;
|
|
114
147
|
name: string;
|
|
115
148
|
image?: string | null | undefined | undefined;
|
|
149
|
+
username?: string | null | undefined;
|
|
150
|
+
displayUsername?: string | null | undefined;
|
|
151
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
152
|
+
banned: boolean | null | undefined;
|
|
153
|
+
role?: string | null | undefined;
|
|
154
|
+
banReason?: string | null | undefined;
|
|
155
|
+
banExpires?: Date | null | undefined;
|
|
116
156
|
};
|
|
117
157
|
} | null;
|
|
118
158
|
} & Record<never, never>, {
|
|
@@ -127,6 +167,7 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
127
167
|
token: string;
|
|
128
168
|
ipAddress?: string | null | undefined | undefined;
|
|
129
169
|
userAgent?: string | null | undefined | undefined;
|
|
170
|
+
impersonatedBy?: string | null | undefined;
|
|
130
171
|
};
|
|
131
172
|
user: {
|
|
132
173
|
id: string;
|
|
@@ -136,6 +177,13 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
136
177
|
emailVerified: boolean;
|
|
137
178
|
name: string;
|
|
138
179
|
image?: string | null | undefined | undefined;
|
|
180
|
+
username?: string | null | undefined;
|
|
181
|
+
displayUsername?: string | null | undefined;
|
|
182
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
183
|
+
banned: boolean | null | undefined;
|
|
184
|
+
role?: string | null | undefined;
|
|
185
|
+
banReason?: string | null | undefined;
|
|
186
|
+
banExpires?: Date | null | undefined;
|
|
139
187
|
};
|
|
140
188
|
} | null;
|
|
141
189
|
} & Record<never, never>, {
|
|
@@ -150,6 +198,7 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
150
198
|
token: string;
|
|
151
199
|
ipAddress?: string | null | undefined | undefined;
|
|
152
200
|
userAgent?: string | null | undefined | undefined;
|
|
201
|
+
impersonatedBy?: string | null | undefined;
|
|
153
202
|
};
|
|
154
203
|
user: {
|
|
155
204
|
id: string;
|
|
@@ -159,6 +208,13 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
159
208
|
emailVerified: boolean;
|
|
160
209
|
name: string;
|
|
161
210
|
image?: string | null | undefined | undefined;
|
|
211
|
+
username?: string | null | undefined;
|
|
212
|
+
displayUsername?: string | null | undefined;
|
|
213
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
214
|
+
banned: boolean | null | undefined;
|
|
215
|
+
role?: string | null | undefined;
|
|
216
|
+
banReason?: string | null | undefined;
|
|
217
|
+
banExpires?: Date | null | undefined;
|
|
162
218
|
};
|
|
163
219
|
} | null;
|
|
164
220
|
}>, import("@orpc/server").MergedCurrentContext<{
|
|
@@ -173,6 +229,7 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
173
229
|
token: string;
|
|
174
230
|
ipAddress?: string | null | undefined | undefined;
|
|
175
231
|
userAgent?: string | null | undefined | undefined;
|
|
232
|
+
impersonatedBy?: string | null | undefined;
|
|
176
233
|
};
|
|
177
234
|
user: {
|
|
178
235
|
id: string;
|
|
@@ -182,6 +239,13 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
182
239
|
emailVerified: boolean;
|
|
183
240
|
name: string;
|
|
184
241
|
image?: string | null | undefined | undefined;
|
|
242
|
+
username?: string | null | undefined;
|
|
243
|
+
displayUsername?: string | null | undefined;
|
|
244
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
245
|
+
banned: boolean | null | undefined;
|
|
246
|
+
role?: string | null | undefined;
|
|
247
|
+
banReason?: string | null | undefined;
|
|
248
|
+
banExpires?: Date | null | undefined;
|
|
185
249
|
};
|
|
186
250
|
} | null;
|
|
187
251
|
}, {
|
|
@@ -195,6 +259,7 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
195
259
|
token: string;
|
|
196
260
|
ipAddress?: string | null | undefined | undefined;
|
|
197
261
|
userAgent?: string | null | undefined | undefined;
|
|
262
|
+
impersonatedBy?: string | null | undefined;
|
|
198
263
|
};
|
|
199
264
|
user: {
|
|
200
265
|
id: string;
|
|
@@ -204,6 +269,13 @@ export declare const protectedProcedure: import("@orpc/server").BuilderWithMiddl
|
|
|
204
269
|
emailVerified: boolean;
|
|
205
270
|
name: string;
|
|
206
271
|
image?: string | null | undefined | undefined;
|
|
272
|
+
username?: string | null | undefined;
|
|
273
|
+
displayUsername?: string | null | undefined;
|
|
274
|
+
twoFactorEnabled: boolean | null | undefined;
|
|
275
|
+
banned: boolean | null | undefined;
|
|
276
|
+
role?: string | null | undefined;
|
|
277
|
+
banReason?: string | null | undefined;
|
|
278
|
+
banExpires?: Date | null | undefined;
|
|
207
279
|
};
|
|
208
280
|
};
|
|
209
281
|
}>, import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<unknown, unknown>, Record<never, never>, Record<never, never>>;
|