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:
zoo-github-actions-auth[bot]
2024-07-18 09:33:58 -07:00
committed by GitHub
parent 8427b3f85d
commit 87f9f38d5f
5 changed files with 896 additions and 873 deletions

File diff suppressed because it is too large Load Diff

View File

@ -202,6 +202,7 @@ from .selection import Selection
from .service_account import ServiceAccount
from .service_account_results_page import ServiceAccountResultsPage
from .session import Session
from .session_token_type import SessionTokenType
from .solid3d_get_all_edge_faces import Solid3dGetAllEdgeFaces
from .solid3d_get_all_opposite_edges import Solid3dGetAllOppositeEdges
from .solid3d_get_extrusion_face_info import Solid3dGetExtrusionFaceInfo

View File

@ -2,6 +2,7 @@ import datetime
from pydantic import BaseModel, ConfigDict
from ..models.session_token_type import SessionTokenType
from ..models.uuid import Uuid
@ -14,7 +15,7 @@ class Session(BaseModel):
id: Uuid
session_token: Uuid
session_token: SessionTokenType
updated_at: datetime.datetime

View 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))

View File

@ -24628,7 +24628,7 @@
"description": "The session token.",
"allOf": [
{
"$ref": "#/components/schemas/Uuid"
"$ref": "#/components/schemas/SessionTokenType"
}
]
},
@ -24656,6 +24656,10 @@
"user_id"
]
},
"SessionTokenType": {
"description": "An auth token. A uuid with a prefix of ses-",
"type": "string"
},
"Solid3dGetAllEdgeFaces": {
"description": "The response from the `Solid3dGetAllEdgeFaces` command.",
"type": "object",