@aventurevc/api-schemas 0.8.215 → 0.8.216

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,45 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Mechanical file-only projection: null path segments mean array items, never object keys.
4
+ * @usedByEndpoint none:external-root
5
+ * @shared primitive:multi OpenAPI file-map boundary metadata; not direct because consumers project schema structure rather than endpoint payloads
6
+ * @contractShape http.openapi-request-body-file-map
7
+ * @contractRole canonical
8
+ * @ownerModule http/openapi-metadata.ts
9
+ */
10
+ export declare const RequestBodyFileMapSchema: z.ZodObject<{
11
+ bodyPath: z.ZodString;
12
+ valueField: z.ZodReadonly<z.ZodArray<z.ZodObject<{
13
+ path: z.ZodReadonly<z.ZodArray<z.ZodNullable<z.ZodString>>>;
14
+ type: z.ZodEnum<{
15
+ array: "array";
16
+ boolean: "boolean";
17
+ integer: "integer";
18
+ number: "number";
19
+ object: "object";
20
+ string: "string";
21
+ }>;
22
+ nullable: z.ZodBoolean;
23
+ }, z.core.$strip>>>;
24
+ }, z.core.$strip>;
25
+ export type RequestBodyFileMap = z.infer<typeof RequestBodyFileMapSchema>;
26
+ /**
27
+ * @usedByEndpoint none:external-root
28
+ * @shared primitive:multi OpenAPI readback boundary metadata; not direct because consumers interpret source-owned extension values rather than endpoint payloads
29
+ * @contractShape http.openapi-mutation-readback
30
+ * @contractRole canonical
31
+ * @ownerModule http/openapi-metadata.ts
32
+ */
33
+ export declare const OpenApiWriteReadbackSchema: z.ZodObject<{
34
+ readOperationId: z.ZodString;
35
+ writePointer: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
36
+ readPointer: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
37
+ readParameter: z.ZodOptional<z.ZodString>;
38
+ submittedMap: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ bodyPointer: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
40
+ readPointer: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
41
+ identityPointer: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
42
+ }, z.core.$strict>>>;
43
+ }, z.core.$strict>;
44
+ export type OpenApiWriteReadback = z.infer<typeof OpenApiWriteReadbackSchema>;
45
+ //# sourceMappingURL=openapi-metadata.d.ts.map
@@ -0,0 +1,46 @@
1
+ // Generated alternate api-schemas support copy from TypeScript source api-schemas/http/openapi-metadata.ts
2
+ import { z } from "zod/v4";
3
+ /**
4
+ * Mechanical file-only projection: null path segments mean array items, never object keys.
5
+ * @usedByEndpoint none:external-root
6
+ * @shared primitive:multi OpenAPI file-map boundary metadata; not direct because consumers project schema structure rather than endpoint payloads
7
+ * @contractShape http.openapi-request-body-file-map
8
+ * @contractRole canonical
9
+ * @ownerModule http/openapi-metadata.ts
10
+ */
11
+ export const RequestBodyFileMapSchema = z.object({
12
+ bodyPath: z.string(),
13
+ valueField: z
14
+ .array(z.object({
15
+ path: z.array(z.string().nullable()).readonly(),
16
+ type: z.enum(["object", "array", "string", "number", "integer", "boolean"]),
17
+ nullable: z.boolean(),
18
+ }))
19
+ .readonly(),
20
+ });
21
+ const OpenApiJsonPointerSchema = z.union([
22
+ z.literal(""),
23
+ z.string().regex(/^(?:\/(?:[^~/]|~[01])*)+$/),
24
+ ]);
25
+ /**
26
+ * @usedByEndpoint none:external-root
27
+ * @shared primitive:multi OpenAPI readback boundary metadata; not direct because consumers interpret source-owned extension values rather than endpoint payloads
28
+ * @contractShape http.openapi-mutation-readback
29
+ * @contractRole canonical
30
+ * @ownerModule http/openapi-metadata.ts
31
+ */
32
+ export const OpenApiWriteReadbackSchema = z.strictObject({
33
+ readOperationId: z.string().min(1),
34
+ writePointer: OpenApiJsonPointerSchema,
35
+ readPointer: OpenApiJsonPointerSchema,
36
+ readParameter: z.string().min(1).optional(),
37
+ submittedMap: z
38
+ .array(z.strictObject({
39
+ bodyPointer: OpenApiJsonPointerSchema,
40
+ readPointer: OpenApiJsonPointerSchema,
41
+ identityPointer: OpenApiJsonPointerSchema,
42
+ }))
43
+ .min(1)
44
+ .optional(),
45
+ });
46
+ //# sourceMappingURL=openapi-metadata.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.215",
3
+ "version": "0.8.216",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",