import * as v from "valibot"; /** * Describes where the newly created page should be inserted. * - `start` / `end` (default): prepend / append to the request's `parent` * page's children. * - `before` / `after`: insert as a sibling of the anchor block identified by * `blockId`, using the anchor's own structural parent. The anchor can be * nested anywhere below the page (inside a toggle, column, callout, etc.). */ export declare const notionCreatePagePositionSchema: v.VariantSchema<"type", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"start", undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"end", undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"before", undefined>; readonly blockId: v.CustomSchema | undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"after", undefined>; readonly blockId: v.CustomSchema | undefined>; }, undefined>], undefined>; export type NotionCreatePagePosition = v.InferOutput; /** * Parent accepted by the outbound `createPage` bridge message. * * Mirrors Notion's public API `POST /v1/pages` parent shape: `page_id` for a page-parented child, * `data_source_id` for a database row. `data_source_id` is the internal collection ID. * * The SDK additionally accepts a higher-level `data_source_key` variant that resolves to * `data_source_id` locally, using the `dataSources` mapping. */ export declare const createPageParentSchema: v.VariantSchema<"type", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"page_id", undefined>; readonly page_id: v.CustomSchema | undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"data_source_id", undefined>; readonly data_source_id: v.CustomSchema | undefined>; }, undefined>], undefined>; export type CreatePageMessageParent = v.InferOutput; /** * Message sent by the sandbox to ask the host to create a new page on its behalf. * The payload mirrors Notion's public `POST /v1/pages` API. */ export declare const createPageMessageSchema: v.ObjectSchema<{ readonly type: v.LiteralSchema<"createPage", undefined>; readonly requestId: v.StringSchema; readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"page_id", undefined>; readonly page_id: v.CustomSchema | undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"data_source_id", undefined>; readonly data_source_id: v.CustomSchema | undefined>; }, undefined>], undefined>; readonly properties: v.RecordSchema, v.VariantSchema<"type", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"title", undefined>; readonly title: v.ArraySchema, v.UnknownSchema, undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"rich_text", undefined>; readonly rich_text: v.ArraySchema, v.UnknownSchema, undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"number", undefined>; readonly number: v.NullableSchema, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"url", undefined>; readonly url: v.NullableSchema, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"email", undefined>; readonly email: v.NullableSchema, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"phone_number", undefined>; readonly phone_number: v.NullableSchema, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"checkbox", undefined>; readonly checkbox: v.BooleanSchema; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"select", undefined>; readonly select: v.NullableSchema; readonly name: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; }, undefined>, v.ObjectSchema<{ readonly name: v.StringSchema; readonly id: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; }, undefined>], undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"status", undefined>; readonly status: v.NullableSchema; readonly name: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; }, undefined>, v.ObjectSchema<{ readonly name: v.StringSchema; readonly id: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; }, undefined>], undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"multi_select", undefined>; readonly multi_select: v.ArraySchema; readonly name: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; }, undefined>, v.ObjectSchema<{ readonly name: v.StringSchema; readonly id: v.OptionalSchema, undefined>; readonly color: v.OptionalSchema, undefined>; readonly description: v.OptionalSchema, undefined>, undefined>; }, undefined>], undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"date", undefined>; readonly date: v.NullableSchema; readonly end: v.OptionalSchema, undefined>, undefined>; readonly time_zone: v.OptionalSchema, undefined>, undefined>; }, undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"people", undefined>; readonly people: v.ArraySchema, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly object: v.LiteralSchema<"group", undefined>; readonly id: v.StringSchema; readonly name: v.OptionalSchema, undefined>, undefined>; }, undefined>], undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"relation", undefined>; readonly has_more: v.OptionalSchema, undefined>; readonly relation: v.ArraySchema; }, undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"files", undefined>; readonly files: v.ArraySchema; readonly name: v.StringSchema; readonly external: v.ObjectSchema<{ readonly url: v.StringSchema; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"file", undefined>; readonly name: v.StringSchema; readonly file: v.ObjectSchema<{ readonly url: v.StringSchema; readonly expiry_time: v.OptionalSchema, undefined>; }, undefined>; }, undefined>], undefined>, undefined>; readonly id: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"place", undefined>; readonly place: v.NullableSchema; readonly lon: v.NumberSchema; readonly name: v.OptionalSchema, undefined>, undefined>; readonly address: v.OptionalSchema, undefined>, undefined>; readonly aws_place_id: v.OptionalSchema, undefined>, undefined>; readonly google_place_id: v.OptionalSchema, undefined>, undefined>; }, undefined>, undefined>; readonly id: v.StringSchema; }, undefined>], undefined>, undefined>; readonly icon: v.OptionalSchema; readonly emoji: v.StringSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"custom_emoji", undefined>; readonly custom_emoji: v.ObjectSchema<{ readonly id: v.StringSchema; readonly name: v.OptionalSchema, undefined>; readonly url: v.OptionalSchema, undefined>; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"external", undefined>; readonly external: v.ObjectSchema<{ readonly url: v.StringSchema; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"file", undefined>; readonly file: v.ObjectSchema<{ readonly url: v.StringSchema; readonly expiry_time: v.OptionalSchema, undefined>; }, undefined>; }, undefined>], undefined>, undefined>; readonly cover: v.OptionalSchema; readonly external: v.ObjectSchema<{ readonly url: v.StringSchema; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"file", undefined>; readonly file: v.ObjectSchema<{ readonly url: v.StringSchema; readonly expiry_time: v.OptionalSchema, undefined>; }, undefined>; }, undefined>], undefined>, undefined>; readonly position: v.OptionalSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"end", undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"before", undefined>; readonly blockId: v.CustomSchema | undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"after", undefined>; readonly blockId: v.CustomSchema | undefined>; }, undefined>], undefined>, undefined>; }, undefined>; export type CreatePageMessage = v.InferOutput; //# sourceMappingURL=createPage.d.ts.map