@notionhq/client
Version:
A simple and easy to use client for the Notion API
53 lines • 1.52 kB
TypeScript
import type { EmptyObject, IdRequest, UserObjectResponse } from "./common";
export type GetSelfParameters = Record<string, never>;
export type GetSelfResponse = UserObjectResponse;
/**
* Retrieve your token's bot user
*/
export declare const getSelf: {
readonly method: "get";
readonly pathParams: readonly [];
readonly queryParams: readonly [];
readonly bodyParams: readonly [];
readonly path: () => string;
};
type GetUserPathParameters = {
user_id: IdRequest;
};
export type GetUserParameters = GetUserPathParameters;
export type GetUserResponse = UserObjectResponse;
/**
* Retrieve a user
*/
export declare const getUser: {
readonly method: "get";
readonly pathParams: readonly ["user_id"];
readonly queryParams: readonly [];
readonly bodyParams: readonly [];
readonly path: (p: GetUserPathParameters) => string;
};
type ListUsersQueryParameters = {
start_cursor?: string;
page_size?: number;
};
export type ListUsersParameters = ListUsersQueryParameters;
export type ListUsersResponse = {
type: "user";
user: EmptyObject;
object: "list";
next_cursor: string | null;
has_more: boolean;
results: Array<UserObjectResponse>;
};
/**
* List all users
*/
export declare const listUsers: {
readonly method: "get";
readonly pathParams: readonly [];
readonly queryParams: readonly ["start_cursor", "page_size"];
readonly bodyParams: readonly [];
readonly path: () => string;
};
export {};
//# sourceMappingURL=users.d.ts.map