@boboddy/sdk 0.0.7-alpha

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,385 @@
1
+ import { Elysia } from "elysia";
2
+ import type { AppContext } from "@boboddy/core/lib/di";
3
+ export declare const createProjectContextEntriesRoutes: (appContext: AppContext) => Elysia<"", {
4
+ decorator: {};
5
+ store: {};
6
+ derive: {};
7
+ resolve: {};
8
+ }, {
9
+ typebox: {};
10
+ error: {};
11
+ }, {
12
+ schema: {};
13
+ standaloneSchema: {};
14
+ macro: {};
15
+ macroFn: {};
16
+ parser: {};
17
+ response: {};
18
+ }, {
19
+ projects: {
20
+ ":projectId": {
21
+ "context-entries": {
22
+ get: {
23
+ body: unknown;
24
+ params: {
25
+ projectId: string & {
26
+ readonly __brand: "uuidv7";
27
+ };
28
+ };
29
+ query: unknown;
30
+ headers: unknown;
31
+ response: {
32
+ 422: {
33
+ type: string;
34
+ title: string;
35
+ status: number;
36
+ detail?: string | undefined;
37
+ instance?: string | undefined;
38
+ code?: string | undefined;
39
+ errors?: {
40
+ path: string;
41
+ message: string;
42
+ summary?: string | undefined;
43
+ }[] | undefined;
44
+ };
45
+ 404: {
46
+ type: string;
47
+ title: string;
48
+ status: number;
49
+ detail?: string | undefined;
50
+ instance?: string | undefined;
51
+ code?: string | undefined;
52
+ errors?: {
53
+ path: string;
54
+ message: string;
55
+ summary?: string | undefined;
56
+ }[] | undefined;
57
+ };
58
+ 500: {
59
+ type: string;
60
+ title: string;
61
+ status: number;
62
+ detail?: string | undefined;
63
+ instance?: string | undefined;
64
+ code?: string | undefined;
65
+ errors?: {
66
+ path: string;
67
+ message: string;
68
+ summary?: string | undefined;
69
+ }[] | undefined;
70
+ };
71
+ 200: {
72
+ id: string & {
73
+ readonly __brand: "uuidv7";
74
+ };
75
+ projectId: string & {
76
+ readonly __brand: "uuidv7";
77
+ };
78
+ category: "persona" | "product" | "workflows" | "glossary" | "compliance" | "billing" | "app-surfaces";
79
+ key: string;
80
+ value: string;
81
+ createdByUserId: (string & {
82
+ readonly __brand: "uuidv7";
83
+ }) | null;
84
+ createdAt: string;
85
+ updatedAt: string;
86
+ }[];
87
+ 403: {
88
+ type: string;
89
+ title: string;
90
+ status: number;
91
+ detail?: string | undefined;
92
+ instance?: string | undefined;
93
+ code?: string | undefined;
94
+ errors?: {
95
+ path: string;
96
+ message: string;
97
+ summary?: string | undefined;
98
+ }[] | undefined;
99
+ };
100
+ 401: {
101
+ type: string;
102
+ title: string;
103
+ status: number;
104
+ detail?: string | undefined;
105
+ instance?: string | undefined;
106
+ code?: string | undefined;
107
+ errors?: {
108
+ path: string;
109
+ message: string;
110
+ summary?: string | undefined;
111
+ }[] | undefined;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
118
+ } & {
119
+ projects: {
120
+ ":projectId": {
121
+ "context-entries": {
122
+ post: {
123
+ body: any;
124
+ params: {
125
+ projectId: string & {
126
+ readonly __brand: "uuidv7";
127
+ };
128
+ };
129
+ query: unknown;
130
+ headers: unknown;
131
+ response: {
132
+ 422: {
133
+ type: string;
134
+ title: string;
135
+ status: number;
136
+ detail?: string | undefined;
137
+ instance?: string | undefined;
138
+ code?: string | undefined;
139
+ errors?: {
140
+ path: string;
141
+ message: string;
142
+ summary?: string | undefined;
143
+ }[] | undefined;
144
+ };
145
+ 404: {
146
+ type: string;
147
+ title: string;
148
+ status: number;
149
+ detail?: string | undefined;
150
+ instance?: string | undefined;
151
+ code?: string | undefined;
152
+ errors?: {
153
+ path: string;
154
+ message: string;
155
+ summary?: string | undefined;
156
+ }[] | undefined;
157
+ };
158
+ 500: {
159
+ type: string;
160
+ title: string;
161
+ status: number;
162
+ detail?: string | undefined;
163
+ instance?: string | undefined;
164
+ code?: string | undefined;
165
+ errors?: {
166
+ path: string;
167
+ message: string;
168
+ summary?: string | undefined;
169
+ }[] | undefined;
170
+ };
171
+ 200: {
172
+ id: string & {
173
+ readonly __brand: "uuidv7";
174
+ };
175
+ projectId: string & {
176
+ readonly __brand: "uuidv7";
177
+ };
178
+ category: "persona" | "product" | "workflows" | "glossary" | "compliance" | "billing" | "app-surfaces";
179
+ key: string;
180
+ value: string;
181
+ createdByUserId: (string & {
182
+ readonly __brand: "uuidv7";
183
+ }) | null;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ };
187
+ 403: {
188
+ type: string;
189
+ title: string;
190
+ status: number;
191
+ detail?: string | undefined;
192
+ instance?: string | undefined;
193
+ code?: string | undefined;
194
+ errors?: {
195
+ path: string;
196
+ message: string;
197
+ summary?: string | undefined;
198
+ }[] | undefined;
199
+ };
200
+ 400: {
201
+ type: string;
202
+ title: string;
203
+ status: number;
204
+ detail?: string | undefined;
205
+ instance?: string | undefined;
206
+ code?: string | undefined;
207
+ errors?: {
208
+ path: string;
209
+ message: string;
210
+ summary?: string | undefined;
211
+ }[] | undefined;
212
+ };
213
+ 401: {
214
+ type: string;
215
+ title: string;
216
+ status: number;
217
+ detail?: string | undefined;
218
+ instance?: string | undefined;
219
+ code?: string | undefined;
220
+ errors?: {
221
+ path: string;
222
+ message: string;
223
+ summary?: string | undefined;
224
+ }[] | undefined;
225
+ };
226
+ };
227
+ };
228
+ };
229
+ };
230
+ };
231
+ } & {
232
+ projects: {
233
+ ":projectId": {
234
+ "context-entries": {
235
+ ":entryId": {
236
+ delete: {
237
+ body: unknown;
238
+ params: {
239
+ projectId: string & {
240
+ readonly __brand: "uuidv7";
241
+ };
242
+ entryId: string & {
243
+ readonly __brand: "uuidv7";
244
+ };
245
+ };
246
+ query: unknown;
247
+ headers: unknown;
248
+ response: {
249
+ 422: {
250
+ type: string;
251
+ title: string;
252
+ status: number;
253
+ detail?: string | undefined;
254
+ instance?: string | undefined;
255
+ code?: string | undefined;
256
+ errors?: {
257
+ path: string;
258
+ message: string;
259
+ summary?: string | undefined;
260
+ }[] | undefined;
261
+ };
262
+ 404: {
263
+ type: string;
264
+ title: string;
265
+ status: number;
266
+ detail?: string | undefined;
267
+ instance?: string | undefined;
268
+ code?: string | undefined;
269
+ errors?: {
270
+ path: string;
271
+ message: string;
272
+ summary?: string | undefined;
273
+ }[] | undefined;
274
+ };
275
+ 500: {
276
+ type: string;
277
+ title: string;
278
+ status: number;
279
+ detail?: string | undefined;
280
+ instance?: string | undefined;
281
+ code?: string | undefined;
282
+ errors?: {
283
+ path: string;
284
+ message: string;
285
+ summary?: string | undefined;
286
+ }[] | undefined;
287
+ };
288
+ 200: null;
289
+ 403: {
290
+ type: string;
291
+ title: string;
292
+ status: number;
293
+ detail?: string | undefined;
294
+ instance?: string | undefined;
295
+ code?: string | undefined;
296
+ errors?: {
297
+ path: string;
298
+ message: string;
299
+ summary?: string | undefined;
300
+ }[] | undefined;
301
+ };
302
+ 401: {
303
+ type: string;
304
+ title: string;
305
+ status: number;
306
+ detail?: string | undefined;
307
+ instance?: string | undefined;
308
+ code?: string | undefined;
309
+ errors?: {
310
+ path: string;
311
+ message: string;
312
+ summary?: string | undefined;
313
+ }[] | undefined;
314
+ };
315
+ };
316
+ };
317
+ };
318
+ };
319
+ };
320
+ };
321
+ }, {
322
+ derive: {};
323
+ resolve: {};
324
+ schema: {};
325
+ standaloneSchema: {};
326
+ response: {};
327
+ }, {
328
+ derive: {};
329
+ resolve: {};
330
+ schema: {};
331
+ standaloneSchema: {};
332
+ response: {};
333
+ } & {
334
+ derive: {
335
+ readonly auth: {
336
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
337
+ readonly user: {
338
+ id: string;
339
+ createdAt: Date;
340
+ updatedAt: Date;
341
+ email: string;
342
+ emailVerified: boolean;
343
+ name: string;
344
+ image?: string | null | undefined | undefined;
345
+ };
346
+ readonly session: {
347
+ id: string;
348
+ createdAt: Date;
349
+ updatedAt: Date;
350
+ userId: string;
351
+ expiresAt: Date;
352
+ token: string;
353
+ ipAddress?: string | null | undefined | undefined;
354
+ userAgent?: string | null | undefined | undefined;
355
+ };
356
+ };
357
+ };
358
+ resolve: {};
359
+ schema: {};
360
+ standaloneSchema: {};
361
+ response: import("elysia").ExtractErrorFromHandle<{
362
+ readonly auth: {
363
+ readonly userId: import("@boboddy/core/common/contracts/uuid-v7").UuidV7;
364
+ readonly user: {
365
+ id: string;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ email: string;
369
+ emailVerified: boolean;
370
+ name: string;
371
+ image?: string | null | undefined | undefined;
372
+ };
373
+ readonly session: {
374
+ id: string;
375
+ createdAt: Date;
376
+ updatedAt: Date;
377
+ userId: string;
378
+ expiresAt: Date;
379
+ token: string;
380
+ ipAddress?: string | null | undefined | undefined;
381
+ userAgent?: string | null | undefined | undefined;
382
+ };
383
+ };
384
+ }>;
385
+ }>;