mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 11:34:59 +08:00
+168
-2
@@ -108,16 +108,114 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: Admin links and allowlisted control actions.
|
||||
/admin/schedules:
|
||||
get:
|
||||
summary: List Rust-owned resource workflow schedules
|
||||
parameters:
|
||||
- name: id
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: group
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
enum: [res, parse, i18n]
|
||||
- name: enabled
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
responses:
|
||||
"200":
|
||||
description: Current schedule JSON report.
|
||||
"401":
|
||||
description: Missing or invalid admin token.
|
||||
"503":
|
||||
description: Rust bat schedule backend is unavailable.
|
||||
/admin/translation/tasks:
|
||||
get:
|
||||
summary: List Rust-owned translation task worker status
|
||||
parameters:
|
||||
- name: offset
|
||||
in: query
|
||||
schema:
|
||||
type: integer
|
||||
minimum: 0
|
||||
- name: limit
|
||||
in: query
|
||||
schema:
|
||||
type: integer
|
||||
minimum: 1
|
||||
maximum: 1000
|
||||
- name: task_id
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: release_id
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: destination
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: archive_entry
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: status
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: worker_status
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: parse_status
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: format
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
- name: has_reason
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
- name: has_failure_reason
|
||||
in: query
|
||||
schema:
|
||||
type: boolean
|
||||
responses:
|
||||
"200":
|
||||
description: Current translation task JSON report from Rust bat.
|
||||
"400":
|
||||
description: Invalid translation task query.
|
||||
"401":
|
||||
description: Missing or invalid admin token.
|
||||
"503":
|
||||
description: Rust bat translation backend is unavailable.
|
||||
/admin/translation/handoff:
|
||||
get:
|
||||
summary: Read Rust-owned translation handoff state
|
||||
responses:
|
||||
"200":
|
||||
description: Current translation handoff JSON report from Rust bat.
|
||||
"401":
|
||||
description: Missing or invalid admin token.
|
||||
"503":
|
||||
description: Rust bat translation backend is unavailable.
|
||||
/admin/control/{action}:
|
||||
post:
|
||||
summary: Forward an allowlisted control action to Rust bat
|
||||
summary: Forward an allowlisted control or schedule action to Rust bat
|
||||
parameters:
|
||||
- name: action
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
enum: [reload, refresh, restart, sync, verify, repair, catalog-refresh]
|
||||
enum: [reload, refresh, restart, sync, verify, repair, catalog-refresh, schedule-add, schedule-update, schedule-remove, schedule-run, translation-task-update, translation-worker-run, translation-proofread]
|
||||
requestBody:
|
||||
required: false
|
||||
content:
|
||||
@@ -128,6 +226,74 @@ paths:
|
||||
properties:
|
||||
force:
|
||||
type: boolean
|
||||
id:
|
||||
type: string
|
||||
group:
|
||||
type: string
|
||||
action:
|
||||
type: string
|
||||
args:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
next_run_unix_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
delay_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
every_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
count:
|
||||
type: integer
|
||||
format: int64
|
||||
max_runs:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
clear_args:
|
||||
type: boolean
|
||||
clear_every:
|
||||
type: boolean
|
||||
enabled:
|
||||
type: boolean
|
||||
task_id:
|
||||
type: string
|
||||
status:
|
||||
type: string
|
||||
failure_reason:
|
||||
type: string
|
||||
provider_run_id:
|
||||
type: string
|
||||
provider:
|
||||
type: string
|
||||
enum: [mock, crowdin]
|
||||
fixture_path:
|
||||
type: string
|
||||
concurrency:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
maximum: 256
|
||||
max_attempts:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
lease_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
retry_backoff_seconds:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 0
|
||||
max_tasks:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 1
|
||||
worker_id:
|
||||
type: string
|
||||
responses:
|
||||
"202":
|
||||
description: Rust bat accepted the control request.
|
||||
|
||||
Reference in New Issue
Block a user