viewQueryResponseSchema
constviewQueryResponseSchema:ZodObject<{expires_at:ZodUnion<readonly [ZodISODateTime,ZodISODate]>;has_more:ZodBoolean;id:ZodUUID;next_cursor:ZodNullable<ZodString>;object:ZodLiteral<"view_query">;request_status:ZodOptional<ZodObject<{incomplete_reason:ZodEnum<{query_result_limit_reached:"query_result_limit_reached"; }>;type:ZodLiteral<"incomplete">; },$strip>>;results:ZodArray<ZodObject<{cover:ZodNullable<ZodDiscriminatedUnion<[ZodObject<{file:ZodObject<…, …>;type:ZodLiteral<…>; },$strip>,ZodObject<{file_upload:ZodObject<…, …>;type:ZodLiteral<…>; },$strip>,ZodObject<{external:ZodObject<…, …>;type:ZodLiteral<…>; },$strip>],"type">>;created_by:ZodUnion<readonly [ZodObject<{avatar_url:ZodOptional<ZodUnion<…>>;id:ZodUUID;name:ZodOptional<ZodString>;object:ZodLiteral<"user">;person:ZodObject<{email_verified: …; },$strip>;type:ZodLiteral<"person">; },$strip>,ZodObject<{avatar_url:ZodOptional<ZodUnion<…>>;bot:ZodObject<{owner: …;workspace_id: …;workspace_limits: …;workspace_name: …; },$strip>;id:ZodUUID;name:ZodOptional<ZodString>;object:ZodLiteral<"user">;type:ZodLiteral<"bot">; },$strip>,ZodObject<{id:ZodUUID;object:ZodLiteral<"user">; },$strip>]>;created_time:ZodUnion<readonly [ZodISODateTime,ZodISODate]>;icon:ZodNullable<ZodUnion<readonly [ZodDiscriminatedUnion<[ZodObject<…, …>,ZodObject<…, …>,ZodObject<…, …>],"type">,ZodObject<{emoji:ZodString;type:ZodLiteral<…>; },$strip>,ZodObject<{icon:ZodObject<…, …>;type:ZodLiteral<…>; },$strip>,ZodObject<{custom_emoji:ZodObject<…, …>;type:ZodLiteral<…>; },$strip>]>>;id:ZodUUID;in_trash:ZodBoolean;is_archived:ZodOptional<ZodBoolean>;is_locked:ZodOptional<ZodBoolean>;last_edited_by:ZodUnion<readonly [ZodObject<{avatar_url:ZodOptional<ZodUnion<…>>;id:ZodUUID;name:ZodOptional<ZodString>;object:ZodLiteral<"user">;person:ZodObject<{email_verified: …; },$strip>;type:ZodLiteral<"person">; },$strip>,ZodObject<{avatar_url:ZodOptional<ZodUnion<…>>;bot:ZodObject<{owner: …;workspace_id: …;workspace_limits: …;workspace_name: …; },$strip>;id:ZodUUID;name:ZodOptional<ZodString>;object:ZodLiteral<"user">;type:ZodLiteral<"bot">; },$strip>,ZodObject<{id:ZodUUID;object:ZodLiteral<"user">; },$strip>]>;last_edited_time:ZodUnion<readonly [ZodISODateTime,ZodISODate]>;object:ZodLiteral<"page">;parent:ZodDiscriminatedUnion<[ZodObject<{database_id:ZodUUID;type:ZodLiteral<"database_id">; },$strip>,ZodObject<{data_source_id:ZodUUID;database_id:ZodUUID;type:ZodLiteral<"data_source_id">; },$strip>,ZodObject<{page_id:ZodUUID;type:ZodLiteral<"page_id">; },$strip>,ZodObject<{type:ZodLiteral<"workspace">;workspace:ZodLiteral<true>; },$strip>,ZodObject<{block_id:ZodUUID;type:ZodLiteral<"block_id">; },$strip>,ZodObject<{agent_id:ZodUUID;type:ZodLiteral<"agent_id">; },$strip>],"type">;properties:ZodRecord<ZodString,ZodDiscriminatedUnion<[ZodObject<{checkbox:ZodBoolean;id:ZodString;type:ZodLiteral<…>; },$strip>,ZodObject<{created_by:ZodUnion<…>;id:ZodString;type:ZodLiteral<…>; },$strip>,ZodObject<{created_time:ZodUnion<…>;id:ZodString;type:ZodLiteral<…>; },$strip>,ZodObject<{date:ZodNullable<…>;id:ZodString;type:ZodLiteral<…>; },$strip>],"type">>;public_url:ZodNullable<ZodURL>;url:ZodURL; },$strip>>;total_count:ZodNumber;view_id:ZodUUID; },$strip>
Defined in: src/schemas/view.schema.ts:110
View query response schema. This response has a non-standard pagination shape:
object: "view_query", plus expires_at and total_count. Queries expire
about 15 minutes after creation.