# 授權項目和 tool 的對照

| 授權項目 | 名稱 | tool |
| --- | --- | --- |
| `customers:read` | 查客戶 | `customer_get`、`customer_search` |
| `customers:manage` | 新增、修改、刪除客戶 | `customer_create`、`customer_update` |
| `products:read` | 查商品 | `product_get`、`product_search` |
| `products:manage` | 新增、修改、刪除商品 | `product_create`、`product_delete`、`product_update` |
| `quotes:read` | 查報價單 | `quote_get`、`quote_search` |
| `quotes:write` | 建立和修改報價單 | `quote_create`、`quote_set_status`、`quote_update`、`quote_update_agent_data` |
| `quotes:convert` | 報價單轉訂單 | `quote_convert` |
| `quotes:send` | 寄報價單 | `quote_send` |
| `orders:read` | 查訂單、試算 | `order_get`、`order_search` |
| `orders:create` | 成立訂單 | `order_create` |
| `orders:update` | 修改訂單 | `order_update`、`order_update_agent_data` |
| `orders:cancel` | 取消訂單 | `order_cancel` |
| `orders:send` | 寄訂單確認信 | `order_send` |
| `bills:read` | 查請款單 | `bill_get`、`bill_search` |
| `bills:create` | 開請款單 | `bill_create` |
| `bills:update` | 改到期日、重產分享連結 | `bill_regenerate_share_link`、`bill_update_due_date` |
| `bills:cancel` | 取消請款單 | `bill_cancel` |
| `bills:send` | 寄請款信 | `bill_send`、`email_resend` |
| `payments:read` | 查付款和金流交易 | `gateway_transaction_search`、`payment_search`、`unmatched_payment_search` |
| `payments:record` | 記錄付款、對款項 | `gateway_transaction_query`、`payment_record`、`unmatched_payment_resolve` |
| `payments:void` | 作廢付款 | `payment_void` |
| `refunds:read` | 查退款 | `refund_search` |
| `refunds:create` | 記錄退款 | `refund_create` |
| `refunds:void` | 作廢退款 | `refund_void` |
| `einvoices:read` | 查發票 | `einvoice_search` |
| `einvoices:issue` | 開立發票 | `einvoice_issue`、`einvoice_sync` |
| `einvoices:void` | 作廢發票和折讓 | `einvoice_allowance_void`、`einvoice_void` |
| `einvoices:allowance` | 開折讓 | `einvoice_allowance_issue` |
| `emails:read` | 查寄信紀錄 | `email_log_search` |
| `reminders:read` | 看催收預定 | `reminder_forecast` |
| `reminders:send` | 馬上催收 | `reminder_send`、`reminder_set_auto` |
| `reports:read` | 看儀表板和報表 | `report_get` |
| `settings:read` | 看設定 | `provider_setting_list`、`settings_get` |
| `pii:read` | 看買方個資 | `bill_regenerate_share_link`、`customer_update`、`order_update`、`quote_update` |
| `audit:read` | 查稽核紀錄 | `audit_log_search` |

不用授權項目的 tool：`approval_get`、`plan_get`、`workspace_get_context`

有條件另要授權項目的：

- `bill_search`：keyword 像 Email 或電話時，另外要 pii:read。
- `customer_search`：keyword 像 Email 或電話時，另外要 pii:read。
- `einvoice_search`：keyword 像 Email 或電話時，另外要 pii:read。
- `email_log_search`：keyword 像 Email 或電話時，另外要 pii:read。
- `order_create`：issue_bill 是 true（沒帶也是）時，另外要 bills:create；帶 customer_id 從客戶帶入資料時，另外要 customers:read。
- `order_search`：keyword 像 Email 或電話時，另外要 pii:read。
- `quote_convert`：issue_bill 是 true（沒帶也是）時，另外要 bills:create。
- `quote_create`：帶 customer_id 從客戶帶入資料時，另外要 customers:read。
- `quote_search`：keyword 像 Email 或電話時，另外要 pii:read。
- `refund_create`：issue_allowance 是 true 時，另外要 einvoices:allowance。
