@byte_fluffy/nexra-sdk 0.1.0-alpha.5 → 0.1.0-alpha.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,945 @@
1
+ // ../contracts/src/assets.ts
2
+ var MEDIA_KINDS = [
3
+ "image",
4
+ "video",
5
+ "audio",
6
+ "document",
7
+ "archive",
8
+ "other"
9
+ ];
10
+
11
+ // ../contracts/src/public-error-catalog.ts
12
+ var PUBLIC_ERROR_CATALOG = {
13
+ invalid_model_quotation_selection: { "zh-CN": "\u6240\u9009\u6A21\u578B\u6216\u6E20\u9053\u5DF2\u4E0D\u53EF\u5BFC\u51FA\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u540E\u91CD\u8BD5\u3002", en: "The selected models or channels are no longer available for export. Update your selection and try again." },
14
+ api_key_spending_limit_exceeded: { "zh-CN": "\u5F53\u524D\u5BC6\u94A5\u7684\u5269\u4F59\u6D88\u8D39\u989D\u5EA6\u4E0D\u8DB3\uFF0C\u8BF7\u8054\u7CFB\u7EC4\u7EC7\u7BA1\u7406\u5458\u589E\u52A0\u989D\u5EA6\u3002", en: "This key has insufficient remaining spending allowance. Ask an organization administrator to increase it." },
15
+ organization_key_limit_invalid: { "zh-CN": "\u8BF7\u8F93\u5165\u6709\u6548\u7684\u6D88\u8D39\u989D\u5EA6\uFF0C\u91D1\u989D\u6700\u591A\u4FDD\u7559 8 \u4F4D\u5C0F\u6570\uFF1B\u8C03\u6574\u91D1\u989D\u987B\u5927\u4E8E 0\u3002", en: "Enter a valid spending allowance with up to 8 decimal places. An adjustment must be greater than zero." },
16
+ organization_key_limit_unset: { "zh-CN": "\u5F53\u524D\u5BC6\u94A5\u5C1A\u672A\u8BBE\u7F6E\u6D88\u8D39\u989D\u5EA6\uFF0C\u8BF7\u5148\u589E\u52A0\u989D\u5EA6\u540E\u518D\u51CF\u5C11\u3002", en: "This key has no spending allowance configured. Set it with an increase before decreasing it." },
17
+ organization_key_limit_below_committed: { "zh-CN": "\u8C03\u6574\u540E\u7684\u6D88\u8D39\u989D\u5EA6\u4E0D\u80FD\u4F4E\u4E8E\u5DF2\u6D88\u8D39\u4E0E\u8BF7\u6C42\u9884\u5360\u7684\u5408\u8BA1\u91D1\u989D\u3002", en: "The resulting allowance cannot be less than settled spending plus pending reservations." },
18
+ organization_key_limit_exceeds_wallet: { "zh-CN": "\u5BC6\u94A5\u53EF\u7528\u6D88\u8D39\u989D\u5EA6\u4E0D\u80FD\u8D85\u8FC7\u94B1\u5305\u5F53\u524D\u53EF\u7528\u4F59\u989D\uFF0C\u8BF7\u8C03\u6574\u989D\u5EA6\u6216\u5145\u503C\u540E\u91CD\u8BD5\u3002", en: "The key's available spending allowance cannot exceed the wallet's current available balance. Reduce it or add funds." },
19
+ organization_key_limit_conflict: { "zh-CN": "\u8FD9\u6B21\u989D\u5EA6\u64CD\u4F5C\u5DF2\u88AB\u5904\u7406\uFF0C\u8BF7\u5173\u95ED\u540E\u91CD\u65B0\u6253\u5F00\u518D\u8BD5\u3002", en: "This allowance change has already been processed. Close and reopen the form to try again." },
20
+ google_channel_rate_limited: { "zh-CN": "\u5F53\u524D\u6587\u672C\u6A21\u578B\u670D\u52A1\u7E41\u5FD9\u6216\u53D7\u5230\u9650\u6D41\uFF08429\uFF09\u3002\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF1B\u82E5\u6301\u7EED\u51FA\u73B0\uFF0C\u53EF\u5207\u6362\u5176\u4ED6\u6587\u672C\u6A21\u578B\uFF0C\u518D\u53D1\u9001\u6D88\u606F\u7EE7\u7EED\u3002", en: "The current text model service is busy or rate limited (429). Try again later; if the problem persists, switch to another text model and send a message to continue." },
21
+ queue_wait_timeout: { "zh-CN": "\u4EFB\u52A1\u6392\u961F\u7B49\u5F85\u6267\u884C\u8D85\u8FC7\u65F6\u9650\uFF0C\u5C1A\u672A\u63D0\u4EA4\u7ED9\u6A21\u578B\u670D\u52A1\u3002\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF1B\u6301\u7EED\u8D85\u65F6\u65F6\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The task exceeded its queue wait limit before submission to the model service. Try again later; contact a platform administrator with the request ID if queue timeouts persist." },
22
+ task_execution_timeout: { "zh-CN": "\u4EFB\u52A1\u8D85\u8FC7\u603B\u65F6\u9650\uFF0C\u5DF2\u7ED3\u675F\u3002\u4E0A\u6E38\u53EF\u80FD\u4ECD\u5728\u5904\u7406\uFF0C\u8BF7\u5148\u6838\u5BF9\u539F\u8BF7\u6C42\u7ED3\u679C\uFF0C\u907F\u514D\u91CD\u590D\u63D0\u4EA4\u3002", en: "The task exceeded its total time limit and has ended. The upstream service may still be processing it; check the original request before submitting again." },
23
+ authentication_required: { "zh-CN": "\u8BF7\u6C42\u672A\u63D0\u4F9B\u53EF\u7528\u7684 Nexra \u8EAB\u4EFD\u51ED\u8BC1\u3002\u8BF7\u767B\u5F55\u8D26\u6237\uFF0C\u6216\u5728\u8BF7\u6C42\u4E2D\u63D0\u4F9B\u6709\u6548\u7684 Nexra API Key\u3002", en: "The request has no usable Nexra credentials. Sign in or include a valid Nexra API key." },
24
+ invalid_api_key: { "zh-CN": "\u63D0\u4F9B\u7684 Nexra API Key \u672A\u901A\u8FC7\u9A8C\u8BC1\u3002\u8BF7\u68C0\u67E5 Key \u662F\u5426\u6B63\u786E\u3001\u4ECD\u6709\u6548\u4E14\u672A\u88AB\u64A4\u9500\u3002", en: "The Nexra API key could not be verified. Check that it is correct, still valid, and has not been revoked." },
25
+ permission_denied: { "zh-CN": "\u5F53\u524D\u8EAB\u4EFD\u65E0\u6743\u8BBF\u95EE\u8BE5\u8D44\u6E90\u6216\u6267\u884C\u6B64\u64CD\u4F5C\u3002\u8BF7\u786E\u8BA4\u8D44\u6E90\u5F52\u5C5E\uFF0C\u5E76\u8054\u7CFB\u7BA1\u7406\u5458\u6838\u5BF9\u8BBF\u95EE\u6743\u9650\u3002", en: "Your current identity cannot access this resource or perform this operation. Check resource ownership and ask an administrator to review your permissions." },
26
+ insufficient_balance: { "zh-CN": "\u8D26\u6237\u53EF\u7528\u4F59\u989D\u4E0D\u8DB3\u4EE5\u8986\u76D6\u672C\u6B21\u8BF7\u6C42\u3002\u8BF7\u6838\u5BF9\u4F59\u989D\u548C\u5DF2\u5360\u7528\u91D1\u989D\uFF0C\u5145\u503C\u6216\u964D\u4F4E\u8BF7\u6C42\u7528\u91CF\u3002", en: "Your available balance cannot cover this request. Review your balance and reserved funds, then add funds or reduce the requested usage." },
27
+ budget_exceeded: { "zh-CN": "\u9884\u7B97\u9650\u5236\u963B\u6B62\u4E86\u672C\u6B21\u8BF7\u6C42\u3002\u8BF7\u964D\u4F4E\u8BF7\u6C42\u7528\u91CF\uFF0C\u6216\u8054\u7CFB\u9884\u7B97\u7BA1\u7406\u8005\u6838\u5BF9\u9002\u7528\u989D\u5EA6\u3002", en: "A budget limit blocked this request. Reduce the requested usage or ask the budget owner to review the applicable limit." },
28
+ invalid_request: { "zh-CN": "\u8BF7\u6C42\u53C2\u6570\u4E0D\u7B26\u5408\u6B64\u63A5\u53E3\u6216\u6A21\u578B\u7684\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u5FC5\u586B\u5B57\u6BB5\u548C\u53C2\u6570\u53D6\u503C\uFF1B\u542B\u53C2\u8003\u7D20\u6750\u65F6\uFF0C\u68C0\u67E5\u6587\u4EF6\u5927\u5C0F\u3001\u683C\u5F0F\u53CA\u94FE\u63A5\u662F\u5426\u53EF\u8BFB\u53D6\u3002", en: "The request parameters do not meet this endpoint or model's requirements. Check required fields and parameter values; for reference assets, check file size, format, and whether the URL is accessible." },
29
+ input_too_large: { "zh-CN": "\u8BF7\u6C42\u8F93\u5165\u8D85\u8FC7\u4E86\u6A21\u578B\u6216\u63A5\u53E3\u5141\u8BB8\u7684\u5927\u5C0F\u3002\u8BF7\u7F29\u77ED\u6587\u672C\u3001\u51CF\u5C11\u53C2\u8003\u7D20\u6750\u6216\u538B\u7F29\u8F93\u5165\u6587\u4EF6\u3002", en: "The input exceeds the model or endpoint's size limit. Shorten the text, use fewer reference assets, or compress the input files." },
30
+ unsupported_format: { "zh-CN": "\u6A21\u578B\u6216\u63A5\u53E3\u4E0D\u652F\u6301\u5F53\u524D\u8F93\u5165\u683C\u5F0F\u3002\u8BF7\u4F7F\u7528\u53C2\u6570\u6587\u6863\u4E2D\u652F\u6301\u7684\u6587\u4EF6\u683C\u5F0F\u6216\u5185\u5BB9\u7C7B\u578B\u3002", en: "The model or endpoint does not support this input format. Use a file format or content type listed in the parameter documentation." },
31
+ model_not_found: { "zh-CN": "\u6307\u5B9A\u7684\u6A21\u578B\u65E0\u6CD5\u901A\u8FC7\u5F53\u524D\u63A5\u53E3\u8BBF\u95EE\u3002\u8BF7\u6838\u5BF9\u8BE5\u63A5\u53E3\u4F7F\u7528\u7684\u5B8C\u6574 Model ID\uFF0C\u4EE5\u53CA\u6A21\u578B\u662F\u5426\u5DF2\u5F00\u653E\u7ED9\u5F53\u524D\u8D26\u6237\u3002", en: "The specified model is not accessible through this endpoint. Check the endpoint's full model ID and whether the model is available to your account." },
32
+ model_unavailable: { "zh-CN": "\u6307\u5B9A\u6A21\u578B\u5F53\u524D\u65E0\u6CD5\u63D0\u4F9B\u670D\u52A1\u3002\u8BF7\u67E5\u770B\u6A21\u578B\u53EF\u7528\u72B6\u6001\uFF1B\u6301\u7EED\u4E0D\u53EF\u7528\u65F6\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The selected model cannot currently serve requests. Check its availability and contact a platform administrator if it remains unavailable." },
33
+ content_policy_violation: { "zh-CN": "\u8BF7\u6C42\u672A\u901A\u8FC7\u6A21\u578B\u670D\u52A1\u7684\u5185\u5BB9\u653F\u7B56\u5BA1\u6838\uFF0C\u8F93\u5165\u5185\u5BB9\u6216\u751F\u6210\u7ED3\u679C\u88AB\u62E6\u622A\u3002\u8BF7\u8C03\u6574\u63D0\u793A\u8BCD\u6216\u53C2\u8003\u7D20\u6750\u3002", en: "The model service blocked the input or generated result during content policy review. Adjust the prompt or reference assets." },
34
+ rate_limited: { "zh-CN": "\u8BF7\u6C42\u89E6\u53D1\u4E86\u670D\u52A1\u7684\u9891\u7387\u9650\u5236\u3002\u8BF7\u964D\u4F4E\u8C03\u7528\u9891\u7387\u6216\u5E76\u53D1\u91CF\u3002", en: "The request hit a service rate limit. Reduce the request frequency or concurrency." },
35
+ capacity_exceeded: { "zh-CN": "\u5F53\u524D\u6CA1\u6709\u8DB3\u591F\u7684\u6267\u884C\u5BB9\u91CF\u5904\u7406\u6B64\u8BF7\u6C42\u3002\u8BF7\u964D\u4F4E\u5E76\u53D1\u91CF\u6216\u7B49\u5F85\u5BB9\u91CF\u91CA\u653E\uFF1B\u5DF2\u6709\u4EFB\u52A1\u8BF7\u67E5\u8BE2\u539F\u4EFB\u52A1\u72B6\u6001\u3002", en: "There is not enough execution capacity for this request. Reduce concurrency or wait for capacity to become available; check the original task if one already exists." },
36
+ upstream_timeout: { "zh-CN": "\u6A21\u578B\u670D\u52A1\u672A\u5728\u89C4\u5B9A\u65F6\u95F4\u5185\u54CD\u5E94\u3002\u5982\u5DF2\u6709\u8BF7\u6C42\u6216\u4EFB\u52A1 ID\uFF0C\u8BF7\u5148\u67E5\u8BE2\u539F\u8BF7\u6C42\u72B6\u6001\uFF0C\u786E\u8BA4\u7ED3\u679C\u524D\u4E0D\u8981\u91CD\u590D\u63D0\u4EA4\uFF1B\u6301\u7EED\u8D85\u65F6\u65F6\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The model service did not respond within the time limit. If you have a request or task ID, check its status and do not submit again until the outcome is confirmed. Contact a platform administrator with the request ID if timeouts persist." },
37
+ upstream_busy: { "zh-CN": "\u6A21\u578B\u670D\u52A1\u5F53\u524D\u7E41\u5FD9\u3002\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF1B\u5982\u5DF2\u6709\u8BF7\u6C42\u6216\u4EFB\u52A1 ID\uFF0C\u8BF7\u5148\u6838\u5BF9\u539F\u8BF7\u6C42\u72B6\u6001\uFF0C\u907F\u514D\u91CD\u590D\u63D0\u4EA4\u3002", en: "The model service is currently busy. Try again later; if a request or task ID already exists, check its status first to avoid duplicate submissions." },
38
+ upstream_unavailable: { "zh-CN": "\u672C\u6B21\u6A21\u578B\u670D\u52A1\u8C03\u7528\u6682\u65F6\u4E0D\u53EF\u7528\u3002\u5982\u4EFB\u52A1\u5DF2\u7ECF\u63D0\u4EA4\uFF0C\u8BF7\u5148\u67E5\u8BE2\u539F\u4EFB\u52A1\u72B6\u6001\uFF1B\u6301\u7EED\u5F02\u5E38\u65F6\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u4E0A\u6E38\u670D\u52A1\u3002", en: "This call to the model service is currently unavailable. If a task has already been submitted, check its status first. Contact a platform administrator with the request ID if the problem persists." },
39
+ upstream_response_invalid: { "zh-CN": "\u6A21\u578B\u670D\u52A1\u8FD4\u56DE\u7684\u54CD\u5E94\u4E0D\u7B26\u5408\u63A5\u53E3\u7EA6\u5B9A\uFF0C\u5E73\u53F0\u65E0\u6CD5\u53EF\u9760\u8BFB\u53D6\u7ED3\u679C\u3002\u8BF7\u67E5\u770B\u53EF\u7528\u7684\u4E0A\u6E38\u9519\u8BEF\u8BE6\u60C5\u548C\u539F\u8BF7\u6C42\u72B6\u6001\uFF0C\u5E76\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The model service response does not meet the API contract, so the platform cannot read the result reliably. Check the available upstream error details and original request status, and contact a platform administrator with the request ID." },
40
+ upstream_image_missing: { "zh-CN": "\u6A21\u578B\u672A\u8FD4\u56DE\u56FE\u7247\u3002\u8BF7\u67E5\u770B\u6A21\u578B\u8FD4\u56DE\u7684\u5177\u4F53\u8BF4\u660E\uFF0C\u5E76\u6838\u5BF9\u539F\u8BF7\u6C42\u6216\u4EFB\u52A1\u72B6\u6001\u3002", en: "The model did not return an image. Review the model's explanation and check the original request or task status." },
41
+ upstream_error: { "zh-CN": "\u672C\u6B21\u6A21\u578B\u670D\u52A1\u8C03\u7528\u51FA\u73B0\u9519\u8BEF\uFF0C\u5177\u4F53\u539F\u56E0\u5C1A\u672A\u786E\u8BA4\u3002\u8BF7\u67E5\u770B\u53EF\u7528\u7684\u9519\u8BEF\u8BE6\u60C5\u548C\u539F\u8BF7\u6C42\u6216\u4EFB\u52A1\u72B6\u6001\uFF1B\u9700\u8981\u534F\u52A9\u65F6\u63D0\u4F9B\u8BF7\u6C42 ID\u3002", en: "This call to the model service encountered an error whose specific cause has not been confirmed. Check the available error details and the original request or task status, and provide the request ID when requesting assistance." },
42
+ execution_outcome_unknown: { "zh-CN": "\u6682\u65F6\u65E0\u6CD5\u786E\u8BA4\u539F\u8BF7\u6C42\u662F\u5426\u5DF2\u88AB\u53D7\u7406\u6216\u5B8C\u6210\u3002\u8BF7\u4F7F\u7528\u539F\u8BF7\u6C42\u6216\u4EFB\u52A1 ID \u67E5\u8BE2\u72B6\u6001\uFF0C\u786E\u8BA4\u7ED3\u679C\u524D\u4E0D\u8981\u91CD\u590D\u63D0\u4EA4\u3002", en: "It is not yet known whether the original request was accepted or completed. Check its status using the original request or task ID, and do not submit it again until the outcome is confirmed." },
43
+ stream_interrupted: { "zh-CN": "\u54CD\u5E94\u672A\u5B8C\u6574\u7ED3\u675F\uFF0C\u5DF2\u6536\u5230\u7684\u8F93\u51FA\u53EF\u80FD\u4E0D\u5B8C\u6574\u3002\u8BF7\u4FDD\u7559\u539F\u8BF7\u6C42 ID \u5E76\u67E5\u8BE2\u539F\u8BF7\u6C42\u72B6\u6001\uFF0C\u786E\u8BA4\u7ED3\u679C\u524D\u4E0D\u8981\u91CD\u590D\u63D0\u4EA4\u3002", en: "The response did not finish completely, so the output received may be incomplete. Keep the original request ID and check its status; do not submit again until the outcome is confirmed." },
44
+ task_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u53EF\u8BBF\u95EE\u7684\u4EFB\u52A1\u3002\u8BF7\u6838\u5BF9\u4EFB\u52A1 ID\uFF0C\u5E76\u4F7F\u7528\u521B\u5EFA\u4EFB\u52A1\u65F6\u6240\u5C5E\u8D26\u6237\u7684\u51ED\u8BC1\u67E5\u8BE2\u3002", en: "No task accessible to this account was found. Check the task ID and use credentials for the account that created it." },
45
+ request_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u53EF\u8BBF\u95EE\u7684\u8BF7\u6C42\u8BB0\u5F55\u3002\u8BF7\u6838\u5BF9\u8BF7\u6C42 ID \u548C\u8D26\u6237\u5F52\u5C5E\u3002", en: "No request record accessible to this account was found. Check the request ID and the account that owns it." },
46
+ idempotency_conflict: { "zh-CN": "\u6B64\u5E42\u7B49\u952E\u5DF2\u5173\u8054\u53E6\u4E00\u4EFD\u8BF7\u6C42\u5185\u5BB9\u3002\u67E5\u8BE2\u539F\u8BF7\u6C42\u65F6\u4FDD\u7559\u539F\u952E\uFF1B\u53EA\u6709\u786E\u8BA4\u8981\u53D1\u8D77\u72EC\u7ACB\u8BF7\u6C42\u65F6\uFF0C\u624D\u4E3A\u65B0\u5185\u5BB9\u4F7F\u7528\u65B0\u952E\u3002", en: "This idempotency key is already associated with different request content. Keep the original key when checking that request; use a new key only when intentionally creating a separate request." },
47
+ internal_error: { "zh-CN": "\u5E73\u53F0\u5728\u5904\u7406\u8BF7\u6C42\u65F6\u53D1\u751F\u5185\u90E8\u5F02\u5E38\u3002\u8BF7\u4FDD\u7559\u8BF7\u6C42 ID\uFF1B\u5DF2\u6709\u4EFB\u52A1\u5148\u67E5\u8BE2\u72B6\u6001\uFF0C\u5E76\u51ED\u8BE5 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6392\u67E5\u3002", en: "The platform encountered an internal error while processing the request. Keep the request ID, check any existing task's status, and contact a platform administrator with that ID." },
48
+ account_unavailable: { "zh-CN": "\u5F53\u524D\u8D26\u6237\u672A\u83B7\u51C6\u4F7F\u7528\u6B64\u670D\u52A1\u3002\u8BF7\u8054\u7CFB\u8D26\u6237\u7BA1\u7406\u5458\u6838\u5BF9\u8D26\u6237\u72B6\u6001\u548C\u8BBF\u95EE\u8BBE\u7F6E\u3002", en: "Your account is not currently permitted to use this service. Ask your account administrator to review its status and access settings." },
49
+ admin_required: { "zh-CN": "\u5F53\u524D\u8EAB\u4EFD\u4E0D\u5177\u5907\u6B64\u64CD\u4F5C\u6240\u9700\u7684\u7BA1\u7406\u5458\u6743\u9650\u3002\u8BF7\u4F7F\u7528\u7BA1\u7406\u5458\u8D26\u6237\uFF0C\u6216\u8054\u7CFB\u7BA1\u7406\u5458\u5904\u7406\u3002", en: "Your current identity lacks the administrator permissions required for this operation. Use an administrator account or ask an administrator to handle it." },
50
+ session_required: { "zh-CN": "\u6B64\u5165\u53E3\u53EA\u63A5\u53D7\u5DF2\u767B\u5F55\u7684\u8D26\u6237\u4F1A\u8BDD\u3002\u8BF7\u5728\u7F51\u9875\u4E2D\u767B\u5F55\u540E\u8BBF\u95EE\uFF0CAPI Key \u4E0D\u80FD\u66FF\u4EE3\u8BE5\u4F1A\u8BDD\u3002", en: "This endpoint requires a signed-in account session. Sign in through the web application; an API key cannot replace this session." },
51
+ origin_not_allowed: { "zh-CN": "\u5F53\u524D\u7F51\u9875\u6765\u6E90\u4E0D\u5728\u63A5\u53E3\u5141\u8BB8\u7684\u6765\u6E90\u8303\u56F4\u5185\u3002\u8BF7\u4F7F\u7528\u53D7\u4FE1\u4EFB\u7684\u7AD9\u70B9\uFF0C\u6216\u8054\u7CFB\u7BA1\u7406\u5458\u6838\u5BF9\u6765\u6E90\u914D\u7F6E\u3002", en: "The web page's origin is not allowed by this endpoint. Use a trusted site or ask an administrator to review the allowed origins." },
52
+ admin_user_conflict: { "zh-CN": "\u7528\u6237\u7BA1\u7406\u64CD\u4F5C\u4E0E\u5F53\u524D\u8D26\u6237\u72B6\u6001\u3001\u5E76\u53D1\u53D8\u66F4\u6216\u7BA1\u7406\u5458\u4FDD\u62A4\u89C4\u5219\u51B2\u7A81\u3002\u8BF7\u5237\u65B0\u7528\u6237\u8BB0\u5F55\uFF0C\u5E76\u6838\u5BF9\u7BA1\u7406\u5458\u5173\u7CFB\u548C\u64CD\u4F5C\u9650\u5236\u3002", en: "The user management operation conflicts with the account state, a concurrent change, or administrator safeguards. Refresh the user record and review administrator relationships and operation restrictions." },
53
+ organization_member_conflict: { "zh-CN": "\u8BE5\u7528\u6237\u5DF2\u662F\u672C\u7EC4\u7EC7\u7684\u6210\u5458\u3002", en: "This user is already a member of the organization." },
54
+ organization_super_admin_protected: { "zh-CN": "\u7EC4\u7EC7\u521B\u5EFA\u8005\u4E3A\u8D85\u7EA7\u7BA1\u7406\u5458\uFF0C\u4E0D\u80FD\u88AB\u964D\u7EA7\u6216\u79FB\u9664\u3002", en: "The organization creator is its super administrator and cannot be demoted or removed." },
55
+ organization_last_admin: { "zh-CN": "\u7EC4\u7EC7\u81F3\u5C11\u8981\u4FDD\u7559\u4E00\u540D\u7BA1\u7406\u5458\u3002", en: "An organization must retain at least one administrator." },
56
+ organization_key_assignee_unavailable: { "zh-CN": "\u53EA\u80FD\u5C06 Key \u5206\u914D\u7ED9\u672C\u7EC4\u7EC7\u7684\u6709\u6548\u6210\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002", en: "Keys can only be assigned to active members of this organization. Review the selected members." },
57
+ organization_invitation_unavailable: { "zh-CN": "\u9080\u8BF7\u94FE\u63A5\u65E0\u6548\u3001\u5DF2\u8FC7\u671F\u6216\u5DF2\u505C\u7528\uFF0C\u8BF7\u8054\u7CFB\u7EC4\u7EC7\u7BA1\u7406\u5458\u83B7\u53D6\u65B0\u94FE\u63A5\u3002", en: "This invitation link is invalid, expired, or disabled. Ask the organization administrator for a new link." },
58
+ organization_member_removed: { "zh-CN": "\u4F60\u5DF2\u88AB\u79FB\u51FA\u8BE5\u7EC4\u7EC7\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u901A\u8FC7\u7528\u6237 ID \u91CD\u65B0\u6DFB\u52A0\u3002", en: "You were removed from this organization. Ask an administrator to add your user ID again." },
59
+ organization_default_key_unavailable: { "zh-CN": "\u5F53\u524D\u7EC4\u7EC7\u6CA1\u6709\u53EF\u7528\u7684 API Key\uFF0C\u8BF7\u8054\u7CFB\u7EC4\u7EC7\u7BA1\u7406\u5458\u3002", en: "This organization has no available API key. Contact an organization administrator." },
60
+ organization_key_assignment_required: { "zh-CN": "\u6CA1\u6709\u5DF2\u5206\u914D\u7684\u53EF\u7528\u5BC6\u94A5\uFF0C\u8BF7\u8054\u7CFB\u7EC4\u7EC7\u7BA1\u7406\u5458\u5206\u914D\u3002", en: "No available key is assigned to you. Ask an organization administrator to assign one." },
61
+ organization_key_selection_required: { "zh-CN": "\u8BF7\u5148\u5728 Nexra \u4E2D\u9009\u62E9\u672C\u6B21\u8C03\u7528\u4F7F\u7528\u7684\u5BC6\u94A5\u3002", en: "Select a key in Nexra before making this request." },
62
+ organization_execution_key_unavailable: { "zh-CN": "\u6B64\u524D\u9009\u7528\u7684\u5BC6\u94A5\u5DF2\u4E0D\u53EF\u7528\u6216\u6743\u9650\u5DF2\u64A4\u56DE\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u6216\u8054\u7CFB\u7EC4\u7EC7\u7BA1\u7406\u5458\u3002", en: "Your selected key is unavailable or access was withdrawn. Select another key or contact an organization administrator." },
63
+ organization_default_key_change_unavailable: { "zh-CN": "\u81F3\u5C11\u9700\u8981\u4E24\u4E2A\u53EF\u7528\u7684\u7EC4\u7EC7 Key \u624D\u80FD\u66F4\u6539\u9ED8\u8BA4 Key\u3002", en: "At least two available organization keys are required to change the default key." },
64
+ personal_key_unavailable: { "zh-CN": "\u5F53\u524D\u4E2A\u4EBA\u8EAB\u4EFD\u6CA1\u6709\u53EF\u7528\u7684 API \u5BC6\u94A5\uFF0C\u8BF7\u5148\u521B\u5EFA\u4E2A\u4EBA\u5BC6\u94A5\u3002", en: "Your personal identity has no available API key. Create a personal key first." },
65
+ api_key_not_found: { "zh-CN": "\u672A\u627E\u5230\u53EF\u64CD\u4F5C\u7684 API Key\uFF0C\u6216\u8BE5 Key \u4E0D\u5C5E\u4E8E\u5F53\u524D\u8BBF\u95EE\u8303\u56F4\u3002\u8BF7\u5237\u65B0 Key \u5217\u8868\u5E76\u6838\u5BF9 Key ID\u3002", en: "No accessible API key was found for this operation. Refresh the key list and check the key ID." },
66
+ asset_certification_not_found: { "zh-CN": "\u672A\u627E\u5230\u8BE5\u8D44\u6E90\u7684\u8BA4\u8BC1\u8BB0\u5F55\u3002\u8BF7\u6838\u5BF9\u8D44\u6E90 ID\uFF0C\u5E76\u786E\u8BA4\u8D44\u6E90\u5DF2\u53D1\u8D77\u8BA4\u8BC1\u3002", en: "No certification record was found for this asset. Check the asset ID and whether certification has been requested." },
67
+ asset_content_unavailable: { "zh-CN": "\u8D44\u6E90\u8BB0\u5F55\u5B58\u5728\uFF0C\u4F46\u76EE\u524D\u65E0\u6CD5\u8BFB\u53D6\u5176\u5185\u5BB9\u3002\u8BF7\u67E5\u770B\u8D44\u6E90\u72B6\u6001\uFF1B\u6301\u7EED\u5F02\u5E38\u65F6\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u5B58\u50A8\u8BB0\u5F55\u3002", en: "The asset record exists, but its content cannot currently be read. Check the asset status and ask a platform administrator to inspect its storage record if the problem persists." },
68
+ asset_import_failed: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u4ECE\u63D0\u4F9B\u7684\u5730\u5740\u5BFC\u5165\u8D44\u6E90\u3002\u8BF7\u786E\u8BA4\u8BE5\u5730\u5740\u53EF\u516C\u5F00\u8BBF\u95EE\u3001\u8FD4\u56DE\u6709\u6548\u6587\u4EF6\uFF0C\u4E14\u6587\u4EF6\u7B26\u5408\u5927\u5C0F\u9650\u5236\u3002", en: "The platform could not import the asset from the supplied URL. Check that the URL is publicly accessible, returns a valid file, and meets the size limit." },
69
+ asset_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u53EF\u8BBF\u95EE\u7684\u8D44\u6E90\u3002\u8BF7\u6838\u5BF9\u8D44\u6E90 ID\u3001\u8D44\u6E90\u5F52\u5C5E\u548C\u5220\u9664\u72B6\u6001\u3002", en: "No asset accessible to this account was found. Check its ID, ownership, and whether it has been deleted." },
70
+ asset_not_ready: { "zh-CN": "\u8D44\u6E90\u5C1A\u672A\u5B8C\u6210\u5904\u7406\uFF0C\u5F53\u524D\u4E0D\u80FD\u7528\u4E8E\u6B64\u64CD\u4F5C\u3002\u8BF7\u67E5\u8BE2\u8BE5\u8D44\u6E90\u72B6\u6001\uFF0C\u5F85\u5176\u5C31\u7EEA\u540E\u7EE7\u7EED\u3002", en: "The asset has not finished processing and cannot yet be used for this operation. Check its status and continue once it is ready." },
71
+ asset_persistence_pending: { "zh-CN": "\u5F15\u7528\u7684\u8D44\u6E90\u4ECD\u5728\u4FDD\u5B58\uFF0C\u5F53\u524D\u4E0D\u80FD\u4F5C\u4E3A\u65B0\u8BF7\u6C42\u7684\u8F93\u5165\u3002\u8BF7\u67E5\u8BE2\u539F\u8D44\u6E90\u6216\u4EFB\u52A1\u72B6\u6001\uFF0C\u5F85\u4FDD\u5B58\u5B8C\u6210\u540E\u518D\u4F7F\u7528\u3002", en: "The referenced asset is still being saved and cannot yet be used as input to a new request. Check the original asset or task and use it once saving is complete." },
72
+ asset_storage_unavailable: { "zh-CN": "\u5E73\u53F0\u7684\u8D44\u6E90\u5B58\u50A8\u670D\u52A1\u65E0\u6CD5\u5B8C\u6210\u5F53\u524D\u64CD\u4F5C\u3002\u8BF7\u4FDD\u7559\u8BF7\u6C42 ID\uFF0C\u5E76\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u5B58\u50A8\u670D\u52A1\u72B6\u6001\u3002", en: "The platform's asset storage service cannot complete this operation. Keep the request ID and ask a platform administrator to check the storage service." },
73
+ asset_too_large: { "zh-CN": "\u4E0A\u4F20\u6216\u5BFC\u5165\u7684\u8D44\u6E90\u8D85\u8FC7\u4E86\u5141\u8BB8\u7684\u6587\u4EF6\u5927\u5C0F\u3002\u8BF7\u538B\u7F29\u6587\u4EF6\u6216\u4F7F\u7528\u66F4\u5C0F\u7684\u8D44\u6E90\u3002", en: "The uploaded or imported asset exceeds the allowed file size. Compress the file or use a smaller asset." },
74
+ billing_authorization_unavailable: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u5B8C\u6210\u672C\u6B21\u8BF7\u6C42\u7684\u8BA1\u8D39\u6388\u6743\u3002\u8BF7\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u8BA1\u8D39\u670D\u52A1\uFF0C\u5DF2\u6709\u4EFB\u52A1\u5148\u67E5\u8BE2\u72B6\u6001\u3002", en: "The platform could not authorize billing for this request. Ask a platform administrator to check the billing service using the request ID; check any existing task's status first." },
75
+ billing_estimate_incomplete: { "zh-CN": "\u5F53\u524D\u4EF7\u683C\u548C\u7528\u91CF\u4FE1\u606F\u4E0D\u8DB3\u4EE5\u5B8C\u6210\u6267\u884C\u524D\u8D39\u7528\u4F30\u7B97\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8865\u9F50\u6A21\u578B\u7684\u8BA1\u4EF7\u4E0E\u8BA1\u91CF\u914D\u7F6E\u3002", en: "The current price and usage information is insufficient to estimate the cost before execution. Ask a platform administrator to complete the model's pricing and metering configuration." },
76
+ billing_estimate_invalid: { "zh-CN": "\u5E73\u53F0\u65E0\u6CD5\u6309\u5F53\u524D\u8BA1\u4EF7\u89C4\u5219\u8BA1\u7B97\u8D39\u7528\u4F30\u7B97\u3002\u8BF7\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u68C0\u67E5\u4EF7\u683C\u89C4\u5219\u548C\u7528\u91CF\u4F30\u7B97\u3002", en: "The platform cannot calculate a cost estimate using the current pricing rules. Ask a platform administrator to inspect the rules and usage estimate using the request ID." },
77
+ billing_price_invalid: { "zh-CN": "\u6A21\u578B\u5DF2\u53D1\u5E03\u7684\u4EF7\u683C\u89C4\u5219\u65E0\u6CD5\u4E3A\u6B64\u8BF7\u6C42\u8BA1\u4EF7\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u68C0\u67E5\u6A21\u578B\u64CD\u4F5C\u3001\u8BA1\u91CF\u6307\u6807\u548C\u4EF7\u683C\u89C4\u5219\u3002", en: "The model's published pricing rules cannot price this request. Ask a platform administrator to check the model operation, metering metrics, and pricing rules." },
78
+ billing_price_unavailable: { "zh-CN": "\u8BE5\u6A21\u578B\u64CD\u4F5C\u6CA1\u6709\u5F53\u524D\u751F\u6548\u7684\u516C\u5F00\u9500\u552E\u4EF7\u683C\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u53D1\u5E03\u6216\u4FEE\u6B63\u9002\u7528\u4EF7\u683C\u3002", en: "This model operation has no currently effective published sale price. Ask a platform administrator to publish or correct the applicable price." },
79
+ billing_pricing_unavailable: { "zh-CN": "\u5E73\u53F0\u65E0\u6CD5\u786E\u5B9A\u6B64\u8BF7\u6C42\u9002\u7528\u7684\u5B9A\u4EF7\u914D\u7F6E\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u4EF7\u683C\u7B56\u7565\u548C\u6298\u6263\u914D\u7F6E\u3002", en: "The platform cannot determine the pricing configuration applicable to this request. Ask a platform administrator to review the pricing policy and discount configuration." },
80
+ billing_metering_unavailable: { "zh-CN": "\u8BE5\u6A21\u578B\u64CD\u4F5C\u7684\u8BA1\u91CF\u5B9A\u4E49\u4E0E\u8BA1\u4EF7\u914D\u7F6E\u65E0\u6CD5\u6B63\u5E38\u914D\u5408\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u8BA1\u91CF\u6307\u6807\u548C\u4EF7\u683C\u89C4\u5219\u3002", en: "The model operation's metering definition and pricing configuration cannot be used together. Ask a platform administrator to review the metering metrics and pricing rules." },
81
+ billing_wallet_required: { "zh-CN": "\u672C\u6B21\u8BA1\u8D39\u9700\u8981\u53EF\u7528\u7684\u94B1\u5305\uFF0C\u4F46\u5F53\u524D\u672A\u627E\u5230\u7B26\u5408\u8981\u6C42\u7684\u94B1\u5305\u3002\u8BF7\u6838\u5BF9\u6240\u9700\u5E01\u79CD\u53CA\u94B1\u5305\u662F\u5426\u5DF2\u5F00\u901A\u3001\u5904\u4E8E\u53EF\u7528\u72B6\u6001\uFF0C\u5FC5\u8981\u65F6\u8054\u7CFB\u8D26\u6237\u7BA1\u7406\u5458\u3002", en: "Billing requires an active wallet, but no suitable wallet was found. Check the required currency and whether the wallet is open and active, and contact your account administrator if needed." },
82
+ callback_body_too_large: { "zh-CN": "\u56DE\u8C03\u6B63\u6587\u8D85\u8FC7\u4E86\u63A5\u6536\u63A5\u53E3\u5141\u8BB8\u7684\u5927\u5C0F\u3002\u8BF7\u8054\u7CFB\u56DE\u8C03\u53D1\u9001\u65B9\u51CF\u5C11\u6B63\u6587\u5185\u5BB9\uFF0C\u52FF\u53D1\u9001\u5A92\u4F53\u6587\u4EF6\u6B63\u6587\u3002", en: "The callback body exceeds the receiver's size limit. Ask the sender to reduce the body and avoid including media file contents." },
83
+ callback_unavailable: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u53EF\u9760\u63A5\u6536\u6216\u4FDD\u5B58\u672C\u6B21\u56DE\u8C03\u901A\u77E5\u3002\u8BF7\u4FDD\u7559\u539F\u901A\u77E5\uFF0C\u7531\u53D1\u9001\u65B9\u6309\u56DE\u8C03\u534F\u8BAE\u91CD\u8BD5\u6295\u9012\u3002", en: "The platform could not reliably accept or store this callback notification. Keep the original notification and have the sender retry delivery according to the callback protocol." },
84
+ catalog_conflict: { "zh-CN": "\u6A21\u578B\u76EE\u5F55\u914D\u7F6E\u4E0E\u5DF2\u6709\u8BB0\u5F55\u51B2\u7A81\u3002\u8BF7\u5237\u65B0\u76EE\u5F55\u5E76\u6838\u5BF9\u540D\u79F0\u3001\u5173\u8054\u5173\u7CFB\u548C\u751F\u6548\u8303\u56F4\u540E\u518D\u4FDD\u5B58\u3002", en: "The catalog configuration conflicts with an existing record. Refresh the catalog and review the names, relationships, and effective scope before saving." },
85
+ catalog_dependency_conflict: { "zh-CN": "\u672C\u6B21\u76EE\u5F55\u64CD\u4F5C\u6D89\u53CA\u7684\u5173\u8054\u8BB0\u5F55\u4E0D\u6EE1\u8DB3\u7EA6\u675F\u3002\u8BF7\u5237\u65B0\u76EE\u5F55\u6838\u5BF9\u5173\u8054\u5173\u7CFB\uFF1B\u5220\u9664\u914D\u7F6E\u524D\u8BF7\u786E\u8BA4\u76F8\u5173\u4F9D\u8D56\u5DF2\u5904\u7406\u3002", en: "The records involved in this catalog operation do not satisfy its relationship constraints. Refresh the catalog and review the relationships; resolve dependent records before deleting a configuration." },
86
+ catalog_identity_not_found: { "zh-CN": "\u672A\u627E\u5230\u5BF9\u5E94\u6A21\u578B\u548C\u64CD\u4F5C\u7684\u76EE\u5F55\u6761\u76EE\u3002\u8BF7\u6838\u5BF9 Model ID\u3001\u64CD\u4F5C\u540D\u79F0\u53CA\u76EE\u5F55\u53D1\u5E03\u72B6\u6001\u3002", en: "No catalog entry was found for this model and operation. Check the model ID, operation name, and catalog publication status." },
87
+ catalog_operation_failed: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u4FDD\u5B58\u672C\u6B21\u76EE\u5F55\u64CD\u4F5C\u3002\u8BF7\u5237\u65B0\u76EE\u5F55\u6838\u5BF9\u5B9E\u9645\u72B6\u6001\uFF0C\u5E76\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The platform could not save this catalog operation. Refresh the catalog to check its actual state and contact a platform administrator with the request ID." },
88
+ channel_admission_migration_required: { "zh-CN": "\u8BE5\u6E20\u9053\u5B58\u5728\u5C1A\u672A\u7EB3\u5165\u5E76\u53D1\u51C6\u5165\u8BB0\u5F55\u7684\u5728\u9014\u4EFB\u52A1\uFF0C\u65E0\u6CD5\u76F4\u63A5\u542F\u7528\u5E76\u53D1\u4E0A\u9650\u3002\u8BF7\u5148\u6392\u7A7A\u4EFB\u52A1\u6216\u7531\u7BA1\u7406\u5458\u6838\u5BF9\u51C6\u5165\u8BB0\u5F55\u3002", en: "The channel has active tasks that are not tracked by concurrency admission records, so a concurrency limit cannot be enabled directly. Drain the tasks or have an administrator reconcile the records first." },
89
+ channel_configuration_conflict: { "zh-CN": "\u6E20\u9053\u914D\u7F6E\u5DF2\u88AB\u5176\u4ED6\u64CD\u4F5C\u4FEE\u6539\uFF0C\u672C\u6B21\u4FDD\u5B58\u57FA\u4E8E\u65E7\u7248\u672C\u3002\u8BF7\u91CD\u65B0\u6253\u5F00\u6E20\u9053\u7F16\u8F91\uFF0C\u6838\u5BF9\u6700\u65B0\u914D\u7F6E\u540E\u518D\u4FDD\u5B58\u3002", en: "Another operation changed the channel configuration, and this save is based on an older version. Reopen the channel editor, review the latest configuration, and save again." },
90
+ channel_conflict: { "zh-CN": "\u6E20\u9053\u540D\u79F0\u3001\u914D\u7F6E\u6216\u5F53\u524D\u72B6\u6001\u4E0E\u5DF2\u6709\u8BB0\u5F55\u51B2\u7A81\u3002\u8BF7\u5237\u65B0\u6E20\u9053\u5217\u8868\u5E76\u6838\u5BF9\u51B2\u7A81\u9879\u540E\u518D\u4FDD\u5B58\u3002", en: "The channel name, configuration, or current state conflicts with existing records. Refresh the channel list and resolve the conflicting fields before saving." },
91
+ channel_model_admission_migration_required: { "zh-CN": "\u8BE5\u6E20\u9053\u6A21\u578B\u5B58\u5728\u5C1A\u672A\u7EB3\u5165\u5E76\u53D1\u51C6\u5165\u8BB0\u5F55\u7684\u5728\u9014\u4EFB\u52A1\uFF0C\u65E0\u6CD5\u76F4\u63A5\u542F\u7528\u5E76\u53D1\u4E0A\u9650\u3002\u8BF7\u5148\u6392\u7A7A\u4EFB\u52A1\u6216\u6838\u5BF9\u51C6\u5165\u8BB0\u5F55\u3002", en: "The channel model has active tasks without concurrency admission records, so a concurrency limit cannot be enabled directly. Drain the tasks or reconcile the admission records first." },
92
+ channel_model_in_use: { "zh-CN": "\u8BE5\u6E20\u9053\u6A21\u578B\u5DF2\u6709\u8BF7\u6C42\u6216\u4EFB\u52A1\u8BB0\u5F55\uFF0C\u65E0\u6CD5\u5220\u9664\u3002\u82E5\u8981\u505C\u6B62\u4F9B\u7ED9\uFF0C\u8BF7\u505C\u7528\u8BE5\u6E20\u9053\u6A21\u578B\u5E76\u4FDD\u7559\u5386\u53F2\u8BB0\u5F55\u3002", en: "This channel model has request or task records and cannot be deleted. To stop supplying it, disable the channel model and keep its history." },
93
+ channel_model_not_found: { "zh-CN": "\u672A\u627E\u5230\u6307\u5B9A\u6E20\u9053\u4E2D\u7684\u6A21\u578B\u8BB0\u5F55\u3002\u8BF7\u5237\u65B0\u6E20\u9053\u6A21\u578B\u5217\u8868\uFF0C\u5E76\u6838\u5BF9\u6E20\u9053\u4E0E\u6A21\u578B\u7684\u5BF9\u5E94\u5173\u7CFB\u3002", en: "The specified model record was not found in this channel. Refresh the channel model list and check the channel-model relationship." },
94
+ channel_not_found: { "zh-CN": "\u6307\u5B9A\u6E20\u9053\u4E0D\u5B58\u5728\u6216\u5DF2\u4E0D\u53EF\u7528\u3002\u8BF7\u5237\u65B0\u6E20\u9053\u5217\u8868\u5E76\u6838\u5BF9\u6E20\u9053 ID\u3002", en: "The specified channel does not exist or is no longer available. Refresh the channel list and check the channel ID." },
95
+ channel_secret_unavailable: { "zh-CN": "\u5E73\u53F0\u65E0\u6CD5\u8BFB\u53D6\u6216\u5904\u7406\u8BE5\u6E20\u9053\u7684\u51ED\u8BC1\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u51ED\u8BC1\u5B58\u50A8\u914D\u7F6E\u548C\u6E20\u9053\u51ED\u8BC1\u3002", en: "The platform cannot read or process this channel's credentials. Ask a platform administrator to review credential storage and the channel credentials." },
96
+ channel_selection_conflict: { "zh-CN": "\u6E20\u9053\u7684\u6A21\u578B\u9009\u62E9\u5DF2\u88AB\u5176\u4ED6\u64CD\u4F5C\u4FEE\u6539\uFF0C\u672C\u6B21\u4FDD\u5B58\u57FA\u4E8E\u65E7\u5217\u8868\u3002\u8BF7\u91CD\u65B0\u6253\u5F00\u6E20\u9053\u7F16\u8F91\uFF0C\u6838\u5BF9\u6700\u65B0\u6A21\u578B\u9009\u62E9\u540E\u518D\u4FDD\u5B58\u3002", en: "Another operation changed the channel's model selection, and this save is based on an older list. Reopen the channel editor, review the latest selection, and save again." },
97
+ draft_task_expired: { "zh-CN": "\u7528\u4E8E\u751F\u6210\u6B63\u5F0F\u89C6\u9891\u7684\u9884\u89C8\u8349\u7A3F\u5DF2\u8D85\u51FA\u6709\u6548\u671F\u3002\u8BF7\u5148\u751F\u6210\u65B0\u7684\u9884\u89C8\uFF0C\u518D\u4F7F\u7528\u5176\u8349\u7A3F\u4EFB\u52A1 ID\u3002", en: "The preview draft used to create the final video has expired. Generate a new preview and use its draft task ID." },
98
+ duplicate_comparison_model: { "zh-CN": "\u5BF9\u6BD4\u5217\u8868\u91CD\u590D\u5305\u542B\u4E86\u540C\u4E00\u6A21\u578B\u7684\u4E0D\u540C\u6E20\u9053\u3002\u8BF7\u4E3A\u6BCF\u4E2A\u6A21\u578B\u53EA\u4FDD\u7559\u4E00\u4E2A\u6E20\u9053\uFF1B\u5982\u9700\u91CD\u590D\u91C7\u6837\uFF0C\u8BF7\u4F7F\u7528 repetitions\u3002", en: "The comparison includes multiple channels for the same model. Keep one channel for each model; use repetitions for repeated samples." },
99
+ empty_asset: { "zh-CN": "\u672A\u6536\u5230\u6709\u6548\u7684\u8D44\u6E90\u5185\u5BB9\uFF0C\u6216\u6587\u4EF6\u4E3A\u7A7A\u3002\u8BF7\u68C0\u67E5\u4E0A\u4F20\u6B63\u6587\u548C\u5F85\u5BFC\u5165\u7684\u6587\u4EF6\u3002", en: "No usable asset content was received, or the file is empty. Check the upload body and the file being imported." },
100
+ endpoint_not_found: { "zh-CN": "\u6A21\u578B\u6CA1\u6709\u5F53\u524D\u53EF\u7528\u7684\u6307\u5B9A\u7AEF\u70B9\u3002\u8BF7\u6838\u5BF9\u7AEF\u70B9\u540D\u79F0\u53CA\u6A21\u578B\u7684\u5DF2\u5F00\u653E\u63A5\u53E3\u3002", en: "The model has no currently available endpoint matching this request. Check the endpoint name and the interfaces available for the model." },
101
+ export_busy: { "zh-CN": "\u5BFC\u51FA\u6587\u4EF6\u751F\u6210\u5DF2\u8FBE\u5230\u5F53\u524D\u5E76\u53D1\u4E0A\u9650\uFF0C\u4E0D\u80FD\u542F\u52A8\u65B0\u7684\u6587\u4EF6\u751F\u6210\u3002\u8BF7\u7B49\u5F85\u73B0\u6709\u5BFC\u51FA\u7ED3\u675F\u5E76\u67E5\u770B\u5176\u72B6\u6001\u3002", en: "Export file generation has reached the current concurrency limit, so a new file generation cannot start. Wait for existing exports to finish and check their status." },
102
+ export_claim_failed: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u5F00\u59CB\u6B64\u6B21\u5BFC\u51FA\u6587\u4EF6\u751F\u6210\u3002\u8BF7\u5237\u65B0\u5BFC\u51FA\u8BB0\u5F55\uFF0C\u786E\u8BA4\u5176\u72B6\u6001\u540E\u518D\u8BF7\u6C42\u4E0B\u8F7D\u3002", en: "The platform could not start generating this export file. Refresh the export record and check its status before requesting a download again." },
103
+ export_completion_failed: { "zh-CN": "\u5BFC\u51FA\u6587\u4EF6\u5DF2\u751F\u6210\uFF0C\u4F46\u5BFC\u51FA\u8BB0\u5F55\u672A\u80FD\u4FDD\u5B58\u5B8C\u6210\u72B6\u6001\u3002\u8BF7\u5237\u65B0\u8BB0\u5F55\u6838\u5BF9\u7ED3\u679C\uFF1B\u6301\u7EED\u5F02\u5E38\u65F6\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u7BA1\u7406\u5458\u3002", en: "The export file was generated, but its completion state could not be saved. Refresh the record to check the result and contact an administrator with the request ID if the problem persists." },
104
+ export_delete_conflict: { "zh-CN": "\u5BFC\u51FA\u8BB0\u5F55\u6B63\u5728\u5904\u7406\u6216\u72B6\u6001\u5DF2\u53D8\u5316\uFF0C\u5F53\u524D\u4E0D\u80FD\u5220\u9664\u3002\u8BF7\u5237\u65B0\u8BB0\u5F55\uFF0C\u5F85\u5904\u7406\u7ED3\u675F\u540E\u518D\u5220\u9664\u3002", en: "The export record is being processed or its state has changed, so it cannot be deleted now. Refresh the record and delete it after processing finishes." },
105
+ export_generation_failed: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u751F\u6210\u5BFC\u51FA\u6587\u4EF6\u3002\u8BF7\u67E5\u770B\u5BFC\u51FA\u8BB0\u5F55\u4E2D\u7684\u5931\u8D25\u72B6\u6001\uFF0C\u5FC5\u8981\u65F6\u7F29\u5C0F\u7EDF\u8BA1\u533A\u95F4\u6216\u8054\u7CFB\u7BA1\u7406\u5458\u6392\u67E5\u3002", en: "The platform could not generate the export file. Check the failure state in its record, reduce the date range if appropriate, or ask an administrator to investigate." },
106
+ export_lease_lost: { "zh-CN": "\u5BFC\u51FA\u4EFB\u52A1\u7684\u6267\u884C\u5F52\u5C5E\u6216\u72B6\u6001\u5DF2\u53D8\u5316\uFF0C\u5F53\u524D\u7ED3\u679C\u65E0\u6CD5\u6309\u65E7\u72B6\u6001\u786E\u8BA4\u3002\u8BF7\u5237\u65B0\u5BFC\u51FA\u8BB0\u5F55\uFF0C\u518D\u83B7\u53D6\u6700\u65B0\u4E0B\u8F7D\u7ED3\u679C\u3002", en: "The export job's execution ownership or state changed, so the result cannot be confirmed against the old state. Refresh the export record and retrieve the latest download result." },
107
+ export_not_ready: { "zh-CN": "\u6B64\u5BFC\u51FA\u8BB0\u5F55\u5C1A\u4E0D\u6EE1\u8DB3\u5F53\u524D\u4E0B\u8F7D\u6216\u5237\u65B0\u64CD\u4F5C\u7684\u6761\u4EF6\u3002\u8BF7\u67E5\u770B\u8BB0\u5F55\u72B6\u6001\uFF0C\u5F85\u6587\u4EF6\u751F\u6210\u5B8C\u6210\u540E\u7EE7\u7EED\u3002", en: "This export record is not yet eligible for the requested download or refresh operation. Check its status and continue once file generation is complete." },
108
+ export_post_required: { "zh-CN": "\u6B64\u4E0B\u8F7D\u5165\u53E3\u8981\u6C42\u7531\u5BFC\u51FA\u8BB0\u5F55\u9875\u9762\u53D1\u8D77\u6B63\u786E\u7684\u4E0B\u8F7D\u8BF7\u6C42\u3002\u8BF7\u8FD4\u56DE\u5BFC\u51FA\u8BB0\u5F55\u9875\u9762\u70B9\u51FB\u4E0B\u8F7D\u3002", en: "This download endpoint requires the download request made by the export records page. Return to that page and select Download." },
109
+ export_refresh_forbidden: { "zh-CN": "\u5F53\u524D\u7BA1\u7406\u5458\u4E0D\u662F\u8BE5\u5BFC\u51FA\u7684\u53D1\u8D77\u8005\uFF0C\u4E0D\u80FD\u5237\u65B0\u6B64\u8BB0\u5F55\u3002\u8BF7\u7531\u539F\u53D1\u8D77\u7BA1\u7406\u5458\u5237\u65B0\uFF0C\u6216\u65B0\u5EFA\u81EA\u5DF1\u7684\u5BFC\u51FA\u3002", en: "You are not the administrator who requested this export and cannot refresh it. Ask the original administrator to refresh it or create your own export." },
110
+ export_refresh_mismatch: { "zh-CN": "\u5237\u65B0\u8BF7\u6C42\u7684\u6587\u4EF6\u683C\u5F0F\u6216\u7B5B\u9009\u6761\u4EF6\u4E0E\u539F\u5BFC\u51FA\u4E0D\u540C\u3002\u8BF7\u4FDD\u7559\u539F\u683C\u5F0F\u548C\u7B5B\u9009\u6761\u4EF6\uFF1B\u5982\u9700\u4E0D\u540C\u6570\u636E\uFF0C\u8BF7\u65B0\u5EFA\u5BFC\u51FA\u3002", en: "The refresh request's format or filters differ from the original export. Keep the original format and filters, or create a new export for different data." },
111
+ export_retry_unavailable: { "zh-CN": "\u8BE5\u5BFC\u51FA\u8BB0\u5F55\u5F53\u524D\u4E0D\u662F\u53EF\u91CD\u8BD5\u7684\u5931\u8D25\u72B6\u6001\u3002\u8BF7\u5237\u65B0\u8BB0\u5F55\u5E76\u67E5\u770B\u5176\u6700\u65B0\u72B6\u6001\u3002", en: "This export record is not currently in a failed state that can be retried. Refresh the record and check its latest status." },
112
+ history_connection_limit: { "zh-CN": "\u8BF7\u6C42\u5386\u53F2\u8BA2\u9605\u8FDE\u63A5\u6570\u5DF2\u8FBE\u4E0A\u9650\u3002\u8BF7\u5173\u95ED\u4E0D\u9700\u8981\u7684\u9875\u9762\u6216\u8BA2\u9605\uFF1B\u6301\u7EED\u65E0\u6CD5\u8FDE\u63A5\u65F6\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The request history subscription limit has been reached. Close unused pages or subscriptions and contact a platform administrator if you still cannot connect." },
113
+ history_unavailable: { "zh-CN": "\u8BF7\u6C42\u5386\u53F2\u8BA2\u9605\u670D\u52A1\u6682\u65F6\u65E0\u6CD5\u5EFA\u7ACB\u8FDE\u63A5\u3002\u8BF7\u5237\u65B0\u9875\u9762\u91CD\u65B0\u8FDE\u63A5\uFF1B\u6301\u7EED\u5F02\u5E38\u65F6\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The request history subscription service cannot establish a connection right now. Refresh the page to reconnect and contact a platform administrator if the problem persists." },
114
+ idempotency_key_required: { "zh-CN": "\u521B\u5EFA\u8BF7\u6C42\u7F3A\u5C11 Idempotency-Key\u3002\u8BF7\u4E3A\u8BE5\u8BF7\u6C42\u63D0\u4F9B\u7A33\u5B9A\u7684\u5E42\u7B49\u952E\uFF0C\u91CD\u590D\u53D1\u9001\u76F8\u540C\u5185\u5BB9\u65F6\u590D\u7528\u8BE5\u952E\u3002", en: "The creation request is missing an Idempotency-Key. Provide a stable key for the request and reuse it when sending the same content again." },
115
+ incompatible_input_mode: { "zh-CN": "\u6240\u9009\u6A21\u578B\u4E0D\u652F\u6301\u5F53\u524D\u8F93\u5165\u6A21\u5F0F\u3002\u8BF7\u9009\u62E9\u517C\u5BB9\u7684\u6A21\u578B\uFF0C\u6216\u5207\u6362\u5230\u8BE5\u6A21\u578B\u652F\u6301\u7684\u8F93\u5165\u6A21\u5F0F\u3002", en: "The selected model does not support this input mode. Choose a compatible model or switch to an input mode supported by this model." },
116
+ invalid_api_key_expiration: { "zh-CN": "API Key \u6709\u6548\u671F\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u4F7F\u7528 1 \u81F3 365 \u5929\u7684\u6574\u6570\uFF0C\u6216\u6309\u63A5\u53E3\u7EA6\u5B9A\u7701\u7565\u6709\u6548\u671F\u3002", en: "The API key expiration does not meet the requirements. Use an integer from 1 to 365 days, or omit it as allowed by the endpoint." },
117
+ invalid_api_key_name: { "zh-CN": "API Key \u540D\u79F0\u4E3A\u7A7A\u6216\u957F\u5EA6\u8D85\u8FC7\u9650\u5236\u3002\u8BF7\u4F7F\u7528\u53BB\u9664\u9996\u5C3E\u7A7A\u683C\u540E 1 \u81F3 100 \u4E2A\u5B57\u7B26\u7684\u540D\u79F0\u3002", en: "The API key name is empty or too long. Use a name of 1 to 100 characters after trimming surrounding whitespace." },
118
+ invalid_api_key_payload: { "zh-CN": "\u521B\u5EFA API Key \u7684\u8BF7\u6C42\u6B63\u6587\u4E0D\u662F\u6709\u6548\u5BF9\u8C61\u3002\u8BF7\u6309\u63A5\u53E3\u8981\u6C42\u63D0\u4F9B\u540D\u79F0\u548C\u53EF\u9009\u6709\u6548\u671F\u3002", en: "The API key creation body is not a valid object. Provide a name and optional expiration as required by the endpoint." },
119
+ invalid_api_key_query: { "zh-CN": "API Key \u5206\u9875\u6761\u4EF6\u4E0D\u5408\u6CD5\u3002\u8BF7\u5C06 limit \u8BBE\u4E3A 1 \u81F3 100 \u7684\u6574\u6570\uFF0C\u5E76\u4F7F\u7528\u63A5\u53E3\u8FD4\u56DE\u7684\u6709\u6548 cursor\u3002", en: "The API key pagination parameters are invalid. Set limit to an integer from 1 to 100 and use a valid cursor returned by the endpoint." },
120
+ invalid_api_key_update: { "zh-CN": "API Key \u66F4\u65B0\u5185\u5BB9\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u63D0\u4F9B\u5E03\u5C14\u7C7B\u578B\u7684 revoked \u548C\u975E\u7A7A reason\uFF0C\u539F\u56E0\u6700\u957F 500 \u4E2A\u5B57\u7B26\u3002", en: "The API key update does not meet the requirements. Provide a boolean revoked value and a nonempty reason of at most 500 characters." },
121
+ invalid_asset_certification: { "zh-CN": "\u8D44\u6E90\u8BA4\u8BC1\u8BF7\u6C42\u6B63\u6587\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u5BF9\u7167\u8BA4\u8BC1\u63A5\u53E3\u68C0\u67E5\u8D44\u6E90 ID\u3001\u8D44\u6E90\u7C7B\u578B\u548C\u8BA4\u8BC1\u914D\u7F6E\u3002", en: "The asset certification body does not meet the requirements. Check the asset ID, asset type, and certification configuration against the endpoint documentation." },
122
+ invalid_asset_import: { "zh-CN": "\u8D44\u6E90\u5BFC\u5165\u6B63\u6587\u4E0D\u662F\u6709\u6548\u5BF9\u8C61\u6216\u7F3A\u5C11\u5FC5\u8981\u4FE1\u606F\u3002\u8BF7\u6309\u5BFC\u5165\u63A5\u53E3\u63D0\u4F9B\u8D44\u6E90 URL \u548C\u9002\u7528\u7684\u540D\u79F0\u3001\u7C7B\u578B\u3002", en: "The asset import body is not a valid object or lacks required information. Provide an asset URL and the applicable name and type according to the import endpoint." },
123
+ invalid_asset_kind: { "zh-CN": "\u63D0\u4F9B\u7684\u8D44\u6E90\u7C7B\u578B\u4E0D\u5728\u63A5\u53E3\u652F\u6301\u8303\u56F4\u5185\u3002\u8BF7\u4F7F\u7528\u8BE5\u63A5\u53E3\u5141\u8BB8\u7684 kind \u503C\uFF0C\u4E0D\u8981\u4F7F\u7528\u6587\u4EF6\u6269\u5C55\u540D\u4EE3\u66FF\u7C7B\u578B\u3002", en: "The supplied asset type is not supported by this endpoint. Use an allowed kind value rather than a file extension." },
124
+ invalid_asset_library: { "zh-CN": "\u6240\u9009\u8D44\u6E90\u5E93\u4E0D\u53D7\u8BE5\u8BA4\u8BC1\u63A5\u53E3\u652F\u6301\u3002\u8BF7\u6539\u7528\u63A5\u53E3\u6587\u6863\u5217\u51FA\u7684\u8D44\u6E90\u5E93\u3002", en: "The selected asset library is not supported by this certification endpoint. Use a library listed in the endpoint documentation." },
125
+ invalid_asset_mime_type: { "zh-CN": "\u8D44\u6E90 MIME \u7C7B\u578B\u683C\u5F0F\u4E0D\u5408\u6CD5\u3002\u8BF7\u4F7F\u7528\u6709\u6548\u7684 type/subtype\uFF0C\u907F\u514D\u6362\u884C\u548C\u8D85\u957F\u5185\u5BB9\u3002", en: "The asset MIME type is malformed. Use a valid type/subtype and avoid newlines or excessively long values." },
126
+ invalid_asset_name: { "zh-CN": "\u8D44\u6E90\u540D\u79F0\u4E3A\u7A7A\u3001\u8FC7\u957F\u6216\u542B\u63A7\u5236\u5B57\u7B26\u3002\u8BF7\u4F7F\u7528 1 \u81F3 255 \u4E2A\u5B57\u7B26\u7684\u6709\u6548\u540D\u79F0\uFF0C\u5E76\u79FB\u9664\u63A7\u5236\u5B57\u7B26\u3002", en: "The asset name is empty, too long, or contains control characters. Use a valid name of 1 to 255 characters and remove control characters." },
127
+ invalid_asset_reference: { "zh-CN": "\u8D44\u6E90\u5F15\u7528\u65E0\u6CD5\u7528\u4E8E\u672C\u6B21\u8BF7\u6C42\u3002\u8BF7\u6838\u5BF9\u8D44\u6E90 ID\u3001\u8D26\u6237\u5F52\u5C5E\u3001\u5C31\u7EEA\u72B6\u6001\u53CA\u6A21\u578B\u652F\u6301\u7684\u5F15\u7528\u7C7B\u578B\u3002", en: "The asset reference cannot be used for this request. Check the asset ID, ownership, readiness, and the reference types supported by the model." },
128
+ invalid_asset_url: { "zh-CN": "\u8D44\u6E90\u5730\u5740\u4E0D\u7B26\u5408\u516C\u5F00\u8BBF\u95EE\u8981\u6C42\u3002\u8BF7\u4F7F\u7528\u4E0D\u542B\u7528\u6237\u540D\u6216\u5BC6\u7801\u3001\u53EF\u4ECE\u516C\u7F51\u8BBF\u95EE\u7684 HTTPS \u6587\u4EF6\u5730\u5740\u3002", en: "The asset URL does not meet the public access requirements. Use a publicly accessible HTTPS file URL without a username or password." },
129
+ invalid_callback: { "zh-CN": "\u56DE\u8C03\u914D\u7F6E\u4E0D\u7B26\u5408\u5F53\u524D\u63A5\u53E3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9 callback_url\u3001HTTPS \u8981\u6C42\u53CA\u8BE5\u63A5\u53E3\u662F\u5426\u652F\u6301\u56DE\u8C03\uFF0C\u52FF\u540C\u65F6\u4F7F\u7528\u4E92\u65A5\u914D\u7F6E\u3002", en: "The callback configuration does not meet this endpoint's requirements. Check callback_url, the HTTPS requirement, whether callbacks are supported, and any mutually exclusive options." },
130
+ invalid_callback_body: { "zh-CN": "\u56DE\u8C03\u6B63\u6587\u65E0\u6CD5\u89E3\u6790\u4E3A\u6709\u6548\u901A\u77E5\u3002\u8BF7\u53D1\u9001\u539F\u534F\u8BAE\u8981\u6C42\u7684\u4EFB\u52A1\u6807\u8BC6\u548C\u7ED3\u679C\u7ED3\u6784\uFF0C\u5E76\u68C0\u67E5\u6B63\u6587\u7F16\u7801\u3002", en: "The callback body cannot be parsed as a valid notification. Send the task identifier and result structure required by the original protocol and check the body encoding." },
131
+ invalid_callback_token: { "zh-CN": "\u56DE\u8C03\u901A\u77E5\u7684\u8BBF\u95EE\u51ED\u8BC1\u672A\u901A\u8FC7\u9A8C\u8BC1\u3002\u8BF7\u4F7F\u7528\u8BE5\u4EFB\u52A1\u914D\u7F6E\u7684\u56DE\u8C03\u5730\u5740\u548C\u51ED\u8BC1\uFF0C\u52FF\u4FEE\u6539\u7B7E\u53D1\u53C2\u6570\u3002", en: "The callback notification's access token could not be verified. Use the callback URL and credentials configured for that task without changing the issued parameters." },
132
+ invalid_catalog_cursor: { "zh-CN": "\u6A21\u578B\u76EE\u5F55\u4E8B\u4EF6\u6E38\u6807\u65E0\u6548\u6216\u8D85\u8FC7\u5F53\u524D\u4FEE\u8BA2\u53F7\u3002\u8BF7\u83B7\u53D6\u6700\u65B0\u76EE\u5F55\u4FEE\u8BA2\uFF0C\u5E76\u4F7F\u7528\u63A5\u53E3\u8FD4\u56DE\u7684\u4E8B\u4EF6\u6E38\u6807\u3002", en: "The catalog event cursor is invalid or exceeds the current revision. Fetch the latest catalog revision and use a cursor returned by the endpoint." },
133
+ invalid_catalog_review: { "zh-CN": "\u76EE\u5F55\u5BA1\u6838\u5185\u5BB9\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u4F7F\u7528\u652F\u6301\u7684\u5BA1\u6838 section\u3001status\uFF0C\u5E76\u68C0\u67E5\u6240\u9009\u6A21\u578B\u6761\u76EE\u3002", en: "The catalog review does not meet the requirements. Use a supported review section and status, and check the selected model entry." },
134
+ invalid_catalog_window: { "zh-CN": "\u76EE\u5F55\u67E5\u8BE2\u7684\u4FEE\u8BA2\u53F7\u6216\u6570\u91CF\u4E0D\u5408\u6CD5\u3002\u8BF7\u4F7F\u7528\u6709\u6548\u7684\u4FEE\u8BA2\u53F7\u548C\u63A5\u53E3\u5141\u8BB8\u7684\u6574\u6570\u6570\u91CF\u3002", en: "The catalog query's revision or window size is invalid. Use a valid revision and an integer size allowed by the endpoint." },
135
+ invalid_channel: { "zh-CN": "\u6E20\u9053\u914D\u7F6E\u672A\u6EE1\u8DB3\u4FDD\u5B58\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u63D0\u4F9B\u65B9\u3001\u540D\u79F0\u3001\u5730\u5740\u3001\u51ED\u8BC1\u53CA\u914D\u7F6E\u5B57\u6BB5\uFF0C\u4FEE\u6539\u5DF2\u6709\u6E20\u9053\u65F6\u5148\u8BFB\u53D6\u6700\u65B0\u914D\u7F6E\u3002", en: "The channel configuration does not meet the save requirements. Check the provider, name, URL, credentials, and configuration fields; load the latest configuration before editing an existing channel." },
136
+ invalid_channel_id: { "zh-CN": "\u6E20\u9053 ID \u683C\u5F0F\u4E0D\u5408\u6CD5\u3002\u8BF7\u4ECE\u6E20\u9053\u5217\u8868\u4F7F\u7528\u6709\u6548\u7684\u6E20\u9053 UUID\u3002", en: "The channel ID is malformed. Use a valid channel UUID from the channel list." },
137
+ invalid_channel_model: { "zh-CN": "\u6E20\u9053\u6A21\u578B\u914D\u7F6E\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u6E20\u9053\u3001\u4E0A\u6E38 Model ID\u3001\u8DEF\u7531\u7ED1\u5B9A\u3001\u5E76\u53D1\u4E0A\u9650\u548C\u6210\u672C\u8BA1\u4EF7\u914D\u7F6E\u3002", en: "The channel model configuration does not meet the requirements. Check the channel, upstream model ID, route bindings, concurrency limit, and procurement pricing configuration." },
138
+ invalid_channel_status: { "zh-CN": "\u6E20\u9053\u72B6\u6001\u6216\u53D8\u66F4\u539F\u56E0\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u4F7F\u7528 active \u6216 disabled \u72B6\u6001\uFF0C\u5E76\u6309\u8981\u6C42\u586B\u5199\u975E\u7A7A\u539F\u56E0\u3002", en: "The channel status or change reason does not meet the requirements. Use active or disabled and provide a nonempty reason when required." },
139
+ invalid_content_length: { "zh-CN": "Content-Length \u4E0D\u662F\u6709\u6548\u7684\u6B63\u6574\u6570\u3002\u8BF7\u4F7F\u7528\u6587\u4EF6\u7684\u5B9E\u9645\u5B57\u8282\u6570\uFF0C\u6216\u6309\u63A5\u53E3\u8981\u6C42\u7701\u7565\u8BE5\u5934\u3002", en: "Content-Length is not a valid positive integer. Use the file's actual byte count or omit the header as allowed by the endpoint." },
140
+ invalid_cursor: { "zh-CN": "\u5206\u9875\u6E38\u6807\u683C\u5F0F\u6216\u6240\u5C5E\u5217\u8868\u4E0D\u5339\u914D\u3002\u8BF7\u4F7F\u7528\u8BE5\u5217\u8868\u63A5\u53E3\u8FD4\u56DE\u7684 cursor\uFF0C\u4E0D\u8981\u81EA\u884C\u62FC\u63A5\u6216\u8DE8\u5217\u8868\u590D\u7528\u3002", en: "The pagination cursor is malformed or belongs to a different list. Use the cursor returned by this list endpoint rather than constructing one or reusing one from another list." },
141
+ invalid_delivery_region: { "zh-CN": "\u4EFB\u52A1\u4EA4\u4ED8\u533A\u57DF\u53C2\u6570\u65E0\u6548\u3002\u8BF7\u6838\u5BF9\u63A5\u53E3\u652F\u6301\u7684\u533A\u57DF\u548C\u7F51\u5173\u914D\u7F6E\uFF0C\u52FF\u81EA\u884C\u4FEE\u6539\u7F51\u5173\u4E13\u7528\u8BF7\u6C42\u5934\u3002", en: "The task delivery region is invalid. Check the supported regions and gateway configuration; do not alter gateway-only headers yourself." },
142
+ invalid_draft_task: { "zh-CN": "\u5F15\u7528\u7684\u8349\u7A3F\u4E0D\u662F\u5F53\u524D\u8D26\u6237\u548C\u6A21\u578B\u4E0B\u5DF2\u5B8C\u6210\u7684 480p \u9884\u89C8\u3002\u8BF7\u5148\u751F\u6210\u5408\u89C4\u9884\u89C8\uFF0C\u518D\u4F7F\u7528\u5176\u4E0A\u6E38\u8349\u7A3F\u4EFB\u52A1 ID\u3002", en: "The referenced draft is not a completed 480p preview owned by this account for this model. Generate a valid preview first, then use its upstream draft task ID." },
143
+ invalid_export_view: { "zh-CN": "\u6240\u9009\u5BFC\u51FA\u89C6\u56FE\u4E0E\u6587\u4EF6\u683C\u5F0F\u4E0D\u5339\u914D\u3002\u8BF7\u4F7F\u7528 summary \u6216 line-items\uFF1Bline-items \u89C6\u56FE\u4EC5\u652F\u6301 CSV\u3002", en: "The export view does not match the file format. Use summary or line-items; line-items is supported only for CSV." },
144
+ invalid_history_targets: { "zh-CN": "\u8BF7\u6C42\u5386\u53F2\u8BA2\u9605\u76EE\u6807\u4E0D\u5408\u6CD5\u6216\u8D85\u8FC7\u9650\u5236\u3002\u8BF7\u68C0\u67E5\u8BF7\u6C42\u548C\u4EFB\u52A1 ID\uFF0C\u5E76\u7F29\u51CF\u5355\u6B21\u8BA2\u9605\u7684\u76EE\u6807\u6570\u91CF\u3002", en: "The request history subscription targets are invalid or exceed the limit. Check the request and task IDs and reduce the number of targets in one subscription." },
145
+ invalid_input_format: { "zh-CN": "\u65E0\u6CD5\u8BC6\u522B\u8F93\u5165\u683C\u5F0F\u6807\u8BC6\u3002\u8BF7\u4F7F\u7528\u63A5\u53E3\u652F\u6301\u7684 inputFormat\uFF0C\u4E0D\u8981\u81EA\u884C\u589E\u52A0\u683C\u5F0F\u7248\u672C\u3002", en: "The input format identifier is not recognized. Use an inputFormat supported by the endpoint rather than inventing a format version." },
146
+ invalid_input_mode: { "zh-CN": "\u8F93\u5165\u6A21\u5F0F\u4E3A\u7A7A\u6216\u4E0D\u7B26\u5408\u4EFB\u52A1\u7EC4\u8981\u6C42\u3002\u8BF7\u9009\u62E9\u652F\u6301\u7684 inputMode\uFF0C\u5E76\u63D0\u4F9B\u5339\u914D\u7684\u8F93\u5165\u5185\u5BB9\u3002", en: "The input mode is missing or does not meet the task run's requirements. Choose a supported inputMode and provide matching input content." },
147
+ invalid_json: { "zh-CN": "\u8BF7\u6C42\u6B63\u6587\u65E0\u6CD5\u4F5C\u4E3A\u6709\u6548 JSON \u89E3\u6790\u3002\u8BF7\u68C0\u67E5 JSON \u8BED\u6CD5\u548C\u9876\u5C42\u7ED3\u6784\uFF0C\u5E76\u4F7F\u7528\u6B63\u786E\u7684 Content-Type\u3002", en: "The request body cannot be parsed as valid JSON. Check its syntax and top-level structure and use the correct Content-Type." },
148
+ invalid_metadata: { "zh-CN": "\u4E1A\u52A1\u5143\u6570\u636E\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u63D0\u4F9B JSON \u5BF9\u8C61\uFF0C\u5E76\u68C0\u67E5\u4FDD\u7559\u5B57\u6BB5 callerUrl \u7684 HTTPS \u6765\u6E90\u683C\u5F0F\u3001endUserId \u7684\u5B57\u7B26\u4E32\u683C\u5F0F\u53CA endUserIp \u7684 IPv4/IPv6 \u5730\u5740\u683C\u5F0F\u3002", en: "The metadata does not meet the requirements. Provide a JSON object and check the HTTPS origin format of callerUrl, the string format of endUserId, and the IPv4/IPv6 address format of endUserIp." },
149
+ invalid_model: { "zh-CN": "\u8BF7\u6C42\u4E2D\u7684\u6A21\u578B\u6807\u8BC6\u6216\u6A21\u578B\u914D\u7F6E\u4E0D\u6EE1\u8DB3\u63A5\u53E3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u5BF9\u5E94\u63A5\u53E3\u7684 model/Model ID \u548C\u6A21\u578B\u914D\u7F6E\u5B57\u6BB5\u3002", en: "The model identifier or configuration does not meet the endpoint's requirements. Check the endpoint's model or model ID and the model configuration fields." },
150
+ invalid_model_endpoint: { "zh-CN": "\u6A21\u578B\u7AEF\u70B9\u914D\u7F6E\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u7AEF\u70B9\u6807\u8BC6\u3001\u534F\u8BAE\u3001\u64CD\u4F5C\u8DEF\u5F84\u548C\u53C2\u6570\u7ED3\u6784\u3002", en: "The model endpoint configuration does not meet the requirements. Check the endpoint identifier, protocol, operation paths, and parameter schema." },
151
+ invalid_model_import: { "zh-CN": "\u6A21\u578B\u5BFC\u5165\u4FE1\u606F\u4E0D\u5B8C\u6574\u6216\u4E0D\u5339\u914D\u3002\u8BF7\u63D0\u4F9B\u4E0A\u6E38 Model ID\uFF0C\u5E76\u9009\u62E9\u5BF9\u5E94\u7684\u4EE3\u7801\u6A21\u578B\u3002", en: "The model import information is incomplete or inconsistent. Provide the upstream model ID and select the corresponding code-defined model." },
152
+ invalid_model_prices: { "zh-CN": "\u6A21\u578B\u4EF7\u683C\u67E5\u8BE2\u6761\u4EF6\u4E0D\u5408\u6CD5\u3002\u8BF7\u6838\u5BF9\u6E20\u9053 ID\u3001\u6A21\u578B\u5F00\u53D1\u8005\u53CA\u4EF7\u683C\u7B5B\u9009\u6761\u4EF6\u3002", en: "The model price query is invalid. Check the channel ID, model developer, and price filters." },
153
+ invalid_model_query: { "zh-CN": "\u6A21\u578B\u67E5\u8BE2\u6761\u4EF6\u4E0D\u5408\u6CD5\u3002\u8BF7\u6838\u5BF9\u6E20\u9053 ID\u3001\u6A21\u578B\u72B6\u6001\u53CA\u5206\u9875\u7B5B\u9009\u53C2\u6570\u3002", en: "The model query is invalid. Check the channel ID, model state, and pagination filters." },
154
+ invalid_model_schema: { "zh-CN": "\u6A21\u578B\u53C2\u6570\u7ED3\u6784\u6216\u5BF9\u5E94\u64CD\u4F5C\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u63D0\u4F9B\u6B63\u786E\u7684\u64CD\u4F5C\u540D\u79F0\u548C\u7B26\u5408\u89C4\u5B9A\u7684 schema \u5185\u5BB9\u3002", en: "The model schema or its operation does not meet the requirements. Provide the correct operation name and a valid schema definition." },
155
+ invalid_model_update: { "zh-CN": "\u6A21\u578B\u66F4\u65B0\u8BF7\u6C42\u7F3A\u5C11\u5FC5\u8981\u5185\u5BB9\u6216\u5305\u542B\u4E0D\u652F\u6301\u7684\u914D\u7F6E\u3002\u8BF7\u6838\u5BF9\u53EF\u7F16\u8F91\u5B57\u6BB5\uFF0C\u5E76\u8BFB\u53D6\u6700\u65B0\u6A21\u578B\u914D\u7F6E\u540E\u4FDD\u5B58\u3002", en: "The model update lacks required content or includes unsupported configuration. Check the editable fields and load the latest model configuration before saving." },
156
+ invalid_native_body: { "zh-CN": "Native \u8BF7\u6C42\u6B63\u6587\u65E0\u6CD5\u6309\u8BE5\u63A5\u53E3\u8981\u6C42\u5904\u7406\u3002\u8BF7\u6838\u5BF9\u6B63\u6587\u683C\u5F0F\u3001\u7F16\u7801\u548C Content-Type\uFF0C\u9075\u5FAA\u539F\u5382\u63A5\u53E3\u7684\u6B63\u6587\u7ED3\u6784\u3002", en: "The native request body cannot be processed as required by this endpoint. Check its format, encoding, and Content-Type and follow the original provider's body structure." },
157
+ invalid_native_input: { "zh-CN": "Native \u8BF7\u6C42\u53C2\u6570\u4E0D\u7B26\u5408\u8BE5\u6A21\u578B\u7684\u539F\u751F\u63A5\u53E3\u8981\u6C42\u3002\u8BF7\u5BF9\u7167\u539F\u751F\u53C2\u6570\u6587\u6863\u68C0\u67E5\u5B57\u6BB5\u548C\u53D6\u503C\uFF0C\u52FF\u6539\u7528 Task \u53C2\u6570\u5305\u88C5\u3002", en: "The native parameters do not meet this model's native endpoint requirements. Check the fields and values against the native documentation rather than using a Task parameter wrapper." },
158
+ invalid_observation_scope: { "zh-CN": "\u8BA2\u9605\u8303\u56F4\u4E0D\u53D7\u652F\u6301\u3002\u8BF7\u4F7F\u7528 user \u6216 admin\uFF1Badmin \u8303\u56F4\u9700\u8981\u7BA1\u7406\u5458\u6743\u9650\u3002", en: "The observation scope is not supported. Use user or admin; the admin scope requires administrator permissions." },
159
+ invalid_observation_topics: { "zh-CN": "\u8BA2\u9605\u4E3B\u9898\u4E0D\u53D7\u652F\u6301\u6216\u8D85\u51FA\u5F53\u524D\u8EAB\u4EFD\u6743\u9650\u3002\u8BF7\u4EC5\u9009\u62E9\u63A5\u53E3\u5141\u8BB8\u4E14\u5F53\u524D\u8EAB\u4EFD\u53EF\u8BBF\u95EE\u7684\u4E3B\u9898\u3002", en: "The observation topics are unsupported or exceed your permissions. Select only topics allowed by the endpoint and accessible to your identity." },
160
+ invalid_official_price: { "zh-CN": "\u5B98\u65B9\u53C2\u8003\u4EF7\u683C\u914D\u7F6E\u4E0D\u5B8C\u6574\u6216\u4E0D\u5408\u6CD5\u3002\u8BF7\u6838\u5BF9\u6A21\u578B\u80FD\u529B\u3001\u5E01\u79CD\u548C\u8BA1\u4EF7\u89C4\u5219\u3002", en: "The official reference price is incomplete or invalid. Check the model capability, currency, and pricing rules." },
161
+ invalid_price: { "zh-CN": "\u4EF7\u683C\u914D\u7F6E\u4E0D\u6EE1\u8DB3\u4FDD\u5B58\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u4EF7\u683C\u5C42\u7EA7\u3001\u5E01\u79CD\u3001\u72B6\u6001\u3001\u8BA1\u4EF7\u89C4\u5219\u548C\u751F\u6548\u65F6\u95F4\u3002", en: "The price configuration does not meet the save requirements. Check the price level, currency, state, pricing rules, and effective dates." },
162
+ invalid_pricing_adjustment: { "zh-CN": "\u4EF7\u683C\u8C03\u6574\u4FE1\u606F\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u9002\u7528\u5BF9\u8C61\u3001\u6298\u6263\u89C4\u5219\u3001\u751F\u6548\u8303\u56F4\u53CA\u64CD\u4F5C\u539F\u56E0\u3002", en: "The pricing adjustment does not meet the requirements. Check its subjects, discount rules, effective scope, and reason for the operation." },
163
+ invalid_pricing_policy: { "zh-CN": "\u5168\u5C40\u5B9A\u4EF7\u7B56\u7565\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6309\u63A5\u53E3\u683C\u5F0F\u63D0\u4F9B\u9500\u552E\u500D\u7387\u6216\u7F8E\u5143\u5151\u4EBA\u6C11\u5E01\u6C47\u7387\uFF0C\u5E76\u6838\u5BF9\u6570\u503C\u3002", en: "The global pricing policy does not meet the requirements. Provide the sale multiplier or USD-to-CNY exchange rate in the required format and check its value." },
164
+ invalid_query: { "zh-CN": "\u67E5\u8BE2\u53C2\u6570\u65E0\u6CD5\u6309\u5F53\u524D\u63A5\u53E3\u8981\u6C42\u5904\u7406\u3002\u8BF7\u6838\u5BF9\u53C2\u6570\u540D\u79F0\u3001\u7C7B\u578B\u548C\u53D6\u503C\uFF0C\u907F\u514D\u91CD\u590D\u4F20\u5165\u4E0D\u652F\u6301\u91CD\u590D\u7684\u53C2\u6570\u3002", en: "The query parameters cannot be processed by this endpoint. Check their names, types, and values, and avoid duplicate parameters where duplicates are not supported." },
165
+ invalid_quote_batch_request: { "zh-CN": "\u6279\u91CF\u62A5\u4EF7\u8BF7\u6C42\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u63D0\u4F9B 1 \u81F3 64 \u4E2A\u5177\u6709\u552F\u4E00\u6807\u8BC6\u7684\u8F93\u5165\u5BF9\u8C61\uFF0C\u5E76\u6838\u5BF9\u6A21\u578B\u548C\u64CD\u4F5C\u3002", en: "The batch quote request does not meet the requirements. Provide 1 to 64 input objects with unique identifiers and check the model and operation." },
166
+ invalid_quote_request: { "zh-CN": "\u62A5\u4EF7\u8BF7\u6C42\u7F3A\u5C11\u5FC5\u8981\u4FE1\u606F\u6216\u8F93\u5165\u683C\u5F0F\u4E0D\u6B63\u786E\u3002\u8BF7\u63D0\u4F9B modelId\u3001operation \u548C\u5BF9\u8C61\u5F62\u5F0F\u7684 input\u3002", en: "The quote request lacks required information or has an invalid input format. Provide modelId, operation, and an input object." },
167
+ invalid_quote_token: { "zh-CN": "\u62A5\u4EF7\u51ED\u8BC1\u65E0\u6CD5\u9A8C\u8BC1\u3002\u8BF7\u91CD\u65B0\u83B7\u53D6\u5F53\u524D\u8BF7\u6C42\u7684\u6709\u6548\u62A5\u4EF7\uFF0C\u5E76\u4F7F\u7528\u63A5\u53E3\u8FD4\u56DE\u7684\u539F\u59CB quoteToken\u3002", en: "The quote token could not be verified. Obtain a valid quote for the current request and use the original quoteToken returned by the endpoint." },
168
+ invalid_reconciliation_window: { "zh-CN": "\u5BF9\u8D26\u65F6\u95F4\u8303\u56F4\u4E0D\u6EE1\u8DB3\u63A5\u53E3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u8D77\u6B62\u65F6\u95F4\u3001\u5148\u540E\u987A\u5E8F\u548C\u5141\u8BB8\u7684\u67E5\u8BE2\u8DE8\u5EA6\u3002", en: "The reconciliation date range does not meet the endpoint's requirements. Check the start and end times, their order, and the allowed range length." },
169
+ invalid_repetitions: { "zh-CN": "\u4EFB\u52A1\u7EC4\u91CD\u590D\u6B21\u6570\u8D85\u51FA\u5141\u8BB8\u8303\u56F4\u3002\u8BF7\u5C06 repetitions \u8BBE\u4E3A 1 \u81F3 8 \u7684\u6574\u6570\u3002", en: "The task run repetition count is outside the allowed range. Set repetitions to an integer from 1 to 8." },
170
+ invalid_reprice_request: { "zh-CN": "\u91CD\u65B0\u5B9A\u4EF7\u8BF7\u6C42\u7F3A\u5C11\u6709\u6548\u7684\u6E20\u9053\u6A21\u578B\u6807\u8BC6\u3002\u8BF7\u4ECE\u6E20\u9053\u6A21\u578B\u5217\u8868\u9009\u62E9 channelModelId\uFF0C\u5E76\u6838\u5BF9\u64CD\u4F5C\u540D\u79F0\u3002", en: "The repricing request lacks a valid channel model identifier. Select a channelModelId from the channel model list and check the operation name." },
171
+ invalid_request_ids: { "zh-CN": "\u8BF7\u6C42 ID \u5217\u8868\u542B\u7A7A\u503C\u3001\u8D85\u957F ID \u6216\u8D85\u8FC7\u6570\u91CF\u9650\u5236\u3002\u8BF7\u6BCF\u6B21\u63D0\u4F9B\u4E0D\u8D85\u8FC7 100 \u4E2A\u6709\u6548\u8BF7\u6C42 ID\uFF0C\u6BCF\u4E2A ID \u6700\u957F 64 \u4E2A\u5B57\u7B26\u3002", en: "The request ID list contains empty or oversized IDs, or too many entries. Provide at most 100 valid request IDs, each no longer than 64 characters." },
172
+ invalid_request_query: { "zh-CN": "\u8BF7\u6C42\u8BB0\u5F55\u7B5B\u9009\u6761\u4EF6\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u65F6\u95F4\u8303\u56F4\u3001\u5206\u9875\u6E38\u6807\u548C\u652F\u6301\u7684\u72B6\u6001\u53CA\u7B5B\u9009\u5B57\u6BB5\u3002", en: "The request record filters do not meet the requirements. Check the date range, pagination cursor, supported states, and filter fields." },
173
+ invalid_reveal_request: { "zh-CN": "\u51ED\u8BC1\u67E5\u770B\u8BF7\u6C42\u7684\u6B63\u6587\u6216\u5B57\u6BB5\u4E0D\u5408\u6CD5\u3002\u8BF7\u53D1\u9001\u5BF9\u8C61\u5F62\u5F0F\u7684\u6B63\u6587\uFF0C\u4EC5\u4F7F\u7528\u652F\u6301\u7684\u5B57\u6BB5\uFF1B\u63D0\u4F9B reason \u65F6\u5FC5\u987B\u4E3A\u975E\u7A7A\u5B57\u7B26\u4E32\u3002", en: "The credential reveal body or its fields are invalid. Send an object containing only supported fields; if reason is supplied, it must be a nonempty string." },
174
+ invalid_run_models: { "zh-CN": "\u4EFB\u52A1\u7EC4\u6A21\u578B\u5217\u8868\u5FC5\u987B\u5305\u542B 1 \u81F3 8 \u4E2A\u4E0D\u540C\u7684\u6709\u6548 Model ID\u3002\u8BF7\u79FB\u9664\u7A7A\u503C\uFF0C\u5E76\u6838\u5BF9\u6A21\u578B\u53EF\u7528\u6027\u548C\u8F93\u5165\u6A21\u5F0F\u517C\u5BB9\u6027\u3002", en: "The task run model list must contain 1 to 8 distinct valid model IDs. Remove empty values and check model availability and compatibility with the input mode." },
175
+ invalid_sandbox_input: { "zh-CN": "\u4F53\u9A8C\u4E2D\u5FC3\u8BF7\u6C42\u7684\u6A21\u578B\u3001\u8F93\u5165\u6216\u6A21\u5F0F\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u68C0\u67E5\u6240\u9009\u6A21\u578B\u3001\u8F93\u5165\u5185\u5BB9\u3001\u6A21\u5F0F\u53CA\u5BF9\u5E94\u534F\u8BAE\u662F\u5426\u5339\u914D\u3002", en: "The playground request's model, input, or mode does not meet the requirements. Check that the selected model, input, mode, and protocol match." },
176
+ invalid_schema_contract: { "zh-CN": "\u8BF7\u6C42\u7684\u53C2\u6570\u5951\u7EA6\u7C7B\u578B\u4E0D\u53D7\u652F\u6301\u3002\u8BF7\u5C06 contract \u8BBE\u4E3A nexra \u6216 native\u3002", en: "The requested parameter contract is not supported. Set contract to nexra or native." },
177
+ invalid_task: { "zh-CN": "\u4EFB\u52A1\u8BF7\u6C42\u7F3A\u5C11\u6709\u6548\u7684\u6A21\u578B\u6807\u8BC6\u6216\u4E0D\u7B26\u5408\u521B\u5EFA\u8981\u6C42\u3002\u8BF7\u6838\u5BF9 model \u5B57\u6BB5\u53CA\u8BE5\u6A21\u578B\u7684 Task \u8BF7\u6C42\u7ED3\u6784\u3002", en: "The task request lacks a valid model identifier or does not meet the creation requirements. Check the model field and the model's Task request structure." },
178
+ invalid_task_run: { "zh-CN": "\u4EFB\u52A1\u7EC4\u8BF7\u6C42\u7684\u6A21\u578B\u5217\u8868\u6216\u516C\u5171\u8F93\u5165\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u63D0\u4F9B\u6A21\u578B\u6570\u7EC4\u3001\u5BF9\u8C61\u5F62\u5F0F\u7684\u8F93\u5165\u53CA\u5339\u914D\u7684\u8F93\u5165\u6A21\u5F0F\u3002", en: "The task run's model list or shared input does not meet the requirements. Provide a model array, an input object, and a matching input mode." },
179
+ invalid_usage_export: { "zh-CN": "\u7528\u91CF\u5BFC\u51FA\u914D\u7F6E\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u6587\u4EF6\u683C\u5F0F\u3001\u7B5B\u9009\u6761\u4EF6\u3001\u65F6\u95F4\u8303\u56F4\u4EE5\u53CA\u5237\u65B0\u8BB0\u5F55\u7684\u6807\u8BC6\u3002", en: "The usage export configuration does not meet the requirements. Check the file format, filters, date range, and the identifier of any export being refreshed." },
180
+ invalid_usage_filter: { "zh-CN": "\u7528\u91CF\u7B5B\u9009\u7C7B\u578B\u6216\u641C\u7D22\u6761\u4EF6\u4E0D\u53D7\u652F\u6301\u3002\u8BF7\u9009\u62E9\u63A5\u53E3\u5141\u8BB8\u7684\u7B5B\u9009\u7C7B\u578B\uFF0C\u5E76\u4F7F\u7528\u6709\u6548\u7684\u641C\u7D22\u6761\u4EF6\u3002", en: "The usage filter type or search criteria are not supported. Choose a filter type allowed by the endpoint and provide valid search criteria." },
181
+ invalid_usage_query: { "zh-CN": "\u7528\u91CF\u67E5\u8BE2\u6761\u4EF6\u4E0D\u5408\u6CD5\u3002\u8BF7\u6838\u5BF9\u65F6\u95F4\u8303\u56F4\u3001\u5206\u9875\u53CA\u7EDF\u8BA1\u5206\u7EC4\u65B9\u5F0F\u3002", en: "The usage query is invalid. Check its date range, pagination, and aggregation grouping." },
182
+ invalid_user_activity: { "zh-CN": "\u7528\u6237\u64CD\u4F5C\u8BB0\u5F55\u7684\u7B5B\u9009\u6761\u4EF6\u6216\u5206\u9875\u6570\u91CF\u4E0D\u5408\u6CD5\u3002\u8BF7\u4F7F\u7528\u652F\u6301\u7684 kind\u3001\u6709\u6548 cursor \u548C 1 \u81F3 100 \u7684 limit\u3002", en: "The user activity filters or page size are invalid. Use a supported kind, a valid cursor, and a limit from 1 to 100." },
183
+ invalid_user_delete: { "zh-CN": "\u5F53\u524D\u7528\u6237\u5220\u9664\u8BF7\u6C42\u672A\u6EE1\u8DB3\u7BA1\u7406\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u5220\u9664\u539F\u56E0\u3001\u76EE\u6807\u8EAB\u4EFD\u3001\u94B1\u5305\u8D44\u91D1\u53CA\u7BA1\u7406\u5458\u4FDD\u62A4\u6761\u4EF6\uFF1B\u5FC5\u8981\u65F6\u505C\u7528\u8D26\u6237\u800C\u975E\u5220\u9664\u3002", en: "The user deletion request does not meet the management requirements. Check the deletion reason, target identity, wallet funds, and administrator safeguards; disable the account instead where appropriate." },
184
+ invalid_user_discount: { "zh-CN": "\u7528\u6237\u6298\u6263\u914D\u7F6E\u4E0D\u5B8C\u6574\u6216\u4E0D\u5408\u6CD5\u3002\u8BF7\u6838\u5BF9\u7528\u6237\u3001\u6A21\u578B\u64CD\u4F5C\u3001\u6298\u6263\u6570\u503C\u53CA\u8C03\u6574\u539F\u56E0\u3002", en: "The user discount configuration is incomplete or invalid. Check the user, model operation, discount value, and adjustment reason." },
185
+ invalid_user_query: { "zh-CN": "\u7528\u6237\u5217\u8868\u67E5\u8BE2\u6761\u4EF6\u4E0D\u5408\u6CD5\u3002\u8BF7\u68C0\u67E5\u641C\u7D22\u6761\u4EF6\u3001\u8D26\u6237\u7B5B\u9009\u9879\u548C\u5206\u9875\u53C2\u6570\u3002", en: "The user list query is invalid. Check the search criteria, account filters, and pagination parameters." },
186
+ invalid_user_update: { "zh-CN": "\u7528\u6237\u66F4\u65B0\u5185\u5BB9\u4E0D\u7B26\u5408\u7BA1\u7406\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u53EF\u4FEE\u6539\u5B57\u6BB5\u3001\u64CD\u4F5C\u539F\u56E0\u548C\u7BA1\u7406\u5458\u8EAB\u4EFD\u4FDD\u62A4\u6761\u4EF6\u3002", en: "The user update does not meet the management requirements. Check the editable fields, operation reason, and safeguards for administrator accounts." },
187
+ invalid_voice_request: { "zh-CN": "\u97F3\u8272\u521B\u5EFA\u4FE1\u606F\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u63D0\u4F9B\u6709\u6548\u540D\u79F0\uFF0C\u5E76\u9009\u62E9\u5F53\u524D\u8D26\u6237\u62E5\u6709\u7684\u8BBE\u8BA1\u9884\u89C8\u6216\u652F\u6301\u6570\u91CF\u7684\u97F3\u9891\u6837\u672C\u3002", en: "The voice creation request does not meet the requirements. Provide a valid name and select a design preview or supported number of audio samples owned by this account." },
188
+ invalid_wallet_open: { "zh-CN": "\u94B1\u5305\u5F00\u901A\u8BF7\u6C42\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u76EE\u6807\u7528\u6237\uFF0C\u5E76\u5C06\u7528\u6237\u94B1\u5305\u5E01\u79CD\u8BBE\u4E3A CNY\u3002", en: "The wallet opening request does not meet the requirements. Check the target user and set the user wallet currency to CNY." },
189
+ invalid_wallet_query: { "zh-CN": "\u94B1\u5305\u67E5\u8BE2\u6761\u4EF6\u4E0D\u5408\u6CD5\u3002\u8BF7\u6838\u5BF9\u5E01\u79CD\u3001\u94B1\u5305\u72B6\u6001\u3001\u641C\u7D22\u6761\u4EF6\u548C\u5206\u9875\u53C2\u6570\u3002", en: "The wallet query is invalid. Check the currency, wallet state, search criteria, and pagination parameters." },
190
+ invalid_wallet_recharge: { "zh-CN": "\u5145\u503C\u8BF7\u6C42\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u76EE\u6807\u7528\u6237\u3001CNY \u5E01\u79CD\u3001\u6B63\u6570\u91D1\u989D\u3001\u8BA2\u5355\u6807\u8BC6\u548C\u5145\u503C\u539F\u56E0\u3002", en: "The recharge request does not meet the requirements. Check the target user, CNY currency, positive amount, order identifier, and recharge reason." },
191
+ job_not_found: { "zh-CN": "\u672A\u627E\u5230\u6307\u5B9A\u7684\u5BFC\u51FA\u4EFB\u52A1\u8BB0\u5F55\u3002\u8BF7\u5237\u65B0\u5BFC\u51FA\u5217\u8868\u5E76\u6838\u5BF9\u4EFB\u52A1 ID\u3002", en: "The specified export job record was not found. Refresh the export list and check the job ID." },
192
+ model_discovery_failed: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u8BFB\u53D6\u6E20\u9053\u7684\u4E0A\u6E38\u6A21\u578B\u5217\u8868\uFF0C\u73B0\u6709\u5217\u8868\u4ECD\u88AB\u4FDD\u7559\u3002\u8BF7\u6838\u5BF9\u6E20\u9053\u5730\u5740\u548C\u51ED\u8BC1\uFF0C\u8054\u7CFB\u7BA1\u7406\u5458\u67E5\u770B\u8BF7\u6C42\u8BB0\u5F55\u3002", en: "The platform could not retrieve the channel's upstream model list; the existing list has been kept. Check the channel URL and credentials and ask an administrator to inspect the request record." },
193
+ model_import_failed: { "zh-CN": "\u5E73\u53F0\u672A\u80FD\u5C06\u6240\u9009\u4E0A\u6E38\u6A21\u578B\u5BFC\u5165\u6E20\u9053\u914D\u7F6E\u3002\u8BF7\u6838\u5BF9\u4E0A\u6E38 Model ID\u3001\u76EE\u6807\u4EE3\u7801\u6A21\u578B\u548C\u73B0\u6709\u7ED1\u5B9A\u5173\u7CFB\u3002", en: "The platform could not import the selected upstream model into the channel configuration. Check its upstream model ID, target code-defined model, and existing bindings." },
194
+ model_required: { "zh-CN": "\u8BF7\u6C42\u7F3A\u5C11\u6A21\u578B\u6807\u8BC6\u3002\u8BF7\u5728\u5BF9\u5E94\u63A5\u53E3\u8981\u6C42\u7684\u4F4D\u7F6E\u63D0\u4F9B model \u6216 Model ID\u3002", en: "The request is missing a model identifier. Provide model or the model ID in the location required by the endpoint." },
195
+ model_resource_not_found: { "zh-CN": "\u6A21\u578B\u6CA1\u6709\u63D0\u4F9B\u6240\u8BF7\u6C42\u7684\u8D44\u6E90\u7C7B\u578B\u6216\u8D44\u6E90\u5165\u53E3\u3002\u8BF7\u6838\u5BF9\u8D44\u6E90\u540D\u79F0\u53CA\u8BE5\u6A21\u578B\u652F\u6301\u7684\u80FD\u529B\u3002", en: "The model does not provide the requested resource type or endpoint. Check the resource name and the model's supported capabilities." },
196
+ models_unavailable: { "zh-CN": "\u6E20\u9053\u6A21\u578B\u7BA1\u7406\u670D\u52A1\u5C1A\u672A\u63D0\u4F9B\u6B64\u64CD\u4F5C\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u68C0\u67E5\u670D\u52A1\u914D\u7F6E\uFF0C\u5F53\u524D\u6A21\u578B\u5217\u8868\u65E0\u9700\u5220\u9664\u3002", en: "The channel model management service does not currently provide this operation. Ask a platform administrator to check its configuration; there is no need to delete the current model list." },
197
+ native_billing_unavailable: { "zh-CN": "\u5E73\u53F0\u5C1A\u4E0D\u80FD\u4E3A\u6B64 Native \u521B\u5EFA\u64CD\u4F5C\u5B8C\u6210\u8BA1\u8D39\u3002\u8BF7\u4F7F\u7528\u5DF2\u652F\u6301\u8BA1\u8D39\u7684\u63A5\u53E3\uFF0C\u6216\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u8BE5\u8DEF\u7531\u7684\u8BA1\u8D39\u652F\u6301\u3002", en: "The platform cannot currently bill this native creation operation. Use an endpoint with billing support or ask a platform administrator to review billing support for this route." },
198
+ native_body_too_large: { "zh-CN": "Native \u8BF7\u6C42\u6B63\u6587\u8D85\u8FC7\u63A5\u53E3\u7684\u63A5\u6536\u5927\u5C0F\u9650\u5236\u3002\u8BF7\u51CF\u5C11\u8F93\u5165\u5185\u5BB9\u6216\u538B\u7F29\u6587\u4EF6\uFF0C\u4ECD\u4FDD\u6301\u539F\u751F\u6B63\u6587\u7ED3\u6784\u3002", en: "The native request body exceeds the endpoint's receive limit. Reduce the input or compress the files while preserving the native body structure." },
199
+ native_callback_unavailable: { "zh-CN": "\u8BE5 Native \u89C6\u9891\u4EFB\u52A1\u6240\u9700\u7684\u5B8C\u6210\u56DE\u8C03\u63A5\u6536\u670D\u52A1\u5C1A\u672A\u914D\u7F6E\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u914D\u7F6E\u63A5\u6536\u670D\u52A1\u540E\u518D\u4F7F\u7528\u6B64\u5165\u53E3\u3002", en: "The completion callback receiver required by this native video task is not configured. Ask a platform administrator to configure it before using this endpoint." },
200
+ native_route_not_found: { "zh-CN": "\u6CA1\u6709\u627E\u5230\u4E0E\u8BF7\u6C42\u8DEF\u5F84\u548C\u6A21\u578B\u5339\u914D\u7684 Native \u8DEF\u7531\u3002\u8BF7\u6838\u5BF9\u539F\u751F\u63A5\u53E3\u8DEF\u5F84\u3001\u64CD\u4F5C\u53CA\u6A21\u578B\u6807\u8BC6\u3002", en: "No native route matches the request path and model. Check the native endpoint path, operation, and model identifier." },
201
+ native_route_required: { "zh-CN": "\u8BF7\u6C42\u7F3A\u5C11\u53EF\u786E\u5B9A Native \u8DEF\u7531\u7684\u4FE1\u606F\u3002\u8BF7\u6309\u63A5\u53E3\u8981\u6C42\u63D0\u4F9B\u8DEF\u5F84\u548C\u6A21\u578B\u6807\u8BC6\uFF0C\u907F\u514D\u4F7F\u7528\u672A\u652F\u6301\u7684\u5217\u8868\u5165\u53E3\u3002", en: "The request lacks the information needed to select a native route. Provide the required path and model identifier and avoid unsupported list endpoints." },
202
+ native_source_not_ready: { "zh-CN": "\u6765\u6E90\u89C6\u9891\u4EFB\u52A1\u672A\u8FBE\u5230\u6210\u529F\u5B8C\u6210\u72B6\u6001\uFF0C\u4E0D\u80FD\u7528\u4E8E\u8FD9\u6B21 Native \u64CD\u4F5C\u3002\u8BF7\u5148\u67E5\u8BE2\u539F\u4EFB\u52A1\u72B6\u6001\uFF0C\u518D\u4F7F\u7528\u5F53\u524D\u8D26\u6237\u5DF2\u6210\u529F\u5B8C\u6210\u7684\u89C6\u9891\u4EFB\u52A1 ID\u3002", en: "The source video task has not reached a successful completion state and cannot be used for this native operation. Check the original task and use a successfully completed video task owned by this account." },
203
+ native_task_id_required: { "zh-CN": "Native \u4EFB\u52A1\u67E5\u8BE2\u7F3A\u5C11\u4EFB\u52A1\u6807\u8BC6\u3002\u8BF7\u5728\u63A5\u53E3\u8981\u6C42\u7684\u8DEF\u5F84\u6216\u53C2\u6570\u4E2D\u63D0\u4F9B\u539F\u4EFB\u52A1 ID\u3002", en: "The native task query is missing a task identifier. Provide the original task ID in the path or parameter required by the endpoint." },
204
+ native_task_list_unsupported: { "zh-CN": "\u6B64 Native \u5165\u53E3\u4E0D\u652F\u6301\u5217\u51FA\u8D26\u6237\u4EFB\u52A1\u3002\u8BF7\u4F7F\u7528\u5177\u4F53\u4EFB\u52A1 ID \u67E5\u8BE2\uFF0C\u6216\u901A\u8FC7 Nexra \u4EFB\u52A1\u5217\u8868\u67E5\u770B\u5F53\u524D\u8D26\u6237\u7684\u4EFB\u52A1\u3002", en: "This native endpoint does not support listing account tasks. Query a specific task ID or use the Nexra task list to view tasks owned by your account." },
205
+ task_execution_unavailable: { "zh-CN": "\u4EFB\u52A1\u6267\u884C\u670D\u52A1\u6682\u4E0D\u53EF\u7528\uFF0C\u672C\u6B21\u672A\u521B\u5EFA\u4EFB\u52A1\u6216\u9884\u5360\u8D39\u7528\u3002\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF1B\u6301\u7EED\u5931\u8D25\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u68C0\u67E5\u961F\u5217\u548C Worker\u3002", en: "Task execution is unavailable. No task or billing hold was created. Retry later; if it persists, ask an administrator to check the queue and Worker." },
206
+ native_task_service_unavailable: { "zh-CN": "\u6B64\u539F\u751F\u63A5\u53E3\u7684\u4EFB\u52A1\u521B\u5EFA\u670D\u52A1\u672A\u5C31\u7EEA\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u68C0\u67E5\u670D\u52A1\u914D\u7F6E\uFF0C\u52FF\u7ED5\u8FC7\u8BE5\u5165\u53E3\u7684\u8BA1\u8D39\u6D41\u7A0B\u3002", en: "The task creation service for this native endpoint is not ready. Ask a platform administrator to check its configuration rather than bypassing the endpoint's billing flow." },
207
+ not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8BBF\u95EE\u8303\u56F4\u5185\u7684\u76EE\u6807\u8D44\u6E90\u3002\u8BF7\u68C0\u67E5\u63A5\u53E3\u8DEF\u5F84\u3001\u8D44\u6E90 ID \u548C\u8BBF\u95EE\u8EAB\u4EFD\u3002", en: "The target resource was not found within your access scope. Check the endpoint path, resource ID, and identity used to access it." },
208
+ operation_required: { "zh-CN": "\u8BF7\u6C42\u7F3A\u5C11\u6A21\u578B\u64CD\u4F5C\u540D\u79F0\u3002\u8BF7\u4F7F\u7528\u6A21\u578B\u76EE\u5F55\u4E2D\u8BE5\u6A21\u578B\u652F\u6301\u7684 operation\u3002", en: "The request is missing a model operation. Use an operation supported by the model in the catalog." },
209
+ overview_unavailable: { "zh-CN": "\u5E73\u53F0\u65E0\u6CD5\u8BFB\u53D6\u5F53\u524D\u8FD0\u884C\u6982\u89C8\u6570\u636E\u3002\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u6838\u5BF9\u76D1\u63A7\u670D\u52A1\u548C\u6570\u636E\u8BFB\u53D6\u72B6\u6001\u3002", en: "The platform cannot read the current operational overview. Ask an administrator to check the monitoring service and data access." },
210
+ price_changed: { "zh-CN": "\u9002\u7528\u4EF7\u683C\u6216\u5B9A\u4EF7\u7B56\u7565\u5728\u62A5\u4EF7\u540E\u53D1\u751F\u4E86\u53D8\u5316\u3002\u8BF7\u91CD\u65B0\u83B7\u53D6\u5F53\u524D\u8F93\u5165\u7684\u62A5\u4EF7\uFF0C\u5E76\u786E\u8BA4\u65B0\u4EF7\u683C\u540E\u7EE7\u7EED\u3002", en: "The applicable price or pricing policy changed after the quote was issued. Obtain a new quote for the current input and confirm the new price before continuing." },
211
+ pricing_adjustment_conflict: { "zh-CN": "\u8BE5\u4EF7\u683C\u8C03\u6574\u5DF2\u88AB\u5176\u4ED6\u64CD\u4F5C\u53D8\u66F4\uFF0C\u6216\u4E0E\u5DF2\u6709\u89C4\u5219\u7684\u9002\u7528\u8303\u56F4\u51B2\u7A81\u3002\u8BF7\u5237\u65B0\u89C4\u5219\u5E76\u6838\u5BF9\u751F\u6548\u8303\u56F4\u3002", en: "The pricing adjustment was changed by another operation or conflicts with an existing rule's scope. Refresh the rules and review their effective scope." },
212
+ pricing_adjustment_not_found: { "zh-CN": "\u672A\u627E\u5230\u6307\u5B9A\u7684\u4EF7\u683C\u8C03\u6574\u8BB0\u5F55\u3002\u8BF7\u5237\u65B0\u4EF7\u683C\u89C4\u5219\u5217\u8868\u5E76\u6838\u5BF9\u8BB0\u5F55 ID\u3002", en: "The specified pricing adjustment was not found. Refresh the pricing rule list and check the record ID." },
213
+ quote_contract_unavailable: { "zh-CN": "\u5E73\u53F0\u65E0\u6CD5\u52A0\u8F7D\u8BE5\u6A21\u578B\u64CD\u4F5C\u7684\u62A5\u4EF7\u53C2\u6570\u5951\u7EA6\u3002\u8BF7\u6838\u5BF9\u6A21\u578B\u548C\u64CD\u4F5C\uFF0C\u8054\u7CFB\u7BA1\u7406\u5458\u68C0\u67E5\u53C2\u6570\u5951\u7EA6\u914D\u7F6E\u3002", en: "The platform cannot load the quote parameter contract for this model operation. Check the model and operation and ask an administrator to inspect the contract configuration." },
214
+ quote_expired: { "zh-CN": "\u62A5\u4EF7\u5DF2\u4E0D\u518D\u6709\u6548\u3002\u8BF7\u4E3A\u5F53\u524D\u8F93\u5165\u91CD\u65B0\u83B7\u53D6\u62A5\u4EF7\uFF0C\u5E76\u5728\u6709\u6548\u671F\u5185\u4F7F\u7528\u65B0\u7684 quoteToken\u3002", en: "The quote is no longer valid. Obtain a new quote for the current input and use its quoteToken before it expires." },
215
+ quote_input_mismatch: { "zh-CN": "\u63D0\u4EA4\u7684\u6A21\u578B\u8F93\u5165\u4E0E\u62A5\u4EF7\u5BF9\u5E94\u7684\u8F93\u5165\u4E0D\u540C\u3002\u8BF7\u4FDD\u6301\u539F\u8F93\u5165\uFF0C\u6216\u4E3A\u4FEE\u6539\u540E\u7684\u8F93\u5165\u91CD\u65B0\u83B7\u53D6\u62A5\u4EF7\u3002", en: "The submitted model input differs from the input covered by the quote. Keep the original input or obtain a new quote for the revised input." },
216
+ quote_pricing_subject_mismatch: { "zh-CN": "\u5F53\u524D\u8BF7\u6C42\u7684\u8BA1\u4EF7\u5BF9\u8C61\u4E0E\u62A5\u4EF7\u4E0D\u4E00\u81F4\u3002\u8BF7\u4F7F\u7528\u5BF9\u5E94\u8D26\u6237\u3001API Key \u548C\u6A21\u578B\u64CD\u4F5C\u91CD\u65B0\u83B7\u53D6\u62A5\u4EF7\u3002", en: "The request's pricing subject does not match the quote. Obtain a new quote using the appropriate account, API key, and model operation." },
217
+ quote_service_unavailable: { "zh-CN": "\u5E73\u53F0\u5F53\u524D\u65E0\u6CD5\u751F\u6210\u6216\u9A8C\u8BC1\u62A5\u4EF7\u3002\u8BF7\u4FDD\u7559\u8BF7\u6C42 ID\uFF0C\u8054\u7CFB\u7BA1\u7406\u5458\u6838\u5BF9\u62A5\u4EF7\u670D\u52A1\u914D\u7F6E\u548C\u72B6\u6001\u3002", en: "The platform cannot currently generate or verify quotes. Keep the request ID and ask an administrator to review the quote service's configuration and status." },
218
+ quote_unbounded: { "zh-CN": "\u5E73\u53F0\u65E0\u6CD5\u5728\u6267\u884C\u524D\u786E\u5B9A\u6B64\u8BF7\u6C42\u7684\u8D39\u7528\u4E0A\u754C\u3002\u8BF7\u68C0\u67E5\u8F93\u5165\u548C\u7528\u91CF\u9650\u5236\uFF0C\u6216\u8054\u7CFB\u7BA1\u7406\u5458\u6838\u5BF9\u8BE5\u6A21\u578B\u7684\u62A5\u4EF7\u652F\u6301\u3002", en: "The platform cannot establish an upper cost bound before executing this request. Check the input and usage limits or ask an administrator to review quote support for this model." },
219
+ recharge_order_conflict: { "zh-CN": "\u5145\u503C\u8BA2\u5355\u6807\u8BC6\u5DF2\u5BF9\u5E94\u53E6\u4E00\u4EFD\u94B1\u5305\u6216\u91D1\u989D\u8BB0\u5F55\u3002\u8BF7\u6838\u5BF9\u539F\u8BA2\u5355\uFF1B\u4E0D\u5F97\u7528\u76F8\u540C\u8BA2\u5355\u6807\u8BC6\u63D0\u4EA4\u4E0D\u540C\u5145\u503C\u5185\u5BB9\u3002", en: "The recharge order identifier is already associated with a different wallet or amount. Review the original order and do not reuse its identifier for different recharge details." },
220
+ route_not_available_for_input: { "zh-CN": "\u5F53\u524D\u6CA1\u6709\u652F\u6301\u8FD9\u4EFD\u8F93\u5165\u7684\u53EF\u7528\u6A21\u578B\u8DEF\u7531\u3002\u8BF7\u6838\u5BF9\u6A21\u578B\u652F\u6301\u7684\u8F93\u5165\u6761\u4EF6\uFF0C\u6216\u8054\u7CFB\u7BA1\u7406\u5458\u68C0\u67E5\u6E20\u9053\u4E0E\u8DEF\u7531\u914D\u7F6E\u3002", en: "No available model route supports this input. Check the model's input requirements or ask an administrator to inspect the channel and route configuration." },
221
+ schema_version_not_found: { "zh-CN": "\u6240\u8BF7\u6C42\u7684\u53C2\u6570\u7ED3\u6784\u7248\u672C\u4E0D\u5B58\u5728\u6216\u5DF2\u4E0D\u53EF\u7528\u3002\u8BF7\u83B7\u53D6\u8BE5\u6A21\u578B\u7684\u5F53\u524D\u53C2\u6570\u7ED3\u6784\u540E\u6784\u9020\u8BF7\u6C42\u3002", en: "The requested schema version does not exist or is no longer available. Fetch the model's current schema before constructing the request." },
222
+ seedance_asset_center_unavailable: { "zh-CN": "\u5E73\u53F0\u6CA1\u6709\u53EF\u7528\u7684\u8D44\u6E90\u8BA4\u8BC1\u6E20\u9053\u6216\u51ED\u8BC1\u914D\u7F6E\u3002\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u6838\u5BF9\u8D44\u6E90\u4E2D\u5FC3\u6E20\u9053\uFF0C\u52FF\u66F4\u6362\u5BA2\u6237 API Key \u6765\u5904\u7406\u8BE5\u95EE\u9898\u3002", en: "The platform has no usable asset certification channel or credential configuration. Ask a platform administrator to review the asset center channel; changing your customer API key will not address this issue." },
223
+ seedance_asset_certification_failed: { "zh-CN": "\u4E0A\u6E38\u8D44\u6E90\u4E2D\u5FC3\u672A\u80FD\u5B8C\u6210\u8D44\u6E90\u8BA4\u8BC1\u3002\u8BF7\u67E5\u770B\u8BA4\u8BC1\u72B6\u6001\u53CA\u53EF\u7528\u7684\u9519\u8BEF\u8BE6\u60C5\uFF0C\u5E76\u6838\u5BF9\u8D44\u6E90\u5185\u5BB9\u3002", en: "The upstream asset center could not complete certification. Check the certification status and available error details and review the asset content." },
224
+ seedance_asset_group_processing: { "zh-CN": "\u4E0A\u6E38\u8D44\u6E90\u7EC4\u4ECD\u5728\u51C6\u5907\uFF0C\u5C1A\u4E0D\u80FD\u7528\u4E8E\u5F53\u524D\u64CD\u4F5C\u3002\u8BF7\u67E5\u8BE2\u539F\u8D44\u6E90\u7EC4\u72B6\u6001\uFF0C\u5F85\u5176\u5C31\u7EEA\u540E\u7EE7\u7EED\u3002", en: "The upstream asset group is still being prepared and cannot yet be used for this operation. Check the original group's status and continue once it is ready." },
225
+ task_id_required: { "zh-CN": "\u8BF7\u6C42\u7F3A\u5C11\u4EFB\u52A1 ID\u3002\u8BF7\u4F7F\u7528\u521B\u5EFA\u8BF7\u6C42\u8FD4\u56DE\u7684\u539F\u4EFB\u52A1 ID\uFF0C\u6309\u63A5\u53E3\u8981\u6C42\u586B\u5199\u8DEF\u5F84\u6216\u67E5\u8BE2\u53C2\u6570\u3002", en: "The request is missing a task ID. Use the original ID returned by task creation in the path or query parameter required by the endpoint." },
226
+ task_not_cancellable: { "zh-CN": "\u4EFB\u52A1\u5F53\u524D\u4E0D\u80FD\u53D6\u6D88\uFF0C\u53EF\u80FD\u5DF2\u5F00\u59CB\u6267\u884C\u6216\u8BE5\u64CD\u4F5C\u4E0D\u652F\u6301\u53D6\u6D88\u3002\u8BF7\u7EE7\u7EED\u67E5\u8BE2\u539F\u4EFB\u52A1\u72B6\u6001\uFF0C\u4E0D\u8981\u628A\u53D6\u6D88\u8BF7\u6C42\u5F53\u4F5C\u5DF2\u53D6\u6D88\u6210\u529F\u3002", en: "The task cannot be cancelled now; it may have started or the operation may not support cancellation. Continue checking the original task and do not treat the cancellation request as a successful cancellation." },
227
+ task_run_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u53EF\u8BBF\u95EE\u7684\u4EFB\u52A1\u7EC4\u3002\u8BF7\u6838\u5BF9\u4EFB\u52A1\u7EC4 ID\uFF0C\u5E76\u4F7F\u7528\u6240\u5C5E\u8D26\u6237\u7684\u51ED\u8BC1\u67E5\u8BE2\u3002", en: "No task run accessible to this account was found. Check the run ID and use credentials for the account that owns it." },
228
+ unsupported_asset_kind: { "zh-CN": "\u6B64\u64CD\u4F5C\u4E0D\u652F\u6301\u5F53\u524D\u8D44\u6E90\u7C7B\u578B\u3002\u8BF7\u9009\u62E9\u8BE5\u64CD\u4F5C\u652F\u6301\u7684\u56FE\u7247\u3001\u89C6\u9891\u6216\u97F3\u9891\u8D44\u6E90\u3002", en: "This operation does not support the current asset type. Select an image, video, or audio asset supported by the operation." },
229
+ user_has_history: { "zh-CN": "\u8BE5\u7528\u6237\u5DF2\u6709\u9700\u8981\u4FDD\u7559\u7684\u4E1A\u52A1\u6216\u8D44\u91D1\u8BB0\u5F55\uFF0C\u4E0D\u80FD\u5220\u9664\u3002\u8BF7\u4FDD\u7559\u5386\u53F2\u8BB0\u5F55\uFF0C\u6309\u7BA1\u7406\u8981\u6C42\u505C\u7528\u6216\u9650\u5236\u8D26\u6237\u3002", en: "This user has business or financial records that must be retained and cannot be deleted. Keep the history and disable or restrict the account according to the management policy." },
230
+ user_not_found: { "zh-CN": "\u672A\u627E\u5230\u6307\u5B9A\u7528\u6237\u8BB0\u5F55\u3002\u8BF7\u5237\u65B0\u7528\u6237\u5217\u8868\uFF0C\u6838\u5BF9\u7528\u6237 ID \u548C\u7BA1\u7406\u8BBF\u95EE\u8303\u56F4\u3002", en: "The specified user record was not found. Refresh the user list and check the user ID and management access scope." },
231
+ voice_channel_mismatch: { "zh-CN": "\u6240\u9009\u97F3\u8272\u7ED1\u5B9A\u7684\u6E20\u9053\u4E0E\u6B64\u4EFB\u52A1\u6E20\u9053\u4E0D\u540C\u3002\u8BF7\u9009\u62E9\u4E0E\u4EFB\u52A1\u6E20\u9053\u4E00\u81F4\u7684\u97F3\u8272\uFF0C\u6216\u6838\u5BF9\u97F3\u8272\u5BF9\u5E94\u7684\u6A21\u578B\u6E20\u9053\u3002", en: "The selected voice is bound to a different channel than this task. Choose a voice for the task's channel or review the voice's model-channel binding." },
232
+ voice_expired: { "zh-CN": "\u6240\u9009\u97F3\u8272\u5DF2\u8D85\u8FC7\u6709\u6548\u671F\uFF0C\u5F53\u524D\u4E0D\u80FD\u7528\u4E8E\u751F\u6210\u3002\u8BF7\u67E5\u770B\u97F3\u8272\u8BB0\u5F55\uFF0C\u5E76\u9009\u62E9\u4ECD\u6709\u6548\u7684\u97F3\u8272\u3002", en: "The selected voice has expired and cannot currently be used for generation. Check its record and choose a voice that is still valid." },
233
+ voice_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u53EF\u8BBF\u95EE\u7684\u97F3\u8272\u3002\u8BF7\u6838\u5BF9\u97F3\u8272 ID\u3001\u5F52\u5C5E\u8D26\u6237\u548C\u97F3\u8272\u5217\u8868\u3002", en: "No voice accessible to this account was found. Check the voice ID, owning account, and voice list." },
234
+ voice_not_ready: { "zh-CN": "\u97F3\u8272\u5C1A\u672A\u6FC0\u6D3B\u6216\u7F3A\u5C11\u53EF\u7528\u6E20\u9053\uFF0C\u5F53\u524D\u4E0D\u80FD\u7528\u4E8E\u751F\u6210\u3002\u8BF7\u67E5\u770B\u97F3\u8272\u72B6\u6001\uFF0C\u5F85\u5176\u5C31\u7EEA\u540E\u4F7F\u7528\u3002", en: "The voice is not active or has no available channel and cannot currently be used for generation. Check its status and use it once it is ready." },
235
+ voice_preview_already_saved: { "zh-CN": "\u6B64\u8BBE\u8BA1\u9884\u89C8\u5DF2\u88AB\u4FDD\u5B58\uFF0C\u5F53\u524D\u4E0D\u80FD\u518D\u6B21\u4FDD\u5B58\u4E3A\u79C1\u6709\u97F3\u8272\u3002\u5982\u5148\u524D\u7531\u4F60\u4FDD\u5B58\uFF0C\u8BF7\u5728\u81EA\u5DF1\u7684\u97F3\u8272\u5217\u8868\u4E2D\u67E5\u627E\uFF1B\u5426\u5219\u9009\u62E9\u5176\u4ED6\u9884\u89C8\u3002", en: "This design preview has already been saved and cannot be saved again as a private voice. If you saved it previously, look in your own voice list; otherwise, choose another preview." },
236
+ voice_preview_invalid: { "zh-CN": "\u8BBE\u8BA1\u9884\u89C8\u7F3A\u5C11\u521B\u5EFA\u79C1\u6709\u97F3\u8272\u6240\u9700\u7684\u97F3\u8272\u63CF\u8FF0\u3002\u8BF7\u6838\u5BF9\u539F\u8BBE\u8BA1\u8BF7\u6C42\uFF0C\u6216\u751F\u6210\u5305\u542B\u5B8C\u6574\u63CF\u8FF0\u7684\u65B0\u9884\u89C8\u3002", en: "The design preview lacks the voice description required to create a private voice. Review the original design request or generate a new preview with a complete description." },
237
+ voice_preview_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u62E5\u6709\u7684\u8BBE\u8BA1\u9884\u89C8\u6216\u6240\u9009\u9884\u89C8 ID\u3002\u8BF7\u6838\u5BF9\u539F\u8BBE\u8BA1\u4EFB\u52A1 ID \u548C previewId\uFF0C\u5E76\u4F7F\u7528\u81EA\u5DF1\u7684\u6709\u6548\u9884\u89C8\u8BB0\u5F55\u3002", en: "The design preview or selected preview ID was not found for this account. Check the original design task ID and previewId and use a valid preview you own." },
238
+ voice_sample_not_found: { "zh-CN": "\u672A\u627E\u5230\u5F53\u524D\u8D26\u6237\u62E5\u6709\u7684\u97F3\u9891\u6837\u672C\u3002\u8BF7\u6838\u5BF9\u6837\u672C ID \u548C\u5F52\u5C5E\uFF0C\u4E0A\u4F20\u6709\u6548\u97F3\u9891\u540E\u518D\u9009\u62E9\u3002", en: "The audio samples were not found for this account. Check the sample IDs and ownership and select valid uploaded audio." },
239
+ voice_verification_required: { "zh-CN": "\u6240\u9009\u97F3\u8272\u9700\u8981\u4E0A\u6E38\u5382\u5546\u9A8C\u8BC1\uFF0C\u5F53\u524D\u4E0D\u80FD\u76F4\u63A5\u4F7F\u7528\u3002\u8BF7\u8054\u7CFB\u97F3\u8272\u8D44\u6E90\u7BA1\u7406\u8005\u6216\u5E73\u53F0\u652F\u6301\u6838\u5BF9\u9A8C\u8BC1\u8981\u6C42\uFF0C\u6216\u9009\u62E9\u5176\u4ED6\u53EF\u7528\u97F3\u8272\u3002", en: "The selected voice requires upstream provider verification and cannot be used directly yet. Ask the voice resource owner or platform support to review the verification requirements, or choose another available voice." },
240
+ wallet_balance_limit: { "zh-CN": "\u672C\u6B21\u5145\u503C\u4F1A\u8D85\u8FC7\u94B1\u5305\u4F59\u989D\u4E0A\u9650\u3002\u8BF7\u51CF\u5C11\u5145\u503C\u91D1\u989D\u5E76\u6838\u5BF9\u5F53\u524D\u4F59\u989D\u3002", en: "This recharge would exceed the wallet balance limit. Reduce the recharge amount and review the current balance." },
241
+ wallet_closed: { "zh-CN": "\u8BE5\u94B1\u5305\u5DF2\u5173\u95ED\uFF0C\u4E0D\u80FD\u63A5\u6536\u65B0\u7684\u5145\u503C\u6216\u7528\u4E8E\u5F53\u524D\u64CD\u4F5C\u3002\u8BF7\u8054\u7CFB\u8D26\u6237\u7BA1\u7406\u5458\u6838\u5BF9\u53EF\u7528\u94B1\u5305\u3002", en: "This wallet is closed and cannot receive new recharges or be used for this operation. Ask your account administrator to review the available wallets." },
242
+ wallet_not_found: { "zh-CN": "\u672A\u627E\u5230\u76EE\u6807\u8D26\u6237\u5728\u6240\u9700\u5E01\u79CD\u4E0B\u7684\u94B1\u5305\u3002\u8BF7\u6838\u5BF9\u7528\u6237\u548C\u5E01\u79CD\uFF0C\u5E76\u8054\u7CFB\u7BA1\u7406\u5458\u5F00\u901A\u9002\u7528\u94B1\u5305\u3002", en: "No wallet was found for the target account in the required currency. Check the user and currency and ask an administrator to open the appropriate wallet." },
243
+ callback_not_found: { "zh-CN": "\u8BE5\u4EFB\u52A1\u6CA1\u6709\u53EF\u91CD\u653E\u7684\u56DE\u8C03\u914D\u7F6E\u3002\u8BF7\u6838\u5BF9\u4EFB\u52A1\u521B\u5EFA\u65F6\u662F\u5426\u8BBE\u7F6E\u4E86\u56DE\u8C03\uFF0C\u4E0D\u80FD\u4E3A\u5386\u53F2\u4EFB\u52A1\u8865\u9020\u56DE\u8C03\u901A\u77E5\u3002", en: "This task has no callback configuration that can be replayed. Check whether a callback was configured at creation; do not fabricate a callback notification for a historical task." },
244
+ task_not_terminal: { "zh-CN": "\u4EFB\u52A1\u5C1A\u672A\u7ED3\u675F\uFF0C\u5F53\u524D\u4E0D\u80FD\u91CD\u653E\u5B8C\u6210\u56DE\u8C03\u3002\u8BF7\u67E5\u8BE2\u539F\u4EFB\u52A1\u72B6\u6001\uFF0C\u5F85\u5176\u8FDB\u5165\u7EC8\u6001\u540E\u518D\u64CD\u4F5C\u3002", en: "The task is not terminal, so its completion callback cannot be replayed yet. Check the original task and wait until it reaches a terminal state." },
245
+ callback_in_progress: { "zh-CN": "\u8BE5\u4EFB\u52A1\u7684\u56DE\u8C03\u5DF2\u5728\u7B49\u5F85\u6216\u91CD\u8BD5\u6295\u9012\uFF0C\u4E0D\u80FD\u518D\u6B21\u52A0\u5165\u6295\u9012\u961F\u5217\u3002\u8BF7\u67E5\u770B\u73B0\u6709\u56DE\u8C03\u72B6\u6001\u3002", en: "This task's callback is already pending or retrying and cannot be queued again. Check the existing callback's delivery status." },
246
+ invalid_channel_pricing: { "zh-CN": "\u6E20\u9053\u4EF7\u683C\u914D\u7F6E\u4E0D\u7B26\u5408\u5F53\u524D\u6A21\u578B\u7684\u8BA1\u4EF7\u8981\u6C42\u3002\u8BF7\u6838\u5BF9\u6E20\u9053\u6A21\u578B\u3001\u5E01\u79CD\u3001\u6210\u672C\u89C4\u5219\u548C\u9500\u552E\u5B9A\u4EF7\u5173\u8054\u3002", en: "The channel pricing configuration does not meet the current model's requirements. Check the channel model, currency, procurement pricing rules, and sale pricing relationships." },
247
+ invalid_monitoring_query: { "zh-CN": "\u76D1\u63A7\u6982\u89C8\u7684\u65F6\u95F4\u7A97\u53E3\u4E0D\u53D7\u652F\u6301\u3002\u8BF7\u5C06 hours \u8BBE\u4E3A 24 \u6216 168\u3002", en: "The monitoring overview time window is not supported. Set hours to 24 or 168." },
248
+ invalid_probe_target: { "zh-CN": "\u63A2\u6D4B\u76EE\u6807\u6807\u8BC6\u6216\u914D\u7F6E\u4E0D\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u4F7F\u7528\u6709\u6548\u7684\u76EE\u6807\u6216\u8DEF\u7531 UUID\uFF0C\u5E76\u6838\u5BF9\u6A21\u578B\u64CD\u4F5C\u548C\u63A2\u6D4B\u53C2\u6570\u3002", en: "The probe target identifier or configuration does not meet the requirements. Use a valid target or route UUID and check the model operation and probe parameters." },
249
+ invalid_monitoring_budget: { "zh-CN": "\u6BCF\u65E5\u63A2\u6D4B\u9884\u7B97\u914D\u7F6E\u4E0D\u7B26\u5408\u8981\u6C42\u3002\u8BF7\u4F7F\u7528\u4E09\u4F4D\u5927\u5199\u5E01\u79CD\u4EE3\u7801\uFF0C\u5E76\u63D0\u4F9B\u5927\u4E8E\u96F6\u7684\u5341\u8FDB\u5236\u91D1\u989D\u3002", en: "The daily probe budget does not meet the requirements. Use a three-letter uppercase currency code and a positive decimal amount." },
250
+ probe_execution_disabled: { "zh-CN": "\u5E73\u53F0\u5C1A\u672A\u542F\u7528\u4ED8\u8D39\u63A2\u6D4B\uFF0C\u5F53\u524D\u4E0D\u4F1A\u6267\u884C\u6B64\u8BF7\u6C42\u3002\u8BF7\u7531\u7BA1\u7406\u5458\u786E\u8BA4\u9884\u7B97\u548C\u6388\u6743\u540E\u542F\u7528\u63A2\u6D4B\u914D\u7F6E\u3002", en: "Paid probes are not enabled, so this request will not run. Have an administrator confirm the budget and authorization before enabling probe execution." },
251
+ probe_request_conflict: { "zh-CN": "\u5F53\u524D\u63A2\u6D4B\u76EE\u6807\u6216\u8FD0\u884C\u72B6\u6001\u4E0D\u5141\u8BB8\u6267\u884C\u672C\u6B21\u64CD\u4F5C\u3002\u8BF7\u5237\u65B0\u76EE\u6807\u53CA\u8FD0\u884C\u8BB0\u5F55\uFF0C\u6838\u5BF9\u662F\u5426\u5DF2\u6709\u6267\u884C\u4E2D\u7684\u63A2\u6D4B\u3002", en: "The current probe target or run state does not allow this operation. Refresh the target and run records and check for a probe already in progress." },
252
+ probe_run_not_found: { "zh-CN": "\u672A\u627E\u5230\u6307\u5B9A\u7684\u63A2\u6D4B\u8FD0\u884C\u8BB0\u5F55\u3002\u8BF7\u6838\u5BF9\u8FD0\u884C ID \u5E76\u5237\u65B0\u63A2\u6D4B\u5386\u53F2\u3002", en: "The specified probe run was not found. Check the run ID and refresh the probe history." },
253
+ invalid_probe_cost: { "zh-CN": "\u63A2\u6D4B\u8D39\u7528\u6838\u5BF9\u8BF7\u6C42\u672A\u6EE1\u8DB3\u8981\u6C42\u3002\u8BF7\u4F7F\u7528\u6709\u6548\u7684\u8FD0\u884C ID\uFF0C\u6838\u5BF9\u5B9E\u9645\u8D39\u7528\u91D1\u989D\u548C\u8BE5\u8FD0\u884C\u7684\u7ED3\u7B97\u72B6\u6001\u3002", en: "The probe cost reconciliation request does not meet the requirements. Use a valid run ID and review the actual cost amount and the run's settlement state." }
254
+ };
255
+
256
+ // ../contracts/src/errors.ts
257
+ var PUBLIC_ERROR_CODES = Object.keys(PUBLIC_ERROR_CATALOG);
258
+ var PUBLIC_ERROR_MESSAGES = {
259
+ "zh-CN": Object.fromEntries(PUBLIC_ERROR_CODES.map((code) => [code, PUBLIC_ERROR_CATALOG[code]["zh-CN"]])),
260
+ en: Object.fromEntries(PUBLIC_ERROR_CODES.map((code) => [code, PUBLIC_ERROR_CATALOG[code].en]))
261
+ };
262
+ function isPublicErrorCode(code) {
263
+ return Object.hasOwn(PUBLIC_ERROR_CATALOG, code);
264
+ }
265
+ function publicErrorMessage(code, locale = "en") {
266
+ return PUBLIC_ERROR_MESSAGES[locale][isPublicErrorCode(code) ? code : "internal_error"];
267
+ }
268
+ function pickPublicErrorDetails(value) {
269
+ return isRecord(value) && typeof value.param === "string" && value.param.trim() ? { param: value.param } : void 0;
270
+ }
271
+ function pickPublicUpstreamError(value) {
272
+ if (!isRecord(value)) return void 0;
273
+ const upstreamHttpStatus = httpStatus(value.upstreamHttpStatus !== void 0 ? value.upstreamHttpStatus : value.httpStatus);
274
+ const upstreamRequestId = identifier(value.upstreamRequestId !== void 0 ? value.upstreamRequestId : value.requestId);
275
+ const hasBody = Object.hasOwn(value, "body") && value.body !== void 0;
276
+ const format = value.format === "sse" || value.format === "decoded" ? value.format : void 0;
277
+ const event = format === "sse" && typeof value.event === "string" && value.event ? value.event : void 0;
278
+ const unavailableReason = hasBody ? void 0 : upstreamUnavailableReason(value.unavailableReason);
279
+ const upstream = {
280
+ ...upstreamHttpStatus !== void 0 ? { upstreamHttpStatus } : {},
281
+ ...upstreamRequestId !== void 0 ? { upstreamRequestId } : {},
282
+ ...hasBody ? { body: value.body } : {},
283
+ ...value.redacted === true ? { redacted: true } : {},
284
+ ...value.truncated === true ? { truncated: true } : {},
285
+ ...format ? { format } : {},
286
+ ...event ? { event } : {},
287
+ ...unavailableReason ? { unavailableReason } : {}
288
+ };
289
+ return Object.keys(upstream).length ? upstream : void 0;
290
+ }
291
+ function evidenceFields(input) {
292
+ const details = pickPublicErrorDetails(input.details);
293
+ const upstream = pickPublicUpstreamError(input.upstream !== void 0 ? input.upstream : isRecord(input.details) ? input.details.upstream : void 0);
294
+ return { ...upstream ? { upstream } : {}, ...details ? { details } : {} };
295
+ }
296
+ function errorSource(input) {
297
+ return Object.hasOwn(input, "nexraError") ? input : isRecord(input.error) ? input.error : input;
298
+ }
299
+ function nexraErrorValue(source) {
300
+ return Object.hasOwn(source, "nexraError") ? source.nexraError : source;
301
+ }
302
+ function pickNexraError(source) {
303
+ const value = nexraErrorValue(source);
304
+ if (!isRecord(value)) return void 0;
305
+ const code = identifier(value.code);
306
+ if (!code || typeof value.message !== "string") return void 0;
307
+ const param = identifier(value.param) ?? (Object.hasOwn(source, "nexraError") ? void 0 : pickPublicErrorDetails(source.details)?.param);
308
+ return { code, message: value.message, ...param ? { param } : {} };
309
+ }
310
+ function pickPublicErrorFields(input, context = {}) {
311
+ const owner = isRecord(input) ? input : {};
312
+ const source = errorSource(owner);
313
+ const ownerId = identifier(owner.nexraRequestId !== void 0 ? owner.nexraRequestId : owner.requestId);
314
+ const sourceId = identifier(source.nexraRequestId !== void 0 ? source.nexraRequestId : source.requestId);
315
+ const originalId = ownerId ?? sourceId;
316
+ const contextId = identifier(context.nexraRequestId);
317
+ const nexraRequestId = originalId ?? contextId;
318
+ const status = (ownerId ? httpStatus(owner.nexraHttpStatus) : void 0) ?? (sourceId && sourceId === originalId ? httpStatus(source.nexraHttpStatus) : void 0);
319
+ const nexraHttpStatus = nexraRequestId ? status ?? (contextId === nexraRequestId ? httpStatus(context.nexraHttpStatus) : void 0) : void 0;
320
+ const nexraError = pickNexraError(source);
321
+ return {
322
+ ...nexraRequestId ? { nexraRequestId } : {},
323
+ ...nexraHttpStatus !== void 0 ? { nexraHttpStatus } : {},
324
+ ...nexraError ? { nexraError } : {},
325
+ ...flatUpstreamFields(owner, source)
326
+ };
327
+ }
328
+ function normalizePublicErrorInput(input, context = {}) {
329
+ const fields = pickPublicErrorFields(input, context);
330
+ return fields.nexraError ? { ...fields, nexraError: fields.nexraError } : void 0;
331
+ }
332
+ function flatUpstreamFields(owner, source) {
333
+ const legacy = evidenceFields(source).upstream;
334
+ const field = (key, fallback) => Object.hasOwn(owner, key) ? owner[key] : Object.hasOwn(source, key) ? source[key] : fallback;
335
+ const body = Object.hasOwn(owner, "upstreamError") ? owner.upstreamError : Object.hasOwn(source, "upstreamError") ? source.upstreamError : legacy?.body !== null && typeof legacy?.body === "object" && Object.hasOwn(legacy.body, "error") ? legacy.body.error : legacy?.body;
336
+ const upstream = pickPublicUpstreamError({
337
+ upstreamHttpStatus: field("upstreamHttpStatus", legacy?.upstreamHttpStatus),
338
+ upstreamRequestId: field("upstreamRequestId", legacy?.upstreamRequestId),
339
+ ...body !== void 0 ? { body } : {},
340
+ redacted: field("upstreamRedacted", legacy?.redacted),
341
+ truncated: field("upstreamTruncated", legacy?.truncated),
342
+ format: field("upstreamFormat", legacy?.format),
343
+ event: field("upstreamEvent", legacy?.event),
344
+ unavailableReason: field("upstreamUnavailableReason", legacy?.unavailableReason)
345
+ });
346
+ const explicitMessage = field("upstreamErrorMessage");
347
+ const upstreamErrorMessage = typeof explicitMessage === "string" && explicitMessage.trim() ? explicitMessage : extractUpstreamErrorMessage(upstream?.body);
348
+ return {
349
+ ...upstreamErrorMessage !== void 0 ? { upstreamErrorMessage } : {},
350
+ ...upstream?.upstreamHttpStatus !== void 0 ? { upstreamHttpStatus: upstream.upstreamHttpStatus } : {},
351
+ ...upstream?.upstreamRequestId ? { upstreamRequestId: upstream.upstreamRequestId } : {},
352
+ ...upstream && Object.hasOwn(upstream, "body") ? { upstreamError: upstream.body } : {},
353
+ ...upstream?.redacted ? { upstreamRedacted: true } : {},
354
+ ...upstream?.truncated ? { upstreamTruncated: true } : {},
355
+ ...upstream?.format ? { upstreamFormat: upstream.format } : {},
356
+ ...upstream?.event ? { upstreamEvent: upstream.event } : {},
357
+ ...upstream?.unavailableReason ? { upstreamUnavailableReason: upstream.unavailableReason } : {}
358
+ };
359
+ }
360
+ function upstreamUnavailableReason(value) {
361
+ return value === "no_response" || value === "not_retained" || value === "unsupported_capture" || value === "error_not_emitted" || value === "size_limit" ? value : void 0;
362
+ }
363
+ function extractUpstreamErrorMessage(value) {
364
+ const visited = /* @__PURE__ */ new WeakSet();
365
+ const read = (candidate, depth) => {
366
+ if (typeof candidate === "string") return candidate.trim() ? candidate : void 0;
367
+ if (depth > 8 || !candidate || typeof candidate !== "object" || visited.has(candidate)) return void 0;
368
+ visited.add(candidate);
369
+ if (Array.isArray(candidate)) {
370
+ const messages = candidate.flatMap((item) => read(item, depth + 1) ?? []);
371
+ return messages.length ? messages.join("\n") : void 0;
372
+ }
373
+ const record = candidate;
374
+ for (const key of ["error", "Error"]) {
375
+ const message = read(record[key], depth + 1);
376
+ if (message) return message;
377
+ }
378
+ for (const key of ["errorMessage", "failure_reason", "status_message", "errMsg"]) {
379
+ const message = record[key];
380
+ if (typeof message === "string" && message.trim()) return message;
381
+ }
382
+ for (const key of ["base_resp", "detail", "output", "task", "data", "response", "Response", "videoGenerateTaskInfo", "steps"]) {
383
+ if (key === "base_resp" && isRecord(record[key]) && record[key].status_code === 0) continue;
384
+ const message = read(record[key], depth + 1);
385
+ if (message) return message;
386
+ }
387
+ for (const key of ["message", "msg", "status_msg"]) {
388
+ const message = record[key];
389
+ if (typeof message === "string" && message.trim()) return message;
390
+ }
391
+ if (Array.isArray(record.candidates)) {
392
+ const messages = record.candidates.flatMap((candidate2) => {
393
+ if (!isRecord(candidate2)) return [];
394
+ const parts = isRecord(candidate2.content) ? candidate2.content.parts : void 0;
395
+ const texts = Array.isArray(parts) ? parts.flatMap((part) => isRecord(part) && part.thought !== true && typeof part.text === "string" && part.text.trim() ? [part.text] : []) : [];
396
+ return texts.length ? texts : typeof candidate2.finishMessage === "string" && candidate2.finishMessage.trim() ? [candidate2.finishMessage] : [];
397
+ });
398
+ if (messages.length) return messages.join("\n");
399
+ }
400
+ if (isRecord(record.promptFeedback)) {
401
+ const message = record.promptFeedback.blockReasonMessage;
402
+ if (typeof message === "string" && message.trim()) return message;
403
+ }
404
+ return void 0;
405
+ };
406
+ return read(value, 0);
407
+ }
408
+ function identifier(value) {
409
+ return typeof value === "string" && value.trim() ? value : void 0;
410
+ }
411
+ function httpStatus(value) {
412
+ return typeof value === "number" && Number.isInteger(value) && value >= 100 && value <= 599 ? value : void 0;
413
+ }
414
+ function resolvePublicErrorLocale(acceptLanguage) {
415
+ let chosen = "en";
416
+ let highestQuality = 0;
417
+ for (const candidate of (acceptLanguage ?? "").split(",")) {
418
+ const [tag, ...parameters] = candidate.trim().toLowerCase().split(";");
419
+ const locale = /^zh(?:-[a-z0-9]+)*$/.test(tag ?? "") ? "zh-CN" : /^en(?:-[a-z0-9]+)*$/.test(tag ?? "") ? "en" : void 0;
420
+ if (!locale) continue;
421
+ const qualityParameter = parameters.map((parameter) => parameter.trim()).find((parameter) => parameter.startsWith("q="));
422
+ const rawQuality = qualityParameter?.slice(2).trim();
423
+ const quality = rawQuality === void 0 ? 1 : /^(?:0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/.test(rawQuality) ? Number(rawQuality) : 0;
424
+ if (quality > highestQuality) {
425
+ chosen = locale;
426
+ highestQuality = quality;
427
+ }
428
+ }
429
+ return chosen;
430
+ }
431
+ function isRecord(value) {
432
+ return typeof value === "object" && value !== null && !Array.isArray(value);
433
+ }
434
+
435
+ // ../contracts/src/media-api.ts
436
+ var NEXRA_MEDIA_API_VERSION = 1;
437
+ var NEXRA_GENERATION_OPERATIONS = [
438
+ "text.generate",
439
+ "image.generate",
440
+ "video.generate",
441
+ "audio.generate",
442
+ "audio.transcribe",
443
+ "image.upscale",
444
+ "video.upscale",
445
+ "video.depth",
446
+ "video.segment"
447
+ ];
448
+ var NEXRA_MEDIA_OPERATIONS = [
449
+ "image.generate",
450
+ "video.generate",
451
+ "audio.generate",
452
+ "audio.transcribe",
453
+ "image.upscale",
454
+ "video.upscale",
455
+ "video.depth",
456
+ "video.segment"
457
+ ];
458
+ var NEXRA_PUBLISHED_MEDIA_OPERATIONS = [
459
+ "image.generate",
460
+ "video.generate",
461
+ "audio.generate",
462
+ "audio.transcribe",
463
+ "image.upscale",
464
+ "video.upscale",
465
+ "video.depth",
466
+ "video.segment"
467
+ ];
468
+ var NEXRA_MEDIA_FEATURES = [
469
+ "text-to-image",
470
+ "image-to-image",
471
+ "image-reference",
472
+ "image-edit",
473
+ "image-inpaint",
474
+ "image-control",
475
+ "text-to-video",
476
+ "first-frame",
477
+ "first-last-frame",
478
+ "image-to-video",
479
+ "video-to-video",
480
+ "audio-to-video",
481
+ "avatar-video",
482
+ "reference-image",
483
+ "reference-video",
484
+ "reference-audio",
485
+ "omni-reference",
486
+ "asr",
487
+ "tts",
488
+ "music",
489
+ "sfx",
490
+ "voice-reference",
491
+ "voice-design",
492
+ "scale-factor",
493
+ "target-resolution",
494
+ "video-depth",
495
+ "video-segment"
496
+ ];
497
+ var NEXRA_MEDIA_OPERATION_DEFINITIONS = Object.freeze([
498
+ {
499
+ operation: "image.generate",
500
+ status: "active",
501
+ outputKind: "image",
502
+ features: ["text-to-image", "image-to-image", "image-reference", "image-edit", "image-inpaint", "image-control"],
503
+ parameterKeys: ["aspect_ratio", "resolution", "quality", "count", "output_format", "seed", "output_mode", "prompt_optimization"]
504
+ },
505
+ {
506
+ operation: "video.generate",
507
+ status: "active",
508
+ outputKind: "video",
509
+ features: ["text-to-video", "first-frame", "first-last-frame", "image-to-video", "video-to-video", "audio-to-video", "avatar-video", "reference-image", "reference-video", "reference-audio", "omni-reference"],
510
+ parameterKeys: ["voice", "aspect_ratio", "resolution", "quality", "duration", "fit", "title", "generate_audio", "output_format", "seed", "watermark"]
511
+ },
512
+ {
513
+ operation: "audio.generate",
514
+ status: "active",
515
+ outputKind: "audio",
516
+ features: ["tts", "music", "sfx", "voice-reference", "voice-design"],
517
+ parameterKeys: ["voice", "language", "duration", "output_format", "sample_rate", "speed", "volume", "pitch", "emotion", "instrumental", "loop", "prompt_influence", "seed"]
518
+ },
519
+ {
520
+ operation: "audio.transcribe",
521
+ status: "active",
522
+ outputKind: "text",
523
+ features: ["asr"],
524
+ parameterKeys: ["input_format", "language", "punctuate", "diarize", "timestamps"]
525
+ },
526
+ {
527
+ operation: "image.upscale",
528
+ status: "active",
529
+ outputKind: "image",
530
+ features: ["scale-factor", "target-resolution"],
531
+ parameterKeys: ["scale", "resolution", "output_format", "preserve_details"]
532
+ },
533
+ {
534
+ operation: "video.upscale",
535
+ status: "active",
536
+ outputKind: "video",
537
+ features: ["scale-factor", "target-resolution"],
538
+ parameterKeys: ["scale", "resolution", "output_format", "preserve_details"]
539
+ },
540
+ {
541
+ operation: "video.depth",
542
+ status: "active",
543
+ outputKind: "video",
544
+ features: ["video-depth"],
545
+ parameterKeys: ["resolution"]
546
+ },
547
+ {
548
+ operation: "video.segment",
549
+ status: "active",
550
+ outputKind: "video",
551
+ features: ["video-segment"],
552
+ parameterKeys: ["resolution"]
553
+ }
554
+ ]);
555
+ var mediaSourceSchema = {
556
+ oneOf: [
557
+ { type: "string", minLength: 1 },
558
+ {
559
+ type: "object",
560
+ properties: { assetId: { type: "string", minLength: 1 } },
561
+ required: ["assetId"],
562
+ additionalProperties: false
563
+ }
564
+ ]
565
+ };
566
+ function textPartSchema(roles) {
567
+ return {
568
+ type: "object",
569
+ properties: {
570
+ type: { const: "text" },
571
+ text: { type: "string", minLength: 1 },
572
+ role: { type: "string", enum: [...roles] }
573
+ },
574
+ required: ["type", "text"],
575
+ additionalProperties: false
576
+ };
577
+ }
578
+ function mediaPartSchema(type, roles) {
579
+ return {
580
+ type: "object",
581
+ properties: {
582
+ type: { const: type },
583
+ source: structuredClone(mediaSourceSchema),
584
+ role: { type: "string", enum: [...roles] },
585
+ ...type === "image" ? { name: { type: "string", minLength: 1, maxLength: 64, pattern: "^[^\\s@]+$" } } : {}
586
+ },
587
+ required: ["type", "source"],
588
+ additionalProperties: false
589
+ };
590
+ }
591
+ function inputSchema(contentItems, properties, contentBounds = {}) {
592
+ return {
593
+ $schema: "https://json-schema.org/draft/2020-12/schema",
594
+ type: "object",
595
+ properties: {
596
+ content: {
597
+ type: "array",
598
+ minItems: contentBounds.minItems ?? 1,
599
+ ...contentBounds.maxItems === void 0 ? {} : { maxItems: contentBounds.maxItems },
600
+ items: { oneOf: contentItems.map((item) => structuredClone(item)) },
601
+ "x-ui": { control: "content-parts", order: 0 }
602
+ },
603
+ ...properties
604
+ },
605
+ required: ["content"],
606
+ additionalProperties: false
607
+ };
608
+ }
609
+ var imagePart = mediaPartSchema("image", ["source", "reference", "first_frame", "last_frame", "mask", "control", "subject", "background"]);
610
+ var videoImagePart = mediaPartSchema("image", ["source", "reference", "first_frame", "middle_frame", "last_frame", "mask", "control", "subject", "background", "keyframe"]);
611
+ var videoPart = mediaPartSchema("video", ["source", "reference", "edit", "extend"]);
612
+ var audioPart = mediaPartSchema("audio", ["source", "reference", "voice_reference"]);
613
+ var resourcePart = {
614
+ type: "object",
615
+ properties: {
616
+ type: { const: "resource" },
617
+ resource: { type: "string", enum: ["element", "voice"] },
618
+ source: { type: "string", minLength: 1 },
619
+ name: { type: "string", minLength: 1 }
620
+ },
621
+ required: ["type", "resource", "source", "name"],
622
+ additionalProperties: false
623
+ };
624
+ var draftPart = {
625
+ type: "object",
626
+ properties: {
627
+ type: { const: "draft_task" },
628
+ draft_task: { type: "object", properties: { id: { type: "string", minLength: 1 } }, required: ["id"], additionalProperties: false }
629
+ },
630
+ required: ["type", "draft_task"],
631
+ additionalProperties: false
632
+ };
633
+ var NEXRA_MEDIA_INPUT_SCHEMAS = Object.freeze({
634
+ "image.generate": inputSchema(
635
+ [textPartSchema(["prompt", "negative_prompt"]), imagePart],
636
+ {
637
+ output_mode: { type: "string", enum: ["image", "layers"], "x-ui": { hidden: true } },
638
+ prompt_optimization: { type: "string", enum: ["standard", "fast"], "x-ui": { hidden: true } },
639
+ aspect_ratio: { type: "string", minLength: 1, "x-ui": { order: 10 } },
640
+ resolution: { type: "string", minLength: 1, "x-ui": { order: 11 } },
641
+ quality: { type: "string", minLength: 1, "x-ui": { order: 12 } },
642
+ count: { type: "integer", minimum: 1, "x-ui": { order: 13, control: "number" } },
643
+ output_format: { type: "string", minLength: 1, "x-ui": { order: 14 } },
644
+ seed: { type: "integer", minimum: 0, "x-ui": { order: 15, control: "number" } }
645
+ }
646
+ ),
647
+ "video.generate": inputSchema(
648
+ [textPartSchema(["prompt", "negative_prompt", "script"]), videoImagePart, videoPart, audioPart, draftPart, resourcePart],
649
+ {
650
+ task_type: { type: "string", minLength: 1, "x-ui": { order: 8, control: "segmented" } },
651
+ voice: { type: "string", minLength: 1, "x-ui": { order: 9, control: "resource", resource: "voice" } },
652
+ draft: { type: "boolean", "x-ui": { control: "switch" } },
653
+ watermark: { type: "boolean", const: false, "x-ui": { hidden: true } },
654
+ aspect_ratio: { type: "string", minLength: 1, "x-ui": { order: 10 } },
655
+ resolution: { type: "string", minLength: 1, "x-ui": { order: 11 } },
656
+ quality: { type: "string", minLength: 1, "x-ui": { order: 12 } },
657
+ duration: { type: "number", exclusiveMinimum: 0, "x-ui": { order: 13, control: "number" } },
658
+ fit: { type: "string", enum: ["contain", "cover"], "x-ui": { order: 15, control: "segmented" } },
659
+ title: { type: "string", minLength: 1, "x-ui": { order: 16 } },
660
+ generate_audio: { type: "boolean", "x-ui": { order: 14, control: "switch" } },
661
+ output_format: { type: "string", minLength: 1, "x-ui": { order: 15 } },
662
+ seed: { type: "integer", minimum: 0, "x-ui": { order: 16, control: "number" } }
663
+ }
664
+ ),
665
+ "audio.generate": inputSchema(
666
+ [textPartSchema(["prompt", "script", "lyrics"]), audioPart],
667
+ {
668
+ voice: { type: "string", minLength: 1, "x-ui": { order: 10, control: "resource", resource: "voice" } },
669
+ language: { type: "string", minLength: 1, "x-ui": { order: 11 } },
670
+ duration: { type: "number", exclusiveMinimum: 0, "x-ui": { order: 12, control: "number" } },
671
+ output_format: { type: "string", minLength: 1, "x-ui": { order: 13 } },
672
+ sample_rate: { type: "integer", minimum: 1, "x-ui": { order: 14, control: "number" } },
673
+ speed: { type: "number", exclusiveMinimum: 0, "x-ui": { order: 15, control: "number" } },
674
+ volume: { type: "number", "x-ui": { order: 16, control: "number" } },
675
+ pitch: { type: "number", "x-ui": { order: 17, control: "number" } },
676
+ emotion: { type: "string", minLength: 1, "x-ui": { order: 18 } },
677
+ instrumental: { type: "boolean", "x-ui": { order: 19, control: "switch" } },
678
+ loop: { type: "boolean", "x-ui": { order: 20, control: "switch" } },
679
+ prompt_influence: { type: "number", minimum: 0, maximum: 1, "x-ui": { order: 21, control: "number" } },
680
+ seed: { type: "integer", minimum: 0, "x-ui": { order: 22, control: "number" } }
681
+ }
682
+ ),
683
+ "audio.transcribe": inputSchema(
684
+ [mediaPartSchema("audio", ["source"])],
685
+ {
686
+ input_format: { type: "string", minLength: 1, "x-ui": { order: 9 } },
687
+ language: { type: "string", minLength: 1, "x-ui": { order: 10 } },
688
+ punctuate: { type: "boolean", "x-ui": { order: 11, control: "switch" } },
689
+ diarize: { type: "boolean", "x-ui": { order: 12, control: "switch" } },
690
+ timestamps: { type: "boolean", "x-ui": { order: 13, control: "switch" } }
691
+ },
692
+ { minItems: 1, maxItems: 1 }
693
+ ),
694
+ "image.upscale": inputSchema(
695
+ [mediaPartSchema("image", ["source"])],
696
+ {
697
+ scale: { type: "number", exclusiveMinimum: 1, "x-ui": { order: 10, control: "number" } },
698
+ resolution: { type: "string", minLength: 1, "x-ui": { order: 11 } },
699
+ output_format: { type: "string", minLength: 1, "x-ui": { order: 12 } },
700
+ preserve_details: { type: "boolean", "x-ui": { order: 13, control: "switch" } }
701
+ },
702
+ { minItems: 1, maxItems: 1 }
703
+ ),
704
+ "video.upscale": inputSchema(
705
+ [mediaPartSchema("video", ["source"])],
706
+ {
707
+ source_duration: { type: "number", exclusiveMinimum: 0, "x-ui": { order: 9, control: "number" } },
708
+ scale: { type: "number", exclusiveMinimum: 1, "x-ui": { order: 10, control: "number" } },
709
+ resolution: { type: "string", minLength: 1, "x-ui": { order: 11 } },
710
+ output_format: { type: "string", minLength: 1, "x-ui": { order: 12 } },
711
+ preserve_details: { type: "boolean", "x-ui": { order: 13, control: "switch" } }
712
+ },
713
+ { minItems: 1, maxItems: 1 }
714
+ ),
715
+ "video.segment": inputSchema(
716
+ [textPartSchema(["prompt"]), mediaPartSchema("video", ["source"])],
717
+ { resolution: { type: "string", minLength: 1, "x-ui": { order: 10 } } },
718
+ { minItems: 2, maxItems: 2 }
719
+ ),
720
+ "video.depth": inputSchema(
721
+ [mediaPartSchema("video", ["source"])],
722
+ { resolution: { type: "string", minLength: 1, "x-ui": { order: 10 } } },
723
+ { minItems: 1, maxItems: 1 }
724
+ )
725
+ });
726
+ function nexraMediaInputSchema(operation) {
727
+ if (!(operation in NEXRA_MEDIA_INPUT_SCHEMAS)) return void 0;
728
+ return structuredClone(NEXRA_MEDIA_INPUT_SCHEMAS[operation]);
729
+ }
730
+ function isNexraMediaInput(value) {
731
+ if (!value || typeof value !== "object" || Array.isArray(value)) return false;
732
+ const input = value;
733
+ if ("model" in input) return false;
734
+ const content = input.content;
735
+ return Array.isArray(content) && content.length > 0 && content.every((part) => {
736
+ if (!part || typeof part !== "object" || Array.isArray(part)) return false;
737
+ if (part.type === "text") return typeof part.text === "string" && part.text.length > 0;
738
+ if (part.type === "resource") return ["element", "voice"].includes(String(part.resource)) && typeof part.source === "string" && part.source.length > 0 && typeof part.name === "string" && part.name.length > 0;
739
+ if (part.type === "draft_task") {
740
+ const reference = part.draft_task;
741
+ return Boolean(reference && typeof reference === "object" && !Array.isArray(reference) && typeof reference.id === "string" && reference.id.length > 0);
742
+ }
743
+ if (!["image", "video", "audio"].includes(String(part.type))) return false;
744
+ if (typeof part.source === "string") return part.source.length > 0;
745
+ return Boolean(part.source && typeof part.source === "object" && !Array.isArray(part.source) && typeof part.source.assetId === "string" && part.source.assetId.length > 0);
746
+ });
747
+ }
748
+ function nexraMediaOperationForMode(mode) {
749
+ if (["text-to-image", "image-to-image"].includes(mode)) return "image.generate";
750
+ if (["text-to-video", "image-to-video", "multimodal-to-video", "avatar-video", "draft-to-video"].includes(mode)) return "video.generate";
751
+ if (mode === "audio-to-text") return "audio.transcribe";
752
+ if (["text-to-speech", "text-to-music", "text-to-sfx", "voice-design"].includes(mode)) return "audio.generate";
753
+ if (mode === "image-upscale") return "image.upscale";
754
+ if (mode === "video-upscale") return "video.upscale";
755
+ if (mode === "video-depth") return "video.depth";
756
+ if (mode === "video-segment") return "video.segment";
757
+ return void 0;
758
+ }
759
+ function nexraMediaInputSchemaForMode(mode) {
760
+ const operation = nexraMediaOperationForMode(mode);
761
+ const schema = operation ? nexraMediaInputSchema(operation) : void 0;
762
+ if (!schema) return void 0;
763
+ const properties = schema.properties;
764
+ const content = properties.content;
765
+ const items = content.items;
766
+ const variants = Array.isArray(items.oneOf) ? items.oneOf : [];
767
+ if (mode === "avatar-video") {
768
+ for (const variant of variants) {
769
+ const variantProperties = variant.properties;
770
+ if (variantProperties.type.const === "text") {
771
+ variantProperties.role = { type: "string", enum: ["script", "prompt"] };
772
+ }
773
+ }
774
+ }
775
+ const allowed = mode === "draft-to-video" ? /* @__PURE__ */ new Set(["draft_task"]) : mode === "text-to-image" || mode === "text-to-video" || mode === "text-to-music" || mode === "text-to-sfx" ? /* @__PURE__ */ new Set(["text"]) : mode === "image-to-image" ? /* @__PURE__ */ new Set(["text", "image"]) : mode === "image-to-video" ? /* @__PURE__ */ new Set(["text", "image", "audio"]) : mode === "text-to-speech" ? /* @__PURE__ */ new Set(["text", "audio"]) : /* @__PURE__ */ new Set(["text", "image", "video", "audio"]);
776
+ items.oneOf = variants.filter((variant) => allowed.has(String(variant.properties.type.const)));
777
+ if (mode === "image-to-video") {
778
+ for (const variant of items.oneOf) {
779
+ const variantProperties = variant.properties;
780
+ if (variantProperties.type.const !== "image") continue;
781
+ variantProperties.role = { type: "string", enum: ["first_frame", "last_frame"] };
782
+ const required = new Set(Array.isArray(variant.required) ? variant.required.filter((key) => typeof key === "string") : []);
783
+ required.add("role");
784
+ variant.required = [...required];
785
+ }
786
+ }
787
+ if (mode === "multimodal-to-video") {
788
+ for (const variant of items.oneOf) {
789
+ const variantProperties = variant.properties;
790
+ const type = String(variantProperties.type.const);
791
+ if (!["image", "video", "audio"].includes(type)) continue;
792
+ variantProperties.role = type === "image" ? { type: "string", enum: ["reference", "subject", "background"] } : type === "video" ? { type: "string", enum: ["reference", "edit", "extend"] } : { type: "string", const: "reference" };
793
+ const required = new Set(Array.isArray(variant.required) ? variant.required.filter((key) => typeof key === "string") : []);
794
+ required.add("role");
795
+ variant.required = [...required];
796
+ }
797
+ }
798
+ const requiredMedia = ["video-depth", "video-segment"].includes(mode) ? "video" : mode === "image-to-image" || mode === "image-to-video" || mode === "avatar-video" ? "image" : void 0;
799
+ const requiresReferenceMedia = mode === "multimodal-to-video";
800
+ const hasTextPart = items.oneOf.some((variant) => variant.properties.type.const === "text");
801
+ const contentRules = [
802
+ ...mode === "avatar-video" || !hasTextPart ? [] : [{
803
+ contains: { type: "object", properties: { type: { const: "text" } }, required: ["type"] },
804
+ minContains: 1
805
+ }],
806
+ ...requiredMedia ? [{
807
+ contains: { type: "object", properties: { type: { const: requiredMedia } }, required: ["type"] },
808
+ minContains: 1
809
+ }] : [],
810
+ ...requiresReferenceMedia ? [{
811
+ contains: { type: "object", properties: { type: { enum: ["image", "video", "audio"] } }, required: ["type"] },
812
+ minContains: 1
813
+ }] : []
814
+ ];
815
+ if (contentRules.length) content.allOf = contentRules;
816
+ else delete content.allOf;
817
+ if (mode === "text-to-speech") {
818
+ properties.voice = { ...properties.voice, "x-ui": { order: 10, control: "resource", resource: "voice" } };
819
+ }
820
+ const allowedParameters = mode === "avatar-video" ? /* @__PURE__ */ new Set(["content", "voice", "aspect_ratio", "resolution"]) : mode === "text-to-speech" ? /* @__PURE__ */ new Set(["content", "voice", "language", "output_format", "sample_rate", "speed", "volume", "pitch", "emotion"]) : mode === "text-to-music" ? /* @__PURE__ */ new Set(["content", "duration", "output_format", "instrumental", "prompt_influence", "seed"]) : mode === "text-to-sfx" ? /* @__PURE__ */ new Set(["content", "duration", "output_format", "loop", "prompt_influence", "seed"]) : void 0;
821
+ if (allowedParameters) {
822
+ schema.properties = Object.fromEntries(Object.entries(properties).filter(([key]) => allowedParameters.has(key)));
823
+ }
824
+ return schema;
825
+ }
826
+
827
+ // ../contracts/src/tasks.ts
828
+ var TASK_STATUSES = [
829
+ "queued",
830
+ "running",
831
+ "succeeded",
832
+ "failed",
833
+ "cancelling",
834
+ "cancelled"
835
+ ];
836
+ var CREATE_TASK_CONTROL_FIELDS = [
837
+ "model",
838
+ "callback_url",
839
+ "metadata",
840
+ "quoteToken",
841
+ "submittedAt",
842
+ "schemaVersion",
843
+ "webhook"
844
+ ];
845
+ function createTaskRequest(model, input, controls = {}) {
846
+ for (const field of [...CREATE_TASK_CONTROL_FIELDS, "input"]) {
847
+ if (Object.hasOwn(input, field)) {
848
+ throw new Error(`Nexra model parameters cannot use reserved Task field: ${field}`);
849
+ }
850
+ }
851
+ return { model, ...input, ...controls };
852
+ }
853
+ function isTerminalTaskStatus(status) {
854
+ return status === "succeeded" || status === "failed" || status === "cancelled";
855
+ }
856
+
857
+ // ../contracts/src/usage-query-reference.ts
858
+ var USAGE_QUERY_LIST_FILTERS = [
859
+ "userIds",
860
+ "apiKeyIds",
861
+ "providerIds",
862
+ "channelIds",
863
+ "modelIds",
864
+ "operations",
865
+ "requestStatuses",
866
+ "usageSources",
867
+ "normalizationStatuses",
868
+ "ratingStatuses"
869
+ ];
870
+ var USAGE_QUERY_PARAMETERS = [
871
+ "start",
872
+ "end",
873
+ "timeZoneOffsetMinutes",
874
+ "groupBy",
875
+ "limit",
876
+ "cursor",
877
+ ...USAGE_QUERY_LIST_FILTERS,
878
+ "upstreamModelId",
879
+ "breakdown"
880
+ ];
881
+
882
+ // ../contracts/src/admin-errors.ts
883
+ var CALL_ERROR_STATUSES = ["failed", "rejected", "delivery_failed"];
884
+ var CALL_ANOMALY_STATUSES = [...CALL_ERROR_STATUSES, "cancelled"];
885
+
886
+ // ../contracts/src/ratio-display-order.ts
887
+ function parseRatioParts(value) {
888
+ const matched = /^\s*(\d+(?:\.\d+)?)\s*:\s*(\d+(?:\.\d+)?)\s*$/.exec(value);
889
+ if (!matched) return void 0;
890
+ const w = Number(matched[1]);
891
+ const h = Number(matched[2]);
892
+ return w > 0 && h > 0 ? { w, h } : void 0;
893
+ }
894
+ function ratioDisplayOrderKey(value) {
895
+ const normalized = value.trim();
896
+ const parts = parseRatioParts(normalized);
897
+ if (!parts) {
898
+ const auto = normalized.toLowerCase() === "auto" ? 0 : 1;
899
+ return [0, auto, 0, 0, value];
900
+ }
901
+ if (parts.w === parts.h) return [1, 0, 0, 0, value];
902
+ const long = Math.max(parts.w, parts.h);
903
+ const short = Math.min(parts.w, parts.h);
904
+ const landscape = parts.w > parts.h ? 1 : 0;
905
+ return short === 1 ? [3, long, landscape, -short, value] : [2, long, landscape, -short, value];
906
+ }
907
+ function compareRatioDisplayOrder(a, b) {
908
+ const ka = ratioDisplayOrderKey(a);
909
+ const kb = ratioDisplayOrderKey(b);
910
+ for (let index = 0; index < ka.length; index += 1) {
911
+ if (ka[index] !== kb[index]) return ka[index] < kb[index] ? -1 : 1;
912
+ }
913
+ return 0;
914
+ }
915
+ function sortRatioDisplayOrder(values) {
916
+ return [...values].sort(compareRatioDisplayOrder);
917
+ }
918
+
919
+ // ../contracts/src/volcengine-asr.ts
920
+ var ASR_MAX_FRAME_BYTES = 8 * 1024 * 1024;
921
+
922
+ export {
923
+ MEDIA_KINDS,
924
+ isPublicErrorCode,
925
+ publicErrorMessage,
926
+ pickPublicErrorFields,
927
+ normalizePublicErrorInput,
928
+ extractUpstreamErrorMessage,
929
+ resolvePublicErrorLocale,
930
+ NEXRA_MEDIA_API_VERSION,
931
+ NEXRA_GENERATION_OPERATIONS,
932
+ NEXRA_MEDIA_OPERATIONS,
933
+ NEXRA_PUBLISHED_MEDIA_OPERATIONS,
934
+ NEXRA_MEDIA_FEATURES,
935
+ NEXRA_MEDIA_OPERATION_DEFINITIONS,
936
+ NEXRA_MEDIA_INPUT_SCHEMAS,
937
+ nexraMediaInputSchema,
938
+ isNexraMediaInput,
939
+ nexraMediaOperationForMode,
940
+ nexraMediaInputSchemaForMode,
941
+ TASK_STATUSES,
942
+ createTaskRequest,
943
+ isTerminalTaskStatus,
944
+ sortRatioDisplayOrder
945
+ };