@notionhq/client 5.28.0 → 5.30.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 (79) hide show
  1. package/README.md +23 -2
  2. package/build/package.json +22 -14
  3. package/build/src/Client.d.ts +16 -181
  4. package/build/src/Client.d.ts.map +1 -1
  5. package/build/src/Client.js +0 -1
  6. package/build/src/Client.js.map +1 -1
  7. package/build/src/api-endpoint-methods.d.ts +6 -197
  8. package/build/src/api-endpoint-methods.d.ts.map +1 -1
  9. package/build/src/api-endpoint-methods.js +34 -1
  10. package/build/src/api-endpoint-methods.js.map +1 -1
  11. package/build/src/api-endpoints/agent-skills.d.ts +26 -0
  12. package/build/src/api-endpoints/agent-skills.d.ts.map +1 -1
  13. package/build/src/api-endpoints/agent-skills.js +12 -1
  14. package/build/src/api-endpoints/agent-skills.js.map +1 -1
  15. package/build/src/api-endpoints/agents.d.ts +2091 -2266
  16. package/build/src/api-endpoints/agents.d.ts.map +1 -1
  17. package/build/src/api-endpoints/agents.js +118 -118
  18. package/build/src/api-endpoints/agents.js.map +1 -1
  19. package/build/src/api-endpoints/async-tasks.d.ts +7 -4
  20. package/build/src/api-endpoints/async-tasks.d.ts.map +1 -1
  21. package/build/src/api-endpoints/async-tasks.js.map +1 -1
  22. package/build/src/api-endpoints/blocks.d.ts +7 -4
  23. package/build/src/api-endpoints/blocks.d.ts.map +1 -1
  24. package/build/src/api-endpoints/blocks.js +1 -1
  25. package/build/src/api-endpoints/blocks.js.map +1 -1
  26. package/build/src/api-endpoints/comments.d.ts +9 -3
  27. package/build/src/api-endpoints/comments.d.ts.map +1 -1
  28. package/build/src/api-endpoints/comments.js +2 -1
  29. package/build/src/api-endpoints/comments.js.map +1 -1
  30. package/build/src/api-endpoints/common.d.ts +168 -21
  31. package/build/src/api-endpoints/common.d.ts.map +1 -1
  32. package/build/src/api-endpoints/common.js.map +1 -1
  33. package/build/src/api-endpoints/data-sources.d.ts +4 -1
  34. package/build/src/api-endpoints/data-sources.d.ts.map +1 -1
  35. package/build/src/api-endpoints/data-sources.js +2 -1
  36. package/build/src/api-endpoints/data-sources.js.map +1 -1
  37. package/build/src/api-endpoints/databases.d.ts +5 -2
  38. package/build/src/api-endpoints/databases.d.ts.map +1 -1
  39. package/build/src/api-endpoints/databases.js +2 -0
  40. package/build/src/api-endpoints/databases.js.map +1 -1
  41. package/build/src/api-endpoints/file-uploads.d.ts.map +1 -1
  42. package/build/src/api-endpoints/file-uploads.js.map +1 -1
  43. package/build/src/api-endpoints/meeting-notes.d.ts +8 -106
  44. package/build/src/api-endpoints/meeting-notes.d.ts.map +1 -1
  45. package/build/src/api-endpoints/meeting-notes.js.map +1 -1
  46. package/build/src/api-endpoints/oauth.d.ts +1 -0
  47. package/build/src/api-endpoints/oauth.d.ts.map +1 -1
  48. package/build/src/api-endpoints/oauth.js.map +1 -1
  49. package/build/src/api-endpoints/pages.d.ts +10 -5
  50. package/build/src/api-endpoints/pages.d.ts.map +1 -1
  51. package/build/src/api-endpoints/pages.js +5 -1
  52. package/build/src/api-endpoints/pages.js.map +1 -1
  53. package/build/src/api-endpoints/search.d.ts +5 -2
  54. package/build/src/api-endpoints/search.d.ts.map +1 -1
  55. package/build/src/api-endpoints/search.js +1 -1
  56. package/build/src/api-endpoints/search.js.map +1 -1
  57. package/build/src/api-endpoints/views.d.ts +2 -1
  58. package/build/src/api-endpoints/views.d.ts.map +1 -1
  59. package/build/src/api-endpoints/views.js.map +1 -1
  60. package/build/src/api-endpoints/webhooks.d.ts +6 -0
  61. package/build/src/api-endpoints/webhooks.d.ts.map +1 -1
  62. package/build/src/api-endpoints/webhooks.js.map +1 -1
  63. package/build/src/errors.js.map +1 -1
  64. package/build/src/helpers.d.ts.map +1 -1
  65. package/build/src/helpers.js +2 -1
  66. package/build/src/helpers.js.map +1 -1
  67. package/build/src/index.d.ts +9 -5
  68. package/build/src/index.d.ts.map +1 -1
  69. package/build/src/index.js +4 -1
  70. package/build/src/index.js.map +1 -1
  71. package/build/src/meeting-notes.d.ts +3 -6
  72. package/build/src/meeting-notes.d.ts.map +1 -1
  73. package/build/src/meeting-notes.js +0 -27
  74. package/build/src/meeting-notes.js.map +1 -1
  75. package/build/src/webhooks.d.ts +1 -2
  76. package/build/src/webhooks.d.ts.map +1 -1
  77. package/build/src/webhooks.js +18 -58
  78. package/build/src/webhooks.js.map +1 -1
  79. package/package.json +22 -14
@@ -1 +1 @@
1
- {"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../src/api-endpoints/data-sources.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAsV/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 // The type of typed database this data source belongs to, or `null` for a regular data\n // source.\n database_type:\n | \"tasks\"\n | \"projects\"\n | \"sprints\"\n | \"docs\"\n | \"wiki\"\n | \"meetings\"\n | \"meeting_notes\"\n | \"skills\"\n | \"github_prs\"\n | null\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 name of the configured default status option, or null when no default is\n // configured. Read-only.\n default_option: string | null\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 // Data source 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 data source should be moved to or from the trash. If not provided, the\n // trash 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"]}
1
+ {"version":3,"file":"data-sources.js","sourceRoot":"","sources":["../../../src/api-endpoints/data-sources.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAuV/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;AA6LV;;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;AAgEV;;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,UAAU;QACV,OAAO;QACP,QAAQ;QACR,cAAc;QACd,WAAW;QACX,aAAa;QACb,aAAa;KACd;IAED,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,gBAAgB,CAAC,CAAC,cAAc,QAAQ;CAClC,CAAA;AAkBV;;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 // The type of typed database this data source belongs to, or `null` for a regular data\n // source.\n database_type:\n | \"tasks\"\n | \"projects\"\n | \"sprints\"\n | \"docs\"\n | \"wiki\"\n | \"meetings\"\n | \"meeting_notes\"\n | \"skills\"\n | \"github_prs\"\n | null\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 // The maximum number of pages each page can relate to, or null when there is no limit.\n // Read-only.\n limit: number | null\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 | 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 name of the configured default status option, or null when no default is\n // configured. Read-only.\n default_option: string | null\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 | 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 // Data source 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 } | { 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 } | { 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 data source should be moved to or from the trash. If not provided, the\n // trash 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 | 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 // Property names or IDs to include in each page's `properties` object. Other properties\n // are left out. Repeat the parameter to pass more than one value, for example\n // `filter_properties=title&filter_properties=Status`. Pages that aren't in a data source\n // always return only `title`.\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 // Whether to return archived pages. When omitted or false, returns non-archived pages.\n // When true, returns archived pages.\n is_archived?: boolean\n /** @deprecated Use `is_archived` instead. */\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 \"in_trash\",\n \"archived\",\n \"sorts\",\n \"filter\",\n \"start_cursor\",\n \"page_size\",\n \"is_archived\",\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 | 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"]}
@@ -15,6 +15,7 @@ export type DatabaseObjectResponse = {
15
15
  /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
16
16
  archived: boolean;
17
17
  is_locked: boolean;
18
+ show_data_source_title: boolean;
18
19
  created_time: string;
19
20
  last_edited_time: string;
20
21
  data_sources: Array<DataSourceReferenceResponse>;
@@ -64,6 +65,7 @@ type UpdateDatabaseBodyParameters = {
64
65
  /** @deprecated Use `in_trash` instead. */
65
66
  archived?: boolean;
66
67
  is_locked?: boolean;
68
+ show_data_source_title?: boolean;
67
69
  };
68
70
  export type UpdateDatabaseParameters = UpdateDatabasePathParameters & UpdateDatabaseBodyParameters;
69
71
  export type UpdateDatabaseResponse = PartialDatabaseObjectResponse | DatabaseObjectResponse;
@@ -74,7 +76,7 @@ export declare const updateDatabase: {
74
76
  readonly method: "patch";
75
77
  readonly pathParams: readonly ["database_id"];
76
78
  readonly queryParams: readonly [];
77
- readonly bodyParams: readonly ["parent", "title", "description", "is_inline", "icon", "cover", "in_trash", "is_locked"];
79
+ readonly bodyParams: readonly ["parent", "title", "description", "is_inline", "icon", "cover", "in_trash", "is_locked", "show_data_source_title"];
78
80
  readonly path: (p: UpdateDatabasePathParameters) => string;
79
81
  };
80
82
  type CreateDatabaseBodyParameters = {
@@ -94,6 +96,7 @@ type CreateDatabaseBodyParameters = {
94
96
  database_type?: "tasks" | "projects" | "skills";
95
97
  icon?: PageIconRequest;
96
98
  cover?: PageCoverRequest;
99
+ show_data_source_title?: boolean;
97
100
  };
98
101
  export type CreateDatabaseParameters = CreateDatabaseBodyParameters;
99
102
  export type CreateDatabaseResponse = PartialDatabaseObjectResponse | DatabaseObjectResponse;
@@ -104,7 +107,7 @@ export declare const createDatabase: {
104
107
  readonly method: "post";
105
108
  readonly pathParams: readonly [];
106
109
  readonly queryParams: readonly [];
107
- readonly bodyParams: readonly ["parent", "title", "description", "is_inline", "initial_data_source", "database_type", "icon", "cover"];
110
+ readonly bodyParams: readonly ["parent", "title", "description", "is_inline", "initial_data_source", "database_type", "icon", "cover", "show_data_source_title"];
108
111
  readonly path: () => string;
109
112
  };
110
113
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"databases.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/databases.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAEjB,KAAK,2BAA2B,GAAG;IAEjC,EAAE,EAAE,UAAU,CAAA;IAEd,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IAEnC,MAAM,EAAE,UAAU,CAAA;IAElB,EAAE,EAAE,UAAU,CAAA;IAEd,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAElC,WAAW,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;IAGxC,MAAM,EAAE,wBAAwB,CAAA;IAEhC,SAAS,EAAE,OAAO,CAAA;IAGlB,aAAa,EACT,OAAO,GACP,UAAU,GACV,SAAS,GACT,MAAM,GACN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,eAAO,MAAM,cAAc;;;;;uBAgBf,4BAA4B,KAAG,MAAM;CAEvC,CAAA;AAEV,KAAK,4BAA4B,GAAG;IAElC,MAAM,EAAE;QAEN,IAAI,EAAE,SAAS,GAAG,WAAW,CAAA;KAC9B,GAAG,CACA;QAEE,IAAI,EAAE,SAAS,CAAA;QACf,OAAO,EAAE,SAAS,CAAA;KACnB,GACD;QAEE,IAAI,EAAE,WAAW,CAAA;QAEjB,SAAS,EAAE,IAAI,CAAA;KAChB,CACJ,CAAA;IAED,KAAK,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAA;IAElC,WAAW,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAA;IAExC,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB,mBAAmB,CAAC,EAAE,wBAAwB,CAAA;IAI9C,aAAa,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAA;IAE/C,IAAI,CAAC,EAAE,eAAe,CAAA;IAEtB,KAAK,CAAC,EAAE,gBAAgB,CAAA;IAIxB,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,4BAA4B,CAAA;AAEnE,MAAM,MAAM,sBAAsB,GAChC,6BAA6B,GAAG,sBAAsB,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;yBAgBf,MAAM;CACR,CAAA"}
@@ -29,6 +29,7 @@ exports.updateDatabase = {
29
29
  "cover",
30
30
  "in_trash",
31
31
  "is_locked",
32
+ "show_data_source_title",
32
33
  ],
33
34
  path: (p) => `databases/${p.database_id}`,
34
35
  };
@@ -48,6 +49,7 @@ exports.createDatabase = {
48
49
  "database_type",
49
50
  "icon",
50
51
  "cover",
52
+ "show_data_source_title",
51
53
  ],
52
54
  path: () => `databases`,
53
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"databases.js","sourceRoot":"","sources":["../../../src/api-endpoints/databases.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAyF/C;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,aAAa,CAAC;IAC3B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA4B,EAAU,EAAE,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE;CACpE,CAAA;AA0DV;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,aAAa,CAAC;IAC3B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,QAAQ;QACR,OAAO;QACP,aAAa;QACb,WAAW;QACX,MAAM;QACN,OAAO;QACP,UAAU;QACV,WAAW;KACZ;IAED,IAAI,EAAE,CAAC,CAA+B,EAAU,EAAE,CAChD,aAAa,CAAC,CAAC,WAAW,EAAE;CACtB,CAAA;AA4CV;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,QAAQ;QACR,OAAO;QACP,aAAa;QACb,WAAW;QACX,qBAAqB;QACrB,eAAe;QACf,MAAM;QACN,OAAO;KACR;IAED,IAAI,EAAE,GAAW,EAAE,CAAC,WAAW;CACvB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n IdRequest,\n IdResponse,\n InitialDataSourceRequest,\n PageCoverRequest,\n PageCoverResponse,\n PageIconRequest,\n PageIconResponse,\n ParentOfDatabaseResponse,\n RichTextItemRequest,\n RichTextItemResponse,\n} from \"./common\"\n\ntype DataSourceReferenceResponse = {\n // The ID of the data source.\n id: IdResponse\n // The name of the data source.\n name: string\n}\n\nexport type DatabaseObjectResponse = {\n // The database object type name.\n object: \"database\"\n // The ID of the database.\n id: IdResponse\n // The title of the database.\n title: Array<RichTextItemResponse>\n // The description of the database.\n description: Array<RichTextItemResponse>\n // The parent of the database. This is typically a page, block, or workspace, but can be\n // another database in the case of wikis.\n parent: ParentOfDatabaseResponse\n // Whether the database is inline.\n is_inline: boolean\n // The type of typed database, such as `tasks`, `projects`, or `skills`, or `null` for a\n // regular database. Create a database accepts `tasks`, `projects`, and `skills`.\n database_type:\n | \"tasks\"\n | \"projects\"\n | \"sprints\"\n | \"docs\"\n | \"wiki\"\n | \"meetings\"\n | \"meeting_notes\"\n | \"skills\"\n | \"github_prs\"\n | null\n // Whether the database 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 // Whether the database is locked from editing in the Notion app UI.\n is_locked: boolean\n // The time when the database was created.\n created_time: string\n // The time when the database was last edited.\n last_edited_time: string\n // The data sources of the database.\n data_sources: Array<DataSourceReferenceResponse>\n // The icon of the database.\n icon: PageIconResponse | null\n // The cover of the database.\n cover: PageCoverResponse | null\n // The URL of the database.\n url: string\n // The public URL of the database if it is publicly accessible.\n public_url: string | null\n}\n\nexport type PartialDatabaseObjectResponse = {\n // The database object type name.\n object: \"database\"\n // The ID of the database.\n id: IdResponse\n}\n\ntype GetDatabasePathParameters = {\n // ID of a Notion database, a container for one or more data sources.\n database_id: IdRequest\n}\n\nexport type GetDatabaseParameters = GetDatabasePathParameters\n\nexport type GetDatabaseResponse =\n | PartialDatabaseObjectResponse\n | DatabaseObjectResponse\n\n/**\n * Retrieve a database\n */\nexport const getDatabase = {\n method: \"get\",\n pathParams: [\"database_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetDatabasePathParameters): string => `databases/${p.database_id}`,\n} as const\n\ntype UpdateDatabasePathParameters = {\n // ID of a Notion database, a container for one or more data sources.\n database_id: IdRequest\n}\n\ntype UpdateDatabaseBodyParameters = {\n // The parent page or workspace to move the database to. If not provided, the database\n // will not be moved.\n parent?: {\n // The type of parent.\n type: \"page_id\" | \"workspace\"\n } & (\n | {\n // Always `page_id`\n type: \"page_id\"\n page_id: IdRequest\n }\n | {\n // Always `workspace`\n type: \"workspace\"\n // Always `true`\n workspace: true\n }\n )\n // The updated title of the database, if any. If not provided, the title will not be\n // updated.\n title?: Array<RichTextItemRequest>\n // The updated description of the database, if any. If not provided, the description will\n // not be updated.\n description?: Array<RichTextItemRequest>\n // Whether the database should be displayed inline in the parent page. If not provided,\n // the inline status will not be updated.\n is_inline?: boolean\n // The updated icon for the database, if any. If not provided, the icon will not be\n // updated.\n icon?: PageIconRequest\n // The updated cover image for the database, if any. If not provided, the cover will not\n // be updated.\n cover?: PageCoverRequest\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 // Whether the database should be locked from editing in the Notion app UI. If not\n // provided, the locked state will not be updated.\n is_locked?: boolean\n}\n\nexport type UpdateDatabaseParameters = UpdateDatabasePathParameters &\n UpdateDatabaseBodyParameters\n\nexport type UpdateDatabaseResponse =\n | PartialDatabaseObjectResponse\n | DatabaseObjectResponse\n\n/**\n * Update a database\n */\nexport const updateDatabase = {\n method: \"patch\",\n pathParams: [\"database_id\"],\n queryParams: [],\n bodyParams: [\n \"parent\",\n \"title\",\n \"description\",\n \"is_inline\",\n \"icon\",\n \"cover\",\n \"in_trash\",\n \"is_locked\",\n ],\n\n path: (p: UpdateDatabasePathParameters): string =>\n `databases/${p.database_id}`,\n} as const\n\ntype CreateDatabaseBodyParameters = {\n // The parent page or workspace where the database will be created.\n parent: {\n // The type of parent.\n type: \"page_id\" | \"workspace\"\n } & (\n | {\n // Always `page_id`\n type: \"page_id\"\n page_id: IdRequest\n }\n | {\n // Always `workspace`\n type: \"workspace\"\n // Always `true`\n workspace: true\n }\n )\n // The title of the database.\n title?: Array<RichTextItemRequest>\n // The description of the database.\n description?: Array<RichTextItemRequest>\n // Whether the database should be displayed inline in the parent page. Defaults to false.\n is_inline?: boolean\n // Initial data source configuration for the database.\n initial_data_source?: InitialDataSourceRequest\n // Create a typed database with Notion's canonical schema. One of `tasks`, `projects`, or\n // `skills`. Cannot be combined with `initial_data_source`. When `title` is omitted, the\n // database is named after the type.\n database_type?: \"tasks\" | \"projects\" | \"skills\"\n // The icon for the database.\n icon?: PageIconRequest\n // The cover image for the database.\n cover?: PageCoverRequest\n}\n\nexport type CreateDatabaseParameters = CreateDatabaseBodyParameters\n\nexport type CreateDatabaseResponse =\n | PartialDatabaseObjectResponse\n | DatabaseObjectResponse\n\n/**\n * Create a database\n */\nexport const createDatabase = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"parent\",\n \"title\",\n \"description\",\n \"is_inline\",\n \"initial_data_source\",\n \"database_type\",\n \"icon\",\n \"cover\",\n ],\n\n path: (): string => `databases`,\n} as const\n"]}
1
+ {"version":3,"file":"databases.js","sourceRoot":"","sources":["../../../src/api-endpoints/databases.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA4F/C;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,aAAa,CAAC;IAC3B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA4B,EAAU,EAAE,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE;CACpE,CAAA;AA6DV;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,OAAO;IACf,UAAU,EAAE,CAAC,aAAa,CAAC;IAC3B,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,QAAQ;QACR,OAAO;QACP,aAAa;QACb,WAAW;QACX,MAAM;QACN,OAAO;QACP,UAAU;QACV,WAAW;QACX,wBAAwB;KACzB;IAED,IAAI,EAAE,CAAC,CAA+B,EAAU,EAAE,CAChD,aAAa,CAAC,CAAC,WAAW,EAAE;CACtB,CAAA;AA+CV;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,QAAQ;QACR,OAAO;QACP,aAAa;QACb,WAAW;QACX,qBAAqB;QACrB,eAAe;QACf,MAAM;QACN,OAAO;QACP,wBAAwB;KACzB;IAED,IAAI,EAAE,GAAW,EAAE,CAAC,WAAW;CACvB,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n IdRequest,\n IdResponse,\n InitialDataSourceRequest,\n PageCoverRequest,\n PageCoverResponse,\n PageIconRequest,\n PageIconResponse,\n ParentOfDatabaseResponse,\n RichTextItemRequest,\n RichTextItemResponse,\n} from \"./common\"\n\ntype DataSourceReferenceResponse = {\n // The ID of the data source.\n id: IdResponse\n // The name of the data source.\n name: string\n}\n\nexport type DatabaseObjectResponse = {\n // The database object type name.\n object: \"database\"\n // The ID of the database.\n id: IdResponse\n // The title of the database.\n title: Array<RichTextItemResponse>\n // The description of the database.\n description: Array<RichTextItemResponse>\n // The parent of the database. This is typically a page, block, or workspace, but can be\n // another database in the case of wikis.\n parent: ParentOfDatabaseResponse\n // Whether the database is inline.\n is_inline: boolean\n // The type of typed database, such as `tasks`, `projects`, or `skills`, or `null` for a\n // regular database. Create a database accepts `tasks`, `projects`, and `skills`.\n database_type:\n | \"tasks\"\n | \"projects\"\n | \"sprints\"\n | \"docs\"\n | \"wiki\"\n | \"meetings\"\n | \"meeting_notes\"\n | \"skills\"\n | \"github_prs\"\n | null\n // Whether the database 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 // Whether the database is locked from editing in the Notion app UI.\n is_locked: boolean\n // Whether the data source title is shown above the database's views, matching the Show\n // data source title toggle in the Notion app. Full-page databases with one data source\n // don't show this title even when this is `true`.\n show_data_source_title: boolean\n // The time when the database was created.\n created_time: string\n // The time when the database was last edited.\n last_edited_time: string\n // The data sources of the database.\n data_sources: Array<DataSourceReferenceResponse>\n // The icon of the database.\n icon: PageIconResponse | null\n // The cover of the database.\n cover: PageCoverResponse | null\n // The URL of the database.\n url: string\n // The public URL of the database if it is publicly accessible.\n public_url: string | null\n}\n\nexport type PartialDatabaseObjectResponse = {\n // The database object type name.\n object: \"database\"\n // The ID of the database.\n id: IdResponse\n}\n\ntype GetDatabasePathParameters = {\n // ID of a Notion database, a container for one or more data sources.\n database_id: IdRequest\n}\n\nexport type GetDatabaseParameters = GetDatabasePathParameters\n\nexport type GetDatabaseResponse =\n PartialDatabaseObjectResponse | DatabaseObjectResponse\n\n/**\n * Retrieve a database\n */\nexport const getDatabase = {\n method: \"get\",\n pathParams: [\"database_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetDatabasePathParameters): string => `databases/${p.database_id}`,\n} as const\n\ntype UpdateDatabasePathParameters = {\n // ID of a Notion database, a container for one or more data sources.\n database_id: IdRequest\n}\n\ntype UpdateDatabaseBodyParameters = {\n // The parent page or workspace to move the database to. If not provided, the database\n // will not be moved.\n parent?: {\n // The type of parent.\n type: \"page_id\" | \"workspace\"\n } & (\n | {\n // Always `page_id`\n type: \"page_id\"\n page_id: IdRequest\n }\n | {\n // Always `workspace`\n type: \"workspace\"\n // Always `true`\n workspace: true\n }\n )\n // The updated title of the database, if any. If not provided, the title will not be\n // updated.\n title?: Array<RichTextItemRequest>\n // The updated description of the database, if any. If not provided, the description will\n // not be updated.\n description?: Array<RichTextItemRequest>\n // Whether the database should be displayed inline in the parent page. If not provided,\n // the inline status will not be updated.\n is_inline?: boolean\n // The updated icon for the database, if any. If not provided, the icon will not be\n // updated.\n icon?: PageIconRequest\n // The updated cover image for the database, if any. If not provided, the cover will not\n // be updated.\n cover?: PageCoverRequest\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 // Whether the database should be locked from editing in the Notion app UI. If not\n // provided, the locked state will not be updated.\n is_locked?: boolean\n // Whether to show the data source title above the database's views. Matches the Show\n // data source title toggle in the Notion app. If not provided, the setting will not be\n // updated.\n show_data_source_title?: boolean\n}\n\nexport type UpdateDatabaseParameters = UpdateDatabasePathParameters &\n UpdateDatabaseBodyParameters\n\nexport type UpdateDatabaseResponse =\n PartialDatabaseObjectResponse | DatabaseObjectResponse\n\n/**\n * Update a database\n */\nexport const updateDatabase = {\n method: \"patch\",\n pathParams: [\"database_id\"],\n queryParams: [],\n bodyParams: [\n \"parent\",\n \"title\",\n \"description\",\n \"is_inline\",\n \"icon\",\n \"cover\",\n \"in_trash\",\n \"is_locked\",\n \"show_data_source_title\",\n ],\n\n path: (p: UpdateDatabasePathParameters): string =>\n `databases/${p.database_id}`,\n} as const\n\ntype CreateDatabaseBodyParameters = {\n // The parent page or workspace where the database will be created.\n parent: {\n // The type of parent.\n type: \"page_id\" | \"workspace\"\n } & (\n | {\n // Always `page_id`\n type: \"page_id\"\n page_id: IdRequest\n }\n | {\n // Always `workspace`\n type: \"workspace\"\n // Always `true`\n workspace: true\n }\n )\n // The title of the database.\n title?: Array<RichTextItemRequest>\n // The description of the database.\n description?: Array<RichTextItemRequest>\n // Whether the database should be displayed inline in the parent page. Defaults to false.\n is_inline?: boolean\n // Initial data source configuration for the database.\n initial_data_source?: InitialDataSourceRequest\n // Create a typed database with Notion's canonical schema. One of `tasks`, `projects`, or\n // `skills`. Cannot be combined with `initial_data_source`. When `title` is omitted, the\n // database is named after the type.\n database_type?: \"tasks\" | \"projects\" | \"skills\"\n // The icon for the database.\n icon?: PageIconRequest\n // The cover image for the database.\n cover?: PageCoverRequest\n // Whether to show the data source title above the database's views. Matches the Show\n // data source title toggle in the Notion app. Defaults to true. Full-page databases with\n // one data source don't show this title.\n show_data_source_title?: boolean\n}\n\nexport type CreateDatabaseParameters = CreateDatabaseBodyParameters\n\nexport type CreateDatabaseResponse =\n PartialDatabaseObjectResponse | DatabaseObjectResponse\n\n/**\n * Create a database\n */\nexport const createDatabase = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"parent\",\n \"title\",\n \"description\",\n \"is_inline\",\n \"initial_data_source\",\n \"database_type\",\n \"icon\",\n \"cover\",\n \"show_data_source_title\",\n ],\n\n path: (): string => `databases`,\n} as const\n"]}
@@ -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;IACrD,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,CAAC,EAAE;QAEnB,aAAa,EAAE,MAAM,CAAA;KACtB,GAAG,CACA;QAEE,IAAI,EAAE,SAAS,CAAA;QAEf,OAAO,EAAE,WAAW,CAAA;KACrB,GACD;QAEE,IAAI,EAAE,OAAO,CAAA;QAEb,KAAK,EAAE;YAEL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Ac,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 sent. Defaults to single_part. Use multi_part for files larger than 20\n // MiB or external_url for a temporary public HTTPS URL.\n mode?: \"single_part\" | \"multi_part\" | \"external_url\"\n // The filename. Required for multi_part and external_url uploads. Include an extension\n // or provide content_type so one can be inferred.\n filename?: string\n // The MIME type. It must match the uploaded file and any filename extension.\n content_type?: string\n // The number of parts in a multi_part upload. Required only for multi_part uploads. This\n // must match the number of uploaded parts and the final part_number sent.\n number_of_parts?: number\n // A public HTTPS URL to import. Required only for external_url uploads.\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"]}
1
+ {"version":3,"file":"file-uploads.js","sourceRoot":"","sources":["../../../src/api-endpoints/file-uploads.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAsF/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;IAEd,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 sent. Defaults to single_part. Use multi_part for files larger than 20\n // MiB or external_url for a temporary public HTTPS URL.\n mode?: \"single_part\" | \"multi_part\" | \"external_url\"\n // The filename. Required for multi_part and external_url uploads. Include an extension\n // or provide content_type so one can be inferred.\n filename?: string\n // The MIME type. It must match the uploaded file and any filename extension.\n content_type?: string\n // The number of parts in a multi_part upload. Required only for multi_part uploads. This\n // must match the number of uploaded parts and the final part_number sent.\n number_of_parts?: number\n // A public HTTPS URL to import. Required only for external_url uploads.\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\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,4 +1,4 @@
1
- import type { IdRequest, IdResponse, PartialUserObjectResponse, RichTextItemResponse } from "./common";
1
+ import type { IdRequest, IdResponse, MeetingNotesPropertyFilter, PartialUserObjectResponse, RichTextItemResponse } from "./common";
2
2
  type CreateMeetingNoteBodyParameters = {
3
3
  title?: string;
4
4
  language?: "auto" | "en" | "zh-CN" | "zh-TW" | "es" | "fr" | "de" | "ja" | "ko" | "pt" | "ru" | "th" | "vi" | "id" | "da" | "fi" | "no" | "nl" | "it" | "sv" | "ar" | "he" | "pl";
@@ -30,6 +30,7 @@ export type CreateMeetingNoteResponse = {
30
30
  id: IdResponse;
31
31
  type: "meeting_notes";
32
32
  meeting_notes: {
33
+ is_full_page: boolean;
33
34
  title?: Array<RichTextItemResponse>;
34
35
  status?: "transcription_not_started" | "transcription_paused" | "transcription_in_progress" | "transcription_failed" | "summary_in_progress" | "notes_ready";
35
36
  children?: {
@@ -40,6 +41,7 @@ export type CreateMeetingNoteResponse = {
40
41
  calendar_event?: {
41
42
  start_time: string;
42
43
  end_time: string;
44
+ event_id?: string;
43
45
  attendees?: Array<IdResponse>;
44
46
  };
45
47
  recording?: {
@@ -69,111 +71,9 @@ export declare const createMeetingNote: {
69
71
  type QueryMeetingNotesBodyParameters = {
70
72
  filter?: {
71
73
  operator: "and" | "or";
72
- filters?: Array<{
74
+ filters?: Array<MeetingNotesPropertyFilter | {
73
75
  operator: "and" | "or";
74
- filters: Array<{
75
- property: string;
76
- filter: {
77
- operator: string;
78
- value?: {
79
- type: "relative" | "exact";
80
- value: string | {
81
- type: "date" | "datetime";
82
- start_date: string;
83
- start_time?: string;
84
- time_zone?: string;
85
- };
86
- } | {
87
- type: "relative" | "exact";
88
- value: string | {
89
- type: "daterange";
90
- start_date: string;
91
- end_date?: string;
92
- };
93
- direction?: "past" | "future";
94
- unit?: "day" | "week" | "month" | "year";
95
- count?: number;
96
- } | {
97
- type: "exact";
98
- value: string;
99
- } | Array<{
100
- type: "exact";
101
- value: {
102
- table: "notion_user";
103
- id: string;
104
- };
105
- }>;
106
- };
107
- } | {
108
- operator: "and" | "or";
109
- filters: Array<{
110
- property: string;
111
- filter: {
112
- operator: string;
113
- value?: {
114
- type: "relative" | "exact";
115
- value: string | {
116
- type: "date" | "datetime";
117
- start_date: string;
118
- start_time?: string;
119
- time_zone?: string;
120
- };
121
- } | {
122
- type: "relative" | "exact";
123
- value: string | {
124
- type: "daterange";
125
- start_date: string;
126
- end_date?: string;
127
- };
128
- direction?: "past" | "future";
129
- unit?: "day" | "week" | "month" | "year";
130
- count?: number;
131
- } | {
132
- type: "exact";
133
- value: string;
134
- } | Array<{
135
- type: "exact";
136
- value: {
137
- table: "notion_user";
138
- id: string;
139
- };
140
- }>;
141
- };
142
- }>;
143
- }>;
144
- } | {
145
- property: string;
146
- filter: {
147
- operator: string;
148
- value?: {
149
- type: "relative" | "exact";
150
- value: string | {
151
- type: "date" | "datetime";
152
- start_date: string;
153
- start_time?: string;
154
- time_zone?: string;
155
- };
156
- } | {
157
- type: "relative" | "exact";
158
- value: string | {
159
- type: "daterange";
160
- start_date: string;
161
- end_date?: string;
162
- };
163
- direction?: "past" | "future";
164
- unit?: "day" | "week" | "month" | "year";
165
- count?: number;
166
- } | {
167
- type: "exact";
168
- value: string;
169
- } | Array<{
170
- type: "exact";
171
- value: {
172
- table: "notion_user";
173
- id: string;
174
- };
175
- }>;
176
- };
76
+ filters: Array<MeetingNotesPropertyFilter>;
177
77
  }>;
178
78
  };
179
79
  sort?: Array<{
@@ -189,8 +89,9 @@ export type QueryMeetingNotesResponse = {
189
89
  id: IdResponse;
190
90
  type: "meeting_notes";
191
91
  meeting_notes: {
92
+ is_full_page: boolean;
192
93
  title?: Array<RichTextItemResponse>;
193
- status?: "transcription_not_started" | "transcription_paused" | "transcription_in_progress" | "summary_in_progress" | "notes_ready";
94
+ status?: "transcription_not_started" | "transcription_paused" | "transcription_in_progress" | "transcription_failed" | "summary_in_progress" | "notes_ready";
194
95
  children?: {
195
96
  summary_block_id?: IdResponse;
196
97
  notes_block_id?: IdResponse;
@@ -199,6 +100,7 @@ export type QueryMeetingNotesResponse = {
199
100
  calendar_event?: {
200
101
  start_time: string;
201
102
  end_time: string;
103
+ event_id?: string;
202
104
  attendees?: Array<IdResponse>;
203
105
  };
204
106
  recording?: {
@@ -1 +1 @@
1
- {"version":3,"file":"meeting-notes.d.ts","sourceRoot":"","sources":["../../../src/api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AA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;IAEvC,IAAI,EAAE,GAAW,EAAE,CAAC,4BAA4B;CACxC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n IdRequest,\n IdResponse,\n PartialUserObjectResponse,\n RichTextItemResponse,\n} from \"./common\"\n\ntype CreateMeetingNoteBodyParameters = {\n // Title for the meeting note.\n title?: string\n // Language hint for transcription. Defaults to automatic detection.\n language?:\n | \"auto\"\n | \"en\"\n | \"zh-CN\"\n | \"zh-TW\"\n | \"es\"\n | \"fr\"\n | \"de\"\n | \"ja\"\n | \"ko\"\n | \"pt\"\n | \"ru\"\n | \"th\"\n | \"vi\"\n | \"id\"\n | \"da\"\n | \"fi\"\n | \"no\"\n | \"nl\"\n | \"it\"\n | \"sv\"\n | \"ar\"\n | \"he\"\n | \"pl\"\n // Optional processing settings.\n options?: {\n // Whether to start summary generation after transcription.\n kickoff_summary?: boolean\n }\n} & (\n | {\n // Audio or video source for the meeting note.\n source: {\n // Always \"file_upload\".\n type: \"file_upload\"\n // ID of a completed public API file upload.\n file_upload_id: IdRequest\n }\n // Parent page for the new meeting note.\n parent: {\n // Always \"page_id\".\n type: \"page_id\"\n // Page ID where the meeting note should be created. Required for file_upload sources.\n page_id: IdRequest\n }\n }\n | {\n // Audio or video source for the meeting note.\n source: {\n // Always \"block\".\n type: \"block\"\n // ID of an existing audio, video, or file block.\n block_id: IdRequest\n }\n // Not accepted for block sources.\n parent?: never\n }\n)\n\nexport type CreateMeetingNoteParameters = CreateMeetingNoteBodyParameters\n\nexport type CreateMeetingNoteResponse =\n | {\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n }\n | {\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n // Always \"meeting_notes\".\n type: \"meeting_notes\"\n // Meeting note content fields.\n meeting_notes: {\n // Title of the meeting note as rich text.\n title?: Array<RichTextItemResponse>\n // Current processing status of the meeting note transcription.\n status?:\n | \"transcription_not_started\"\n | \"transcription_paused\"\n | \"transcription_in_progress\"\n | \"transcription_failed\"\n | \"summary_in_progress\"\n | \"notes_ready\"\n // Block IDs for each tab (summary, notes, transcript).\n children?: {\n // Block ID of the AI summary tab.\n summary_block_id?: IdResponse\n // Block ID of the meeting notes tab.\n notes_block_id?: IdResponse\n // Block ID of the transcript tab.\n transcript_block_id?: IdResponse\n }\n // Calendar event metadata associated with this meeting note.\n calendar_event?: {\n // ISO-8601 start time of the calendar event.\n start_time: string\n // ISO-8601 end time of the calendar event.\n end_time: string\n // List of attendee user IDs.\n attendees?: Array<IdResponse>\n }\n // Start and end times of the actual recording.\n recording?: {\n // ISO-8601 timestamp when the recording started.\n start_time?: string\n // ISO-8601 timestamp when the recording ended.\n end_time?: string\n }\n }\n // ISO-8601 timestamp when this meeting note was created.\n created_time: string\n // ISO-8601 timestamp when this meeting note was last edited.\n last_edited_time: string\n // User who created this meeting note.\n created_by: PartialUserObjectResponse\n // User who last edited this meeting note.\n last_edited_by: PartialUserObjectResponse\n // Whether this block has child blocks.\n has_children: boolean\n // Whether this meeting note 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 }\n\n/**\n * Create a meeting note\n */\nexport const createMeetingNote = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"title\", \"language\", \"options\", \"source\", \"parent\"],\n\n path: (): string => `blocks/meeting_notes`,\n} as const\n\ntype QueryMeetingNotesBodyParameters = {\n // Optional filter for querying meeting notes. Supports combinator (and/or) and property\n // filters on title, attendees, created_time, created_by, last_edited_time,\n // last_edited_by.\n filter?: {\n // Operator for combinator filters.\n operator: \"and\" | \"or\"\n // Nested filters; each may be a combinator (and/or) or property filter.\n filters?: Array<\n | {\n // Operator for nested combinator filters.\n operator: \"and\" | \"or\"\n // Nested filters for combinator filters.\n filters: Array<\n | {\n // Property name.\n property: string\n filter: {\n // Operator.\n operator: string\n // Value for the operator.\n value?:\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n }\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n }\n | {\n type: \"exact\"\n // The text value to filter on.\n value: string\n }\n | Array<{\n type: \"exact\"\n value: { table: \"notion_user\"; id: string }\n }>\n }\n }\n | {\n // Operator for nested combinator filters.\n operator: \"and\" | \"or\"\n filters: Array<{\n // Property name.\n property: string\n filter: {\n // Operator.\n operator: string\n // Value for the operator.\n value?:\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n }\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n }\n | {\n type: \"exact\"\n // The text value to filter on.\n value: string\n }\n | Array<{\n type: \"exact\"\n value: { table: \"notion_user\"; id: string }\n }>\n }\n }>\n }\n >\n }\n | {\n // Property name.\n property: string\n filter: {\n // Operator.\n operator: string\n // Value for the operator.\n value?:\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n }\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n }\n | {\n type: \"exact\"\n // The text value to filter on.\n value: string\n }\n | Array<{\n type: \"exact\"\n value: { table: \"notion_user\"; id: string }\n }>\n }\n }\n >\n }\n // Optional sort order for the results. Each entry specifies a property name and\n // direction.\n sort?: Array<{\n // Property name to sort by.\n property:\n | \"title\"\n | \"attendees\"\n | \"created_time\"\n | \"created_by\"\n | \"last_edited_time\"\n | \"last_edited_by\"\n // Sort direction. Must be 'ascending' or 'descending'.\n direction: \"ascending\" | \"descending\"\n }>\n // Maximum number of results to return. Defaults to 50.\n limit?: number\n}\n\nexport type QueryMeetingNotesParameters = QueryMeetingNotesBodyParameters\n\nexport type QueryMeetingNotesResponse = {\n // Meeting note transcription block objects.\n results: Array<{\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n // Always \"meeting_notes\".\n type: \"meeting_notes\"\n // Meeting note content fields.\n meeting_notes: {\n // Title of the meeting note as rich text.\n title?: Array<RichTextItemResponse>\n // Current processing status of the meeting note transcription.\n status?:\n | \"transcription_not_started\"\n | \"transcription_paused\"\n | \"transcription_in_progress\"\n | \"summary_in_progress\"\n | \"notes_ready\"\n // Block IDs for each tab (summary, notes, transcript).\n children?: {\n // Block ID of the AI summary tab.\n summary_block_id?: IdResponse\n // Block ID of the meeting notes tab.\n notes_block_id?: IdResponse\n // Block ID of the transcript tab.\n transcript_block_id?: IdResponse\n }\n // Calendar event metadata associated with this meeting note.\n calendar_event?: {\n // ISO-8601 start time of the calendar event.\n start_time: string\n // ISO-8601 end time of the calendar event.\n end_time: string\n // List of attendee user IDs.\n attendees?: Array<IdResponse>\n }\n // Start and end times of the actual recording.\n recording?: {\n // ISO-8601 timestamp when the recording started.\n start_time?: string\n // ISO-8601 timestamp when the recording ended.\n end_time?: string\n }\n }\n // ISO-8601 timestamp when this meeting note was created.\n created_time: string\n // ISO-8601 timestamp when this meeting note was last edited.\n last_edited_time: string\n // User who created this meeting note.\n created_by: PartialUserObjectResponse\n // User who last edited this meeting note.\n last_edited_by: PartialUserObjectResponse\n // Whether this block has child blocks.\n has_children: boolean\n // Whether this meeting note 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 }>\n // Whether additional results exist beyond the returned limit.\n has_more: boolean\n}\n\n/**\n * Query meeting notes\n */\nexport const queryMeetingNotes = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"filter\", \"sort\", \"limit\"],\n\n path: (): string => `blocks/meeting_notes/query`,\n} as const\n"]}
1
+ {"version":3,"file":"meeting-notes.js","sourceRoot":"","sources":["../../../src/api-endpoints/meeting-notes.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAmJ/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC;IAEhE,IAAI,EAAE,GAAW,EAAE,CAAC,sBAAsB;CAClC,CAAA;AA+GV;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;IAEvC,IAAI,EAAE,GAAW,EAAE,CAAC,4BAA4B;CACxC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n IdRequest,\n IdResponse,\n MeetingNotesPropertyFilter,\n PartialUserObjectResponse,\n RichTextItemResponse,\n} from \"./common\"\n\ntype CreateMeetingNoteBodyParameters = {\n // Title for the meeting note.\n title?: string\n // Language hint for transcription. Defaults to automatic detection.\n language?:\n | \"auto\"\n | \"en\"\n | \"zh-CN\"\n | \"zh-TW\"\n | \"es\"\n | \"fr\"\n | \"de\"\n | \"ja\"\n | \"ko\"\n | \"pt\"\n | \"ru\"\n | \"th\"\n | \"vi\"\n | \"id\"\n | \"da\"\n | \"fi\"\n | \"no\"\n | \"nl\"\n | \"it\"\n | \"sv\"\n | \"ar\"\n | \"he\"\n | \"pl\"\n // Optional processing settings.\n options?: {\n // Whether to start summary generation after transcription.\n kickoff_summary?: boolean\n }\n} & (\n | {\n // Audio or video source for the meeting note.\n source: {\n // Always \"file_upload\".\n type: \"file_upload\"\n // ID of a completed public API file upload.\n file_upload_id: IdRequest\n }\n // Parent page for the new meeting note.\n parent: {\n // Always \"page_id\".\n type: \"page_id\"\n // Page ID where the meeting note should be created. Required for file_upload sources.\n page_id: IdRequest\n }\n }\n | {\n // Audio or video source for the meeting note.\n source: {\n // Always \"block\".\n type: \"block\"\n // ID of an existing audio, video, or file block.\n block_id: IdRequest\n }\n // Not accepted for block sources.\n parent?: never\n }\n)\n\nexport type CreateMeetingNoteParameters = CreateMeetingNoteBodyParameters\n\nexport type CreateMeetingNoteResponse =\n | {\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n }\n | {\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n // Always \"meeting_notes\".\n type: \"meeting_notes\"\n // Meeting note content fields.\n meeting_notes: {\n // Whether this is a full-page meeting note.\n is_full_page: boolean\n // Title of the meeting note as rich text.\n title?: Array<RichTextItemResponse>\n // Current processing status of the meeting note transcription.\n status?:\n | \"transcription_not_started\"\n | \"transcription_paused\"\n | \"transcription_in_progress\"\n | \"transcription_failed\"\n | \"summary_in_progress\"\n | \"notes_ready\"\n // Block IDs for each tab (summary, notes, transcript).\n children?: {\n // Block ID of the AI summary tab.\n summary_block_id?: IdResponse\n // Block ID of the meeting notes tab.\n notes_block_id?: IdResponse\n // Block ID of the transcript tab.\n transcript_block_id?: IdResponse\n }\n // Calendar event metadata associated with this meeting note.\n calendar_event?: {\n // ISO-8601 start time of the calendar event.\n start_time: string\n // ISO-8601 end time of the calendar event.\n end_time: string\n // ID of the calendar event, as returned by the calendar tools.\n event_id?: string\n // List of attendee user IDs.\n attendees?: Array<IdResponse>\n }\n // Start and end times of the actual recording.\n recording?: {\n // ISO-8601 timestamp when the recording started.\n start_time?: string\n // ISO-8601 timestamp when the recording ended.\n end_time?: string\n }\n }\n // ISO-8601 timestamp when this meeting note was created.\n created_time: string\n // ISO-8601 timestamp when this meeting note was last edited.\n last_edited_time: string\n // User who created this meeting note.\n created_by: PartialUserObjectResponse\n // User who last edited this meeting note.\n last_edited_by: PartialUserObjectResponse\n // Whether this block has child blocks.\n has_children: boolean\n // Whether this meeting note 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 }\n\n/**\n * Create a meeting note\n */\nexport const createMeetingNote = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"title\", \"language\", \"options\", \"source\", \"parent\"],\n\n path: (): string => `blocks/meeting_notes`,\n} as const\n\ntype QueryMeetingNotesBodyParameters = {\n // Optional filter for querying meeting notes. Supports combinator (and/or) and property\n // filters on title, attendees, created_time, created_by, last_edited_time,\n // last_edited_by.\n filter?: {\n // Operator for combinator filters.\n operator: \"and\" | \"or\"\n // Nested filters; each may be a combinator (and/or) or property filter.\n filters?: Array<\n | MeetingNotesPropertyFilter\n | {\n // Whether every child must match, or any of them.\n operator: \"and\" | \"or\"\n // The conditions in this group. A group with no conditions matches nothing, so send at\n // least one.\n filters: Array<MeetingNotesPropertyFilter>\n }\n >\n }\n // Optional sort order for the results. Each entry specifies a property name and\n // direction.\n sort?: Array<{\n // Property name to sort by.\n property:\n | \"title\"\n | \"attendees\"\n | \"created_time\"\n | \"created_by\"\n | \"last_edited_time\"\n | \"last_edited_by\"\n // Sort direction. Must be 'ascending' or 'descending'.\n direction: \"ascending\" | \"descending\"\n }>\n // Maximum number of results to return. Defaults to 50.\n limit?: number\n}\n\nexport type QueryMeetingNotesParameters = QueryMeetingNotesBodyParameters\n\nexport type QueryMeetingNotesResponse = {\n // Meeting note block objects.\n results: Array<{\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n // Always \"meeting_notes\".\n type: \"meeting_notes\"\n // Meeting note content fields.\n meeting_notes: {\n // Whether this is a full-page meeting note.\n is_full_page: boolean\n // Title of the meeting note as rich text.\n title?: Array<RichTextItemResponse>\n // Current processing status of the meeting note transcription.\n status?:\n | \"transcription_not_started\"\n | \"transcription_paused\"\n | \"transcription_in_progress\"\n | \"transcription_failed\"\n | \"summary_in_progress\"\n | \"notes_ready\"\n // Block IDs for each tab (summary, notes, transcript).\n children?: {\n // Block ID of the AI summary tab.\n summary_block_id?: IdResponse\n // Block ID of the meeting notes tab.\n notes_block_id?: IdResponse\n // Block ID of the transcript tab.\n transcript_block_id?: IdResponse\n }\n // Calendar event metadata associated with this meeting note.\n calendar_event?: {\n // ISO-8601 start time of the calendar event.\n start_time: string\n // ISO-8601 end time of the calendar event.\n end_time: string\n // ID of the calendar event, as returned by the calendar tools.\n event_id?: string\n // List of attendee user IDs.\n attendees?: Array<IdResponse>\n }\n // Start and end times of the actual recording.\n recording?: {\n // ISO-8601 timestamp when the recording started.\n start_time?: string\n // ISO-8601 timestamp when the recording ended.\n end_time?: string\n }\n }\n // ISO-8601 timestamp when this meeting note was created.\n created_time: string\n // ISO-8601 timestamp when this meeting note was last edited.\n last_edited_time: string\n // User who created this meeting note.\n created_by: PartialUserObjectResponse\n // User who last edited this meeting note.\n last_edited_by: PartialUserObjectResponse\n // Whether this block has child blocks.\n has_children: boolean\n // Whether this meeting note 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 }>\n // Whether additional results exist beyond the returned limit.\n has_more: boolean\n}\n\n/**\n * Query meeting notes\n */\nexport const queryMeetingNotes = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"filter\", \"sort\", \"limit\"],\n\n path: (): string => `blocks/meeting_notes/query`,\n} as const\n"]}
@@ -26,6 +26,7 @@ export type OauthTokenResponse = {
26
26
  type: "person";
27
27
  person: {
28
28
  email: string;
29
+ email_verified?: boolean;
29
30
  };
30
31
  name: string | null;
31
32
  avatar_url: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/oauth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;AAEpE,KAAK,wBAAwB,GACzB;IACE,UAAU,EAAE,oBAAoB,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,gBAAgB,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CACjD,GACD;IAAE,UAAU,EAAE,eAAe,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAA;AAE1D,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,CAAA;AAE3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,QAAQ,CAAA;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EACD;QACE,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EACA;YACE,IAAI,EAAE,QAAQ,CAAA;YACd,MAAM,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAA;aAAE,CAAA;YACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;YACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA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AW,EAAE,CAAC,kBAAkB;CAC9B,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { IdRequest, PartialUserObjectResponse } from \"./common\"\n\ntype OauthTokenBodyParameters =\n | {\n grant_type: \"authorization_code\"\n code: string\n redirect_uri?: string\n external_account?: { key: string; name: string }\n }\n | { grant_type: \"refresh_token\"; refresh_token: string }\n\nexport type OauthTokenParameters = OauthTokenBodyParameters\n\nexport type OauthTokenResponse = {\n access_token: string\n token_type: \"bearer\"\n refresh_token: string | null\n bot_id: string\n workspace_icon: string | null\n workspace_name: string | null\n workspace_id: string\n owner:\n | {\n type: \"user\"\n user:\n | {\n type: \"person\"\n person: { email: string }\n name: string | null\n avatar_url: string | null\n id: IdRequest\n object: \"user\"\n }\n | PartialUserObjectResponse\n }\n | { type: \"workspace\"; workspace: true }\n duplicated_template_id: string | null\n request_id?: string\n}\n\n/**\n * Exchange an authorization code for an access and refresh token\n */\nexport const oauthToken = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"grant_type\",\n \"code\",\n \"redirect_uri\",\n \"external_account\",\n \"refresh_token\",\n ],\n\n path: (): string => `oauth/token`,\n} as const\n\ntype OauthRevokeBodyParameters = { token: string }\n\nexport type OauthRevokeParameters = OauthRevokeBodyParameters\n\nexport type OauthRevokeResponse = { request_id?: string }\n\n/**\n * Revoke a token\n */\nexport const oauthRevoke = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"token\"],\n\n path: (): string => `oauth/revoke`,\n} as const\n\ntype OauthIntrospectBodyParameters = { token: string }\n\nexport type OauthIntrospectParameters = OauthIntrospectBodyParameters\n\nexport type OauthIntrospectResponse = {\n active: boolean\n scope?: string\n iat?: number\n request_id?: string\n}\n\n/**\n * Introspect a token\n */\nexport const oauthIntrospect = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"token\"],\n\n path: (): string => `oauth/introspect`,\n} as const\n"]}
1
+ {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../../src/api-endpoints/oauth.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA0C/C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE;QACV,YAAY;QACZ,MAAM;QACN,cAAc;QACd,kBAAkB;QAClB,eAAe;KAChB;IAED,IAAI,EAAE,GAAW,EAAE,CAAC,aAAa;CACzB,CAAA;AAQV;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,OAAO,CAAC;IAErB,IAAI,EAAE,GAAW,EAAE,CAAC,cAAc;CAC1B,CAAA;AAaV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,OAAO,CAAC;IAErB,IAAI,EAAE,GAAW,EAAE,CAAC,kBAAkB;CAC9B,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { IdRequest, PartialUserObjectResponse } from \"./common\"\n\ntype OauthTokenBodyParameters =\n | {\n grant_type: \"authorization_code\"\n code: string\n redirect_uri?: string\n external_account?: { key: string; name: string }\n }\n | { grant_type: \"refresh_token\"; refresh_token: string }\n\nexport type OauthTokenParameters = OauthTokenBodyParameters\n\nexport type OauthTokenResponse = {\n access_token: string\n token_type: \"bearer\"\n refresh_token: string | null\n bot_id: string\n workspace_icon: string | null\n workspace_name: string | null\n workspace_id: string\n owner:\n | {\n type: \"user\"\n user:\n | {\n type: \"person\"\n person: { email: string; email_verified?: boolean }\n name: string | null\n avatar_url: string | null\n id: IdRequest\n object: \"user\"\n }\n | PartialUserObjectResponse\n }\n | { type: \"workspace\"; workspace: true }\n duplicated_template_id: string | null\n request_id?: string\n}\n\n/**\n * Exchange an authorization code for an access and refresh token\n */\nexport const oauthToken = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\n \"grant_type\",\n \"code\",\n \"redirect_uri\",\n \"external_account\",\n \"refresh_token\",\n ],\n\n path: (): string => `oauth/token`,\n} as const\n\ntype OauthRevokeBodyParameters = { token: string }\n\nexport type OauthRevokeParameters = OauthRevokeBodyParameters\n\nexport type OauthRevokeResponse = { request_id?: string }\n\n/**\n * Revoke a token\n */\nexport const oauthRevoke = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"token\"],\n\n path: (): string => `oauth/revoke`,\n} as const\n\ntype OauthIntrospectBodyParameters = { token: string }\n\nexport type OauthIntrospectParameters = OauthIntrospectBodyParameters\n\nexport type OauthIntrospectResponse = {\n active: boolean\n scope?: string\n iat?: number\n request_id?: string\n}\n\n/**\n * Introspect a token\n */\nexport const oauthIntrospect = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"token\"],\n\n path: (): string => `oauth/introspect`,\n} as const\n"]}