Skip to content
0

katanakit-js / NotionBlockListSchema

Variable: NotionBlockListSchema ​

ts
const NotionBlockListSchema: ZodObject<{
  block: ZodRecord<ZodString, ZodUnknown>;
  has_more: ZodBoolean;
  next_cursor: ZodNullable<ZodString>;
  object: ZodLiteral<"list">;
  results: ZodArray<ZodObject<{
     archived: ZodOptional<ZodBoolean>;
     created_time: ZodOptional<ZodString>;
     has_children: ZodOptional<ZodBoolean>;
     id: ZodString;
     last_edited_time: ZodOptional<ZodString>;
     object: ZodLiteral<"block">;
     type: ZodString;
  }, $catchall<ZodUnknown>>>;
  type: ZodLiteral<"block">;
}, $loose>;

Defined in: src/schemas/notion.schema.ts:147

Result of listing block children (paginated).

Released under the MIT License.