Skip to content

Commit dbb3130

Browse files
Update api spec (#1237)
YOYO NEW API SPEC! Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 856ba3e commit dbb3130

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

spec.json

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4091,7 +4091,7 @@
40914091
"content": {
40924092
"application/json": {
40934093
"schema": {
4094-
"$ref": "#/components/schemas/DeviceAuthVerifyParams"
4094+
"$ref": "#/components/schemas/DeviceAuthConfirmParams"
40954095
}
40964096
}
40974097
},
@@ -4315,6 +4315,15 @@
43154315
"description": "This endpoint should be accessed in a full user agent (e.g., a browser). If the user is not logged in, we redirect them to the login page and use the `callback_url` parameter to get them to the UI verification form upon logging in. If they are logged in, we redirect them to the UI verification form on the website.",
43164316
"operationId": "device_auth_verify",
43174317
"parameters": [
4318+
{
4319+
"in": "query",
4320+
"name": "app_name",
4321+
"description": "The originating app's name",
4322+
"schema": {
4323+
"nullable": true,
4324+
"type": "string"
4325+
}
4326+
},
43184327
{
43194328
"in": "query",
43204329
"name": "user_code",
@@ -18403,31 +18412,31 @@
1840318412
"description": "An auth token. A uuid with a prefix of dev-",
1840418413
"type": "string"
1840518414
},
18406-
"DeviceAuthRequestForm": {
18407-
"description": "The request parameters for the OAuth 2.0 Device Authorization Grant flow.",
18415+
"DeviceAuthConfirmParams": {
18416+
"description": "The request parameters to confirm the `user_code` for the OAuth 2.0 Device Authorization Grant.",
1840818417
"type": "object",
1840918418
"properties": {
18410-
"client_id": {
18411-
"description": "The client ID.",
18412-
"type": "string",
18413-
"format": "uuid"
18419+
"user_code": {
18420+
"description": "The user code.",
18421+
"type": "string"
1841418422
}
1841518423
},
1841618424
"required": [
18417-
"client_id"
18425+
"user_code"
1841818426
]
1841918427
},
18420-
"DeviceAuthVerifyParams": {
18421-
"description": "The request parameters to verify the `user_code` for the OAuth 2.0 Device Authorization Grant.",
18428+
"DeviceAuthRequestForm": {
18429+
"description": "The request parameters for the OAuth 2.0 Device Authorization Grant flow.",
1842218430
"type": "object",
1842318431
"properties": {
18424-
"user_code": {
18425-
"description": "The user code.",
18426-
"type": "string"
18432+
"client_id": {
18433+
"description": "The client ID.",
18434+
"type": "string",
18435+
"format": "uuid"
1842718436
}
1842818437
},
1842918438
"required": [
18430-
"user_code"
18439+
"client_id"
1843118440
]
1843218441
},
1843318442
"Direction": {

0 commit comments

Comments
 (0)