import * as v from "valibot"; /** * Hex-token identifiers for Notion's named colors. Mirrors the public API's * `select.options[].color` enum * (https://developers.notion.com/reference/property-object#select). */ export declare const notionPropertyColorSchema: v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>; export type NotionPropertyColor = v.InferOutput; export declare const notionPropertyOptionSchema: v.ObjectSchema<{ readonly id: v.StringSchema; readonly name: v.StringSchema; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>; }, undefined>; export type NotionPropertyOption = v.InferOutput; export declare const notionStatusGroupSchema: v.ObjectSchema<{ readonly id: v.StringSchema; readonly name: v.StringSchema; readonly color: v.OptionalSchema, undefined>; readonly option_ids: v.ArraySchema, undefined>; }, undefined>; export type NotionStatusGroup = v.InferOutput; export declare const notionDualPropertySchema: v.ObjectSchema<{ readonly synced_property_id: v.StringSchema; readonly synced_property_name: v.StringSchema; }, undefined>; export type NotionDualProperty = v.InferOutput; /** * Every Notion property type the bridge speaks, in a single readable list. * Mirrors the Notion public API * [property object](https://developers.notion.com/reference/property-object) * type field. Internal-only types (`button`, `verification`, * `last_visited_time`, `location`) and the four built-ins (`created_time`, * `last_edited_time`, `created_by`, `last_edited_by`) are included under their * bridge-native names. */ export declare const NOTION_PROPERTY_TYPES: readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"]; export declare const notionPropertyTypeSchema: v.PicklistSchema; /** * String literal union of every supported Notion property type. Same set as * the discriminator in `NotionPropertySchema` — split out so the manifest * can declare expected property types without dragging in the per-type * payload shapes. */ export type NotionPropertyType = v.InferOutput; /** * Per-property schema as exposed by the host over the custom-block bridge. * The `type` discriminator must be one of {@link NOTION_PROPERTY_TYPES}. */ export declare const notionPropertySchemaSchema: v.VariantSchema<"type", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"title", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"rich_text", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"number", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"checkbox", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"url", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"email", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"phone_number", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"select", undefined>; readonly options: v.ArraySchema; readonly name: v.StringSchema; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>; }, undefined>, undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"multi_select", undefined>; readonly options: v.ArraySchema; readonly name: v.StringSchema; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>; }, undefined>, undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"status", undefined>; readonly options: v.ArraySchema; readonly name: v.StringSchema; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>; }, undefined>, undefined>; readonly groups: v.ArraySchema; readonly name: v.StringSchema; readonly color: v.OptionalSchema, undefined>; readonly option_ids: v.ArraySchema, undefined>; }, undefined>, undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"date", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"people", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"files", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"unique_id", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"relation", undefined>; readonly data_source_id: v.OptionalSchema, undefined>; readonly dual_property: v.OptionalSchema; readonly synced_property_name: v.StringSchema; }, undefined>, undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"place", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"formula", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"rollup", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"button", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"verification", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"last_visited_time", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"location", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"created_time", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"last_edited_time", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"created_by", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"last_edited_by", undefined>; readonly name: v.StringSchema; readonly description: v.OptionalSchema, undefined>; }, undefined>], undefined>; export type NotionPropertySchema = v.InferOutput; /** * The four synthetic built-in property IDs the host always includes in every * data source's `propertySchemasById` and every row's `propertiesById`. */ export declare const NOTION_BUILTIN_PROPERTY_IDS: readonly ["created_time", "last_edited_time", "created_by", "last_edited_by"]; export type NotionBuiltinPropertyId = (typeof NOTION_BUILTIN_PROPERTY_IDS)[number]; //# sourceMappingURL=propertySchema.d.ts.map