@notionhq/client 5.20.0 → 5.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,164 @@
1
+ import type { IdResponse, PartialUserObjectResponse, RichTextItemResponse } from "./common";
2
+ type QueryMeetingNotesBodyParameters = {
3
+ filter?: {
4
+ operator: "and" | "or";
5
+ filters?: Array<{
6
+ operator: "and" | "or";
7
+ filters: Array<{
8
+ property: string;
9
+ filter: {
10
+ operator: string;
11
+ value?: {
12
+ type: "relative" | "exact";
13
+ value: string | {
14
+ type: "date" | "datetime";
15
+ start_date: string;
16
+ start_time?: string;
17
+ time_zone?: string;
18
+ };
19
+ } | {
20
+ type: "relative" | "exact";
21
+ value: string | {
22
+ type: "daterange";
23
+ start_date: string;
24
+ end_date?: string;
25
+ };
26
+ direction?: "past" | "future";
27
+ unit?: "day" | "week" | "month" | "year";
28
+ count?: number;
29
+ } | {
30
+ type: "exact";
31
+ value: string;
32
+ } | Array<{
33
+ type: "exact";
34
+ value: {
35
+ table: "notion_user";
36
+ id: string;
37
+ };
38
+ }>;
39
+ };
40
+ } | {
41
+ operator: "and" | "or";
42
+ filters: Array<{
43
+ property: string;
44
+ filter: {
45
+ operator: string;
46
+ value?: {
47
+ type: "relative" | "exact";
48
+ value: string | {
49
+ type: "date" | "datetime";
50
+ start_date: string;
51
+ start_time?: string;
52
+ time_zone?: string;
53
+ };
54
+ } | {
55
+ type: "relative" | "exact";
56
+ value: string | {
57
+ type: "daterange";
58
+ start_date: string;
59
+ end_date?: string;
60
+ };
61
+ direction?: "past" | "future";
62
+ unit?: "day" | "week" | "month" | "year";
63
+ count?: number;
64
+ } | {
65
+ type: "exact";
66
+ value: string;
67
+ } | Array<{
68
+ type: "exact";
69
+ value: {
70
+ table: "notion_user";
71
+ id: string;
72
+ };
73
+ }>;
74
+ };
75
+ }>;
76
+ }>;
77
+ } | {
78
+ property: string;
79
+ filter: {
80
+ operator: string;
81
+ value?: {
82
+ type: "relative" | "exact";
83
+ value: string | {
84
+ type: "date" | "datetime";
85
+ start_date: string;
86
+ start_time?: string;
87
+ time_zone?: string;
88
+ };
89
+ } | {
90
+ type: "relative" | "exact";
91
+ value: string | {
92
+ type: "daterange";
93
+ start_date: string;
94
+ end_date?: string;
95
+ };
96
+ direction?: "past" | "future";
97
+ unit?: "day" | "week" | "month" | "year";
98
+ count?: number;
99
+ } | {
100
+ type: "exact";
101
+ value: string;
102
+ } | Array<{
103
+ type: "exact";
104
+ value: {
105
+ table: "notion_user";
106
+ id: string;
107
+ };
108
+ }>;
109
+ };
110
+ }>;
111
+ };
112
+ sort?: Array<{
113
+ property: "title" | "attendees" | "created_time" | "created_by" | "last_edited_time" | "last_edited_by";
114
+ direction: "ascending" | "descending";
115
+ }>;
116
+ limit?: number;
117
+ };
118
+ export type QueryMeetingNotesParameters = QueryMeetingNotesBodyParameters;
119
+ export type QueryMeetingNotesResponse = {
120
+ results: Array<{
121
+ object: "block";
122
+ id: IdResponse;
123
+ type: "meeting_notes";
124
+ meeting_notes: {
125
+ title?: Array<RichTextItemResponse>;
126
+ status?: "transcription_not_started" | "transcription_paused" | "transcription_in_progress" | "summary_in_progress" | "notes_ready";
127
+ children?: {
128
+ summary_block_id?: IdResponse;
129
+ notes_block_id?: IdResponse;
130
+ transcript_block_id?: IdResponse;
131
+ };
132
+ calendar_event?: {
133
+ start_time: string;
134
+ end_time: string;
135
+ attendees?: Array<IdResponse>;
136
+ };
137
+ recording?: {
138
+ start_time?: string;
139
+ end_time?: string;
140
+ };
141
+ };
142
+ created_time: string;
143
+ last_edited_time: string;
144
+ created_by: PartialUserObjectResponse;
145
+ last_edited_by: PartialUserObjectResponse;
146
+ has_children: boolean;
147
+ in_trash: boolean;
148
+ /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
149
+ archived: boolean;
150
+ }>;
151
+ has_more: boolean;
152
+ };
153
+ /**
154
+ * Query meeting notes
155
+ */
156
+ export declare const queryMeetingNotes: {
157
+ readonly method: "post";
158
+ readonly pathParams: readonly [];
159
+ readonly queryParams: readonly [];
160
+ readonly bodyParams: readonly ["filter", "sort", "limit"];
161
+ readonly path: () => string;
162
+ };
163
+ export {};
164
+ //# sourceMappingURL=meeting-notes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-notes.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/meeting-notes.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,UAAU,EACV,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,UAAU,CAAA;AAEjB,KAAK,+BAA+B,GAAG;IAIrC,MAAM,CAAC,EAAE;QAEP,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAA;QAEtB,OAAO,CAAC,EAAE,KAAK,CACX;YAEE,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAA;YAEtB,OAAO,EAAE,KAAK,CACV;gBAEE,QAAQ,EAAE,MAAM,CAAA;gBAChB,MAAM,EAAE;oBAEN,QAAQ,EAAE,MAAM,CAAA;oBAEhB,KAAK,CAAC,EACF;wBACE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAA;wBAC1B,KAAK,EACD,MAAM,GACN;4BACE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;4BACzB,UAAU,EAAE,MAAM,CAAA;4BAClB,UAAU,CAAC,EAAE,MAAM,CAAA;4BACnB,SAAS,CAAC,EAAE,MAAM,CAAA;yBACnB,CAAA;qBACN,GACD;wBACE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAA;wBAC1B,KAAK,EACD,MAAM,GACN;4BACE,IAAI,EAAE,WAAW,CAAA;4BACjB,UAAU,EAAE,MAAM,CAAA;4BAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;yBAClB,CAAA;wBACL,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;wBAC7B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA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;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;yBAMlB,MAAM;CACR,CAAA"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // cspell:disable-file
3
+ // Note: This is a generated file. DO NOT EDIT!
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.queryMeetingNotes = void 0;
6
+ /**
7
+ * Query meeting notes
8
+ */
9
+ exports.queryMeetingNotes = {
10
+ method: "post",
11
+ pathParams: [],
12
+ queryParams: [],
13
+ bodyParams: ["filter", "sort", "limit"],
14
+ path: () => `blocks/meeting_notes/query`,
15
+ };
16
+ //# sourceMappingURL=meeting-notes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-notes.js","sourceRoot":"","sources":["../../../src/api-endpoints/meeting-notes.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AAoP/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;IAEvC,IAAI,EAAE,GAAW,EAAE,CAAC,4BAA4B;CACxC,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type {\n IdResponse,\n PartialUserObjectResponse,\n RichTextItemResponse,\n} from \"./common\"\n\ntype QueryMeetingNotesBodyParameters = {\n // Optional filter for querying meeting notes. Supports combinator (and/or) and property\n // filters on title, attendees, created_time, created_by, last_edited_time,\n // last_edited_by.\n filter?: {\n // Operator for combinator filters.\n operator: \"and\" | \"or\"\n // Nested filters; each may be a combinator (and/or) or property filter.\n filters?: Array<\n | {\n // Operator for nested combinator filters.\n operator: \"and\" | \"or\"\n // Nested filters for combinator filters.\n filters: Array<\n | {\n // Property name.\n property: string\n filter: {\n // Operator.\n operator: string\n // Value for the operator.\n value?:\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n }\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n }\n | {\n type: \"exact\"\n // The text value to filter on.\n value: string\n }\n | Array<{\n type: \"exact\"\n value: { table: \"notion_user\"; id: string }\n }>\n }\n }\n | {\n // Operator for nested combinator filters.\n operator: \"and\" | \"or\"\n filters: Array<{\n // Property name.\n property: string\n filter: {\n // Operator.\n operator: string\n // Value for the operator.\n value?:\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n }\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n }\n | {\n type: \"exact\"\n // The text value to filter on.\n value: string\n }\n | Array<{\n type: \"exact\"\n value: { table: \"notion_user\"; id: string }\n }>\n }\n }>\n }\n >\n }\n | {\n // Property name.\n property: string\n filter: {\n // Operator.\n operator: string\n // Value for the operator.\n value?:\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n }\n | {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n }\n | {\n type: \"exact\"\n // The text value to filter on.\n value: string\n }\n | Array<{\n type: \"exact\"\n value: { table: \"notion_user\"; id: string }\n }>\n }\n }\n >\n }\n // Optional sort order for the results. Each entry specifies a property name and\n // direction.\n sort?: Array<{\n // Property name to sort by.\n property:\n | \"title\"\n | \"attendees\"\n | \"created_time\"\n | \"created_by\"\n | \"last_edited_time\"\n | \"last_edited_by\"\n // Sort direction. Must be 'ascending' or 'descending'.\n direction: \"ascending\" | \"descending\"\n }>\n // Maximum number of results to return. Defaults to 50.\n limit?: number\n}\n\nexport type QueryMeetingNotesParameters = QueryMeetingNotesBodyParameters\n\nexport type QueryMeetingNotesResponse = {\n // Meeting note transcription block objects.\n results: Array<{\n // Always \"block\".\n object: \"block\"\n // The ID of the meeting note block.\n id: IdResponse\n // Always \"meeting_notes\".\n type: \"meeting_notes\"\n // Meeting note content fields.\n meeting_notes: {\n // Title of the meeting note as rich text.\n title?: Array<RichTextItemResponse>\n // Current processing status of the meeting note transcription.\n status?:\n | \"transcription_not_started\"\n | \"transcription_paused\"\n | \"transcription_in_progress\"\n | \"summary_in_progress\"\n | \"notes_ready\"\n // Block IDs for each tab (summary, notes, transcript).\n children?: {\n // Block ID of the AI summary tab.\n summary_block_id?: IdResponse\n // Block ID of the meeting notes tab.\n notes_block_id?: IdResponse\n // Block ID of the transcript tab.\n transcript_block_id?: IdResponse\n }\n // Calendar event metadata associated with this meeting note.\n calendar_event?: {\n // ISO-8601 start time of the calendar event.\n start_time: string\n // ISO-8601 end time of the calendar event.\n end_time: string\n // List of attendee user IDs.\n attendees?: Array<IdResponse>\n }\n // Start and end times of the actual recording.\n recording?: {\n // ISO-8601 timestamp when the recording started.\n start_time?: string\n // ISO-8601 timestamp when the recording ended.\n end_time?: string\n }\n }\n // ISO-8601 timestamp when this meeting note was created.\n created_time: string\n // ISO-8601 timestamp when this meeting note was last edited.\n last_edited_time: string\n // User who created this meeting note.\n created_by: PartialUserObjectResponse\n // User who last edited this meeting note.\n last_edited_by: PartialUserObjectResponse\n // Whether this block has child blocks.\n has_children: boolean\n // Whether this meeting note is in the trash.\n in_trash: boolean\n /** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */\n archived: boolean\n }>\n // Whether additional results exist beyond the returned limit.\n has_more: boolean\n}\n\n/**\n * Query meeting notes\n */\nexport const queryMeetingNotes = {\n method: \"post\",\n pathParams: [],\n queryParams: [],\n bodyParams: [\"filter\", \"sort\", \"limit\"],\n\n path: (): string => `blocks/meeting_notes/query`,\n} as const\n"]}
@@ -287,7 +287,7 @@ type WebhookPageEntity = {
287
287
  };
288
288
  type WebhookParentBlock = {
289
289
  id: IdResponse;
290
- type: "space" | "block" | "page" | "database" | "team";
290
+ type: "space" | "block" | "page" | "database" | "team" | "agent";
291
291
  data_source_id?: IdResponse;
292
292
  };
293
293
  type WebhookUpdatedBlock = {
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/webhooks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAEvD,MAAM,MAAM,kBAAkB,GAAG;IAE/B,EAAE,EAAE,MAAM,CAAA;IAEV,SAAS,EAAE,MAAM,CAAA;IAEjB,YAAY,EAAE,UAAU,CAAA;IAExB,cAAc,EAAE,MAAM,CAAA;IAEtB,eAAe,EAAE,UAAU,CAAA;IAE3B,cAAc,EAAE,UAAU,CAAA;IAG1B,OAAO,EAAE,KAAK,CACV;QAEE,EAAE,EAAE,UAAU,CAAA;QAEd,IAAI,EAAE,QAAQ,CAAA;KACf,GACD;QAEE,EAAE,EAAE,UAAU,CAAA;QAEd,IAAI,EAAE,KAAK,CAAA;KACZ,CACJ,CAAA;IAED,cAAc,EAAE,MAAM,CAAA;IAEtB,WAAW,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,CAAA;IAGvD,aAAa,CAAC,EAAE,KAAK,CACjB;QAEE,EAAE,EAAE,UAAU,CAAA;QAEd,IAAI,EAAE,QAAQ,CAAA;KACf,GACD;QAEE,EAAE,EAAE,UAAU,CAAA;QAEd,IAAI,EAAE,KAAK,CAAA;KACZ,CACJ,CAAA;CACF,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,k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,MAAM,CAAA;IAEZ,EAAE,EAAE,UAAU,CAAA;CACf,CAAA;AAED,KAAK,kBAAkB,GAAG;IAExB,EAAE,EAAE,UAAU,CAAA;IAEd,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAA;IAEhE,cAAc,CAAC,EAAE,UAAU,CAAA;CAC5B,CAAA;AAED,KAAK,mBAAmB,GAAG;IAEzB,EAAE,EAAE,UAAU,CAAA;IAEd,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAA;CACpC,CAAA;AAED,KAAK,iBAAiB,GAAG;IAEvB,EAAE,EAAE,UAAU,CAAA;IAEd,IAAI,EAAE,MAAM,CAAA;CACb,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/api-endpoints/webhooks.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { EmptyObject, IdResponse } from \"./common\"\n\nexport type BaseWebhookPayload = {\n // Unique identifier for this webhook event.\n id: string\n // ISO 8601 timestamp of when the event occurred. Can be used to order events.\n timestamp: string\n // The ID of the workspace where the event originated.\n workspace_id: IdResponse\n // The name of the workspace where the event originated.\n workspace_name: string\n // The ID of the webhook subscription.\n subscription_id: IdResponse\n // The ID of the integration the subscription is set up with.\n integration_id: IdResponse\n // The users or bots that performed the action. Typically an array of length 1; can be\n // more for aggregated events.\n authors: Array<\n | {\n // The ID of the user.\n id: IdResponse\n // Always `person`\n type: \"person\"\n }\n | {\n // The ID of the bot.\n id: IdResponse\n // Always `bot`\n type: \"bot\"\n }\n >\n // The delivery attempt number (1-8) of the current event delivery.\n attempt_number: number\n // The Notion API version that was used to render this webhook event's shape.\n api_version: \"2022-06-28\" | \"2025-09-03\" | \"2026-03-11\"\n // The users or bots who own the bot connection to the `integration_id` and have access\n // to the webhook's `entity`. Only present for public integrations.\n accessible_by?: Array<\n | {\n // The ID of the user.\n id: IdResponse\n // Always `person`\n type: \"person\"\n }\n | {\n // The ID of the bot.\n id: IdResponse\n // Always `bot`\n type: \"bot\"\n }\n >\n}\n\nexport type CommentCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `comment.created`\n type: \"comment.created\"\n // The object that triggered the event.\n entity: WebhookCommentEntity\n // Additional event-specific data.\n data: {\n // The parent of the comment (the page or block the comment is attached to).\n parent: WebhookExternalBlock\n // The ID of the page containing the comment.\n page_id: IdResponse\n }\n}\n\nexport type CommentDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `comment.deleted`\n type: \"comment.deleted\"\n // The object that triggered the event.\n entity: WebhookCommentEntity\n // Additional event-specific data.\n data: {\n // The parent of the comment (the page or block the comment is attached to).\n parent: WebhookExternalBlock\n // The ID of the page containing the comment.\n page_id: IdResponse\n }\n}\n\nexport type CommentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `comment.updated`\n type: \"comment.updated\"\n // The object that triggered the event.\n entity: WebhookCommentEntity\n // Additional event-specific data.\n data: {\n // The parent of the comment (the page or block the comment is attached to).\n parent: WebhookExternalBlock\n // The ID of the page containing the comment.\n page_id: IdResponse\n }\n}\n\nexport type DataSourceContentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.content_updated`\n type: \"data_source.content_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity whose content was updated.\n parent: WebhookParentBlock\n // The blocks that were updated in this event.\n updated_blocks: Array<WebhookUpdatedBlock>\n }\n}\n\nexport type DataSourceCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.created`\n type: \"data_source.created\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DataSourceDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.deleted`\n type: \"data_source.deleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DataSourceMovedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.moved`\n type: \"data_source.moved\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DataSourceSchemaUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.schema_updated`\n type: \"data_source.schema_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the database whose schema was updated.\n parent: WebhookParentBlock\n // The database properties that were created, updated, or deleted.\n updated_properties?: Array<{\n // The ID of the database property that changed.\n id: string\n // The name of the database property, or `null` if deleted.\n name: string | null\n // The action taken on the property.\n action: \"created\" | \"updated\" | \"deleted\"\n }>\n }\n}\n\nexport type DataSourceUndeletedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.undeleted`\n type: \"data_source.undeleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseContentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `database.content_updated`\n type: \"database.content_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity whose content was updated.\n parent: WebhookParentBlock\n // The blocks that were updated in this event.\n updated_blocks: Array<WebhookUpdatedBlock>\n }\n}\n\nexport type DatabaseCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `database.created`\n type: \"database.created\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `database.deleted`\n type: \"database.deleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseMovedWebhookPayload = BaseWebhookPayload & {\n // Always `database.moved`\n type: \"database.moved\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseSchemaUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `database.schema_updated`\n type: \"database.schema_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the database whose schema was updated.\n parent: WebhookParentBlock\n // The database properties that were created, updated, or deleted.\n updated_properties?: Array<{\n // The ID of the database property that changed.\n id: string\n // The name of the database property, or `null` if deleted.\n name: string | null\n // The action taken on the property.\n action: \"created\" | \"updated\" | \"deleted\"\n }>\n }\n}\n\nexport type DatabaseUndeletedWebhookPayload = BaseWebhookPayload & {\n // Always `database.undeleted`\n type: \"database.undeleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type FileUploadCompletedWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.completed`\n type: \"file_upload.completed\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n}\n\nexport type FileUploadCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.created`\n type: \"file_upload.created\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n}\n\nexport type FileUploadExpiredWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.expired`\n type: \"file_upload.expired\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n}\n\nexport type FileUploadUploadFailedWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.upload_failed`\n type: \"file_upload.upload_failed\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n // Additional event-specific data.\n data: {\n // The result of the file import attempt.\n file_import_result:\n | {\n // Always `success`\n type: \"success\"\n // ISO 8601 timestamp of when the file was imported.\n imported_time: string\n // Empty object indicating success.\n success: EmptyObject\n }\n | {\n // Always `error`\n type: \"error\"\n // ISO 8601 timestamp of when the import was attempted.\n imported_time: string\n // Details about the error.\n error: {\n // The category of the error.\n type:\n | \"validation_error\"\n | \"internal_system_error\"\n | \"download_error\"\n | \"upload_error\"\n // A machine-readable error code.\n code: string\n // A human-readable description of the error.\n message: string\n // The parameter that caused the error, or `null`.\n parameter: string | null\n // The HTTP status code associated with the error, or `null`.\n status_code: number | null\n }\n }\n }\n}\n\nexport type PageContentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `page.content_updated`\n type: \"page.content_updated\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity whose content was updated.\n parent: WebhookParentBlock\n // The blocks that were updated in this event.\n updated_blocks: Array<WebhookUpdatedBlock>\n }\n}\n\nexport type PageCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `page.created`\n type: \"page.created\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `page.deleted`\n type: \"page.deleted\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageLockedWebhookPayload = BaseWebhookPayload & {\n // Always `page.locked`\n type: \"page.locked\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageMovedWebhookPayload = BaseWebhookPayload & {\n // Always `page.moved`\n type: \"page.moved\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PagePropertiesUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `page.properties_updated`\n type: \"page.properties_updated\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the page whose properties were updated.\n parent: WebhookParentBlock\n // The IDs of the properties that were updated.\n updated_properties: Array<string>\n }\n}\n\nexport type PageTranscriptionBlockTranscriptDeletedWebhookPayload =\n BaseWebhookPayload & {\n // Always `page.transcription_block.transcript_deleted`\n type: \"page.transcription_block.transcript_deleted\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The block that contained the deleted transcript.\n target: WebhookExternalBlock\n // The ID of the deleted transcript, or `null` if not available.\n transcript_id: string | null\n }\n }\n\nexport type PageUndeletedWebhookPayload = BaseWebhookPayload & {\n // Always `page.undeleted`\n type: \"page.undeleted\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageUnlockedWebhookPayload = BaseWebhookPayload & {\n // Always `page.unlocked`\n type: \"page.unlocked\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type ViewCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `view.created`\n type: \"view.created\"\n // The object that triggered the event.\n entity: WebhookViewEntity\n // Additional event-specific data.\n data: {\n // The parent of the created view.\n parent: WebhookParentBlock\n // The type of the created view (e.g. `table`, `board`, `list`, `calendar`, `gallery`,\n // `timeline`).\n view_type: string\n }\n}\n\nexport type ViewDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `view.deleted`\n type: \"view.deleted\"\n // The object that triggered the event.\n entity: WebhookViewEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type ViewUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `view.updated`\n type: \"view.updated\"\n // The object that triggered the event.\n entity: WebhookViewEntity\n // Additional event-specific data.\n data: {\n // The parent of the updated view.\n parent: WebhookParentBlock\n // The fields of the view that were updated.\n updated_fields: Array<\"name\" | \"filter\" | \"sorts\" | \"configuration\">\n }\n}\n\ntype WebhookCommentEntity = {\n // Always `comment`\n type: \"comment\"\n // The ID of the comment that triggered the event.\n id: IdResponse\n}\n\ntype WebhookDatabaseEventEntity = {\n // The ID of the database or data source that triggered the event.\n id: IdResponse\n // The type of entity. For linked databases, this is `block`.\n type: \"block\" | \"database\" | \"data_source\"\n}\n\ntype WebhookExternalBlock = {\n // The ID of the parent.\n id: IdResponse\n // The type of the parent.\n type: \"page\" | \"database\" | \"block\"\n}\n\ntype WebhookFileUploadEntity = {\n // Always `file_upload`\n type: \"file_upload\"\n // The ID of the file upload that triggered the event.\n id: IdResponse\n}\n\ntype WebhookPageEntity = {\n // Always `page`\n type: \"page\"\n // The ID of the page that triggered the event.\n id: IdResponse\n}\n\ntype WebhookParentBlock = {\n // The ID of the parent.\n id: IdResponse\n // The type of the parent.\n type: \"space\" | \"block\" | \"page\" | \"database\" | \"team\"\n // The data source ID of the parent, if applicable.\n data_source_id?: IdResponse\n}\n\ntype WebhookUpdatedBlock = {\n // The ID of the updated block.\n id: IdResponse\n // The type of the updated block.\n type: \"page\" | \"database\" | \"block\"\n}\n\ntype WebhookViewEntity = {\n // The ID of the view that triggered the event.\n id: IdResponse\n // Always `view`\n type: \"view\"\n}\n"]}
1
+ {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/api-endpoints/webhooks.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { EmptyObject, IdResponse } from \"./common\"\n\nexport type BaseWebhookPayload = {\n // Unique identifier for this webhook event.\n id: string\n // ISO 8601 timestamp of when the event occurred. Can be used to order events.\n timestamp: string\n // The ID of the workspace where the event originated.\n workspace_id: IdResponse\n // The name of the workspace where the event originated.\n workspace_name: string\n // The ID of the webhook subscription.\n subscription_id: IdResponse\n // The ID of the integration the subscription is set up with.\n integration_id: IdResponse\n // The users or bots that performed the action. Typically an array of length 1; can be\n // more for aggregated events.\n authors: Array<\n | {\n // The ID of the user.\n id: IdResponse\n // Always `person`\n type: \"person\"\n }\n | {\n // The ID of the bot.\n id: IdResponse\n // Always `bot`\n type: \"bot\"\n }\n >\n // The delivery attempt number (1-8) of the current event delivery.\n attempt_number: number\n // The Notion API version that was used to render this webhook event's shape.\n api_version: \"2022-06-28\" | \"2025-09-03\" | \"2026-03-11\"\n // The users or bots who own the bot connection to the `integration_id` and have access\n // to the webhook's `entity`. Only present for public integrations.\n accessible_by?: Array<\n | {\n // The ID of the user.\n id: IdResponse\n // Always `person`\n type: \"person\"\n }\n | {\n // The ID of the bot.\n id: IdResponse\n // Always `bot`\n type: \"bot\"\n }\n >\n}\n\nexport type CommentCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `comment.created`\n type: \"comment.created\"\n // The object that triggered the event.\n entity: WebhookCommentEntity\n // Additional event-specific data.\n data: {\n // The parent of the comment (the page or block the comment is attached to).\n parent: WebhookExternalBlock\n // The ID of the page containing the comment.\n page_id: IdResponse\n }\n}\n\nexport type CommentDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `comment.deleted`\n type: \"comment.deleted\"\n // The object that triggered the event.\n entity: WebhookCommentEntity\n // Additional event-specific data.\n data: {\n // The parent of the comment (the page or block the comment is attached to).\n parent: WebhookExternalBlock\n // The ID of the page containing the comment.\n page_id: IdResponse\n }\n}\n\nexport type CommentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `comment.updated`\n type: \"comment.updated\"\n // The object that triggered the event.\n entity: WebhookCommentEntity\n // Additional event-specific data.\n data: {\n // The parent of the comment (the page or block the comment is attached to).\n parent: WebhookExternalBlock\n // The ID of the page containing the comment.\n page_id: IdResponse\n }\n}\n\nexport type DataSourceContentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.content_updated`\n type: \"data_source.content_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity whose content was updated.\n parent: WebhookParentBlock\n // The blocks that were updated in this event.\n updated_blocks: Array<WebhookUpdatedBlock>\n }\n}\n\nexport type DataSourceCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.created`\n type: \"data_source.created\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DataSourceDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.deleted`\n type: \"data_source.deleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DataSourceMovedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.moved`\n type: \"data_source.moved\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DataSourceSchemaUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.schema_updated`\n type: \"data_source.schema_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the database whose schema was updated.\n parent: WebhookParentBlock\n // The database properties that were created, updated, or deleted.\n updated_properties?: Array<{\n // The ID of the database property that changed.\n id: string\n // The name of the database property, or `null` if deleted.\n name: string | null\n // The action taken on the property.\n action: \"created\" | \"updated\" | \"deleted\"\n }>\n }\n}\n\nexport type DataSourceUndeletedWebhookPayload = BaseWebhookPayload & {\n // Always `data_source.undeleted`\n type: \"data_source.undeleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseContentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `database.content_updated`\n type: \"database.content_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity whose content was updated.\n parent: WebhookParentBlock\n // The blocks that were updated in this event.\n updated_blocks: Array<WebhookUpdatedBlock>\n }\n}\n\nexport type DatabaseCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `database.created`\n type: \"database.created\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `database.deleted`\n type: \"database.deleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseMovedWebhookPayload = BaseWebhookPayload & {\n // Always `database.moved`\n type: \"database.moved\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type DatabaseSchemaUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `database.schema_updated`\n type: \"database.schema_updated\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the database whose schema was updated.\n parent: WebhookParentBlock\n // The database properties that were created, updated, or deleted.\n updated_properties?: Array<{\n // The ID of the database property that changed.\n id: string\n // The name of the database property, or `null` if deleted.\n name: string | null\n // The action taken on the property.\n action: \"created\" | \"updated\" | \"deleted\"\n }>\n }\n}\n\nexport type DatabaseUndeletedWebhookPayload = BaseWebhookPayload & {\n // Always `database.undeleted`\n type: \"database.undeleted\"\n // The object that triggered the event.\n entity: WebhookDatabaseEventEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type FileUploadCompletedWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.completed`\n type: \"file_upload.completed\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n}\n\nexport type FileUploadCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.created`\n type: \"file_upload.created\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n}\n\nexport type FileUploadExpiredWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.expired`\n type: \"file_upload.expired\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n}\n\nexport type FileUploadUploadFailedWebhookPayload = BaseWebhookPayload & {\n // Always `file_upload.upload_failed`\n type: \"file_upload.upload_failed\"\n // The object that triggered the event.\n entity: WebhookFileUploadEntity\n // Additional event-specific data.\n data: {\n // The result of the file import attempt.\n file_import_result:\n | {\n // Always `success`\n type: \"success\"\n // ISO 8601 timestamp of when the file was imported.\n imported_time: string\n // Empty object indicating success.\n success: EmptyObject\n }\n | {\n // Always `error`\n type: \"error\"\n // ISO 8601 timestamp of when the import was attempted.\n imported_time: string\n // Details about the error.\n error: {\n // The category of the error.\n type:\n | \"validation_error\"\n | \"internal_system_error\"\n | \"download_error\"\n | \"upload_error\"\n // A machine-readable error code.\n code: string\n // A human-readable description of the error.\n message: string\n // The parameter that caused the error, or `null`.\n parameter: string | null\n // The HTTP status code associated with the error, or `null`.\n status_code: number | null\n }\n }\n }\n}\n\nexport type PageContentUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `page.content_updated`\n type: \"page.content_updated\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity whose content was updated.\n parent: WebhookParentBlock\n // The blocks that were updated in this event.\n updated_blocks: Array<WebhookUpdatedBlock>\n }\n}\n\nexport type PageCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `page.created`\n type: \"page.created\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `page.deleted`\n type: \"page.deleted\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageLockedWebhookPayload = BaseWebhookPayload & {\n // Always `page.locked`\n type: \"page.locked\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageMovedWebhookPayload = BaseWebhookPayload & {\n // Always `page.moved`\n type: \"page.moved\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PagePropertiesUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `page.properties_updated`\n type: \"page.properties_updated\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the page whose properties were updated.\n parent: WebhookParentBlock\n // The IDs of the properties that were updated.\n updated_properties: Array<string>\n }\n}\n\nexport type PageTranscriptionBlockTranscriptDeletedWebhookPayload =\n BaseWebhookPayload & {\n // Always `page.transcription_block.transcript_deleted`\n type: \"page.transcription_block.transcript_deleted\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The block that contained the deleted transcript.\n target: WebhookExternalBlock\n // The ID of the deleted transcript, or `null` if not available.\n transcript_id: string | null\n }\n }\n\nexport type PageUndeletedWebhookPayload = BaseWebhookPayload & {\n // Always `page.undeleted`\n type: \"page.undeleted\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type PageUnlockedWebhookPayload = BaseWebhookPayload & {\n // Always `page.unlocked`\n type: \"page.unlocked\"\n // The object that triggered the event.\n entity: WebhookPageEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type ViewCreatedWebhookPayload = BaseWebhookPayload & {\n // Always `view.created`\n type: \"view.created\"\n // The object that triggered the event.\n entity: WebhookViewEntity\n // Additional event-specific data.\n data: {\n // The parent of the created view.\n parent: WebhookParentBlock\n // The type of the created view (e.g. `table`, `board`, `list`, `calendar`, `gallery`,\n // `timeline`).\n view_type: string\n }\n}\n\nexport type ViewDeletedWebhookPayload = BaseWebhookPayload & {\n // Always `view.deleted`\n type: \"view.deleted\"\n // The object that triggered the event.\n entity: WebhookViewEntity\n // Additional event-specific data.\n data: {\n // The parent of the entity that triggered the event.\n parent: WebhookParentBlock\n }\n}\n\nexport type ViewUpdatedWebhookPayload = BaseWebhookPayload & {\n // Always `view.updated`\n type: \"view.updated\"\n // The object that triggered the event.\n entity: WebhookViewEntity\n // Additional event-specific data.\n data: {\n // The parent of the updated view.\n parent: WebhookParentBlock\n // The fields of the view that were updated.\n updated_fields: Array<\"name\" | \"filter\" | \"sorts\" | \"configuration\">\n }\n}\n\ntype WebhookCommentEntity = {\n // Always `comment`\n type: \"comment\"\n // The ID of the comment that triggered the event.\n id: IdResponse\n}\n\ntype WebhookDatabaseEventEntity = {\n // The ID of the database or data source that triggered the event.\n id: IdResponse\n // The type of entity. For linked databases, this is `block`.\n type: \"block\" | \"database\" | \"data_source\"\n}\n\ntype WebhookExternalBlock = {\n // The ID of the parent.\n id: IdResponse\n // The type of the parent.\n type: \"page\" | \"database\" | \"block\"\n}\n\ntype WebhookFileUploadEntity = {\n // Always `file_upload`\n type: \"file_upload\"\n // The ID of the file upload that triggered the event.\n id: IdResponse\n}\n\ntype WebhookPageEntity = {\n // Always `page`\n type: \"page\"\n // The ID of the page that triggered the event.\n id: IdResponse\n}\n\ntype WebhookParentBlock = {\n // The ID of the parent.\n id: IdResponse\n // The type of the parent.\n type: \"space\" | \"block\" | \"page\" | \"database\" | \"team\" | \"agent\"\n // The data source ID of the parent, if applicable.\n data_source_id?: IdResponse\n}\n\ntype WebhookUpdatedBlock = {\n // The ID of the updated block.\n id: IdResponse\n // The type of the updated block.\n type: \"page\" | \"database\" | \"block\"\n}\n\ntype WebhookViewEntity = {\n // The ID of the view that triggered the event.\n id: IdResponse\n // Always `view`\n type: \"view\"\n}\n"]}
@@ -13,4 +13,7 @@ export { NotionErrorCode, APIErrorCode, ClientErrorCode, NotionClientError, APIR
13
13
  export type { RetryOptions } from "./Client";
14
14
  export { DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, DEFAULT_MAX_RETRIES, DEFAULT_INITIAL_RETRY_DELAY_MS, DEFAULT_MAX_RETRY_DELAY_MS, MIN_VIEW_COLUMN_WIDTH, } from "./constants";
15
15
  export { collectPaginatedAPI, iteratePaginatedAPI, collectDataSourceTemplates, iterateDataSourceTemplates, isFullBlock, isFullDataSource, isFullDatabase, isFullPage, isFullUser, isFullComment, isFullView, isFullPageOrDataSource, extractNotionId, extractDatabaseId, extractPageId, extractBlockId, } from "./helpers";
16
+ export type { QueryMeetingNotesResponse } from "./api-endpoints/meeting-notes";
17
+ export type { QueryMeetingNotesParameters, MeetingNotesCombinatorFilter, MeetingNotesFilterNode, MeetingNotesPropertyFilter, MeetingNotesPropertyName, MeetingNotesSort, } from "./meeting-notes";
18
+ export { meetingNotesFilterableProperties } from "./meeting-notes";
16
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACV,6BAA6B,EAC7B,2BAA2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,EACb,cAAc,GACf,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,EAC7B,mCAAmC,EACnC,gCAAgC,EAChC,0BAA0B,EAC1B,kCAAkC,EAClC,gCAAgC,EAChC,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,mCAAmC,EACnC,qCAAqC,EACrC,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,8BAA8B,EAC9B,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,+BAA+B,EAC/B,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,uBAAuB,EACvB,+BAA+B,EAC/B,wBAAwB,EACxB,iCAAiC,EACjC,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,uBAAuB,EACvB,eAAe,EACf,iBAAi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EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,UAAU,EACV,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,cAAc,GACf,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,YAAY,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAA"}
@@ -8,7 +8,7 @@
8
8
  * @packageDocumentation
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.extractBlockId = exports.extractPageId = exports.extractDatabaseId = exports.extractNotionId = exports.isFullPageOrDataSource = exports.isFullView = exports.isFullComment = exports.isFullUser = exports.isFullPage = exports.isFullDatabase = exports.isFullDataSource = exports.isFullBlock = exports.iterateDataSourceTemplates = exports.collectDataSourceTemplates = exports.iteratePaginatedAPI = exports.collectPaginatedAPI = exports.MIN_VIEW_COLUMN_WIDTH = exports.DEFAULT_MAX_RETRY_DELAY_MS = exports.DEFAULT_INITIAL_RETRY_DELAY_MS = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT_MS = exports.DEFAULT_BASE_URL = exports.isHTTPResponseError = exports.isNotionClientError = exports.InvalidPathParameterError = exports.RequestTimeoutError = exports.UnknownHTTPResponseError = exports.APIResponseError = exports.ClientErrorCode = exports.APIErrorCode = exports.LogLevel = exports.Client = void 0;
11
+ exports.meetingNotesFilterableProperties = exports.extractBlockId = exports.extractPageId = exports.extractDatabaseId = exports.extractNotionId = exports.isFullPageOrDataSource = exports.isFullView = exports.isFullComment = exports.isFullUser = exports.isFullPage = exports.isFullDatabase = exports.isFullDataSource = exports.isFullBlock = exports.iterateDataSourceTemplates = exports.collectDataSourceTemplates = exports.iteratePaginatedAPI = exports.collectPaginatedAPI = exports.MIN_VIEW_COLUMN_WIDTH = exports.DEFAULT_MAX_RETRY_DELAY_MS = exports.DEFAULT_INITIAL_RETRY_DELAY_MS = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT_MS = exports.DEFAULT_BASE_URL = exports.isHTTPResponseError = exports.isNotionClientError = exports.InvalidPathParameterError = exports.RequestTimeoutError = exports.UnknownHTTPResponseError = exports.APIResponseError = exports.ClientErrorCode = exports.APIErrorCode = exports.LogLevel = exports.Client = void 0;
12
12
  var Client_1 = require("./Client");
13
13
  Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return Client_1.default; } });
14
14
  var logging_1 = require("./logging");
@@ -47,4 +47,6 @@ Object.defineProperty(exports, "extractNotionId", { enumerable: true, get: funct
47
47
  Object.defineProperty(exports, "extractDatabaseId", { enumerable: true, get: function () { return helpers_1.extractDatabaseId; } });
48
48
  Object.defineProperty(exports, "extractPageId", { enumerable: true, get: function () { return helpers_1.extractPageId; } });
49
49
  Object.defineProperty(exports, "extractBlockId", { enumerable: true, get: function () { return helpers_1.extractBlockId; } });
50
+ var meeting_notes_1 = require("./meeting-notes");
51
+ Object.defineProperty(exports, "meetingNotesFilterableProperties", { enumerable: true, get: function () { return meeting_notes_1.meetingNotesFilterableProperties; } });
50
52
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAmNH,mCAA4C;AAAnC,gGAAA,OAAO,OAAU;AAC1B,qCAA4C;AAAnC,mGAAA,QAAQ,OAAA;AACjB,mCAciB;AAXf,sGAAA,YAAY,OAAA;AACZ,yGAAA,eAAe,OAAA;AAGf,0GAAA,gBAAgB,OAAA;AAChB,kHAAA,wBAAwB,OAAA;AACxB,6GAAA,mBAAmB,OAAA;AACnB,mHAAA,yBAAyB,OAAA;AACzB,gBAAgB;AAChB,6GAAA,mBAAmB,OAAA;AACnB,6GAAA,mBAAmB,OAAA;AAGrB,yCAOoB;AANlB,6GAAA,gBAAgB,OAAA;AAChB,+GAAA,kBAAkB,OAAA;AAClB,gHAAA,mBAAmB,OAAA;AACnB,2HAAA,8BAA8B,OAAA;AAC9B,uHAAA,0BAA0B,OAAA;AAC1B,kHAAA,qBAAqB,OAAA;AAEvB,qCAiBkB;AAhBhB,8GAAA,mBAAmB,OAAA;AACnB,8GAAA,mBAAmB,OAAA;AACnB,qHAAA,0BAA0B,OAAA;AAC1B,qHAAA,0BAA0B,OAAA;AAC1B,sGAAA,WAAW,OAAA;AACX,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,qGAAA,UAAU,OAAA;AACV,qGAAA,UAAU,OAAA;AACV,wGAAA,aAAa,OAAA;AACb,qGAAA,UAAU,OAAA;AACV,iHAAA,sBAAsB,OAAA;AACtB,0GAAA,eAAe,OAAA;AACf,4GAAA,iBAAiB,OAAA;AACjB,wGAAA,aAAa,OAAA;AACb,yGAAA,cAAc,OAAA","sourcesContent":["/**\n * index.ts\n *\n * This file is the entry point for the Notion SDK.\n * It exports the Client class and all the API endpoints.\n *\n * @packageDocumentation\n */\n\nexport type {\n AppendBlockChildrenParameters,\n AppendBlockChildrenResponse,\n AudioBlockObjectResponse,\n BlockObjectRequest,\n BlockObjectResponse,\n BookmarkBlockObjectResponse,\n BotUserObjectResponse,\n BreadcrumbBlockObjectResponse,\n BulletedListItemBlockObjectResponse,\n ButtonPropertyItemObjectResponse,\n CalloutBlockObjectResponse,\n CheckboxPropertyItemObjectResponse,\n ChildDatabaseBlockObjectResponse,\n ChildPageBlockObjectResponse,\n CodeBlockObjectResponse,\n ColumnBlockObjectResponse,\n ColumnListBlockObjectResponse,\n CommentObjectResponse,\n CompleteFileUploadParameters,\n CompleteFileUploadResponse,\n CreateCommentParameters,\n CreateCommentResponse,\n CreateDatabaseParameters,\n CreateDatabaseResponse,\n CreateDataSourceParameters,\n CreateDataSourceResponse,\n CreateViewParameters,\n CreateViewResponse,\n CreateViewQueryParameters,\n CreateViewQueryResponse,\n DashboardRowResponse,\n DashboardWidgetResponse,\n CreatedByPropertyItemObjectResponse,\n CreatedTimePropertyItemObjectResponse,\n CreateFileUploadParameters,\n CreateFileUploadResponse,\n CreatePageParameters,\n CreatePageResponse,\n DatabaseObjectResponse,\n DataSourceObjectResponse,\n DataSourceViewObjectResponse,\n DatePropertyItemObjectResponse,\n DeleteBlockParameters,\n DeleteBlockResponse,\n DeleteCommentParameters,\n DeleteCommentResponse,\n DeletedViewQueryResponse,\n DeleteViewParameters,\n DeleteViewResponse,\n DeleteViewQueryParameters,\n DeleteViewQueryResponse,\n DividerBlockObjectResponse,\n EmailPropertyItemObjectResponse,\n EmbedBlockObjectResponse,\n EquationBlockObjectResponse,\n EquationRichTextItemResponse,\n FileBlockObjectResponse,\n FilesPropertyItemObjectResponse,\n FileUploadObjectResponse,\n FormulaPropertyItemObjectResponse,\n GetBlockParameters,\n GetBlockResponse,\n GetCommentParameters,\n GetCommentResponse,\n GetDatabaseParameters,\n GetDatabaseResponse,\n GetDataSourceParameters,\n GetDataSourceResponse,\n GetFileUploadParameters,\n GetFileUploadResponse,\n GetPageParameters,\n GetPagePropertyParameters,\n GetPagePropertyResponse,\n GetPageResponse,\n GetSelfParameters,\n GetSelfResponse,\n GetUserParameters,\n GetUserResponse,\n GetViewParameters,\n GetViewResponse,\n GetViewQueryResultsParameters,\n GetViewQueryResultsResponse,\n GroupObjectResponse,\n Heading1BlockObjectResponse,\n Heading2BlockObjectResponse,\n Heading3BlockObjectResponse,\n ImageBlockObjectResponse,\n LastEditedByPropertyItemObjectResponse,\n LastEditedTimePropertyItemObjectResponse,\n LinkPreviewBlockObjectResponse,\n LinkToPageBlockObjectResponse,\n ListBlockChildrenParameters,\n ListBlockChildrenResponse,\n ListCommentsParameters,\n ListCommentsResponse,\n ListCustomEmojisParameters,\n ListCustomEmojisResponse,\n CustomEmojiResponse,\n ListDatabaseViewsParameters,\n ListDatabaseViewsResponse,\n ListFileUploadsParameters,\n ListFileUploadsResponse,\n ListUsersParameters,\n ListUsersResponse,\n MeetingNotesBlockObjectResponse,\n MentionRichTextItemResponse,\n MovePageParameters,\n MovePageResponse,\n MultiSelectPropertyItemObjectResponse,\n NumberedListItemBlockObjectResponse,\n NumberPropertyItemObjectResponse,\n OauthIntrospectParameters,\n OauthIntrospectResponse,\n OauthRevokeParameters,\n OauthRevokeResponse,\n OauthTokenParameters,\n OauthTokenResponse,\n PageObjectResponse,\n ParagraphBlockObjectResponse,\n PartialBlockObjectResponse,\n PartialCommentObjectResponse,\n PartialDatabaseObjectResponse,\n PartialDataSourceObjectResponse,\n PartialDataSourceViewObjectResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n PdfBlockObjectResponse,\n PeoplePropertyItemObjectResponse,\n PersonUserObjectResponse,\n PhoneNumberPropertyItemObjectResponse,\n PropertyItemListResponse,\n PropertyItemObjectResponse,\n QueryDataSourceParameters,\n QueryDataSourceResponse,\n QuoteBlockObjectResponse,\n RelationPropertyItemObjectResponse,\n RichTextItemResponse,\n RichTextPropertyItemObjectResponse,\n RollupPropertyItemObjectResponse,\n SearchParameters,\n SearchResponse,\n SelectPropertyItemObjectResponse,\n SendFileUploadParameters,\n SendFileUploadResponse,\n StatusPropertyItemObjectResponse,\n SyncedBlockBlockObjectResponse,\n TableBlockObjectResponse,\n TableOfContentsBlockObjectResponse,\n TableRowBlockObjectResponse,\n TemplateBlockObjectResponse,\n TextRichTextItemResponse,\n TitlePropertyItemObjectResponse,\n ToDoBlockObjectResponse,\n ToggleBlockObjectResponse,\n TranscriptionBlockObjectResponse,\n UniqueIdPropertyItemObjectResponse,\n UnsupportedBlockObjectResponse,\n UpdateBlockParameters,\n UpdateBlockResponse,\n UpdateCommentParameters,\n UpdateCommentResponse,\n UpdateDatabaseParameters,\n UpdateDatabaseResponse,\n UpdateDataSourceParameters,\n UpdateDataSourceResponse,\n UpdatePageParameters,\n UpdatePageResponse,\n UpdateViewParameters,\n UpdateViewResponse,\n UrlPropertyItemObjectResponse,\n UserObjectResponse,\n ViewQueryResponse,\n VerificationPropertyItemObjectResponse,\n VideoBlockObjectResponse,\n // Webhook payload types\n BaseWebhookPayload,\n CommentCreatedWebhookPayload,\n CommentDeletedWebhookPayload,\n CommentUpdatedWebhookPayload,\n DataSourceContentUpdatedWebhookPayload,\n DataSourceCreatedWebhookPayload,\n DataSourceDeletedWebhookPayload,\n DataSourceMovedWebhookPayload,\n DataSourceSchemaUpdatedWebhookPayload,\n DataSourceUndeletedWebhookPayload,\n DatabaseContentUpdatedWebhookPayload,\n DatabaseCreatedWebhookPayload,\n DatabaseDeletedWebhookPayload,\n DatabaseMovedWebhookPayload,\n DatabaseSchemaUpdatedWebhookPayload,\n DatabaseUndeletedWebhookPayload,\n FileUploadCompletedWebhookPayload,\n FileUploadCreatedWebhookPayload,\n FileUploadExpiredWebhookPayload,\n FileUploadUploadFailedWebhookPayload,\n PageContentUpdatedWebhookPayload,\n PageCreatedWebhookPayload,\n PageDeletedWebhookPayload,\n PageLockedWebhookPayload,\n PageMovedWebhookPayload,\n PagePropertiesUpdatedWebhookPayload,\n PageTranscriptionBlockTranscriptDeletedWebhookPayload,\n PageUndeletedWebhookPayload,\n PageUnlockedWebhookPayload,\n ViewCreatedWebhookPayload,\n ViewDeletedWebhookPayload,\n ViewUpdatedWebhookPayload,\n} from \"./api-endpoints\"\nexport { default as Client } from \"./Client\"\nexport { LogLevel, Logger } from \"./logging\"\nexport {\n // Error codes\n NotionErrorCode,\n APIErrorCode,\n ClientErrorCode,\n // Error types\n NotionClientError,\n APIResponseError,\n UnknownHTTPResponseError,\n RequestTimeoutError,\n InvalidPathParameterError,\n // Error helpers\n isNotionClientError,\n isHTTPResponseError,\n} from \"./errors\"\nexport type { RetryOptions } from \"./Client\"\nexport {\n DEFAULT_BASE_URL,\n DEFAULT_TIMEOUT_MS,\n DEFAULT_MAX_RETRIES,\n DEFAULT_INITIAL_RETRY_DELAY_MS,\n DEFAULT_MAX_RETRY_DELAY_MS,\n MIN_VIEW_COLUMN_WIDTH,\n} from \"./constants\"\nexport {\n collectPaginatedAPI,\n iteratePaginatedAPI,\n collectDataSourceTemplates,\n iterateDataSourceTemplates,\n isFullBlock,\n isFullDataSource,\n isFullDatabase,\n isFullPage,\n isFullUser,\n isFullComment,\n isFullView,\n isFullPageOrDataSource,\n extractNotionId,\n extractDatabaseId,\n extractPageId,\n extractBlockId,\n} from \"./helpers\"\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAmNH,mCAA4C;AAAnC,gGAAA,OAAO,OAAU;AAC1B,qCAA4C;AAAnC,mGAAA,QAAQ,OAAA;AACjB,mCAciB;AAXf,sGAAA,YAAY,OAAA;AACZ,yGAAA,eAAe,OAAA;AAGf,0GAAA,gBAAgB,OAAA;AAChB,kHAAA,wBAAwB,OAAA;AACxB,6GAAA,mBAAmB,OAAA;AACnB,mHAAA,yBAAyB,OAAA;AACzB,gBAAgB;AAChB,6GAAA,mBAAmB,OAAA;AACnB,6GAAA,mBAAmB,OAAA;AAGrB,yCAOoB;AANlB,6GAAA,gBAAgB,OAAA;AAChB,+GAAA,kBAAkB,OAAA;AAClB,gHAAA,mBAAmB,OAAA;AACnB,2HAAA,8BAA8B,OAAA;AAC9B,uHAAA,0BAA0B,OAAA;AAC1B,kHAAA,qBAAqB,OAAA;AAEvB,qCAiBkB;AAhBhB,8GAAA,mBAAmB,OAAA;AACnB,8GAAA,mBAAmB,OAAA;AACnB,qHAAA,0BAA0B,OAAA;AAC1B,qHAAA,0BAA0B,OAAA;AAC1B,sGAAA,WAAW,OAAA;AACX,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,qGAAA,UAAU,OAAA;AACV,qGAAA,UAAU,OAAA;AACV,wGAAA,aAAa,OAAA;AACb,qGAAA,UAAU,OAAA;AACV,iHAAA,sBAAsB,OAAA;AACtB,0GAAA,eAAe,OAAA;AACf,4GAAA,iBAAiB,OAAA;AACjB,wGAAA,aAAa,OAAA;AACb,yGAAA,cAAc,OAAA;AAWhB,iDAAkE;AAAzD,iIAAA,gCAAgC,OAAA","sourcesContent":["/**\n * index.ts\n *\n * This file is the entry point for the Notion SDK.\n * It exports the Client class and all the API endpoints.\n *\n * @packageDocumentation\n */\n\nexport type {\n AppendBlockChildrenParameters,\n AppendBlockChildrenResponse,\n AudioBlockObjectResponse,\n BlockObjectRequest,\n BlockObjectResponse,\n BookmarkBlockObjectResponse,\n BotUserObjectResponse,\n BreadcrumbBlockObjectResponse,\n BulletedListItemBlockObjectResponse,\n ButtonPropertyItemObjectResponse,\n CalloutBlockObjectResponse,\n CheckboxPropertyItemObjectResponse,\n ChildDatabaseBlockObjectResponse,\n ChildPageBlockObjectResponse,\n CodeBlockObjectResponse,\n ColumnBlockObjectResponse,\n ColumnListBlockObjectResponse,\n CommentObjectResponse,\n CompleteFileUploadParameters,\n CompleteFileUploadResponse,\n CreateCommentParameters,\n CreateCommentResponse,\n CreateDatabaseParameters,\n CreateDatabaseResponse,\n CreateDataSourceParameters,\n CreateDataSourceResponse,\n CreateViewParameters,\n CreateViewResponse,\n CreateViewQueryParameters,\n CreateViewQueryResponse,\n DashboardRowResponse,\n DashboardWidgetResponse,\n CreatedByPropertyItemObjectResponse,\n CreatedTimePropertyItemObjectResponse,\n CreateFileUploadParameters,\n CreateFileUploadResponse,\n CreatePageParameters,\n CreatePageResponse,\n DatabaseObjectResponse,\n DataSourceObjectResponse,\n DataSourceViewObjectResponse,\n DatePropertyItemObjectResponse,\n DeleteBlockParameters,\n DeleteBlockResponse,\n DeleteCommentParameters,\n DeleteCommentResponse,\n DeletedViewQueryResponse,\n DeleteViewParameters,\n DeleteViewResponse,\n DeleteViewQueryParameters,\n DeleteViewQueryResponse,\n DividerBlockObjectResponse,\n EmailPropertyItemObjectResponse,\n EmbedBlockObjectResponse,\n EquationBlockObjectResponse,\n EquationRichTextItemResponse,\n FileBlockObjectResponse,\n FilesPropertyItemObjectResponse,\n FileUploadObjectResponse,\n FormulaPropertyItemObjectResponse,\n GetBlockParameters,\n GetBlockResponse,\n GetCommentParameters,\n GetCommentResponse,\n GetDatabaseParameters,\n GetDatabaseResponse,\n GetDataSourceParameters,\n GetDataSourceResponse,\n GetFileUploadParameters,\n GetFileUploadResponse,\n GetPageParameters,\n GetPagePropertyParameters,\n GetPagePropertyResponse,\n GetPageResponse,\n GetSelfParameters,\n GetSelfResponse,\n GetUserParameters,\n GetUserResponse,\n GetViewParameters,\n GetViewResponse,\n GetViewQueryResultsParameters,\n GetViewQueryResultsResponse,\n GroupObjectResponse,\n Heading1BlockObjectResponse,\n Heading2BlockObjectResponse,\n Heading3BlockObjectResponse,\n ImageBlockObjectResponse,\n LastEditedByPropertyItemObjectResponse,\n LastEditedTimePropertyItemObjectResponse,\n LinkPreviewBlockObjectResponse,\n LinkToPageBlockObjectResponse,\n ListBlockChildrenParameters,\n ListBlockChildrenResponse,\n ListCommentsParameters,\n ListCommentsResponse,\n ListCustomEmojisParameters,\n ListCustomEmojisResponse,\n CustomEmojiResponse,\n ListDatabaseViewsParameters,\n ListDatabaseViewsResponse,\n ListFileUploadsParameters,\n ListFileUploadsResponse,\n ListUsersParameters,\n ListUsersResponse,\n MeetingNotesBlockObjectResponse,\n MentionRichTextItemResponse,\n MovePageParameters,\n MovePageResponse,\n MultiSelectPropertyItemObjectResponse,\n NumberedListItemBlockObjectResponse,\n NumberPropertyItemObjectResponse,\n OauthIntrospectParameters,\n OauthIntrospectResponse,\n OauthRevokeParameters,\n OauthRevokeResponse,\n OauthTokenParameters,\n OauthTokenResponse,\n PageObjectResponse,\n ParagraphBlockObjectResponse,\n PartialBlockObjectResponse,\n PartialCommentObjectResponse,\n PartialDatabaseObjectResponse,\n PartialDataSourceObjectResponse,\n PartialDataSourceViewObjectResponse,\n PartialPageObjectResponse,\n PartialUserObjectResponse,\n PdfBlockObjectResponse,\n PeoplePropertyItemObjectResponse,\n PersonUserObjectResponse,\n PhoneNumberPropertyItemObjectResponse,\n PropertyItemListResponse,\n PropertyItemObjectResponse,\n QueryDataSourceParameters,\n QueryDataSourceResponse,\n QuoteBlockObjectResponse,\n RelationPropertyItemObjectResponse,\n RichTextItemResponse,\n RichTextPropertyItemObjectResponse,\n RollupPropertyItemObjectResponse,\n SearchParameters,\n SearchResponse,\n SelectPropertyItemObjectResponse,\n SendFileUploadParameters,\n SendFileUploadResponse,\n StatusPropertyItemObjectResponse,\n SyncedBlockBlockObjectResponse,\n TableBlockObjectResponse,\n TableOfContentsBlockObjectResponse,\n TableRowBlockObjectResponse,\n TemplateBlockObjectResponse,\n TextRichTextItemResponse,\n TitlePropertyItemObjectResponse,\n ToDoBlockObjectResponse,\n ToggleBlockObjectResponse,\n TranscriptionBlockObjectResponse,\n UniqueIdPropertyItemObjectResponse,\n UnsupportedBlockObjectResponse,\n UpdateBlockParameters,\n UpdateBlockResponse,\n UpdateCommentParameters,\n UpdateCommentResponse,\n UpdateDatabaseParameters,\n UpdateDatabaseResponse,\n UpdateDataSourceParameters,\n UpdateDataSourceResponse,\n UpdatePageParameters,\n UpdatePageResponse,\n UpdateViewParameters,\n UpdateViewResponse,\n UrlPropertyItemObjectResponse,\n UserObjectResponse,\n ViewQueryResponse,\n VerificationPropertyItemObjectResponse,\n VideoBlockObjectResponse,\n // Webhook payload types\n BaseWebhookPayload,\n CommentCreatedWebhookPayload,\n CommentDeletedWebhookPayload,\n CommentUpdatedWebhookPayload,\n DataSourceContentUpdatedWebhookPayload,\n DataSourceCreatedWebhookPayload,\n DataSourceDeletedWebhookPayload,\n DataSourceMovedWebhookPayload,\n DataSourceSchemaUpdatedWebhookPayload,\n DataSourceUndeletedWebhookPayload,\n DatabaseContentUpdatedWebhookPayload,\n DatabaseCreatedWebhookPayload,\n DatabaseDeletedWebhookPayload,\n DatabaseMovedWebhookPayload,\n DatabaseSchemaUpdatedWebhookPayload,\n DatabaseUndeletedWebhookPayload,\n FileUploadCompletedWebhookPayload,\n FileUploadCreatedWebhookPayload,\n FileUploadExpiredWebhookPayload,\n FileUploadUploadFailedWebhookPayload,\n PageContentUpdatedWebhookPayload,\n PageCreatedWebhookPayload,\n PageDeletedWebhookPayload,\n PageLockedWebhookPayload,\n PageMovedWebhookPayload,\n PagePropertiesUpdatedWebhookPayload,\n PageTranscriptionBlockTranscriptDeletedWebhookPayload,\n PageUndeletedWebhookPayload,\n PageUnlockedWebhookPayload,\n ViewCreatedWebhookPayload,\n ViewDeletedWebhookPayload,\n ViewUpdatedWebhookPayload,\n} from \"./api-endpoints\"\nexport { default as Client } from \"./Client\"\nexport { LogLevel, Logger } from \"./logging\"\nexport {\n // Error codes\n NotionErrorCode,\n APIErrorCode,\n ClientErrorCode,\n // Error types\n NotionClientError,\n APIResponseError,\n UnknownHTTPResponseError,\n RequestTimeoutError,\n InvalidPathParameterError,\n // Error helpers\n isNotionClientError,\n isHTTPResponseError,\n} from \"./errors\"\nexport type { RetryOptions } from \"./Client\"\nexport {\n DEFAULT_BASE_URL,\n DEFAULT_TIMEOUT_MS,\n DEFAULT_MAX_RETRIES,\n DEFAULT_INITIAL_RETRY_DELAY_MS,\n DEFAULT_MAX_RETRY_DELAY_MS,\n MIN_VIEW_COLUMN_WIDTH,\n} from \"./constants\"\nexport {\n collectPaginatedAPI,\n iteratePaginatedAPI,\n collectDataSourceTemplates,\n iterateDataSourceTemplates,\n isFullBlock,\n isFullDataSource,\n isFullDatabase,\n isFullPage,\n isFullUser,\n isFullComment,\n isFullView,\n isFullPageOrDataSource,\n extractNotionId,\n extractDatabaseId,\n extractPageId,\n extractBlockId,\n} from \"./helpers\"\nexport type { QueryMeetingNotesResponse } from \"./api-endpoints/meeting-notes\"\nexport type {\n QueryMeetingNotesParameters,\n MeetingNotesCombinatorFilter,\n MeetingNotesFilterNode,\n MeetingNotesPropertyFilter,\n MeetingNotesPropertyName,\n MeetingNotesSort,\n} from \"./meeting-notes\"\nexport { meetingNotesFilterableProperties } from \"./meeting-notes\"\n"]}
@@ -0,0 +1,81 @@
1
+ import type { QueryMeetingNotesParameters as ApiQueryMeetingNotesParameters } from "./api-endpoints/meeting-notes";
2
+ export declare const meetingNotesFilterableProperties: readonly ["title", "created_time", "last_edited_time", "created_by", "last_edited_by", "attendees"];
3
+ declare const meetingNotesTextFilterOperators: readonly ["string_is", "string_is_not", "string_contains", "string_does_not_contain", "string_starts_with", "string_ends_with", "is_empty", "is_not_empty"];
4
+ declare const meetingNotesDateFilterOperators: readonly ["date_is", "date_is_before", "date_is_after", "date_is_on_or_before", "date_is_on_or_after", "date_is_within", "date_is_relative_to", "is_empty", "is_not_empty"];
5
+ declare const meetingNotesPersonFilterOperators: readonly ["person_contains", "person_does_not_contain", "is_empty", "is_not_empty"];
6
+ export type MeetingNotesPropertyName = (typeof meetingNotesFilterableProperties)[number];
7
+ type MeetingNotesTextFilterOperator = (typeof meetingNotesTextFilterOperators)[number];
8
+ type MeetingNotesDateFilterOperator = (typeof meetingNotesDateFilterOperators)[number];
9
+ type MeetingNotesPersonFilterOperator = (typeof meetingNotesPersonFilterOperators)[number];
10
+ type MeetingNotesNoValueFilter<TOperator extends string> = {
11
+ operator: TOperator;
12
+ };
13
+ type MeetingNotesValueFilter<TOperator extends string, TValue> = {
14
+ operator: TOperator;
15
+ value: TValue;
16
+ };
17
+ type MeetingNotesEmptyFilter = MeetingNotesNoValueFilter<"is_empty" | "is_not_empty">;
18
+ type MeetingNotesTextFilterValue = {
19
+ type: "exact";
20
+ value: string;
21
+ };
22
+ type MeetingNotesDatePointFilterValue = {
23
+ type: "relative" | "exact";
24
+ value: string | {
25
+ type: "date" | "datetime";
26
+ start_date: string;
27
+ start_time?: string;
28
+ time_zone?: string;
29
+ };
30
+ };
31
+ type MeetingNotesDateRangeFilterValue = {
32
+ type: "relative" | "exact";
33
+ value: string | {
34
+ type: "daterange";
35
+ start_date: string;
36
+ end_date?: string;
37
+ };
38
+ direction?: "past" | "future";
39
+ unit?: "day" | "week" | "month" | "year";
40
+ count?: number;
41
+ };
42
+ type MeetingNotesPersonOperatorValue = {
43
+ type: "exact";
44
+ value: {
45
+ table: "notion_user";
46
+ id: string;
47
+ };
48
+ };
49
+ type MeetingNotesTextFilter = MeetingNotesValueFilter<Exclude<MeetingNotesTextFilterOperator, MeetingNotesEmptyFilter["operator"]>, MeetingNotesTextFilterValue> | MeetingNotesEmptyFilter;
50
+ type MeetingNotesDateRangeOperator = "date_is_within" | "date_is_relative_to";
51
+ type MeetingNotesDateFilter = MeetingNotesValueFilter<Exclude<MeetingNotesDateFilterOperator, MeetingNotesDateRangeOperator | MeetingNotesEmptyFilter["operator"]>, MeetingNotesDatePointFilterValue> | MeetingNotesValueFilter<MeetingNotesDateRangeOperator, MeetingNotesDateRangeFilterValue> | MeetingNotesEmptyFilter;
52
+ type MeetingNotesPersonFilter = MeetingNotesValueFilter<Exclude<MeetingNotesPersonFilterOperator, MeetingNotesEmptyFilter["operator"]>, MeetingNotesPersonOperatorValue | MeetingNotesPersonOperatorValue[]> | MeetingNotesEmptyFilter;
53
+ type MeetingNotesPropertyFilterByProperty = {
54
+ title: MeetingNotesTextFilter;
55
+ created_time: MeetingNotesDateFilter;
56
+ last_edited_time: MeetingNotesDateFilter;
57
+ created_by: MeetingNotesPersonFilter;
58
+ last_edited_by: MeetingNotesPersonFilter;
59
+ attendees: MeetingNotesPersonFilter;
60
+ };
61
+ export type MeetingNotesPropertyFilter = {
62
+ [Property in keyof MeetingNotesPropertyFilterByProperty]: {
63
+ property: Property;
64
+ filter: MeetingNotesPropertyFilterByProperty[Property];
65
+ };
66
+ }[keyof MeetingNotesPropertyFilterByProperty];
67
+ export type MeetingNotesFilterNode = MeetingNotesCombinatorFilter | MeetingNotesPropertyFilter;
68
+ export type MeetingNotesCombinatorFilter = {
69
+ operator: "and" | "or";
70
+ filters?: MeetingNotesFilterNode[];
71
+ };
72
+ export type MeetingNotesSort = {
73
+ property: MeetingNotesPropertyName;
74
+ direction: "ascending" | "descending";
75
+ };
76
+ export type QueryMeetingNotesParameters = Omit<ApiQueryMeetingNotesParameters, "filter" | "sort"> & {
77
+ filter?: MeetingNotesCombinatorFilter;
78
+ sort?: MeetingNotesSort[];
79
+ };
80
+ export {};
81
+ //# sourceMappingURL=meeting-notes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-notes.d.ts","sourceRoot":"","sources":["../../src/meeting-notes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,IAAI,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AAIlH,eAAO,MAAM,gCAAgC,qGAOnC,CAAA;AAEV,QAAA,MAAM,+BAA+B,6JAS3B,CAAA;AAEV,QAAA,MAAM,+BAA+B,6KAU3B,CAAA;AAEV,QAAA,MAAM,iCAAiC,qFAK7B,CAAA;AAEV,MAAM,MAAM,wBAAwB,GAClC,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnD,KAAK,8BAA8B,GACjC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAA;AAElD,KAAK,8BAA8B,GACjC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAA;AAElD,KAAK,gCAAgC,GACnC,CAAC,OAAO,iCAAiC,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpD,KAAK,yBAAyB,CAAC,SAAS,SAAS,MAAM,IAAI;IACzD,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED,KAAK,uBAAuB,CAAC,SAAS,SAAS,MAAM,EAAE,MAAM,IAAI;IAC/D,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,uBAAuB,GAAG,yBAAyB,CACtD,UAAU,GAAG,cAAc,CAC5B,CAAA;AAED,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,OAAO,CAAA;IACb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AK,wBAAwB,GACzB,uBAAuB,CACrB,OAAO,CACL,gCAAgC,EAChC,uBAAuB,CAAC,UAAU,CAAC,CACpC,EACD,+BAA+B,GAAG,+BAA+B,EAAE,CACpE,GACD,uBAAuB,CAAA;AAE3B,KAAK,oCAAoC,GAAG;IAC1C,KAAK,EAAE,sBAAsB,CAAA;IAC7B,YAAY,EAAE,sBAAsB,CAAA;IACpC,gBAAgB,EAAE,sBAAsB,CAAA;IACxC,UAAU,EAAE,wBAAwB,CAAA;IACpC,cAAc,EAAE,wBAAwB,CAAA;IACxC,SAAS,EAAE,wBAAwB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;KACtC,QAAQ,IAAI,MAAM,oCAAoC,GAAG;QACxD,QAAQ,EAAE,QAAQ,CAAA;QAClB,MAAM,EAAE,oCAAoC,CAAC,QAAQ,CAAC,CAAA;KACvD;CACF,CAAC,MAAM,oCAAoC,CAAC,CAAA;AAE7C,MAAM,MAAM,sBAAsB,GAC9B,4BAA4B,GAC5B,0BAA0B,CAAA;AAE9B,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,wBAAwB,CAAA;IAClC,SAAS,EAAE,WAAW,GAAG,YAAY,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,8BAA8B,EAC9B,QAAQ,GAAG,MAAM,CAClB,GAAG;IACF,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC,IAAI,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC1B,CAAA"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.meetingNotesFilterableProperties = void 0;
4
+ // cspell:ignore daterange
5
+ exports.meetingNotesFilterableProperties = [
6
+ "title",
7
+ "created_time",
8
+ "last_edited_time",
9
+ "created_by",
10
+ "last_edited_by",
11
+ "attendees",
12
+ ];
13
+ const meetingNotesTextFilterOperators = [
14
+ "string_is",
15
+ "string_is_not",
16
+ "string_contains",
17
+ "string_does_not_contain",
18
+ "string_starts_with",
19
+ "string_ends_with",
20
+ "is_empty",
21
+ "is_not_empty",
22
+ ];
23
+ const meetingNotesDateFilterOperators = [
24
+ "date_is",
25
+ "date_is_before",
26
+ "date_is_after",
27
+ "date_is_on_or_before",
28
+ "date_is_on_or_after",
29
+ "date_is_within",
30
+ "date_is_relative_to",
31
+ "is_empty",
32
+ "is_not_empty",
33
+ ];
34
+ const meetingNotesPersonFilterOperators = [
35
+ "person_contains",
36
+ "person_does_not_contain",
37
+ "is_empty",
38
+ "is_not_empty",
39
+ ];
40
+ //# sourceMappingURL=meeting-notes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-notes.js","sourceRoot":"","sources":["../../src/meeting-notes.ts"],"names":[],"mappings":";;;AAEA,0BAA0B;AAEb,QAAA,gCAAgC,GAAG;IAC9C,OAAO;IACP,cAAc;IACd,kBAAkB;IAClB,YAAY;IACZ,gBAAgB;IAChB,WAAW;CACH,CAAA;AAEV,MAAM,+BAA+B,GAAG;IACtC,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,yBAAyB;IACzB,oBAAoB;IACpB,kBAAkB;IAClB,UAAU;IACV,cAAc;CACN,CAAA;AAEV,MAAM,+BAA+B,GAAG;IACtC,SAAS;IACT,gBAAgB;IAChB,eAAe;IACf,sBAAsB;IACtB,qBAAqB;IACrB,gBAAgB;IAChB,qBAAqB;IACrB,UAAU;IACV,cAAc;CACN,CAAA;AAEV,MAAM,iCAAiC,GAAG;IACxC,iBAAiB;IACjB,yBAAyB;IACzB,UAAU;IACV,cAAc;CACN,CAAA","sourcesContent":["import type { QueryMeetingNotesParameters as ApiQueryMeetingNotesParameters } from \"./api-endpoints/meeting-notes\"\n\n// cspell:ignore daterange\n\nexport const meetingNotesFilterableProperties = [\n \"title\",\n \"created_time\",\n \"last_edited_time\",\n \"created_by\",\n \"last_edited_by\",\n \"attendees\",\n] as const\n\nconst meetingNotesTextFilterOperators = [\n \"string_is\",\n \"string_is_not\",\n \"string_contains\",\n \"string_does_not_contain\",\n \"string_starts_with\",\n \"string_ends_with\",\n \"is_empty\",\n \"is_not_empty\",\n] as const\n\nconst meetingNotesDateFilterOperators = [\n \"date_is\",\n \"date_is_before\",\n \"date_is_after\",\n \"date_is_on_or_before\",\n \"date_is_on_or_after\",\n \"date_is_within\",\n \"date_is_relative_to\",\n \"is_empty\",\n \"is_not_empty\",\n] as const\n\nconst meetingNotesPersonFilterOperators = [\n \"person_contains\",\n \"person_does_not_contain\",\n \"is_empty\",\n \"is_not_empty\",\n] as const\n\nexport type MeetingNotesPropertyName =\n (typeof meetingNotesFilterableProperties)[number]\n\ntype MeetingNotesTextFilterOperator =\n (typeof meetingNotesTextFilterOperators)[number]\n\ntype MeetingNotesDateFilterOperator =\n (typeof meetingNotesDateFilterOperators)[number]\n\ntype MeetingNotesPersonFilterOperator =\n (typeof meetingNotesPersonFilterOperators)[number]\n\ntype MeetingNotesNoValueFilter<TOperator extends string> = {\n operator: TOperator\n}\n\ntype MeetingNotesValueFilter<TOperator extends string, TValue> = {\n operator: TOperator\n value: TValue\n}\n\ntype MeetingNotesEmptyFilter = MeetingNotesNoValueFilter<\n \"is_empty\" | \"is_not_empty\"\n>\n\ntype MeetingNotesTextFilterValue = {\n type: \"exact\"\n value: string\n}\n\ntype MeetingNotesDatePointFilterValue = {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"date\" | \"datetime\"\n start_date: string\n start_time?: string\n time_zone?: string\n }\n}\n\ntype MeetingNotesDateRangeFilterValue = {\n type: \"relative\" | \"exact\"\n value:\n | string\n | {\n type: \"daterange\"\n start_date: string\n end_date?: string\n }\n direction?: \"past\" | \"future\"\n unit?: \"day\" | \"week\" | \"month\" | \"year\"\n count?: number\n}\n\ntype MeetingNotesPersonOperatorValue = {\n type: \"exact\"\n value: {\n table: \"notion_user\"\n id: string\n }\n}\n\ntype MeetingNotesTextFilter =\n | MeetingNotesValueFilter<\n Exclude<\n MeetingNotesTextFilterOperator,\n MeetingNotesEmptyFilter[\"operator\"]\n >,\n MeetingNotesTextFilterValue\n >\n | MeetingNotesEmptyFilter\n\ntype MeetingNotesDateRangeOperator = \"date_is_within\" | \"date_is_relative_to\"\n\ntype MeetingNotesDateFilter =\n | MeetingNotesValueFilter<\n Exclude<\n MeetingNotesDateFilterOperator,\n MeetingNotesDateRangeOperator | MeetingNotesEmptyFilter[\"operator\"]\n >,\n MeetingNotesDatePointFilterValue\n >\n | MeetingNotesValueFilter<\n MeetingNotesDateRangeOperator,\n MeetingNotesDateRangeFilterValue\n >\n | MeetingNotesEmptyFilter\n\ntype MeetingNotesPersonFilter =\n | MeetingNotesValueFilter<\n Exclude<\n MeetingNotesPersonFilterOperator,\n MeetingNotesEmptyFilter[\"operator\"]\n >,\n MeetingNotesPersonOperatorValue | MeetingNotesPersonOperatorValue[]\n >\n | MeetingNotesEmptyFilter\n\ntype MeetingNotesPropertyFilterByProperty = {\n title: MeetingNotesTextFilter\n created_time: MeetingNotesDateFilter\n last_edited_time: MeetingNotesDateFilter\n created_by: MeetingNotesPersonFilter\n last_edited_by: MeetingNotesPersonFilter\n attendees: MeetingNotesPersonFilter\n}\n\nexport type MeetingNotesPropertyFilter = {\n [Property in keyof MeetingNotesPropertyFilterByProperty]: {\n property: Property\n filter: MeetingNotesPropertyFilterByProperty[Property]\n }\n}[keyof MeetingNotesPropertyFilterByProperty]\n\nexport type MeetingNotesFilterNode =\n | MeetingNotesCombinatorFilter\n | MeetingNotesPropertyFilter\n\nexport type MeetingNotesCombinatorFilter = {\n operator: \"and\" | \"or\"\n filters?: MeetingNotesFilterNode[]\n}\n\nexport type MeetingNotesSort = {\n property: MeetingNotesPropertyName\n direction: \"ascending\" | \"descending\"\n}\n\nexport type QueryMeetingNotesParameters = Omit<\n ApiQueryMeetingNotesParameters,\n \"filter\" | \"sort\"\n> & {\n filter?: MeetingNotesCombinatorFilter\n sort?: MeetingNotesSort[]\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/client",
3
- "version": "5.20.0",
3
+ "version": "5.21.0",
4
4
  "description": "A simple and easy to use client for the Notion API",
5
5
  "engines": {
6
6
  "node": ">=18"