{
  "schemaVersion": 1,
  "title": "CIT Hub Web App API reference",
  "hostApi": 80,
  "transport": "window.CITHub.call(operation, args)",
  "envelope": {
    "success": "Promise<T>",
    "failure": "Promise rejection with { code: string, message: string }"
  },
  "rules": {
    "declarePermissions": true,
    "userGestureOperations": "camera, scanner, photo save, audio, browser, dialogs, notifications, file export, sharing and writes must be called directly from a user event",
    "dataScope": "Only the signed-in user's own CIT Hub data and the extension's own local/cloud namespace are available",
    "network": "Web App code cannot use fetch or external resources; use the approved bridge operation"
  },
  "commonErrors": {
    "permission_required": "The permission is missing from manifest.permissions.",
    "permission_denied": "The OS permission or user consent was denied.",
    "user_gesture_required": "Call directly from a user click, pointer, touch, keyboard or explicit user action.",
    "unsupported": "The host or device does not provide this capability.",
    "invalid_arguments": "The args object does not match the operation schema.",
    "not_found": "The requested item or local file does not exist.",
    "network_error": "The approved network operation failed or timed out.",
    "storage_error": "The extension storage operation failed.",
    "rate_limited": "Retry later; the operation quota was reached."
  },
  "operations": [
    {
      "name": "cit.timetable.today",
      "permission": "timetable.read",
      "args": {
        "date": "yyyy-MM-dd?"
      },
      "returns": {
        "items": "CourseOccurrence[] on that date (default today), ordered by start time"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "今日（または date で指定した日）の授業を、開始時刻順に返します。「今日の予定」画面の基本になります。",
      "example": "const { items } = await window.CITHub.call('cit.timetable.today', {});"
    },
    {
      "name": "cit.timetable.tomorrow",
      "permission": "timetable.read",
      "args": {},
      "returns": {
        "item": "CourseOccurrence|null (first class tomorrow)",
        "items": "CourseOccurrence[] tomorrow"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "明日の授業を返します。item は明日の最初の授業、items は明日の全授業です。",
      "example": "const { item } = await window.CITHub.call('cit.timetable.tomorrow', {});"
    },
    {
      "name": "cit.timetable.week",
      "permission": "timetable.read",
      "args": {
        "date": "yyyy-MM-dd?"
      },
      "returns": {
        "items": "CourseOccurrence[] Monday to Sunday of the week containing the date (default this week)"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "今週（月曜〜日曜。date を渡すとその日を含む週）の授業を、日付順にまとめて返します。週間表を作るときに使います。",
      "example": "const { items } = await window.CITHub.call('cit.timetable.week', {});"
    },
    {
      "name": "cit.timetable.at",
      "permission": "timetable.read",
      "args": {
        "date": "yyyy-MM-dd",
        "period": "string?"
      },
      "returns": {
        "items": "CourseOccurrence[] on that date, optionally only that period"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "指定した日（date）の授業を返します。period を渡すとその時限だけに絞ります。",
      "example": "await window.CITHub.call('cit.timetable.at', { date: '2026-11-20', period: '3' });"
    },
    {
      "name": "cit.timetable.current",
      "permission": "timetable.read",
      "args": {},
      "returns": {
        "item": "CourseOccurrence|null (class in session now)",
        "items": "CourseOccurrence[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "今まさに授業中の授業を返します。授業中でなければ item は null です。「いま何の授業か」を表示するときに使います。",
      "example": "const { item } = await window.CITHub.call('cit.timetable.current', {});"
    },
    {
      "name": "cit.timetable.next",
      "permission": "timetable.read",
      "args": {},
      "returns": {
        "item": "CourseOccurrence|null (next class to start, today or a later day within 7 days)",
        "items": "CourseOccurrence[] on that day from that time"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "次に始まる授業を返します。今日の残りに無ければ、7日先までで最初の授業を探します。「次の授業まであと◯分」の表示に向いています。",
      "example": "const { item } = await window.CITHub.call('cit.timetable.next', {});"
    },
    {
      "name": "cit.timetable.freePeriods",
      "permission": "timetable.read",
      "args": {
        "date": "yyyy-MM-dd?"
      },
      "returns": {
        "items": "period rows {weekday, dayName, period, periodIndex, startMinutes, endMinutes, date} without a class"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "指定した日（既定は今日）の「授業が入っていない時限」を返します。空きコマの活用や、課題を進める時間の提案に使います。",
      "example": "const { items } = await window.CITHub.call('cit.timetable.freePeriods', {});"
    },
    {
      "name": "cit.courses.list",
      "permission": "timetable.read",
      "args": {
        "query": "string?",
        "courseId": "string?"
      },
      "returns": {
        "items": "Course[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "履修授業の一覧を返します。曜日や時限の情報も含みます。query で授業名・教員名を絞り込めます。",
      "example": "const { items } = await window.CITHub.call('cit.courses.list', {});"
    },
    {
      "name": "cit.courses.get",
      "permission": "timetable.read",
      "args": {
        "courseId": "string"
      },
      "returns": {
        "item": "Course|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "授業を1件、id（courseId）で取得します。見つからなければ item は null です。",
      "example": "const { item } = await window.CITHub.call('cit.courses.get', { courseId });"
    },
    {
      "name": "cit.courses.search",
      "permission": "timetable.read",
      "args": {
        "query": "string",
        "limit": "number?"
      },
      "returns": {
        "items": "Course[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "授業名や教員名に文字列を含む授業を探します。",
      "example": "await window.CITHub.call('cit.courses.search', { query: '情報' });"
    },
    {
      "name": "cit.courses.byWeekday",
      "permission": "timetable.read",
      "args": {
        "weekday": "number (0=Sunday, 1=Monday ... 6=Saturday; 7 is also accepted as Sunday)",
        "limit": "number?"
      },
      "returns": {
        "items": "CourseOccurrence[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "指定した曜日の授業を返します。weekday は 0=日曜〜6=土曜（7 も日曜として受け付けます）。",
      "example": "await window.CITHub.call('cit.courses.byWeekday', { weekday: 1 });"
    },
    {
      "name": "cit.courses.forPeriod",
      "permission": "timetable.read",
      "args": {
        "period": "string",
        "limit": "number?"
      },
      "returns": {
        "items": "CourseOccurrence[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "timetable",
      "summary": "指定した時限（例: \"3\"）の授業を、曜日をまたいで返します。",
      "example": "await window.CITHub.call('cit.courses.forPeriod', { period: '3' });"
    },
    {
      "name": "cit.assignments.list",
      "permission": "assignments.read",
      "args": {
        "courseId": "string?",
        "limit": "number?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "課題の一覧を、締切の近い順に返します。limit で件数を絞れます（最大200）。各課題は id, type, title, course, courseName, startAt, deadline, dueDate, url を持ちます。",
      "example": "const { items } = await window.CITHub.call('cit.assignments.list', { limit: 50 });"
    },
    {
      "name": "cit.assignments.get",
      "permission": "assignments.read",
      "args": {
        "id": "string"
      },
      "returns": {
        "item": "Assignment|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "課題を1件、id で取得します。",
      "example": "const { item } = await window.CITHub.call('cit.assignments.get', { id });"
    },
    {
      "name": "cit.assignments.pending",
      "permission": "assignments.read",
      "args": {
        "limit": "number?",
        "courseId": "string?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "締切がまだ来ていない課題（締切未設定を含む）を返します。「やることリスト」向けです。",
      "example": "await window.CITHub.call('cit.assignments.pending', {});"
    },
    {
      "name": "cit.assignments.overdue",
      "permission": "assignments.read",
      "args": {
        "limit": "number?",
        "courseId": "string?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "締切を過ぎた課題を返します。「期限切れの課題」の警告表示に使います。",
      "example": "await window.CITHub.call('cit.assignments.overdue', {});"
    },
    {
      "name": "cit.assignments.dueSoon",
      "permission": "assignments.read",
      "args": {
        "days": "number? (1-90)",
        "limit": "number?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "今から days 日以内（1〜90、既定7）に締切が来る課題を返します。「今週の締切」の表示に使います。",
      "example": "await window.CITHub.call('cit.assignments.dueSoon', { days: 3 });"
    },
    {
      "name": "cit.assignments.search",
      "permission": "assignments.read",
      "args": {
        "query": "string",
        "limit": "number?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "課題名・授業名に文字列を含む課題を探します。",
      "example": "await window.CITHub.call('cit.assignments.search', { query: 'レポート' });"
    },
    {
      "name": "cit.assignments.byCourse",
      "permission": "assignments.read",
      "args": {
        "courseId": "string",
        "limit": "number?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "指定した授業（授業名）の課題だけを返します。",
      "example": "await window.CITHub.call('cit.assignments.byCourse', { courseId: 'データ通信' });"
    },
    {
      "name": "cit.assignments.between",
      "permission": "assignments.read",
      "args": {
        "startAt": "ISO date",
        "endAt": "ISO date",
        "limit": "number?"
      },
      "returns": {
        "items": "Assignment[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "assignments",
      "summary": "締切が startAt〜endAt（ISO 日時）の範囲にある課題を返します。カレンダー表示向けです。",
      "example": "await window.CITHub.call('cit.assignments.between', { startAt, endAt });"
    },
    {
      "name": "cit.todo.list",
      "permission": "todos.read",
      "args": {
        "includeCompleted": "boolean?"
      },
      "returns": {
        "items": "Todo[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "todo",
      "summary": "CIT Hub の ToDo を返します。既定では未完了のみで、includeCompleted: true を渡すと完了済みも含みます。",
      "example": "const { items } = await window.CITHub.call('cit.todo.list', { includeCompleted: false });"
    },
    {
      "name": "cit.todo.write",
      "permission": "todos.write",
      "args": {
        "action": "create|update|delete|complete|uncomplete",
        "id": "string?",
        "value": "JSON object?"
      },
      "returns": {
        "saved": "boolean",
        "item": "Todo|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "todo",
      "summary": "ToDo の追加・更新・削除・完了/未完了の切り替えをします（action で指定）。更新・削除は、直前に読み取った内容を expected として渡し、途中で変更されていないか確認します。",
      "notes": "本人の ToDo を書き換えるため、利用者の操作に結びつけて呼び出してください。"
    },
    {
      "name": "cit.courseNotes.list",
      "permission": "courseNotes.read",
      "args": {
        "courseId": "string?"
      },
      "returns": {
        "items": "CourseNote[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "todo",
      "summary": "授業ごとのメモを返します。courseId を渡すとその授業のメモだけになります。",
      "example": "const { items } = await window.CITHub.call('cit.courseNotes.list', {});"
    },
    {
      "name": "cit.courseNotes.get",
      "permission": "courseNotes.read",
      "args": {
        "id": "string"
      },
      "returns": {
        "item": "CourseNote|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "todo",
      "summary": "授業メモを1件、id で取得します。",
      "example": "const { item } = await window.CITHub.call('cit.courseNotes.get', { id });"
    },
    {
      "name": "cit.courseNotes.write",
      "permission": "courseNotes.write",
      "args": {
        "id": "string",
        "content": "string",
        "expected": "string|null"
      },
      "returns": {
        "saved": "boolean",
        "revision": "number?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "todo",
      "summary": "授業メモを書き込みます。expected には、書き込み前に読み取った内容（なければ null）を渡し、他の操作で変更されていないか確認します。",
      "notes": "空の content を渡すとメモを削除します。"
    },
    {
      "name": "cit.calendar.weekNumber",
      "permission": "calendar.read",
      "args": {},
      "returns": {
        "weekNumber": "number (ISO week of the year)"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "campus",
      "summary": "今日が1年の何週目か（ISO 週番号）を返します。",
      "example": "const { weekNumber } = await window.CITHub.call('cit.calendar.weekNumber', {});"
    },
    {
      "name": "cit.settings.language",
      "permission": "settings.read",
      "args": {},
      "returns": {
        "value": "JSON value|null",
        "settings": "JSON object"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "campus",
      "summary": "アプリの表示言語（例: ja-JP）を返します。",
      "example": "const language = await window.CITHub.call('cit.settings.language', {});"
    },
    {
      "name": "cit.query",
      "permission": null,
      "args": {
        "query": "string (one of the host data keys; the alias key is also accepted)"
      },
      "returns": {
        "value": "JSON value|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "campus",
      "summary": "時間割・課題・学年暦・バス・学食などのデータを、キー名（query）で読み取る汎用の入口です。キーごとに必要な権限が異なります。",
      "notes": "特別な事情がなければ、cit.timetable.* や cit.assignments.* のような専用の操作を使ってください。"
    },
    {
      "name": "storage.get",
      "permission": null,
      "args": {
        "key": "1-100 chars: [A-Za-z][A-Za-z0-9_.-]*"
      },
      "returns": "JSON value|null",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "保存した値を、キーで取り出します。保存されていなければ null です。起動時に呼んで、前回の状態を復元します。",
      "example": "const items = await window.CITHub.call('storage.get', { key: 'todo.items' });"
    },
    {
      "name": "storage.set",
      "permission": null,
      "args": {
        "key": "1-100 chars: [A-Za-z][A-Za-z0-9_.-]*",
        "value": "JSON value"
      },
      "returns": "null",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "値（JSON で表せるもの）をキーで保存します。入力や操作の結果が変わるたびに、全体を保存し直します。",
      "example": "await window.CITHub.call('storage.set', { key: 'todo.items', value: items });"
    },
    {
      "name": "storage.has",
      "permission": null,
      "args": {
        "key": "1-100 chars: [A-Za-z][A-Za-z0-9_.-]*"
      },
      "returns": "boolean",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "そのキーの値が保存されているかを true/false で返します。",
      "example": "const exists = await window.CITHub.call('storage.has', { key: 'todo.items' });"
    },
    {
      "name": "storage.remove",
      "permission": null,
      "args": {
        "key": "1-100 chars: [A-Za-z][A-Za-z0-9_.-]*"
      },
      "returns": "null",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "指定したキーの保存値を消します。",
      "example": "await window.CITHub.call('storage.remove', { key: 'todo.items' });"
    },
    {
      "name": "storage.keys",
      "permission": null,
      "args": {},
      "returns": "string[]",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "保存済みのキーの一覧を返します。",
      "example": "const keys = await window.CITHub.call('storage.keys', {});"
    },
    {
      "name": "storage.clear",
      "permission": null,
      "args": {},
      "returns": "null",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "この拡張機能が保存した値を、すべて消します。リセット機能に使います。"
    },
    {
      "name": "storage.compareAndSet",
      "permission": null,
      "args": {
        "key": "1-100 chars: [A-Za-z][A-Za-z0-9_.-]*",
        "expected": "JSON value",
        "value": "JSON value"
      },
      "returns": "boolean",
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "「現在の値が expected と同じときだけ」新しい値に更新します。複数の画面や処理が同時に書き込むときの上書き事故を防ぎます。結果は true/false です。"
    },
    {
      "name": "secureStorage.get",
      "permission": null,
      "args": {
        "key": "string",
        "value": "string for set"
      },
      "returns": {
        "value": "string|null",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "暗号化された保護領域から文字列を取り出します。合言葉やトークンのような、他に見せたくない文字列向けです。",
      "notes": "CIT Hub のパスワードや認証コードは保存・取得できません。"
    },
    {
      "name": "secureStorage.set",
      "permission": null,
      "args": {},
      "returns": {
        "saved": "boolean",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "保護領域に文字列を保存します。通常の storage より安全な領域に入ります。"
    },
    {
      "name": "secureStorage.delete",
      "permission": null,
      "args": {},
      "returns": {
        "saved": "boolean",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "storage",
      "summary": "保護領域に保存した文字列を消します。"
    },
    {
      "name": "files.write",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "拡張機能専用のファイル領域に、ファイルを書き込みます（files.storage）。名前とデータ（base64）を渡します。"
    },
    {
      "name": "files.read",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "拡張機能専用の領域のファイルを読み込みます。"
    },
    {
      "name": "files.list",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "拡張機能専用の領域にあるファイルの一覧を返します。"
    },
    {
      "name": "files.info",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "ファイルの大きさ・種類・画像の縦横などの情報だけを調べます。"
    },
    {
      "name": "files.exists",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "指定した名前のファイルが、拡張機能専用の領域にあるかを true/false で返します。"
    },
    {
      "name": "files.copy",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "拡張機能専用の領域の中で、ファイルをコピーします。"
    },
    {
      "name": "files.move",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "拡張機能専用の領域の中で、ファイルを移動（名前変更）します。"
    },
    {
      "name": "files.delete",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "拡張機能専用の領域のファイルを削除します。"
    },
    {
      "name": "files.export",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "保存したファイルを、利用者が選んだ場所（ファイル App など）に書き出します。name と suggestedName（保存名）を渡します。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "files.selection.pick",
      "permission": "files.user + files.selection.read",
      "args": {
        "key": "string",
        "kind": "any|image|video|audio|document"
      },
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number",
        "mimeType": "string"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "写真・動画・音声・書類などを、OS のピッカーで利用者に選んでもらいます。選ばれたファイルは key で扱います。",
      "example": "const file = await window.CITHub.call('files.selection.pick', { key: 'photo', kind: 'image' });",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "files.selection.info",
      "permission": "files.selection.read",
      "args": {
        "key": "string"
      },
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number",
        "mimeType": "string"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "選ばれたファイル（key）の名前・大きさ・種類を調べます。"
    },
    {
      "name": "files.selection.read",
      "permission": "files.selection.read",
      "args": {
        "key": "string",
        "offset": "number",
        "maxBytes": "number, up to 49152"
      },
      "returns": {
        "data": "base64 string",
        "offset": "number",
        "totalSize": "number",
        "done": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "選ばれたファイルの中身を、base64 で分割して読み込みます（1回あたり最大48KB。offset を進めて繰り返します）。"
    },
    {
      "name": "files.selection.preview",
      "permission": "files.user",
      "args": {},
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number",
        "mimeType": "string",
        "data": "base64 string|null",
        "done": "boolean?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "選ばれたファイルをプレビュー用に読み込みます。"
    },
    {
      "name": "files.image.transform",
      "permission": null,
      "args": {
        "key": "string",
        "action": "string",
        "options": "JSON object?"
      },
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number",
        "mimeType": "string"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "選ばれた画像を、回転・反転・縮小などで加工して新しいファイルにします。"
    },
    {
      "name": "image.process",
      "permission": "files.storage + files.selection.read",
      "args": {
        "key": "string",
        "action": "string",
        "options": "JSON object?"
      },
      "returns": {
        "name": "string?",
        "size": "number?",
        "mimeType": "string?",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "saved": "boolean?",
        "deleted": "boolean?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "画像を加工します（リサイズ、トリミング、回転、反転、圧縮、形式変換、サムネイル、位置情報などの削除）。結果は拡張機能専用の領域に保存されます。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "media.generate",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string",
        "size": "number",
        "mimeType": "string"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "PDF や QR コードなどのファイルを生成して、拡張機能専用の領域に保存します（action で種類を指定）。"
    },
    {
      "name": "media.exportPDF",
      "permission": "files.storage",
      "args": {},
      "returns": {
        "name": "string",
        "size": "number",
        "mimeType": "string"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "保存済みの PDF を、利用者が選んだ場所に書き出します。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "media.info",
      "permission": "files.selection.read",
      "args": {
        "key": "string",
        "kind": "image|video|audio",
        "action": "play|pause|stop|duration|position"
      },
      "returns": {
        "name": "string",
        "mimeType": "string",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "position": "number?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "選ばれた画像・動画・音声の長さや大きさなどの情報を調べます。"
    },
    {
      "name": "media.playback",
      "permission": "files.selection.read",
      "args": {
        "key": "string",
        "kind": "image|video|audio",
        "action": "play|pause|stop|duration|position"
      },
      "returns": {
        "name": "string",
        "mimeType": "string",
        "width": "number?",
        "height": "number?",
        "duration": "number?",
        "position": "number?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "選ばれた音声・動画の再生・一時停止・停止、長さや再生位置の取得をします（action で指定）。"
    },
    {
      "name": "files.writeScannedDocument",
      "permission": null,
      "args": {
        "name": "string",
        "data": "base64 PDF",
        "pageCount": "number"
      },
      "returns": {
        "name": "string",
        "size": "number",
        "mimeType": "application/pdf",
        "pageCount": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "files",
      "summary": "書類スキャンで作った PDF を、拡張機能専用の領域に保存します（scanner.document から内部で使われます）。"
    },
    {
      "name": "camera.available",
      "permission": "camera.use",
      "args": {},
      "returns": {
        "available": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "Android"
      ],
      "category": "capture",
      "summary": "この端末でカメラが使えるかを true/false で返します。使えない端末で、撮影ボタンを隠すときに使います。",
      "example": "const { available } = await window.CITHub.call('camera.available', {});"
    },
    {
      "name": "camera.capture",
      "permission": "camera.use + files.selection.read",
      "args": {
        "key": "string, 1-40 characters",
        "kind": "photo|video",
        "maxSeconds": "0 for photo, 1-60 for video"
      },
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number",
        "mimeType": "image/jpeg|video/quicktime|video/mp4"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "Android"
      ],
      "category": "capture",
      "summary": "写真または動画を撮影します（kind: photo|video）。撮影したファイルは key で扱います。",
      "example": "const photo = await window.CITHub.call('camera.capture', { key: 'photo', kind: 'photo', maxSeconds: 0 });",
      "notes": "ボタン操作の中で呼び出す必要があります。動画にはマイク権限も必要です。"
    },
    {
      "name": "camera.scan",
      "permission": "camera.use",
      "args": {
        "format": "qr|barcode"
      },
      "returns": {
        "value": "string",
        "format": "qr|barcode"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "Android"
      ],
      "category": "capture",
      "summary": "カメラで QR コードまたはバーコードを読み取り、文字列で返します。",
      "example": "const { value } = await window.CITHub.call('camera.scan', { format: 'qr' });",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "scanner.document",
      "permission": "camera.use + files.storage",
      "args": {
        "name": "PDF filename",
        "maxPages": "1-50"
      },
      "returns": {
        "name": "string",
        "pageCount": "number",
        "size": "number",
        "mimeType": "application/pdf"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "Android"
      ],
      "category": "capture",
      "summary": "書類をカメラでスキャンして PDF にします（最大50ページ）。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "audio.record",
      "permission": "microphone.use + files.selection.read",
      "args": {
        "key": "string",
        "maxSeconds": "1-300"
      },
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number",
        "mimeType": "audio/mp4"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "capture",
      "summary": "マイクで録音します（最大300秒）。録音したファイルは key で扱います。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "audio.stopRecording",
      "permission": "microphone.use + files.selection.read",
      "args": {},
      "returns": {
        "stopped": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "capture",
      "summary": "audio.record で始めた録音を、最大時間を待たずに途中で止めて、ファイルとして確定します。"
    },
    {
      "name": "photos.save",
      "permission": "photos.user + files.selection.read",
      "args": {
        "key": "string"
      },
      "returns": {
        "saved": "boolean"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "share",
      "summary": "選んだ（または撮影した）写真を、端末の写真ライブラリに保存します。保存前に OS の確認が出ます。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "share.present",
      "permission": null,
      "args": {
        "items": "Array<{text?:string,url?:string}>"
      },
      "returns": {
        "presented": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "share",
      "summary": "OS の共有シートを開き、文字や URL を他のアプリへ渡します。items に {text, url} を1〜10件渡します。",
      "example": "await window.CITHub.call('share.present', { items: [{ text: '今日の予定', url: 'https://example.com' }] });",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "share.file",
      "permission": "files.user + files.selection.read",
      "args": {},
      "returns": {
        "accepted": "boolean",
        "value": "string|boolean|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "share",
      "summary": "選んだファイルを、OS の共有シートで他のアプリへ渡します。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "share.image",
      "permission": "files.user + files.selection.read",
      "args": {},
      "returns": {
        "accepted": "boolean",
        "value": "string|boolean|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "share",
      "summary": "選んだ画像を、OS の共有シートで他のアプリへ渡します。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "clipboard.read",
      "permission": "clipboard.read or clipboard.write",
      "args": {
        "text": "string for write"
      },
      "returns": {
        "text": "string|null",
        "written": "boolean?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "share",
      "summary": "クリップボードの文字列を読み取ります（clipboard.read 権限）。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "clipboard.write",
      "permission": "clipboard.write",
      "args": {},
      "returns": {
        "written": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "share",
      "summary": "クリップボードに文字列をコピーします（clipboard.write 権限）。「コピー」ボタンに使います。",
      "example": "await window.CITHub.call('clipboard.write', { text: '結果' });"
    },
    {
      "name": "device.info",
      "permission": null,
      "args": {},
      "returns": {
        "platform": "ios|macos|android",
        "osVersion": "string",
        "deviceClass": "string",
        "screen": {
          "width": "number",
          "height": "number",
          "scale": "number",
          "orientation": "portrait|landscape"
        },
        "locale": "string",
        "timezone": "string",
        "appearance": "light|dark",
        "capabilities": "string[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "端末の種類（phone/tablet/desktop）、OS、画面の大きさ、言語、タイムゾーン、ライト/ダークを返します。画面の作り分けに使います。",
      "example": "const info = await window.CITHub.call('device.info', {});"
    },
    {
      "name": "sensors.read",
      "permission": "sensors.motion",
      "args": {
        "kind": "accelerometer|gyroscope|magnetometer|orientation"
      },
      "returns": {
        "kind": "string",
        "x": "number?",
        "y": "number?",
        "z": "number?",
        "roll": "number?",
        "pitch": "number?",
        "yaw": "number?",
        "timestamp": "number"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "加速度・ジャイロ・磁気・姿勢のセンサー値を1回読み取ります（kind で指定）。「振って決める」などに使います。",
      "example": "const v = await window.CITHub.call('sensors.read', { kind: 'accelerometer' });",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "location.current",
      "permission": "location.use",
      "args": {
        "accuracy": "coarse|fine"
      },
      "returns": {
        "latitude": "number",
        "longitude": "number",
        "accuracy": "number",
        "altitude": "number?",
        "timestamp": "number"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "Android"
      ],
      "category": "device",
      "summary": "現在地（緯度・経度・精度）を1回取得します（location.use 権限）。",
      "notes": "ボタン操作の中で呼び出す必要があります。位置情報の OS 許可も別に必要です。"
    },
    {
      "name": "haptics.feedback",
      "permission": null,
      "args": {
        "style": "string?"
      },
      "returns": {
        "performed": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "短い振動（触覚フィードバック）を出します。ボタン操作や、ゲームの当たりの演出に使います。style で強さを選べます。",
      "example": "await window.CITHub.call('haptics.feedback', { style: 'medium' });"
    },
    {
      "name": "accessibility.status",
      "permission": null,
      "args": {},
      "returns": {
        "supported": "boolean",
        "enabled": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "動きを減らす設定やスクリーンリーダーなど、端末のアクセシビリティ設定を返します。"
    },
    {
      "name": "background.status",
      "permission": null,
      "args": {},
      "returns": {
        "running": "boolean",
        "supported": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "端末がバックグラウンド更新を許可しているかを返します。"
    },
    {
      "name": "keyboard.focus",
      "permission": null,
      "args": {},
      "returns": {
        "accepted": "boolean"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "入力欄（key で指定）にフォーカスを移して、キーボードを出します。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "keyboard.dismiss",
      "permission": null,
      "args": {},
      "returns": {
        "accepted": "boolean"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "device",
      "summary": "画面に出ているキーボードを閉じます。入力が終わったときのボタンなどに使います。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "notification.schedule",
      "permission": "notifications.schedule",
      "args": {
        "identifier": "string",
        "title": "string",
        "body": "string",
        "date": "ISO datetime",
        "repeat": "none|daily|weekly"
      },
      "returns": {
        "identifier": "string?",
        "scheduled": "boolean?",
        "items": "ScheduledNotification[]?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "notification",
      "summary": "指定日時（date）にローカル通知を出す予約をします。identifier, title, body, date を渡し、repeat で毎日・毎週にもできます。",
      "example": "await window.CITHub.call('notification.schedule', { identifier: 'due', title: '提出日です', body: 'レポートを出しましょう', date: '2026-11-20T08:00:00+09:00', repeat: 'none' });",
      "notes": "ボタン操作の中で呼び出す必要があります。通知の OS 許可も必要です。"
    },
    {
      "name": "notification.cancel",
      "permission": "notifications.schedule",
      "args": {},
      "returns": {
        "identifier": "string?",
        "scheduled": "boolean?",
        "items": "ScheduledNotification[]?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "notification",
      "summary": "予約した通知を、identifier を指定して取り消します。"
    },
    {
      "name": "notification.cancelAll",
      "permission": "notifications.schedule",
      "args": {},
      "returns": {
        "identifier": "string?",
        "scheduled": "boolean?",
        "items": "ScheduledNotification[]?"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "notification",
      "summary": "この拡張機能が予約した通知を、すべて取り消します。"
    },
    {
      "name": "notification.listScheduled",
      "permission": "notifications.schedule",
      "args": {},
      "returns": {
        "identifier": "string?",
        "scheduled": "boolean?",
        "items": "ScheduledNotification[]?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "notification",
      "summary": "この拡張機能が予約している通知の一覧を返します。"
    },
    {
      "name": "push.sendToCurrentUser",
      "permission": "notifications.schedule",
      "args": {
        "title": "string",
        "body": "string",
        "data": "JSON object?"
      },
      "returns": {
        "sent": "boolean",
        "deviceCount": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "notification",
      "summary": "自分の端末へ、サーバー経由でプッシュ通知を送ります（title, body）。1分に3回・1日に20回までの上限があります。",
      "notes": "送り先は、この端末のみです。他のユーザーへは送れません。"
    },
    {
      "name": "ui.dialog",
      "permission": null,
      "args": {},
      "returns": {
        "accepted": "boolean",
        "value": "string|boolean|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "OS の確認ダイアログ（OK/キャンセルなど）を表示し、選択結果を返します。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "browser.open",
      "permission": "browser.open",
      "args": {
        "url": "HTTPS URL"
      },
      "returns": {
        "opened": "boolean"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "指定した HTTPS の URL を、アプリ内のブラウザで開きます。",
      "example": "await window.CITHub.call('browser.open', { url: 'https://www.it-chiba.ac.jp/' });",
      "notes": "ボタン操作の中で呼び出す必要があります。http は開けません。"
    },
    {
      "name": "browser.openExternal",
      "permission": "browser.open",
      "args": {
        "url": "HTTPS URL"
      },
      "returns": {
        "opened": "boolean"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "指定した HTTPS の URL を、Safari など外部のブラウザで開きます。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "map.directions",
      "permission": null,
      "args": {
        "latitude": "number",
        "longitude": "number",
        "name": "string",
        "mode": "walking|driving|transit"
      },
      "returns": {
        "opened": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "地図アプリで、指定した場所（latitude, longitude, name）までの経路を開きます。mode は walking / driving / transit です。"
    },
    {
      "name": "host.navigate",
      "permission": "host.navigate",
      "args": {
        "kind": "page|service|cameras",
        "value": "string"
      },
      "returns": {
        "opened": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "CIT Hub 内の画面（時間割・ToDo・学内サービスなど）へ移動します。kind と value で行き先を指定します（host.navigate 権限）。"
    },
    {
      "name": "host.registerAction",
      "permission": "host.navigate",
      "args": {},
      "returns": {
        "registered": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "CIT Hub 内に、この拡張機能から開けるクイックアクションを登録します。id, title, route を渡します（最大8件）。"
    },
    {
      "name": "host.registerShortcut",
      "permission": "host.navigate",
      "args": {},
      "returns": {
        "registered": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "CIT Hub のショートカット（拡張機能から素早く開く入口）を登録します。Android ではランチャーのショートカットにもなります。"
    },
    {
      "name": "extension.route",
      "permission": null,
      "args": {
        "action": "lookup|open|request|link",
        "id": "string"
      },
      "returns": {
        "opened": "boolean",
        "item": "Extension|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "他の拡張機能を調べたり、開いたり、リンクを作ったりします（action: lookup|open|request|link）。"
    },
    {
      "name": "search.registerItems",
      "permission": "extensions.read",
      "args": {},
      "returns": {
        "indexed": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "CIT Hub の検索や端末の検索に、この拡張機能のデータ（items）を登録します。"
    },
    {
      "name": "search.removeItems",
      "permission": "extensions.read",
      "args": {},
      "returns": {
        "removed": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "検索に登録したデータを、ids を指定して取り除きます。"
    },
    {
      "name": "widget.define",
      "permission": null,
      "args": {},
      "returns": {
        "registered": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "CIT Hub 内のウィジェットの表示内容を登録します。ホーム画面の OS ウィジェットではありません。"
    },
    {
      "name": "widget.reload",
      "permission": null,
      "args": {},
      "returns": {
        "reloaded": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "ui",
      "summary": "登録したウィジェット（id を指定）の表示を更新します。"
    },
    {
      "name": "permissions.status",
      "permission": null,
      "args": {
        "permission": "string"
      },
      "returns": {
        "status": "granted|denied|prompt|undeclared|unsupported"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "権限の状態（granted / denied / prompt / undeclared / unsupported）を返します。「カメラが許可されていないので設定を案内する」といった分岐に使います。",
      "example": "const { status } = await window.CITHub.call('permissions.status', { permission: 'camera.use' });"
    },
    {
      "name": "permissions.request",
      "permission": "the requested permission",
      "args": {
        "permission": "string"
      },
      "returns": {
        "status": "granted|denied|prompt|unsupported"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "OS の許可（カメラ・位置情報・通知など）を、利用者に求めます。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "permissions.openSettings",
      "permission": "settings.open",
      "args": {},
      "returns": {
        "opened": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "OS の設定アプリを開きます。許可を拒否された利用者に、変更を案内するときに使います（settings.open 権限）。"
    },
    {
      "name": "app.version",
      "permission": null,
      "args": {},
      "returns": {
        "value": "string"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "拡張機能（自分自身）のバージョンを返します。"
    },
    {
      "name": "app.extensionId",
      "permission": null,
      "args": {},
      "returns": {
        "value": "string"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "この拡張機能の ID を返します。"
    },
    {
      "name": "app.environment",
      "permission": null,
      "args": {},
      "returns": {
        "value": "development|production"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "開発版（development）か公開版（production）かを返します。"
    },
    {
      "name": "app.hostVersion",
      "permission": null,
      "args": {},
      "returns": {
        "value": "string"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "動作している CIT Hub の Host API のバージョン番号を返します。"
    },
    {
      "name": "app.capabilities",
      "permission": null,
      "args": {},
      "returns": {
        "capabilities": "string[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "この拡張機能がいま呼び出せる操作の名前を、すべて返します。"
    },
    {
      "name": "capabilities.has",
      "permission": null,
      "args": {},
      "returns": {
        "available": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "指定した操作（name）が、いま使えるかを true/false で返します。新しい機能を使う前に確認します。",
      "example": "const ok = await window.CITHub.call('capabilities.has', { name: 'camera.scan' });"
    },
    {
      "name": "auth.tokenStatus",
      "permission": null,
      "args": {},
      "returns": {
        "authenticated": "boolean?",
        "provider": "string?",
        "expiresAt": "ISO datetime|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "CIT Hub のログイン状態を返します（トークンそのものは渡されません）。"
    },
    {
      "name": "auth.logout",
      "permission": null,
      "args": {},
      "returns": {
        "authenticated": "boolean?",
        "provider": "string?",
        "expiresAt": "ISO datetime|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "認証状態を「未認証」として返します。CIT Hub のアカウント自体からはログアウトされません。"
    },
    {
      "name": "analytics.event",
      "permission": "analytics.collect",
      "args": {},
      "returns": {
        "recorded": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "permissions",
      "summary": "固定名のイベントを1件記録します。保存されるのは、拡張機能ごとの日別の件数だけで、ユーザーや端末は特定されません（analytics.collect 権限）。"
    },
    {
      "name": "network.fetch",
      "permission": "network.fetch",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "承認された接続先（manifest の network）へ、HTTPS でリクエストします。",
      "notes": "接続先の宣言と審査が必要です。HTML から直接 fetch は使えません。"
    },
    {
      "name": "network.status",
      "permission": "network.status",
      "args": {},
      "returns": {
        "connected": "boolean",
        "transport": "wifi|cellular|ethernet|other|none",
        "metered": "boolean|null",
        "internetValidated": "boolean|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "端末がネットワークに接続しているか、Wi-Fi か回線かを返します。"
    },
    {
      "name": "network.watch",
      "permission": "network.status",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "Wi-Fi・回線・オフラインの切り替わりを、イベントで受け取り始めます。オフライン表示などに使います。"
    },
    {
      "name": "network.unwatch",
      "permission": "network.status",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "network.watch で始めた、通信状態の変化の通知を止めます。"
    },
    {
      "name": "network.uploadFile",
      "permission": "network.fetch + files.storage",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "選んだファイルを、承認された接続先へ送ります。"
    },
    {
      "name": "network.downloadFile",
      "permission": "network.fetch + files.storage",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "承認された接続先からファイルを受け取り、拡張機能専用の領域に保存します。"
    },
    {
      "name": "network.websocket.connect",
      "permission": "network.fetch",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "承認された接続先と WebSocket でつなぎます。"
    },
    {
      "name": "network.websocket.send",
      "permission": "network.fetch",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "つないだ WebSocket にメッセージを送ります。"
    },
    {
      "name": "network.websocket.close",
      "permission": "network.fetch",
      "args": {},
      "returns": {
        "connected": "boolean?",
        "transport": "string?",
        "response": "NetworkResponse?",
        "id": "string?",
        "loadedBytes": "number?",
        "totalBytes": "number|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "network",
      "summary": "WebSocket の接続を閉じます。"
    },
    {
      "name": "cloud.user.get",
      "permission": "cloud.storage",
      "args": {},
      "returns": {
        "value": "JSON value|null",
        "revision": "number?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "ユーザー専用のクラウド領域から、値を取り出します（複数端末で共有されます）。"
    },
    {
      "name": "cloud.user.set",
      "permission": "cloud.storage",
      "args": {},
      "returns": {
        "value": "JSON value|null",
        "revision": "number?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "ユーザー専用のクラウド領域に、値を保存します。"
    },
    {
      "name": "cloud.user.delete",
      "permission": "cloud.storage",
      "args": {},
      "returns": {
        "value": "JSON value|null",
        "revision": "number?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "ユーザー専用のクラウド領域の値を、消します。"
    },
    {
      "name": "server.kv.get",
      "permission": "cloud.storage",
      "args": {
        "key": "string (A-Za-z, 1-90)"
      },
      "returns": {
        "value": "JSON value|null",
        "revision": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "拡張機能のサーバー上のキー・バリュー保存から、値を取り出します。"
    },
    {
      "name": "server.kv.set",
      "permission": "cloud.storage",
      "args": {
        "key": "string (A-Za-z, 1-90)",
        "value": "JSON value? (set only)",
        "expectedRevision": "number >= 0 (set/delete)"
      },
      "returns": {
        "revision": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "サーバー上のキー・バリュー保存に、値を書き込みます。expectedRevision で、他の端末の更新との衝突を防ぎます。"
    },
    {
      "name": "server.kv.delete",
      "permission": "cloud.storage",
      "args": {
        "key": "string (A-Za-z, 1-90)",
        "expectedRevision": "number >= 0"
      },
      "returns": {
        "deleted": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "サーバー上のキー・バリュー保存から、値を消します。"
    },
    {
      "name": "server.db",
      "permission": "cloud.storage",
      "args": {
        "action": "'insert'|'query'|'update'|'delete'|'transaction'",
        "operations": "ServerDbAction[]? (transaction only)",
        "table": "string (A-Za-z, 1-64)",
        "id": "string (A-Za-z0-9_.-, 1-128)",
        "value": "JSON object (max 16 KiB)",
        "filters": "ServerFilter[]? (query only)",
        "limit": "number? (1-100)",
        "cursor": "string? (query only)",
        "expectedRevision": "number? (update/delete)"
      },
      "returns": {
        "id": "string?",
        "value": "JSON object?",
        "revision": "number?",
        "rows": "ServerRecord[]?",
        "nextCursor": "string|null",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "拡張機能専用のサーバー上のデータベースを、action（insert / query / update / delete / transaction）で操作する汎用の入口です。"
    },
    {
      "name": "server.db.insert",
      "permission": "cloud.storage",
      "args": {
        "table": "string (A-Za-z, 1-64)",
        "id": "string (A-Za-z0-9_.-, 1-128)",
        "value": "JSON object (max 16 KiB)"
      },
      "returns": {
        "id": "string",
        "value": "JSON object",
        "revision": "number",
        "updatedAt": "ISO datetime"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "データベースにレコードを1件追加します（1件16KiBまで）。"
    },
    {
      "name": "server.db.query",
      "permission": "cloud.storage",
      "args": {
        "table": "string",
        "filters": "ServerFilter[]?",
        "limit": "number? (1-100)",
        "cursor": "string?"
      },
      "returns": {
        "rows": "ServerRecord[]",
        "nextCursor": "string|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "データベースからレコードを検索します（filters、limit、cursor でページ送り）。"
    },
    {
      "name": "server.db.update",
      "permission": "cloud.storage",
      "args": {
        "table": "string",
        "id": "string",
        "value": "JSON object",
        "expectedRevision": "number >= 1"
      },
      "returns": {
        "id": "string",
        "value": "JSON object",
        "revision": "number",
        "updatedAt": "ISO datetime"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "レコードを更新します。expectedRevision で、他の端末の更新との衝突を防ぎます。"
    },
    {
      "name": "server.db.delete",
      "permission": "cloud.storage",
      "args": {
        "table": "string",
        "id": "string",
        "expectedRevision": "number >= 1"
      },
      "returns": {
        "deleted": "boolean"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "データベースのレコードを1件、id を指定して削除します。expectedRevision で、他の端末の更新との衝突を防ぎます。"
    },
    {
      "name": "server.db.transaction",
      "permission": "cloud.storage",
      "args": {
        "operations": "ServerDbAction[] (1-32)"
      },
      "returns": {
        "results": "ServerDbResult[]"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "複数の追加・更新・削除を、まとめて1回の処理として行います（1〜32件）。"
    },
    {
      "name": "server.data",
      "permission": null,
      "args": {
        "action": "string",
        "value": "JSON value?"
      },
      "returns": {
        "value": "JSON value|null",
        "revision": "number?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "拡張機能のサーバー上のデータを扱う汎用の入口です（action と value）。"
    },
    {
      "name": "server.collaboration",
      "permission": null,
      "args": {
        "action": "string",
        "value": "JSON value?"
      },
      "returns": {
        "value": "JSON value|null",
        "revision": "number?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "複数の利用者が共有するデータ（グループでの共同利用）を扱います。"
    },
    {
      "name": "server.files",
      "permission": "server.functions or cloud.storage",
      "args": "operation-specific JSON; see review-approved function schema",
      "returns": {
        "key": "string",
        "name": "string",
        "size": "number?",
        "mimeType": "string?",
        "data": "base64 string?",
        "deleted": "boolean?"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "サーバー上のファイル領域（暗号化）を、list / get / put / delete で扱います。1ファイル256KiB、1領域5MiB・100ファイルまでです。"
    },
    {
      "name": "server.function",
      "permission": "server.functions",
      "args": {
        "name": "string (A-Za-z, 1-64)",
        "input": "JSON value?"
      },
      "returns": {
        "value": "JSON value",
        "executionMs": "number"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "審査で承認された、拡張機能サーバー上の関数（name）を実行して結果を受け取ります。"
    },
    {
      "name": "server.cron",
      "permission": null,
      "args": {
        "action": "register|unregister|status",
        "schedule": "string?",
        "payload": "JSON object?"
      },
      "returns": {
        "id": "string?",
        "state": "registered|stopped|failed|not_found",
        "nextRunAt": "ISO datetime|null",
        "lastError": "string|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "定期実行の登録・解除・状態確認を、action で行う汎用の入口です。"
    },
    {
      "name": "server.cron.register",
      "permission": "server.functions",
      "args": {
        "name": "string (A-Za-z, 1-64)",
        "input": "JSON value?",
        "intervalSeconds": "number? (>=900)"
      },
      "returns": {
        "id": "string?",
        "state": "registered|stopped|failed|not_found",
        "nextRunAt": "ISO datetime|null",
        "lastError": "string|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "承認済みのサーバー関数を、一定の間隔（900秒以上）で定期実行するように登録します。",
      "notes": "ボタン操作の中で呼び出す必要があります。実行は、サーバーの都合による目安の間隔です。"
    },
    {
      "name": "server.cron.unregister",
      "permission": "server.functions",
      "args": {
        "name": "string (A-Za-z, 1-64)"
      },
      "returns": {
        "id": "string?",
        "state": "registered|stopped|failed|not_found",
        "nextRunAt": "ISO datetime|null",
        "lastError": "string|null"
      },
      "gesture": true,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "server.cron.register で登録した定期実行を、解除して止めます。",
      "notes": "ボタン操作の中で呼び出す必要があります。"
    },
    {
      "name": "server.cron.status",
      "permission": "server.functions",
      "args": {
        "name": "string (A-Za-z, 1-64)"
      },
      "returns": {
        "id": "string?",
        "state": "registered|stopped|failed|not_found",
        "nextRunAt": "ISO datetime|null",
        "lastError": "string|null"
      },
      "gesture": false,
      "platforms": [
        "iOS",
        "iPadOS",
        "macOS",
        "Android"
      ],
      "category": "server",
      "summary": "定期実行の登録状態と、次回の実行予定を返します。"
    }
  ],
  "operationCount": 136,
  "categories": [
    {
      "id": "timetable",
      "title": "時間割・授業",
      "intro": "履修している授業と時間割を読み取ります。「次の授業は何か」「今日の空きコマはいつか」のような機能に使います。時間割の操作はすべて timetable.read 権限が必要です。曜日 weekday は 0=日曜〜6=土曜です。"
    },
    {
      "id": "assignments",
      "title": "課題",
      "intro": "manaba の課題を読み取ります。締切が近い順の一覧、授業ごとの課題、検索などを作れます（assignments.read 権限）。課題は取得済みのものだけが対象で、提出や編集はできません。"
    },
    {
      "id": "todo",
      "title": "ToDo・授業メモ",
      "intro": "CIT Hub の ToDo と授業メモを読み書きします。読み取りは todos.read / courseNotes.read、書き込みは todos.write / courseNotes.write の権限が必要です。"
    },
    {
      "id": "campus",
      "title": "学校・アプリの設定データ",
      "intro": "学年暦の週番号、表示言語、そのほかアプリが持つ本人用データを読み取ります。"
    },
    {
      "id": "storage",
      "title": "端末内の保存",
      "intro": "拡張機能の入力内容や進み具合を、この端末に保存して次回に復元します。ブラウザの localStorage や Cookie は保存されないので、必ずこの操作を使ってください。保存先は、ユーザーと拡張機能ごとに分かれています。"
    },
    {
      "id": "files",
      "title": "ファイルと画像",
      "intro": "拡張機能専用のファイル領域（files.storage）と、利用者が選んだファイル（files.selection.*）を扱います。選んだファイルは、権限を持つ拡張機能だけが中身を読めます。"
    },
    {
      "id": "capture",
      "title": "カメラ・録音・スキャン",
      "intro": "撮影、録音、QR/バーコード読み取り、書類スキャンをします。いずれも利用者がボタンを押した操作の中で呼び出す必要があり、OS の許可（カメラ・マイク）も別に求められます。"
    },
    {
      "id": "share",
      "title": "写真・共有",
      "intro": "写真を端末に保存したり、OS の共有シートで文字・URL・ファイルを渡したりします。保存や共有の前には、OS の確認画面が出ます。"
    },
    {
      "id": "device",
      "title": "端末・センサー・位置情報",
      "intro": "端末の種類や画面サイズ、センサー、現在地、触覚フィードバック、アクセシビリティの状態を調べます。"
    },
    {
      "id": "notification",
      "title": "通知",
      "intro": "指定した日時にローカル通知を出します（notifications.schedule 権限）。通知の許可は OS 側でも必要で、設定は利用者の操作から行います。"
    },
    {
      "id": "ui",
      "title": "画面・連携",
      "intro": "ダイアログ表示、ブラウザやマップを開く、CIT Hub 内の画面へ移動する、ホーム用のウィジェットやショートカットを登録する、といった画面まわりの連携です。"
    },
    {
      "id": "permissions",
      "title": "権限・アプリ情報",
      "intro": "権限の状態を調べて必要に応じて要求したり、CIT Hub のバージョンや動作環境を確認したりします。機能が使えない端末で画面を切り替えるときに使います。"
    },
    {
      "id": "network",
      "title": "通信",
      "intro": "承認された接続先との通信、ファイルの送受信、WebSocket、通信状態の監視です。manifest に接続先（network）と network.fetch 権限を宣言し、審査で承認される必要があります。HTML から直接 fetch は使えません。"
    },
    {
      "id": "server",
      "title": "拡張機能サーバー",
      "intro": "拡張機能ごとに分離された、サーバー上の保存領域と処理です。複数の端末で同じデータを使いたいときや、定期的な処理をしたいときに使います。宣言した権限（cloud.storage / server.functions）と審査が必要で、保存データは暗号化されます。"
    }
  ]
}
