import * as v from "valibot"; import type { CustomBlockErrorInfo } from "../errors.js"; export declare const customBlockCreatePageErrorCodeSchema: v.StringSchema; export type CustomBlockCreatePageErrorCode = "create_page_failed" | "invalid_page_parent" | "page_access_failed" | "collection_access_failed" | "unknown_data_source_key" | "unmapped_data_source" | "unmapped_property" | "property_id_mismatch" | "duplicate_property" | "invalid_property_value" | (string & {}); export type CustomBlockCreatePageErrorInfo = CustomBlockErrorInfo; export declare const customBlockCreatePageErrorInfoSchema: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; /** * Message sent by the host in response to a sandbox `createPage` request. */ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v.ObjectSchema<{ readonly type: v.LiteralSchema<"createPageResult", undefined>; readonly requestId: v.StringSchema; readonly status: v.LiteralSchema<"success", undefined>; /** The newly created page. */ readonly page: v.ObjectSchema<{ readonly object: v.LiteralSchema<"page", undefined>; readonly id: v.CustomSchema | undefined>; 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>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"workspace", undefined>; readonly workspace: v.LiteralSchema; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"block_id", undefined>; readonly block_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 created_time: v.OptionalSchema, undefined>; readonly last_edited_time: v.OptionalSchema, 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 url: v.OptionalSchema, undefined>; readonly public_url: v.OptionalSchema, undefined>; readonly in_trash: v.OptionalSchema, undefined>; }, undefined>; }, undefined>, v.ObjectSchema<{ readonly type: v.LiteralSchema<"createPageResult", undefined>; readonly requestId: v.StringSchema; readonly status: v.LiteralSchema<"error", undefined>; readonly error: v.ObjectSchema<{ readonly code: v.StringSchema; readonly message: v.StringSchema; readonly isRetryable: v.BooleanSchema; }, undefined>; }, undefined>], undefined>; export type CreatePageResultMessage = v.InferOutput; //# sourceMappingURL=createPageResult.d.ts.map