Align app-server create-api-key flow

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-03-27 12:49:16 -04:00
parent 8ccbe48ba6
commit 575bb8a885
31 changed files with 1032 additions and 663 deletions

View File

@@ -1140,27 +1140,6 @@
"title": "ApiKeyLoginAccountParams",
"type": "object"
},
{
"description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.",
"properties": {
"apiKey": {
"type": "string"
},
"type": {
"enum": [
"ephemeralApiKey"
],
"title": "EphemeralApiKeyLoginAccountParamsType",
"type": "string"
}
},
"required": [
"apiKey",
"type"
],
"title": "EphemeralApiKeyLoginAccountParams",
"type": "object"
},
{
"properties": {
"type": {
@@ -2523,6 +2502,39 @@
],
"type": "object"
},
"ThreadDependencyEnvContainsParams": {
"properties": {
"key": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"key",
"threadId"
],
"type": "object"
},
"ThreadDependencyEnvSetParams": {
"properties": {
"threadId": {
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"threadId",
"values"
],
"type": "object"
},
"ThreadForkParams": {
"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.",
"properties": {
@@ -3610,6 +3622,54 @@
"title": "Thread/name/setRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/dependencyEnv/set"
],
"title": "Thread/dependencyEnv/setRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadDependencyEnvSetParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/dependencyEnv/setRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/dependencyEnv/contains"
],
"title": "Thread/dependencyEnv/containsRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadDependencyEnvContainsParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/dependencyEnv/containsRequest",
"type": "object"
},
{
"properties": {
"id": {

View File

@@ -431,6 +431,54 @@
"title": "Thread/name/setRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/dependencyEnv/set"
],
"title": "Thread/dependencyEnv/setRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadDependencyEnvSetParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/dependencyEnv/setRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/v2/RequestId"
},
"method": {
"enum": [
"thread/dependencyEnv/contains"
],
"title": "Thread/dependencyEnv/containsRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/ThreadDependencyEnvContainsParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/dependencyEnv/containsRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -8652,27 +8700,6 @@
"title": "ApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.",
"properties": {
"apiKey": {
"type": "string"
},
"type": {
"enum": [
"ephemeralApiKey"
],
"title": "EphemeralApiKeyv2::LoginAccountParamsType",
"type": "string"
}
},
"required": [
"apiKey",
"type"
],
"title": "EphemeralApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"properties": {
"type": {
@@ -12180,6 +12207,61 @@
"title": "ThreadCompactStartResponse",
"type": "object"
},
"ThreadDependencyEnvContainsParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"key": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"key",
"threadId"
],
"title": "ThreadDependencyEnvContainsParams",
"type": "object"
},
"ThreadDependencyEnvContainsResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"contains": {
"type": "boolean"
}
},
"required": [
"contains"
],
"title": "ThreadDependencyEnvContainsResponse",
"type": "object"
},
"ThreadDependencyEnvSetParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"threadId",
"values"
],
"title": "ThreadDependencyEnvSetParams",
"type": "object"
},
"ThreadDependencyEnvSetResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadDependencyEnvSetResponse",
"type": "object"
},
"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.",

View File

@@ -961,6 +961,54 @@
"title": "Thread/name/setRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/dependencyEnv/set"
],
"title": "Thread/dependencyEnv/setRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadDependencyEnvSetParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/dependencyEnv/setRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"thread/dependencyEnv/contains"
],
"title": "Thread/dependencyEnv/containsRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/ThreadDependencyEnvContainsParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Thread/dependencyEnv/containsRequest",
"type": "object"
},
{
"properties": {
"id": {
@@ -5367,27 +5415,6 @@
"title": "ApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.",
"properties": {
"apiKey": {
"type": "string"
},
"type": {
"enum": [
"ephemeralApiKey"
],
"title": "EphemeralApiKeyv2::LoginAccountParamsType",
"type": "string"
}
},
"required": [
"apiKey",
"type"
],
"title": "EphemeralApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"properties": {
"type": {
@@ -9927,6 +9954,61 @@
"title": "ThreadCompactStartResponse",
"type": "object"
},
"ThreadDependencyEnvContainsParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"key": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"key",
"threadId"
],
"title": "ThreadDependencyEnvContainsParams",
"type": "object"
},
"ThreadDependencyEnvContainsResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"contains": {
"type": "boolean"
}
},
"required": [
"contains"
],
"title": "ThreadDependencyEnvContainsResponse",
"type": "object"
},
"ThreadDependencyEnvSetParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"threadId",
"values"
],
"title": "ThreadDependencyEnvSetParams",
"type": "object"
},
"ThreadDependencyEnvSetResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadDependencyEnvSetResponse",
"type": "object"
},
"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.",

View File

@@ -21,27 +21,6 @@
"title": "ApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"description": "[UNSTABLE] FOR OPENAI INTERNAL USE ONLY - DO NOT USE.",
"properties": {
"apiKey": {
"type": "string"
},
"type": {
"enum": [
"ephemeralApiKey"
],
"title": "EphemeralApiKeyv2::LoginAccountParamsType",
"type": "string"
}
},
"required": [
"apiKey",
"type"
],
"title": "EphemeralApiKeyv2::LoginAccountParams",
"type": "object"
},
{
"properties": {
"type": {

View File

@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"key": {
"type": "string"
},
"threadId": {
"type": "string"
}
},
"required": [
"key",
"threadId"
],
"title": "ThreadDependencyEnvContainsParams",
"type": "object"
}

View File

@@ -0,0 +1,13 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"contains": {
"type": "boolean"
}
},
"required": [
"contains"
],
"title": "ThreadDependencyEnvContainsResponse",
"type": "object"
}

View File

@@ -0,0 +1,20 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"threadId": {
"type": "string"
},
"values": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"required": [
"threadId",
"values"
],
"title": "ThreadDependencyEnvSetParams",
"type": "object"
}

View File

@@ -0,0 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ThreadDependencyEnvSetResponse",
"type": "object"
}