api/projects/:projectname
projectの情報
https://scrapbox.io/api/projects/:projectname
応答の型
code:ts
type ProjectResponse = {
id: string;
name: string; // $projectnameと同じ
displayName: string;
publicVisible: boolean; // 公開projectならtrue
loginStrategies: string[]; // 常に空?
theme: string;
gyazoTeamsName: string | null;
googleAnalyticsCode: string | null;
image?: string; // projectのfavicon
created: number;
updated: number;
isMember: boolean;
} &
// isMemberがtrueのときだけ取得できる情報
Partial<{
plan: string | null; // private projectのfree planだとpersonalが入る
users: {
id: string;
name: string;
displayName: string;
photo: string; // 自分のページがなかったときに使用されるprofile画像
email: string;
pro: boolean;
provider: 'google' | 'microsoft' | 'email';
created: number;
updated: number;
}[];
admins: string[]; // admin権限を持っているuserのid
owner: string; // owner権限を持っているuserのid
trialing: boolean;
trialMaxPages: number;
skipPayment: boolean;
uploadFileTo: "gcs";
uploadImageTo: "gyazo" | "gcs";
emailAddressPatterns: string[];
backuped: number | null; // おそらく最後にバックアップをとった日時
}>;