@spader/spall-sdk 1.0.0

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.
Files changed (70) hide show
  1. package/dist/app.d.ts +7 -0
  2. package/dist/app.d.ts.map +1 -0
  3. package/dist/client.d.ts +20 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +1642 -0
  6. package/dist/client.js.map +21 -0
  7. package/dist/gen/client/client.gen.d.ts +3 -0
  8. package/dist/gen/client/client.gen.d.ts.map +1 -0
  9. package/dist/gen/client/index.d.ts +9 -0
  10. package/dist/gen/client/index.d.ts.map +1 -0
  11. package/dist/gen/client/types.gen.d.ts +118 -0
  12. package/dist/gen/client/types.gen.d.ts.map +1 -0
  13. package/dist/gen/client/utils.gen.d.ts +34 -0
  14. package/dist/gen/client/utils.gen.d.ts.map +1 -0
  15. package/dist/gen/client.gen.d.ts +13 -0
  16. package/dist/gen/client.gen.d.ts.map +1 -0
  17. package/dist/gen/core/auth.gen.d.ts +19 -0
  18. package/dist/gen/core/auth.gen.d.ts.map +1 -0
  19. package/dist/gen/core/bodySerializer.gen.d.ts +26 -0
  20. package/dist/gen/core/bodySerializer.gen.d.ts.map +1 -0
  21. package/dist/gen/core/params.gen.d.ts +44 -0
  22. package/dist/gen/core/params.gen.d.ts.map +1 -0
  23. package/dist/gen/core/pathSerializer.gen.d.ts +34 -0
  24. package/dist/gen/core/pathSerializer.gen.d.ts.map +1 -0
  25. package/dist/gen/core/queryKeySerializer.gen.d.ts +19 -0
  26. package/dist/gen/core/queryKeySerializer.gen.d.ts.map +1 -0
  27. package/dist/gen/core/serverSentEvents.gen.d.ts +72 -0
  28. package/dist/gen/core/serverSentEvents.gen.d.ts.map +1 -0
  29. package/dist/gen/core/types.gen.d.ts +79 -0
  30. package/dist/gen/core/types.gen.d.ts.map +1 -0
  31. package/dist/gen/core/utils.gen.d.ts +20 -0
  32. package/dist/gen/core/utils.gen.d.ts.map +1 -0
  33. package/dist/gen/index.d.ts +3 -0
  34. package/dist/gen/index.d.ts.map +1 -0
  35. package/dist/gen/sdk.gen.d.ts +358 -0
  36. package/dist/gen/sdk.gen.d.ts.map +1 -0
  37. package/dist/gen/types.gen.d.ts +1596 -0
  38. package/dist/gen/types.gen.d.ts.map +1 -0
  39. package/dist/index.d.ts +5 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +2925 -0
  42. package/dist/index.js.map +32 -0
  43. package/dist/lock.d.ts +20 -0
  44. package/dist/lock.d.ts.map +1 -0
  45. package/dist/log.d.ts +22 -0
  46. package/dist/log.d.ts.map +1 -0
  47. package/dist/routes/commit.d.ts +19 -0
  48. package/dist/routes/commit.d.ts.map +1 -0
  49. package/dist/routes/corpus.d.ts +317 -0
  50. package/dist/routes/corpus.d.ts.map +1 -0
  51. package/dist/routes/note.d.ts +79 -0
  52. package/dist/routes/note.d.ts.map +1 -0
  53. package/dist/routes/query.d.ts +314 -0
  54. package/dist/routes/query.d.ts.map +1 -0
  55. package/dist/routes/sse.d.ts +75 -0
  56. package/dist/routes/sse.d.ts.map +1 -0
  57. package/dist/routes/workspace.d.ts +102 -0
  58. package/dist/routes/workspace.d.ts.map +1 -0
  59. package/dist/serve.d.ts +2 -0
  60. package/dist/serve.d.ts.map +1 -0
  61. package/dist/server.d.ts +27 -0
  62. package/dist/server.d.ts.map +1 -0
  63. package/dist/server.js +1433 -0
  64. package/dist/server.js.map +21 -0
  65. package/dist/sse.d.ts +8 -0
  66. package/dist/sse.d.ts.map +1 -0
  67. package/dist/util.d.ts +5 -0
  68. package/dist/util.d.ts.map +1 -0
  69. package/openapi.json +5694 -0
  70. package/package.json +70 -0
@@ -0,0 +1,317 @@
1
+ export declare const CorpusRoutes: {
2
+ (): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
3
+ "/:id/list": {
4
+ $get: {
5
+ input: {
6
+ param: {
7
+ id: string;
8
+ };
9
+ };
10
+ output: {
11
+ code: string;
12
+ message: string;
13
+ };
14
+ outputFormat: "json";
15
+ status: 404;
16
+ } | {
17
+ input: {
18
+ param: {
19
+ id: string;
20
+ };
21
+ };
22
+ output: {
23
+ id: number & import("zod").$brand<"NoteId">;
24
+ path: string;
25
+ size: number;
26
+ }[];
27
+ outputFormat: "json";
28
+ status: import("hono/utils/http-status").ContentfulStatusCode;
29
+ };
30
+ };
31
+ } & {
32
+ "/:id/notes": {
33
+ $get: {
34
+ input: {
35
+ query: {
36
+ path?: string | string[] | undefined;
37
+ limit?: string | string[] | undefined;
38
+ after?: string | string[] | undefined;
39
+ };
40
+ } & {
41
+ param: {
42
+ id: string;
43
+ };
44
+ };
45
+ output: {
46
+ code: string;
47
+ message: string;
48
+ };
49
+ outputFormat: "json";
50
+ status: 404;
51
+ } | {
52
+ input: {
53
+ query: {
54
+ path?: string | string[] | undefined;
55
+ limit?: string | string[] | undefined;
56
+ after?: string | string[] | undefined;
57
+ };
58
+ } & {
59
+ param: {
60
+ id: string;
61
+ };
62
+ };
63
+ output: {
64
+ notes: {
65
+ id: number & import("zod").$brand<"NoteId">;
66
+ corpus: number & import("zod").$brand<"CorpusId">;
67
+ path: string;
68
+ size: number;
69
+ content: string;
70
+ contentHash: string;
71
+ }[];
72
+ nextCursor: string | null;
73
+ };
74
+ outputFormat: "json";
75
+ status: import("hono/utils/http-status").ContentfulStatusCode;
76
+ };
77
+ };
78
+ } & {
79
+ "/:id/note/:path{.+}": {
80
+ $get: {
81
+ input: {
82
+ param: {
83
+ id: string;
84
+ } & {
85
+ path: string;
86
+ };
87
+ };
88
+ output: {
89
+ code: string;
90
+ message: string;
91
+ };
92
+ outputFormat: "json";
93
+ status: 404;
94
+ } | {
95
+ input: {
96
+ param: {
97
+ id: string;
98
+ } & {
99
+ path: string;
100
+ };
101
+ };
102
+ output: {
103
+ id: number & import("zod").$brand<"NoteId">;
104
+ corpus: number & import("zod").$brand<"CorpusId">;
105
+ path: string;
106
+ size: number;
107
+ content: string;
108
+ contentHash: string;
109
+ };
110
+ outputFormat: "json";
111
+ status: import("hono/utils/http-status").ContentfulStatusCode;
112
+ };
113
+ };
114
+ } & {
115
+ "/": {
116
+ $post: {
117
+ input: {
118
+ json: {
119
+ name: string;
120
+ };
121
+ };
122
+ output: {
123
+ id: number & import("zod").$brand<"CorpusId">;
124
+ name: string;
125
+ noteCount: number;
126
+ createdAt: number;
127
+ updatedAt: number;
128
+ };
129
+ outputFormat: "json";
130
+ status: import("hono/utils/http-status").ContentfulStatusCode;
131
+ };
132
+ };
133
+ } & {
134
+ "/list": {
135
+ $get: {
136
+ input: {};
137
+ output: {
138
+ code: string;
139
+ message: string;
140
+ };
141
+ outputFormat: "json";
142
+ status: 500;
143
+ } | {
144
+ input: {};
145
+ output: {
146
+ id: number & import("zod").$brand<"CorpusId">;
147
+ name: string;
148
+ noteCount: number;
149
+ createdAt: number;
150
+ updatedAt: number;
151
+ }[];
152
+ outputFormat: "json";
153
+ status: import("hono/utils/http-status").ContentfulStatusCode;
154
+ };
155
+ };
156
+ } & {
157
+ "/": {
158
+ $get: {
159
+ input: {
160
+ query: {
161
+ name?: string | string[] | undefined;
162
+ id?: string | string[] | undefined;
163
+ };
164
+ };
165
+ output: {
166
+ code: string;
167
+ message: string;
168
+ };
169
+ outputFormat: "json";
170
+ status: 404;
171
+ } | {
172
+ input: {
173
+ query: {
174
+ name?: string | string[] | undefined;
175
+ id?: string | string[] | undefined;
176
+ };
177
+ };
178
+ output: {
179
+ id: number & import("zod").$brand<"CorpusId">;
180
+ name: string;
181
+ noteCount: number;
182
+ createdAt: number;
183
+ updatedAt: number;
184
+ };
185
+ outputFormat: "json";
186
+ status: import("hono/utils/http-status").ContentfulStatusCode;
187
+ };
188
+ };
189
+ } & {
190
+ "/:id": {
191
+ $delete: {
192
+ input: {
193
+ param: {
194
+ id: string;
195
+ };
196
+ };
197
+ output: {
198
+ code: string;
199
+ message: string;
200
+ };
201
+ outputFormat: "json";
202
+ status: 404;
203
+ } | {
204
+ input: {
205
+ param: {
206
+ id: string;
207
+ };
208
+ };
209
+ output: null;
210
+ outputFormat: "body";
211
+ status: 204;
212
+ };
213
+ };
214
+ } & {
215
+ "/sync": {
216
+ $post: {
217
+ input: {
218
+ json: {
219
+ directory: string;
220
+ corpus: unknown;
221
+ glob?: string | undefined;
222
+ path?: string | undefined;
223
+ };
224
+ };
225
+ output: null;
226
+ outputFormat: "body";
227
+ status: 204;
228
+ };
229
+ };
230
+ } & {
231
+ "/note": {
232
+ $post: {
233
+ input: {
234
+ json: {
235
+ corpus: unknown;
236
+ path: string;
237
+ content: string;
238
+ dupe?: boolean | undefined;
239
+ };
240
+ };
241
+ output: {
242
+ code: string;
243
+ message: string;
244
+ };
245
+ outputFormat: "json";
246
+ status: 404;
247
+ } | {
248
+ input: {
249
+ json: {
250
+ corpus: unknown;
251
+ path: string;
252
+ content: string;
253
+ dupe?: boolean | undefined;
254
+ };
255
+ };
256
+ output: {
257
+ id: number & import("zod").$brand<"NoteId">;
258
+ corpus: number & import("zod").$brand<"CorpusId">;
259
+ path: string;
260
+ size: number;
261
+ content: string;
262
+ contentHash: string;
263
+ };
264
+ outputFormat: "json";
265
+ status: import("hono/utils/http-status").ContentfulStatusCode;
266
+ };
267
+ };
268
+ } & {
269
+ "/:id/note/:path{.+}": {
270
+ $put: {
271
+ input: {
272
+ json: {
273
+ content: string;
274
+ dupe?: boolean | undefined;
275
+ };
276
+ } & {
277
+ param: {
278
+ id: string;
279
+ } & {
280
+ path: string;
281
+ };
282
+ };
283
+ output: {
284
+ code: string;
285
+ message: string;
286
+ };
287
+ outputFormat: "json";
288
+ status: 404;
289
+ } | {
290
+ input: {
291
+ json: {
292
+ content: string;
293
+ dupe?: boolean | undefined;
294
+ };
295
+ } & {
296
+ param: {
297
+ id: string;
298
+ } & {
299
+ path: string;
300
+ };
301
+ };
302
+ output: {
303
+ id: number & import("zod").$brand<"NoteId">;
304
+ corpus: number & import("zod").$brand<"CorpusId">;
305
+ path: string;
306
+ size: number;
307
+ content: string;
308
+ contentHash: string;
309
+ };
310
+ outputFormat: "json";
311
+ status: import("hono/utils/http-status").ContentfulStatusCode;
312
+ };
313
+ };
314
+ }, "/", "/:id/note/:path{.+}">;
315
+ reset(): void;
316
+ };
317
+ //# sourceMappingURL=corpus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"corpus.d.ts","sourceRoot":"","sources":["../../src/routes/corpus.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqVxB,CAAC"}
@@ -0,0 +1,79 @@
1
+ export declare const NoteRoutes: {
2
+ (): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
3
+ "/:id": {
4
+ $get: {
5
+ input: {
6
+ param: {
7
+ id: string;
8
+ };
9
+ };
10
+ output: {
11
+ code: string;
12
+ message: string;
13
+ };
14
+ outputFormat: "json";
15
+ status: 404;
16
+ } | {
17
+ input: {
18
+ param: {
19
+ id: string;
20
+ };
21
+ };
22
+ output: {
23
+ id: number & import("zod").$brand<"NoteId">;
24
+ corpus: number & import("zod").$brand<"CorpusId">;
25
+ path: string;
26
+ size: number;
27
+ content: string;
28
+ contentHash: string;
29
+ };
30
+ outputFormat: "json";
31
+ status: import("hono/utils/http-status").ContentfulStatusCode;
32
+ };
33
+ };
34
+ } & {
35
+ "/:id": {
36
+ $put: {
37
+ input: {
38
+ json: {
39
+ content: string;
40
+ dupe?: boolean | undefined;
41
+ };
42
+ } & {
43
+ param: {
44
+ id: string;
45
+ };
46
+ };
47
+ output: {
48
+ code: string;
49
+ message: string;
50
+ };
51
+ outputFormat: "json";
52
+ status: 404;
53
+ } | {
54
+ input: {
55
+ json: {
56
+ content: string;
57
+ dupe?: boolean | undefined;
58
+ };
59
+ } & {
60
+ param: {
61
+ id: string;
62
+ };
63
+ };
64
+ output: {
65
+ id: number & import("zod").$brand<"NoteId">;
66
+ corpus: number & import("zod").$brand<"CorpusId">;
67
+ path: string;
68
+ size: number;
69
+ content: string;
70
+ contentHash: string;
71
+ };
72
+ outputFormat: "json";
73
+ status: import("hono/utils/http-status").ContentfulStatusCode;
74
+ };
75
+ };
76
+ }, "/", "/:id">;
77
+ reset(): void;
78
+ };
79
+ //# sourceMappingURL=note.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../src/routes/note.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EtB,CAAC"}