@notionhq/client 5.22.0 → 5.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +121 -10
  2. package/build/package.json +1 -1
  3. package/build/src/Client.d.ts +12 -5
  4. package/build/src/Client.d.ts.map +1 -1
  5. package/build/src/Client.js +37 -8
  6. package/build/src/Client.js.map +1 -1
  7. package/build/src/api-endpoints/async-tasks.d.ts +141 -0
  8. package/build/src/api-endpoints/async-tasks.d.ts.map +1 -0
  9. package/build/src/api-endpoints/async-tasks.js +16 -0
  10. package/build/src/api-endpoints/async-tasks.js.map +1 -0
  11. package/build/src/api-endpoints/blocks.d.ts +1 -1
  12. package/build/src/api-endpoints/blocks.d.ts.map +1 -1
  13. package/build/src/api-endpoints/blocks.js.map +1 -1
  14. package/build/src/api-endpoints/comments.d.ts +1 -1
  15. package/build/src/api-endpoints/comments.d.ts.map +1 -1
  16. package/build/src/api-endpoints/comments.js.map +1 -1
  17. package/build/src/api-endpoints/common.d.ts +3 -0
  18. package/build/src/api-endpoints/common.d.ts.map +1 -1
  19. package/build/src/api-endpoints/common.js.map +1 -1
  20. package/build/src/api-endpoints/custom-emojis.d.ts +1 -1
  21. package/build/src/api-endpoints/custom-emojis.d.ts.map +1 -1
  22. package/build/src/api-endpoints/custom-emojis.js.map +1 -1
  23. package/build/src/api-endpoints/data-sources.d.ts +2 -2
  24. package/build/src/api-endpoints/data-sources.d.ts.map +1 -1
  25. package/build/src/api-endpoints/data-sources.js.map +1 -1
  26. package/build/src/api-endpoints/file-uploads.d.ts +1 -1
  27. package/build/src/api-endpoints/file-uploads.d.ts.map +1 -1
  28. package/build/src/api-endpoints/file-uploads.js.map +1 -1
  29. package/build/src/api-endpoints/pages.d.ts +7 -4
  30. package/build/src/api-endpoints/pages.d.ts.map +1 -1
  31. package/build/src/api-endpoints/pages.js +2 -0
  32. package/build/src/api-endpoints/pages.js.map +1 -1
  33. package/build/src/api-endpoints/search.d.ts +3 -1
  34. package/build/src/api-endpoints/search.d.ts.map +1 -1
  35. package/build/src/api-endpoints/search.js.map +1 -1
  36. package/build/src/api-endpoints/users.d.ts +1 -1
  37. package/build/src/api-endpoints/users.d.ts.map +1 -1
  38. package/build/src/api-endpoints/users.js.map +1 -1
  39. package/build/src/api-endpoints/views.d.ts +2 -2
  40. package/build/src/api-endpoints/views.d.ts.map +1 -1
  41. package/build/src/api-endpoints/views.js.map +1 -1
  42. package/build/src/api-endpoints.d.ts +2 -0
  43. package/build/src/api-endpoints.d.ts.map +1 -1
  44. package/build/src/api-endpoints.js +2 -0
  45. package/build/src/api-endpoints.js.map +1 -1
  46. package/build/src/errors.d.ts +1 -0
  47. package/build/src/errors.d.ts.map +1 -1
  48. package/build/src/errors.js +3 -0
  49. package/build/src/errors.js.map +1 -1
  50. package/build/src/helpers.d.ts +85 -2
  51. package/build/src/helpers.d.ts.map +1 -1
  52. package/build/src/helpers.js +134 -0
  53. package/build/src/helpers.js.map +1 -1
  54. package/build/src/index.d.ts +7 -2
  55. package/build/src/index.d.ts.map +1 -1
  56. package/build/src/index.js +6 -1
  57. package/build/src/index.js.map +1 -1
  58. package/build/src/webhooks.d.ts +56 -0
  59. package/build/src/webhooks.d.ts.map +1 -0
  60. package/build/src/webhooks.js +124 -0
  61. package/build/src/webhooks.js.map +1 -0
  62. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/views.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,+BAA+B,EAC/B,sBAAsB,EACtB,WAAW,EACX,SAAS,EACT,UAAU,EACV,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAEjB,KAAK,uBAAuB,GAAG;IAE7B,IAAI,EAAE,OAAO,CAAA;IAEb,QAAQ,EAAE,qBAAqB,CAAA;IAE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,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAA2B,EAAU,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;CAC3D,CAAA;AAcV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,SAAS,CAAC;IACvB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,SAAS,CAAC,CAAC,OAAO,UAAU;CACtB,CAAA;AAgCV;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,CAAC,cAAc,EAAE,WAAW,CAAC;IAC1C,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAoC,EAAU,EAAE,CACrD,SAAS,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,QAAQ,EAAE;CACpC,CAAA;AAaV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,SAAS,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,QAAQ,EAAE;CACpC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n CreateViewQueryRequest,\n CreateViewRequest,\n DataSourceViewReferenceResponse,\n DatabaseParentResponse,\n EmptyObject,\n IdRequest,\n IdResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n RequestStatusResponse,\n UpdateViewRequest,\n} from \"./common\"\n\ntype BoardViewConfigResponse = {\n // The view configuration type.\n type: \"board\"\n // Column (horizontal) grouping - required for board view.\n group_by: GroupByConfigResponse\n // Sub-grouping (vertical swimlanes within columns).\n sub_group_by?: GroupByConfigResponse\n // Properties to display on each card.\n properties?: Array<ViewPropertyConfigResponse>\n // Card cover/preview image configuration.\n cover?: CoverConfigResponse\n // Cover image size.\n cover_size?: \"small\" | \"medium\" | \"large\"\n // Cover image aspect ratio.\n cover_aspect?: \"contain\" | \"cover\"\n // Card layout mode (list shows all properties, compact shows inline).\n card_layout?: \"list\" | \"compact\"\n}\n\ntype CalendarViewConfigResponse = {\n // The view configuration type.\n type: \"calendar\"\n // Date property used to position items on the calendar - required.\n date_property_id: string\n // Date property name (convenience field).\n date_property_name?: string\n // Properties to display on calendar event cards.\n properties?: Array<ViewPropertyConfigResponse>\n // Calendar view range.\n view_range?: \"week\" | \"month\"\n // Whether to show weekend days.\n show_weekends?: boolean\n}\n\ntype ChartAggregationResponse = {\n // The aggregation operator. \"count\" counts all rows and does not require a property_id.\n // All other operators require a property_id.\n aggregator:\n | \"count\"\n | \"count_values\"\n | \"sum\"\n | \"average\"\n | \"median\"\n | \"min\"\n | \"max\"\n | \"range\"\n | \"unique\"\n | \"empty\"\n | \"not_empty\"\n | \"percent_empty\"\n | \"percent_not_empty\"\n | \"checked\"\n | \"unchecked\"\n | \"percent_checked\"\n | \"percent_unchecked\"\n | \"earliest_date\"\n | \"latest_date\"\n | \"date_range\"\n // The property to aggregate on. Required for all operators except \"count\".\n property_id?: string\n}\n\ntype ChartReferenceLineResponse = {\n // Unique identifier for the reference line.\n id: string\n // The y-axis value where the reference line is drawn.\n value: number\n // Label displayed alongside the reference line.\n label: string\n // Color of the reference line.\n color:\n | \"gray\"\n | \"lightgray\"\n | \"brown\"\n | \"yellow\"\n | \"orange\"\n | \"green\"\n | \"blue\"\n | \"purple\"\n | \"pink\"\n | \"red\"\n // Line style: \"solid\" for a continuous line, \"dash\" for a dashed line.\n dash_style: \"solid\" | \"dash\"\n}\n\ntype ChartViewConfigResponse = {\n // The view configuration type.\n type: \"chart\"\n // The chart type: column (vertical bars), bar (horizontal bars), line, donut, or number\n // (single value display).\n chart_type: \"column\" | \"bar\" | \"line\" | \"donut\" | \"number\"\n // X-axis grouping configuration for column/bar/line/donut charts using grouped data.\n // Null when using results (raw property values) mode.\n x_axis?: GroupByConfigResponse | null\n // Y-axis aggregation for column/bar/line/donut charts using grouped data. Null when\n // using results mode.\n y_axis?: ChartAggregationResponse | null\n // Property ID for the x-axis name values when using results (raw property values) mode.\n x_axis_property_id?: string\n // Property ID for the y-axis numeric values when using results (raw property values)\n // mode.\n y_axis_property_id?: string\n // Aggregation configuration for number charts (single value display).\n value?: ChartAggregationResponse\n // Sort order for chart data.\n sort?:\n | \"manual\"\n | \"x_ascending\"\n | \"x_descending\"\n | \"y_ascending\"\n | \"y_descending\"\n // Color theme for the chart.\n color_theme?:\n | \"gray\"\n | \"blue\"\n | \"yellow\"\n | \"green\"\n | \"purple\"\n | \"teal\"\n | \"orange\"\n | \"pink\"\n | \"red\"\n | \"auto\"\n | \"colorful\"\n // Chart height.\n height?: \"small\" | \"medium\" | \"large\" | \"extra_large\"\n // Whether to hide groups with no data on the x-axis.\n hide_empty_groups?: boolean\n // Legend display position. \"off\" hides the legend.\n legend_position?: \"off\" | \"bottom\" | \"side\"\n // Whether to show data value labels on chart elements.\n show_data_labels?: boolean\n // Which axis labels to display.\n axis_labels?: \"none\" | \"x_axis\" | \"y_axis\" | \"both\"\n // Which grid lines to display.\n grid_lines?: \"none\" | \"horizontal\" | \"vertical\" | \"both\"\n // Whether to show cumulative values (line charts only).\n cumulative?: boolean\n // Whether to use smooth curves (line charts only).\n smooth_line?: boolean\n // Whether to hide the shaded area under the line (line charts only).\n hide_line_fill_area?: boolean\n // How grouped/stacked bars are displayed. \"normal\" stacks values, \"percent\" normalizes\n // to 100%, \"side_by_side\" places bars next to each other.\n group_style?: \"normal\" | \"percent\" | \"side_by_side\"\n // Custom minimum value for the y-axis. Null clears the override.\n y_axis_min?: number | null\n // Custom maximum value for the y-axis. Null clears the override.\n y_axis_max?: number | null\n // What to display on donut chart slices.\n donut_labels?: \"none\" | \"value\" | \"name\" | \"name_and_value\"\n // Whether to hide the title label (number charts only).\n hide_title?: boolean\n // Stack-by grouping configuration for stacked/grouped bar charts (column/bar/line only).\n // Null when not stacked.\n stack_by?: GroupByConfigResponse | null\n // Reference lines drawn on the chart. Null when no reference lines are configured.\n reference_lines?: Array<ChartReferenceLineResponse> | null\n // Text caption displayed below the chart. Null when no caption is shown.\n caption?: string | null\n // Whether chart elements are colored by their numeric value (gradient coloring).\n color_by_value?: boolean\n}\n\ntype CheckboxGroupByConfigResponse = {\n // The property type for grouping.\n type: \"checkbox\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups (only manual for checkbox).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype CoverConfigResponse = {\n // Source of the cover image.\n type: \"page_cover\" | \"page_content\" | \"page_content_first\" | \"property\"\n // Property ID when type is \"property\".\n property_id?: string\n}\n\nexport type DashboardRowResponse = {\n // The ID of this row module.\n id: string\n // The widget modules within this row.\n widgets: Array<DashboardWidgetResponse>\n // Fixed height of the row in pixels.\n height?: number\n}\n\ntype DashboardViewConfigResponse = {\n // The view configuration type.\n type: \"dashboard\"\n // The rows that make up the dashboard layout. Each row contains one or more widget\n // modules.\n rows: Array<DashboardRowResponse>\n}\n\nexport type DashboardWidgetResponse = {\n // The ID of this widget module.\n id: string\n // The ID of the collection view rendered by this widget.\n view_id: string\n // Width of the widget in a 12-column grid (1-12). 12 means full width.\n width?: number\n // The 0-based index of the row this widget belongs to. Widgets in the same row share the\n // same row_index.\n row_index?: number\n}\n\nexport type DataSourceViewObjectResponse = {\n // The object type name.\n object: \"view\"\n // The ID of the view.\n id: IdResponse\n // The parent database of the view.\n parent: DatabaseParentResponse\n // The name of the view.\n name: string\n // The view type.\n type:\n | \"table\"\n | \"board\"\n | \"list\"\n | \"calendar\"\n | \"timeline\"\n | \"gallery\"\n | \"form\"\n | \"chart\"\n | \"map\"\n | \"dashboard\"\n // The time when the view was created.\n created_time: string\n // The time when the view was last edited.\n last_edited_time: string\n // Canonical deep link to the view in Notion.\n url: string\n // The ID of the data source this view is scoped to, or null for dashboard views.\n data_source_id?: string | null\n // The user who created the view, or null if not available.\n created_by?: PartialUserObjectResponse | null\n // The user who last edited the view, or null if not available.\n last_edited_by?: PartialUserObjectResponse | null\n // The filter applied to this view (same shape as data source query filter).\n filter?: ViewFilterResponse | null\n // The sorts applied to this view (same shape as data source query sorts).\n sorts?: Array<ViewSortResponse> | null\n // Quick filters pinned to the view's filter bar. Keys are property IDs. Values are\n // filter conditions (same shape as a property filter without the property field). Null\n // when no quick filters are set.\n quick_filters?: Record<string, QuickFilterConditionResponse> | null\n // View presentation configuration.\n configuration?: ViewConfigResponse | null\n // For dashboard widget views, the ID of the parent dashboard view. Only present when\n // this view is a widget inside a dashboard.\n dashboard_view_id?: string\n}\n\ntype DateGroupByConfigResponse = {\n // The property type for grouping.\n type: \"date\" | \"created_time\" | \"last_edited_time\"\n // Property ID to group by.\n property_id: string\n // Granularity for date grouping.\n group_by: \"relative\" | \"day\" | \"week\" | \"month\" | \"year\"\n // Sort order for groups (no manual sort for dates).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n // Start day of week for week grouping (0 = Sunday, 1 = Monday).\n start_day_of_week?: 0 | 1\n}\n\nexport type DeletedViewQueryResponse = {\n // The object type.\n object: \"view_query\"\n // The ID of the deleted view query.\n id: IdResponse\n // Whether the view query was deleted.\n deleted: boolean\n}\n\ntype FormViewConfigResponse = {\n // The view configuration type.\n type: \"form\"\n // Whether the form is closed for submissions.\n is_form_closed?: boolean\n // Whether anonymous (non-logged-in) submissions are allowed.\n anonymous_submissions?: boolean\n // Permission level granted to the submitter on the created page after form submission.\n submission_permissions?:\n | \"none\"\n | \"comment_only\"\n | \"reader\"\n | \"read_and_write\"\n | \"editor\"\n}\n\ntype FormulaCheckboxSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"checkbox\"\n // Sort order for groups (only manual for checkbox).\n sort: GroupSortResponse\n}\n\ntype FormulaDateSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"date\"\n // Granularity for date grouping.\n group_by: \"relative\" | \"day\" | \"week\" | \"month\" | \"year\"\n // Sort order for groups.\n sort: GroupSortResponse\n // Start day of week for week grouping (0 = Sunday, 1 = Monday).\n start_day_of_week?: 0 | 1\n}\n\ntype FormulaGroupByConfigResponse = {\n // The property type for grouping.\n type: \"formula\"\n // Property ID of the formula to group by.\n property_id: string\n // Sub-group-by configuration based on the formula result type.\n group_by: FormulaSubGroupByResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype FormulaNumberSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"number\"\n // Sort order for groups (ascending or descending only).\n sort: GroupSortResponse\n // Start of the range for number grouping buckets.\n range_start?: number\n // End of the range for number grouping buckets.\n range_end?: number\n // Size of each bucket in number grouping.\n range_size?: number\n}\n\n/**\n * Sub-group-by configuration for formula properties based on result type.\n */\ntype FormulaSubGroupByResponse =\n | FormulaDateSubGroupByResponse\n | FormulaTextSubGroupByResponse\n | FormulaNumberSubGroupByResponse\n | FormulaCheckboxSubGroupByResponse\n\ntype FormulaTextSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"text\"\n // How to group text values. \"exact\" = exact match, \"alphabet_prefix\" = first letter.\n group_by: \"exact\" | \"alphabet_prefix\"\n // Sort order for groups.\n sort: GroupSortResponse\n}\n\ntype GalleryViewConfigResponse = {\n // The view configuration type.\n type: \"gallery\"\n // Properties to display on gallery cards.\n properties?: Array<ViewPropertyConfigResponse>\n // Card cover/preview image configuration.\n cover?: CoverConfigResponse\n // Cover image size.\n cover_size?: \"small\" | \"medium\" | \"large\"\n // Cover image aspect ratio.\n cover_aspect?: \"contain\" | \"cover\"\n // Card layout mode (list shows all properties, compact shows inline).\n card_layout?: \"list\" | \"compact\"\n}\n\n/**\n * Group-by configuration based on property type.\n */\ntype GroupByConfigResponse =\n | SelectGroupByConfigResponse\n | StatusGroupByConfigResponse\n | PersonGroupByConfigResponse\n | RelationGroupByConfigResponse\n | DateGroupByConfigResponse\n | TextGroupByConfigResponse\n | NumberGroupByConfigResponse\n | CheckboxGroupByConfigResponse\n | FormulaGroupByConfigResponse\n\ntype GroupSortResponse = {\n // Sort direction for groups.\n type: \"manual\" | \"ascending\" | \"descending\"\n}\n\ntype ListViewConfigResponse = {\n // The view configuration type.\n type: \"list\"\n // Properties to display in list items.\n properties?: Array<ViewPropertyConfigResponse>\n}\n\ntype MapViewConfigResponse = {\n // The view configuration type.\n type: \"map\"\n // Map display height.\n height?: \"small\" | \"medium\" | \"large\" | \"extra_large\"\n // Property ID of the location property used to position items on the map.\n map_by?: string\n // Map-by property name (convenience field).\n map_by_property_name?: string\n // Properties to display on map pin cards.\n properties?: Array<ViewPropertyConfigResponse>\n}\n\ntype NumberGroupByConfigResponse = {\n // The property type for grouping.\n type: \"number\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups (ascending or descending only).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n // Start of the range for number grouping buckets.\n range_start?: number\n // End of the range for number grouping buckets.\n range_end?: number\n // Size of each bucket in number grouping.\n range_size?: number\n}\n\ntype PageReferenceResponse = {\n // The object type.\n object: string\n // The object ID.\n id: IdResponse\n}\n\nexport type PartialDataSourceViewObjectResponse = {\n // The object type name.\n object: \"view\"\n // The ID of the view.\n id: IdResponse\n // The parent database of the view.\n parent: DatabaseParentResponse\n // The view type.\n type:\n | \"table\"\n | \"board\"\n | \"list\"\n | \"calendar\"\n | \"timeline\"\n | \"gallery\"\n | \"form\"\n | \"chart\"\n | \"map\"\n | \"dashboard\"\n}\n\ntype PersonGroupByConfigResponse = {\n // The property type for grouping.\n type: \"person\" | \"created_by\" | \"last_edited_by\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups (only manual supported).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype PropertySortResponse = {\n // The name or ID of the property to sort by.\n property: string\n // Sort direction.\n direction: \"ascending\" | \"descending\"\n}\n\n/**\n * A property filter condition. Same shape as a property filter but without the\n * \"property\" field. For example: { \"select\": { \"equals\": \"High\" } }.\n */\ntype QuickFilterConditionResponse = Record<string, never>\n\ntype RelationGroupByConfigResponse = {\n // The property type for grouping.\n type: \"relation\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype SelectGroupByConfigResponse = {\n // The property type for grouping.\n type: \"select\" | \"multi_select\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype StatusGroupByConfigResponse = {\n // The property type for grouping.\n type: \"status\"\n // Property ID to group by.\n property_id: string\n // How to group status values. \"group\" groups by status group (To Do/In Progress/Done),\n // \"option\" groups by individual option.\n group_by: \"group\" | \"option\"\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype SubtaskConfigResponse = {\n // Relation property ID used for parent-child nesting.\n property_id?: string\n // How sub-items are displayed. \"show\" renders hierarchically with toggles, \"hidden\"\n // shows parents with a count, \"flattened\" shows sub-items with a parent indicator,\n // \"disabled\" turns off sub-item rendering.\n display_mode?: \"show\" | \"hidden\" | \"flattened\" | \"disabled\"\n // Which items are included when filtering. \"parents\" includes parent items only,\n // \"parents_and_subitems\" includes both, \"subitems\" includes sub-items only.\n filter_scope?: \"parents\" | \"parents_and_subitems\" | \"subitems\"\n // Property ID of the column showing the sub-item expand/collapse toggle.\n toggle_column_id?: string\n}\n\ntype TableViewConfigResponse = {\n // The view configuration type.\n type: \"table\"\n // Columns/properties visible in the table view.\n properties?: Array<ViewPropertyConfigResponse>\n // Vertical (row) grouping configuration.\n group_by?: GroupByConfigResponse\n // Sub-item (subtask) display configuration.\n subtasks?: SubtaskConfigResponse\n // Whether to wrap cell content by default.\n wrap_cells?: boolean\n // Index of the last frozen column. Columns up to and including this index are frozen.\n frozen_column_index?: number\n // Whether to show vertical lines between columns.\n show_vertical_lines?: boolean\n}\n\ntype TextGroupByConfigResponse = {\n // The property type for grouping.\n type: \"text\" | \"title\" | \"url\" | \"email\" | \"phone_number\"\n // Property ID to group by.\n property_id: string\n // How to group text values. \"exact\" = exact match, \"alphabet_prefix\" = first letter.\n group_by: \"exact\" | \"alphabet_prefix\"\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype TimelineArrowsByResponse = {\n // Relation property ID used for dependency arrows.\n property_id?: string | null\n}\n\ntype TimelinePreferenceResponse = {\n // Zoom level for the timeline.\n zoom_level:\n | \"hours\"\n | \"day\"\n | \"week\"\n | \"bi_week\"\n | \"month\"\n | \"quarter\"\n | \"year\"\n | \"5_years\"\n // Center timestamp for the timeline view (Unix timestamp in ms).\n center_timestamp?: number\n}\n\ntype TimelineViewConfigResponse = {\n // The view configuration type.\n type: \"timeline\"\n // Start date property - required.\n date_property_id: string\n // Start date property name (convenience field).\n date_property_name?: string\n // End date property (optional, for items that span a range).\n end_date_property_id?: string\n // End date property name (convenience field).\n end_date_property_name?: string\n // Properties to display on timeline items.\n properties?: Array<ViewPropertyConfigResponse>\n // Whether to show the table panel alongside the timeline.\n show_table?: boolean\n // Properties to display in the table panel (when show_table is true).\n table_properties?: Array<ViewPropertyConfigResponse>\n // Timeline zoom/preference state.\n preference?: TimelinePreferenceResponse\n // Dependency arrows configuration.\n arrows_by?: TimelineArrowsByResponse\n // Whether to color-code items by property.\n color_by?: boolean\n}\n\ntype TimestampSortResponse = {\n // The timestamp to sort by.\n timestamp: \"created_time\" | \"last_edited_time\"\n // Sort direction.\n direction: \"ascending\" | \"descending\"\n}\n\n/**\n * View configuration, typed by view type (table, board, calendar, etc.).\n */\ntype ViewConfigResponse =\n | TableViewConfigResponse\n | BoardViewConfigResponse\n | CalendarViewConfigResponse\n | TimelineViewConfigResponse\n | GalleryViewConfigResponse\n | ListViewConfigResponse\n | MapViewConfigResponse\n | FormViewConfigResponse\n | ChartViewConfigResponse\n | DashboardViewConfigResponse\n\n/**\n * Filter for the view. Can be a property filter (filter by property value), timestamp\n * filter (filter by created_time or last_edited_time), or compound filter (combine\n * filters with and/or logic). Compound filters support up to 2 levels of nesting.\n */\ntype ViewFilterResponse =\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n | {\n // Filters combined with OR logic.\n or?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n | {\n // Filters combined with OR logic.\n or?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n // Filters combined with AND logic.\n and?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n }\n >\n // Filters combined with AND logic.\n and?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n | {\n // Filters combined with OR logic.\n or?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n // Filters combined with AND logic.\n and?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n }\n >\n }\n\ntype ViewPropertyConfigResponse = {\n // Property ID (stable identifier).\n property_id: string\n // Property name (convenience field, not stable across renames).\n property_name?: string\n // Whether this property is visible in the view.\n visible?: boolean\n // Width of the property column in pixels (table view only).\n width?: number\n // Whether to wrap content in this property cell/card.\n wrap?: boolean\n // How to display status properties (as select dropdown or checkbox).\n status_show_as?: \"select\" | \"checkbox\"\n // Property width mode in compact card layouts (board/gallery).\n card_property_width_mode?: \"full_line\" | \"inline\"\n // Date display format (date properties only). \"full\" = localized full date, \"short\" =\n // month and day, \"month_day_year\" = MM/DD/YYYY, \"day_month_year\" = DD/MM/YYYY,\n // \"year_month_day\" = YYYY/MM/DD, \"relative\" = relative dates.\n date_format?:\n | \"full\"\n | \"short\"\n | \"month_day_year\"\n | \"day_month_year\"\n | \"year_month_day\"\n | \"relative\"\n // Time display format (date properties only). \"12_hour\" = 12-hour clock with AM/PM,\n // \"24_hour\" = 24-hour clock, \"hidden\" = hide time.\n time_format?: \"12_hour\" | \"24_hour\" | \"hidden\"\n}\n\nexport type ViewQueryResponse = {\n // The object type.\n object: \"view_query\"\n // The query ID.\n id: IdResponse\n // The view this query was executed against.\n view_id: IdResponse\n // When the cached query results expire.\n expires_at: string\n // Total number of results in the query.\n total_count: number\n // The page results for this page.\n results: Array<PageReferenceResponse>\n // Cursor for the next page of results.\n next_cursor: IdResponse | null\n // Whether there are more results.\n has_more: boolean\n // Set to `{ type: 'incomplete', incomplete_reason: 'query_result_limit_reached' }` when\n // the view's underlying data source has more rows matching this query than the\n // server-side pagination depth limit allows.\n request_status?: RequestStatusResponse\n}\n\n/**\n * Sort for the view. Can sort by property or timestamp.\n */\ntype ViewSortResponse = PropertySortResponse | TimestampSortResponse\n\ntype ListDatabaseViewsQueryParameters = {\n // ID of a Notion database (collection view block) to list views for. At least one of\n // database_id or data_source_id is required.\n database_id?: IdRequest\n // ID of a data source (collection) to list all views for, including linked views across\n // the workspace. At least one of database_id or data_source_id is required.\n data_source_id?: IdRequest\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided. If not supplied, this endpoint will return the first page of results.\n start_cursor?: string\n // The number of items from the full list desired in the response. Maximum: 100\n page_size?: number\n}\n\nexport type ListDatabaseViewsParameters = ListDatabaseViewsQueryParameters\n\nexport type ListDatabaseViewsResponse = {\n // Always `list`\n object: \"list\"\n next_cursor: IdResponse | null\n has_more: boolean\n results: Array<DataSourceViewReferenceResponse>\n // Always `view`\n type: \"view\"\n view: EmptyObject\n request_status?: RequestStatusResponse\n}\n\n/**\n * List views\n */\nexport const listDatabaseViews = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"database_id\", \"data_source_id\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (): string => `views`,\n} as const\n\ntype CreateViewBodyParameters = CreateViewRequest\n\nexport type CreateViewParameters = CreateViewBodyParameters\n\nexport type CreateViewResponse =\n | PartialDataSourceViewObjectResponse\n | DataSourceViewObjectResponse\n\n/**\n * Create a view\n */\nexport const createView = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [],\n\n path: (): string => `views`,\n} as const\n\ntype GetViewPathParameters = {\n // ID of a Notion view.\n view_id: IdRequest\n}\n\nexport type GetViewParameters = GetViewPathParameters\n\nexport type GetViewResponse =\n | PartialDataSourceViewObjectResponse\n | DataSourceViewObjectResponse\n\n/**\n * Retrieve a view\n */\nexport const getView = {\n method: \"get\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetViewPathParameters): string => `views/${p.view_id}`,\n} as const\n\ntype UpdateViewPathParameters = {\n // ID of a Notion view.\n view_id: IdRequest\n}\n\ntype UpdateViewBodyParameters = UpdateViewRequest\n\nexport type UpdateViewParameters = UpdateViewPathParameters &\n UpdateViewBodyParameters\n\nexport type UpdateViewResponse =\n | PartialDataSourceViewObjectResponse\n | DataSourceViewObjectResponse\n\n/**\n * Update a view\n */\nexport const updateView = {\n method: \"patch\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: UpdateViewPathParameters): string => `views/${p.view_id}`,\n} as const\n\ntype DeleteViewPathParameters = {\n // The ID of the view to delete.\n view_id: IdRequest\n}\n\nexport type DeleteViewParameters = DeleteViewPathParameters\n\nexport type DeleteViewResponse = PartialDataSourceViewObjectResponse\n\n/**\n * Delete a view\n */\nexport const deleteView = {\n method: \"delete\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: DeleteViewPathParameters): string => `views/${p.view_id}`,\n} as const\n\ntype CreateViewQueryPathParameters = {\n // The ID of the view.\n view_id: IdRequest\n}\n\ntype CreateViewQueryBodyParameters = CreateViewQueryRequest\n\nexport type CreateViewQueryParameters = CreateViewQueryPathParameters &\n CreateViewQueryBodyParameters\n\nexport type CreateViewQueryResponse = ViewQueryResponse\n\n/**\n * Create a view query\n */\nexport const createViewQuery = {\n method: \"post\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: CreateViewQueryPathParameters): string =>\n `views/${p.view_id}/queries`,\n} as const\n\ntype GetViewQueryResultsPathParameters = {\n // The ID of the view.\n view_id: IdRequest\n // The ID of the query.\n query_id: IdRequest\n}\n\ntype GetViewQueryResultsQueryParameters = {\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided.\n start_cursor?: string\n // The number of results to return per page. Maximum: 100\n page_size?: number\n}\n\nexport type GetViewQueryResultsParameters = GetViewQueryResultsPathParameters &\n GetViewQueryResultsQueryParameters\n\nexport type GetViewQueryResultsResponse = {\n // Always `list`\n object: \"list\"\n next_cursor: IdResponse | null\n has_more: boolean\n results: Array<PartialPageObjectResponse>\n // Always `page`\n type: \"page\"\n page: EmptyObject\n request_status?: RequestStatusResponse\n}\n\n/**\n * Get view query results\n */\nexport const getViewQueryResults = {\n method: \"get\",\n pathParams: [\"view_id\", \"query_id\"],\n queryParams: [\"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: GetViewQueryResultsPathParameters): string =>\n `views/${p.view_id}/queries/${p.query_id}`,\n} as const\n\ntype DeleteViewQueryPathParameters = {\n // The ID of the view.\n view_id: IdRequest\n // The ID of the query.\n query_id: IdRequest\n}\n\nexport type DeleteViewQueryParameters = DeleteViewQueryPathParameters\n\nexport type DeleteViewQueryResponse = DeletedViewQueryResponse\n\n/**\n * Delete a view query\n */\nexport const deleteViewQuery = {\n method: \"delete\",\n pathParams: [\"view_id\", \"query_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: DeleteViewQueryPathParameters): string =>\n `views/${p.view_id}/queries/${p.query_id}`,\n} as const\n"]}
1
+ {"version":3,"file":"views.js","sourceRoot":"","sources":["../../../src/api-endpoints/views.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAo0B/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC;IAC3E,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,OAAO;CACnB,CAAA;AAUV;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,OAAO;CACnB,CAAA;AAaV;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AA;AAaV;;GAEG;AACU,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAgC,EAAU,EAAE,CACjD,SAAS,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,QAAQ,EAAE;CACpC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n CreateViewQueryRequest,\n CreateViewRequest,\n DataSourceViewReferenceResponse,\n DatabaseParentResponse,\n EmptyObject,\n IdRequest,\n IdResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n RequestStatusResponse,\n UpdateViewRequest,\n} from \"./common\"\n\ntype BoardViewConfigResponse = {\n // The view configuration type.\n type: \"board\"\n // Column (horizontal) grouping - required for board view.\n group_by: GroupByConfigResponse\n // Sub-grouping (vertical swimlanes within columns).\n sub_group_by?: GroupByConfigResponse\n // Properties to display on each card.\n properties?: Array<ViewPropertyConfigResponse>\n // Card cover/preview image configuration.\n cover?: CoverConfigResponse\n // Cover image size.\n cover_size?: \"small\" | \"medium\" | \"large\"\n // Cover image aspect ratio.\n cover_aspect?: \"contain\" | \"cover\"\n // Card layout mode (list shows all properties, compact shows inline).\n card_layout?: \"list\" | \"compact\"\n}\n\ntype CalendarViewConfigResponse = {\n // The view configuration type.\n type: \"calendar\"\n // Date property used to position items on the calendar - required.\n date_property_id: string\n // Date property name (convenience field).\n date_property_name?: string\n // Properties to display on calendar event cards.\n properties?: Array<ViewPropertyConfigResponse>\n // Calendar view range.\n view_range?: \"week\" | \"month\"\n // Whether to show weekend days.\n show_weekends?: boolean\n}\n\ntype ChartAggregationResponse = {\n // The aggregation operator. \"count\" counts all rows and does not require a property_id.\n // All other operators require a property_id.\n aggregator:\n | \"count\"\n | \"count_values\"\n | \"sum\"\n | \"average\"\n | \"median\"\n | \"min\"\n | \"max\"\n | \"range\"\n | \"unique\"\n | \"empty\"\n | \"not_empty\"\n | \"percent_empty\"\n | \"percent_not_empty\"\n | \"checked\"\n | \"unchecked\"\n | \"percent_checked\"\n | \"percent_unchecked\"\n | \"earliest_date\"\n | \"latest_date\"\n | \"date_range\"\n // The property to aggregate on. Required for all operators except \"count\".\n property_id?: string\n}\n\ntype ChartReferenceLineResponse = {\n // Unique identifier for the reference line.\n id: string\n // The y-axis value where the reference line is drawn.\n value: number\n // Label displayed alongside the reference line.\n label: string\n // Color of the reference line.\n color:\n | \"gray\"\n | \"lightgray\"\n | \"brown\"\n | \"yellow\"\n | \"orange\"\n | \"green\"\n | \"blue\"\n | \"purple\"\n | \"pink\"\n | \"red\"\n // Line style: \"solid\" for a continuous line, \"dash\" for a dashed line.\n dash_style: \"solid\" | \"dash\"\n}\n\ntype ChartViewConfigResponse = {\n // The view configuration type.\n type: \"chart\"\n // The chart type: column (vertical bars), bar (horizontal bars), line, donut, or number\n // (single value display).\n chart_type: \"column\" | \"bar\" | \"line\" | \"donut\" | \"number\"\n // X-axis grouping configuration for column/bar/line/donut charts using grouped data.\n // Null when using results (raw property values) mode.\n x_axis?: GroupByConfigResponse | null\n // Y-axis aggregation for column/bar/line/donut charts using grouped data. Null when\n // using results mode.\n y_axis?: ChartAggregationResponse | null\n // Property ID for the x-axis name values when using results (raw property values) mode.\n x_axis_property_id?: string\n // Property ID for the y-axis numeric values when using results (raw property values)\n // mode.\n y_axis_property_id?: string\n // Aggregation configuration for number charts (single value display).\n value?: ChartAggregationResponse\n // Sort order for chart data.\n sort?:\n | \"manual\"\n | \"x_ascending\"\n | \"x_descending\"\n | \"y_ascending\"\n | \"y_descending\"\n // Color theme for the chart.\n color_theme?:\n | \"gray\"\n | \"blue\"\n | \"yellow\"\n | \"green\"\n | \"purple\"\n | \"teal\"\n | \"orange\"\n | \"pink\"\n | \"red\"\n | \"auto\"\n | \"colorful\"\n // Chart height.\n height?: \"small\" | \"medium\" | \"large\" | \"extra_large\"\n // Whether to hide groups with no data on the x-axis.\n hide_empty_groups?: boolean\n // Legend display position. \"off\" hides the legend.\n legend_position?: \"off\" | \"bottom\" | \"side\"\n // Whether to show data value labels on chart elements.\n show_data_labels?: boolean\n // Which axis labels to display.\n axis_labels?: \"none\" | \"x_axis\" | \"y_axis\" | \"both\"\n // Which grid lines to display.\n grid_lines?: \"none\" | \"horizontal\" | \"vertical\" | \"both\"\n // Whether to show cumulative values (line charts only).\n cumulative?: boolean\n // Whether to use smooth curves (line charts only).\n smooth_line?: boolean\n // Whether to hide the shaded area under the line (line charts only).\n hide_line_fill_area?: boolean\n // How grouped/stacked bars are displayed. \"normal\" stacks values, \"percent\" normalizes\n // to 100%, \"side_by_side\" places bars next to each other.\n group_style?: \"normal\" | \"percent\" | \"side_by_side\"\n // Custom minimum value for the y-axis. Null clears the override.\n y_axis_min?: number | null\n // Custom maximum value for the y-axis. Null clears the override.\n y_axis_max?: number | null\n // What to display on donut chart slices.\n donut_labels?: \"none\" | \"value\" | \"name\" | \"name_and_value\"\n // Whether to hide the title label (number charts only).\n hide_title?: boolean\n // Stack-by grouping configuration for stacked/grouped bar charts (column/bar/line only).\n // Null when not stacked.\n stack_by?: GroupByConfigResponse | null\n // Reference lines drawn on the chart. Null when no reference lines are configured.\n reference_lines?: Array<ChartReferenceLineResponse> | null\n // Text caption displayed below the chart. Null when no caption is shown.\n caption?: string | null\n // Whether chart elements are colored by their numeric value (gradient coloring).\n color_by_value?: boolean\n}\n\ntype CheckboxGroupByConfigResponse = {\n // The property type for grouping.\n type: \"checkbox\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups (only manual for checkbox).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype CoverConfigResponse = {\n // Source of the cover image.\n type: \"page_cover\" | \"page_content\" | \"page_content_first\" | \"property\"\n // Property ID when type is \"property\".\n property_id?: string\n}\n\nexport type DashboardRowResponse = {\n // The ID of this row module.\n id: string\n // The widget modules within this row.\n widgets: Array<DashboardWidgetResponse>\n // Fixed height of the row in pixels.\n height?: number\n}\n\ntype DashboardViewConfigResponse = {\n // The view configuration type.\n type: \"dashboard\"\n // The rows that make up the dashboard layout. Each row contains one or more widget\n // modules.\n rows: Array<DashboardRowResponse>\n}\n\nexport type DashboardWidgetResponse = {\n // The ID of this widget module.\n id: string\n // The ID of the collection view rendered by this widget.\n view_id: string\n // Width of the widget in a 12-column grid (1-12). 12 means full width.\n width?: number\n // The 0-based index of the row this widget belongs to. Widgets in the same row share the\n // same row_index.\n row_index?: number\n}\n\nexport type DataSourceViewObjectResponse = {\n // The object type name.\n object: \"view\"\n // The ID of the view.\n id: IdResponse\n // The parent database of the view.\n parent: DatabaseParentResponse\n // The name of the view.\n name: string\n // The view type.\n type:\n | \"table\"\n | \"board\"\n | \"list\"\n | \"calendar\"\n | \"timeline\"\n | \"gallery\"\n | \"form\"\n | \"chart\"\n | \"map\"\n | \"dashboard\"\n // The time when the view was created.\n created_time: string\n // The time when the view was last edited.\n last_edited_time: string\n // Canonical deep link to the view in Notion.\n url: string\n // The ID of the data source this view is scoped to, or null for dashboard views.\n data_source_id?: string | null\n // The user who created the view, or null if not available.\n created_by?: PartialUserObjectResponse | null\n // The user who last edited the view, or null if not available.\n last_edited_by?: PartialUserObjectResponse | null\n // The filter applied to this view (same shape as data source query filter).\n filter?: ViewFilterResponse | null\n // The sorts applied to this view (same shape as data source query sorts).\n sorts?: Array<ViewSortResponse> | null\n // Quick filters pinned to the view's filter bar. Keys are property IDs. Values are\n // filter conditions (same shape as a property filter without the property field). Null\n // when no quick filters are set.\n quick_filters?: Record<string, QuickFilterConditionResponse> | null\n // View presentation configuration.\n configuration?: ViewConfigResponse | null\n // For dashboard widget views, the ID of the parent dashboard view. Only present when\n // this view is a widget inside a dashboard.\n dashboard_view_id?: string\n}\n\ntype DateGroupByConfigResponse = {\n // The property type for grouping.\n type: \"date\" | \"created_time\" | \"last_edited_time\"\n // Property ID to group by.\n property_id: string\n // Granularity for date grouping.\n group_by: \"relative\" | \"day\" | \"week\" | \"month\" | \"year\"\n // Sort order for groups (no manual sort for dates).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n // Start day of week for week grouping (0 = Sunday, 1 = Monday).\n start_day_of_week?: 0 | 1\n}\n\nexport type DeletedViewQueryResponse = {\n // The object type.\n object: \"view_query\"\n // The ID of the deleted view query.\n id: IdResponse\n // Whether the view query was deleted.\n deleted: boolean\n}\n\ntype FormViewConfigResponse = {\n // The view configuration type.\n type: \"form\"\n // Whether the form is closed for submissions.\n is_form_closed?: boolean\n // Whether anonymous (non-logged-in) submissions are allowed.\n anonymous_submissions?: boolean\n // Permission level granted to the submitter on the created page after form submission.\n submission_permissions?:\n | \"none\"\n | \"comment_only\"\n | \"reader\"\n | \"read_and_write\"\n | \"editor\"\n}\n\ntype FormulaCheckboxSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"checkbox\"\n // Sort order for groups (only manual for checkbox).\n sort: GroupSortResponse\n}\n\ntype FormulaDateSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"date\"\n // Granularity for date grouping.\n group_by: \"relative\" | \"day\" | \"week\" | \"month\" | \"year\"\n // Sort order for groups.\n sort: GroupSortResponse\n // Start day of week for week grouping (0 = Sunday, 1 = Monday).\n start_day_of_week?: 0 | 1\n}\n\ntype FormulaGroupByConfigResponse = {\n // The property type for grouping.\n type: \"formula\"\n // Property ID of the formula to group by.\n property_id: string\n // Sub-group-by configuration based on the formula result type.\n group_by: FormulaSubGroupByResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype FormulaNumberSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"number\"\n // Sort order for groups (ascending or descending only).\n sort: GroupSortResponse\n // Start of the range for number grouping buckets.\n range_start?: number\n // End of the range for number grouping buckets.\n range_end?: number\n // Size of each bucket in number grouping.\n range_size?: number\n}\n\n/**\n * Sub-group-by configuration for formula properties based on result type.\n */\ntype FormulaSubGroupByResponse =\n | FormulaDateSubGroupByResponse\n | FormulaTextSubGroupByResponse\n | FormulaNumberSubGroupByResponse\n | FormulaCheckboxSubGroupByResponse\n\ntype FormulaTextSubGroupByResponse = {\n // The formula result type for grouping.\n type: \"text\"\n // How to group text values. \"exact\" = exact match, \"alphabet_prefix\" = first letter.\n group_by: \"exact\" | \"alphabet_prefix\"\n // Sort order for groups.\n sort: GroupSortResponse\n}\n\ntype GalleryViewConfigResponse = {\n // The view configuration type.\n type: \"gallery\"\n // Properties to display on gallery cards.\n properties?: Array<ViewPropertyConfigResponse>\n // Card cover/preview image configuration.\n cover?: CoverConfigResponse\n // Cover image size.\n cover_size?: \"small\" | \"medium\" | \"large\"\n // Cover image aspect ratio.\n cover_aspect?: \"contain\" | \"cover\"\n // Card layout mode (list shows all properties, compact shows inline).\n card_layout?: \"list\" | \"compact\"\n}\n\n/**\n * Group-by configuration based on property type.\n */\ntype GroupByConfigResponse =\n | SelectGroupByConfigResponse\n | StatusGroupByConfigResponse\n | PersonGroupByConfigResponse\n | RelationGroupByConfigResponse\n | DateGroupByConfigResponse\n | TextGroupByConfigResponse\n | NumberGroupByConfigResponse\n | CheckboxGroupByConfigResponse\n | FormulaGroupByConfigResponse\n\ntype GroupSortResponse = {\n // Sort direction for groups.\n type: \"manual\" | \"ascending\" | \"descending\"\n}\n\ntype ListViewConfigResponse = {\n // The view configuration type.\n type: \"list\"\n // Properties to display in list items.\n properties?: Array<ViewPropertyConfigResponse>\n}\n\ntype MapViewConfigResponse = {\n // The view configuration type.\n type: \"map\"\n // Map display height.\n height?: \"small\" | \"medium\" | \"large\" | \"extra_large\"\n // Property ID of the location property used to position items on the map.\n map_by?: string\n // Map-by property name (convenience field).\n map_by_property_name?: string\n // Properties to display on map pin cards.\n properties?: Array<ViewPropertyConfigResponse>\n}\n\ntype NumberGroupByConfigResponse = {\n // The property type for grouping.\n type: \"number\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups (ascending or descending only).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n // Start of the range for number grouping buckets.\n range_start?: number\n // End of the range for number grouping buckets.\n range_end?: number\n // Size of each bucket in number grouping.\n range_size?: number\n}\n\ntype PageReferenceResponse = {\n // The object type.\n object: string\n // The object ID.\n id: IdResponse\n}\n\nexport type PartialDataSourceViewObjectResponse = {\n // The object type name.\n object: \"view\"\n // The ID of the view.\n id: IdResponse\n // The parent database of the view.\n parent: DatabaseParentResponse\n // The view type.\n type:\n | \"table\"\n | \"board\"\n | \"list\"\n | \"calendar\"\n | \"timeline\"\n | \"gallery\"\n | \"form\"\n | \"chart\"\n | \"map\"\n | \"dashboard\"\n}\n\ntype PersonGroupByConfigResponse = {\n // The property type for grouping.\n type: \"person\" | \"created_by\" | \"last_edited_by\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups (only manual supported).\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype PropertySortResponse = {\n // The name or ID of the property to sort by.\n property: string\n // Sort direction.\n direction: \"ascending\" | \"descending\"\n}\n\n/**\n * A property filter condition. Same shape as a property filter but without the\n * \"property\" field. For example: { \"select\": { \"equals\": \"High\" } }.\n */\ntype QuickFilterConditionResponse = Record<string, never>\n\ntype RelationGroupByConfigResponse = {\n // The property type for grouping.\n type: \"relation\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype SelectGroupByConfigResponse = {\n // The property type for grouping.\n type: \"select\" | \"multi_select\"\n // Property ID to group by.\n property_id: string\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype StatusGroupByConfigResponse = {\n // The property type for grouping.\n type: \"status\"\n // Property ID to group by.\n property_id: string\n // How to group status values. \"group\" groups by status group (To Do/In Progress/Done),\n // \"option\" groups by individual option.\n group_by: \"group\" | \"option\"\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype SubtaskConfigResponse = {\n // Relation property ID used for parent-child nesting.\n property_id?: string\n // How sub-items are displayed. \"show\" renders hierarchically with toggles, \"hidden\"\n // shows parents with a count, \"flattened\" shows sub-items with a parent indicator,\n // \"disabled\" turns off sub-item rendering.\n display_mode?: \"show\" | \"hidden\" | \"flattened\" | \"disabled\"\n // Which items are included when filtering. \"parents\" includes parent items only,\n // \"parents_and_subitems\" includes both, \"subitems\" includes sub-items only.\n filter_scope?: \"parents\" | \"parents_and_subitems\" | \"subitems\"\n // Property ID of the column showing the sub-item expand/collapse toggle.\n toggle_column_id?: string\n}\n\ntype TableViewConfigResponse = {\n // The view configuration type.\n type: \"table\"\n // Columns/properties visible in the table view.\n properties?: Array<ViewPropertyConfigResponse>\n // Vertical (row) grouping configuration.\n group_by?: GroupByConfigResponse\n // Sub-item (subtask) display configuration.\n subtasks?: SubtaskConfigResponse\n // Whether to wrap cell content by default.\n wrap_cells?: boolean\n // Index of the last frozen column. Columns up to and including this index are frozen.\n frozen_column_index?: number\n // Whether to show vertical lines between columns.\n show_vertical_lines?: boolean\n}\n\ntype TextGroupByConfigResponse = {\n // The property type for grouping.\n type: \"text\" | \"title\" | \"url\" | \"email\" | \"phone_number\"\n // Property ID to group by.\n property_id: string\n // How to group text values. \"exact\" = exact match, \"alphabet_prefix\" = first letter.\n group_by: \"exact\" | \"alphabet_prefix\"\n // Sort order for groups.\n sort: GroupSortResponse\n // Property name (convenience field).\n property_name?: string\n // Whether to hide groups that have no items.\n hide_empty_groups?: boolean\n}\n\ntype TimelineArrowsByResponse = {\n // Relation property ID used for dependency arrows.\n property_id?: string | null\n}\n\ntype TimelinePreferenceResponse = {\n // Zoom level for the timeline.\n zoom_level:\n | \"hours\"\n | \"day\"\n | \"week\"\n | \"bi_week\"\n | \"month\"\n | \"quarter\"\n | \"year\"\n | \"5_years\"\n // Center timestamp for the timeline view (Unix timestamp in ms).\n center_timestamp?: number\n}\n\ntype TimelineViewConfigResponse = {\n // The view configuration type.\n type: \"timeline\"\n // Start date property - required.\n date_property_id: string\n // Start date property name (convenience field).\n date_property_name?: string\n // End date property (optional, for items that span a range).\n end_date_property_id?: string\n // End date property name (convenience field).\n end_date_property_name?: string\n // Properties to display on timeline items.\n properties?: Array<ViewPropertyConfigResponse>\n // Whether to show the table panel alongside the timeline.\n show_table?: boolean\n // Properties to display in the table panel (when show_table is true).\n table_properties?: Array<ViewPropertyConfigResponse>\n // Timeline zoom/preference state.\n preference?: TimelinePreferenceResponse\n // Dependency arrows configuration.\n arrows_by?: TimelineArrowsByResponse\n // Whether to color-code items by property.\n color_by?: boolean\n}\n\ntype TimestampSortResponse = {\n // The timestamp to sort by.\n timestamp: \"created_time\" | \"last_edited_time\"\n // Sort direction.\n direction: \"ascending\" | \"descending\"\n}\n\n/**\n * View configuration, typed by view type (table, board, calendar, etc.).\n */\ntype ViewConfigResponse =\n | TableViewConfigResponse\n | BoardViewConfigResponse\n | CalendarViewConfigResponse\n | TimelineViewConfigResponse\n | GalleryViewConfigResponse\n | ListViewConfigResponse\n | MapViewConfigResponse\n | FormViewConfigResponse\n | ChartViewConfigResponse\n | DashboardViewConfigResponse\n\n/**\n * Filter for the view. Can be a property filter (filter by property value), timestamp\n * filter (filter by created_time or last_edited_time), or compound filter (combine\n * filters with and/or logic). Compound filters support up to 2 levels of nesting.\n */\ntype ViewFilterResponse =\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n | {\n // Filters combined with OR logic.\n or?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n | {\n // Filters combined with OR logic.\n or?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n // Filters combined with AND logic.\n and?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n }\n >\n // Filters combined with AND logic.\n and?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n | {\n // Filters combined with OR logic.\n or?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n // Filters combined with AND logic.\n and?: Array<\n | (Record<string, unknown> & {\n // The name or ID of the property to filter on.\n property: string\n })\n | (Record<string, unknown> & {\n // The timestamp to filter on.\n timestamp: \"created_time\" | \"last_edited_time\"\n })\n >\n }\n >\n }\n\ntype ViewPropertyConfigResponse = {\n // Property ID (stable identifier).\n property_id: string\n // Property name (convenience field, not stable across renames).\n property_name?: string\n // Whether this property is visible in the view.\n visible?: boolean\n // Width of the property column in pixels (table view only).\n width?: number\n // Whether to wrap content in this property cell/card.\n wrap?: boolean\n // How to display status properties (as select dropdown or checkbox).\n status_show_as?: \"select\" | \"checkbox\"\n // Property width mode in compact card layouts (board/gallery).\n card_property_width_mode?: \"full_line\" | \"inline\"\n // Date display format (date properties only). \"full\" = localized full date, \"short\" =\n // month and day, \"month_day_year\" = MM/DD/YYYY, \"day_month_year\" = DD/MM/YYYY,\n // \"year_month_day\" = YYYY/MM/DD, \"relative\" = relative dates.\n date_format?:\n | \"full\"\n | \"short\"\n | \"month_day_year\"\n | \"day_month_year\"\n | \"year_month_day\"\n | \"relative\"\n // Time display format (date properties only). \"12_hour\" = 12-hour clock with AM/PM,\n // \"24_hour\" = 24-hour clock, \"hidden\" = hide time.\n time_format?: \"12_hour\" | \"24_hour\" | \"hidden\"\n}\n\nexport type ViewQueryResponse = {\n // The object type.\n object: \"view_query\"\n // The query ID.\n id: IdResponse\n // The view this query was executed against.\n view_id: IdResponse\n // When the cached query results expire.\n expires_at: string\n // Total number of results in the query.\n total_count: number\n // The page results for this page.\n results: Array<PageReferenceResponse>\n // Cursor for the next page of results.\n next_cursor: IdResponse | null\n // Whether there are more results.\n has_more: boolean\n // Set to `{ type: 'incomplete', incomplete_reason: 'query_result_limit_reached' }` when\n // the view's underlying data source has more rows matching this query than the\n // server-side pagination depth limit allows.\n request_status?: RequestStatusResponse\n}\n\n/**\n * Sort for the view. Can sort by property or timestamp.\n */\ntype ViewSortResponse = PropertySortResponse | TimestampSortResponse\n\ntype ListDatabaseViewsQueryParameters = {\n // ID of a Notion database (collection view block) to list views for. At least one of\n // database_id or data_source_id is required.\n database_id?: IdRequest\n // ID of a data source (collection) to list all views for, including linked views across\n // the workspace. At least one of database_id or data_source_id is required.\n data_source_id?: IdRequest\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 ListDatabaseViewsParameters = ListDatabaseViewsQueryParameters\n\nexport type ListDatabaseViewsResponse = {\n // Always `list`\n object: \"list\"\n next_cursor: IdResponse | null\n has_more: boolean\n results: Array<DataSourceViewReferenceResponse>\n // Always `view`\n type: \"view\"\n view: EmptyObject\n request_status?: RequestStatusResponse\n}\n\n/**\n * List views\n */\nexport const listDatabaseViews = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"database_id\", \"data_source_id\", \"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (): string => `views`,\n} as const\n\ntype CreateViewBodyParameters = CreateViewRequest\n\nexport type CreateViewParameters = CreateViewBodyParameters\n\nexport type CreateViewResponse =\n | PartialDataSourceViewObjectResponse\n | DataSourceViewObjectResponse\n\n/**\n * Create a view\n */\nexport const createView = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [],\n\n path: (): string => `views`,\n} as const\n\ntype GetViewPathParameters = {\n // ID of a Notion view.\n view_id: IdRequest\n}\n\nexport type GetViewParameters = GetViewPathParameters\n\nexport type GetViewResponse =\n | PartialDataSourceViewObjectResponse\n | DataSourceViewObjectResponse\n\n/**\n * Retrieve a view\n */\nexport const getView = {\n method: \"get\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetViewPathParameters): string => `views/${p.view_id}`,\n} as const\n\ntype UpdateViewPathParameters = {\n // ID of a Notion view.\n view_id: IdRequest\n}\n\ntype UpdateViewBodyParameters = UpdateViewRequest\n\nexport type UpdateViewParameters = UpdateViewPathParameters &\n UpdateViewBodyParameters\n\nexport type UpdateViewResponse =\n | PartialDataSourceViewObjectResponse\n | DataSourceViewObjectResponse\n\n/**\n * Update a view\n */\nexport const updateView = {\n method: \"patch\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: UpdateViewPathParameters): string => `views/${p.view_id}`,\n} as const\n\ntype DeleteViewPathParameters = {\n // The ID of the view to delete.\n view_id: IdRequest\n}\n\nexport type DeleteViewParameters = DeleteViewPathParameters\n\nexport type DeleteViewResponse = PartialDataSourceViewObjectResponse\n\n/**\n * Delete a view\n */\nexport const deleteView = {\n method: \"delete\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: DeleteViewPathParameters): string => `views/${p.view_id}`,\n} as const\n\ntype CreateViewQueryPathParameters = {\n // The ID of the view.\n view_id: IdRequest\n}\n\ntype CreateViewQueryBodyParameters = CreateViewQueryRequest\n\nexport type CreateViewQueryParameters = CreateViewQueryPathParameters &\n CreateViewQueryBodyParameters\n\nexport type CreateViewQueryResponse = ViewQueryResponse\n\n/**\n * Create a view query\n */\nexport const createViewQuery = {\n method: \"post\",\n pathParams: [\"view_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: CreateViewQueryPathParameters): string =>\n `views/${p.view_id}/queries`,\n} as const\n\ntype GetViewQueryResultsPathParameters = {\n // The ID of the view.\n view_id: IdRequest\n // The ID of the query.\n query_id: IdRequest\n}\n\ntype GetViewQueryResultsQueryParameters = {\n // If supplied, this endpoint will return a page of results starting after the cursor\n // provided.\n start_cursor?: string | null\n // The number of results to return per page. Maximum: 100\n page_size?: number\n}\n\nexport type GetViewQueryResultsParameters = GetViewQueryResultsPathParameters &\n GetViewQueryResultsQueryParameters\n\nexport type GetViewQueryResultsResponse = {\n // Always `list`\n object: \"list\"\n next_cursor: IdResponse | null\n has_more: boolean\n results: Array<PartialPageObjectResponse>\n // Always `page`\n type: \"page\"\n page: EmptyObject\n request_status?: RequestStatusResponse\n}\n\n/**\n * Get view query results\n */\nexport const getViewQueryResults = {\n method: \"get\",\n pathParams: [\"view_id\", \"query_id\"],\n queryParams: [\"start_cursor\", \"page_size\"],\n bodyParams: [],\n\n path: (p: GetViewQueryResultsPathParameters): string =>\n `views/${p.view_id}/queries/${p.query_id}`,\n} as const\n\ntype DeleteViewQueryPathParameters = {\n // The ID of the view.\n view_id: IdRequest\n // The ID of the query.\n query_id: IdRequest\n}\n\nexport type DeleteViewQueryParameters = DeleteViewQueryPathParameters\n\nexport type DeleteViewQueryResponse = DeletedViewQueryResponse\n\n/**\n * Delete a view query\n */\nexport const deleteViewQuery = {\n method: \"delete\",\n pathParams: [\"view_id\", \"query_id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: DeleteViewQueryPathParameters): string =>\n `views/${p.view_id}/queries/${p.query_id}`,\n} as const\n"]}
@@ -1,3 +1,4 @@
1
+ export * from "./api-endpoints/async-tasks";
1
2
  export * from "./api-endpoints/blocks";
2
3
  export * from "./api-endpoints/comments";
3
4
  export * from "./api-endpoints/common";
@@ -5,6 +6,7 @@ export * from "./api-endpoints/custom-emojis";
5
6
  export * from "./api-endpoints/data-sources";
6
7
  export * from "./api-endpoints/databases";
7
8
  export * from "./api-endpoints/file-uploads";
9
+ export * from "./api-endpoints/meeting-notes";
8
10
  export * from "./api-endpoints/oauth";
9
11
  export * from "./api-endpoints/pages";
10
12
  export * from "./api-endpoints/search";
@@ -1 +1 @@
1
- {"version":3,"file":"api-endpoints.d.ts","sourceRoot":"","sources":["../../src/api-endpoints.ts"],"names":[],"mappings":"AAOA,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA"}
1
+ {"version":3,"file":"api-endpoints.d.ts","sourceRoot":"","sources":["../../src/api-endpoints.ts"],"names":[],"mappings":"AAOA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA"}
@@ -20,6 +20,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./api-endpoints/async-tasks"), exports);
23
24
  __exportStar(require("./api-endpoints/blocks"), exports);
24
25
  __exportStar(require("./api-endpoints/comments"), exports);
25
26
  __exportStar(require("./api-endpoints/common"), exports);
@@ -27,6 +28,7 @@ __exportStar(require("./api-endpoints/custom-emojis"), exports);
27
28
  __exportStar(require("./api-endpoints/data-sources"), exports);
28
29
  __exportStar(require("./api-endpoints/databases"), exports);
29
30
  __exportStar(require("./api-endpoints/file-uploads"), exports);
31
+ __exportStar(require("./api-endpoints/meeting-notes"), exports);
30
32
  __exportStar(require("./api-endpoints/oauth"), exports);
31
33
  __exportStar(require("./api-endpoints/pages"), exports);
32
34
  __exportStar(require("./api-endpoints/search"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"api-endpoints.js","sourceRoot":"","sources":["../../src/api-endpoints.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;AAC/C,EAAE;AACF,kEAAkE;AAClE,+DAA+D;AAC/D,8CAA8C;;;;;;;;;;;;;;;;AAE9C,yDAAsC;AACtC,2DAAwC;AACxC,yDAAsC;AACtC,gEAA6C;AAC7C,+DAA4C;AAC5C,4DAAyC;AACzC,+DAA4C;AAC5C,wDAAqC;AACrC,wDAAqC;AACrC,yDAAsC;AACtC,wDAAqC;AACrC,wDAAqC;AACrC,2DAAwC","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n//\n// This barrel re-exports all API types from per-resource modules.\n// Import from this file for backwards compatibility, or import\n// directly from the specific resource module.\n\nexport * from \"./api-endpoints/blocks\"\nexport * from \"./api-endpoints/comments\"\nexport * from \"./api-endpoints/common\"\nexport * from \"./api-endpoints/custom-emojis\"\nexport * from \"./api-endpoints/data-sources\"\nexport * from \"./api-endpoints/databases\"\nexport * from \"./api-endpoints/file-uploads\"\nexport * from \"./api-endpoints/oauth\"\nexport * from \"./api-endpoints/pages\"\nexport * from \"./api-endpoints/search\"\nexport * from \"./api-endpoints/users\"\nexport * from \"./api-endpoints/views\"\nexport * from \"./api-endpoints/webhooks\"\n"]}
1
+ {"version":3,"file":"api-endpoints.js","sourceRoot":"","sources":["../../src/api-endpoints.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;AAC/C,EAAE;AACF,kEAAkE;AAClE,+DAA+D;AAC/D,8CAA8C;;;;;;;;;;;;;;;;AAE9C,8DAA2C;AAC3C,yDAAsC;AACtC,2DAAwC;AACxC,yDAAsC;AACtC,gEAA6C;AAC7C,+DAA4C;AAC5C,4DAAyC;AACzC,+DAA4C;AAC5C,gEAA6C;AAC7C,wDAAqC;AACrC,wDAAqC;AACrC,yDAAsC;AACtC,wDAAqC;AACrC,wDAAqC;AACrC,2DAAwC","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n//\n// This barrel re-exports all API types from per-resource modules.\n// Import from this file for backwards compatibility, or import\n// directly from the specific resource module.\n\nexport * from \"./api-endpoints/async-tasks\"\nexport * from \"./api-endpoints/blocks\"\nexport * from \"./api-endpoints/comments\"\nexport * from \"./api-endpoints/common\"\nexport * from \"./api-endpoints/custom-emojis\"\nexport * from \"./api-endpoints/data-sources\"\nexport * from \"./api-endpoints/databases\"\nexport * from \"./api-endpoints/file-uploads\"\nexport * from \"./api-endpoints/meeting-notes\"\nexport * from \"./api-endpoints/oauth\"\nexport * from \"./api-endpoints/pages\"\nexport * from \"./api-endpoints/search\"\nexport * from \"./api-endpoints/users\"\nexport * from \"./api-endpoints/views\"\nexport * from \"./api-endpoints/webhooks\"\n"]}
@@ -13,6 +13,7 @@ export declare enum APIErrorCode {
13
13
  ValidationError = "validation_error",
14
14
  ConflictError = "conflict_error",
15
15
  InternalServerError = "internal_server_error",
16
+ ServiceOverload = "service_overload",
16
17
  ServiceUnavailable = "service_unavailable",
17
18
  GatewayTimeout = "gateway_timeout"
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAIjD;;GAEG;AACH,oBAAY,YAAY;IACtB,YAAY,iBAAiB;IAC7B,kBAAkB,wBAAwB;IAC1C,cAAc,qBAAqB;IACnC,WAAW,iBAAiB;IAC5B,WAAW,iBAAiB;IAC5B,iBAAiB,wBAAwB;IACzC,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,mBAAmB,0BAA0B;IAC7C,kBAAkB,wBAAwB;IAC1C,cAAc,oBAAoB;CACnC;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,cAAc,oCAAoC;IAClD,aAAa,mCAAmC;IAChD,oBAAoB,2CAA2C;CAChE;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,eAAe,CAAA;AAE5D;;GAEG;AACH,uBAAe,qBAAqB,CAClC,IAAI,SAAS,eAAe,CAC5B,SAAQ,KAAK;IACb,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,mBAAmB,GACnB,wBAAwB,GACxB,gBAAgB,GAChB,yBAAyB,CAAA;AAgB7B;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,iBAAiB,CAE5B;AAeD;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,qBAAqB,CAAC,eAAe,CAAC,cAAc,CAAC;IAC5F,QAAQ,CAAC,IAAI,kCAAiC;IAC9C,QAAQ,CAAC,IAAI,yBAAwB;gBAEzB,OAAO,SAAwC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AAiB,CAAC,eAAe,CAAC,aAAa,CAAC;IAC5F,QAAQ,CAAC,IAAI,8BAA6B;gBAE9B,IAAI,EAAE;QAChB,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;QACrC,WAAW,EAAE,MAAM,CAAA;KACpB;IAYD,MAAM,CAAC,0BAA0B,CAC/B,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,wBAAwB;CAKrC;AAkBD;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,iBAAiB,CAAC,YAAY,CAAC;IACnE,QAAQ,CAAC,IAAI,sBAAqB;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAEvC,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB;CAGrE;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,iBAAiB,EAC3B,QAAQ,EAAE,MAAM,GACf,gBAAgB,GAAG,wBAAwB,CAmB7C"}
@@ -21,6 +21,7 @@ var APIErrorCode;
21
21
  APIErrorCode["ValidationError"] = "validation_error";
22
22
  APIErrorCode["ConflictError"] = "conflict_error";
23
23
  APIErrorCode["InternalServerError"] = "internal_server_error";
24
+ APIErrorCode["ServiceOverload"] = "service_overload";
24
25
  APIErrorCode["ServiceUnavailable"] = "service_unavailable";
25
26
  APIErrorCode["GatewayTimeout"] = "gateway_timeout";
26
27
  })(APIErrorCode || (exports.APIErrorCode = APIErrorCode = {}));
@@ -149,6 +150,7 @@ const httpResponseErrorCodes = {
149
150
  [APIErrorCode.ValidationError]: true,
150
151
  [APIErrorCode.ConflictError]: true,
151
152
  [APIErrorCode.InternalServerError]: true,
153
+ [APIErrorCode.ServiceOverload]: true,
152
154
  [APIErrorCode.ServiceUnavailable]: true,
153
155
  [APIErrorCode.GatewayTimeout]: true,
154
156
  };
@@ -192,6 +194,7 @@ const apiErrorCodes = {
192
194
  [APIErrorCode.ValidationError]: true,
193
195
  [APIErrorCode.ConflictError]: true,
194
196
  [APIErrorCode.InternalServerError]: true,
197
+ [APIErrorCode.ServiceOverload]: true,
195
198
  [APIErrorCode.ServiceUnavailable]: true,
196
199
  [APIErrorCode.GatewayTimeout]: true,
197
200
  };
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAwEA,kDAIC;AA6ED,kDAwBC;AAsDD,kDAaC;AA+DD,8CAsBC;AAxUD,mCAAkC;AAGlC;;GAEG;AACH,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,0DAA0C,CAAA;IAC1C,mDAAmC,CAAA;IACnC,4CAA4B,CAAA;IAC5B,4CAA4B,CAAA;IAC5B,yDAAyC,CAAA;IACzC,kDAAkC,CAAA;IAClC,oDAAoC,CAAA;IACpC,gDAAgC,CAAA;IAChC,6DAA6C,CAAA;IAC7C,0DAA0C,CAAA;IAC1C,kDAAkC,CAAA;AACpC,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED;;GAEG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,qEAAkD,CAAA;IAClD,mEAAgD,CAAA;IAChD,kFAA+D,CAAA;AACjE,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAOD;;GAEG;AACH,MAAe,qBAEb,SAAQ,KAAK;CAEd;AAyBD;;;GAGG;AACH,SAAgB,mBAAmB,CACjC,KAAc;IAEd,OAAO,IAAA,gBAAQ,EAAC,KAAK,CAAC,IAAI,KAAK,YAAY,qBAAqB,CAAA;AAClE,CAAC;AAED;;;;;GAKG;AACH,SAAS,2BAA2B,CAClC,KAAc,EACd,KAA4B;IAE5B,OAAO,mBAAmB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,IAAI,KAAK,CAAA;AAC1D,CAAC;AAED;;GAEG;AACH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D,UAAU,EAAE,oBAAoB,CAAC,UAAU;SAC5C,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,IAAI,wBAAwB,CAAC;QAClC,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,WAAW,EAAE,QAAQ;KACtB,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,yBAAyB,CAAC,IAAY;IAQ7C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAM;IACR,CAAC;IAED,IAAI,MAAe,CAAA;IACnB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAC3B,CAAC;IAAC,OAAO,UAAU,EAAE,CAAC;QACpB,OAAM;IACR,CAAC;IAED,IACE,CAAC,IAAA,gBAAQ,EAAC,MAAM,CAAC;QACjB,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,QAAQ;QACrC,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAC/B,CAAC;QACD,OAAM;IACR,CAAC;IAED,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAEnC,CAAA;IACb,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAuB,CAAA;IAE7D,OAAO;QACL,GAAG,MAAM;QACT,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC;QAC1B,eAAe;QACf,UAAU;KACX,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,IAAa;IACnC,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,aAAa,CAAA;AAC1D,CAAC","sourcesContent":["import { SupportedResponse } from \"./fetch-types\"\nimport { isObject } from \"./utils\"\nimport { Assert } from \"./type-utils\"\n\n/**\n * Error codes returned in responses from the API.\n */\nexport enum APIErrorCode {\n Unauthorized = \"unauthorized\",\n RestrictedResource = \"restricted_resource\",\n ObjectNotFound = \"object_not_found\",\n RateLimited = \"rate_limited\",\n InvalidJSON = \"invalid_json\",\n InvalidRequestURL = \"invalid_request_url\",\n InvalidRequest = \"invalid_request\",\n ValidationError = \"validation_error\",\n ConflictError = \"conflict_error\",\n InternalServerError = \"internal_server_error\",\n ServiceUnavailable = \"service_unavailable\",\n GatewayTimeout = \"gateway_timeout\",\n}\n\n/**\n * Error codes generated for client errors.\n */\nexport enum ClientErrorCode {\n RequestTimeout = \"notionhq_client_request_timeout\",\n ResponseError = \"notionhq_client_response_error\",\n InvalidPathParameter = \"notionhq_client_invalid_path_parameter\",\n}\n\n/**\n * Error codes on errors thrown by the `Client`.\n */\nexport type NotionErrorCode = APIErrorCode | ClientErrorCode\n\n/**\n * Base error type.\n */\nabstract class NotionClientErrorBase<\n Code extends NotionErrorCode,\n> extends Error {\n abstract code: Code\n}\n\n/**\n * Error type that encompasses all the kinds of errors that the Notion client will throw.\n */\nexport type NotionClientError =\n | RequestTimeoutError\n | UnknownHTTPResponseError\n | APIResponseError\n | InvalidPathParameterError\n\n// Assert that NotionClientError's `code` property is a narrow type.\n// This prevents us from accidentally regressing to `string`-typed name field.\ntype _assertCodeIsNarrow = Assert<NotionErrorCode, NotionClientError[\"code\"]>\n\n// Assert that the type of `name` in NotionErrorCode is a narrow type.\n// This prevents us from accidentally regressing to `string`-typed name field.\ntype _assertNameIsNarrow = Assert<\n | \"RequestTimeoutError\"\n | \"UnknownHTTPResponseError\"\n | \"APIResponseError\"\n | \"InvalidPathParameterError\",\n NotionClientError[\"name\"]\n>\n\n/**\n * @param error any value, usually a caught error.\n * @returns `true` if error is a `NotionClientError`.\n */\nexport function isNotionClientError(\n error: unknown\n): error is NotionClientError {\n return isObject(error) && error instanceof NotionClientErrorBase\n}\n\n/**\n * Narrows down the types of a NotionClientError.\n * @param error any value, usually a caught error.\n * @param codes an object mapping from possible error codes to `true`\n * @returns `true` if error is a `NotionClientError` with a code in `codes`.\n */\nfunction isNotionClientErrorWithCode<Code extends NotionErrorCode>(\n error: unknown,\n codes: { [C in Code]: true }\n): error is NotionClientError & { code: Code } {\n return isNotionClientError(error) && error.code in codes\n}\n\n/**\n * Error thrown by the client if a request times out.\n */\nexport class RequestTimeoutError extends NotionClientErrorBase<ClientErrorCode.RequestTimeout> {\n readonly code = ClientErrorCode.RequestTimeout\n readonly name = \"RequestTimeoutError\"\n\n constructor(message = \"Request to Notion API has timed out\") {\n super(message)\n }\n\n static isRequestTimeoutError(error: unknown): error is RequestTimeoutError {\n return isNotionClientErrorWithCode(error, {\n [ClientErrorCode.RequestTimeout]: true,\n })\n }\n\n static rejectAfterTimeout<T>(\n promise: Promise<T>,\n timeoutMS: number\n ): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n const timeoutId = setTimeout(() => {\n reject(new RequestTimeoutError())\n }, timeoutMS)\n\n promise\n .then(resolve)\n .catch(reject)\n .then(() => clearTimeout(timeoutId))\n })\n }\n}\n\n/**\n * Error thrown when a path parameter contains invalid characters such as\n * path traversal sequences (..) that could alter the intended API endpoint.\n */\nexport class InvalidPathParameterError extends NotionClientErrorBase<ClientErrorCode.InvalidPathParameter> {\n readonly code = ClientErrorCode.InvalidPathParameter\n readonly name = \"InvalidPathParameterError\"\n\n constructor(\n message = \"Path parameter contains invalid characters that could alter the request path\"\n ) {\n super(message)\n }\n\n static isInvalidPathParameterError(\n error: unknown\n ): error is InvalidPathParameterError {\n return isNotionClientErrorWithCode(error, {\n [ClientErrorCode.InvalidPathParameter]: true,\n })\n }\n}\n\n/**\n * Validates that a request path does not contain path traversal sequences.\n * Throws InvalidPathParameterError if the path contains \"..\" segments,\n * including URL-encoded variants like %2e%2e.\n */\nexport function validateRequestPath(path: string): void {\n // Check for literal path traversal\n if (path.includes(\"..\")) {\n throw new InvalidPathParameterError(\n `Request path \"${path}\" contains path traversal sequence \"..\"`\n )\n }\n\n // Check for URL-encoded path traversal (%2e = '.')\n // Only decode if path contains potential encoded dots\n if (/%2e/i.test(path)) {\n let decoded: string\n try {\n decoded = decodeURIComponent(path)\n } catch {\n // Invalid percent encoding - not a traversal concern\n return\n }\n if (decoded.includes(\"..\")) {\n throw new InvalidPathParameterError(\n `Request path \"${path}\" contains encoded path traversal sequence`\n )\n }\n }\n}\n\ntype HTTPResponseErrorCode = ClientErrorCode.ResponseError | APIErrorCode\n\ntype AdditionalData = Record<string, string | string[]>\n\nclass HTTPResponseError<\n Code extends HTTPResponseErrorCode,\n> extends NotionClientErrorBase<Code> {\n readonly name: string = \"HTTPResponseError\"\n readonly code: Code\n readonly status: number\n readonly headers: SupportedResponse[\"headers\"]\n readonly body: string\n readonly additional_data: AdditionalData | undefined\n readonly request_id: string | undefined\n\n constructor(args: {\n code: Code\n status: number\n message: string\n headers: SupportedResponse[\"headers\"]\n rawBodyText: string\n additional_data: AdditionalData | undefined\n request_id: string | undefined\n }) {\n super(args.message)\n const { code, status, headers, rawBodyText, additional_data, request_id } =\n args\n this.code = code\n this.status = status\n this.headers = headers\n this.body = rawBodyText\n this.additional_data = additional_data\n this.request_id = request_id\n }\n}\n\nconst httpResponseErrorCodes: { [C in HTTPResponseErrorCode]: true } = {\n [ClientErrorCode.ResponseError]: true,\n [APIErrorCode.Unauthorized]: true,\n [APIErrorCode.RestrictedResource]: true,\n [APIErrorCode.ObjectNotFound]: true,\n [APIErrorCode.RateLimited]: true,\n [APIErrorCode.InvalidJSON]: true,\n [APIErrorCode.InvalidRequestURL]: true,\n [APIErrorCode.InvalidRequest]: true,\n [APIErrorCode.ValidationError]: true,\n [APIErrorCode.ConflictError]: true,\n [APIErrorCode.InternalServerError]: true,\n [APIErrorCode.ServiceUnavailable]: true,\n [APIErrorCode.GatewayTimeout]: true,\n}\n\nexport function isHTTPResponseError(\n error: unknown\n): error is UnknownHTTPResponseError | APIResponseError {\n if (!isNotionClientErrorWithCode(error, httpResponseErrorCodes)) {\n return false\n }\n\n type _assert = Assert<\n UnknownHTTPResponseError | APIResponseError,\n typeof error\n >\n\n return true\n}\n\n/**\n * Error thrown if an API call responds with an unknown error code, or does not respond with\n * a property-formatted error.\n */\nexport class UnknownHTTPResponseError extends HTTPResponseError<ClientErrorCode.ResponseError> {\n readonly name = \"UnknownHTTPResponseError\"\n\n constructor(args: {\n status: number\n message: string | undefined\n headers: SupportedResponse[\"headers\"]\n rawBodyText: string\n }) {\n super({\n ...args,\n code: ClientErrorCode.ResponseError,\n message:\n args.message ??\n `Request to Notion API failed with status: ${args.status}`,\n additional_data: undefined,\n request_id: undefined,\n })\n }\n\n static isUnknownHTTPResponseError(\n error: unknown\n ): error is UnknownHTTPResponseError {\n return isNotionClientErrorWithCode(error, {\n [ClientErrorCode.ResponseError]: true,\n })\n }\n}\n\nconst apiErrorCodes: { [C in APIErrorCode]: true } = {\n [APIErrorCode.Unauthorized]: true,\n [APIErrorCode.RestrictedResource]: true,\n [APIErrorCode.ObjectNotFound]: true,\n [APIErrorCode.RateLimited]: true,\n [APIErrorCode.InvalidJSON]: true,\n [APIErrorCode.InvalidRequestURL]: true,\n [APIErrorCode.InvalidRequest]: true,\n [APIErrorCode.ValidationError]: true,\n [APIErrorCode.ConflictError]: true,\n [APIErrorCode.InternalServerError]: true,\n [APIErrorCode.ServiceUnavailable]: true,\n [APIErrorCode.GatewayTimeout]: true,\n}\n\n/**\n * A response from the API indicating a problem.\n * Use the `code` property to handle various kinds of errors. All its possible values are in `APIErrorCode`.\n */\nexport class APIResponseError extends HTTPResponseError<APIErrorCode> {\n readonly name = \"APIResponseError\"\n readonly request_id: string | undefined\n\n static isAPIResponseError(error: unknown): error is APIResponseError {\n return isNotionClientErrorWithCode(error, apiErrorCodes)\n }\n}\n\nexport function buildRequestError(\n response: SupportedResponse,\n bodyText: string\n): APIResponseError | UnknownHTTPResponseError {\n const apiErrorResponseBody = parseAPIErrorResponseBody(bodyText)\n if (apiErrorResponseBody !== undefined) {\n return new APIResponseError({\n code: apiErrorResponseBody.code,\n message: apiErrorResponseBody.message,\n headers: response.headers,\n status: response.status,\n rawBodyText: bodyText,\n additional_data: apiErrorResponseBody.additional_data,\n request_id: apiErrorResponseBody.request_id,\n })\n }\n return new UnknownHTTPResponseError({\n message: undefined,\n headers: response.headers,\n status: response.status,\n rawBodyText: bodyText,\n })\n}\n\nfunction parseAPIErrorResponseBody(body: string):\n | {\n code: APIErrorCode\n message: string\n additional_data: AdditionalData | undefined\n request_id: string | undefined\n }\n | undefined {\n if (typeof body !== \"string\") {\n return\n }\n\n let parsed: unknown\n try {\n parsed = JSON.parse(body)\n } catch (parseError) {\n return\n }\n\n if (\n !isObject(parsed) ||\n typeof parsed[\"message\"] !== \"string\" ||\n !isAPIErrorCode(parsed[\"code\"])\n ) {\n return\n }\n\n const additional_data = parsed[\"additional_data\"] as\n | AdditionalData\n | undefined\n const request_id = parsed[\"request_id\"] as string | undefined\n\n return {\n ...parsed,\n code: parsed[\"code\"],\n message: parsed[\"message\"],\n additional_data,\n request_id,\n }\n}\n\nfunction isAPIErrorCode(code: unknown): code is APIErrorCode {\n return typeof code === \"string\" && code in apiErrorCodes\n}\n"]}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":";;;AAyEA,kDAIC;AA6ED,kDAwBC;AAuDD,kDAaC;AAgED,8CAsBC;AA3UD,mCAAkC;AAGlC;;GAEG;AACH,IAAY,YAcX;AAdD,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,0DAA0C,CAAA;IAC1C,mDAAmC,CAAA;IACnC,4CAA4B,CAAA;IAC5B,4CAA4B,CAAA;IAC5B,yDAAyC,CAAA;IACzC,kDAAkC,CAAA;IAClC,oDAAoC,CAAA;IACpC,gDAAgC,CAAA;IAChC,6DAA6C,CAAA;IAC7C,oDAAoC,CAAA;IACpC,0DAA0C,CAAA;IAC1C,kDAAkC,CAAA;AACpC,CAAC,EAdW,YAAY,4BAAZ,YAAY,QAcvB;AAED;;GAEG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,qEAA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CAAC;QACD,OAAM;IACR,CAAC;IAED,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAEnC,CAAA;IACb,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAuB,CAAA;IAE7D,OAAO;QACL,GAAG,MAAM;QACT,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC,SAAS,CAAC;QAC1B,eAAe;QACf,UAAU;KACX,CAAA;AACH,CAAC;AAED,SAAS,cAAc,CAAC,IAAa;IACnC,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,aAAa,CAAA;AAC1D,CAAC","sourcesContent":["import { SupportedResponse } from \"./fetch-types\"\nimport { isObject } from \"./utils\"\nimport { Assert } from \"./type-utils\"\n\n/**\n * Error codes returned in responses from the API.\n */\nexport enum APIErrorCode {\n Unauthorized = \"unauthorized\",\n RestrictedResource = \"restricted_resource\",\n ObjectNotFound = \"object_not_found\",\n RateLimited = \"rate_limited\",\n InvalidJSON = \"invalid_json\",\n InvalidRequestURL = \"invalid_request_url\",\n InvalidRequest = \"invalid_request\",\n ValidationError = \"validation_error\",\n ConflictError = \"conflict_error\",\n InternalServerError = \"internal_server_error\",\n ServiceOverload = \"service_overload\",\n ServiceUnavailable = \"service_unavailable\",\n GatewayTimeout = \"gateway_timeout\",\n}\n\n/**\n * Error codes generated for client errors.\n */\nexport enum ClientErrorCode {\n RequestTimeout = \"notionhq_client_request_timeout\",\n ResponseError = \"notionhq_client_response_error\",\n InvalidPathParameter = \"notionhq_client_invalid_path_parameter\",\n}\n\n/**\n * Error codes on errors thrown by the `Client`.\n */\nexport type NotionErrorCode = APIErrorCode | ClientErrorCode\n\n/**\n * Base error type.\n */\nabstract class NotionClientErrorBase<\n Code extends NotionErrorCode,\n> extends Error {\n abstract code: Code\n}\n\n/**\n * Error type that encompasses all the kinds of errors that the Notion client will throw.\n */\nexport type NotionClientError =\n | RequestTimeoutError\n | UnknownHTTPResponseError\n | APIResponseError\n | InvalidPathParameterError\n\n// Assert that NotionClientError's `code` property is a narrow type.\n// This prevents us from accidentally regressing to `string`-typed name field.\ntype _assertCodeIsNarrow = Assert<NotionErrorCode, NotionClientError[\"code\"]>\n\n// Assert that the type of `name` in NotionErrorCode is a narrow type.\n// This prevents us from accidentally regressing to `string`-typed name field.\ntype _assertNameIsNarrow = Assert<\n | \"RequestTimeoutError\"\n | \"UnknownHTTPResponseError\"\n | \"APIResponseError\"\n | \"InvalidPathParameterError\",\n NotionClientError[\"name\"]\n>\n\n/**\n * @param error any value, usually a caught error.\n * @returns `true` if error is a `NotionClientError`.\n */\nexport function isNotionClientError(\n error: unknown\n): error is NotionClientError {\n return isObject(error) && error instanceof NotionClientErrorBase\n}\n\n/**\n * Narrows down the types of a NotionClientError.\n * @param error any value, usually a caught error.\n * @param codes an object mapping from possible error codes to `true`\n * @returns `true` if error is a `NotionClientError` with a code in `codes`.\n */\nfunction isNotionClientErrorWithCode<Code extends NotionErrorCode>(\n error: unknown,\n codes: { [C in Code]: true }\n): error is NotionClientError & { code: Code } {\n return isNotionClientError(error) && error.code in codes\n}\n\n/**\n * Error thrown by the client if a request times out.\n */\nexport class RequestTimeoutError extends NotionClientErrorBase<ClientErrorCode.RequestTimeout> {\n readonly code = ClientErrorCode.RequestTimeout\n readonly name = \"RequestTimeoutError\"\n\n constructor(message = \"Request to Notion API has timed out\") {\n super(message)\n }\n\n static isRequestTimeoutError(error: unknown): error is RequestTimeoutError {\n return isNotionClientErrorWithCode(error, {\n [ClientErrorCode.RequestTimeout]: true,\n })\n }\n\n static rejectAfterTimeout<T>(\n promise: Promise<T>,\n timeoutMS: number\n ): Promise<T> {\n return new Promise<T>((resolve, reject) => {\n const timeoutId = setTimeout(() => {\n reject(new RequestTimeoutError())\n }, timeoutMS)\n\n promise\n .then(resolve)\n .catch(reject)\n .then(() => clearTimeout(timeoutId))\n })\n }\n}\n\n/**\n * Error thrown when a path parameter contains invalid characters such as\n * path traversal sequences (..) that could alter the intended API endpoint.\n */\nexport class InvalidPathParameterError extends NotionClientErrorBase<ClientErrorCode.InvalidPathParameter> {\n readonly code = ClientErrorCode.InvalidPathParameter\n readonly name = \"InvalidPathParameterError\"\n\n constructor(\n message = \"Path parameter contains invalid characters that could alter the request path\"\n ) {\n super(message)\n }\n\n static isInvalidPathParameterError(\n error: unknown\n ): error is InvalidPathParameterError {\n return isNotionClientErrorWithCode(error, {\n [ClientErrorCode.InvalidPathParameter]: true,\n })\n }\n}\n\n/**\n * Validates that a request path does not contain path traversal sequences.\n * Throws InvalidPathParameterError if the path contains \"..\" segments,\n * including URL-encoded variants like %2e%2e.\n */\nexport function validateRequestPath(path: string): void {\n // Check for literal path traversal\n if (path.includes(\"..\")) {\n throw new InvalidPathParameterError(\n `Request path \"${path}\" contains path traversal sequence \"..\"`\n )\n }\n\n // Check for URL-encoded path traversal (%2e = '.')\n // Only decode if path contains potential encoded dots\n if (/%2e/i.test(path)) {\n let decoded: string\n try {\n decoded = decodeURIComponent(path)\n } catch {\n // Invalid percent encoding - not a traversal concern\n return\n }\n if (decoded.includes(\"..\")) {\n throw new InvalidPathParameterError(\n `Request path \"${path}\" contains encoded path traversal sequence`\n )\n }\n }\n}\n\ntype HTTPResponseErrorCode = ClientErrorCode.ResponseError | APIErrorCode\n\ntype AdditionalData = Record<string, string | string[]>\n\nclass HTTPResponseError<\n Code extends HTTPResponseErrorCode,\n> extends NotionClientErrorBase<Code> {\n readonly name: string = \"HTTPResponseError\"\n readonly code: Code\n readonly status: number\n readonly headers: SupportedResponse[\"headers\"]\n readonly body: string\n readonly additional_data: AdditionalData | undefined\n readonly request_id: string | undefined\n\n constructor(args: {\n code: Code\n status: number\n message: string\n headers: SupportedResponse[\"headers\"]\n rawBodyText: string\n additional_data: AdditionalData | undefined\n request_id: string | undefined\n }) {\n super(args.message)\n const { code, status, headers, rawBodyText, additional_data, request_id } =\n args\n this.code = code\n this.status = status\n this.headers = headers\n this.body = rawBodyText\n this.additional_data = additional_data\n this.request_id = request_id\n }\n}\n\nconst httpResponseErrorCodes: { [C in HTTPResponseErrorCode]: true } = {\n [ClientErrorCode.ResponseError]: true,\n [APIErrorCode.Unauthorized]: true,\n [APIErrorCode.RestrictedResource]: true,\n [APIErrorCode.ObjectNotFound]: true,\n [APIErrorCode.RateLimited]: true,\n [APIErrorCode.InvalidJSON]: true,\n [APIErrorCode.InvalidRequestURL]: true,\n [APIErrorCode.InvalidRequest]: true,\n [APIErrorCode.ValidationError]: true,\n [APIErrorCode.ConflictError]: true,\n [APIErrorCode.InternalServerError]: true,\n [APIErrorCode.ServiceOverload]: true,\n [APIErrorCode.ServiceUnavailable]: true,\n [APIErrorCode.GatewayTimeout]: true,\n}\n\nexport function isHTTPResponseError(\n error: unknown\n): error is UnknownHTTPResponseError | APIResponseError {\n if (!isNotionClientErrorWithCode(error, httpResponseErrorCodes)) {\n return false\n }\n\n type _assert = Assert<\n UnknownHTTPResponseError | APIResponseError,\n typeof error\n >\n\n return true\n}\n\n/**\n * Error thrown if an API call responds with an unknown error code, or does not respond with\n * a property-formatted error.\n */\nexport class UnknownHTTPResponseError extends HTTPResponseError<ClientErrorCode.ResponseError> {\n readonly name = \"UnknownHTTPResponseError\"\n\n constructor(args: {\n status: number\n message: string | undefined\n headers: SupportedResponse[\"headers\"]\n rawBodyText: string\n }) {\n super({\n ...args,\n code: ClientErrorCode.ResponseError,\n message:\n args.message ??\n `Request to Notion API failed with status: ${args.status}`,\n additional_data: undefined,\n request_id: undefined,\n })\n }\n\n static isUnknownHTTPResponseError(\n error: unknown\n ): error is UnknownHTTPResponseError {\n return isNotionClientErrorWithCode(error, {\n [ClientErrorCode.ResponseError]: true,\n })\n }\n}\n\nconst apiErrorCodes: { [C in APIErrorCode]: true } = {\n [APIErrorCode.Unauthorized]: true,\n [APIErrorCode.RestrictedResource]: true,\n [APIErrorCode.ObjectNotFound]: true,\n [APIErrorCode.RateLimited]: true,\n [APIErrorCode.InvalidJSON]: true,\n [APIErrorCode.InvalidRequestURL]: true,\n [APIErrorCode.InvalidRequest]: true,\n [APIErrorCode.ValidationError]: true,\n [APIErrorCode.ConflictError]: true,\n [APIErrorCode.InternalServerError]: true,\n [APIErrorCode.ServiceOverload]: true,\n [APIErrorCode.ServiceUnavailable]: true,\n [APIErrorCode.GatewayTimeout]: true,\n}\n\n/**\n * A response from the API indicating a problem.\n * Use the `code` property to handle various kinds of errors. All its possible values are in `APIErrorCode`.\n */\nexport class APIResponseError extends HTTPResponseError<APIErrorCode> {\n readonly name = \"APIResponseError\"\n readonly request_id: string | undefined\n\n static isAPIResponseError(error: unknown): error is APIResponseError {\n return isNotionClientErrorWithCode(error, apiErrorCodes)\n }\n}\n\nexport function buildRequestError(\n response: SupportedResponse,\n bodyText: string\n): APIResponseError | UnknownHTTPResponseError {\n const apiErrorResponseBody = parseAPIErrorResponseBody(bodyText)\n if (apiErrorResponseBody !== undefined) {\n return new APIResponseError({\n code: apiErrorResponseBody.code,\n message: apiErrorResponseBody.message,\n headers: response.headers,\n status: response.status,\n rawBodyText: bodyText,\n additional_data: apiErrorResponseBody.additional_data,\n request_id: apiErrorResponseBody.request_id,\n })\n }\n return new UnknownHTTPResponseError({\n message: undefined,\n headers: response.headers,\n status: response.status,\n rawBodyText: bodyText,\n })\n}\n\nfunction parseAPIErrorResponseBody(body: string):\n | {\n code: APIErrorCode\n message: string\n additional_data: AdditionalData | undefined\n request_id: string | undefined\n }\n | undefined {\n if (typeof body !== \"string\") {\n return\n }\n\n let parsed: unknown\n try {\n parsed = JSON.parse(body)\n } catch (parseError) {\n return\n }\n\n if (\n !isObject(parsed) ||\n typeof parsed[\"message\"] !== \"string\" ||\n !isAPIErrorCode(parsed[\"code\"])\n ) {\n return\n }\n\n const additional_data = parsed[\"additional_data\"] as\n | AdditionalData\n | undefined\n const request_id = parsed[\"request_id\"] as string | undefined\n\n return {\n ...parsed,\n code: parsed[\"code\"],\n message: parsed[\"message\"],\n additional_data,\n request_id,\n }\n}\n\nfunction isAPIErrorCode(code: unknown): code is APIErrorCode {\n return typeof code === \"string\" && code in apiErrorCodes\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { BlockObjectResponse, CommentObjectResponse, DatabaseObjectResponse, DataSourceObjectResponse, DataSourceViewObjectResponse, EquationRichTextItemResponse, ListDataSourceTemplatesResponse, MentionRichTextItemResponse, PageObjectResponse, PartialBlockObjectResponse, PartialCommentObjectResponse, PartialDatabaseObjectResponse, PartialDataSourceObjectResponse, PartialDataSourceViewObjectResponse, PartialPageObjectResponse, PartialUserObjectResponse, RichTextItemResponse, RichTextItemResponseCommon, TextRichTextItemResponse, UserObjectResponse } from "./api-endpoints";
1
+ import { BlockObjectResponse, CommentObjectResponse, DatabaseObjectResponse, DataSourceObjectResponse, DataSourceViewObjectResponse, EquationRichTextItemResponse, GroupFilterOperatorArray, ListDataSourceTemplatesResponse, MentionRichTextItemResponse, PageObjectResponse, PartialBlockObjectResponse, PartialCommentObjectResponse, PartialDatabaseObjectResponse, PartialDataSourceObjectResponse, PartialDataSourceViewObjectResponse, PartialPageObjectResponse, PartialUserObjectResponse, PropertyFilter, QueryDataSourceParameters, QueryDataSourceResponse, RichTextItemResponse, RichTextItemResponseCommon, TextRichTextItemResponse, TimestampFilter, UserObjectResponse } from "./api-endpoints";
2
2
  import type Client from "./Client";
3
3
  type PaginatedArgs = {
4
- start_cursor?: string;
4
+ start_cursor?: string | null;
5
5
  };
6
6
  type PaginatedList<T> = {
7
7
  object: "list";
@@ -87,6 +87,89 @@ export declare function iterateDataSourceTemplates(client: Client, args: ListDat
87
87
  * @param args Arguments including the data_source_id and optional start_cursor.
88
88
  */
89
89
  export declare function collectDataSourceTemplates(client: Client, args: ListDataSourceTemplatesArgs): Promise<DataSourceTemplate[]>;
90
+ type DataSourceRow = QueryDataSourceResponse["results"][number];
91
+ /**
92
+ * A filter the full-query helpers can combine with a created_time window bound.
93
+ *
94
+ * A top-level `or` filter is intentionally excluded: the helpers add a
95
+ * created_time lower bound with `and`, and Notion only supports two levels of
96
+ * filter nesting, so an `or` at the root leaves no room for the bound. Express
97
+ * such queries as an `and` group, or run the helper once per `or` branch and
98
+ * merge the results.
99
+ */
100
+ export type FullDataSourceQueryFilter = PropertyFilter | TimestampFilter | {
101
+ and: GroupFilterOperatorArray;
102
+ };
103
+ /**
104
+ * Arguments for the full-query helpers. The same as `dataSources.query`, minus
105
+ * the fields the helper controls: `start_cursor` (pagination is automatic) and
106
+ * `sorts` (the helper sorts by created_time to partition). `filter` is narrowed
107
+ * to {@link FullDataSourceQueryFilter}.
108
+ */
109
+ export type FullDataSourceQueryArgs = Omit<QueryDataSourceParameters, "start_cursor" | "sorts" | "filter"> & {
110
+ filter?: FullDataSourceQueryFilter;
111
+ };
112
+ /**
113
+ * Iterate over every row of a data source, including rows past the per-query
114
+ * result limit that `dataSources.query` enforces on large data sources.
115
+ *
116
+ * A single query (one filter and sort) returns at most a fixed number of rows
117
+ * (10,000 by default). Once that limit is reached, `has_more` becomes `false`
118
+ * and the response carries `request_status.type === "incomplete"`. Plain
119
+ * pagination such as {@link iteratePaginatedAPI} stops there and silently
120
+ * misses the rest of the data source.
121
+ *
122
+ * This helper works around the limit by partitioning the data source into
123
+ * created_time windows. It sorts by created_time ascending; whenever a window
124
+ * reaches the limit, it starts a fresh query from the last row's created_time.
125
+ * Each fresh query has a different filter, so it gets its own result budget.
126
+ * Rows that share a boundary timestamp are de-duplicated by id, so every row is
127
+ * yielded exactly once.
128
+ *
129
+ * created_time is used because it never changes. last_edited_time would shift
130
+ * rows between windows as they are edited, causing gaps or duplicates.
131
+ *
132
+ * Throws if a single created_time value holds more rows than the limit, since
133
+ * the window cannot be narrowed by time alone. Add a filter in that case so
134
+ * each window stays under the limit.
135
+ *
136
+ * Example (given a notion Client called `notion`):
137
+ *
138
+ * ```
139
+ * for await (const row of iterateAllDataSourceRows(notion, {
140
+ * data_source_id: dataSourceId,
141
+ * })) {
142
+ * // Do something with row.
143
+ * }
144
+ * ```
145
+ *
146
+ * @param client A Notion client instance.
147
+ * @param args Query arguments. `start_cursor` and `sorts` are managed by the
148
+ * helper; `filter` is combined with the created_time window bound.
149
+ */
150
+ export declare function iterateAllDataSourceRows(client: Client, args: FullDataSourceQueryArgs): AsyncIterableIterator<DataSourceRow>;
151
+ /**
152
+ * Collect every row of a data source into an in-memory array, including rows
153
+ * past the per-query result limit. See {@link iterateAllDataSourceRows} for how
154
+ * the limit is handled.
155
+ *
156
+ * Before using this, check that the full data source fits in memory. For very
157
+ * large data sources, prefer {@link iterateAllDataSourceRows} and process rows
158
+ * as they stream.
159
+ *
160
+ * Example (given a notion Client called `notion`):
161
+ *
162
+ * ```
163
+ * const rows = await collectAllDataSourceRows(notion, {
164
+ * data_source_id: dataSourceId,
165
+ * })
166
+ * // Do something with rows.
167
+ * ```
168
+ *
169
+ * @param client A Notion client instance.
170
+ * @param args Query arguments. See {@link iterateAllDataSourceRows}.
171
+ */
172
+ export declare function collectAllDataSourceRows(client: Client, args: FullDataSourceQueryArgs): Promise<DataSourceRow[]>;
90
173
  type ObjectResponse = PageObjectResponse | PartialPageObjectResponse | DataSourceObjectResponse | PartialDataSourceObjectResponse | DatabaseObjectResponse | PartialDatabaseObjectResponse | BlockObjectResponse | PartialBlockObjectResponse;
91
174
  /**
92
175
  * @returns `true` if `response` is a full `BlockObjectResponse`.
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,yBAAyB,EACzB,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,iBAAiB,CAAA;AACxB,OA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