Update api spec (#414)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a7f6433735
commit
ab4eebfdb1
File diff suppressed because it is too large
Load Diff
@ -80,8 +80,8 @@ from .density import Density
|
||||
from .der_encoded_key_pair import DerEncodedKeyPair
|
||||
from .device_access_token_request_form import DeviceAccessTokenRequestForm
|
||||
from .device_access_token_uuid import DeviceAccessTokenUuid
|
||||
from .device_auth_confirm_params import DeviceAuthConfirmParams
|
||||
from .device_auth_request_form import DeviceAuthRequestForm
|
||||
from .device_auth_verify_params import DeviceAuthVerifyParams
|
||||
from .direction import Direction
|
||||
from .disable_dry_run import DisableDryRun
|
||||
from .discount import Discount
|
||||
|
9
kittycad/models/device_auth_confirm_params.py
Normal file
9
kittycad/models/device_auth_confirm_params.py
Normal file
@ -0,0 +1,9 @@
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
class DeviceAuthConfirmParams(BaseModel):
|
||||
"""The request parameters to confirm the `user_code` for the OAuth 2.0 Device Authorization Grant."""
|
||||
|
||||
user_code: str
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
@ -1,9 +0,0 @@
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
class DeviceAuthVerifyParams(BaseModel):
|
||||
"""The request parameters to verify the `user_code` for the OAuth 2.0 Device Authorization Grant."""
|
||||
|
||||
user_code: str
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
37
spec.json
37
spec.json
@ -4091,7 +4091,7 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/DeviceAuthVerifyParams"
|
||||
"$ref": "#/components/schemas/DeviceAuthConfirmParams"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -4315,6 +4315,15 @@
|
||||
"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.",
|
||||
"operationId": "device_auth_verify",
|
||||
"parameters": [
|
||||
{
|
||||
"in": "query",
|
||||
"name": "app_name",
|
||||
"description": "The originating app's name",
|
||||
"schema": {
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "user_code",
|
||||
@ -18403,6 +18412,19 @@
|
||||
"description": "An auth token. A uuid with a prefix of dev-",
|
||||
"type": "string"
|
||||
},
|
||||
"DeviceAuthConfirmParams": {
|
||||
"description": "The request parameters to confirm the `user_code` for the OAuth 2.0 Device Authorization Grant.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_code": {
|
||||
"description": "The user code.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"user_code"
|
||||
]
|
||||
},
|
||||
"DeviceAuthRequestForm": {
|
||||
"description": "The request parameters for the OAuth 2.0 Device Authorization Grant flow.",
|
||||
"type": "object",
|
||||
@ -18417,19 +18439,6 @@
|
||||
"client_id"
|
||||
]
|
||||
},
|
||||
"DeviceAuthVerifyParams": {
|
||||
"description": "The request parameters to verify the `user_code` for the OAuth 2.0 Device Authorization Grant.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_code": {
|
||||
"description": "The user code.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"user_code"
|
||||
]
|
||||
},
|
||||
"Direction": {
|
||||
"description": "Specifies the sign of a co-ordinate axis.",
|
||||
"oneOf": [
|
||||
|
Reference in New Issue
Block a user