[codex][device-stable-id][12/n] Send source stable ID with managed auth requests

This commit is contained in:
Riley Pinkerton
2026-06-18 07:04:07 +00:00
parent e7b6e0d859
commit 82008057b1
36 changed files with 358 additions and 40 deletions
@@ -1227,6 +1227,13 @@
"refreshToken": {
"description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"type": "object"
@@ -1442,6 +1449,13 @@
"codexStreamlinedLogin": {
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgpt"
@@ -1458,6 +1472,13 @@
},
{
"properties": {
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgptDeviceCode"
@@ -10220,6 +10220,13 @@
"refreshToken": {
"description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"title": "GetAccountParams",
@@ -11364,6 +11371,13 @@
"codexStreamlinedLogin": {
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgpt"
@@ -11380,6 +11394,13 @@
},
{
"properties": {
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgptDeviceCode"
@@ -6616,6 +6616,13 @@
"refreshToken": {
"description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"title": "GetAccountParams",
@@ -7809,6 +7816,13 @@
"codexStreamlinedLogin": {
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgpt"
@@ -7825,6 +7839,13 @@
},
{
"properties": {
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgptDeviceCode"
@@ -4,6 +4,13 @@
"refreshToken": {
"description": "When `true`, requests a proactive token refresh before returning.\n\nIn managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call `account/login/start` with `chatgptAuthTokens`.",
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"title": "GetAccountParams",
@@ -26,6 +26,13 @@
"codexStreamlinedLogin": {
"type": "boolean"
},
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgpt"
@@ -42,6 +49,13 @@
},
{
"properties": {
"sourceSurfaceStableId": {
"default": null,
"type": [
"string",
"null"
]
},
"type": {
"enum": [
"chatgptDeviceCode"
@@ -10,4 +10,4 @@ export type GetAccountParams = {
* external auth mode this flag is ignored. Clients should refresh tokens
* themselves and call `account/login/start` with `chatgptAuthTokens`.
*/
refreshToken?: boolean, };
refreshToken?: boolean, sourceSurfaceStableId?: 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 LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt", codexStreamlinedLogin?: boolean, } | { "type": "chatgptDeviceCode" } | { "type": "chatgptAuthTokens",
export type LoginAccountParams = { "type": "apiKey", apiKey: string, } | { "type": "chatgpt", codexStreamlinedLogin?: boolean, sourceSurfaceStableId?: string | null, } | { "type": "chatgptDeviceCode", sourceSurfaceStableId?: string | null, } | { "type": "chatgptAuthTokens",
/**
* Access token (JWT) supplied by the client.
* This token is used for backend API requests and email extraction.