{ "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "Account": { "oneOf": [ { "properties": { "type": { "enum": [ "apiKey" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, { "properties": { "email": { "type": [ "string", "null" ] }, "planType": { "$ref": "#/definitions/PlanType" }, "type": { "enum": [ "chatgpt" ], "type": "string" } }, "required": [ "email", "planType", "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "amazonBedrock" ], "type": "string" }, "usesCodexManagedCredentials": { "default": false, "type": "boolean" } }, "required": [ "type" ], "type": "object" }, { "properties": { "type": { "enum": [ "gcp" ], "type": "string" } }, "required": [ "type" ], "type": "object" } ] }, "AccountRoutingOverride": { "enum": [ "NO_CONSTRAINT", "us", "us_cr" ], "type": "string" }, "PlanType": { "enum": [ "free", "go", "plus", "pro", "prolite", "promax", "team", "self_serve_business_prolite", "self_serve_business_usage_based", "business", "ent26", "enterprise_cbp_automation", "enterprise_cbp_usage_based", "enterprise", "edu", "edu_plus", "edu_pro", "sci", "sci_plus", "unknown" ], "type": "string" }, "WorkspaceRouting": { "properties": { "accountRoutingOverride": { "$ref": "#/definitions/AccountRoutingOverride" }, "backendOrigin": { "type": "string" }, "chatgptAccountId": { "type": "string" } }, "required": [ "accountRoutingOverride", "backendOrigin", "chatgptAccountId" ], "type": "object" } }, "properties": { "account": { "anyOf": [ { "$ref": "#/definitions/Account" }, { "type": "null" } ] }, "requiresOpenaiAuth": { "type": "boolean" }, "workspaceRouting": { "anyOf": [ { "$ref": "#/definitions/WorkspaceRouting" }, { "type": "null" } ] } }, "required": [ "requiresOpenaiAuth" ], "type": "object" }