/** * Generated by scripts/gen-shapes.ts — do not edit by hand. * Source: the @workos/openapi-spec package. Regenerate with: * npm run gen:shapes * * Response shape requirements extracted from the spec schemas curated in * scripts/gen-shapes-lib.ts: * - RESPONSE_SHAPE_REQUIREMENTS per resource (OBJECT_SCHEMA_MAP) * - RESPONSE_ENVELOPE_REQUIREMENTS per operation (ENVELOPE_SCHEMA_MAP) * * Plus ID_PREFIX_REQUIREMENTS, discovered structurally from the spec's own * `id` examples rather than from a curated map. * * Consumed by src/workos/response-shapes.spec.ts, * src/workos/response-envelopes.spec.ts and src/workos/id-prefixes.spec.ts to * assert the emulator matches the spec and never leaks internal fields. */ export interface ResponseShapeRequirement { /** The spec schema (components.schemas) this shape was extracted from. */ schema: string; /** Every property the spec defines for this object. */ properties: readonly string[]; /** Properties the spec marks required. */ required: readonly string[]; } export declare const RESPONSE_SHAPE_REQUIREMENTS: Record; /** * Top-level envelope requirements, keyed by "METHOD /spec/path". The nested * resource is covered by RESPONSE_SHAPE_REQUIREMENTS; these are the wrapper * fields the route handler itself is responsible for. */ export declare const RESPONSE_ENVELOPE_REQUIREMENTS: Record; export interface IdPrefixRequirement { /** The prefix the spec's canonical `id` example carries, without the trailing underscore. */ prefix: string; /** The example it was read from, verbatim. */ example: string; /** The top-level spec schema (or path) the example was found under. */ source: string; /** Other prefixes the spec uses for this object elsewhere, where it contradicts itself. */ conflicts: readonly string[]; } /** * The id prefix the spec documents for each object, keyed by `object` discriminator. * Covers every object the spec gives a prefixed `id` example for, including ones the * emulator does not model — src/workos/id-prefixes.spec.ts matches it against * ID_PREFIXES and ledgers what is left over. */ export declare const ID_PREFIX_REQUIREMENTS: Record;