Download this file
| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "definitions": { |
| 4 | "Account": { |
| 5 | "oneOf": [ |
| 6 | { |
| 7 | "properties": { |
| 8 | "type": { |
| 9 | "enum": [ |
| 10 | "apiKey" |
| 11 | ], |
| 12 | "type": "string" |
| 13 | } |
| 14 | }, |
| 15 | "required": [ |
| 16 | "type" |
| 17 | ], |
| 18 | "type": "object" |
| 19 | }, |
| 20 | { |
| 21 | "properties": { |
| 22 | "email": { |
| 23 | "type": [ |
| 24 | "string", |
| 25 | "null" |
| 26 | ] |
| 27 | }, |
| 28 | "planType": { |
| 29 | "$ref": "#/definitions/PlanType" |
| 30 | }, |
| 31 | "type": { |
| 32 | "enum": [ |
| 33 | "chatgpt" |
| 34 | ], |
| 35 | "type": "string" |
| 36 | } |
| 37 | }, |
| 38 | "required": [ |
| 39 | "email", |
| 40 | "planType", |
| 41 | "type" |
| 42 | ], |
| 43 | "type": "object" |
| 44 | }, |
| 45 | { |
| 46 | "properties": { |
| 47 | "type": { |
| 48 | "enum": [ |
| 49 | "amazonBedrock" |
| 50 | ], |
| 51 | "type": "string" |
| 52 | }, |
| 53 | "usesCodexManagedCredentials": { |
| 54 | "default": false, |
| 55 | "type": "boolean" |
| 56 | } |
| 57 | }, |
| 58 | "required": [ |
| 59 | "type" |
| 60 | ], |
| 61 | "type": "object" |
| 62 | }, |
| 63 | { |
| 64 | "properties": { |
| 65 | "type": { |
| 66 | "enum": [ |
| 67 | "gcp" |
| 68 | ], |
| 69 | "type": "string" |
| 70 | } |
| 71 | }, |
| 72 | "required": [ |
| 73 | "type" |
| 74 | ], |
| 75 | "type": "object" |
| 76 | } |
| 77 | ] |
| 78 | }, |
| 79 | "AccountRoutingOverride": { |
| 80 | "enum": [ |
| 81 | "NO_CONSTRAINT", |
| 82 | "us", |
| 83 | "us_cr" |
| 84 | ], |
| 85 | "type": "string" |
| 86 | }, |
| 87 | "PlanType": { |
| 88 | "enum": [ |
| 89 | "free", |
| 90 | "go", |
| 91 | "plus", |
| 92 | "pro", |
| 93 | "prolite", |
| 94 | "promax", |
| 95 | "team", |
| 96 | "self_serve_business_prolite", |
| 97 | "self_serve_business_usage_based", |
| 98 | "business", |
| 99 | "ent26", |
| 100 | "enterprise_cbp_automation", |
| 101 | "enterprise_cbp_usage_based", |
| 102 | "enterprise", |
| 103 | "edu", |
| 104 | "edu_plus", |
| 105 | "edu_pro", |
| 106 | "sci", |
| 107 | "sci_plus", |
| 108 | "unknown" |
| 109 | ], |
| 110 | "type": "string" |
| 111 | }, |
| 112 | "WorkspaceRouting": { |
| 113 | "properties": { |
| 114 | "accountRoutingOverride": { |
| 115 | "$ref": "#/definitions/AccountRoutingOverride" |
| 116 | }, |
| 117 | "backendOrigin": { |
| 118 | "type": "string" |
| 119 | }, |
| 120 | "chatgptAccountId": { |
| 121 | "type": "string" |
| 122 | } |
| 123 | }, |
| 124 | "required": [ |
| 125 | "accountRoutingOverride", |
| 126 | "backendOrigin", |
| 127 | "chatgptAccountId" |
| 128 | ], |
| 129 | "type": "object" |
| 130 | } |
| 131 | }, |
| 132 | "properties": { |
| 133 | "account": { |
| 134 | "anyOf": [ |
| 135 | { |
| 136 | "$ref": "#/definitions/Account" |
| 137 | }, |
| 138 | { |
| 139 | "type": "null" |
| 140 | } |
| 141 | ] |
| 142 | }, |
| 143 | "requiresOpenaiAuth": { |
| 144 | "type": "boolean" |
| 145 | }, |
| 146 | "workspaceRouting": { |
| 147 | "anyOf": [ |
| 148 | { |
| 149 | "$ref": "#/definitions/WorkspaceRouting" |
| 150 | }, |
| 151 | { |
| 152 | "type": "null" |
| 153 | } |
| 154 | ] |
| 155 | } |
| 156 | }, |
| 157 | "required": [ |
| 158 | "requiresOpenaiAuth" |
| 159 | ], |
| 160 | "type": "object" |
| 161 | } |
| 162 | |