aKode fase 3: provider locali, chiavi per provider, modelli dal server, SearXNG
- Provider: rimossi openai, Bedrock e GCP integrati e ogni fallback a OpenAI;
restano ollama, lmstudio e i provider personalizzati. Senza provider, exec e
TUI mostrano come configurarlo.
- Chiave per provider: api_key = "keyring", provider_api_key_store =
auto|keyring|file (fallback su file 0600 / ACL Windows); `codex login
--provider <id> --with-api-key`, `logout --provider`; login status e doctor
mostrano dove sta la chiave senza rivelarla.
- Modelli letti da GET {base_url}/models; contesto da config, poi dal server
(/props, meta.n_ctx), poi 32768; apply_patch come tool function; niente tool
ospitati; niente piu' avviso "metadata not found".
- Unione dei soli messaggi system/developer iniziali in un unico system;
quelli successivi restano al loro posto come user (cache del server
preservata: turno N prefisso esatto del turno N+1).
- Modelli ausiliari (memorie, guardian-v2) = modello di sessione se il
preferito gpt-* non e' nel catalogo.
- Ricerca web: crate web-tools, backend SearXNG con web_search e web_fetch
(protezione SSRF); senza backend nessuno strumento web.
- Skill: rimossa openai-docs; skill-installer punta a git.difonzo.net.
- apply_patch accetta gli header @@ -a,b +c,d @@ dei diff unificati.
- Rimossi resti: request_plugin_install, AppsInstructions, --cyber-access-program,
URL updater/realtime predefiniti.
- Fix: importazione sessioni con provider vuoto.
- Istruzioni di sistema invariate. Test: cancellati solo quelli del codice
rimosso, test di sicurezza adattati; restano solo fallimenti d'ambiente.
- Prova reale su imeAI + SearXNG: risposta, modifica file, web_search,
cache riusata, connessioni solo verso .25 e .57.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -143,13 +143,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"BedrockProviderId": {
|
||||
"enum": [
|
||||
"amazon-bedrock",
|
||||
"amazon-bedrock-runtime"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ByteRange": {
|
||||
"properties": {
|
||||
"end": {
|
||||
@@ -1575,12 +1568,6 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"GcpProviderId": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GetAccountParams": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -1856,66 +1843,6 @@
|
||||
],
|
||||
"title": "ApiKeyLoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
|
||||
"properties": {
|
||||
"apiKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockLoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"apiKey",
|
||||
"region",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockLoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
|
||||
"properties": {
|
||||
"accessKeyId": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretAccessKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"sessionToken": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrockAccessKeys"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysLoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"accessKeyId",
|
||||
"region",
|
||||
"secretAccessKey",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysLoginAccountParams",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -2514,80 +2441,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "AWS configuration fields for built-in Bedrock providers.",
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/BedrockProviderId"
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "GCP configuration fields. Credential-file paths refer to the app-server host.",
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/GcpProviderId"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatch",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -301,20 +301,6 @@
|
||||
"headers"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock bearer token managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockApiKey"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock AWS access keys managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockAccessKeys"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -6436,43 +6436,6 @@
|
||||
],
|
||||
"title": "ApiKeyAccount",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockAccountType",
|
||||
"type": "string"
|
||||
},
|
||||
"usesCodexManagedCredentials": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccount",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Google Cloud Vertex AI with externally managed credentials.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpAccountType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpAccount",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -7270,20 +7233,6 @@
|
||||
"headers"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock bearer token managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockApiKey"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock AWS access keys managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockAccessKeys"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -7361,13 +7310,6 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"BedrockProviderId": {
|
||||
"enum": [
|
||||
"amazon-bedrock",
|
||||
"amazon-bedrock-runtime"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"BrowserUseAccessApprovalLifetime": {
|
||||
"enum": [
|
||||
"turn",
|
||||
@@ -8830,7 +8772,9 @@
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
],
|
||||
"default": null,
|
||||
"description": "The web search mode. A `[web_search]` backend table reports its `mode`, if any."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -11992,12 +11936,6 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GcpProviderId": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GetAccountParams": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "GetAccountParams",
|
||||
@@ -13451,66 +13389,6 @@
|
||||
],
|
||||
"title": "ApiKeyv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
|
||||
"properties": {
|
||||
"apiKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"apiKey",
|
||||
"region",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
|
||||
"properties": {
|
||||
"accessKeyId": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretAccessKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"sessionToken": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrockAccessKeys"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysv2::LoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"accessKeyId",
|
||||
"region",
|
||||
"secretAccessKey",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
"title": "LoginAccountParams"
|
||||
@@ -13533,22 +13411,6 @@
|
||||
],
|
||||
"title": "ApiKeyv2::LoginAccountResponse",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountResponseType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountResponse",
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
"title": "LoginAccountResponse"
|
||||
@@ -16479,22 +16341,6 @@
|
||||
},
|
||||
"ProviderSettings": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"openai"
|
||||
],
|
||||
"title": "OpenaiProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "OpenaiProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"auth": {
|
||||
@@ -16514,69 +16360,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"description": "Path on the app-server host, without credential-file contents.",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettings",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -16621,80 +16404,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "AWS configuration fields for built-in Bedrock providers.",
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/v2/BedrockProviderId"
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "GCP configuration fields. Credential-file paths refer to the app-server host.",
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/v2/GcpProviderId"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatch",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -22,43 +22,6 @@
|
||||
],
|
||||
"title": "ApiKeyAccount",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockAccountType",
|
||||
"type": "string"
|
||||
},
|
||||
"usesCodexManagedCredentials": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccount",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Google Cloud Vertex AI with externally managed credentials.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpAccountType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpAccount",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -856,20 +819,6 @@
|
||||
"headers"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock bearer token managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockApiKey"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock AWS access keys managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockAccessKeys"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -947,13 +896,6 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"BedrockProviderId": {
|
||||
"enum": [
|
||||
"amazon-bedrock",
|
||||
"amazon-bedrock-runtime"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"BrowserUseAccessApprovalLifetime": {
|
||||
"enum": [
|
||||
"turn",
|
||||
@@ -4818,7 +4760,9 @@
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
],
|
||||
"default": null,
|
||||
"description": "The web search mode. A `[web_search]` backend table reports its `mode`, if any."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -8091,12 +8035,6 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GcpProviderId": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GetAccountParams": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "GetAccountParams",
|
||||
@@ -9614,66 +9552,6 @@
|
||||
],
|
||||
"title": "ApiKeyv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
|
||||
"properties": {
|
||||
"apiKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"apiKey",
|
||||
"region",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
|
||||
"properties": {
|
||||
"accessKeyId": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretAccessKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"sessionToken": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrockAccessKeys"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysv2::LoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"accessKeyId",
|
||||
"region",
|
||||
"secretAccessKey",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
"title": "LoginAccountParams"
|
||||
@@ -9696,22 +9574,6 @@
|
||||
],
|
||||
"title": "ApiKeyv2::LoginAccountResponse",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountResponseType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountResponse",
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
"title": "LoginAccountResponse"
|
||||
@@ -12642,22 +12504,6 @@
|
||||
},
|
||||
"ProviderSettings": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"openai"
|
||||
],
|
||||
"title": "OpenaiProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "OpenaiProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"auth": {
|
||||
@@ -12677,69 +12523,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"description": "Path on the app-server host, without credential-file contents.",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettings",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -12784,80 +12567,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "AWS configuration fields for built-in Bedrock providers.",
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/BedrockProviderId"
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "GCP configuration fields. Credential-file paths refer to the app-server host.",
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/GcpProviderId"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatch",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -17,20 +17,6 @@
|
||||
"headers"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock bearer token managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockApiKey"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Amazon Bedrock AWS access keys managed by Codex.",
|
||||
"enum": [
|
||||
"bedrockAccessKeys"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -671,7 +671,9 @@
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
],
|
||||
"default": null,
|
||||
"description": "The web search mode. A `[web_search]` backend table reports its `mode`, if any."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
||||
@@ -18,43 +18,6 @@
|
||||
],
|
||||
"title": "ApiKeyAccount",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockAccountType",
|
||||
"type": "string"
|
||||
},
|
||||
"usesCodexManagedCredentials": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccount",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Google Cloud Vertex AI with externally managed credentials.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpAccountType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpAccount",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -20,66 +20,6 @@
|
||||
],
|
||||
"title": "ApiKeyv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock login is experimental.",
|
||||
"properties": {
|
||||
"apiKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"apiKey",
|
||||
"region",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "[UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.",
|
||||
"properties": {
|
||||
"accessKeyId": {
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"type": "string"
|
||||
},
|
||||
"secretAccessKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"sessionToken": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrockAccessKeys"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysv2::LoginAccountParamsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"accessKeyId",
|
||||
"region",
|
||||
"secretAccessKey",
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockAccessKeysv2::LoginAccountParams",
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
"title": "LoginAccountParams"
|
||||
|
||||
@@ -16,22 +16,6 @@
|
||||
],
|
||||
"title": "ApiKeyv2::LoginAccountResponse",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"amazonBedrock"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountResponseType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "AmazonBedrockv2::LoginAccountResponse",
|
||||
"type": "object"
|
||||
}
|
||||
],
|
||||
"title": "LoginAccountResponse"
|
||||
|
||||
@@ -2,19 +2,6 @@
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"additionalProperties": false,
|
||||
"definitions": {
|
||||
"BedrockProviderId": {
|
||||
"enum": [
|
||||
"amazon-bedrock",
|
||||
"amazon-bedrock-runtime"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"GcpProviderId": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"ProviderSettingsPatch": {
|
||||
"description": "Omitted patch fields preserve their values. Explicit null clears a nullable field.",
|
||||
"oneOf": [
|
||||
@@ -56,80 +43,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "AWS configuration fields for built-in Bedrock providers.",
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/BedrockProviderId"
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettingsPatch",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"description": "GCP configuration fields. Credential-file paths refer to the app-server host.",
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"providerId": {
|
||||
"$ref": "#/definitions/GcpProviderId"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatchType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"providerId",
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettingsPatch",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -95,22 +95,6 @@
|
||||
},
|
||||
"ProviderSettings": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"openai"
|
||||
],
|
||||
"title": "OpenaiProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "OpenaiProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"auth": {
|
||||
@@ -130,69 +114,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"description": "Path on the app-server host, without credential-file contents.",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettings",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -95,22 +95,6 @@
|
||||
},
|
||||
"ProviderSettings": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"openai"
|
||||
],
|
||||
"title": "OpenaiProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "OpenaiProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"auth": {
|
||||
@@ -130,69 +114,6 @@
|
||||
],
|
||||
"title": "CustomGatewayProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"region": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"bedrock"
|
||||
],
|
||||
"title": "BedrockProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "BedrockProviderSettings",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"credentialFile": {
|
||||
"description": "Path on the app-server host, without credential-file contents.",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"projectId": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"gcp"
|
||||
],
|
||||
"title": "GcpProviderSettingsType",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"title": "GcpProviderSettings",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -5,4 +5,4 @@
|
||||
/**
|
||||
* Authentication mode for stored or host-supplied provider credentials.
|
||||
*/
|
||||
export type AuthMode = "apikey" | "headers" | "bedrockApiKey" | "bedrockAccessKeys";
|
||||
export type AuthMode = "apikey" | "headers";
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type Account = { "type": "apiKey", } | { "type": "amazonBedrock", usesCodexManagedCredentials: boolean, } | { "type": "gcp", };
|
||||
export type Account = { "type": "apiKey", };
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type BedrockProviderId = "amazon-bedrock" | "amazon-bedrock-runtime";
|
||||
@@ -1,9 +0,0 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { BedrockProviderId } from "./BedrockProviderId";
|
||||
|
||||
/**
|
||||
* AWS configuration fields for built-in Bedrock providers.
|
||||
*/
|
||||
export type BedrockSettingsParams = { providerId: BedrockProviderId, profile?: string | null, region?: string | null, };
|
||||
@@ -22,7 +22,10 @@ export type Config = {model: string | null, review_model: string | null, model_c
|
||||
* [UNSTABLE] Optional default for where approval requests are routed for
|
||||
* review.
|
||||
*/
|
||||
approvals_reviewer: ApprovalsReviewer | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null, forced_login_method: ForcedLoginMethod | null, web_search: WebSearchMode | null, /**
|
||||
approvals_reviewer: ApprovalsReviewer | null, sandbox_mode: SandboxMode | null, sandbox_workspace_write: SandboxWorkspaceWrite | null, forced_chatgpt_workspace_id: ForcedChatgptWorkspaceIds | null, forced_login_method: ForcedLoginMethod | null, /**
|
||||
* The web search mode. A `[web_search]` backend table reports its `mode`, if any.
|
||||
*/
|
||||
web_search: WebSearchMode | null, /**
|
||||
* Effective tools.client_search_provider hint. Model-selected providers take precedence.
|
||||
*/
|
||||
client_search_provider: WebSearchProvider | null, tools: ToolsV2 | null, instructions: string | null, developer_instructions: string | null, compact_prompt: string | null, model_reasoning_effort: ReasoningEffort | null, model_reasoning_summary: ReasoningSummary | null, model_verbosity: Verbosity | null, service_tier: string | null, browser_use: BrowserUseConfig | null, computer_use: ComputerUseConfig | null, desktop: { [key in string]?: JsonValue } | null} & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null });
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type GcpProviderId = "gcp";
|
||||
@@ -1,9 +0,0 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { GcpProviderId } from "./GcpProviderId";
|
||||
|
||||
/**
|
||||
* GCP configuration fields. Credential-file paths refer to the app-server host.
|
||||
*/
|
||||
export type GcpSettingsParams = { providerId: GcpProviderId, projectId?: string | null, location?: string | null, credentialFile?: string | null, };
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "amazonBedrock", apiKey: string, region: string, } | { "type": "amazonBedrockAccessKeys", accessKeyId: string, secretAccessKey: string, sessionToken?: string | null, region: string, };
|
||||
export type LoginAccountParams = { "type": "apiKey", apiKey: string, };
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type LoginAccountResponse = { "type": "apiKey", } | { "type": "amazonBedrock", };
|
||||
export type LoginAccountResponse = { "type": "apiKey", };
|
||||
|
||||
@@ -3,8 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { GatewayAuth } from "./GatewayAuth";
|
||||
|
||||
export type ProviderSettings = { "type": "openai" } | { "type": "customGateway", auth: GatewayAuth, } | { "type": "bedrock", profile: string | null, region: string | null, } | { "type": "gcp", projectId: string | null, location: string | null,
|
||||
/**
|
||||
* Path on the app-server host, without credential-file contents.
|
||||
*/
|
||||
credentialFile: string | null, };
|
||||
export type ProviderSettings = { "type": "customGateway", auth: GatewayAuth, };
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { BedrockSettingsParams } from "./BedrockSettingsParams";
|
||||
import type { CustomGatewaySettingsParams } from "./CustomGatewaySettingsParams";
|
||||
import type { GcpSettingsParams } from "./GcpSettingsParams";
|
||||
|
||||
/**
|
||||
* Omitted patch fields preserve their values. Explicit null clears a nullable field.
|
||||
*/
|
||||
export type ProviderSettingsPatch = { "type": "customGateway" } & CustomGatewaySettingsParams | { "type": "bedrock" } & BedrockSettingsParams | { "type": "gcp" } & GcpSettingsParams;
|
||||
export type ProviderSettingsPatch = { "type": "customGateway" } & CustomGatewaySettingsParams;
|
||||
|
||||
@@ -36,8 +36,6 @@ export type { AsyncUserInputQuestion } from "./AsyncUserInputQuestion";
|
||||
export type { AuthRecoveryNotification } from "./AuthRecoveryNotification";
|
||||
export type { AutoReviewDecisionSource } from "./AutoReviewDecisionSource";
|
||||
export type { AutoReviewRequirements } from "./AutoReviewRequirements";
|
||||
export type { BedrockProviderId } from "./BedrockProviderId";
|
||||
export type { BedrockSettingsParams } from "./BedrockSettingsParams";
|
||||
export type { BrowserUseAccessApprovalLifetime } from "./BrowserUseAccessApprovalLifetime";
|
||||
export type { BrowserUseConfig } from "./BrowserUseConfig";
|
||||
export type { BrowserUseExtensionRequirements } from "./BrowserUseExtensionRequirements";
|
||||
@@ -187,8 +185,6 @@ export type { GatewayOAuthLoginResponse } from "./GatewayOAuthLoginResponse";
|
||||
export type { GatewayOAuthReadParams } from "./GatewayOAuthReadParams";
|
||||
export type { GatewayOAuthReadResponse } from "./GatewayOAuthReadResponse";
|
||||
export type { GatewayOAuthStatus } from "./GatewayOAuthStatus";
|
||||
export type { GcpProviderId } from "./GcpProviderId";
|
||||
export type { GcpSettingsParams } from "./GcpSettingsParams";
|
||||
export type { GetAccountParams } from "./GetAccountParams";
|
||||
export type { GetAccountRateLimitsParams } from "./GetAccountRateLimitsParams";
|
||||
export type { GetAccountRateLimitsResponse } from "./GetAccountRateLimitsResponse";
|
||||
|
||||
@@ -46,9 +46,6 @@ pub(crate) const GENERATED_TS_HEADER: &str = "// GENERATED CODE! DO NOT MODIFY B
|
||||
const IGNORED_DEFINITIONS: &[&str] = &["Option<()>"];
|
||||
const JSON_V1_ALLOWLIST: &[&str] = &["InitializeParams", "InitializeResponse"];
|
||||
const EXPERIMENTAL_CLIENT_METHOD_DEPENDENCY_TYPES: &[&str] = &[
|
||||
"AwsCredentialType",
|
||||
"BedrockAwsProfile",
|
||||
"BedrockEnvironmentCredential",
|
||||
"EnvironmentShellInfo",
|
||||
"EnvironmentStatusKind",
|
||||
"GuardianAssessmentOutcome",
|
||||
|
||||
@@ -29,16 +29,6 @@ pub enum AuthMode {
|
||||
#[ts(rename = "headers")]
|
||||
#[strum(serialize = "headers")]
|
||||
Headers,
|
||||
/// Amazon Bedrock bearer token managed by Codex.
|
||||
#[serde(rename = "bedrockApiKey")]
|
||||
#[ts(rename = "bedrockApiKey")]
|
||||
#[strum(serialize = "bedrockApiKey")]
|
||||
BedrockApiKey,
|
||||
/// Amazon Bedrock AWS access keys managed by Codex.
|
||||
#[serde(rename = "bedrockAccessKeys")]
|
||||
#[ts(rename = "bedrockAccessKeys")]
|
||||
#[strum(serialize = "bedrockAccessKeys")]
|
||||
BedrockAccessKeys,
|
||||
}
|
||||
|
||||
macro_rules! experimental_reason_expr {
|
||||
@@ -1255,34 +1245,6 @@ client_request_definitions! {
|
||||
response: v2::LoginAccountResponse,
|
||||
},
|
||||
|
||||
#[experimental("account/bedrock/discover")]
|
||||
BedrockDiscover => "account/bedrock/discover" {
|
||||
params: v2::BedrockDiscoverParams,
|
||||
serialization: global_shared_read("account-auth"),
|
||||
response: v2::BedrockDiscoverResponse,
|
||||
},
|
||||
|
||||
#[experimental("account/bedrock/setup")]
|
||||
BedrockSetup => "account/bedrock/setup" {
|
||||
params: v2::BedrockSetupParams,
|
||||
serialization: global("account-auth"),
|
||||
response: v2::BedrockSetupResponse,
|
||||
},
|
||||
|
||||
#[experimental("account/gcp/setup")]
|
||||
GcpSetup => "account/gcp/setup" {
|
||||
params: v2::GcpSetupParams,
|
||||
serialization: global("account-auth"),
|
||||
response: v2::GcpSetupResponse,
|
||||
},
|
||||
|
||||
#[experimental("account/bedrock/checkGovCloudRequirements")]
|
||||
BedrockCheckGovCloudRequirements => "account/bedrock/checkGovCloudRequirements" {
|
||||
params: v2::BedrockCheckGovCloudRequirementsParams,
|
||||
serialization: global("account-auth"),
|
||||
response: v2::BedrockCheckGovCloudRequirementsResponse,
|
||||
},
|
||||
|
||||
CancelLoginAccount => "account/login/cancel" {
|
||||
params: v2::CancelLoginAccountParams,
|
||||
serialization: global("account-auth"),
|
||||
@@ -2812,7 +2774,7 @@ mod tests {
|
||||
required_human_approval: false,
|
||||
explicit_gateway_oauth: false,
|
||||
experimental_api: true,
|
||||
mcp_server_openai_form_elicitation: true,
|
||||
mcp_server_openai_form_elicitation: true,
|
||||
opt_out_notification_methods: Some(vec![
|
||||
"thread/started".to_string(),
|
||||
"item/agentMessage/delta".to_string(),
|
||||
@@ -3285,56 +3247,6 @@ mod tests {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_account_login_amazon_bedrock() -> Result<()> {
|
||||
for (params, expected_params) in [
|
||||
(
|
||||
v2::LoginAccountParams::AmazonBedrock {
|
||||
api_key: "secret".to_string(),
|
||||
region: "us-west-2".to_string(),
|
||||
},
|
||||
json!({
|
||||
"type": "amazonBedrock",
|
||||
"apiKey": "secret",
|
||||
"region": "us-west-2"
|
||||
}),
|
||||
),
|
||||
(
|
||||
v2::LoginAccountParams::AmazonBedrockAccessKeys {
|
||||
access_key_id: "access-key-id".to_string(),
|
||||
secret_access_key: "secret-access-key".to_string(),
|
||||
session_token: Some("session-token".to_string()),
|
||||
region: "us-west-2".to_string(),
|
||||
},
|
||||
json!({
|
||||
"type": "amazonBedrockAccessKeys",
|
||||
"accessKeyId": "access-key-id",
|
||||
"secretAccessKey": "secret-access-key",
|
||||
"sessionToken": "session-token",
|
||||
"region": "us-west-2"
|
||||
}),
|
||||
),
|
||||
] {
|
||||
let request = ClientRequest::LoginAccount {
|
||||
request_id: RequestId::Integer(2),
|
||||
params,
|
||||
};
|
||||
assert_eq!(
|
||||
json!({
|
||||
"method": "account/login/start",
|
||||
"id": 2,
|
||||
"params": expected_params,
|
||||
}),
|
||||
serde_json::to_value(&request)?,
|
||||
);
|
||||
}
|
||||
assert_eq!(
|
||||
json!({"type": "amazonBedrock"}),
|
||||
serde_json::to_value(v2::LoginAccountResponse::AmazonBedrock {})?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_account_logout() -> Result<()> {
|
||||
let request = ClientRequest::LogoutAccount {
|
||||
@@ -3368,54 +3280,6 @@ mod tests {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn account_serializes_fields_in_camel_case() -> Result<()> {
|
||||
let api_key = v2::Account::ApiKey {};
|
||||
assert_eq!(
|
||||
json!({
|
||||
"type": "apiKey",
|
||||
}),
|
||||
serde_json::to_value(&api_key)?,
|
||||
);
|
||||
|
||||
let codex_managed_bedrock = v2::Account::AmazonBedrock {
|
||||
uses_codex_managed_credentials: true,
|
||||
};
|
||||
assert_eq!(
|
||||
json!({
|
||||
"type": "amazonBedrock",
|
||||
"usesCodexManagedCredentials": true,
|
||||
}),
|
||||
serde_json::to_value(&codex_managed_bedrock)?,
|
||||
);
|
||||
|
||||
let externally_managed_bedrock = v2::Account::AmazonBedrock {
|
||||
uses_codex_managed_credentials: false,
|
||||
};
|
||||
assert_eq!(
|
||||
json!({
|
||||
"type": "amazonBedrock",
|
||||
"usesCodexManagedCredentials": false,
|
||||
}),
|
||||
serde_json::to_value(&externally_managed_bedrock)?,
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn account_defaults_legacy_bedrock_managed_credentials_flag() -> Result<()> {
|
||||
assert_eq!(
|
||||
v2::Account::AmazonBedrock {
|
||||
uses_codex_managed_credentials: false,
|
||||
},
|
||||
serde_json::from_value(json!({
|
||||
"type": "amazonBedrock",
|
||||
}))?,
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn serialize_list_models() -> Result<()> {
|
||||
let request = ClientRequest::ModelList {
|
||||
@@ -4241,6 +4105,20 @@ mod tests {
|
||||
Some("item/commandExecution/requestApproval.additionalPermissions")
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn account_serializes_fields_in_camel_case() -> Result<()> {
|
||||
let api_key = v2::Account::ApiKey {};
|
||||
assert_eq!(
|
||||
json!({
|
||||
"type": "apiKey",
|
||||
}),
|
||||
serde_json::to_value(&api_key)?,
|
||||
);
|
||||
// Removed cloud accounts are rejected rather than reinterpreted.
|
||||
assert!(serde_json::from_value::<v2::Account>(json!({"type": "amazonBedrock"})).is_err());
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -22,30 +22,12 @@ pub enum Account {
|
||||
#[serde(rename = "apiKey", rename_all = "camelCase")]
|
||||
#[ts(rename = "apiKey", rename_all = "camelCase")]
|
||||
ApiKey {},
|
||||
|
||||
#[serde(rename = "amazonBedrock", rename_all = "camelCase")]
|
||||
#[ts(rename = "amazonBedrock", rename_all = "camelCase")]
|
||||
AmazonBedrock {
|
||||
#[serde(default)]
|
||||
uses_codex_managed_credentials: bool,
|
||||
},
|
||||
|
||||
/// Google Cloud Vertex AI with externally managed credentials.
|
||||
#[serde(rename = "gcp", rename_all = "camelCase")]
|
||||
#[ts(rename = "gcp", rename_all = "camelCase")]
|
||||
Gcp {},
|
||||
}
|
||||
|
||||
impl From<ProviderAccount> for Account {
|
||||
fn from(account: ProviderAccount) -> Self {
|
||||
match account {
|
||||
ProviderAccount::ApiKey => Self::ApiKey {},
|
||||
ProviderAccount::AmazonBedrock {
|
||||
uses_codex_managed_credentials,
|
||||
} => Self::AmazonBedrock {
|
||||
uses_codex_managed_credentials,
|
||||
},
|
||||
ProviderAccount::Gcp => Self::Gcp {},
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,22 +44,6 @@ pub enum LoginAccountParams {
|
||||
#[ts(rename = "apiKey")]
|
||||
api_key: String,
|
||||
},
|
||||
/// [UNSTABLE] Managed Amazon Bedrock login is experimental.
|
||||
#[experimental("account/login/start.amazonBedrock")]
|
||||
#[serde(rename = "amazonBedrock", rename_all = "camelCase")]
|
||||
#[ts(rename = "amazonBedrock", rename_all = "camelCase")]
|
||||
AmazonBedrock { api_key: String, region: String },
|
||||
/// [UNSTABLE] Managed Amazon Bedrock AWS access key login is experimental.
|
||||
#[experimental("account/login/start.amazonBedrockAccessKeys")]
|
||||
#[serde(rename = "amazonBedrockAccessKeys", rename_all = "camelCase")]
|
||||
#[ts(rename = "amazonBedrockAccessKeys", rename_all = "camelCase")]
|
||||
AmazonBedrockAccessKeys {
|
||||
access_key_id: String,
|
||||
secret_access_key: String,
|
||||
#[ts(optional = nullable)]
|
||||
session_token: Option<String>,
|
||||
region: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
@@ -88,9 +54,6 @@ pub enum LoginAccountResponse {
|
||||
#[serde(rename = "apiKey", rename_all = "camelCase")]
|
||||
#[ts(rename = "apiKey", rename_all = "camelCase")]
|
||||
ApiKey {},
|
||||
#[serde(rename = "amazonBedrock", rename_all = "camelCase")]
|
||||
#[ts(rename = "amazonBedrock", rename_all = "camelCase")]
|
||||
AmazonBedrock {},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
use crate::JsonSchema;
|
||||
use crate::TS;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockDiscoverParams {}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockDiscoverResponse {
|
||||
pub profiles: Vec<BedrockAwsProfile>,
|
||||
pub environment_credentials: Vec<BedrockEnvironmentCredential>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockAwsProfile {
|
||||
pub name: String,
|
||||
pub region: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockEnvironmentCredential {
|
||||
#[serde(rename = "type")]
|
||||
#[ts(rename = "type")]
|
||||
pub credential_type: AwsCredentialType,
|
||||
pub region: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum AwsCredentialType {
|
||||
AccessKeys,
|
||||
BedrockApiKey,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(tag = "type", rename_all = "camelCase")]
|
||||
#[ts(tag = "type", rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum BedrockSetupParams {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(rename_all = "camelCase")]
|
||||
Profile { profile: String, region: String },
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(rename_all = "camelCase")]
|
||||
Environment { region: String },
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockSetupResponse {}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockCheckGovCloudRequirementsParams {}
|
||||
|
||||
/// Advisory check of the current Bedrock configuration after login or setup.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockCheckGovCloudRequirementsResponse {
|
||||
/// Whether the active Bedrock authentication resolves to a GovCloud region.
|
||||
pub is_gov_cloud: bool,
|
||||
/// Whether GovCloud is selected and the managed requirements miss the baseline.
|
||||
/// A false value is not a general certification of the network configuration.
|
||||
pub should_warn: bool,
|
||||
}
|
||||
@@ -273,6 +273,8 @@ pub struct Config {
|
||||
pub sandbox_workspace_write: Option<SandboxWorkspaceWrite>,
|
||||
pub forced_chatgpt_workspace_id: Option<ForcedChatgptWorkspaceIds>,
|
||||
pub forced_login_method: Option<ForcedLoginMethod>,
|
||||
/// The web search mode. A `[web_search]` backend table reports its `mode`, if any.
|
||||
#[serde(default, deserialize_with = "deserialize_web_search_mode")]
|
||||
pub web_search: Option<WebSearchMode>,
|
||||
/// Effective tools.client_search_provider hint. Model-selected providers take precedence.
|
||||
pub client_search_provider: Option<codex_protocol::openai_models::WebSearchProvider>,
|
||||
@@ -1178,3 +1180,13 @@ pub struct ConfigWarningNotification {
|
||||
#[cfg(test)]
|
||||
#[path = "config_tests.rs"]
|
||||
mod tests;
|
||||
|
||||
/// Accepts `web_search = "<mode>"` and the `[web_search]` backend table.
|
||||
fn deserialize_web_search_mode<'de, D>(deserializer: D) -> Result<Option<WebSearchMode>, D::Error>
|
||||
where
|
||||
D: serde::Deserializer<'de>,
|
||||
{
|
||||
let setting =
|
||||
Option::<codex_protocol::config_types::WebSearchSetting>::deserialize(deserializer)?;
|
||||
Ok(setting.and_then(|setting| setting.mode()))
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
//! Shared setup parameters for the built-in Google Cloud Vertex AI provider.
|
||||
|
||||
use crate::JsonSchema;
|
||||
use crate::TS;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct GcpSetupParams {
|
||||
pub project_id: String,
|
||||
/// Vertex AI location. Omission or null selects `global`.
|
||||
#[ts(optional = nullable)]
|
||||
pub location: Option<String>,
|
||||
/// Absolute path to a credential file on the app-server host.
|
||||
/// Omit or pass `null` to clear the active user configuration's override and use ADC.
|
||||
/// If another configuration layer would still supply a credential file, setup fails
|
||||
/// without saving changes.
|
||||
#[ts(optional = nullable)]
|
||||
pub credential_file: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct GcpSetupResponse {}
|
||||
@@ -3,7 +3,6 @@ mod shared;
|
||||
mod account;
|
||||
mod application;
|
||||
mod apps;
|
||||
mod bedrock;
|
||||
mod browser_use_config;
|
||||
mod collaboration_mode;
|
||||
mod command_exec;
|
||||
@@ -15,7 +14,6 @@ mod environment;
|
||||
mod experimental_feature;
|
||||
mod feedback;
|
||||
mod fs;
|
||||
mod gcp;
|
||||
mod hook;
|
||||
mod item;
|
||||
mod mcp;
|
||||
@@ -46,7 +44,6 @@ mod windows_sandbox;
|
||||
pub use account::*;
|
||||
pub use application::*;
|
||||
pub use apps::*;
|
||||
pub use bedrock::*;
|
||||
pub use browser_use_config::*;
|
||||
pub use collaboration_mode::*;
|
||||
pub use command_exec::*;
|
||||
@@ -58,7 +55,6 @@ pub use environment::*;
|
||||
pub use experimental_feature::*;
|
||||
pub use feedback::*;
|
||||
pub use fs::*;
|
||||
pub use gcp::*;
|
||||
pub use hook::*;
|
||||
pub use item::*;
|
||||
pub use mcp::*;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//! Safe provider discovery and field patches for custom, AWS, and GCP configuration.
|
||||
//! Safe provider discovery and field patches for custom provider configuration.
|
||||
|
||||
use crate::JsonSchema;
|
||||
use crate::TS;
|
||||
@@ -48,26 +48,7 @@ impl std::fmt::Debug for ModelProviderSummary {
|
||||
#[serde(tag = "type", rename_all = "camelCase")]
|
||||
#[ts(tag = "type", rename_all = "camelCase", export_to = "v2/")]
|
||||
pub enum ProviderSettings {
|
||||
#[serde(rename = "openai")]
|
||||
#[ts(rename = "openai")]
|
||||
OpenAi,
|
||||
CustomGateway {
|
||||
auth: GatewayAuth,
|
||||
},
|
||||
Bedrock {
|
||||
profile: Option<String>,
|
||||
region: Option<String>,
|
||||
},
|
||||
Gcp {
|
||||
#[serde(rename = "projectId")]
|
||||
#[ts(rename = "projectId")]
|
||||
project_id: Option<String>,
|
||||
location: Option<String>,
|
||||
/// Path on the app-server host, without credential-file contents.
|
||||
#[serde(rename = "credentialFile")]
|
||||
#[ts(rename = "credentialFile")]
|
||||
credential_file: Option<String>,
|
||||
},
|
||||
CustomGateway { auth: GatewayAuth },
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
@@ -94,23 +75,6 @@ pub enum GatewayAuth {
|
||||
#[ts(tag = "type", rename_all = "camelCase", export_to = "v2/")]
|
||||
pub enum ProviderSettingsPatch {
|
||||
CustomGateway(CustomGatewaySettingsParams),
|
||||
Bedrock(BedrockSettingsParams),
|
||||
Gcp(GcpSettingsParams),
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "kebab-case")]
|
||||
#[ts(rename_all = "kebab-case", export_to = "v2/")]
|
||||
pub enum BedrockProviderId {
|
||||
AmazonBedrock,
|
||||
AmazonBedrockRuntime,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(rename_all = "camelCase", export_to = "v2/")]
|
||||
pub enum GcpProviderId {
|
||||
Gcp,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Default, PartialEq, Eq, JsonSchema, TS)]
|
||||
@@ -151,72 +115,6 @@ pub struct CustomGatewaySettingsParams {
|
||||
pub env_key: Option<Option<String>>,
|
||||
}
|
||||
|
||||
/// AWS configuration fields for built-in Bedrock providers.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase", deny_unknown_fields)]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct BedrockSettingsParams {
|
||||
pub provider_id: BedrockProviderId,
|
||||
#[serde(
|
||||
default,
|
||||
deserialize_with = "crate::protocol::serde_helpers::deserialize_double_option",
|
||||
serialize_with = "crate::protocol::serde_helpers::serialize_double_option",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[schemars(with = "Option<String>", skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[ts(optional = nullable)]
|
||||
pub profile: Option<Option<String>>,
|
||||
#[serde(
|
||||
default,
|
||||
deserialize_with = "crate::protocol::serde_helpers::deserialize_double_option",
|
||||
serialize_with = "crate::protocol::serde_helpers::serialize_double_option",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[schemars(with = "Option<String>", skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[ts(optional = nullable)]
|
||||
pub region: Option<Option<String>>,
|
||||
}
|
||||
|
||||
/// GCP configuration fields. Credential-file paths refer to the app-server host.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase", deny_unknown_fields)]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub struct GcpSettingsParams {
|
||||
pub provider_id: GcpProviderId,
|
||||
#[serde(
|
||||
default,
|
||||
deserialize_with = "crate::protocol::serde_helpers::deserialize_double_option",
|
||||
serialize_with = "crate::protocol::serde_helpers::serialize_double_option",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[schemars(with = "Option<String>", skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[ts(optional = nullable)]
|
||||
pub project_id: Option<Option<String>>,
|
||||
#[serde(
|
||||
default,
|
||||
deserialize_with = "crate::protocol::serde_helpers::deserialize_double_option",
|
||||
serialize_with = "crate::protocol::serde_helpers::serialize_double_option",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[schemars(with = "Option<String>", skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[ts(optional = nullable)]
|
||||
pub location: Option<Option<String>>,
|
||||
#[serde(
|
||||
default,
|
||||
deserialize_with = "crate::protocol::serde_helpers::deserialize_double_option",
|
||||
serialize_with = "crate::protocol::serde_helpers::serialize_double_option",
|
||||
skip_serializing_if = "Option::is_none"
|
||||
)]
|
||||
#[schemars(with = "Option<String>", skip_serializing_if = "Option::is_none")]
|
||||
#[ts(type = "string | null")]
|
||||
#[ts(optional = nullable)]
|
||||
pub credential_file: Option<Option<String>>,
|
||||
}
|
||||
|
||||
// A missing name preserves it, but an explicitly supplied name must be a string.
|
||||
fn deserialize_patch_name<'de, D: serde::Deserializer<'de>>(
|
||||
deserializer: D,
|
||||
|
||||
Reference in New Issue
Block a user