[codex-app-server] expose generic per-surface HTTP state bridge [ci changed_files]

This commit is contained in:
Cooper Gamble
2026-06-03 09:58:07 +00:00
parent bf1b28e1c1
commit 81ccd4cbf2
25 changed files with 323 additions and 336 deletions
+28 -28
View File
@@ -1083,6 +1083,24 @@
},
"type": "object"
},
"HttpStateSetParams": {
"properties": {
"expectedState": {
"description": "When present, write only if the calling surface still stores this state.",
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
}
},
"required": [
"state"
],
"type": "object"
},
"ImageDetail": {
"enum": [
"auto",
@@ -1581,24 +1599,6 @@
"ModelProviderCapabilitiesReadParams": {
"type": "object"
},
"NativeIntegrityStateWriteParams": {
"properties": {
"expectedState": {
"description": "When present, write only if the calling surface still stores this state.",
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
}
},
"required": [
"state"
],
"type": "object"
},
"NetworkAccess": {
"enum": [
"restricted",
@@ -5686,9 +5686,9 @@
},
"method": {
"enum": [
"nativeIntegrityState/read"
"httpState/get"
],
"title": "NativeIntegrityState/readRequestMethod",
"title": "HttpState/getRequestMethod",
"type": "string"
},
"params": {
@@ -5699,7 +5699,7 @@
"id",
"method"
],
"title": "NativeIntegrityState/readRequest",
"title": "HttpState/getRequest",
"type": "object"
},
{
@@ -5709,13 +5709,13 @@
},
"method": {
"enum": [
"nativeIntegrityState/write"
"httpState/set"
],
"title": "NativeIntegrityState/writeRequestMethod",
"title": "HttpState/setRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/NativeIntegrityStateWriteParams"
"$ref": "#/definitions/HttpStateSetParams"
}
},
"required": [
@@ -5723,7 +5723,7 @@
"method",
"params"
],
"title": "NativeIntegrityState/writeRequest",
"title": "HttpState/setRequest",
"type": "object"
},
{
@@ -5733,9 +5733,9 @@
},
"method": {
"enum": [
"nativeIntegrityState/clear"
"httpState/clear"
],
"title": "NativeIntegrityState/clearRequestMethod",
"title": "HttpState/clearRequestMethod",
"type": "string"
},
"params": {
@@ -5746,7 +5746,7 @@
"id",
"method"
],
"title": "NativeIntegrityState/clearRequest",
"title": "HttpState/clearRequest",
"type": "object"
},
{
@@ -1580,9 +1580,9 @@
},
"method": {
"enum": [
"nativeIntegrityState/read"
"httpState/get"
],
"title": "NativeIntegrityState/readRequestMethod",
"title": "HttpState/getRequestMethod",
"type": "string"
},
"params": {
@@ -1593,7 +1593,7 @@
"id",
"method"
],
"title": "NativeIntegrityState/readRequest",
"title": "HttpState/getRequest",
"type": "object"
},
{
@@ -1603,13 +1603,13 @@
},
"method": {
"enum": [
"nativeIntegrityState/write"
"httpState/set"
],
"title": "NativeIntegrityState/writeRequestMethod",
"title": "HttpState/setRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/v2/NativeIntegrityStateWriteParams"
"$ref": "#/definitions/v2/HttpStateSetParams"
}
},
"required": [
@@ -1617,7 +1617,7 @@
"method",
"params"
],
"title": "NativeIntegrityState/writeRequest",
"title": "HttpState/setRequest",
"type": "object"
},
{
@@ -1627,9 +1627,9 @@
},
"method": {
"enum": [
"nativeIntegrityState/clear"
"httpState/clear"
],
"title": "NativeIntegrityState/clearRequestMethod",
"title": "HttpState/clearRequestMethod",
"type": "string"
},
"params": {
@@ -1640,7 +1640,7 @@
"id",
"method"
],
"title": "NativeIntegrityState/clearRequest",
"title": "HttpState/clearRequest",
"type": "object"
},
{
@@ -10307,6 +10307,57 @@
"title": "HooksListResponse",
"type": "object"
},
"HttpStateClearResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "HttpStateClearResponse",
"type": "object"
},
"HttpStateGetResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"state": {
"type": [
"string",
"null"
]
}
},
"title": "HttpStateGetResponse",
"type": "object"
},
"HttpStateSetParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"expectedState": {
"description": "When present, write only if the calling surface still stores this state.",
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
}
},
"required": [
"state"
],
"title": "HttpStateSetParams",
"type": "object"
},
"HttpStateSetResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"written": {
"type": "boolean"
}
},
"required": [
"written"
],
"title": "HttpStateSetResponse",
"type": "object"
},
"ImageDetail": {
"enum": [
"auto",
@@ -11860,57 +11911,6 @@
"title": "ModelVerificationNotification",
"type": "object"
},
"NativeIntegrityStateClearResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "NativeIntegrityStateClearResponse",
"type": "object"
},
"NativeIntegrityStateReadResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"state": {
"type": [
"string",
"null"
]
}
},
"title": "NativeIntegrityStateReadResponse",
"type": "object"
},
"NativeIntegrityStateWriteParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"expectedState": {
"description": "When present, write only if the calling surface still stores this state.",
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
}
},
"required": [
"state"
],
"title": "NativeIntegrityStateWriteParams",
"type": "object"
},
"NativeIntegrityStateWriteResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"written": {
"type": "boolean"
}
},
"required": [
"written"
],
"title": "NativeIntegrityStateWriteResponse",
"type": "object"
},
"NetworkAccess": {
"enum": [
"restricted",
@@ -2339,9 +2339,9 @@
},
"method": {
"enum": [
"nativeIntegrityState/read"
"httpState/get"
],
"title": "NativeIntegrityState/readRequestMethod",
"title": "HttpState/getRequestMethod",
"type": "string"
},
"params": {
@@ -2352,7 +2352,7 @@
"id",
"method"
],
"title": "NativeIntegrityState/readRequest",
"title": "HttpState/getRequest",
"type": "object"
},
{
@@ -2362,13 +2362,13 @@
},
"method": {
"enum": [
"nativeIntegrityState/write"
"httpState/set"
],
"title": "NativeIntegrityState/writeRequestMethod",
"title": "HttpState/setRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/NativeIntegrityStateWriteParams"
"$ref": "#/definitions/HttpStateSetParams"
}
},
"required": [
@@ -2376,7 +2376,7 @@
"method",
"params"
],
"title": "NativeIntegrityState/writeRequest",
"title": "HttpState/setRequest",
"type": "object"
},
{
@@ -2386,9 +2386,9 @@
},
"method": {
"enum": [
"nativeIntegrityState/clear"
"httpState/clear"
],
"title": "NativeIntegrityState/clearRequestMethod",
"title": "HttpState/clearRequestMethod",
"type": "string"
},
"params": {
@@ -2399,7 +2399,7 @@
"id",
"method"
],
"title": "NativeIntegrityState/clearRequest",
"title": "HttpState/clearRequest",
"type": "object"
},
{
@@ -6780,6 +6780,57 @@
"title": "HooksListResponse",
"type": "object"
},
"HttpStateClearResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "HttpStateClearResponse",
"type": "object"
},
"HttpStateGetResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"state": {
"type": [
"string",
"null"
]
}
},
"title": "HttpStateGetResponse",
"type": "object"
},
"HttpStateSetParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"expectedState": {
"description": "When present, write only if the calling surface still stores this state.",
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
}
},
"required": [
"state"
],
"title": "HttpStateSetParams",
"type": "object"
},
"HttpStateSetResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"written": {
"type": "boolean"
}
},
"required": [
"written"
],
"title": "HttpStateSetResponse",
"type": "object"
},
"ImageDetail": {
"enum": [
"auto",
@@ -8382,57 +8433,6 @@
"title": "ModelVerificationNotification",
"type": "object"
},
"NativeIntegrityStateClearResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "NativeIntegrityStateClearResponse",
"type": "object"
},
"NativeIntegrityStateReadResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"state": {
"type": [
"string",
"null"
]
}
},
"title": "NativeIntegrityStateReadResponse",
"type": "object"
},
"NativeIntegrityStateWriteParams": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"expectedState": {
"description": "When present, write only if the calling surface still stores this state.",
"type": [
"string",
"null"
]
},
"state": {
"type": "string"
}
},
"required": [
"state"
],
"title": "NativeIntegrityStateWriteParams",
"type": "object"
},
"NativeIntegrityStateWriteResponse": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"written": {
"type": "boolean"
}
},
"required": [
"written"
],
"title": "NativeIntegrityStateWriteResponse",
"type": "object"
},
"NetworkAccess": {
"enum": [
"restricted",
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "NativeIntegrityStateClearResponse",
"title": "HttpStateClearResponse",
"type": "object"
}
@@ -8,6 +8,6 @@
]
}
},
"title": "NativeIntegrityStateReadResponse",
"title": "HttpStateGetResponse",
"type": "object"
}
@@ -15,6 +15,6 @@
"required": [
"state"
],
"title": "NativeIntegrityStateWriteParams",
"title": "HttpStateSetParams",
"type": "object"
}
@@ -8,6 +8,6 @@
"required": [
"written"
],
"title": "NativeIntegrityStateWriteResponse",
"title": "HttpStateSetResponse",
"type": "object"
}
File diff suppressed because one or more lines are too long
@@ -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 NativeIntegrityStateClearResponse = Record<string, never>;
export type HttpStateClearResponse = Record<string, never>;
@@ -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 NativeIntegrityStateWriteResponse = { written: boolean, };
export type HttpStateGetResponse = { state: string | null, };
@@ -2,7 +2,7 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type NativeIntegrityStateWriteParams = { state: string,
export type HttpStateSetParams = { state: string,
/**
* When present, write only if the calling surface still stores this state.
*/
@@ -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 NativeIntegrityStateReadResponse = { state: string | null, };
export type HttpStateSetResponse = { written: boolean, };
+4 -4
View File
@@ -167,6 +167,10 @@ export type { HookTrustStatus } from "./HookTrustStatus";
export type { HooksListEntry } from "./HooksListEntry";
export type { HooksListParams } from "./HooksListParams";
export type { HooksListResponse } from "./HooksListResponse";
export type { HttpStateClearResponse } from "./HttpStateClearResponse";
export type { HttpStateGetResponse } from "./HttpStateGetResponse";
export type { HttpStateSetParams } from "./HttpStateSetParams";
export type { HttpStateSetResponse } from "./HttpStateSetResponse";
export type { ItemCompletedNotification } from "./ItemCompletedNotification";
export type { ItemGuardianApprovalReviewCompletedNotification } from "./ItemGuardianApprovalReviewCompletedNotification";
export type { ItemGuardianApprovalReviewStartedNotification } from "./ItemGuardianApprovalReviewStartedNotification";
@@ -245,10 +249,6 @@ export type { ModelServiceTier } from "./ModelServiceTier";
export type { ModelUpgradeInfo } from "./ModelUpgradeInfo";
export type { ModelVerification } from "./ModelVerification";
export type { ModelVerificationNotification } from "./ModelVerificationNotification";
export type { NativeIntegrityStateClearResponse } from "./NativeIntegrityStateClearResponse";
export type { NativeIntegrityStateReadResponse } from "./NativeIntegrityStateReadResponse";
export type { NativeIntegrityStateWriteParams } from "./NativeIntegrityStateWriteParams";
export type { NativeIntegrityStateWriteResponse } from "./NativeIntegrityStateWriteResponse";
export type { NetworkAccess } from "./NetworkAccess";
export type { NetworkApprovalContext } from "./NetworkApprovalContext";
export type { NetworkApprovalProtocol } from "./NetworkApprovalProtocol";