@notionhq/client
Version:
A simple and easy to use client for the Notion API
164 lines • 6.09 kB
TypeScript
import type { IdResponse, PartialUserObjectResponse, RichTextItemResponse } from "./common";
type QueryMeetingNotesBodyParameters = {
filter?: {
operator: "and" | "or";
filters?: Array<{
operator: "and" | "or";
filters: Array<{
property: string;
filter: {
operator: string;
value?: {
type: "relative" | "exact";
value: string | {
type: "date" | "datetime";
start_date: string;
start_time?: string;
time_zone?: string;
};
} | {
type: "relative" | "exact";
value: string | {
type: "daterange";
start_date: string;
end_date?: string;
};
direction?: "past" | "future";
unit?: "day" | "week" | "month" | "year";
count?: number;
} | {
type: "exact";
value: string;
} | Array<{
type: "exact";
value: {
table: "notion_user";
id: string;
};
}>;
};
} | {
operator: "and" | "or";
filters: Array<{
property: string;
filter: {
operator: string;
value?: {
type: "relative" | "exact";
value: string | {
type: "date" | "datetime";
start_date: string;
start_time?: string;
time_zone?: string;
};
} | {
type: "relative" | "exact";
value: string | {
type: "daterange";
start_date: string;
end_date?: string;
};
direction?: "past" | "future";
unit?: "day" | "week" | "month" | "year";
count?: number;
} | {
type: "exact";
value: string;
} | Array<{
type: "exact";
value: {
table: "notion_user";
id: string;
};
}>;
};
}>;
}>;
} | {
property: string;
filter: {
operator: string;
value?: {
type: "relative" | "exact";
value: string | {
type: "date" | "datetime";
start_date: string;
start_time?: string;
time_zone?: string;
};
} | {
type: "relative" | "exact";
value: string | {
type: "daterange";
start_date: string;
end_date?: string;
};
direction?: "past" | "future";
unit?: "day" | "week" | "month" | "year";
count?: number;
} | {
type: "exact";
value: string;
} | Array<{
type: "exact";
value: {
table: "notion_user";
id: string;
};
}>;
};
}>;
};
sort?: Array<{
property: "title" | "attendees" | "created_time" | "created_by" | "last_edited_time" | "last_edited_by";
direction: "ascending" | "descending";
}>;
limit?: number;
};
export type QueryMeetingNotesParameters = QueryMeetingNotesBodyParameters;
export type QueryMeetingNotesResponse = {
results: Array<{
object: "block";
id: IdResponse;
type: "meeting_notes";
meeting_notes: {
title?: Array<RichTextItemResponse>;
status?: "transcription_not_started" | "transcription_paused" | "transcription_in_progress" | "summary_in_progress" | "notes_ready";
children?: {
summary_block_id?: IdResponse;
notes_block_id?: IdResponse;
transcript_block_id?: IdResponse;
};
calendar_event?: {
start_time: string;
end_time: string;
attendees?: Array<IdResponse>;
};
recording?: {
start_time?: string;
end_time?: string;
};
};
created_time: string;
last_edited_time: string;
created_by: PartialUserObjectResponse;
last_edited_by: PartialUserObjectResponse;
has_children: boolean;
in_trash: boolean;
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
archived: boolean;
}>;
has_more: boolean;
};
/**
* Query meeting notes
*/
export declare const queryMeetingNotes: {
readonly method: "post";
readonly pathParams: readonly [];
readonly queryParams: readonly [];
readonly bodyParams: readonly ["filter", "sort", "limit"];
readonly path: () => string;
};
export {};
//# sourceMappingURL=meeting-notes.d.ts.map