cpa批量打包导出codex认证文件
- 内容介绍
- 文章标签
- 相关推荐
没找到cpa批量导出的按钮,只能用codex胡一个脚本了
(async () => {
/* =========================
* 可修改配置
* ========================= */
const CONCURRENCY = 5; // 并发数,默认 5
const EXPORT_TYPE = 'codex'; // 仅导出 type=codex
const PLAN_TYPE = ''; // '', 'all', 'free', 'team', 'plus', 'pro', 'enterprise', 'edu'
const IS_OUTPUT_ONLY_ACTIVE_JSON = false; // true 时,仅导出 status=active
const ZIP_NAME = 'cpa-codex-jsons.zip';
const REQUEST_TIMEOUT_MS = 30000; // XHR 超时毫秒数
const admin_password = ''; // cpa管理后台登录密码
/* =========================
* 固定配置
* ========================= */
const LIST_URL = new URL('/v0/management/auth-files', location.origin).toString();
const DOWNLOAD_URL = new URL('/v0/management/auth-files/download', location.origin).toString();
const SAFE_CONCURRENCY =
Number.isFinite(CONCURRENCY) && CONCURRENCY > 0 ? Math.floor(CONCURRENCY) : 5;
const ALLOWED_PLAN_TYPES = new Set([
'all',
'fre
没找到cpa批量导出的按钮,只能用codex胡一个脚本了
(async () => {
/* =========================
* 可修改配置
* ========================= */
const CONCURRENCY = 5; // 并发数,默认 5
const EXPORT_TYPE = 'codex'; // 仅导出 type=codex
const PLAN_TYPE = ''; // '', 'all', 'free', 'team', 'plus', 'pro', 'enterprise', 'edu'
const IS_OUTPUT_ONLY_ACTIVE_JSON = false; // true 时,仅导出 status=active
const ZIP_NAME = 'cpa-codex-jsons.zip';
const REQUEST_TIMEOUT_MS = 30000; // XHR 超时毫秒数
const admin_password = ''; // cpa管理后台登录密码
/* =========================
* 固定配置
* ========================= */
const LIST_URL = new URL('/v0/management/auth-files', location.origin).toString();
const DOWNLOAD_URL = new URL('/v0/management/auth-files/download', location.origin).toString();
const SAFE_CONCURRENCY =
Number.isFinite(CONCURRENCY) && CONCURRENCY > 0 ? Math.floor(CONCURRENCY) : 5;
const ALLOWED_PLAN_TYPES = new Set([
'all',
'fre

