mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(i8-i9): webhook DEAD replay, read-only delivery status, and callback UI
I8: platform proxies replay to webhook; webhook ops token filter and internal replay endpoint; delivery service supports read/replay flows. I9: platform GET callback webhook delivery status by inbox id; UI shows read-only status block and handles load errors without blocking the page. Also refresh OpenAPI, Runbook notes, test fixtures and YAML; fix Vite dev axios baseURL so /api uses proxy; improve login error messaging. Made-with: Cursor
This commit is contained in:
@@ -244,6 +244,22 @@ export function patchCallbackInboxLink(id, body) {
|
||||
return axios.patch(`/api/v1/callback-inbox/${id}/link`, body);
|
||||
}
|
||||
|
||||
/**
|
||||
* I8:将 Webhook 侧 DEAD 出库按收据 ID 重新入队(需平台配置 LICENSE_WEBHOOK_*)。
|
||||
* @param {string | number} id — callback inbox id
|
||||
*/
|
||||
export function replayCallbackWebhookDelivery(id) {
|
||||
return axios.post(`/api/v1/callback-inbox/${id}/replay-webhook-delivery`);
|
||||
}
|
||||
|
||||
/**
|
||||
* I9:只读查询 Webhook 侧平台投递行状态(需 LICENSE_WEBHOOK_*)。
|
||||
* @param {string | number} id — callback inbox id
|
||||
*/
|
||||
export function getCallbackWebhookDelivery(id) {
|
||||
return axios.get(`/api/v1/callback-inbox/${id}/webhook-delivery`);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {{ page?: number, size?: number }} params
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user