Update api spec (#236)
* 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
8427b3f85d
commit
87f9f38d5f
File diff suppressed because it is too large
Load Diff
@ -202,6 +202,7 @@ from .selection import Selection
|
|||||||
from .service_account import ServiceAccount
|
from .service_account import ServiceAccount
|
||||||
from .service_account_results_page import ServiceAccountResultsPage
|
from .service_account_results_page import ServiceAccountResultsPage
|
||||||
from .session import Session
|
from .session import Session
|
||||||
|
from .session_token_type import SessionTokenType
|
||||||
from .solid3d_get_all_edge_faces import Solid3dGetAllEdgeFaces
|
from .solid3d_get_all_edge_faces import Solid3dGetAllEdgeFaces
|
||||||
from .solid3d_get_all_opposite_edges import Solid3dGetAllOppositeEdges
|
from .solid3d_get_all_opposite_edges import Solid3dGetAllOppositeEdges
|
||||||
from .solid3d_get_extrusion_face_info import Solid3dGetExtrusionFaceInfo
|
from .solid3d_get_extrusion_face_info import Solid3dGetExtrusionFaceInfo
|
||||||
|
@ -2,6 +2,7 @@ import datetime
|
|||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict
|
from pydantic import BaseModel, ConfigDict
|
||||||
|
|
||||||
|
from ..models.session_token_type import SessionTokenType
|
||||||
from ..models.uuid import Uuid
|
from ..models.uuid import Uuid
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ class Session(BaseModel):
|
|||||||
|
|
||||||
id: Uuid
|
id: Uuid
|
||||||
|
|
||||||
session_token: Uuid
|
session_token: SessionTokenType
|
||||||
|
|
||||||
updated_at: datetime.datetime
|
updated_at: datetime.datetime
|
||||||
|
|
||||||
|
17
kittycad/models/session_token_type.py
Normal file
17
kittycad/models/session_token_type.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
|
from pydantic import GetCoreSchemaHandler
|
||||||
|
from pydantic_core import CoreSchema, core_schema
|
||||||
|
|
||||||
|
|
||||||
|
class SessionTokenType(str):
|
||||||
|
"""An auth token. A uuid with a prefix of ses-"""
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return self
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def __get_pydantic_core_schema__(
|
||||||
|
cls, source_type: Any, handler: GetCoreSchemaHandler
|
||||||
|
) -> CoreSchema:
|
||||||
|
return core_schema.no_info_after_validator_function(cls, handler(str))
|
@ -24628,7 +24628,7 @@
|
|||||||
"description": "The session token.",
|
"description": "The session token.",
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Uuid"
|
"$ref": "#/components/schemas/SessionTokenType"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -24656,6 +24656,10 @@
|
|||||||
"user_id"
|
"user_id"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"SessionTokenType": {
|
||||||
|
"description": "An auth token. A uuid with a prefix of ses-",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"Solid3dGetAllEdgeFaces": {
|
"Solid3dGetAllEdgeFaces": {
|
||||||
"description": "The response from the `Solid3dGetAllEdgeFaces` command.",
|
"description": "The response from the `Solid3dGetAllEdgeFaces` command.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
Reference in New Issue
Block a user