@notionhq/client 5.21.0 → 5.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +121 -10
  2. package/build/package.json +1 -1
  3. package/build/src/Client.d.ts +12 -5
  4. package/build/src/Client.d.ts.map +1 -1
  5. package/build/src/Client.js +37 -8
  6. package/build/src/Client.js.map +1 -1
  7. package/build/src/api-endpoints/async-tasks.d.ts +141 -0
  8. package/build/src/api-endpoints/async-tasks.d.ts.map +1 -0
  9. package/build/src/api-endpoints/async-tasks.js +16 -0
  10. package/build/src/api-endpoints/async-tasks.js.map +1 -0
  11. package/build/src/api-endpoints/blocks.d.ts +1 -1
  12. package/build/src/api-endpoints/blocks.d.ts.map +1 -1
  13. package/build/src/api-endpoints/blocks.js.map +1 -1
  14. package/build/src/api-endpoints/comments.d.ts +1 -1
  15. package/build/src/api-endpoints/comments.d.ts.map +1 -1
  16. package/build/src/api-endpoints/comments.js.map +1 -1
  17. package/build/src/api-endpoints/common.d.ts +3 -0
  18. package/build/src/api-endpoints/common.d.ts.map +1 -1
  19. package/build/src/api-endpoints/common.js.map +1 -1
  20. package/build/src/api-endpoints/custom-emojis.d.ts +1 -1
  21. package/build/src/api-endpoints/custom-emojis.d.ts.map +1 -1
  22. package/build/src/api-endpoints/custom-emojis.js.map +1 -1
  23. package/build/src/api-endpoints/data-sources.d.ts +2 -2
  24. package/build/src/api-endpoints/data-sources.d.ts.map +1 -1
  25. package/build/src/api-endpoints/data-sources.js.map +1 -1
  26. package/build/src/api-endpoints/file-uploads.d.ts +1 -1
  27. package/build/src/api-endpoints/file-uploads.d.ts.map +1 -1
  28. package/build/src/api-endpoints/file-uploads.js.map +1 -1
  29. package/build/src/api-endpoints/pages.d.ts +12 -4
  30. package/build/src/api-endpoints/pages.d.ts.map +1 -1
  31. package/build/src/api-endpoints/pages.js +2 -0
  32. package/build/src/api-endpoints/pages.js.map +1 -1
  33. package/build/src/api-endpoints/search.d.ts +3 -1
  34. package/build/src/api-endpoints/search.d.ts.map +1 -1
  35. package/build/src/api-endpoints/search.js.map +1 -1
  36. package/build/src/api-endpoints/users.d.ts +1 -1
  37. package/build/src/api-endpoints/users.d.ts.map +1 -1
  38. package/build/src/api-endpoints/users.js.map +1 -1
  39. package/build/src/api-endpoints/views.d.ts +2 -2
  40. package/build/src/api-endpoints/views.d.ts.map +1 -1
  41. package/build/src/api-endpoints/views.js.map +1 -1
  42. package/build/src/api-endpoints.d.ts +2 -0
  43. package/build/src/api-endpoints.d.ts.map +1 -1
  44. package/build/src/api-endpoints.js +2 -0
  45. package/build/src/api-endpoints.js.map +1 -1
  46. package/build/src/errors.d.ts +1 -0
  47. package/build/src/errors.d.ts.map +1 -1
  48. package/build/src/errors.js +3 -0
  49. package/build/src/errors.js.map +1 -1
  50. package/build/src/helpers.d.ts +84 -1
  51. package/build/src/helpers.d.ts.map +1 -1
  52. package/build/src/helpers.js +134 -0
  53. package/build/src/helpers.js.map +1 -1
  54. package/build/src/index.d.ts +5 -2
  55. package/build/src/index.d.ts.map +1 -1
  56. package/build/src/index.js +6 -1
  57. package/build/src/index.js.map +1 -1
  58. package/build/src/webhooks.d.ts +56 -0
  59. package/build/src/webhooks.d.ts.map +1 -0
  60. package/build/src/webhooks.js +124 -0
  61. package/build/src/webhooks.js.map +1 -0
  62. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../src/api-endpoints/data-sources.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAsU/C;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA8B,EAAU,EAAE,CAC/C,gBAAgB,CAAC,CAAC,cAAc,EAAE;CAC5B,CAAA;AAgMV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ParentResponse,\n DatabaseParentResponse,\n EmptyObject,\n GroupFilterOperatorArray,\n IdRequest,\n IdResponse,\n NumberFormat,\n PageCoverResponse,\n PageIconRequest,\n PageIconResponse,\n PageObjectResponse,\n ParentOfDataSourceRequest,\n ParentOfDatabaseResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n PropertyConfigurationRequest,\n PropertyDescriptionRequest,\n PropertyFilter,\n RichTextItemRequest,\n RichTextItemResponse,\n RollupFunction,\n SelectColor,\n StatusPropertyConfigUpdateRequest,\n TimestampFilter,\n} from \"./common\"\n\ntype CheckboxDatabasePropertyConfigResponse = {\n // Always `checkbox`\n type: \"checkbox\"\n checkbox: EmptyObject\n}\n\ntype CreatedByDatabasePropertyConfigResponse = {\n // Always `created_by`\n type: \"created_by\"\n created_by: EmptyObject\n}\n\ntype CreatedTimeDatabasePropertyConfigResponse = {\n // Always `created_time`\n type: \"created_time\"\n created_time: EmptyObject\n}\n\nexport type DataSourceObjectResponse = {\n // The data source object type name.\n object: \"data_source\"\n // The ID of the data source.\n id: IdResponse\n // The title of the data source.\n title: Array<RichTextItemResponse>\n // The description of the data source.\n description: Array<RichTextItemResponse>\n // The parent of the data source.\n parent: ParentOfDataSourceResponse\n // The parent of the data source's containing database. This is typically a page, block,\n // or workspace, but can be another database in the case of wikis.\n database_parent: ParentOfDatabaseResponse\n // Whether the data source is inline.\n is_inline: boolean\n // Whether the data source is in the trash.\n in_trash: boolean\n /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */\n archived: boolean\n // The time when the data source was created.\n created_time: string\n // The time when the data source was last edited.\n last_edited_time: string\n // The user who created the data source.\n created_by: PartialUserObjectResponse\n // The user who last edited the data source.\n last_edited_by: PartialUserObjectResponse\n // The properties schema of the data source.\n properties: Record<string, DatabasePropertyConfigResponse>\n // The icon of the data source.\n icon: PageIconResponse | null\n // The cover of the data source.\n cover: PageCoverResponse | null\n // The URL of the data source.\n url: string\n // The public URL of the data source if it is publicly accessible.\n public_url: string | null\n}\n\ntype DatabasePropertyConfigResponse = DatabasePropertyConfigResponseCommon &\n (\n | NumberDatabasePropertyConfigResponse\n | FormulaDatabasePropertyConfigResponse\n | SelectDatabasePropertyConfigResponse\n | MultiSelectDatabasePropertyConfigResponse\n | StatusDatabasePropertyConfigResponse\n | RelationDatabasePropertyConfigResponse\n | RollupDatabasePropertyConfigResponse\n | UniqueIdDatabasePropertyConfigResponse\n | TitleDatabasePropertyConfigResponse\n | RichTextDatabasePropertyConfigResponse\n | UrlDatabasePropertyConfigResponse\n | PeopleDatabasePropertyConfigResponse\n | FilesDatabasePropertyConfigResponse\n | EmailDatabasePropertyConfigResponse\n | PhoneNumberDatabasePropertyConfigResponse\n | DateDatabasePropertyConfigResponse\n | CheckboxDatabasePropertyConfigResponse\n | CreatedByDatabasePropertyConfigResponse\n | CreatedTimeDatabasePropertyConfigResponse\n | LastEditedByDatabasePropertyConfigResponse\n | LastEditedTimeDatabasePropertyConfigResponse\n )\n\ntype DatabasePropertyConfigResponseCommon = {\n // The ID of the property.\n id: string\n // The name of the property.\n name: string\n // The description of the property.\n description: PropertyDescriptionRequest | null\n}\n\ntype DatabasePropertyRelationConfigResponse =\n DatabasePropertyRelationConfigResponseCommon &\n (\n | SinglePropertyDatabasePropertyRelationConfigResponse\n | DualPropertyDatabasePropertyRelationConfigResponse\n )\n\ntype DatabasePropertyRelationConfigResponseCommon = {\n database_id: IdResponse\n data_source_id: IdResponse\n}\n\ntype DateDatabasePropertyConfigResponse = {\n // Always `date`\n type: \"date\"\n date: EmptyObject\n}\n\ntype DualPropertyDatabasePropertyRelationConfigResponse = {\n // Always `dual_property`\n type?: \"dual_property\"\n dual_property: { synced_property_id: string; synced_property_name: string }\n}\n\ntype EmailDatabasePropertyConfigResponse = {\n // Always `email`\n type: \"email\"\n email: EmptyObject\n}\n\ntype FilesDatabasePropertyConfigResponse = {\n // Always `files`\n type: \"files\"\n files: EmptyObject\n}\n\ntype FormulaDatabasePropertyConfigResponse = {\n // Always `formula`\n type: \"formula\"\n formula: { expression: string }\n}\n\ntype LastEditedByDatabasePropertyConfigResponse = {\n // Always `last_edited_by`\n type: \"last_edited_by\"\n last_edited_by: EmptyObject\n}\n\ntype LastEditedTimeDatabasePropertyConfigResponse = {\n // Always `last_edited_time`\n type: \"last_edited_time\"\n last_edited_time: EmptyObject\n}\n\ntype MultiSelectDatabasePropertyConfigResponse = {\n // Always `multi_select`\n type: \"multi_select\"\n multi_select: { options: Array<SelectPropertyResponse> }\n}\n\ntype NumberDatabasePropertyConfigResponse = {\n // Always `number`\n type: \"number\"\n number: {\n // The number format for the property.\n format: NumberFormat\n }\n}\n\n/**\n * The parent of the data source. This is typically a database (`database_id`), but for\n * externally synced data sources, can be another data source (`data_source_id`).\n */\ntype ParentOfDataSourceResponse =\n | DatabaseParentResponse\n | DataSourceParentResponse\n\nexport type PartialDataSourceObjectResponse = {\n // The data source object type name.\n object: \"data_source\"\n // The ID of the data source.\n id: IdResponse\n // The properties schema of the data source.\n properties: Record<string, DatabasePropertyConfigResponse>\n}\n\ntype PeopleDatabasePropertyConfigResponse = {\n // Always `people`\n type: \"people\"\n people: EmptyObject\n}\n\ntype PhoneNumberDatabasePropertyConfigResponse = {\n // Always `phone_number`\n type: \"phone_number\"\n phone_number: EmptyObject\n}\n\ntype RelationDatabasePropertyConfigResponse = {\n // Always `relation`\n type: \"relation\"\n relation: DatabasePropertyRelationConfigResponse\n}\n\ntype RichTextDatabasePropertyConfigResponse = {\n // Always `rich_text`\n type: \"rich_text\"\n rich_text: EmptyObject\n}\n\ntype RollupDatabasePropertyConfigResponse = {\n // Always `rollup`\n type: \"rollup\"\n rollup: {\n // The function to use for the rollup, e.g. count, count_values, percent_not_empty, max.\n function: RollupFunction\n rollup_property_name: string\n relation_property_name: string\n rollup_property_id: string\n relation_property_id: string\n }\n}\n\ntype SelectDatabasePropertyConfigResponse = {\n // Always `select`\n type: \"select\"\n select: { options: Array<SelectPropertyResponse> }\n}\n\ntype SelectPropertyResponse = {\n id: string\n name: string\n color: SelectColor\n description: string | null\n}\n\ntype SinglePropertyDatabasePropertyRelationConfigResponse = {\n // Always `single_property`\n type: \"single_property\"\n single_property: EmptyObject\n}\n\ntype StatusDatabasePropertyConfigResponse = {\n // Always `status`\n type: \"status\"\n status: {\n // The options for the status property.\n options: Array<StatusPropertyResponse>\n // The groups for the status property.\n groups: Array<{\n // The ID of the status group.\n id: string\n // The name of the status group.\n name: string\n // The color of the status group.\n color: SelectColor\n // The IDs of the status options in this group.\n option_ids: Array<string>\n }>\n }\n}\n\ntype StatusPropertyResponse = {\n // The ID of the status option.\n id: string\n // The name of the status option.\n name: string\n // The color of the status option.\n color: SelectColor\n // The description of the status option.\n description: string | null\n}\n\ntype TitleDatabasePropertyConfigResponse = {\n // Always `title`\n type: \"title\"\n title: EmptyObject\n}\n\ntype UniqueIdDatabasePropertyConfigResponse = {\n // Always `unique_id`\n type: \"unique_id\"\n unique_id: {\n // The prefix for the unique ID.\n prefix: string | null\n }\n}\n\ntype UrlDatabasePropertyConfigResponse = {\n // Always `url`\n type: \"url\"\n url: EmptyObject\n}\n\ntype GetDataSourcePathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\nexport type GetDataSourceParameters = GetDataSourcePathParameters\n\nexport type GetDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Retrieve a data source\n */\nexport const getDataSource = {\n method: \"get\",\n pathParams: [\"data_source_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}`,\n} as const\n\ntype UpdateDataSourcePathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\ntype UpdateDataSourceBodyParameters = {\n // Title of data source as it appears in Notion.\n title?: Array<RichTextItemRequest>\n // Page icon.\n icon?: PageIconRequest | null\n // The property schema of the data source. The keys are property names or IDs, and the\n // values are property configuration objects. Properties set to null will be removed.\n properties?: Record<\n string,\n | ({\n // The name of the property.\n name?: string\n // The description of the property.\n description?: PropertyDescriptionRequest | null\n } & (\n | {\n // Always `number`\n type?: \"number\"\n number: { format?: NumberFormat }\n }\n | {\n // Always `formula`\n type?: \"formula\"\n formula: { expression?: string }\n }\n | {\n // Always `select`\n type?: \"select\"\n select: {\n options?: Array<\n { color?: SelectColor; description?: string | null } & (\n | { name: string; id?: string }\n | { id: string; name?: string }\n )\n >\n }\n }\n | {\n // Always `multi_select`\n type?: \"multi_select\"\n multi_select: {\n options?: Array<\n { color?: SelectColor; description?: string | null } & (\n | { name: string; id?: string }\n | { id: string; name?: string }\n )\n >\n }\n }\n | {\n // Always `status`\n type?: \"status\"\n status: StatusPropertyConfigUpdateRequest\n }\n | {\n // Always `relation`\n type?: \"relation\"\n relation: { data_source_id: IdRequest } & (\n | {\n // Always `single_property`\n type?: \"single_property\"\n single_property: EmptyObject\n }\n | {\n // Always `dual_property`\n type?: \"dual_property\"\n dual_property: {\n synced_property_id?: string\n synced_property_name?: string\n }\n }\n )\n }\n | {\n // Always `rollup`\n type?: \"rollup\"\n rollup: {\n // The function to use for the rollup, e.g. count, count_values, percent_not_empty, max.\n function: RollupFunction\n } & (\n | { relation_property_name: string; rollup_property_name: string }\n | { relation_property_id: string; rollup_property_name: string }\n | { relation_property_name: string; rollup_property_id: string }\n | { relation_property_id: string; rollup_property_id: string }\n )\n }\n | {\n // Always `unique_id`\n type?: \"unique_id\"\n unique_id: { prefix?: string | null }\n }\n | {\n // Always `title`\n type?: \"title\"\n title: EmptyObject\n }\n | {\n // Always `rich_text`\n type?: \"rich_text\"\n rich_text: EmptyObject\n }\n | {\n // Always `url`\n type?: \"url\"\n url: EmptyObject\n }\n | {\n // Always `people`\n type?: \"people\"\n people: EmptyObject\n }\n | {\n // Always `files`\n type?: \"files\"\n files: EmptyObject\n }\n | {\n // Always `email`\n type?: \"email\"\n email: EmptyObject\n }\n | {\n // Always `phone_number`\n type?: \"phone_number\"\n phone_number: EmptyObject\n }\n | {\n // Always `date`\n type?: \"date\"\n date: EmptyObject\n }\n | {\n // Always `checkbox`\n type?: \"checkbox\"\n checkbox: EmptyObject\n }\n | {\n // Always `created_by`\n type?: \"created_by\"\n created_by: EmptyObject\n }\n | {\n // Always `created_time`\n type?: \"created_time\"\n created_time: EmptyObject\n }\n | {\n // Always `last_edited_by`\n type?: \"last_edited_by\"\n last_edited_by: EmptyObject\n }\n | {\n // Always `last_edited_time`\n type?: \"last_edited_time\"\n last_edited_time: EmptyObject\n }\n | {\n // Always `place`\n type?: \"place\"\n place: EmptyObject\n }\n ))\n | {\n // The new name of the property.\n name: string\n }\n | null\n >\n // Whether the database should be moved to or from the trash. If not provided, the trash\n // status will not be updated.\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n // The parent of the data source, when moving it to a different database. If not\n // provided, the parent will not be updated.\n parent?: ParentOfDataSourceRequest\n}\n\nexport type UpdateDataSourceParameters = UpdateDataSourcePathParameters &\n UpdateDataSourceBodyParameters\n\nexport type UpdateDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Update a data source\n */\nexport const updateDataSource = {\n method: \"patch\",\n pathParams: [\"data_source_id\"],\n queryParams: [],\n bodyParams: [\"archived\", \"title\", \"icon\", \"properties\", \"in_trash\", \"parent\"],\n\n path: (p: UpdateDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}`,\n} as const\n\ntype QueryDataSourcePathParameters = {\n data_source_id: IdRequest\n}\n\ntype QueryDataSourceQueryParameters = {\n filter_properties?: Array<string>\n}\n\ntype QueryDataSourceBodyParameters = {\n sorts?: Array<\n | { property: string; direction: \"ascending\" | \"descending\" }\n | {\n timestamp: \"created_time\" | \"last_edited_time\"\n direction: \"ascending\" | \"descending\"\n }\n >\n filter?:\n | { or: GroupFilterOperatorArray }\n | { and: GroupFilterOperatorArray }\n | PropertyFilter\n | TimestampFilter\n start_cursor?: string\n page_size?: number\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n // Optionally filter the results to only include pages or data sources. Regular, non-wiki\n // databases only support page children. The default behavior is no result type\n // filtering, in other words, returning both pages and data sources for wikis.\n result_type?: \"page\" | \"data_source\"\n}\n\nexport type QueryDataSourceParameters = QueryDataSourcePathParameters &\n QueryDataSourceQueryParameters &\n QueryDataSourceBodyParameters\n\nexport type QueryDataSourceResponse = {\n type: \"page_or_data_source\"\n page_or_data_source: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<\n | PageObjectResponse\n | PartialPageObjectResponse\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n >\n request_status?: {\n type: \"complete\" | \"incomplete\"\n incomplete_reason?: \"query_result_limit_reached\"\n }\n}\n\n/**\n * Query a data source\n */\nexport const queryDataSource = {\n method: \"post\",\n pathParams: [\"data_source_id\"],\n queryParams: [\"filter_properties\"],\n bodyParams: [\n \"archived\",\n \"sorts\",\n \"filter\",\n \"start_cursor\",\n \"page_size\",\n \"in_trash\",\n \"result_type\",\n ],\n\n path: (p: QueryDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}/query`,\n} as const\n\ntype CreateDataSourceBodyParameters = {\n // An object specifying the parent of the new data source to be created.\n parent: ParentOfDataSourceRequest\n // Property schema of data source.\n properties: Record<string, PropertyConfigurationRequest>\n // Title of data source as it appears in Notion.\n title?: Array<RichTextItemRequest>\n // Page icon.\n icon?: PageIconRequest | null\n}\n\nexport type CreateDataSourceParameters = CreateDataSourceBodyParameters\n\nexport type CreateDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Create a data source\n */\nexport const createDataSource = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"parent\", \"properties\", \"title\", \"icon\"],\n\n path: (): string => `data_sources`,\n} as const\n\ntype ListDataSourceTemplatesPathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\ntype ListDataSourceTemplatesQueryParameters = {\n // Filter templates by name (case-insensitive substring match).\n name?: string\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided. If not supplied, this endpoint will return the first page of results.\n start_cursor?: string\n // The number of items from the full list desired in the response. Maximum: 100\n page_size?: number\n}\n\nexport type ListDataSourceTemplatesParameters =\n ListDataSourceTemplatesPathParameters & ListDataSourceTemplatesQueryParameters\n\nexport type ListDataSourceTemplatesResponse = {\n // Array of templates available in this data source.\n templates: Array<{\n // ID of the template page.\n id: IdResponse\n // Name of the template.\n name: string\n // Whether this template is the default template for the data source.\n is_default: boolean\n }>\n // Whether there are more templates available beyond this page.\n has_more: boolean\n // Cursor to use for the next page of results. Null if there are no more results.\n next_cursor: IdResponse | null\n}\n\n/**\n * List templates in a data source\n */\nexport const listDataSourceTemplates = {\n method: \"get\",\n pathParams: [\"data_source_id\"],\n queryParams: [\"name\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: ListDataSourceTemplatesPathParameters): string =>\n `data_sources/${p.data_source_id}/templates`,\n} as const\n"]}
1
+ {"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../src/api-endpoints/data-sources.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAsU/C;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA8B,EAAU,EAAE,CAC/C,gBAAgB,CAAC,CAAC,cAAc,EAAE;CAC5B,CAAA;AAgMV;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,CAAC;IAE7E,IAAI,EAAE,CAAC,CAAiC,EAAU,EAAE,CAClD,gBAAgB,CAAC,CAAC,cAAc,EAAE;CAC5B,CAAA;AAwDV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,CAAC,mBAAmB,CAAC;IAClC,UAAU,EAAE;QACV,UAAU;QACV,OAAO;QACP,QAAQ;QACR,cAAc;QACd,WAAW;QACX,UAAU;QACV,aAAa;KACd;IAED,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,gBAAgB,CAAC,CAAC,cAAc,QAAQ;CAClC,CAAA;AAmBV;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,CAAC;IAErD,IAAI,EAAE,GAAW,EAAE,CAAC,cAAc;CAC1B,CAAA;AAoCV;;GAEG;AACU,QAAA,uBAAuB,GAAG;IACrC,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,WAAW,CAAC;IAClD,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAwC,EAAU,EAAE,CACzD,gBAAgB,CAAC,CAAC,cAAc,YAAY;CACtC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n DataSourceParentResponse,\n DatabaseParentResponse,\n EmptyObject,\n GroupFilterOperatorArray,\n IdRequest,\n IdResponse,\n NumberFormat,\n PageCoverResponse,\n PageIconRequest,\n PageIconResponse,\n PageObjectResponse,\n ParentOfDataSourceRequest,\n ParentOfDatabaseResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n PropertyConfigurationRequest,\n PropertyDescriptionRequest,\n PropertyFilter,\n RichTextItemRequest,\n RichTextItemResponse,\n RollupFunction,\n SelectColor,\n StatusPropertyConfigUpdateRequest,\n TimestampFilter,\n} from \"./common\"\n\ntype CheckboxDatabasePropertyConfigResponse = {\n // Always `checkbox`\n type: \"checkbox\"\n checkbox: EmptyObject\n}\n\ntype CreatedByDatabasePropertyConfigResponse = {\n // Always `created_by`\n type: \"created_by\"\n created_by: EmptyObject\n}\n\ntype CreatedTimeDatabasePropertyConfigResponse = {\n // Always `created_time`\n type: \"created_time\"\n created_time: EmptyObject\n}\n\nexport type DataSourceObjectResponse = {\n // The data source object type name.\n object: \"data_source\"\n // The ID of the data source.\n id: IdResponse\n // The title of the data source.\n title: Array<RichTextItemResponse>\n // The description of the data source.\n description: Array<RichTextItemResponse>\n // The parent of the data source.\n parent: ParentOfDataSourceResponse\n // The parent of the data source's containing database. This is typically a page, block,\n // or workspace, but can be another database in the case of wikis.\n database_parent: ParentOfDatabaseResponse\n // Whether the data source is inline.\n is_inline: boolean\n // Whether the data source is in the trash.\n in_trash: boolean\n /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */\n archived: boolean\n // The time when the data source was created.\n created_time: string\n // The time when the data source was last edited.\n last_edited_time: string\n // The user who created the data source.\n created_by: PartialUserObjectResponse\n // The user who last edited the data source.\n last_edited_by: PartialUserObjectResponse\n // The properties schema of the data source.\n properties: Record<string, DatabasePropertyConfigResponse>\n // The icon of the data source.\n icon: PageIconResponse | null\n // The cover of the data source.\n cover: PageCoverResponse | null\n // The URL of the data source.\n url: string\n // The public URL of the data source if it is publicly accessible.\n public_url: string | null\n}\n\ntype DatabasePropertyConfigResponse = DatabasePropertyConfigResponseCommon &\n (\n | NumberDatabasePropertyConfigResponse\n | FormulaDatabasePropertyConfigResponse\n | SelectDatabasePropertyConfigResponse\n | MultiSelectDatabasePropertyConfigResponse\n | StatusDatabasePropertyConfigResponse\n | RelationDatabasePropertyConfigResponse\n | RollupDatabasePropertyConfigResponse\n | UniqueIdDatabasePropertyConfigResponse\n | TitleDatabasePropertyConfigResponse\n | RichTextDatabasePropertyConfigResponse\n | UrlDatabasePropertyConfigResponse\n | PeopleDatabasePropertyConfigResponse\n | FilesDatabasePropertyConfigResponse\n | EmailDatabasePropertyConfigResponse\n | PhoneNumberDatabasePropertyConfigResponse\n | DateDatabasePropertyConfigResponse\n | CheckboxDatabasePropertyConfigResponse\n | CreatedByDatabasePropertyConfigResponse\n | CreatedTimeDatabasePropertyConfigResponse\n | LastEditedByDatabasePropertyConfigResponse\n | LastEditedTimeDatabasePropertyConfigResponse\n )\n\ntype DatabasePropertyConfigResponseCommon = {\n // The ID of the property.\n id: string\n // The name of the property.\n name: string\n // The description of the property.\n description: PropertyDescriptionRequest | null\n}\n\ntype DatabasePropertyRelationConfigResponse =\n DatabasePropertyRelationConfigResponseCommon &\n (\n | SinglePropertyDatabasePropertyRelationConfigResponse\n | DualPropertyDatabasePropertyRelationConfigResponse\n )\n\ntype DatabasePropertyRelationConfigResponseCommon = {\n database_id: IdResponse\n data_source_id: IdResponse\n}\n\ntype DateDatabasePropertyConfigResponse = {\n // Always `date`\n type: \"date\"\n date: EmptyObject\n}\n\ntype DualPropertyDatabasePropertyRelationConfigResponse = {\n // Always `dual_property`\n type?: \"dual_property\"\n dual_property: { synced_property_id: string; synced_property_name: string }\n}\n\ntype EmailDatabasePropertyConfigResponse = {\n // Always `email`\n type: \"email\"\n email: EmptyObject\n}\n\ntype FilesDatabasePropertyConfigResponse = {\n // Always `files`\n type: \"files\"\n files: EmptyObject\n}\n\ntype FormulaDatabasePropertyConfigResponse = {\n // Always `formula`\n type: \"formula\"\n formula: { expression: string }\n}\n\ntype LastEditedByDatabasePropertyConfigResponse = {\n // Always `last_edited_by`\n type: \"last_edited_by\"\n last_edited_by: EmptyObject\n}\n\ntype LastEditedTimeDatabasePropertyConfigResponse = {\n // Always `last_edited_time`\n type: \"last_edited_time\"\n last_edited_time: EmptyObject\n}\n\ntype MultiSelectDatabasePropertyConfigResponse = {\n // Always `multi_select`\n type: \"multi_select\"\n multi_select: { options: Array<SelectPropertyResponse> }\n}\n\ntype NumberDatabasePropertyConfigResponse = {\n // Always `number`\n type: \"number\"\n number: {\n // The number format for the property.\n format: NumberFormat\n }\n}\n\n/**\n * The parent of the data source. This is typically a database (`database_id`), but for\n * externally synced data sources, can be another data source (`data_source_id`).\n */\ntype ParentOfDataSourceResponse =\n | DatabaseParentResponse\n | DataSourceParentResponse\n\nexport type PartialDataSourceObjectResponse = {\n // The data source object type name.\n object: \"data_source\"\n // The ID of the data source.\n id: IdResponse\n // The properties schema of the data source.\n properties: Record<string, DatabasePropertyConfigResponse>\n}\n\ntype PeopleDatabasePropertyConfigResponse = {\n // Always `people`\n type: \"people\"\n people: EmptyObject\n}\n\ntype PhoneNumberDatabasePropertyConfigResponse = {\n // Always `phone_number`\n type: \"phone_number\"\n phone_number: EmptyObject\n}\n\ntype RelationDatabasePropertyConfigResponse = {\n // Always `relation`\n type: \"relation\"\n relation: DatabasePropertyRelationConfigResponse\n}\n\ntype RichTextDatabasePropertyConfigResponse = {\n // Always `rich_text`\n type: \"rich_text\"\n rich_text: EmptyObject\n}\n\ntype RollupDatabasePropertyConfigResponse = {\n // Always `rollup`\n type: \"rollup\"\n rollup: {\n // The function to use for the rollup, e.g. count, count_values, percent_not_empty, max.\n function: RollupFunction\n rollup_property_name: string\n relation_property_name: string\n rollup_property_id: string\n relation_property_id: string\n }\n}\n\ntype SelectDatabasePropertyConfigResponse = {\n // Always `select`\n type: \"select\"\n select: { options: Array<SelectPropertyResponse> }\n}\n\ntype SelectPropertyResponse = {\n id: string\n name: string\n color: SelectColor\n description: string | null\n}\n\ntype SinglePropertyDatabasePropertyRelationConfigResponse = {\n // Always `single_property`\n type: \"single_property\"\n single_property: EmptyObject\n}\n\ntype StatusDatabasePropertyConfigResponse = {\n // Always `status`\n type: \"status\"\n status: {\n // The options for the status property.\n options: Array<StatusPropertyResponse>\n // The groups for the status property.\n groups: Array<{\n // The ID of the status group.\n id: string\n // The name of the status group.\n name: string\n // The color of the status group.\n color: SelectColor\n // The IDs of the status options in this group.\n option_ids: Array<string>\n }>\n }\n}\n\ntype StatusPropertyResponse = {\n // The ID of the status option.\n id: string\n // The name of the status option.\n name: string\n // The color of the status option.\n color: SelectColor\n // The description of the status option.\n description: string | null\n}\n\ntype TitleDatabasePropertyConfigResponse = {\n // Always `title`\n type: \"title\"\n title: EmptyObject\n}\n\ntype UniqueIdDatabasePropertyConfigResponse = {\n // Always `unique_id`\n type: \"unique_id\"\n unique_id: {\n // The prefix for the unique ID.\n prefix: string | null\n }\n}\n\ntype UrlDatabasePropertyConfigResponse = {\n // Always `url`\n type: \"url\"\n url: EmptyObject\n}\n\ntype GetDataSourcePathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\nexport type GetDataSourceParameters = GetDataSourcePathParameters\n\nexport type GetDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Retrieve a data source\n */\nexport const getDataSource = {\n method: \"get\",\n pathParams: [\"data_source_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}`,\n} as const\n\ntype UpdateDataSourcePathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\ntype UpdateDataSourceBodyParameters = {\n // Title of data source as it appears in Notion.\n title?: Array<RichTextItemRequest>\n // Page icon.\n icon?: PageIconRequest | null\n // The property schema of the data source. The keys are property names or IDs, and the\n // values are property configuration objects. Properties set to null will be removed.\n properties?: Record<\n string,\n | ({\n // The name of the property.\n name?: string\n // The description of the property.\n description?: PropertyDescriptionRequest | null\n } & (\n | {\n // Always `number`\n type?: \"number\"\n number: { format?: NumberFormat }\n }\n | {\n // Always `formula`\n type?: \"formula\"\n formula: { expression?: string }\n }\n | {\n // Always `select`\n type?: \"select\"\n select: {\n options?: Array<\n { color?: SelectColor; description?: string | null } & (\n | { name: string; id?: string }\n | { id: string; name?: string }\n )\n >\n }\n }\n | {\n // Always `multi_select`\n type?: \"multi_select\"\n multi_select: {\n options?: Array<\n { color?: SelectColor; description?: string | null } & (\n | { name: string; id?: string }\n | { id: string; name?: string }\n )\n >\n }\n }\n | {\n // Always `status`\n type?: \"status\"\n status: StatusPropertyConfigUpdateRequest\n }\n | {\n // Always `relation`\n type?: \"relation\"\n relation: { data_source_id: IdRequest } & (\n | {\n // Always `single_property`\n type?: \"single_property\"\n single_property: EmptyObject\n }\n | {\n // Always `dual_property`\n type?: \"dual_property\"\n dual_property: {\n synced_property_id?: string\n synced_property_name?: string\n }\n }\n )\n }\n | {\n // Always `rollup`\n type?: \"rollup\"\n rollup: {\n // The function to use for the rollup, e.g. count, count_values, percent_not_empty, max.\n function: RollupFunction\n } & (\n | { relation_property_name: string; rollup_property_name: string }\n | { relation_property_id: string; rollup_property_name: string }\n | { relation_property_name: string; rollup_property_id: string }\n | { relation_property_id: string; rollup_property_id: string }\n )\n }\n | {\n // Always `unique_id`\n type?: \"unique_id\"\n unique_id: { prefix?: string | null }\n }\n | {\n // Always `title`\n type?: \"title\"\n title: EmptyObject\n }\n | {\n // Always `rich_text`\n type?: \"rich_text\"\n rich_text: EmptyObject\n }\n | {\n // Always `url`\n type?: \"url\"\n url: EmptyObject\n }\n | {\n // Always `people`\n type?: \"people\"\n people: EmptyObject\n }\n | {\n // Always `files`\n type?: \"files\"\n files: EmptyObject\n }\n | {\n // Always `email`\n type?: \"email\"\n email: EmptyObject\n }\n | {\n // Always `phone_number`\n type?: \"phone_number\"\n phone_number: EmptyObject\n }\n | {\n // Always `date`\n type?: \"date\"\n date: EmptyObject\n }\n | {\n // Always `checkbox`\n type?: \"checkbox\"\n checkbox: EmptyObject\n }\n | {\n // Always `created_by`\n type?: \"created_by\"\n created_by: EmptyObject\n }\n | {\n // Always `created_time`\n type?: \"created_time\"\n created_time: EmptyObject\n }\n | {\n // Always `last_edited_by`\n type?: \"last_edited_by\"\n last_edited_by: EmptyObject\n }\n | {\n // Always `last_edited_time`\n type?: \"last_edited_time\"\n last_edited_time: EmptyObject\n }\n | {\n // Always `place`\n type?: \"place\"\n place: EmptyObject\n }\n ))\n | {\n // The new name of the property.\n name: string\n }\n | null\n >\n // Whether the database should be moved to or from the trash. If not provided, the trash\n // status will not be updated.\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n // The parent of the data source, when moving it to a different database. If not\n // provided, the parent will not be updated.\n parent?: ParentOfDataSourceRequest\n}\n\nexport type UpdateDataSourceParameters = UpdateDataSourcePathParameters &\n UpdateDataSourceBodyParameters\n\nexport type UpdateDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Update a data source\n */\nexport const updateDataSource = {\n method: \"patch\",\n pathParams: [\"data_source_id\"],\n queryParams: [],\n bodyParams: [\"archived\", \"title\", \"icon\", \"properties\", \"in_trash\", \"parent\"],\n\n path: (p: UpdateDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}`,\n} as const\n\ntype QueryDataSourcePathParameters = {\n data_source_id: IdRequest\n}\n\ntype QueryDataSourceQueryParameters = {\n filter_properties?: Array<string>\n}\n\ntype QueryDataSourceBodyParameters = {\n sorts?: Array<\n | { property: string; direction: \"ascending\" | \"descending\" }\n | {\n timestamp: \"created_time\" | \"last_edited_time\"\n direction: \"ascending\" | \"descending\"\n }\n >\n filter?:\n | { or: GroupFilterOperatorArray }\n | { and: GroupFilterOperatorArray }\n | PropertyFilter\n | TimestampFilter\n start_cursor?: string | null\n page_size?: number\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n // Optionally filter the results to only include pages or data sources. Regular, non-wiki\n // databases only support page children. The default behavior is no result type\n // filtering, in other words, returning both pages and data sources for wikis.\n result_type?: \"page\" | \"data_source\"\n}\n\nexport type QueryDataSourceParameters = QueryDataSourcePathParameters &\n QueryDataSourceQueryParameters &\n QueryDataSourceBodyParameters\n\nexport type QueryDataSourceResponse = {\n type: \"page_or_data_source\"\n page_or_data_source: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<\n | PageObjectResponse\n | PartialPageObjectResponse\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n >\n request_status?: {\n type: \"complete\" | \"incomplete\"\n incomplete_reason?: \"query_result_limit_reached\"\n }\n}\n\n/**\n * Query a data source\n */\nexport const queryDataSource = {\n method: \"post\",\n pathParams: [\"data_source_id\"],\n queryParams: [\"filter_properties\"],\n bodyParams: [\n \"archived\",\n \"sorts\",\n \"filter\",\n \"start_cursor\",\n \"page_size\",\n \"in_trash\",\n \"result_type\",\n ],\n\n path: (p: QueryDataSourcePathParameters): string =>\n `data_sources/${p.data_source_id}/query`,\n} as const\n\ntype CreateDataSourceBodyParameters = {\n // An object specifying the parent of the new data source to be created.\n parent: ParentOfDataSourceRequest\n // Property schema of data source.\n properties: Record<string, PropertyConfigurationRequest>\n // Title of data source as it appears in Notion.\n title?: Array<RichTextItemRequest>\n // Page icon.\n icon?: PageIconRequest | null\n}\n\nexport type CreateDataSourceParameters = CreateDataSourceBodyParameters\n\nexport type CreateDataSourceResponse =\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n\n/**\n * Create a data source\n */\nexport const createDataSource = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"parent\", \"properties\", \"title\", \"icon\"],\n\n path: (): string => `data_sources`,\n} as const\n\ntype ListDataSourceTemplatesPathParameters = {\n // ID of a Notion data source.\n data_source_id: IdRequest\n}\n\ntype ListDataSourceTemplatesQueryParameters = {\n // Filter templates by name (case-insensitive substring match).\n name?: string\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided. If not supplied, this endpoint will return the first page of results.\n start_cursor?: string | null\n // The number of items from the full list desired in the response. Maximum: 100\n page_size?: number\n}\n\nexport type ListDataSourceTemplatesParameters =\n ListDataSourceTemplatesPathParameters & ListDataSourceTemplatesQueryParameters\n\nexport type ListDataSourceTemplatesResponse = {\n // Array of templates available in this data source.\n templates: Array<{\n // ID of the template page.\n id: IdResponse\n // Name of the template.\n name: string\n // Whether this template is the default template for the data source.\n is_default: boolean\n }>\n // Whether there are more templates available beyond this page.\n has_more: boolean\n // Cursor to use for the next page of results. Null if there are no more results.\n next_cursor: IdResponse | null\n}\n\n/**\n * List templates in a data source\n */\nexport const listDataSourceTemplates = {\n method: \"get\",\n pathParams: [\"data_source_id\"],\n queryParams: [\"name\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: ListDataSourceTemplatesPathParameters): string =>\n `data_sources/${p.data_source_id}/templates`,\n} as const\n"]}
@@ -59,7 +59,7 @@ export declare const createFileUpload: {
59
59
  };
60
60
  type ListFileUploadsQueryParameters = {
61
61
  status?: "pending" | "uploaded" | "expired" | "failed";
62
- start_cursor?: string;
62
+ start_cursor?: string | null;
63
63
  page_size?: number;
64
64
  };
65
65
  export type ListFileUploadsParameters = ListFileUploadsQueryParameters;
@@ -1 +1 @@
1
- {"version":3,"file":"file-uploads.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/file-uploads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,UAAU,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,wBAAwB,GAAG;IAErC,MAAM,EAAE,aAAa,CAAA;IACrB,EAAE,EAAE,UAAU,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE;QACV,EAAE,EAAE,UAAU,CAAA;QAEd,IAAI,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAA;KACjC,CAAA;IACD,gBAAgB,EAAE,MAAM,CAAA;IACxB,QAAQ,EAAE,OAAO,CAAA;IACjB,qHAAqH;IACrH,QAAQ,EAAE,OAAO,CAAA;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAA;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,CAAC,cAAc,EAAE;CAC5B,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n EmptyObject,\n IdRequest,\n IdResponse,\n RequestStatusResponse,\n} from \"./common\"\n\nexport type FileUploadObjectResponse = {\n // Always `file_upload`\n object: \"file_upload\"\n id: IdResponse\n created_time: string\n created_by: {\n id: IdResponse\n // One of: `person`, `bot`, `agent`\n type: \"person\" | \"bot\" | \"agent\"\n }\n last_edited_time: string\n in_trash: boolean\n /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */\n archived: boolean\n expiry_time: string | null\n // One of: `pending`, `uploaded`, `expired`, `failed`\n status: \"pending\" | \"uploaded\" | \"expired\" | \"failed\"\n filename: string | null\n content_type: string | null\n content_length: number | null\n upload_url?: string\n complete_url?: string\n file_import_result?: {\n // The time the file was imported into Notion. ISO 8601 format.\n imported_time: string\n } & (\n | {\n // Indicates a successful import.\n type: \"success\"\n // Empty object for success type.\n success: EmptyObject\n }\n | {\n // Indicates an error occurred during import.\n type: \"error\"\n // Details about the error that occurred during file import.\n error: {\n // The type of error that occurred during file import.\n type:\n | \"validation_error\"\n | \"internal_system_error\"\n | \"download_error\"\n | \"upload_error\"\n // A short string code representing the error.\n code: string\n // A human-readable message describing the error.\n message: string\n // The parameter related to the error, if applicable. Null if not applicable.\n parameter: string | null\n // The HTTP status code associated with the error, if available. Null if not applicable.\n status_code: number | null\n }\n }\n )\n number_of_parts?: { total: number; sent: number }\n}\n\ntype CreateFileUploadBodyParameters = {\n // How the file is being sent. Use `multi_part` for files larger than 20MB. Use\n // `external_url` for files that are temporarily hosted publicly elsewhere. Default is\n // `single_part`.\n mode?: \"single_part\" | \"multi_part\" | \"external_url\"\n // Name of the file to be created. Required when `mode` is `multi_part`. Otherwise\n // optional, and used to override the filename. Must include an extension, or have one\n // inferred from the `content_type` parameter.\n filename?: string\n // MIME type of the file to be created. Recommended when sending the file in multiple\n // parts. Must match the content type of the file that's sent, and the extension of the\n // `filename` parameter if any.\n content_type?: string\n // When `mode` is `multi_part`, the number of parts you are uploading. This must match\n // the number of parts as well as the final `part_number` you send.\n number_of_parts?: number\n // When `mode` is `external_url`, provide the HTTPS URL of a publicly accessible file to\n // import into your workspace.\n external_url?: string\n}\n\nexport type CreateFileUploadParameters = CreateFileUploadBodyParameters\n\nexport type CreateFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Create a file upload\n */\nexport const createFileUpload = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"mode\",\n \"filename\",\n \"content_type\",\n \"number_of_parts\",\n \"external_url\",\n ],\n\n path: (): string => `file_uploads`,\n} as const\n\ntype ListFileUploadsQueryParameters = {\n // If supplied, the endpoint will return file uploads with the specified status.\n status?: \"pending\" | \"uploaded\" | \"expired\" | \"failed\"\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided. If not supplied, this endpoint will return the first page of results.\n start_cursor?: string\n // The number of items from the full list desired in the response. Maximum: 100\n page_size?: number\n}\n\nexport type ListFileUploadsParameters = ListFileUploadsQueryParameters\n\nexport type ListFileUploadsResponse = {\n // Always `list`\n object: \"list\"\n next_cursor: IdResponse | null\n has_more: boolean\n results: Array<FileUploadObjectResponse>\n // Always `file_upload`\n type: \"file_upload\"\n file_upload: EmptyObject\n request_status?: RequestStatusResponse\n}\n\n/**\n * List file uploads\n */\nexport const listFileUploads = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"status\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (): string => `file_uploads`,\n} as const\n\ntype SendFileUploadPathParameters = {\n // Identifier for a Notion file upload object.\n file_upload_id: IdRequest\n}\n\ntype SendFileUploadFormDataParameters = {\n file: { filename?: string; data: string | Blob }\n part_number?: string\n}\n\nexport type SendFileUploadParameters = SendFileUploadPathParameters &\n SendFileUploadFormDataParameters\n\nexport type SendFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Upload a file\n */\nexport const sendFileUpload = {\n method: \"post\",\n pathParams: [\"file_upload_id\"],\n queryParams: [],\n bodyParams: [],\n formDataParams: [\"file\", \"part_number\"],\n path: (p: SendFileUploadPathParameters): string =>\n `file_uploads/${p.file_upload_id}/send`,\n} as const\n\ntype CompleteFileUploadPathParameters = {\n // Identifier for a Notion file upload object.\n file_upload_id: IdRequest\n}\n\nexport type CompleteFileUploadParameters = CompleteFileUploadPathParameters\n\nexport type CompleteFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Complete a multi-part file upload\n */\nexport const completeFileUpload = {\n method: \"post\",\n pathParams: [\"file_upload_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: CompleteFileUploadPathParameters): string =>\n `file_uploads/${p.file_upload_id}/complete`,\n} as const\n\ntype GetFileUploadPathParameters = {\n // Identifier for a Notion file upload object.\n file_upload_id: IdRequest\n}\n\nexport type GetFileUploadParameters = GetFileUploadPathParameters\n\nexport type GetFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Retrieve a file upload\n */\nexport const getFileUpload = {\n method: \"get\",\n pathParams: [\"file_upload_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetFileUploadPathParameters): string =>\n `file_uploads/${p.file_upload_id}`,\n} as const\n"]}
1
+ {"version":3,"file":"file-uploads.js","sourceRoot":"","sources":["../../../src/api-endpoints/file-uploads.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA2F/C;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,MAAM;QACN,UAAU;QACV,cAAc;QACd,iBAAiB;QACjB,cAAc;KACf;IAED,IAAI,EAAE,GAAW,EAAE,CAAC,cAAc;CAC1B,CAAA;AA0BV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,WAAW,CAAC;IACpD,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,cAAc;CAC1B,CAAA;AAiBV;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IACd,cAAc,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC;IACvC,IAAI,EAAE,CAAC,CAA+B,EAAU,EAAE,CAChD,gBAAgB,CAAC,CAAC,cAAc,OAAO;CACjC,CAAA;AAWV;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAmC,EAAU,EAAE,CACpD,gBAAgB,CAAC,CAAC,cAAc,WAAW;CACrC,CAAA;AAWV;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,gBAAgB,CAAC;IAC9B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA8B,EAAU,EAAE,CAC/C,gBAAgB,CAAC,CAAC,cAAc,EAAE;CAC5B,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n EmptyObject,\n IdRequest,\n IdResponse,\n RequestStatusResponse,\n} from \"./common\"\n\nexport type FileUploadObjectResponse = {\n // Always `file_upload`\n object: \"file_upload\"\n id: IdResponse\n created_time: string\n created_by: {\n id: IdResponse\n // One of: `person`, `bot`, `agent`\n type: \"person\" | \"bot\" | \"agent\"\n }\n last_edited_time: string\n in_trash: boolean\n /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */\n archived: boolean\n expiry_time: string | null\n // One of: `pending`, `uploaded`, `expired`, `failed`\n status: \"pending\" | \"uploaded\" | \"expired\" | \"failed\"\n filename: string | null\n content_type: string | null\n content_length: number | null\n upload_url?: string\n complete_url?: string\n file_import_result?: {\n // The time the file was imported into Notion. ISO 8601 format.\n imported_time: string\n } & (\n | {\n // Indicates a successful import.\n type: \"success\"\n // Empty object for success type.\n success: EmptyObject\n }\n | {\n // Indicates an error occurred during import.\n type: \"error\"\n // Details about the error that occurred during file import.\n error: {\n // The type of error that occurred during file import.\n type:\n | \"validation_error\"\n | \"internal_system_error\"\n | \"download_error\"\n | \"upload_error\"\n // A short string code representing the error.\n code: string\n // A human-readable message describing the error.\n message: string\n // The parameter related to the error, if applicable. Null if not applicable.\n parameter: string | null\n // The HTTP status code associated with the error, if available. Null if not applicable.\n status_code: number | null\n }\n }\n )\n number_of_parts?: { total: number; sent: number }\n}\n\ntype CreateFileUploadBodyParameters = {\n // How the file is being sent. Use `multi_part` for files larger than 20MB. Use\n // `external_url` for files that are temporarily hosted publicly elsewhere. Default is\n // `single_part`.\n mode?: \"single_part\" | \"multi_part\" | \"external_url\"\n // Name of the file to be created. Required when `mode` is `multi_part`. Otherwise\n // optional, and used to override the filename. Must include an extension, or have one\n // inferred from the `content_type` parameter.\n filename?: string\n // MIME type of the file to be created. Recommended when sending the file in multiple\n // parts. Must match the content type of the file that's sent, and the extension of the\n // `filename` parameter if any.\n content_type?: string\n // When `mode` is `multi_part`, the number of parts you are uploading. This must match\n // the number of parts as well as the final `part_number` you send.\n number_of_parts?: number\n // When `mode` is `external_url`, provide the HTTPS URL of a publicly accessible file to\n // import into your workspace.\n external_url?: string\n}\n\nexport type CreateFileUploadParameters = CreateFileUploadBodyParameters\n\nexport type CreateFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Create a file upload\n */\nexport const createFileUpload = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"mode\",\n \"filename\",\n \"content_type\",\n \"number_of_parts\",\n \"external_url\",\n ],\n\n path: (): string => `file_uploads`,\n} as const\n\ntype ListFileUploadsQueryParameters = {\n // If supplied, the endpoint will return file uploads with the specified status.\n status?: \"pending\" | \"uploaded\" | \"expired\" | \"failed\"\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided. If not supplied, this endpoint will return the first page of results.\n start_cursor?: string | null\n // The number of items from the full list desired in the response. Maximum: 100\n page_size?: number\n}\n\nexport type ListFileUploadsParameters = ListFileUploadsQueryParameters\n\nexport type ListFileUploadsResponse = {\n // Always `list`\n object: \"list\"\n next_cursor: IdResponse | null\n has_more: boolean\n results: Array<FileUploadObjectResponse>\n // Always `file_upload`\n type: \"file_upload\"\n file_upload: EmptyObject\n request_status?: RequestStatusResponse\n}\n\n/**\n * List file uploads\n */\nexport const listFileUploads = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"status\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (): string => `file_uploads`,\n} as const\n\ntype SendFileUploadPathParameters = {\n // Identifier for a Notion file upload object.\n file_upload_id: IdRequest\n}\n\ntype SendFileUploadFormDataParameters = {\n file: { filename?: string; data: string | Blob }\n part_number?: string\n}\n\nexport type SendFileUploadParameters = SendFileUploadPathParameters &\n SendFileUploadFormDataParameters\n\nexport type SendFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Upload a file\n */\nexport const sendFileUpload = {\n method: \"post\",\n pathParams: [\"file_upload_id\"],\n queryParams: [],\n bodyParams: [],\n formDataParams: [\"file\", \"part_number\"],\n path: (p: SendFileUploadPathParameters): string =>\n `file_uploads/${p.file_upload_id}/send`,\n} as const\n\ntype CompleteFileUploadPathParameters = {\n // Identifier for a Notion file upload object.\n file_upload_id: IdRequest\n}\n\nexport type CompleteFileUploadParameters = CompleteFileUploadPathParameters\n\nexport type CompleteFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Complete a multi-part file upload\n */\nexport const completeFileUpload = {\n method: \"post\",\n pathParams: [\"file_upload_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: CompleteFileUploadPathParameters): string =>\n `file_uploads/${p.file_upload_id}/complete`,\n} as const\n\ntype GetFileUploadPathParameters = {\n // Identifier for a Notion file upload object.\n file_upload_id: IdRequest\n}\n\nexport type GetFileUploadParameters = GetFileUploadPathParameters\n\nexport type GetFileUploadResponse = FileUploadObjectResponse\n\n/**\n * Retrieve a file upload\n */\nexport const getFileUpload = {\n method: \"get\",\n pathParams: [\"file_upload_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetFileUploadPathParameters): string =>\n `file_uploads/${p.file_upload_id}`,\n} as const\n"]}
@@ -362,6 +362,7 @@ type CreatePageBodyParameters = {
362
362
  content?: Array<BlockObjectRequest>;
363
363
  children?: Array<BlockObjectRequest>;
364
364
  markdown?: string;
365
+ allow_async?: boolean;
365
366
  template?: {
366
367
  type: "none";
367
368
  } | {
@@ -383,7 +384,7 @@ export declare const createPage: {
383
384
  readonly method: "post";
384
385
  readonly pathParams: readonly [];
385
386
  readonly queryParams: readonly [];
386
- readonly bodyParams: readonly ["parent", "properties", "icon", "cover", "content", "children", "markdown", "template", "position"];
387
+ readonly bodyParams: readonly ["parent", "properties", "icon", "cover", "content", "children", "markdown", "allow_async", "template", "position"];
387
388
  readonly path: () => string;
388
389
  };
389
390
  type GetPagePathParameters = {
@@ -557,7 +558,7 @@ type GetPagePropertyPathParameters = {
557
558
  property_id: string;
558
559
  };
559
560
  type GetPagePropertyQueryParameters = {
560
- start_cursor?: string;
561
+ start_cursor?: string | null;
561
562
  page_size?: number;
562
563
  };
563
564
  export type GetPagePropertyParameters = GetPagePropertyPathParameters & GetPagePropertyQueryParameters;
@@ -594,10 +595,17 @@ type UpdatePageMarkdownPathParameters = {
594
595
  page_id: IdRequest;
595
596
  };
596
597
  type UpdatePageMarkdownBodyParameters = {
598
+ allow_async?: boolean;
599
+ } & ({
597
600
  type: "insert_content";
598
601
  insert_content: {
599
602
  content: string;
600
603
  after?: string;
604
+ position?: {
605
+ type: "start";
606
+ } | {
607
+ type: "end";
608
+ };
601
609
  };
602
610
  } | {
603
611
  type: "replace_content_range";
@@ -622,7 +630,7 @@ type UpdatePageMarkdownBodyParameters = {
622
630
  new_str: string;
623
631
  allow_deleting_content?: boolean;
624
632
  };
625
- };
633
+ });
626
634
  export type UpdatePageMarkdownParameters = UpdatePageMarkdownPathParameters & UpdatePageMarkdownBodyParameters;
627
635
  export type UpdatePageMarkdownResponse = PageMarkdownResponse;
628
636
  /**
@@ -632,7 +640,7 @@ export declare const updatePageMarkdown: {
632
640
  readonly method: "patch";
633
641
  readonly pathParams: readonly ["page_id"];
634
642
  readonly queryParams: readonly [];
635
- readonly bodyParams: readonly ["type", "insert_content", "replace_content_range", "update_content", "replace_content"];
643
+ readonly bodyParams: readonly ["allow_async", "type", "insert_content", "replace_content_range", "update_content", "replace_content"];
636
644
  readonly path: (p: UpdatePageMarkdownPathParameters) => string;
637
645
  };
638
646
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/pages.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iCAAiC,EACjC,kBAAkB,EAClB,SAAS,EACT,qCAAqC,EACrC,sCAAsC,EACtC,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,iCAAiC,EAClC,MAAM,UAAU,CAAA;AAEjB,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC7C,IAAI,EAAE,Q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E,OAAO,CAAA;SAC9B,CAAC,CAAA;QAGF,sBAAsB,CAAC,EAAE,OAAO,CAAA;KACjC,CAAA;CACF,GACD;IAEE,IAAI,EAAE,iBAAiB,CAAA;IAEvB,eAAe,EAAE;QAEf,OAAO,EAAE,MAAM,CAAA;QAGf,sBAAsB,CAAC,EAAE,OAAO,CAAA;KACjC,CAAA;CACF,CAAA;AAEL,MAAM,MAAM,4BAA4B,GAAG,gCAAgC,GACzE,gCAAgC,CAAA;AAElC,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;uBAYnB,gCAAgC,KAAG,MAAM;CAE3C,CAAA"}
1
+ {"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/pages.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iCAAiC,EACjC,kBAAkB,EAClB,SAAS,EACT,qCAAqC,EACrC,sCAAsC,EACtC,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,iCAAiC,EACjC,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,iCAAiC,EAClC,MAAM,UAAU,CAAA;AAEjB,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC7C,IAAI,EAAE,QAAQ,CAAA;IACd,MAAM,EAAE,WAAW,CAAA;IACnB,MAAM,EAAE,eAAe,CAAA;IACvB,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,E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Ef,OAAO,EAAE,MAAM,CAAA;YAGf,mBAAmB,CAAC,EAAE,OAAO,CAAA;SAC9B,CAAC,CAAA;QAGF,sBAAsB,CAAC,EAAE,OAAO,CAAA;KACjC,CAAA;CACF,GACD;IAEE,IAAI,EAAE,iBAAiB,CAAA;IAEvB,eAAe,EAAE;QAEf,OAAO,EAAE,MAAM,CAAA;QAGf,sBAAsB,CAAC,EAAE,OAAO,CAAA;KACjC,CAAA;CACF,CACJ,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,gCAAgC,GACzE,gCAAgC,CAAA;AAElC,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;uBAanB,gCAAgC,KAAG,MAAM;CAE3C,CAAA"}
@@ -18,6 +18,7 @@ exports.createPage = {
18
18
  "content",
19
19
  "children",
20
20
  "markdown",
21
+ "allow_async",
21
22
  "template",
22
23
  "position",
23
24
  ],
@@ -91,6 +92,7 @@ exports.updatePageMarkdown = {
91
92
  pathParams: ["page_id"],
92
93
  queryParams: [],
93
94
  bodyParams: [
95
+ "allow_async",
94
96
  "type",
95
97
  "insert_content",
96
98
  "replace_content_range",
@@ -1 +1 @@
1
- {"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/api-endpoints/pages.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAob/C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,QAAQ;QACR,YAAY;QACZ,MAAM;QACN,OAAO;QACP,SAAS;QACT,UAAU;QACV,UAAU;QACV,UAAU;QACV,UAAU;KACX;IAED,IAAI,EAAE,GAAW,EAAE,CAAC,OAAO;CACnB,CAAA;AAiBV;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,SA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AAgC,EAAU,EAAE,CACjD,SAAS,CAAC,CAAC,OAAO,WAAW;CACvB,CAAA;AA0EV;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,MAAM;QACN,gBAAgB;QAChB,uBAAuB;QACvB,gBAAgB;QAChB,iBAAiB;KAClB;IAED,IAAI,EAAE,CAAC,CAAmC,EAAU,EAAE,CACpD,SAAS,CAAC,CAAC,OAAO,WAAW;CACvB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n BlockObjectRequest,\n DateRequest,\n DateResponse,\n EmptyObject,\n FileUploadWithOptionalNameRequest,\n GroupObjectRequest,\n IdRequest,\n InternalOrExternalFileWithNameRequest,\n InternalOrExternalFileWithNameResponse,\n PageCoverRequest,\n PageIconRequest,\n PageMarkdownResponse,\n PageObjectResponse,\n PagePositionSchema,\n PartialPageObjectResponse,\n PartialUserObjectRequest,\n PartialUserObjectResponse,\n RelationItemPropertyValueResponse,\n RichTextItemRequest,\n RichTextItemResponse,\n RollupFunction,\n SelectColor,\n StringRequest,\n TemplateTimezone,\n TextRequest,\n UserObjectResponse,\n VerificationPropertyValueResponse,\n} from \"./common\"\n\ntype BooleanFormulaPropertyResponse = {\n type: \"boolean\"\n boolean: boolean | null\n}\n\nexport type ButtonPropertyItemObjectResponse = {\n type: \"button\"\n button: EmptyObject\n object: \"property_item\"\n id: string\n}\n\nexport type CheckboxPropertyItemObjectResponse = {\n type: \"checkbox\"\n checkbox: boolean\n object: \"property_item\"\n id: string\n}\n\nexport type CreatedByPropertyItemObjectResponse = {\n type: \"created_by\"\n created_by: PartialUserObjectResponse | UserObjectResponse\n object: \"property_item\"\n id: string\n}\n\nexport type CreatedTimePropertyItemObjectResponse = {\n type: \"created_time\"\n created_time: string\n object: \"property_item\"\n id: string\n}\n\ntype DateFormulaPropertyResponse = { type: \"date\"; date: DateResponse | null }\n\nexport type DatePropertyItemObjectResponse = {\n type: \"date\"\n date: DateResponse | null\n object: \"property_item\"\n id: string\n}\n\nexport type EmailPropertyItemObjectResponse = {\n type: \"email\"\n email: string | null\n object: \"property_item\"\n id: string\n}\n\nexport type FilesPropertyItemObjectResponse = {\n type: \"files\"\n files: Array<InternalOrExternalFileWithNameResponse>\n object: \"property_item\"\n id: string\n}\n\nexport type FormulaPropertyItemObjectResponse = {\n type: \"formula\"\n formula: FormulaPropertyResponse\n object: \"property_item\"\n id: string\n}\n\ntype FormulaPropertyResponse =\n | StringFormulaPropertyResponse\n | DateFormulaPropertyResponse\n | NumberFormulaPropertyResponse\n | BooleanFormulaPropertyResponse\n\nexport type LastEditedByPropertyItemObjectResponse = {\n type: \"last_edited_by\"\n last_edited_by: PartialUserObjectResponse | UserObjectResponse\n object: \"property_item\"\n id: string\n}\n\nexport type LastEditedTimePropertyItemObjectResponse = {\n type: \"last_edited_time\"\n last_edited_time: string\n object: \"property_item\"\n id: string\n}\n\nexport type MultiSelectPropertyItemObjectResponse = {\n type: \"multi_select\"\n multi_select: Array<PartialSelectResponse>\n object: \"property_item\"\n id: string\n}\n\ntype NumberFormulaPropertyResponse = { type: \"number\"; number: number | null }\n\nexport type NumberPropertyItemObjectResponse = {\n type: \"number\"\n number: number | null\n object: \"property_item\"\n id: string\n}\n\ntype PartialSelectResponse = { id: string; name: string; color: SelectColor }\n\nexport type PeoplePropertyItemObjectResponse = {\n type: \"people\"\n people: PartialUserObjectResponse | UserObjectResponse\n object: \"property_item\"\n id: string\n}\n\nexport type PhoneNumberPropertyItemObjectResponse = {\n type: \"phone_number\"\n phone_number: string | null\n object: \"property_item\"\n id: string\n}\n\nexport type PlacePropertyItemObjectResponse = {\n type: \"place\"\n place: {\n lat: number\n lon: number\n name?: string | null\n address?: string | null\n aws_place_id?: string | null\n google_place_id?: string | null\n } | null\n object: \"property_item\"\n id: string\n}\n\nexport type PropertyItemListResponse = PropertyItemPropertyItemListResponse\n\nexport type PropertyItemObjectResponse =\n | NumberPropertyItemObjectResponse\n | UrlPropertyItemObjectResponse\n | SelectPropertyItemObjectResponse\n | MultiSelectPropertyItemObjectResponse\n | StatusPropertyItemObjectResponse\n | DatePropertyItemObjectResponse\n | EmailPropertyItemObjectResponse\n | PhoneNumberPropertyItemObjectResponse\n | CheckboxPropertyItemObjectResponse\n | FilesPropertyItemObjectResponse\n | CreatedByPropertyItemObjectResponse\n | CreatedTimePropertyItemObjectResponse\n | LastEditedByPropertyItemObjectResponse\n | LastEditedTimePropertyItemObjectResponse\n | FormulaPropertyItemObjectResponse\n | ButtonPropertyItemObjectResponse\n | UniqueIdPropertyItemObjectResponse\n | VerificationPropertyItemObjectResponse\n | PlacePropertyItemObjectResponse\n | TitlePropertyItemObjectResponse\n | RichTextPropertyItemObjectResponse\n | PeoplePropertyItemObjectResponse\n | RelationPropertyItemObjectResponse\n | RollupPropertyItemObjectResponse\n\ntype PropertyItemPropertyItemListResponse = {\n type: \"property_item\"\n property_item:\n | { type: \"title\"; title: EmptyObject; next_url: string | null; id: string }\n | {\n type: \"rich_text\"\n rich_text: EmptyObject\n next_url: string | null\n id: string\n }\n | {\n type: \"people\"\n people: EmptyObject\n next_url: string | null\n id: string\n }\n | {\n type: \"relation\"\n relation: EmptyObject\n next_url: string | null\n id: string\n }\n | {\n type: \"rollup\"\n rollup:\n | { type: \"number\"; number: number | null; function: RollupFunction }\n | {\n type: \"date\"\n date: DateResponse | null\n function: RollupFunction\n }\n | {\n type: \"array\"\n array: Array<EmptyObject>\n function: RollupFunction\n }\n | {\n type: \"unsupported\"\n unsupported: EmptyObject\n function: RollupFunction\n }\n | {\n type: \"incomplete\"\n incomplete: EmptyObject\n function: RollupFunction\n }\n next_url: string | null\n id: string\n }\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<PropertyItemObjectResponse>\n}\n\nexport type RelationPropertyItemObjectResponse = {\n type: \"relation\"\n relation: { id: string }\n object: \"property_item\"\n id: string\n}\n\nexport type RichTextPropertyItemObjectResponse = {\n type: \"rich_text\"\n rich_text: RichTextItemResponse\n object: \"property_item\"\n id: string\n}\n\nexport type RollupPropertyItemObjectResponse = {\n type: \"rollup\"\n rollup:\n | { type: \"number\"; number: number | null; function: RollupFunction }\n | { type: \"date\"; date: DateResponse | null; function: RollupFunction }\n | { type: \"array\"; array: Array<EmptyObject>; function: RollupFunction }\n | {\n type: \"unsupported\"\n unsupported: EmptyObject\n function: RollupFunction\n }\n | { type: \"incomplete\"; incomplete: EmptyObject; function: RollupFunction }\n object: \"property_item\"\n id: string\n}\n\nexport type SelectPropertyItemObjectResponse = {\n type: \"select\"\n select: PartialSelectResponse | null\n object: \"property_item\"\n id: string\n}\n\nexport type StatusPropertyItemObjectResponse = {\n type: \"status\"\n status: PartialSelectResponse | null\n object: \"property_item\"\n id: string\n}\n\ntype StringFormulaPropertyResponse = { type: \"string\"; string: string | null }\n\nexport type TitlePropertyItemObjectResponse = {\n type: \"title\"\n title: RichTextItemResponse\n object: \"property_item\"\n id: string\n}\n\nexport type UniqueIdPropertyItemObjectResponse = {\n type: \"unique_id\"\n unique_id: { prefix: string | null; number: number | null }\n object: \"property_item\"\n id: string\n}\n\nexport type UrlPropertyItemObjectResponse = {\n type: \"url\"\n url: string | null\n object: \"property_item\"\n id: string\n}\n\nexport type VerificationPropertyItemObjectResponse = {\n type: \"verification\"\n verification: VerificationPropertyValueResponse | null\n object: \"property_item\"\n id: string\n}\n\ntype CreatePageBodyParameters = {\n parent?:\n | { page_id: IdRequest; type?: \"page_id\" }\n | { database_id: IdRequest; type?: \"database_id\" }\n | { data_source_id: IdRequest; type?: \"data_source_id\" }\n | { workspace: true; type?: \"workspace\" }\n properties?: Record<\n string,\n | { title: Array<RichTextItemRequest>; type?: \"title\" }\n | { rich_text: Array<RichTextItemRequest>; type?: \"rich_text\" }\n | { number: number | null; type?: \"number\" }\n | { url: TextRequest | null; type?: \"url\" }\n | {\n select:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"select\"\n }\n | {\n multi_select: Array<\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n >\n type?: \"multi_select\"\n }\n | {\n people: Array<PartialUserObjectRequest | GroupObjectRequest>\n type?: \"people\"\n }\n | { email: StringRequest | null; type?: \"email\" }\n | { phone_number: StringRequest | null; type?: \"phone_number\" }\n | { date: DateRequest | null; type?: \"date\" }\n | { checkbox: boolean; type?: \"checkbox\" }\n | { relation: Array<RelationItemPropertyValueResponse>; type?: \"relation\" }\n | {\n files: Array<\n | InternalOrExternalFileWithNameRequest\n | FileUploadWithOptionalNameRequest\n >\n type?: \"files\"\n }\n | {\n status:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"status\"\n }\n | {\n place: {\n lat: number\n lon: number\n name?: string | null\n address?: string | null\n aws_place_id?: string | null\n google_place_id?: string | null\n } | null\n type?: \"place\"\n }\n | {\n verification:\n | { state: \"verified\"; date?: DateRequest }\n | { state: \"unverified\" }\n type?: \"verification\"\n }\n >\n icon?: PageIconRequest | null\n cover?: PageCoverRequest | null\n content?: Array<BlockObjectRequest>\n children?: Array<BlockObjectRequest>\n // Page content as Notion-flavored Markdown. Mutually exclusive with content/children.\n markdown?: string\n template?:\n | { type: \"none\" }\n | { type: \"default\"; timezone?: TemplateTimezone }\n | {\n type: \"template_id\"\n template_id: IdRequest\n timezone?: TemplateTimezone\n }\n position?: PagePositionSchema\n}\n\nexport type CreatePageParameters = CreatePageBodyParameters\n\nexport type CreatePageResponse = PageObjectResponse | PartialPageObjectResponse\n\n/**\n * Create a page\n */\nexport const createPage = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"parent\",\n \"properties\",\n \"icon\",\n \"cover\",\n \"content\",\n \"children\",\n \"markdown\",\n \"template\",\n \"position\",\n ],\n\n path: (): string => `pages`,\n} as const\n\ntype GetPagePathParameters = {\n // The ID of the page to retrieve.\n page_id: IdRequest\n}\n\ntype GetPageQueryParameters = {\n // Supply a list of property IDs to filter properties in the response. Note that if a\n // page doesn't have a property, it won't be included in the filtered response.\n filter_properties?: Array<string>\n}\n\nexport type GetPageParameters = GetPagePathParameters & GetPageQueryParameters\n\nexport type GetPageResponse = PartialPageObjectResponse | PageObjectResponse\n\n/**\n * Retrieve a page\n */\nexport const getPage = {\n method: \"get\",\n pathParams: [\"page_id\"],\n queryParams: [\"filter_properties\"],\n bodyParams: [],\n\n path: (p: GetPagePathParameters): string => `pages/${p.page_id}`,\n} as const\n\ntype UpdatePagePathParameters = {\n page_id: IdRequest\n}\n\ntype UpdatePageBodyParameters = {\n properties?: Record<\n string,\n | { title: Array<RichTextItemRequest>; type?: \"title\" }\n | { rich_text: Array<RichTextItemRequest>; type?: \"rich_text\" }\n | { number: number | null; type?: \"number\" }\n | { url: TextRequest | null; type?: \"url\" }\n | {\n select:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"select\"\n }\n | {\n multi_select: Array<\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n >\n type?: \"multi_select\"\n }\n | {\n people: Array<PartialUserObjectRequest | GroupObjectRequest>\n type?: \"people\"\n }\n | { email: StringRequest | null; type?: \"email\" }\n | { phone_number: StringRequest | null; type?: \"phone_number\" }\n | { date: DateRequest | null; type?: \"date\" }\n | { checkbox: boolean; type?: \"checkbox\" }\n | { relation: Array<RelationItemPropertyValueResponse>; type?: \"relation\" }\n | {\n files: Array<\n | InternalOrExternalFileWithNameRequest\n | FileUploadWithOptionalNameRequest\n >\n type?: \"files\"\n }\n | {\n status:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"status\"\n }\n | {\n place: {\n lat: number\n lon: number\n name?: string | null\n address?: string | null\n aws_place_id?: string | null\n google_place_id?: string | null\n } | null\n type?: \"place\"\n }\n | {\n verification:\n | { state: \"verified\"; date?: DateRequest }\n | { state: \"unverified\" }\n type?: \"verification\"\n }\n >\n icon?: PageIconRequest | null\n cover?: PageCoverRequest | null\n // Whether the page should be locked from editing in the Notion app UI. If not provided,\n // the locked state will not be updated.\n is_locked?: boolean\n template?:\n | { type: \"default\"; timezone?: TemplateTimezone }\n | {\n type: \"template_id\"\n template_id: IdRequest\n timezone?: TemplateTimezone\n }\n // Whether to erase all existing content from the page. When used with a template, the\n // template content replaces the existing content. When used without a template, simply\n // clears the page content.\n erase_content?: boolean\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n is_archived?: boolean\n}\n\nexport type UpdatePageParameters = UpdatePagePathParameters &\n UpdatePageBodyParameters\n\nexport type UpdatePageResponse = PageObjectResponse | PartialPageObjectResponse\n\n/**\n * Update page\n */\nexport const updatePage = {\n method: \"patch\",\n pathParams: [\"page_id\"],\n queryParams: [],\n bodyParams: [\n \"archived\",\n \"properties\",\n \"icon\",\n \"cover\",\n \"is_locked\",\n \"template\",\n \"erase_content\",\n \"in_trash\",\n \"is_archived\",\n ],\n\n path: (p: UpdatePagePathParameters): string => `pages/${p.page_id}`,\n} as const\n\ntype MovePagePathParameters = {\n // The ID of the page to move.\n page_id: IdRequest\n}\n\ntype MovePageBodyParameters = {\n // The new parent of the page.\n parent:\n | {\n // The ID of the parent page (with or without dashes), for example,\n // 195de9221179449fab8075a27c979105\n page_id: IdRequest\n // Always `page_id`\n type?: \"page_id\"\n }\n | {\n // The ID of the parent data source (collection), with or without dashes. For example,\n // f336d0bc-b841-465b-8045-024475c079dd\n data_source_id: IdRequest\n // Always `data_source_id`\n type?: \"data_source_id\"\n }\n}\n\nexport type MovePageParameters = MovePagePathParameters & MovePageBodyParameters\n\nexport type MovePageResponse = PartialPageObjectResponse | PageObjectResponse\n\n/**\n * Move a page\n */\nexport const movePage = {\n method: \"post\",\n pathParams: [\"page_id\"],\n queryParams: [],\n bodyParams: [\"parent\"],\n\n path: (p: MovePagePathParameters): string => `pages/${p.page_id}/move`,\n} as const\n\ntype GetPagePropertyPathParameters = {\n page_id: IdRequest\n property_id: string\n}\n\ntype GetPagePropertyQueryParameters = {\n start_cursor?: string\n page_size?: number\n}\n\nexport type GetPagePropertyParameters = GetPagePropertyPathParameters &\n GetPagePropertyQueryParameters\n\nexport type GetPagePropertyResponse =\n | PropertyItemObjectResponse\n | PropertyItemListResponse\n\n/**\n * Retrieve a page property item\n */\nexport const getPageProperty = {\n method: \"get\",\n pathParams: [\"page_id\", \"property_id\"],\n queryParams: [\"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: GetPagePropertyPathParameters): string =>\n `pages/${p.page_id}/properties/${p.property_id}`,\n} as const\n\ntype GetPageMarkdownPathParameters = {\n // The ID of the page (or block) to retrieve as markdown. Non-navigable block IDs from\n // truncated responses can be passed here to fetch their subtrees.\n page_id: IdRequest\n}\n\ntype GetPageMarkdownQueryParameters = {\n // Whether to include meeting note transcripts. Defaults to false. When true, full\n // transcripts are included; when false, a placeholder with the meeting note URL is shown\n // instead.\n include_transcript?: boolean\n}\n\nexport type GetPageMarkdownParameters = GetPageMarkdownPathParameters &\n GetPageMarkdownQueryParameters\n\nexport type GetPageMarkdownResponse = PageMarkdownResponse\n\n/**\n * Retrieve a page as markdown\n */\nexport const getPageMarkdown = {\n method: \"get\",\n pathParams: [\"page_id\"],\n queryParams: [\"include_transcript\"],\n bodyParams: [],\n\n path: (p: GetPageMarkdownPathParameters): string =>\n `pages/${p.page_id}/markdown`,\n} as const\n\ntype UpdatePageMarkdownPathParameters = {\n // The ID of the page to update.\n page_id: IdRequest\n}\n\ntype UpdatePageMarkdownBodyParameters =\n | {\n // Always `insert_content`\n type: \"insert_content\"\n // Insert new content into the page.\n insert_content: {\n // The enhanced markdown content to insert into the page.\n content: string\n // Selection of existing content to insert after, using the ellipsis format (\"start\n // text...end text\"). Omit to append at the end of the page.\n after?: string\n }\n }\n | {\n // Always `replace_content_range`\n type: \"replace_content_range\"\n // Replace a range of content in the page.\n replace_content_range: {\n // The new enhanced markdown content to replace the matched range.\n content: string\n // Selection of existing content to replace, using the ellipsis format (\"start text...end\n // text\").\n content_range: string\n // Set to true to allow the operation to delete child pages or databases. Defaults to\n // false.\n allow_deleting_content?: boolean\n }\n }\n | {\n // Always `update_content`\n type: \"update_content\"\n // Update specific content using search-and-replace operations.\n update_content: {\n // An array of search-and-replace operations, each with old_str (content to find) and\n // new_str (replacement content).\n content_updates: Array<{\n // The existing content string to find and replace. Must exactly match the page content.\n old_str: string\n // The new content string to replace old_str with.\n new_str: string\n // If true, replaces all occurrences of old_str. If false (default), the operation fails\n // if there are multiple matches.\n replace_all_matches?: boolean\n }>\n // Set to true to allow the operation to delete child pages or databases. Defaults to\n // false.\n allow_deleting_content?: boolean\n }\n }\n | {\n // Always `replace_content`\n type: \"replace_content\"\n // Replace the entire page content with new markdown.\n replace_content: {\n // The new enhanced markdown content to replace the entire page content.\n new_str: string\n // Set to true to allow the operation to delete child pages or databases. Defaults to\n // false.\n allow_deleting_content?: boolean\n }\n }\n\nexport type UpdatePageMarkdownParameters = UpdatePageMarkdownPathParameters &\n UpdatePageMarkdownBodyParameters\n\nexport type UpdatePageMarkdownResponse = PageMarkdownResponse\n\n/**\n * Update a page's content as markdown\n */\nexport const updatePageMarkdown = {\n method: \"patch\",\n pathParams: [\"page_id\"],\n queryParams: [],\n bodyParams: [\n \"type\",\n \"insert_content\",\n \"replace_content_range\",\n \"update_content\",\n \"replace_content\",\n ],\n\n path: (p: UpdatePageMarkdownPathParameters): string =>\n `pages/${p.page_id}/markdown`,\n} as const\n"]}
1
+ {"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/api-endpoints/pages.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAub/C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,QAAQ;QACR,YAAY;QACZ,MAAM;QACN,OAAO;QACP,SAAS;QACT,UAAU;QACV,UAAU;QACV,aAAa;QACb,UAAU;QACV,UAAU;KACX;IAED,IAAI,EAAE,GAAW,EAAE,CAAC,OAAO;CACnB,CAAA;AAiBV;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,CAAC,mBAAmB,CAAC;IAClC,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAwB,EAAU,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;CACxD,CAAA;AA6HV;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,UAAU;QACV,YAAY;QACZ,MAAM;QACN,OAAO;QACP,WAAW;QACX,UAAU;QACV,eAAe;QACf,UAAU;QACV,aAAa;KACd;IAED,IAAI,EAAE,CAAC,CAA2B,EAAU,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;CAC3D,CAAA;AA8BV;;GAEG;AACU,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,QAAQ,CAAC;IAEtB,IAAI,EAAE,CAAC,CAAyB,EAAU,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,OAAO;CAC9D,CAAA;AAmBV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;IACtC,WAAW,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC;IAC1C,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,SAAS,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,WAAW,EAAE;CAC1C,CAAA;AAoBV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,CAAC,oBAAoB,CAAC;IACnC,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,SAAS,CAAC,CAAC,OAAO,WAAW;CACvB,CAAA;AA2FV;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,aAAa;QACb,MAAM;QACN,gBAAgB;QAChB,uBAAuB;QACvB,gBAAgB;QAChB,iBAAiB;KAClB;IAED,IAAI,EAAE,CAAC,CAAmC,EAAU,EAAE,CACpD,SAAS,CAAC,CAAC,OAAO,WAAW;CACvB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n BlockObjectRequest,\n DateRequest,\n DateResponse,\n EmptyObject,\n FileUploadWithOptionalNameRequest,\n GroupObjectRequest,\n IdRequest,\n InternalOrExternalFileWithNameRequest,\n InternalOrExternalFileWithNameResponse,\n PageCoverRequest,\n PageIconRequest,\n PageMarkdownResponse,\n PageObjectResponse,\n PagePositionSchema,\n PartialPageObjectResponse,\n PartialUserObjectRequest,\n PartialUserObjectResponse,\n RelationItemPropertyValueResponse,\n RichTextItemRequest,\n RichTextItemResponse,\n RollupFunction,\n SelectColor,\n StringRequest,\n TemplateTimezone,\n TextRequest,\n UserObjectResponse,\n VerificationPropertyValueResponse,\n} from \"./common\"\n\ntype BooleanFormulaPropertyResponse = {\n type: \"boolean\"\n boolean: boolean | null\n}\n\nexport type ButtonPropertyItemObjectResponse = {\n type: \"button\"\n button: EmptyObject\n object: \"property_item\"\n id: string\n}\n\nexport type CheckboxPropertyItemObjectResponse = {\n type: \"checkbox\"\n checkbox: boolean\n object: \"property_item\"\n id: string\n}\n\nexport type CreatedByPropertyItemObjectResponse = {\n type: \"created_by\"\n created_by: PartialUserObjectResponse | UserObjectResponse\n object: \"property_item\"\n id: string\n}\n\nexport type CreatedTimePropertyItemObjectResponse = {\n type: \"created_time\"\n created_time: string\n object: \"property_item\"\n id: string\n}\n\ntype DateFormulaPropertyResponse = { type: \"date\"; date: DateResponse | null }\n\nexport type DatePropertyItemObjectResponse = {\n type: \"date\"\n date: DateResponse | null\n object: \"property_item\"\n id: string\n}\n\nexport type EmailPropertyItemObjectResponse = {\n type: \"email\"\n email: string | null\n object: \"property_item\"\n id: string\n}\n\nexport type FilesPropertyItemObjectResponse = {\n type: \"files\"\n files: Array<InternalOrExternalFileWithNameResponse>\n object: \"property_item\"\n id: string\n}\n\nexport type FormulaPropertyItemObjectResponse = {\n type: \"formula\"\n formula: FormulaPropertyResponse\n object: \"property_item\"\n id: string\n}\n\ntype FormulaPropertyResponse =\n | StringFormulaPropertyResponse\n | DateFormulaPropertyResponse\n | NumberFormulaPropertyResponse\n | BooleanFormulaPropertyResponse\n\nexport type LastEditedByPropertyItemObjectResponse = {\n type: \"last_edited_by\"\n last_edited_by: PartialUserObjectResponse | UserObjectResponse\n object: \"property_item\"\n id: string\n}\n\nexport type LastEditedTimePropertyItemObjectResponse = {\n type: \"last_edited_time\"\n last_edited_time: string\n object: \"property_item\"\n id: string\n}\n\nexport type MultiSelectPropertyItemObjectResponse = {\n type: \"multi_select\"\n multi_select: Array<PartialSelectResponse>\n object: \"property_item\"\n id: string\n}\n\ntype NumberFormulaPropertyResponse = { type: \"number\"; number: number | null }\n\nexport type NumberPropertyItemObjectResponse = {\n type: \"number\"\n number: number | null\n object: \"property_item\"\n id: string\n}\n\ntype PartialSelectResponse = { id: string; name: string; color: SelectColor }\n\nexport type PeoplePropertyItemObjectResponse = {\n type: \"people\"\n people: PartialUserObjectResponse | UserObjectResponse\n object: \"property_item\"\n id: string\n}\n\nexport type PhoneNumberPropertyItemObjectResponse = {\n type: \"phone_number\"\n phone_number: string | null\n object: \"property_item\"\n id: string\n}\n\nexport type PlacePropertyItemObjectResponse = {\n type: \"place\"\n place: {\n lat: number\n lon: number\n name?: string | null\n address?: string | null\n aws_place_id?: string | null\n google_place_id?: string | null\n } | null\n object: \"property_item\"\n id: string\n}\n\nexport type PropertyItemListResponse = PropertyItemPropertyItemListResponse\n\nexport type PropertyItemObjectResponse =\n | NumberPropertyItemObjectResponse\n | UrlPropertyItemObjectResponse\n | SelectPropertyItemObjectResponse\n | MultiSelectPropertyItemObjectResponse\n | StatusPropertyItemObjectResponse\n | DatePropertyItemObjectResponse\n | EmailPropertyItemObjectResponse\n | PhoneNumberPropertyItemObjectResponse\n | CheckboxPropertyItemObjectResponse\n | FilesPropertyItemObjectResponse\n | CreatedByPropertyItemObjectResponse\n | CreatedTimePropertyItemObjectResponse\n | LastEditedByPropertyItemObjectResponse\n | LastEditedTimePropertyItemObjectResponse\n | FormulaPropertyItemObjectResponse\n | ButtonPropertyItemObjectResponse\n | UniqueIdPropertyItemObjectResponse\n | VerificationPropertyItemObjectResponse\n | PlacePropertyItemObjectResponse\n | TitlePropertyItemObjectResponse\n | RichTextPropertyItemObjectResponse\n | PeoplePropertyItemObjectResponse\n | RelationPropertyItemObjectResponse\n | RollupPropertyItemObjectResponse\n\ntype PropertyItemPropertyItemListResponse = {\n type: \"property_item\"\n property_item:\n | { type: \"title\"; title: EmptyObject; next_url: string | null; id: string }\n | {\n type: \"rich_text\"\n rich_text: EmptyObject\n next_url: string | null\n id: string\n }\n | {\n type: \"people\"\n people: EmptyObject\n next_url: string | null\n id: string\n }\n | {\n type: \"relation\"\n relation: EmptyObject\n next_url: string | null\n id: string\n }\n | {\n type: \"rollup\"\n rollup:\n | { type: \"number\"; number: number | null; function: RollupFunction }\n | {\n type: \"date\"\n date: DateResponse | null\n function: RollupFunction\n }\n | {\n type: \"array\"\n array: Array<EmptyObject>\n function: RollupFunction\n }\n | {\n type: \"unsupported\"\n unsupported: EmptyObject\n function: RollupFunction\n }\n | {\n type: \"incomplete\"\n incomplete: EmptyObject\n function: RollupFunction\n }\n next_url: string | null\n id: string\n }\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<PropertyItemObjectResponse>\n}\n\nexport type RelationPropertyItemObjectResponse = {\n type: \"relation\"\n relation: { id: string }\n object: \"property_item\"\n id: string\n}\n\nexport type RichTextPropertyItemObjectResponse = {\n type: \"rich_text\"\n rich_text: RichTextItemResponse\n object: \"property_item\"\n id: string\n}\n\nexport type RollupPropertyItemObjectResponse = {\n type: \"rollup\"\n rollup:\n | { type: \"number\"; number: number | null; function: RollupFunction }\n | { type: \"date\"; date: DateResponse | null; function: RollupFunction }\n | { type: \"array\"; array: Array<EmptyObject>; function: RollupFunction }\n | {\n type: \"unsupported\"\n unsupported: EmptyObject\n function: RollupFunction\n }\n | { type: \"incomplete\"; incomplete: EmptyObject; function: RollupFunction }\n object: \"property_item\"\n id: string\n}\n\nexport type SelectPropertyItemObjectResponse = {\n type: \"select\"\n select: PartialSelectResponse | null\n object: \"property_item\"\n id: string\n}\n\nexport type StatusPropertyItemObjectResponse = {\n type: \"status\"\n status: PartialSelectResponse | null\n object: \"property_item\"\n id: string\n}\n\ntype StringFormulaPropertyResponse = { type: \"string\"; string: string | null }\n\nexport type TitlePropertyItemObjectResponse = {\n type: \"title\"\n title: RichTextItemResponse\n object: \"property_item\"\n id: string\n}\n\nexport type UniqueIdPropertyItemObjectResponse = {\n type: \"unique_id\"\n unique_id: { prefix: string | null; number: number | null }\n object: \"property_item\"\n id: string\n}\n\nexport type UrlPropertyItemObjectResponse = {\n type: \"url\"\n url: string | null\n object: \"property_item\"\n id: string\n}\n\nexport type VerificationPropertyItemObjectResponse = {\n type: \"verification\"\n verification: VerificationPropertyValueResponse | null\n object: \"property_item\"\n id: string\n}\n\ntype CreatePageBodyParameters = {\n parent?:\n | { page_id: IdRequest; type?: \"page_id\" }\n | { database_id: IdRequest; type?: \"database_id\" }\n | { data_source_id: IdRequest; type?: \"data_source_id\" }\n | { workspace: true; type?: \"workspace\" }\n properties?: Record<\n string,\n | { title: Array<RichTextItemRequest>; type?: \"title\" }\n | { rich_text: Array<RichTextItemRequest>; type?: \"rich_text\" }\n | { number: number | null; type?: \"number\" }\n | { url: TextRequest | null; type?: \"url\" }\n | {\n select:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"select\"\n }\n | {\n multi_select: Array<\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n >\n type?: \"multi_select\"\n }\n | {\n people: Array<PartialUserObjectRequest | GroupObjectRequest>\n type?: \"people\"\n }\n | { email: StringRequest | null; type?: \"email\" }\n | { phone_number: StringRequest | null; type?: \"phone_number\" }\n | { date: DateRequest | null; type?: \"date\" }\n | { checkbox: boolean; type?: \"checkbox\" }\n | { relation: Array<RelationItemPropertyValueResponse>; type?: \"relation\" }\n | {\n files: Array<\n | InternalOrExternalFileWithNameRequest\n | FileUploadWithOptionalNameRequest\n >\n type?: \"files\"\n }\n | {\n status:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"status\"\n }\n | {\n place: {\n lat: number\n lon: number\n name?: string | null\n address?: string | null\n aws_place_id?: string | null\n google_place_id?: string | null\n } | null\n type?: \"place\"\n }\n | {\n verification:\n | { state: \"verified\"; date?: DateRequest }\n | { state: \"unverified\" }\n type?: \"verification\"\n }\n >\n icon?: PageIconRequest | null\n cover?: PageCoverRequest | null\n content?: Array<BlockObjectRequest>\n children?: Array<BlockObjectRequest>\n // Page content as Notion-flavored Markdown. Mutually exclusive with content/children.\n markdown?: string\n // Set to true to receive an async_task response for markdown page creation. Only\n // supported when markdown is provided.\n allow_async?: boolean\n template?:\n | { type: \"none\" }\n | { type: \"default\"; timezone?: TemplateTimezone }\n | {\n type: \"template_id\"\n template_id: IdRequest\n timezone?: TemplateTimezone\n }\n position?: PagePositionSchema\n}\n\nexport type CreatePageParameters = CreatePageBodyParameters\n\nexport type CreatePageResponse = PageObjectResponse | PartialPageObjectResponse\n\n/**\n * Create a page\n */\nexport const createPage = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"parent\",\n \"properties\",\n \"icon\",\n \"cover\",\n \"content\",\n \"children\",\n \"markdown\",\n \"allow_async\",\n \"template\",\n \"position\",\n ],\n\n path: (): string => `pages`,\n} as const\n\ntype GetPagePathParameters = {\n // The ID of the page to retrieve.\n page_id: IdRequest\n}\n\ntype GetPageQueryParameters = {\n // Supply a list of property IDs to filter properties in the response. Note that if a\n // page doesn't have a property, it won't be included in the filtered response.\n filter_properties?: Array<string>\n}\n\nexport type GetPageParameters = GetPagePathParameters & GetPageQueryParameters\n\nexport type GetPageResponse = PartialPageObjectResponse | PageObjectResponse\n\n/**\n * Retrieve a page\n */\nexport const getPage = {\n method: \"get\",\n pathParams: [\"page_id\"],\n queryParams: [\"filter_properties\"],\n bodyParams: [],\n\n path: (p: GetPagePathParameters): string => `pages/${p.page_id}`,\n} as const\n\ntype UpdatePagePathParameters = {\n page_id: IdRequest\n}\n\ntype UpdatePageBodyParameters = {\n properties?: Record<\n string,\n | { title: Array<RichTextItemRequest>; type?: \"title\" }\n | { rich_text: Array<RichTextItemRequest>; type?: \"rich_text\" }\n | { number: number | null; type?: \"number\" }\n | { url: TextRequest | null; type?: \"url\" }\n | {\n select:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"select\"\n }\n | {\n multi_select: Array<\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n >\n type?: \"multi_select\"\n }\n | {\n people: Array<PartialUserObjectRequest | GroupObjectRequest>\n type?: \"people\"\n }\n | { email: StringRequest | null; type?: \"email\" }\n | { phone_number: StringRequest | null; type?: \"phone_number\" }\n | { date: DateRequest | null; type?: \"date\" }\n | { checkbox: boolean; type?: \"checkbox\" }\n | { relation: Array<RelationItemPropertyValueResponse>; type?: \"relation\" }\n | {\n files: Array<\n | InternalOrExternalFileWithNameRequest\n | FileUploadWithOptionalNameRequest\n >\n type?: \"files\"\n }\n | {\n status:\n | {\n id: StringRequest\n name?: TextRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | {\n name: TextRequest\n id?: StringRequest\n color?: SelectColor\n description?: TextRequest | null\n }\n | null\n type?: \"status\"\n }\n | {\n place: {\n lat: number\n lon: number\n name?: string | null\n address?: string | null\n aws_place_id?: string | null\n google_place_id?: string | null\n } | null\n type?: \"place\"\n }\n | {\n verification:\n | { state: \"verified\"; date?: DateRequest }\n | { state: \"unverified\" }\n type?: \"verification\"\n }\n >\n icon?: PageIconRequest | null\n cover?: PageCoverRequest | null\n // Whether the page should be locked from editing in the Notion app UI. If not provided,\n // the locked state will not be updated.\n is_locked?: boolean\n template?:\n | { type: \"default\"; timezone?: TemplateTimezone }\n | {\n type: \"template_id\"\n template_id: IdRequest\n timezone?: TemplateTimezone\n }\n // Whether to erase all existing content from the page. When used with a template, the\n // template content replaces the existing content. When used without a template, simply\n // clears the page content.\n erase_content?: boolean\n in_trash?: boolean\n /** @deprecated Use `in_trash` instead. */\n archived?: boolean\n is_archived?: boolean\n}\n\nexport type UpdatePageParameters = UpdatePagePathParameters &\n UpdatePageBodyParameters\n\nexport type UpdatePageResponse = PageObjectResponse | PartialPageObjectResponse\n\n/**\n * Update page\n */\nexport const updatePage = {\n method: \"patch\",\n pathParams: [\"page_id\"],\n queryParams: [],\n bodyParams: [\n \"archived\",\n \"properties\",\n \"icon\",\n \"cover\",\n \"is_locked\",\n \"template\",\n \"erase_content\",\n \"in_trash\",\n \"is_archived\",\n ],\n\n path: (p: UpdatePagePathParameters): string => `pages/${p.page_id}`,\n} as const\n\ntype MovePagePathParameters = {\n // The ID of the page to move.\n page_id: IdRequest\n}\n\ntype MovePageBodyParameters = {\n // The new parent of the page.\n parent:\n | {\n // The ID of the parent page (with or without dashes), for example,\n // 195de9221179449fab8075a27c979105\n page_id: IdRequest\n // Always `page_id`\n type?: \"page_id\"\n }\n | {\n // The ID of the parent data source (collection), with or without dashes. For example,\n // f336d0bc-b841-465b-8045-024475c079dd\n data_source_id: IdRequest\n // Always `data_source_id`\n type?: \"data_source_id\"\n }\n}\n\nexport type MovePageParameters = MovePagePathParameters & MovePageBodyParameters\n\nexport type MovePageResponse = PartialPageObjectResponse | PageObjectResponse\n\n/**\n * Move a page\n */\nexport const movePage = {\n method: \"post\",\n pathParams: [\"page_id\"],\n queryParams: [],\n bodyParams: [\"parent\"],\n\n path: (p: MovePagePathParameters): string => `pages/${p.page_id}/move`,\n} as const\n\ntype GetPagePropertyPathParameters = {\n page_id: IdRequest\n property_id: string\n}\n\ntype GetPagePropertyQueryParameters = {\n start_cursor?: string | null\n page_size?: number\n}\n\nexport type GetPagePropertyParameters = GetPagePropertyPathParameters &\n GetPagePropertyQueryParameters\n\nexport type GetPagePropertyResponse =\n | PropertyItemObjectResponse\n | PropertyItemListResponse\n\n/**\n * Retrieve a page property item\n */\nexport const getPageProperty = {\n method: \"get\",\n pathParams: [\"page_id\", \"property_id\"],\n queryParams: [\"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: GetPagePropertyPathParameters): string =>\n `pages/${p.page_id}/properties/${p.property_id}`,\n} as const\n\ntype GetPageMarkdownPathParameters = {\n // The ID of the page (or block) to retrieve as markdown. Non-navigable block IDs from\n // truncated responses can be passed here to fetch their subtrees.\n page_id: IdRequest\n}\n\ntype GetPageMarkdownQueryParameters = {\n // Whether to include meeting note transcripts. Defaults to false. When true, full\n // transcripts are included; when false, a placeholder with the meeting note URL is shown\n // instead.\n include_transcript?: boolean\n}\n\nexport type GetPageMarkdownParameters = GetPageMarkdownPathParameters &\n GetPageMarkdownQueryParameters\n\nexport type GetPageMarkdownResponse = PageMarkdownResponse\n\n/**\n * Retrieve a page as markdown\n */\nexport const getPageMarkdown = {\n method: \"get\",\n pathParams: [\"page_id\"],\n queryParams: [\"include_transcript\"],\n bodyParams: [],\n\n path: (p: GetPageMarkdownPathParameters): string =>\n `pages/${p.page_id}/markdown`,\n} as const\n\ntype UpdatePageMarkdownPathParameters = {\n // The ID of the page to update.\n page_id: IdRequest\n}\n\ntype UpdatePageMarkdownBodyParameters = {\n // Set to true to opt into receiving an async_task result when this update operation is\n // accepted for background execution. If omitted or false, the endpoint keeps the\n // existing synchronous response shape.\n allow_async?: boolean\n} & (\n | {\n // Always `insert_content`\n type: \"insert_content\"\n // Insert new content into the page.\n insert_content: {\n // The enhanced markdown content to insert into the page.\n content: string\n // Selection of existing content to insert after, using the ellipsis format (\"start\n // text...end text\"). Omit to append at the end of the page.\n after?: string\n // Explicit position for inserted content. Use {\"type\":\"start\"} to prepend or\n // {\"type\":\"end\"} to append. Cannot be combined with after.\n position?:\n | {\n // Insert the content at the start of the page.\n type: \"start\"\n }\n | {\n // Insert the content at the end of the page.\n type: \"end\"\n }\n }\n }\n | {\n // Always `replace_content_range`\n type: \"replace_content_range\"\n // Replace a range of content in the page.\n replace_content_range: {\n // The new enhanced markdown content to replace the matched range.\n content: string\n // Selection of existing content to replace, using the ellipsis format (\"start text...end\n // text\").\n content_range: string\n // Set to true to allow the operation to delete child pages or databases. Defaults to\n // false.\n allow_deleting_content?: boolean\n }\n }\n | {\n // Always `update_content`\n type: \"update_content\"\n // Update specific content using search-and-replace operations.\n update_content: {\n // An array of search-and-replace operations, each with old_str (content to find) and\n // new_str (replacement content).\n content_updates: Array<{\n // The existing content string to find and replace. Must exactly match the page content.\n old_str: string\n // The new content string to replace old_str with.\n new_str: string\n // If true, replaces all occurrences of old_str. If false (default), the operation fails\n // if there are multiple matches.\n replace_all_matches?: boolean\n }>\n // Set to true to allow the operation to delete child pages or databases. Defaults to\n // false.\n allow_deleting_content?: boolean\n }\n }\n | {\n // Always `replace_content`\n type: \"replace_content\"\n // Replace the entire page content with new markdown.\n replace_content: {\n // The new enhanced markdown content to replace the entire page content.\n new_str: string\n // Set to true to allow the operation to delete child pages or databases. Defaults to\n // false.\n allow_deleting_content?: boolean\n }\n }\n)\n\nexport type UpdatePageMarkdownParameters = UpdatePageMarkdownPathParameters &\n UpdatePageMarkdownBodyParameters\n\nexport type UpdatePageMarkdownResponse = PageMarkdownResponse\n\n/**\n * Update a page's content as markdown\n */\nexport const updatePageMarkdown = {\n method: \"patch\",\n pathParams: [\"page_id\"],\n queryParams: [],\n bodyParams: [\n \"allow_async\",\n \"type\",\n \"insert_content\",\n \"replace_content_range\",\n \"update_content\",\n \"replace_content\",\n ],\n\n path: (p: UpdatePageMarkdownPathParameters): string =>\n `pages/${p.page_id}/markdown`,\n} as const\n"]}
@@ -4,9 +4,11 @@ type SearchBodyParameters = {
4
4
  sort?: {
5
5
  timestamp: "last_edited_time";
6
6
  direction: "ascending" | "descending";
7
+ } | {
8
+ property: "relevance";
7
9
  };
8
10
  query?: string;
9
- start_cursor?: string;
11
+ start_cursor?: string | null;
10
12
  page_size?: number;
11
13
  filter?: {
12
14
  property: "object";
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/search.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EACV,wBAAwB,EACxB,+BAA+B,EAChC,MAAM,gBAAgB,CAAA;AAEvB,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,kBAAkB,CAAA;QAC7B,SAAS,EAAE,WAAW,GAAG,YAAY,CAAA;KACtC,CAAA;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAA;KAAE,CAAA;CAC/D,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAA;AAEnD,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,qBAAqB,CAAA;IAC3B,mBAAmB,EAAE,WAAW,CAAA;IAChC,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,KAAK,CACV,kBAAkB,GAClB,yBAAyB,GACzB,+BAA+B,GAC/B,wBAAwB,CAC3B,CAAA;IACD,cAAc,CAAC,EAAE;QACf,IAAI,EAAE,UAAU,GAAG,YAAY,CAAA;QAC/B,iBAAiB,CAAC,EAAE,4BAA4B,CAAA;KACjD,CAAA;CACF,CAAA;AAED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BAMP,MAAM;CACR,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/api-endpoints/search.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA2C/C;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,CAAC;IAEpE,IAAI,EAAE,GAAW,EAAE,CAAC,QAAQ;CACpB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n EmptyObject,\n PageObjectResponse,\n PartialPageObjectResponse,\n} from \"./common\"\nimport type {\n DataSourceObjectResponse,\n PartialDataSourceObjectResponse,\n} from \"./data-sources\"\n\ntype SearchBodyParameters = {\n sort?: {\n timestamp: \"last_edited_time\"\n direction: \"ascending\" | \"descending\"\n }\n query?: string\n start_cursor?: string\n page_size?: number\n filter?: { property: \"object\"; value: \"page\" | \"data_source\" }\n}\n\nexport type SearchParameters = SearchBodyParameters\n\nexport type SearchResponse = {\n type: \"page_or_data_source\"\n page_or_data_source: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<\n | PageObjectResponse\n | PartialPageObjectResponse\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n >\n request_status?: {\n type: \"complete\" | \"incomplete\"\n incomplete_reason?: \"query_result_limit_reached\"\n }\n}\n\n/**\n * Search by title\n */\nexport const search = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"sort\", \"query\", \"start_cursor\", \"page_size\", \"filter\"],\n\n path: (): string => `search`,\n} as const\n"]}
1
+ {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/api-endpoints/search.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA0C/C;;GAEG;AACU,QAAA,MAAM,GAAG;IACpB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,QAAQ,CAAC;IAEpE,IAAI,EAAE,GAAW,EAAE,CAAC,QAAQ;CACpB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n EmptyObject,\n PageObjectResponse,\n PartialPageObjectResponse,\n} from \"./common\"\nimport type {\n DataSourceObjectResponse,\n PartialDataSourceObjectResponse,\n} from \"./data-sources\"\n\ntype SearchBodyParameters = {\n sort?:\n | { timestamp: \"last_edited_time\"; direction: \"ascending\" | \"descending\" }\n | { property: \"relevance\" }\n query?: string\n start_cursor?: string | null\n page_size?: number\n filter?: { property: \"object\"; value: \"page\" | \"data_source\" }\n}\n\nexport type SearchParameters = SearchBodyParameters\n\nexport type SearchResponse = {\n type: \"page_or_data_source\"\n page_or_data_source: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<\n | PageObjectResponse\n | PartialPageObjectResponse\n | PartialDataSourceObjectResponse\n | DataSourceObjectResponse\n >\n request_status?: {\n type: \"complete\" | \"incomplete\"\n incomplete_reason?: \"query_result_limit_reached\"\n }\n}\n\n/**\n * Search by title\n */\nexport const search = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"sort\", \"query\", \"start_cursor\", \"page_size\", \"filter\"],\n\n path: (): string => `search`,\n} as const\n"]}
@@ -27,7 +27,7 @@ export declare const getUser: {
27
27
  readonly path: (p: GetUserPathParameters) => string;
28
28
  };
29
29
  type ListUsersQueryParameters = {
30
- start_cursor?: string;
30
+ start_cursor?: string | null;
31
31
  page_size?: number;
32
32
  };
33
33
  export type ListUsersParameters = ListUsersQueryParameters;
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/api-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;IACb,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAwB,EAAU,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;CACxD,CAAA;AAkBV;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC;IAC1C,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,OAAO;CACnB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { EmptyObject, IdRequest, UserObjectResponse } from \"./common\"\n\nexport type GetSelfParameters = Record<string, never>\n\nexport type GetSelfResponse = UserObjectResponse\n\n/**\n * Retrieve your token's bot user\n */\nexport const getSelf = {\n method: \"get\",\n pathParams: [],\n queryParams: [],\n bodyParams: [],\n\n path: (): string => `users/me`,\n} as const\n\ntype GetUserPathParameters = {\n user_id: IdRequest\n}\n\nexport type GetUserParameters = GetUserPathParameters\n\nexport type GetUserResponse = UserObjectResponse\n\n/**\n * Retrieve a user\n */\nexport const getUser = {\n method: \"get\",\n pathParams: [\"user_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetUserPathParameters): string => `users/${p.user_id}`,\n} as const\n\ntype ListUsersQueryParameters = {\n start_cursor?: string\n page_size?: number\n}\n\nexport type ListUsersParameters = ListUsersQueryParameters\n\nexport type ListUsersResponse = {\n type: \"user\"\n user: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<UserObjectResponse>\n}\n\n/**\n * List all users\n */\nexport const listUsers = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (): string => `users`,\n} as const\n"]}
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/api-endpoints/users.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAQ/C;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,UAAU;CACtB,CAAA;AAUV;;GAEG;AACU,QAAA,OAAO,GAAG;IACrB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAwB,EAAU,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;CACxD,CAAA;AAkBV;;GAEG;AACU,QAAA,SAAS,GAAG;IACvB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC;IAC1C,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,OAAO;CACnB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { EmptyObject, IdRequest, UserObjectResponse } from \"./common\"\n\nexport type GetSelfParameters = Record<string, never>\n\nexport type GetSelfResponse = UserObjectResponse\n\n/**\n * Retrieve your token's bot user\n */\nexport const getSelf = {\n method: \"get\",\n pathParams: [],\n queryParams: [],\n bodyParams: [],\n\n path: (): string => `users/me`,\n} as const\n\ntype GetUserPathParameters = {\n user_id: IdRequest\n}\n\nexport type GetUserParameters = GetUserPathParameters\n\nexport type GetUserResponse = UserObjectResponse\n\n/**\n * Retrieve a user\n */\nexport const getUser = {\n method: \"get\",\n pathParams: [\"user_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetUserPathParameters): string => `users/${p.user_id}`,\n} as const\n\ntype ListUsersQueryParameters = {\n start_cursor?: string | null\n page_size?: number\n}\n\nexport type ListUsersParameters = ListUsersQueryParameters\n\nexport type ListUsersResponse = {\n type: \"user\"\n user: EmptyObject\n object: \"list\"\n next_cursor: string | null\n has_more: boolean\n results: Array<UserObjectResponse>\n}\n\n/**\n * List all users\n */\nexport const listUsers = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (): string => `users`,\n} as const\n"]}
@@ -361,7 +361,7 @@ type ViewSortResponse = PropertySortResponse | TimestampSortResponse;
361
361
  type ListDatabaseViewsQueryParameters = {
362
362
  database_id?: IdRequest;
363
363
  data_source_id?: IdRequest;
364
- start_cursor?: string;
364
+ start_cursor?: string | null;
365
365
  page_size?: number;
366
366
  };
367
367
  export type ListDatabaseViewsParameters = ListDatabaseViewsQueryParameters;
@@ -464,7 +464,7 @@ type GetViewQueryResultsPathParameters = {
464
464
  query_id: IdRequest;
465
465
  };
466
466
  type GetViewQueryResultsQueryParameters = {
467
- start_cursor?: string;
467
+ start_cursor?: string | null;
468
468
  page_size?: number;
469
469
  };
470
470
  export type GetViewQueryResultsParameters = GetViewQueryResultsPathParameters & GetViewQueryResultsQueryParameters;