codex: make create-api-key app-server backed

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-04-05 18:07:48 -04:00
parent 0b9e42f6f7
commit 64b5036b99
34 changed files with 2453 additions and 253 deletions

View File

@@ -362,6 +362,54 @@
"title": "Thread/unsubscribeRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/createApiKey/start"
],
"title": "Thread/createApiKey/startRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadCreateApiKeyStartParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/createApiKey/startRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/createApiKey/finish"
],
"title": "Thread/createApiKey/finishRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadCreateApiKeyFinishParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/createApiKey/finishRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -12478,6 +12526,111 @@
"title": "ThreadCompactStartResponse",
"type": "object"
},
"ThreadCreateApiKeyFinishParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ThreadCreateApiKeyFinishParams",
"type": "object"
},
"ThreadCreateApiKeyFinishResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"defaultProjectId": {
"type": "string"
},
"defaultProjectTitle": {
"type": [
"string",
"null"
]
},
"organizationId": {
"type": "string"
},
"organizationTitle": {
"type": [
"string",
"null"
]
},
"projectApiKey": {
"type": "string"
}
},
"required": [
"defaultProjectId",
"organizationId",
"projectApiKey"
],
"title": "ThreadCreateApiKeyFinishResponse",
"type": "object"
},
"ThreadCreateApiKeyStartParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
}
},
"required": [
"threadId"
],
"title": "ThreadCreateApiKeyStartParams",
"type": "object"
},
"ThreadCreateApiKeyStartResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"oneOf": [
{
"properties": {
"status": {
"enum": [
"alreadySet"
],
"title": "AlreadySetv2::ThreadCreateApiKeyStartResponseStatus",
"type": "string"
}
},
"required": [
"status"
],
"title": "AlreadySetv2::ThreadCreateApiKeyStartResponse",
"type": "object"
},
{
"properties": {
"authUrl": {
"type": "string"
},
"callbackPort": {
"format": "uint16",
"minimum": 0.0,
"type": "integer"
},
"status": {
"enum": [
"started"
],
"type": "string"
}
},
"required": [
"authUrl",
"callbackPort",
"status"
],
"type": "object"
}
],
"title": "ThreadCreateApiKeyStartResponse"
},
"ThreadForkParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.\n\nIf using path, the thread_id param will be ignored.\n\nPrefer using thread_id whenever possible.",