@aventurevc/api-schemas 0.8.215 → 0.8.217
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/entity/url-link.js
CHANGED
|
@@ -13,7 +13,7 @@ const EntityUrlLinkSchemaDefinition = z.object({
|
|
|
13
13
|
id: z.int().nullish(),
|
|
14
14
|
/** `true` = owner currently uses this URL; `false` = historical/former (rebrand source domain, deprecated platform handle). The lifecycle state lives here, NEVER in the `urlType` discriminator. */
|
|
15
15
|
isCurrent: z.boolean().nullish(),
|
|
16
|
-
/** `true` = canonical/primary URL of this `urlType` for this owner. Only one row per (owner, urlType) may be `isCurrent=true` AND `isPrimary=true`. */
|
|
16
|
+
/** `true` = canonical/primary URL of this `urlType` for this owner. Only one row per (owner, urlType) may be `isCurrent=true` AND `isPrimary=true`. Retired rows are always non-primary, including when a write requests otherwise. */
|
|
17
17
|
isPrimary: z.boolean().nullish(),
|
|
18
18
|
/** Owning record, nested ids only: owner.entityId or owner.personId — exactly one is set, and no name fields. Writes are scoped by the owning entity/person route; owner is never a write field. */
|
|
19
19
|
owner: EntityPersonOwnerSchema.nullish(),
|
|
@@ -23,7 +23,7 @@ const EntityUrlLinkSchemaDefinition = z.object({
|
|
|
23
23
|
/** Time of the latest URL status observation. */
|
|
24
24
|
statusChecked: z.iso.datetime({ offset: true }).nullish(),
|
|
25
25
|
updatedAt: z.iso.datetime({ offset: true }).nullish(),
|
|
26
|
-
/** Canonical absolute
|
|
26
|
+
/** Canonical absolute URL after storage and live same-site host normalization. */
|
|
27
27
|
url: z.string(),
|
|
28
28
|
urlType: EntityUrlTypeSchema,
|
|
29
29
|
});
|
|
@@ -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
|