@inkeep/agents-core 0.75.0 → 0.75.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/dist/auth/auth-schema.d.ts +227 -227
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/constants/otel-attributes.d.ts +5 -3
- package/dist/constants/otel-attributes.js +5 -2
- package/dist/data-access/manage/agents.d.ts +50 -50
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +22 -22
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +3 -3
- package/dist/data-access/manage/webhookDestinations.js +18 -14
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +19 -19
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/events.d.ts +5 -5
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/db/manage/manage-schema.d.ts +484 -484
- package/dist/db/runtime/runtime-schema.d.ts +453 -453
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +56 -56
- package/dist/validation/schemas.d.ts +2560 -2560
- package/dist/validation/schemas.js +1 -1
- package/package.json +1 -1
package/dist/utils/error.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { HTTPException } from "hono/http-exception";
|
|
|
9
9
|
*/
|
|
10
10
|
declare function getDatabaseErrorLogContext(error: unknown): Record<string, unknown>;
|
|
11
11
|
declare const ErrorCode: z.ZodEnum<{
|
|
12
|
-
bad_request: "bad_request";
|
|
13
12
|
unauthorized: "unauthorized";
|
|
13
|
+
bad_request: "bad_request";
|
|
14
14
|
payment_required: "payment_required";
|
|
15
15
|
forbidden: "forbidden";
|
|
16
16
|
not_found: "not_found";
|
|
@@ -29,8 +29,8 @@ declare const problemDetailsSchema: z.ZodObject<{
|
|
|
29
29
|
instance: z.ZodOptional<z.ZodString>;
|
|
30
30
|
requestId: z.ZodOptional<z.ZodString>;
|
|
31
31
|
code: z.ZodEnum<{
|
|
32
|
-
bad_request: "bad_request";
|
|
33
32
|
unauthorized: "unauthorized";
|
|
33
|
+
bad_request: "bad_request";
|
|
34
34
|
payment_required: "payment_required";
|
|
35
35
|
forbidden: "forbidden";
|
|
36
36
|
not_found: "not_found";
|
|
@@ -47,8 +47,8 @@ type ErrorCodes = z.infer<typeof ErrorCode>;
|
|
|
47
47
|
declare const errorResponseSchema: z.ZodObject<{
|
|
48
48
|
error: z.ZodObject<{
|
|
49
49
|
code: z.ZodEnum<{
|
|
50
|
-
bad_request: "bad_request";
|
|
51
50
|
unauthorized: "unauthorized";
|
|
51
|
+
bad_request: "bad_request";
|
|
52
52
|
payment_required: "payment_required";
|
|
53
53
|
forbidden: "forbidden";
|
|
54
54
|
not_found: "not_found";
|
|
@@ -89,12 +89,12 @@ declare const errorSchemaFactory: (code: ErrorCodes, description: string) => {
|
|
|
89
89
|
schema: z.ZodObject<{
|
|
90
90
|
instance: z.ZodOptional<z.ZodString>;
|
|
91
91
|
requestId: z.ZodOptional<z.ZodString>;
|
|
92
|
-
code: z.ZodLiteral<"
|
|
92
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
93
93
|
detail: z.ZodString;
|
|
94
94
|
title: z.ZodString;
|
|
95
95
|
status: z.ZodNumber;
|
|
96
96
|
error: z.ZodObject<{
|
|
97
|
-
code: z.ZodLiteral<"
|
|
97
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
98
98
|
message: z.ZodString;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
}, z.core.$strip>;
|
|
@@ -111,12 +111,12 @@ declare const commonCreateErrorResponses: {
|
|
|
111
111
|
schema: z.ZodObject<{
|
|
112
112
|
instance: z.ZodOptional<z.ZodString>;
|
|
113
113
|
requestId: z.ZodOptional<z.ZodString>;
|
|
114
|
-
code: z.ZodLiteral<"
|
|
114
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
115
115
|
detail: z.ZodString;
|
|
116
116
|
title: z.ZodString;
|
|
117
117
|
status: z.ZodNumber;
|
|
118
118
|
error: z.ZodObject<{
|
|
119
|
-
code: z.ZodLiteral<"
|
|
119
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
120
120
|
message: z.ZodString;
|
|
121
121
|
}, z.core.$strip>;
|
|
122
122
|
}, z.core.$strip>;
|
|
@@ -130,12 +130,12 @@ declare const commonCreateErrorResponses: {
|
|
|
130
130
|
schema: z.ZodObject<{
|
|
131
131
|
instance: z.ZodOptional<z.ZodString>;
|
|
132
132
|
requestId: z.ZodOptional<z.ZodString>;
|
|
133
|
-
code: z.ZodLiteral<"
|
|
133
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
134
134
|
detail: z.ZodString;
|
|
135
135
|
title: z.ZodString;
|
|
136
136
|
status: z.ZodNumber;
|
|
137
137
|
error: z.ZodObject<{
|
|
138
|
-
code: z.ZodLiteral<"
|
|
138
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
139
139
|
message: z.ZodString;
|
|
140
140
|
}, z.core.$strip>;
|
|
141
141
|
}, z.core.$strip>;
|
|
@@ -149,12 +149,12 @@ declare const commonCreateErrorResponses: {
|
|
|
149
149
|
schema: z.ZodObject<{
|
|
150
150
|
instance: z.ZodOptional<z.ZodString>;
|
|
151
151
|
requestId: z.ZodOptional<z.ZodString>;
|
|
152
|
-
code: z.ZodLiteral<"
|
|
152
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
153
153
|
detail: z.ZodString;
|
|
154
154
|
title: z.ZodString;
|
|
155
155
|
status: z.ZodNumber;
|
|
156
156
|
error: z.ZodObject<{
|
|
157
|
-
code: z.ZodLiteral<"
|
|
157
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
158
158
|
message: z.ZodString;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
}, z.core.$strip>;
|
|
@@ -168,12 +168,12 @@ declare const commonCreateErrorResponses: {
|
|
|
168
168
|
schema: z.ZodObject<{
|
|
169
169
|
instance: z.ZodOptional<z.ZodString>;
|
|
170
170
|
requestId: z.ZodOptional<z.ZodString>;
|
|
171
|
-
code: z.ZodLiteral<"
|
|
171
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
172
172
|
detail: z.ZodString;
|
|
173
173
|
title: z.ZodString;
|
|
174
174
|
status: z.ZodNumber;
|
|
175
175
|
error: z.ZodObject<{
|
|
176
|
-
code: z.ZodLiteral<"
|
|
176
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
177
177
|
message: z.ZodString;
|
|
178
178
|
}, z.core.$strip>;
|
|
179
179
|
}, z.core.$strip>;
|
|
@@ -187,12 +187,12 @@ declare const commonCreateErrorResponses: {
|
|
|
187
187
|
schema: z.ZodObject<{
|
|
188
188
|
instance: z.ZodOptional<z.ZodString>;
|
|
189
189
|
requestId: z.ZodOptional<z.ZodString>;
|
|
190
|
-
code: z.ZodLiteral<"
|
|
190
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
191
191
|
detail: z.ZodString;
|
|
192
192
|
title: z.ZodString;
|
|
193
193
|
status: z.ZodNumber;
|
|
194
194
|
error: z.ZodObject<{
|
|
195
|
-
code: z.ZodLiteral<"
|
|
195
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
196
196
|
message: z.ZodString;
|
|
197
197
|
}, z.core.$strip>;
|
|
198
198
|
}, z.core.$strip>;
|
|
@@ -208,12 +208,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
208
208
|
schema: z.ZodObject<{
|
|
209
209
|
instance: z.ZodOptional<z.ZodString>;
|
|
210
210
|
requestId: z.ZodOptional<z.ZodString>;
|
|
211
|
-
code: z.ZodLiteral<"
|
|
211
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
212
212
|
detail: z.ZodString;
|
|
213
213
|
title: z.ZodString;
|
|
214
214
|
status: z.ZodNumber;
|
|
215
215
|
error: z.ZodObject<{
|
|
216
|
-
code: z.ZodLiteral<"
|
|
216
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
217
217
|
message: z.ZodString;
|
|
218
218
|
}, z.core.$strip>;
|
|
219
219
|
}, z.core.$strip>;
|
|
@@ -227,12 +227,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
227
227
|
schema: z.ZodObject<{
|
|
228
228
|
instance: z.ZodOptional<z.ZodString>;
|
|
229
229
|
requestId: z.ZodOptional<z.ZodString>;
|
|
230
|
-
code: z.ZodLiteral<"
|
|
230
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
231
231
|
detail: z.ZodString;
|
|
232
232
|
title: z.ZodString;
|
|
233
233
|
status: z.ZodNumber;
|
|
234
234
|
error: z.ZodObject<{
|
|
235
|
-
code: z.ZodLiteral<"
|
|
235
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
236
236
|
message: z.ZodString;
|
|
237
237
|
}, z.core.$strip>;
|
|
238
238
|
}, z.core.$strip>;
|
|
@@ -246,12 +246,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
246
246
|
schema: z.ZodObject<{
|
|
247
247
|
instance: z.ZodOptional<z.ZodString>;
|
|
248
248
|
requestId: z.ZodOptional<z.ZodString>;
|
|
249
|
-
code: z.ZodLiteral<"
|
|
249
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
250
250
|
detail: z.ZodString;
|
|
251
251
|
title: z.ZodString;
|
|
252
252
|
status: z.ZodNumber;
|
|
253
253
|
error: z.ZodObject<{
|
|
254
|
-
code: z.ZodLiteral<"
|
|
254
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
255
255
|
message: z.ZodString;
|
|
256
256
|
}, z.core.$strip>;
|
|
257
257
|
}, z.core.$strip>;
|
|
@@ -265,12 +265,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
265
265
|
schema: z.ZodObject<{
|
|
266
266
|
instance: z.ZodOptional<z.ZodString>;
|
|
267
267
|
requestId: z.ZodOptional<z.ZodString>;
|
|
268
|
-
code: z.ZodLiteral<"
|
|
268
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
269
269
|
detail: z.ZodString;
|
|
270
270
|
title: z.ZodString;
|
|
271
271
|
status: z.ZodNumber;
|
|
272
272
|
error: z.ZodObject<{
|
|
273
|
-
code: z.ZodLiteral<"
|
|
273
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
274
274
|
message: z.ZodString;
|
|
275
275
|
}, z.core.$strip>;
|
|
276
276
|
}, z.core.$strip>;
|
|
@@ -284,12 +284,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
284
284
|
schema: z.ZodObject<{
|
|
285
285
|
instance: z.ZodOptional<z.ZodString>;
|
|
286
286
|
requestId: z.ZodOptional<z.ZodString>;
|
|
287
|
-
code: z.ZodLiteral<"
|
|
287
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
288
288
|
detail: z.ZodString;
|
|
289
289
|
title: z.ZodString;
|
|
290
290
|
status: z.ZodNumber;
|
|
291
291
|
error: z.ZodObject<{
|
|
292
|
-
code: z.ZodLiteral<"
|
|
292
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
293
293
|
message: z.ZodString;
|
|
294
294
|
}, z.core.$strip>;
|
|
295
295
|
}, z.core.$strip>;
|
|
@@ -303,12 +303,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
303
303
|
schema: z.ZodObject<{
|
|
304
304
|
instance: z.ZodOptional<z.ZodString>;
|
|
305
305
|
requestId: z.ZodOptional<z.ZodString>;
|
|
306
|
-
code: z.ZodLiteral<"
|
|
306
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
307
307
|
detail: z.ZodString;
|
|
308
308
|
title: z.ZodString;
|
|
309
309
|
status: z.ZodNumber;
|
|
310
310
|
error: z.ZodObject<{
|
|
311
|
-
code: z.ZodLiteral<"
|
|
311
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
312
312
|
message: z.ZodString;
|
|
313
313
|
}, z.core.$strip>;
|
|
314
314
|
}, z.core.$strip>;
|
|
@@ -324,12 +324,12 @@ declare const commonGetErrorResponses: {
|
|
|
324
324
|
schema: z.ZodObject<{
|
|
325
325
|
instance: z.ZodOptional<z.ZodString>;
|
|
326
326
|
requestId: z.ZodOptional<z.ZodString>;
|
|
327
|
-
code: z.ZodLiteral<"
|
|
327
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
328
328
|
detail: z.ZodString;
|
|
329
329
|
title: z.ZodString;
|
|
330
330
|
status: z.ZodNumber;
|
|
331
331
|
error: z.ZodObject<{
|
|
332
|
-
code: z.ZodLiteral<"
|
|
332
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
333
333
|
message: z.ZodString;
|
|
334
334
|
}, z.core.$strip>;
|
|
335
335
|
}, z.core.$strip>;
|
|
@@ -343,12 +343,12 @@ declare const commonGetErrorResponses: {
|
|
|
343
343
|
schema: z.ZodObject<{
|
|
344
344
|
instance: z.ZodOptional<z.ZodString>;
|
|
345
345
|
requestId: z.ZodOptional<z.ZodString>;
|
|
346
|
-
code: z.ZodLiteral<"
|
|
346
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
347
347
|
detail: z.ZodString;
|
|
348
348
|
title: z.ZodString;
|
|
349
349
|
status: z.ZodNumber;
|
|
350
350
|
error: z.ZodObject<{
|
|
351
|
-
code: z.ZodLiteral<"
|
|
351
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
352
352
|
message: z.ZodString;
|
|
353
353
|
}, z.core.$strip>;
|
|
354
354
|
}, z.core.$strip>;
|
|
@@ -362,12 +362,12 @@ declare const commonGetErrorResponses: {
|
|
|
362
362
|
schema: z.ZodObject<{
|
|
363
363
|
instance: z.ZodOptional<z.ZodString>;
|
|
364
364
|
requestId: z.ZodOptional<z.ZodString>;
|
|
365
|
-
code: z.ZodLiteral<"
|
|
365
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
366
366
|
detail: z.ZodString;
|
|
367
367
|
title: z.ZodString;
|
|
368
368
|
status: z.ZodNumber;
|
|
369
369
|
error: z.ZodObject<{
|
|
370
|
-
code: z.ZodLiteral<"
|
|
370
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
371
371
|
message: z.ZodString;
|
|
372
372
|
}, z.core.$strip>;
|
|
373
373
|
}, z.core.$strip>;
|
|
@@ -381,12 +381,12 @@ declare const commonGetErrorResponses: {
|
|
|
381
381
|
schema: z.ZodObject<{
|
|
382
382
|
instance: z.ZodOptional<z.ZodString>;
|
|
383
383
|
requestId: z.ZodOptional<z.ZodString>;
|
|
384
|
-
code: z.ZodLiteral<"
|
|
384
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
385
385
|
detail: z.ZodString;
|
|
386
386
|
title: z.ZodString;
|
|
387
387
|
status: z.ZodNumber;
|
|
388
388
|
error: z.ZodObject<{
|
|
389
|
-
code: z.ZodLiteral<"
|
|
389
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
390
390
|
message: z.ZodString;
|
|
391
391
|
}, z.core.$strip>;
|
|
392
392
|
}, z.core.$strip>;
|
|
@@ -400,12 +400,12 @@ declare const commonGetErrorResponses: {
|
|
|
400
400
|
schema: z.ZodObject<{
|
|
401
401
|
instance: z.ZodOptional<z.ZodString>;
|
|
402
402
|
requestId: z.ZodOptional<z.ZodString>;
|
|
403
|
-
code: z.ZodLiteral<"
|
|
403
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
404
404
|
detail: z.ZodString;
|
|
405
405
|
title: z.ZodString;
|
|
406
406
|
status: z.ZodNumber;
|
|
407
407
|
error: z.ZodObject<{
|
|
408
|
-
code: z.ZodLiteral<"
|
|
408
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
409
409
|
message: z.ZodString;
|
|
410
410
|
}, z.core.$strip>;
|
|
411
411
|
}, z.core.$strip>;
|
|
@@ -419,12 +419,12 @@ declare const commonGetErrorResponses: {
|
|
|
419
419
|
schema: z.ZodObject<{
|
|
420
420
|
instance: z.ZodOptional<z.ZodString>;
|
|
421
421
|
requestId: z.ZodOptional<z.ZodString>;
|
|
422
|
-
code: z.ZodLiteral<"
|
|
422
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
423
423
|
detail: z.ZodString;
|
|
424
424
|
title: z.ZodString;
|
|
425
425
|
status: z.ZodNumber;
|
|
426
426
|
error: z.ZodObject<{
|
|
427
|
-
code: z.ZodLiteral<"
|
|
427
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
428
428
|
message: z.ZodString;
|
|
429
429
|
}, z.core.$strip>;
|
|
430
430
|
}, z.core.$strip>;
|
|
@@ -440,12 +440,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
440
440
|
schema: z.ZodObject<{
|
|
441
441
|
instance: z.ZodOptional<z.ZodString>;
|
|
442
442
|
requestId: z.ZodOptional<z.ZodString>;
|
|
443
|
-
code: z.ZodLiteral<"
|
|
443
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
444
444
|
detail: z.ZodString;
|
|
445
445
|
title: z.ZodString;
|
|
446
446
|
status: z.ZodNumber;
|
|
447
447
|
error: z.ZodObject<{
|
|
448
|
-
code: z.ZodLiteral<"
|
|
448
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
449
449
|
message: z.ZodString;
|
|
450
450
|
}, z.core.$strip>;
|
|
451
451
|
}, z.core.$strip>;
|
|
@@ -459,12 +459,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
459
459
|
schema: z.ZodObject<{
|
|
460
460
|
instance: z.ZodOptional<z.ZodString>;
|
|
461
461
|
requestId: z.ZodOptional<z.ZodString>;
|
|
462
|
-
code: z.ZodLiteral<"
|
|
462
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
463
463
|
detail: z.ZodString;
|
|
464
464
|
title: z.ZodString;
|
|
465
465
|
status: z.ZodNumber;
|
|
466
466
|
error: z.ZodObject<{
|
|
467
|
-
code: z.ZodLiteral<"
|
|
467
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
468
468
|
message: z.ZodString;
|
|
469
469
|
}, z.core.$strip>;
|
|
470
470
|
}, z.core.$strip>;
|
|
@@ -478,12 +478,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
478
478
|
schema: z.ZodObject<{
|
|
479
479
|
instance: z.ZodOptional<z.ZodString>;
|
|
480
480
|
requestId: z.ZodOptional<z.ZodString>;
|
|
481
|
-
code: z.ZodLiteral<"
|
|
481
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
482
482
|
detail: z.ZodString;
|
|
483
483
|
title: z.ZodString;
|
|
484
484
|
status: z.ZodNumber;
|
|
485
485
|
error: z.ZodObject<{
|
|
486
|
-
code: z.ZodLiteral<"
|
|
486
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
487
487
|
message: z.ZodString;
|
|
488
488
|
}, z.core.$strip>;
|
|
489
489
|
}, z.core.$strip>;
|
|
@@ -497,12 +497,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
497
497
|
schema: z.ZodObject<{
|
|
498
498
|
instance: z.ZodOptional<z.ZodString>;
|
|
499
499
|
requestId: z.ZodOptional<z.ZodString>;
|
|
500
|
-
code: z.ZodLiteral<"
|
|
500
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
501
501
|
detail: z.ZodString;
|
|
502
502
|
title: z.ZodString;
|
|
503
503
|
status: z.ZodNumber;
|
|
504
504
|
error: z.ZodObject<{
|
|
505
|
-
code: z.ZodLiteral<"
|
|
505
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
506
506
|
message: z.ZodString;
|
|
507
507
|
}, z.core.$strip>;
|
|
508
508
|
}, z.core.$strip>;
|
|
@@ -516,12 +516,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
516
516
|
schema: z.ZodObject<{
|
|
517
517
|
instance: z.ZodOptional<z.ZodString>;
|
|
518
518
|
requestId: z.ZodOptional<z.ZodString>;
|
|
519
|
-
code: z.ZodLiteral<"
|
|
519
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
520
520
|
detail: z.ZodString;
|
|
521
521
|
title: z.ZodString;
|
|
522
522
|
status: z.ZodNumber;
|
|
523
523
|
error: z.ZodObject<{
|
|
524
|
-
code: z.ZodLiteral<"
|
|
524
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
525
525
|
message: z.ZodString;
|
|
526
526
|
}, z.core.$strip>;
|
|
527
527
|
}, z.core.$strip>;
|
|
@@ -535,12 +535,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
535
535
|
schema: z.ZodObject<{
|
|
536
536
|
instance: z.ZodOptional<z.ZodString>;
|
|
537
537
|
requestId: z.ZodOptional<z.ZodString>;
|
|
538
|
-
code: z.ZodLiteral<"
|
|
538
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
539
539
|
detail: z.ZodString;
|
|
540
540
|
title: z.ZodString;
|
|
541
541
|
status: z.ZodNumber;
|
|
542
542
|
error: z.ZodObject<{
|
|
543
|
-
code: z.ZodLiteral<"
|
|
543
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
544
544
|
message: z.ZodString;
|
|
545
545
|
}, z.core.$strip>;
|
|
546
546
|
}, z.core.$strip>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod15 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
6
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
7
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
6
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
7
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
8
8
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
9
9
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
10
10
|
/**
|