@kb-labs/shared-http 2.64.0 → 2.65.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.
- package/dist/index.d.ts +16 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -90,7 +90,15 @@ declare const ErrorResponseSchema: z.ZodObject<{
|
|
|
90
90
|
ok: z.ZodLiteral<false>;
|
|
91
91
|
error: z.ZodString;
|
|
92
92
|
code: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, z.
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
ok: false;
|
|
95
|
+
error: string;
|
|
96
|
+
code?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
ok: false;
|
|
99
|
+
error: string;
|
|
100
|
+
code?: string | undefined;
|
|
101
|
+
}>;
|
|
94
102
|
/**
|
|
95
103
|
* Wraps a data schema in a standard success envelope.
|
|
96
104
|
*
|
|
@@ -104,7 +112,13 @@ declare const ErrorResponseSchema: z.ZodObject<{
|
|
|
104
112
|
declare const OkResponseSchema: <T extends z.ZodTypeAny>(data: T) => z.ZodObject<{
|
|
105
113
|
ok: z.ZodLiteral<true>;
|
|
106
114
|
data: T;
|
|
107
|
-
}, z.
|
|
115
|
+
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
116
|
+
ok: z.ZodLiteral<true>;
|
|
117
|
+
data: T;
|
|
118
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never, z.baseObjectInputType<{
|
|
119
|
+
ok: z.ZodLiteral<true>;
|
|
120
|
+
data: T;
|
|
121
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: T_2[k_1]; } : never>;
|
|
108
122
|
type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
109
123
|
|
|
110
124
|
interface VersionedObservabilityShape {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kb-labs/shared-http",
|
|
3
3
|
"description": "Shared Fastify/OpenAPI utilities for KB Labs HTTP services",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.65.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"fastify-type-provider-zod": "^6.1.0",
|
|
20
20
|
"zod": "^3.25.76",
|
|
21
21
|
"zod-to-json-schema": "^3.25.0",
|
|
22
|
-
"@kb-labs/core-platform": "2.
|
|
23
|
-
"@kb-labs/core-contracts": "2.
|
|
22
|
+
"@kb-labs/core-platform": "2.65.0",
|
|
23
|
+
"@kb-labs/core-contracts": "2.65.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^24.3.3",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"tsup": "^8.5.0",
|
|
29
29
|
"typescript": "^5.6.3",
|
|
30
30
|
"vitest": "^3.2.4",
|
|
31
|
-
"@kb-labs/devkit": "2.
|
|
31
|
+
"@kb-labs/devkit": "2.65.0"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=20.0.0",
|