kittycad.models.web_socket_request

Classes

OptionHeaders(**data)

Authentication header request.

OptionMetricsResponse(**data)

The response to a metrics collection request from the server.

OptionModelingCmdBatchReq(**data)

A sequence of modeling requests.

OptionModelingCmdReq(**data)

The modeling command request.

OptionPing(**data)

The client-to-server Ping to ensure the WebSocket stays alive.

OptionSdpOffer(**data)

The SDP offer request.

OptionTrickleIce(**data)

The trickle ICE candidate request.

class kittycad.models.web_socket_request.OptionHeaders(**data)[source][source]

Authentication header request.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__abstractmethods__ = frozenset({})[source]
__annotations__ = {'__class_vars__': 'ClassVar[set[str]]', '__private_attributes__': 'ClassVar[Dict[str, ModelPrivateAttr]]', '__pydantic_complete__': 'ClassVar[bool]', '__pydantic_computed_fields__': 'ClassVar[Dict[str, ComputedFieldInfo]]', '__pydantic_core_schema__': 'ClassVar[CoreSchema]', '__pydantic_custom_init__': 'ClassVar[bool]', '__pydantic_decorators__': 'ClassVar[_decorators.DecoratorInfos]', '__pydantic_extra__': 'dict[str, Any] | None', '__pydantic_fields__': 'ClassVar[Dict[str, FieldInfo]]', '__pydantic_fields_set__': 'set[str]', '__pydantic_generic_metadata__': 'ClassVar[_generics.PydanticGenericMetadata]', '__pydantic_parent_namespace__': 'ClassVar[Dict[str, Any] | None]', '__pydantic_post_init__': "ClassVar[None | Literal['model_post_init']]", '__pydantic_private__': 'dict[str, Any] | None', '__pydantic_root_model__': 'ClassVar[bool]', '__pydantic_serializer__': 'ClassVar[SchemaSerializer]', '__pydantic_validator__': 'ClassVar[SchemaValidator | PluggableSchemaValidator]', '__signature__': 'ClassVar[Signature]', 'headers': typing.Dict[str, str], 'model_computed_fields': 'ClassVar[dict[str, ComputedFieldInfo]]', 'model_config': 'ClassVar[ConfigDict]', 'model_fields': 'ClassVar[dict[str, FieldInfo]]', 'type': typing.Literal['headers']}[source]
classmethod __class_getitem__(typevar_values)[source]
Return type:

type[BaseModel] | PydanticRecursiveRef

__class_vars__: ClassVar[set[str]] = {}[source]

The names of the class variables defined on the model.

__copy__()[source]

Returns a shallow copy of the model.

Return type:

Self

__deepcopy__(memo=None)[source]

Returns a deep copy of the model.

Return type:

Self

__delattr__(item)[source]

Implement delattr(self, name).

Return type:

Any

__dict__[source]
__eq__(other)[source]

Return self==value.

Return type:

bool

property __fields_set__: set[str][source]
classmethod __get_pydantic_core_schema__(source, handler, /)[source]

Hook into generating the model’s CoreSchema.

Parameters:
  • source (type[BaseModel]) – The class we are generating a schema for. This will generally be the same as the cls argument if this is a classmethod.

  • handler (GetCoreSchemaHandler) – A callable that calls into Pydantic’s internal CoreSchema generation logic.

Return type:

Union[InvalidSchema, AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]

Returns:

A pydantic-core CoreSchema.

classmethod __get_pydantic_json_schema__(core_schema, handler, /)[source]

Hook into generating the model’s JSON schema.

Parameters:
  • core_schema (Union[InvalidSchema, AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]) – A pydantic-core CoreSchema. You can ignore this argument and call the handler with a new CoreSchema, wrap this CoreSchema ({'type': 'nullable', 'schema': current_schema}), or just call the handler with the original schema.

  • handler (GetJsonSchemaHandler) – Call into Pydantic’s internal JSON schema generation. This will raise a pydantic.errors.PydanticInvalidForJsonSchema if JSON schema generation fails. Since this gets called by BaseModel.model_json_schema you can override the schema_generator argument to that function to change JSON schema generation globally for a type.

Return type:

Dict[str, Any]

Returns:

A JSON schema, as a Python object.

__getattr__(item)[source]
Return type:

Any

__getstate__()[source]

Helper for pickle.

Return type:

dict[Any, Any]

__hash__ = None[source]
__init__(**data)[source]

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__iter__()[source]

So dict(model) works.

Return type:

Generator[Tuple[str, Any], None, None]

__module__ = 'kittycad.models.web_socket_request'[source]
__pretty__(fmt, **kwargs)[source]

Used by devtools (https://python-devtools.helpmanual.io/) to pretty print objects.

Return type:

Generator[Any, None, None]

__private_attributes__: ClassVar[Dict[str, ModelPrivateAttr]] = {}[source]

Metadata about the private attributes of the model.

__pydantic_complete__: ClassVar[bool] = True[source]

Whether model building is completed, or if there are still undefined fields.

__pydantic_computed_fields__: ClassVar[Dict[str, ComputedFieldInfo]] = {}[source]

A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.

__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'kittycad.models.web_socket_request.OptionHeaders'>, 'config': {'title': 'OptionHeaders'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.web_socket_request.OptionHeaders'>>]}, 'ref': 'kittycad.models.web_socket_request.OptionHeaders:94613508404880', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'headers': {'metadata': {}, 'schema': {'keys_schema': {'type': 'str'}, 'type': 'dict', 'values_schema': {'type': 'str'}}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'headers', 'schema': {'expected': ['headers'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionHeaders', 'type': 'model-fields'}, 'type': 'model'}[source]

The core schema of the model.

__pydantic_custom_init__: ClassVar[bool] = False[source]

Whether the model has a custom __init__ method.

__pydantic_decorators__: ClassVar[_decorators.DecoratorInfos] = DecoratorInfos(validators={}, field_validators={}, root_validators={}, field_serializers={}, model_serializers={}, model_validators={}, computed_fields={})[source]

Metadata containing the decorators defined on the model. This replaces Model.__validators__ and Model.__root_validators__ from Pydantic V1.

__pydantic_extra__: dict[str, Any] | None[source]

A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to 'allow'.

__pydantic_fields__: ClassVar[Dict[str, FieldInfo]] = {'headers': FieldInfo(annotation=Dict[str, str], required=True), 'type': FieldInfo(annotation=Literal['headers'], required=False, default='headers')}[source]

A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects. This replaces Model.__fields__ from Pydantic V1.

__pydantic_fields_set__: set[str][source]

The names of fields explicitly set during instantiation.

__pydantic_generic_metadata__: ClassVar[_generics.PydanticGenericMetadata] = {'args': (), 'origin': None, 'parameters': ()}[source]

Metadata for generic models; contains data used for a similar purpose to __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.

classmethod __pydantic_init_subclass__(**kwargs)[source]

This is intended to behave just like __init_subclass__, but is called by ModelMetaclass only after the class is actually fully initialized. In particular, attributes like model_fields will be present when this is called.

This is necessary because __init_subclass__ will always be called by type.__new__, and it would require a prohibitively large refactor to the ModelMetaclass to ensure that type.__new__ was called in such a manner that the class would already be sufficiently initialized.

This will receive the same kwargs that would be passed to the standard __init_subclass__, namely, any kwargs passed to the class definition that aren’t used internally by pydantic.

Parameters:

**kwargs (Any) – Any keyword arguments passed to the class definition that aren’t used internally by pydantic.

Return type:

None

__pydantic_parent_namespace__: ClassVar[Dict[str, Any] | None] = None[source]

Parent namespace of the model, used for automatic rebuilding of models.

__pydantic_post_init__: ClassVar[None | Literal['model_post_init']] = None[source]

The name of the post-init method for the model, if defined.

__pydantic_private__: dict[str, Any] | None[source]

Values of private attributes set on the model instance.

__pydantic_root_model__: ClassVar[bool] = False[source]

Whether the model is a [RootModel][pydantic.root_model.RootModel].

__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x0000560cec8f3690,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "headers": SerField {                         key_py: Py(                             0x00007fb9bbe39060,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Dict(                                 DictSerializer {                                     key_serializer: Str(                                         StrSerializer,                                     ),                                     value_serializer: Str(                                         StrSerializer,                                     ),                                     filter: SchemaFilter {                                         include: None,                                         exclude: None,                                     },                                     name: "dict[str, str]",                                 },                             ),                         ),                         required: true,                     },                     "type": SerField {                         key_py: Py(                             0x00007fb9bbe3c5a0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007fb9bbe39060,                                         ),                                     ),                                     serializer: Literal(                                         LiteralSerializer {                                             expected_int: {},                                             expected_str: {                                                 "headers",                                             },                                             expected_py: None,                                             name: "literal['headers']",                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 2,             },         ),         has_extra: false,         root_model: false,         name: "OptionHeaders",     }, ), definitions=[])[source]

The pydantic-core SchemaSerializer used to dump instances of the model.

__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="OptionHeaders", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "headers",                         lookup_key: Simple {                             key: "headers",                             py_key: Py(                                 0x00007fb9b69fe580,                             ),                             path: LookupPath(                                 [                                     S(                                         "headers",                                         Py(                                             0x00007fb9b69fe5b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fb9bbe39060,                         ),                         validator: Dict(                             DictValidator {                                 strict: false,                                 key_validator: Str(                                     StrValidator {                                         strict: false,                                         coerce_numbers_to_str: false,                                     },                                 ),                                 value_validator: Str(                                     StrValidator {                                         strict: false,                                         coerce_numbers_to_str: false,                                     },                                 ),                                 min_length: None,                                 max_length: None,                                 name: "dict[str,str]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "type",                         lookup_key: Simple {                             key: "type",                             py_key: Py(                                 0x00007fb9b69fe5e0,                             ),                             path: LookupPath(                                 [                                     S(                                         "type",                                         Py(                                             0x00007fb9b69fe610,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fb9bbe3c5a0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007fb9bbe39060,                                     ),                                 ),                                 on_error: Raise,                                 validator: Literal(                                     LiteralValidator {                                         lookup: LiteralLookup {                                             expected_bool: None,                                             expected_int: None,                                             expected_str: Some(                                                 {                                                     "headers": 0,                                                 },                                             ),                                             expected_py_dict: None,                                             expected_py_values: None,                                             expected_py_primitives: Some(                                                 Py(                                                     0x00007fb9b6aaa700,                                                 ),                                             ),                                             values: [                                                 Py(                                                     0x00007fb9bbe39060,                                                 ),                                             ],                                         },                                         expected_repr: "'headers'",                                         name: "literal['headers']",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[literal['headers']]",                                 undefined: Py(                                     0x00007fb9b9d9a350,                                 ),                             },                         ),                         frozen: false,                     },                 ],                 model_name: "OptionHeaders",                 extra_behavior: Ignore,                 extras_validator: None,                 strict: false,                 from_attributes: false,                 loc_by_alias: true,             },         ),         class: Py(             0x0000560cec8f3690,         ),         generic_origin: None,         post_init: None,         frozen: false,         custom_init: false,         root_model: false,         undefined: Py(             0x00007fb9b9d9a350,         ),         name: "OptionHeaders",     }, ), definitions=[], cache_strings=True)[source]

The pydantic-core SchemaValidator used to validate instances of the model.

__replace__(**changes)[source]

Creates a new instance of the model, replacing fields with values from changes. Relevant for v3.13+.

Return type:

Self

__repr__()[source]

Return repr(self).

Return type:

str

__repr_args__()[source]
Return type:

Iterable[tuple[str | None, Any]]

__repr_name__()[source]

Name of the instance’s class, used in __repr__.

Return type:

str

__repr_recursion__(object)[source]

Returns the string representation of a recursive object.

Return type:

str

__repr_str__(join_str)[source]
Return type:

str

__rich_repr__()[source]

Used by Rich (https://rich.readthedocs.io/en/stable/pretty.html) to pretty print objects.

Return type:

Iterable[Any | tuple[Any] | tuple[str, Any] | tuple[str, Any, Any]]

__setattr__(name, value)[source]

Implement setattr(self, name, value).

Return type:

None

__setstate__(state)[source]
Return type:

None

__signature__: ClassVar[Signature] = <Signature (*, headers: Dict[str, str], type: Literal['headers'] = 'headers') -> None>[source]

The synthesized __init__ [Signature][inspect.Signature] of the model.

__slots__ = ('__dict__', '__pydantic_fields_set__', '__pydantic_extra__', '__pydantic_private__')[source]
__str__()[source]

Return str(self).

Return type:

str

_abc_impl = <_abc._abc_data object>[source]
_calculate_keys(*args, **kwargs)[source]
Return type:

Any

_check_frozen(name, value)[source]
Return type:

None

_copy_and_set_values(*args, **kwargs)[source]
Return type:

Any

classmethod _get_value(*args, **kwargs)[source]
Return type:

Any

_iter(*args, **kwargs)[source]
Return type:

Any

classmethod construct(_fields_set=None, **values)[source]
Return type:

Self

copy(*, include=None, exclude=None, update=None, deep=False)[source]

Returns a copy of the model.

!!! warning “Deprecated”

This method is now deprecated; use model_copy instead.

If you need include or exclude, use:

`python {test="skip" lint="skip"} data = self.model_dump(include=include, exclude=exclude, round_trip=True) data = {**data, **(update or {})} copied = self.model_validate(data) `

Parameters:
  • include – Optional set or mapping specifying which fields to include in the copied model.

  • exclude – Optional set or mapping specifying which fields to exclude in the copied model.

  • update – Optional dictionary of field-value pairs to override field values in the copied model.

  • deep – If True, the values of fields that are Pydantic models will be deep-copied.

Returns:

A copy of the model with included, excluded and updated fields as specified.

dict(*, include=None, exclude=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False)[source]
Return type:

Dict[str, Any]

classmethod from_orm(obj)[source]
Return type:

Self

headers: Dict[str, str][source]
json(*, include=None, exclude=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False, encoder=PydanticUndefined, models_as_dict=PydanticUndefined, **dumps_kwargs)[source]
Return type:

str

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]
model_config: ClassVar[ConfigDict] = {'protected_namespaces': ()}[source]

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

classmethod model_construct(_fields_set=None, **values)[source]

Creates a new instance of the Model class with validated data.

Creates a new model setting __dict__ and __pydantic_fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed.

!!! note

model_construct() generally respects the model_config.extra setting on the provided model. That is, if model_config.extra == 'allow', then all extra passed values are added to the model instance’s __dict__ and __pydantic_extra__ fields. If model_config.extra == 'ignore' (the default), then all extra passed values are ignored. Because no validation is performed with a call to model_construct(), having model_config.extra == 'forbid' does not result in an error if extra values are passed, but they will be ignored.

Parameters:
  • _fields_set (set[str] | None) – A set of field names that were originally explicitly set during instantiation. If provided, this is directly used for the [model_fields_set][pydantic.BaseModel.model_fields_set] attribute. Otherwise, the field names from the values argument will be used.

  • values (Any) – Trusted or pre-validated data dictionary.

Return type:

Self

Returns:

A new instance of the Model class with validated data.

model_copy(*, update=None, deep=False)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#model_copy

Returns a copy of the model.

Parameters:
  • update (Optional[Mapping[str, Any]]) – Values to change/add in the new model. Note: the data is not validated before creating the new model. You should trust this data.

  • deep (bool) – Set to True to make a deep copy of the model.

Return type:

Self

Returns:

New model instance.

model_dump(*, mode='python', include=None, exclude=None, context=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False, round_trip=False, warnings=True, serialize_as_any=False)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump

Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Parameters:
Return type:

dict[str, Any]

Returns:

A dictionary representation of the model.

model_dump_json(*, indent=None, include=None, exclude=None, context=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False, round_trip=False, warnings=True, serialize_as_any=False)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump_json

Generates a JSON representation of the model using Pydantic’s to_json method.

Parameters:
Return type:

str

Returns:

A JSON string representation of the model.

property model_extra: dict[str, Any] | None[source]

Get extra fields set during validation.

Returns:

A dictionary of extra fields, or None if config.extra is not set to "allow".

model_fields: ClassVar[dict[str, FieldInfo]] = {'headers': FieldInfo(annotation=Dict[str, str], required=True), 'type': FieldInfo(annotation=Literal['headers'], required=False, default='headers')}[source]
property model_fields_set: set[str][source]

Returns the set of fields that have been explicitly set on this model instance.

Returns:

A set of strings representing the fields that have been set,

i.e. that were not filled from defaults.

classmethod model_json_schema(by_alias=True, ref_template='#/$defs/{model}', schema_generator=<class 'pydantic.json_schema.GenerateJsonSchema'>, mode='validation')[source]

Generates a JSON schema for a model class.

Parameters:
  • by_alias (bool) – Whether to use attribute aliases or not.

  • ref_template (str) – The reference template.

  • schema_generator (type[GenerateJsonSchema]) – To override the logic used to generate the JSON schema, as a subclass of GenerateJsonSchema with your desired modifications

  • mode (Literal['validation', 'serialization']) – The mode in which to generate the schema.

Return type:

dict[str, Any]

Returns:

The JSON schema for the given model class.

classmethod model_parametrized_name(params)[source]

Compute the class name for parametrizations of generic classes.

This method can be overridden to achieve a custom naming scheme for generic BaseModels.

Parameters:

params (tuple[type[Any], ...]) – Tuple of types of the class. Given a generic class Model with 2 type variables and a concrete model Model[str, int], the value (str, int) would be passed to params.

Return type:

str

Returns:

String representing the new class where params are passed to cls as type variables.

Raises:

TypeError – Raised when trying to generate concrete names for non-generic models.

model_post_init(_BaseModel__context)[source]

Override this method to perform additional initialization after __init__ and model_construct. This is useful if you want to do some validation that requires the entire model to be initialized.

Return type:

None

classmethod model_rebuild(*, force=False, raise_errors=True, _parent_namespace_depth=2, _types_namespace=None)[source]

Try to rebuild the pydantic-core schema for the model.

This may be necessary when one of the annotations is a ForwardRef which could not be resolved during the initial attempt to build the schema, and automatic rebuilding fails.

Parameters:
  • force (bool) – Whether to force the rebuilding of the model schema, defaults to False.

  • raise_errors (bool) – Whether to raise errors, defaults to True.

  • _parent_namespace_depth (int) – The depth level of the parent namespace, defaults to 2.

  • _types_namespace (Optional[Mapping[str, Any]]) – The types namespace, defaults to None.

Return type:

bool | None

Returns:

Returns None if the schema is already “complete” and rebuilding was not required. If rebuilding _was_ required, returns True if rebuilding was successful, otherwise False.

classmethod model_validate(obj, *, strict=None, from_attributes=None, context=None)[source]

Validate a pydantic model instance.

Parameters:
  • obj (Any) – The object to validate.

  • strict (bool | None) – Whether to enforce types strictly.

  • from_attributes (bool | None) – Whether to extract data from object attributes.

  • context (Any | None) – Additional context to pass to the validator.

Raises:

ValidationError – If the object could not be validated.

Return type:

Self

Returns:

The validated model instance.

classmethod model_validate_json(json_data, *, strict=None, context=None)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/json/#json-parsing

Validate the given JSON data against the Pydantic model.

Parameters:
  • json_data (str | bytes | bytearray) – The JSON data to validate.

  • strict (bool | None) – Whether to enforce types strictly.

  • context (Any | None) – Extra variables to pass to the validator.

Return type:

Self

Returns:

The validated Pydantic model.

Raises:

ValidationError – If json_data is not a JSON string or the object could not be validated.

classmethod model_validate_strings(obj, *, strict=None, context=None)[source]

Validate the given object with string data against the Pydantic model.

Parameters:
  • obj (Any) – The object containing string data to validate.

  • strict (bool | None) – Whether to enforce types strictly.

  • context (Any | None) – Extra variables to pass to the validator.

Return type:

Self

Returns:

The validated Pydantic model.

classmethod parse_file(path, *, content_type=None, encoding='utf8', proto=None, allow_pickle=False)[source]
Return type:

Self

classmethod parse_obj(obj)[source]
Return type:

Self

classmethod parse_raw(b, *, content_type=None, encoding='utf8', proto=None, allow_pickle=False)[source]
Return type:

Self

classmethod schema(by_alias=True, ref_template='#/$defs/{model}')[source]
Return type:

Dict[str, Any]

classmethod schema_json(*, by_alias=True, ref_template='#/$defs/{model}', **dumps_kwargs)[source]
Return type:

str

type: Literal['headers'][source]
classmethod update_forward_refs(**localns)[source]
Return type:

None

classmethod validate(value)[source]
Return type:

Self

class kittycad.models.web_socket_request.OptionMetricsResponse(**data)[source][source]

The response to a metrics collection request from the server.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__abstractmethods__ = frozenset({})[source]
__annotations__ = {'__class_vars__': 'ClassVar[set[str]]', '__private_attributes__': 'ClassVar[Dict[str, ModelPrivateAttr]]', '__pydantic_complete__': 'ClassVar[bool]', '__pydantic_computed_fields__': 'ClassVar[Dict[str, ComputedFieldInfo]]', '__pydantic_core_schema__': 'ClassVar[CoreSchema]', '__pydantic_custom_init__': 'ClassVar[bool]', '__pydantic_decorators__': 'ClassVar[_decorators.DecoratorInfos]', '__pydantic_extra__': 'dict[str, Any] | None', '__pydantic_fields__': 'ClassVar[Dict[str, FieldInfo]]', '__pydantic_fields_set__': 'set[str]', '__pydantic_generic_metadata__': 'ClassVar[_generics.PydanticGenericMetadata]', '__pydantic_parent_namespace__': 'ClassVar[Dict[str, Any] | None]', '__pydantic_post_init__': "ClassVar[None | Literal['model_post_init']]", '__pydantic_private__': 'dict[str, Any] | None', '__pydantic_root_model__': 'ClassVar[bool]', '__pydantic_serializer__': 'ClassVar[SchemaSerializer]', '__pydantic_validator__': 'ClassVar[SchemaValidator | PluggableSchemaValidator]', '__signature__': 'ClassVar[Signature]', 'metrics': <class 'kittycad.models.client_metrics.ClientMetrics'>, 'model_computed_fields': 'ClassVar[dict[str, ComputedFieldInfo]]', 'model_config': 'ClassVar[ConfigDict]', 'model_fields': 'ClassVar[dict[str, FieldInfo]]', 'type': typing.Literal['metrics_response']}[source]
classmethod __class_getitem__(typevar_values)[source]
Return type:

type[BaseModel] | PydanticRecursiveRef

__class_vars__: ClassVar[set[str]] = {}[source]

The names of the class variables defined on the model.

__copy__()[source]

Returns a shallow copy of the model.

Return type:

Self

__deepcopy__(memo=None)[source]

Returns a deep copy of the model.

Return type:

Self

__delattr__(item)[source]

Implement delattr(self, name).

Return type:

Any

__dict__[source]
__eq__(other)[source]

Return self==value.

Return type:

bool

property __fields_set__: set[str][source]
classmethod __get_pydantic_core_schema__(source, handler, /)[source]

Hook into generating the model’s CoreSchema.

Parameters:
  • source (type[BaseModel]) – The class we are generating a schema for. This will generally be the same as the cls argument if this is a classmethod.

  • handler (GetCoreSchemaHandler) – A callable that calls into Pydantic’s internal CoreSchema generation logic.

Return type:

Union[InvalidSchema, AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]

Returns:

A pydantic-core CoreSchema.

classmethod __get_pydantic_json_schema__(core_schema, handler, /)[source]

Hook into generating the model’s JSON schema.

Parameters:
  • core_schema (Union[InvalidSchema, AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]) – A pydantic-core CoreSchema. You can ignore this argument and call the handler with a new CoreSchema, wrap this CoreSchema ({'type': 'nullable', 'schema': current_schema}), or just call the handler with the original schema.

  • handler (GetJsonSchemaHandler) – Call into Pydantic’s internal JSON schema generation. This will raise a pydantic.errors.PydanticInvalidForJsonSchema if JSON schema generation fails. Since this gets called by BaseModel.model_json_schema you can override the schema_generator argument to that function to change JSON schema generation globally for a type.

Return type:

Dict[str, Any]

Returns:

A JSON schema, as a Python object.

__getattr__(item)[source]
Return type:

Any

__getstate__()[source]

Helper for pickle.

Return type:

dict[Any, Any]

__hash__ = None[source]
__init__(**data)[source]

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__iter__()[source]

So dict(model) works.

Return type:

Generator[Tuple[str, Any], None, None]

__module__ = 'kittycad.models.web_socket_request'[source]
__pretty__(fmt, **kwargs)[source]

Used by devtools (https://python-devtools.helpmanual.io/) to pretty print objects.

Return type:

Generator[Any, None, None]

__private_attributes__: ClassVar[Dict[str, ModelPrivateAttr]] = {}[source]

Metadata about the private attributes of the model.

__pydantic_complete__: ClassVar[bool] = True[source]

Whether model building is completed, or if there are still undefined fields.

__pydantic_computed_fields__: ClassVar[Dict[str, ComputedFieldInfo]] = {}[source]

A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.

__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'kittycad.models.web_socket_request.OptionMetricsResponse'>, 'config': {'title': 'OptionMetricsResponse'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.web_socket_request.OptionMetricsResponse'>>]}, 'ref': 'kittycad.models.web_socket_request.OptionMetricsResponse:94613508385392', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'metrics': {'metadata': {}, 'schema': {'cls': <class 'kittycad.models.client_metrics.ClientMetrics'>, 'config': {'title': 'ClientMetrics'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.client_metrics.ClientMetrics'>>]}, 'ref': 'kittycad.models.client_metrics.ClientMetrics:94613474827072', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'rtc_frames_decoded': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'rtc_frames_dropped': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'rtc_frames_per_second': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'rtc_frames_received': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'rtc_freeze_count': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'rtc_jitter_sec': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'rtc_keyframes_decoded': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'rtc_total_freezes_duration_sec': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}}, 'model_name': 'ClientMetrics', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'metrics_response', 'schema': {'expected': ['metrics_response'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionMetricsResponse', 'type': 'model-fields'}, 'type': 'model'}[source]

The core schema of the model.

__pydantic_custom_init__: ClassVar[bool] = False[source]

Whether the model has a custom __init__ method.

__pydantic_decorators__: ClassVar[_decorators.DecoratorInfos] = DecoratorInfos(validators={}, field_validators={}, root_validators={}, field_serializers={}, model_serializers={}, model_validators={}, computed_fields={})[source]

Metadata containing the decorators defined on the model. This replaces Model.__validators__ and Model.__root_validators__ from Pydantic V1.

__pydantic_extra__: dict[str, Any] | None[source]

A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to 'allow'.

__pydantic_fields__: ClassVar[Dict[str, FieldInfo]] = {'metrics': FieldInfo(annotation=ClientMetrics, required=True), 'type': FieldInfo(annotation=Literal['metrics_response'], required=False, default='metrics_response')}[source]

A dictionary of field names and their corresponding [FieldInfo][pydantic.fields.FieldInfo] objects. This replaces Model.__fields__ from Pydantic V1.

__pydantic_fields_set__: set[str][source]

The names of fields explicitly set during instantiation.

__pydantic_generic_metadata__: ClassVar[_generics.PydanticGenericMetadata] = {'args': (), 'origin': None, 'parameters': ()}[source]

Metadata for generic models; contains data used for a similar purpose to __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.

classmethod __pydantic_init_subclass__(**kwargs)[source]

This is intended to behave just like __init_subclass__, but is called by ModelMetaclass only after the class is actually fully initialized. In particular, attributes like model_fields will be present when this is called.

This is necessary because __init_subclass__ will always be called by type.__new__, and it would require a prohibitively large refactor to the ModelMetaclass to ensure that type.__new__ was called in such a manner that the class would already be sufficiently initialized.

This will receive the same kwargs that would be passed to the standard __init_subclass__, namely, any kwargs passed to the class definition that aren’t used internally by pydantic.

Parameters:

**kwargs (Any) – Any keyword arguments passed to the class definition that aren’t used internally by pydantic.

Return type:

None

__pydantic_parent_namespace__: ClassVar[Dict[str, Any] | None] = None[source]

Parent namespace of the model, used for automatic rebuilding of models.

__pydantic_post_init__: ClassVar[None | Literal['model_post_init']] = None[source]

The name of the post-init method for the model, if defined.

__pydantic_private__: dict[str, Any] | None[source]

Values of private attributes set on the model instance.

__pydantic_root_model__: ClassVar[bool] = False[source]

Whether the model is a [RootModel][pydantic.root_model.RootModel].

__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x0000560cec8eea70,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "metrics": SerField {                         key_py: Py(                             0x00007fb9b6ab46c0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Model(                                 ModelSerializer {                                     class: Py(                                         0x0000560cea8edb40,                                     ),                                     serializer: Fields(                                         GeneralFieldsSerializer {                                             fields: {                                                 "rtc_keyframes_decoded": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bf1b0,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Int(                                                             IntSerializer,                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_jitter_sec": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bf230,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Float(                                                             FloatSerializer {                                                                 inf_nan_mode: Null,                                                             },                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_frames_received": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bfb30,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Int(                                                             IntSerializer,                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_total_freezes_duration_sec": SerField {                                                     key_py: Py(                                                         0x00007fb9b76c8d00,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Float(                                                             FloatSerializer {                                                                 inf_nan_mode: Null,                                                             },                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_frames_decoded": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bfcb0,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Int(                                                             IntSerializer,                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_frames_per_second": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bfbb0,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Int(                                                             IntSerializer,                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_freeze_count": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bf270,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Int(                                                             IntSerializer,                                                         ),                                                     ),                                                     required: true,                                                 },                                                 "rtc_frames_dropped": SerField {                                                     key_py: Py(                                                         0x00007fb9b76bfc30,                                                     ),                                                     alias: None,                                                     alias_py: None,                                                     serializer: Some(                                                         Int(                                                             IntSerializer,                                                         ),                                                     ),                                                     required: true,                                                 },                                             },                                             computed_fields: Some(                                                 ComputedFields(                                                     [],                                                 ),                                             ),                                             mode: SimpleDict,                                             extra_serializer: None,                                             filter: SchemaFilter {                                                 include: None,                                                 exclude: None,                                             },                                             required_fields: 8,                                         },                                     ),                                     has_extra: false,                                     root_model: false,                                     name: "ClientMetrics",                                 },                             ),                         ),                         required: true,                     },                     "type": SerField {                         key_py: Py(                             0x00007fb9bbe3c5a0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007fb9b6ab9ff0,                                         ),                                     ),                                     serializer: Literal(                                         LiteralSerializer {                                             expected_int: {},                                             expected_str: {                                                 "metrics_response",                                             },                                             expected_py: None,                                             name: "literal['metrics_response']",                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 2,             },         ),         has_extra: false,         root_model: false,         name: "OptionMetricsResponse",     }, ), definitions=[])[source]

The pydantic-core SchemaSerializer used to dump instances of the model.

__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="OptionMetricsResponse", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "metrics",                         lookup_key: Simple {                             key: "metrics",                             py_key: Py(                                 0x00007fb9b69fe130,                             ),                             path: LookupPath(                                 [                                     S(                                         "metrics",                                         Py(                                             0x00007fb9b69fe160,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fb9b6ab46c0,                         ),                         validator: Model(                             ModelValidator {                                 revalidate: Never,                                 validator: ModelFields(                                     ModelFieldsValidator {                                         fields: [                                             Field {                                                 name: "rtc_frames_decoded",                                                 lookup_key: Simple {                                                     key: "rtc_frames_decoded",                                                     py_key: Py(                                                         0x00007fb9b6aa9af0,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_frames_decoded",                                                                 Py(                                                                     0x00007fb9b6aa9b70,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bfcb0,                                                 ),                                                 validator: Int(                                                     IntValidator {                                                         strict: false,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_frames_dropped",                                                 lookup_key: Simple {                                                     key: "rtc_frames_dropped",                                                     py_key: Py(                                                         0x00007fb9b6aa9ab0,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_frames_dropped",                                                                 Py(                                                                     0x00007fb9b6aaa5f0,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bfc30,                                                 ),                                                 validator: Int(                                                     IntValidator {                                                         strict: false,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_frames_per_second",                                                 lookup_key: Simple {                                                     key: "rtc_frames_per_second",                                                     py_key: Py(                                                         0x00007fb9b6aabf70,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_frames_per_second",                                                                 Py(                                                                     0x00007fb9b6aab6b0,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bfbb0,                                                 ),                                                 validator: Int(                                                     IntValidator {                                                         strict: false,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_frames_received",                                                 lookup_key: Simple {                                                     key: "rtc_frames_received",                                                     py_key: Py(                                                         0x00007fb9b6aa99b0,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_frames_received",                                                                 Py(                                                                     0x00007fb9b6aab930,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bfb30,                                                 ),                                                 validator: Int(                                                     IntValidator {                                                         strict: false,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_freeze_count",                                                 lookup_key: Simple {                                                     key: "rtc_freeze_count",                                                     py_key: Py(                                                         0x00007fb9b6aab6f0,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_freeze_count",                                                                 Py(                                                                     0x00007fb9b6aab370,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bf270,                                                 ),                                                 validator: Int(                                                     IntValidator {                                                         strict: false,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_jitter_sec",                                                 lookup_key: Simple {                                                     key: "rtc_jitter_sec",                                                     py_key: Py(                                                         0x00007fb9b6aabbb0,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_jitter_sec",                                                                 Py(                                                                     0x00007fb9b6aabdb0,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bf230,                                                 ),                                                 validator: Float(                                                     FloatValidator {                                                         strict: false,                                                         allow_inf_nan: true,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_keyframes_decoded",                                                 lookup_key: Simple {                                                     key: "rtc_keyframes_decoded",                                                     py_key: Py(                                                         0x00007fb9b6aabe70,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_keyframes_decoded",                                                                 Py(                                                                     0x00007fb9b6aabfb0,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76bf1b0,                                                 ),                                                 validator: Int(                                                     IntValidator {                                                         strict: false,                                                     },                                                 ),                                                 frozen: false,                                             },                                             Field {                                                 name: "rtc_total_freezes_duration_sec",                                                 lookup_key: Simple {                                                     key: "rtc_total_freezes_duration_sec",                                                     py_key: Py(                                                         0x00007fb9b6abca30,                                                     ),                                                     path: LookupPath(                                                         [                                                             S(                                                                 "rtc_total_freezes_duration_sec",                                                                 Py(                                                                     0x00007fb9b6abcad0,                                                                 ),                                                             ),                                                         ],                                                     ),                                                 },                                                 name_py: Py(                                                     0x00007fb9b76c8d00,                                                 ),                                                 validator: Float(                                                     FloatValidator {                                                         strict: false,                                                         allow_inf_nan: true,                                                     },                                                 ),                                                 frozen: false,                                             },                                         ],                                         model_name: "ClientMetrics",                                         extra_behavior: Ignore,                                         extras_validator: None,                                         strict: false,                                         from_attributes: false,                                         loc_by_alias: true,                                     },                                 ),                                 class: Py(                                     0x0000560cea8edb40,                                 ),                                 generic_origin: None,                                 post_init: None,                                 frozen: false,                                 custom_init: false,                                 root_model: false,                                 undefined: Py(                                     0x00007fb9b9d9a350,                                 ),                                 name: "ClientMetrics",                             },                         ),                         frozen: false,                     },                     Field {                         name: "type",                         lookup_key: Simple {                             key: "type",                             py_key: Py(                                 0x00007fb9b69fe190,                             ),                             path: LookupPath(                                 [                                     S(                                         "type",                                         Py(                                             0x00007fb9b69fe1c0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fb9bbe3c5a0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007fb9b6ab9ff0,                                     ),                                 ),                                 on_error: Raise,                                 validator: Literal(                                     LiteralValidator {                                         lookup: LiteralLookup {                                             expected_bool: None,                                             expected_int: None,                                             expected_str: Some(                                                 {                                                     "metrics_response": 0,                                                 },                                             ),                                             expected_py_dict: None,                                             expected_py_values: None,                                             expected_py_primitives: Some(                                                 Py(                                                     0x00007fb9b6aab8c0,                                                 ),                                             ),                                             values: [                                                 Py(                                                     0x00007fb9b6ab9ff0,                                                 ),                                             ],                                         },                                         expected_repr: "'metrics_response'",                                         name: "literal['metrics_response']",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[literal['metrics_response']]",                                 undefined: Py(                                     0x00007fb9b9d9a350,                                 ),                             },                         ),                         frozen: false,                     },                 ],                 model_name: "OptionMetricsResponse",                 extra_behavior: Ignore,                 extras_validator: None,                 strict: false,                 from_attributes: false,                 loc_by_alias: true,             },         ),         class: Py(             0x0000560cec8eea70,         ),         generic_origin: None,         post_init: None,         frozen: false,         custom_init: false,         root_model: false,         undefined: Py(             0x00007fb9b9d9a350,         ),         name: "OptionMetricsResponse",     }, ), definitions=[], cache_strings=True)[source]

The pydantic-core SchemaValidator used to validate instances of the model.

__replace__(**changes)[source]

Creates a new instance of the model, replacing fields with values from changes. Relevant for v3.13+.

Return type:

Self

__repr__()[source]

Return repr(self).

Return type:

str

__repr_args__()[source]
Return type:

Iterable[tuple[str | None, Any]]

__repr_name__()[source]

Name of the instance’s class, used in __repr__.

Return type:

str

__repr_recursion__(object)[source]

Returns the string representation of a recursive object.

Return type:

str

__repr_str__(join_str)[source]
Return type:

str

__rich_repr__()[source]

Used by Rich (https://rich.readthedocs.io/en/stable/pretty.html) to pretty print objects.

Return type:

Iterable[Any | tuple[Any] | tuple[str, Any] | tuple[str, Any, Any]]

__setattr__(name, value)[source]

Implement setattr(self, name, value).

Return type:

None

__setstate__(state)[source]
Return type:

None

__signature__: ClassVar[Signature] = <Signature (*, metrics: kittycad.models.client_metrics.ClientMetrics, type: Literal['metrics_response'] = 'metrics_response') -> None>[source]

The synthesized __init__ [Signature][inspect.Signature] of the model.

__slots__ = ('__dict__', '__pydantic_fields_set__', '__pydantic_extra__', '__pydantic_private__')[source]
__str__()[source]

Return str(self).

Return type:

str

_abc_impl = <_abc._abc_data object>[source]
_calculate_keys(*args, **kwargs)[source]
Return type:

Any

_check_frozen(name, value)[source]
Return type:

None

_copy_and_set_values(*args, **kwargs)[source]
Return type:

Any

classmethod _get_value(*args, **kwargs)[source]
Return type:

Any

_iter(*args, **kwargs)[source]
Return type:

Any

classmethod construct(_fields_set=None, **values)[source]
Return type:

Self

copy(*, include=None, exclude=None, update=None, deep=False)[source]

Returns a copy of the model.

!!! warning “Deprecated”

This method is now deprecated; use model_copy instead.

If you need include or exclude, use:

`python {test="skip" lint="skip"} data = self.model_dump(include=include, exclude=exclude, round_trip=True) data = {**data, **(update or {})} copied = self.model_validate(data) `

Parameters:
  • include – Optional set or mapping specifying which fields to include in the copied model.

  • exclude – Optional set or mapping specifying which fields to exclude in the copied model.

  • update – Optional dictionary of field-value pairs to override field values in the copied model.

  • deep – If True, the values of fields that are Pydantic models will be deep-copied.

Returns:

A copy of the model with included, excluded and updated fields as specified.

dict(*, include=None, exclude=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False)[source]
Return type:

Dict[str, Any]

classmethod from_orm(obj)[source]
Return type:

Self

json(*, include=None, exclude=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False, encoder=PydanticUndefined, models_as_dict=PydanticUndefined, **dumps_kwargs)[source]
Return type:

str

metrics: ClientMetrics[source]
model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]
model_config: ClassVar[ConfigDict] = {'protected_namespaces': ()}[source]

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

classmethod model_construct(_fields_set=None, **values)[source]

Creates a new instance of the Model class with validated data.

Creates a new model setting __dict__ and __pydantic_fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed.

!!! note

model_construct() generally respects the model_config.extra setting on the provided model. That is, if model_config.extra == 'allow', then all extra passed values are added to the model instance’s __dict__ and __pydantic_extra__ fields. If model_config.extra == 'ignore' (the default), then all extra passed values are ignored. Because no validation is performed with a call to model_construct(), having model_config.extra == 'forbid' does not result in an error if extra values are passed, but they will be ignored.

Parameters:
  • _fields_set (set[str] | None) – A set of field names that were originally explicitly set during instantiation. If provided, this is directly used for the [model_fields_set][pydantic.BaseModel.model_fields_set] attribute. Otherwise, the field names from the values argument will be used.

  • values (Any) – Trusted or pre-validated data dictionary.

Return type:

Self

Returns:

A new instance of the Model class with validated data.

model_copy(*, update=None, deep=False)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#model_copy

Returns a copy of the model.

Parameters:
  • update (Optional[Mapping[str, Any]]) – Values to change/add in the new model. Note: the data is not validated before creating the new model. You should trust this data.

  • deep (bool) – Set to True to make a deep copy of the model.

Return type:

Self

Returns:

New model instance.

model_dump(*, mode='python', include=None, exclude=None, context=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False, round_trip=False, warnings=True, serialize_as_any=False)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump

Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

Parameters:
Return type:

dict[str, Any]

Returns:

A dictionary representation of the model.

model_dump_json(*, indent=None, include=None, exclude=None, context=None, by_alias=False, exclude_unset=False, exclude_defaults=False, exclude_none=False, round_trip=False, warnings=True, serialize_as_any=False)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump_json

Generates a JSON representation of the model using Pydantic’s to_json method.

Parameters:
Return type:

str

Returns:

A JSON string representation of the model.

property model_extra: dict[str, Any] | None[source]

Get extra fields set during validation.

Returns:

A dictionary of extra fields, or None if config.extra is not set to "allow".

model_fields: ClassVar[dict[str, FieldInfo]] = {'metrics': FieldInfo(annotation=ClientMetrics, required=True), 'type': FieldInfo(annotation=Literal['metrics_response'], required=False, default='metrics_response')}[source]
property model_fields_set: set[str][source]

Returns the set of fields that have been explicitly set on this model instance.

Returns:

A set of strings representing the fields that have been set,

i.e. that were not filled from defaults.

classmethod model_json_schema(by_alias=True, ref_template='#/$defs/{model}', schema_generator=<class 'pydantic.json_schema.GenerateJsonSchema'>, mode='validation')[source]

Generates a JSON schema for a model class.

Parameters:
  • by_alias (bool) – Whether to use attribute aliases or not.

  • ref_template (str) – The reference template.

  • schema_generator (type[GenerateJsonSchema]) – To override the logic used to generate the JSON schema, as a subclass of GenerateJsonSchema with your desired modifications

  • mode (Literal['validation', 'serialization']) – The mode in which to generate the schema.

Return type:

dict[str, Any]

Returns:

The JSON schema for the given model class.

classmethod model_parametrized_name(params)[source]

Compute the class name for parametrizations of generic classes.

This method can be overridden to achieve a custom naming scheme for generic BaseModels.

Parameters:

params (tuple[type[Any], ...]) – Tuple of types of the class. Given a generic class Model with 2 type variables and a concrete model Model[str, int], the value (str, int) would be passed to params.

Return type:

str

Returns:

String representing the new class where params are passed to cls as type variables.

Raises:

TypeError – Raised when trying to generate concrete names for non-generic models.

model_post_init(_BaseModel__context)[source]

Override this method to perform additional initialization after __init__ and model_construct. This is useful if you want to do some validation that requires the entire model to be initialized.

Return type:

None

classmethod model_rebuild(*, force=False, raise_errors=True, _parent_namespace_depth=2, _types_namespace=None)[source]

Try to rebuild the pydantic-core schema for the model.

This may be necessary when one of the annotations is a ForwardRef which could not be resolved during the initial attempt to build the schema, and automatic rebuilding fails.

Parameters:
  • force (bool) – Whether to force the rebuilding of the model schema, defaults to False.

  • raise_errors (bool) – Whether to raise errors, defaults to True.

  • _parent_namespace_depth (int) – The depth level of the parent namespace, defaults to 2.

  • _types_namespace (Optional[Mapping[str, Any]]) – The types namespace, defaults to None.

Return type:

bool | None

Returns:

Returns None if the schema is already “complete” and rebuilding was not required. If rebuilding _was_ required, returns True if rebuilding was successful, otherwise False.

classmethod model_validate(obj, *, strict=None, from_attributes=None, context=None)[source]

Validate a pydantic model instance.

Parameters:
  • obj (Any) – The object to validate.

  • strict (bool | None) – Whether to enforce types strictly.

  • from_attributes (bool | None) – Whether to extract data from object attributes.

  • context (Any | None) – Additional context to pass to the validator.

Raises:

ValidationError – If the object could not be validated.

Return type:

Self

Returns:

The validated model instance.

classmethod model_validate_json(json_data, *, strict=None, context=None)[source]

Usage docs: https://docs.pydantic.dev/2.10/concepts/json/#json-parsing

Validate the given JSON data against the Pydantic model.

Parameters:
  • json_data (str | bytes | bytearray) – The JSON data to validate.

  • strict (bool | None) – Whether to enforce types strictly.

  • context (Any | None) – Extra variables to pass to the validator.

Return type:

Self

Returns:

The validated Pydantic model.

Raises:

ValidationError – If json_data is not a JSON string or the object could not be validated.

classmethod model_validate_strings(obj, *, strict=None, context=None)[source]

Validate the given object with string data against the Pydantic model.

Parameters:
  • obj (Any) – The object containing string data to validate.

  • strict (bool | None) – Whether to enforce types strictly.

  • context (Any | None) – Extra variables to pass to the validator.

Return type:

Self

Returns:

The validated Pydantic model.

classmethod parse_file(path, *, content_type=None, encoding='utf8', proto=None, allow_pickle=False)[source]
Return type:

Self

classmethod parse_obj(obj)[source]
Return type:

Self

classmethod parse_raw(b, *, content_type=None, encoding='utf8', proto=None, allow_pickle=False)[source]
Return type:

Self

classmethod schema(by_alias=True, ref_template='#/$defs/{model}')[source]
Return type:

Dict[str, Any]

classmethod schema_json(*, by_alias=True, ref_template='#/$defs/{model}', **dumps_kwargs)[source]
Return type:

str

type: Literal['metrics_response'][source]
classmethod update_forward_refs(**localns)[source]
Return type:

None

classmethod validate(value)[source]
Return type:

Self

class kittycad.models.web_socket_request.OptionModelingCmdBatchReq(**data)[source][source]

A sequence of modeling requests. If any request fails, following requests will not be tried.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__abstractmethods__ = frozenset({})[source]
__annotations__ = {'__class_vars__': 'ClassVar[set[str]]', '__private_attributes__': 'ClassVar[Dict[str, ModelPrivateAttr]]', '__pydantic_complete__': 'ClassVar[bool]', '__pydantic_computed_fields__': 'ClassVar[Dict[str, ComputedFieldInfo]]', '__pydantic_core_schema__': 'ClassVar[CoreSchema]', '__pydantic_custom_init__': 'ClassVar[bool]', '__pydantic_decorators__': 'ClassVar[_decorators.DecoratorInfos]', '__pydantic_extra__': 'dict[str, Any] | None', '__pydantic_fields__': 'ClassVar[Dict[str, FieldInfo]]', '__pydantic_fields_set__': 'set[str]', '__pydantic_generic_metadata__': 'ClassVar[_generics.PydanticGenericMetadata]', '__pydantic_parent_namespace__': 'ClassVar[Dict[str, Any] | None]', '__pydantic_post_init__': "ClassVar[None | Literal['model_post_init']]", '__pydantic_private__': 'dict[str, Any] | None', '__pydantic_root_model__': 'ClassVar[bool]', '__pydantic_serializer__': 'ClassVar[SchemaSerializer]', '__pydantic_validator__': 'ClassVar[SchemaValidator | PluggableSchemaValidator]', '__signature__': 'ClassVar[Signature]', 'batch_id': <class 'kittycad.models.modeling_cmd_id.ModelingCmdId'>, 'model_computed_fields': 'ClassVar[dict[str, ComputedFieldInfo]]', 'model_config': 'ClassVar[ConfigDict]', 'model_fields': 'ClassVar[dict[str, FieldInfo]]', 'requests': typing.List[kittycad.models.modeling_cmd_req.ModelingCmdReq], 'responses': <class 'bool'>, 'type': typing.Literal['modeling_cmd_batch_req']}[source]
classmethod __class_getitem__(typevar_values)[source]
Return type:

type[BaseModel] | PydanticRecursiveRef

__class_vars__: ClassVar[set[str]] = {}[source]

The names of the class variables defined on the model.

__copy__()[source]

Returns a shallow copy of the model.

Return type:

Self

__deepcopy__(memo=None)[source]

Returns a deep copy of the model.

Return type:

Self

__delattr__(item)[source]

Implement delattr(self, name).

Return type:

Any

__dict__[source]
__eq__(other)[source]

Return self==value.

Return type:

bool

property __fields_set__: set[str][source]
classmethod __get_pydantic_core_schema__(source, handler, /)[source]

Hook into generating the model’s CoreSchema.

Parameters:
  • source (type[BaseModel]) – The class we are generating a schema for. This will generally be the same as the cls argument if this is a classmethod.

  • handler (GetCoreSchemaHandler) – A callable that calls into Pydantic’s internal CoreSchema generation logic.

Return type:

Union[InvalidSchema, AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]

Returns:

A pydantic-core CoreSchema.

classmethod __get_pydantic_json_schema__(core_schema, handler, /)[source]

Hook into generating the model’s JSON schema.

Parameters:
  • core_schema (Union[InvalidSchema, AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]) – A pydantic-core CoreSchema. You can ignore this argument and call the handler with a new CoreSchema, wrap this CoreSchema ({'type': 'nullable', 'schema': current_schema}), or just call the handler with the original schema.

  • handler (GetJsonSchemaHandler) – Call into Pydantic’s internal JSON schema generation. This will raise a pydantic.errors.PydanticInvalidForJsonSchema if JSON schema generation fails. Since this gets called by BaseModel.model_json_schema you can override the schema_generator argument to that function to change JSON schema generation globally for a type.

Return type:

Dict[str, Any]

Returns:

A JSON schema, as a Python object.

__getattr__(item)[source]
Return type:

Any

__getstate__()[source]

Helper for pickle.

Return type:

dict[Any, Any]

__hash__ = None[source]
__init__(**data)[source]

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__iter__()[source]

So dict(model) works.

Return type:

Generator[Tuple[str, Any], None, None]

__module__ = 'kittycad.models.web_socket_request'[source]
__pretty__(fmt, **kwargs)[source]

Used by devtools (https://python-devtools.helpmanual.io/) to pretty print objects.

Return type:

Generator[Any, None, None]

__private_attributes__: ClassVar[Dict[str, ModelPrivateAttr]] = {}[source]

Metadata about the private attributes of the model.

__pydantic_complete__: ClassVar[bool] = True[source]

Whether model building is completed, or if there are still undefined fields.

__pydantic_computed_fields__: ClassVar[Dict[str, ComputedFieldInfo]] = {}[source]

A dictionary of computed field names and their corresponding [ComputedFieldInfo][pydantic.fields.ComputedFieldInfo] objects.

__pydantic_core_schema__: ClassVar[CoreSchema] = {'definitions': [{'cls': <class 'kittycad.models.point3d.Point3d'>, 'config': {'title': 'Point3d'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.point3d.Point3d'>>]}, 'ref': 'kittycad.models.point3d.Point3d:94613485774224', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'x': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'y': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'z': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}}, 'model_name': 'Point3d', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.angle.Angle'>, 'config': {'title': 'Angle'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.angle.Angle'>>]}, 'ref': 'kittycad.models.angle.Angle:94613487000928', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'unit': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.unit_angle.UnitAngle:94613486887312', 'type': 'definition-ref'}, 'type': 'model-field'}, 'value': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}}, 'model_name': 'Angle', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <enum 'UnitAngle'>, 'members': [UnitAngle.DEGREES, UnitAngle.RADIANS], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.unit_angle.UnitAngle:94613486887312', 'sub_type': 'str', 'type': 'enum'}, {'cls': <class 'kittycad.models.point2d.Point2d'>, 'config': {'title': 'Point2d'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.point2d.Point2d'>>]}, 'ref': 'kittycad.models.point2d.Point2d:94613491414000', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'x': {'metadata': {}, 'schema': {'function': {'function': <class 'kittycad.models.length_unit.LengthUnit'>, 'type': 'no-info'}, 'schema': {'type': 'float'}, 'type': 'function-after'}, 'type': 'model-field'}, 'y': {'metadata': {}, 'schema': {'function': {'function': <class 'kittycad.models.length_unit.LengthUnit'>, 'type': 'no-info'}, 'schema': {'type': 'float'}, 'type': 'function-after'}, 'type': 'model-field'}}, 'model_name': 'Point2d', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <enum 'CameraDragInteractionType'>, 'members': [CameraDragInteractionType.PAN, CameraDragInteractionType.ROTATE, CameraDragInteractionType.ZOOM], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.camera_drag_interaction_type.CameraDragInteractionType:94613474717680', 'sub_type': 'str', 'type': 'enum'}, {'cls': <class 'kittycad.models.axis_direction_pair.AxisDirectionPair'>, 'config': {'title': 'AxisDirectionPair'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.axis_direction_pair.AxisDirectionPair'>>]}, 'ref': 'kittycad.models.axis_direction_pair.AxisDirectionPair:94613489202720', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'axis': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.axis.Axis:94613489197600', 'type': 'definition-ref'}, 'type': 'model-field'}, 'direction': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.direction.Direction:94613489200160', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'AxisDirectionPair', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <enum 'Axis'>, 'members': [Axis.Y, Axis.Z], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.axis.Axis:94613489197600', 'sub_type': 'str', 'type': 'enum'}, {'cls': <enum 'Direction'>, 'members': [Direction.POSITIVE, Direction.NEGATIVE], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.direction.Direction:94613489200160', 'sub_type': 'str', 'type': 'enum'}, {'cls': <class 'kittycad.models.system.System'>, 'config': {'title': 'System'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.system.System'>>]}, 'ref': 'kittycad.models.system.System:94613489213312', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'forward': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.axis_direction_pair.AxisDirectionPair:94613489202720', 'type': 'definition-ref'}, 'type': 'model-field'}, 'up': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.axis_direction_pair.AxisDirectionPair:94613489202720', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'System', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <enum 'UnitLength'>, 'members': [UnitLength.CM, UnitLength.FT, UnitLength.IN, UnitLength.M, UnitLength.MM, UnitLength.YD], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.unit_length.UnitLength:94613489230064', 'sub_type': 'str', 'type': 'enum'}, {'cls': <class 'kittycad.models.selection.OptionDefaultScene'>, 'config': {'title': 'OptionDefaultScene'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.selection.OptionDefaultScene'>>]}, 'ref': 'kittycad.models.selection.OptionDefaultScene:94613487700944', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'default_scene', 'schema': {'expected': ['default_scene'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultScene', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.selection.OptionSceneByIndex'>, 'config': {'title': 'OptionSceneByIndex'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.selection.OptionSceneByIndex'>>]}, 'ref': 'kittycad.models.selection.OptionSceneByIndex:94613487445712', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'index': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'scene_by_index', 'schema': {'expected': ['scene_by_index'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionSceneByIndex', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.selection.OptionSceneByName'>, 'config': {'title': 'OptionSceneByName'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.selection.OptionSceneByName'>>]}, 'ref': 'kittycad.models.selection.OptionSceneByName:94613487434496', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'name': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'scene_by_name', 'schema': {'expected': ['scene_by_name'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionSceneByName', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.selection.OptionMeshByIndex'>, 'config': {'title': 'OptionMeshByIndex'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.selection.OptionMeshByIndex'>>]}, 'ref': 'kittycad.models.selection.OptionMeshByIndex:94613487377392', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'index': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'mesh_by_index', 'schema': {'expected': ['mesh_by_index'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionMeshByIndex', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.selection.OptionMeshByName'>, 'config': {'title': 'OptionMeshByName'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.selection.OptionMeshByName'>>]}, 'ref': 'kittycad.models.selection.OptionMeshByName:94613487383744', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'name': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'mesh_by_name', 'schema': {'expected': ['mesh_by_name'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionMeshByName', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'pydantic.root_model.RootModel[Annotated[Union[OptionDefaultScene, OptionSceneByIndex, OptionSceneByName, OptionMeshByIndex, OptionMeshByName], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>, 'config': {'title': "RootModel[Annotated[Union[OptionDefaultScene, OptionSceneByIndex, OptionSceneByName, OptionMeshByIndex, OptionMeshByName], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]"}, 'custom_init': False, 'generic_origin': <class 'pydantic.root_model.RootModel'>, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydantic.root_model.RootModel[Annotated[Union[OptionDefaultScene, OptionSceneByIndex, OptionSceneByName, OptionMeshByIndex, OptionMeshByName], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>>]}, 'ref': "pydantic.root_model.RootModel:94613489228048[Annotated[Union[OptionDefaultScene, OptionSceneByIndex, OptionSceneByName, OptionMeshByIndex, OptionMeshByName], FieldInfo(annotation=NoneType, required=True, discriminator='type')]:140435634374800]", 'root_model': True, 'schema': {'choices': {'default_scene': {'schema_ref': 'kittycad.models.selection.OptionDefaultScene:94613487700944', 'type': 'definition-ref'}, 'mesh_by_index': {'schema_ref': 'kittycad.models.selection.OptionMeshByIndex:94613487377392', 'type': 'definition-ref'}, 'mesh_by_name': {'schema_ref': 'kittycad.models.selection.OptionMeshByName:94613487383744', 'type': 'definition-ref'}, 'scene_by_index': {'schema_ref': 'kittycad.models.selection.OptionSceneByIndex:94613487445712', 'type': 'definition-ref'}, 'scene_by_name': {'schema_ref': 'kittycad.models.selection.OptionSceneByName:94613487434496', 'type': 'definition-ref'}}, 'discriminator': 'type', 'from_attributes': True, 'metadata': {}, 'strict': False, 'type': 'tagged-union'}, 'type': 'model'}, {'cls': <enum 'SceneSelectionType'>, 'members': [SceneSelectionType.REPLACE, SceneSelectionType.ADD, SceneSelectionType.REMOVE], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.scene_selection_type.SceneSelectionType:94613492115664', 'sub_type': 'str', 'type': 'enum'}, {'cls': <enum 'AnnotationLineEnd'>, 'members': [AnnotationLineEnd.NONE, AnnotationLineEnd.ARROW], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.annotation_line_end.AnnotationLineEnd:94613485852096', 'sub_type': 'str', 'type': 'enum'}, {'cls': <class 'kittycad.models.color.Color'>, 'config': {'title': 'Color'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.color.Color'>>]}, 'ref': 'kittycad.models.color.Color:94613485844144', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'a': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'b': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'g': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'r': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}}, 'model_name': 'Color', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.annotation_line_end_options.AnnotationLineEndOptions'>, 'config': {'title': 'AnnotationLineEndOptions'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.annotation_line_end_options.AnnotationLineEndOptions'>>]}, 'ref': 'kittycad.models.annotation_line_end_options.AnnotationLineEndOptions:94613485855776', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'end': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.annotation_line_end.AnnotationLineEnd:94613485852096', 'type': 'definition-ref'}, 'type': 'model-field'}, 'start': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.annotation_line_end.AnnotationLineEnd:94613485852096', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'AnnotationLineEndOptions', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <enum 'AnnotationTextAlignmentX'>, 'members': [AnnotationTextAlignmentX.LEFT, AnnotationTextAlignmentX.CENTER, AnnotationTextAlignmentX.RIGHT], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.annotation_text_alignment_x.AnnotationTextAlignmentX:94613486017984', 'sub_type': 'str', 'type': 'enum'}, {'cls': <enum 'AnnotationTextAlignmentY'>, 'members': [AnnotationTextAlignmentY.BOTTOM, AnnotationTextAlignmentY.CENTER, AnnotationTextAlignmentY.TOP], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.annotation_text_alignment_y.AnnotationTextAlignmentY:94613485832656', 'sub_type': 'str', 'type': 'enum'}, {'cls': <class 'kittycad.models.annotation_text_options.AnnotationTextOptions'>, 'config': {'title': 'AnnotationTextOptions'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.annotation_text_options.AnnotationTextOptions'>>]}, 'ref': 'kittycad.models.annotation_text_options.AnnotationTextOptions:94613485834432', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'point_size': {'metadata': {}, 'schema': {'type': 'int'}, 'type': 'model-field'}, 'text': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'x': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.annotation_text_alignment_x.AnnotationTextAlignmentX:94613486017984', 'type': 'definition-ref'}, 'type': 'model-field'}, 'y': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.annotation_text_alignment_y.AnnotationTextAlignmentY:94613485832656', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'AnnotationTextOptions', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <class 'kittycad.models.annotation_options.AnnotationOptions'>, 'config': {'title': 'AnnotationOptions'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.annotation_options.AnnotationOptions'>>]}, 'ref': 'kittycad.models.annotation_options.AnnotationOptions:94613477628176', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'color': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'schema_ref': 'kittycad.models.color.Color:94613485844144', 'type': 'definition-ref'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'line_ends': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'schema_ref': 'kittycad.models.annotation_line_end_options.AnnotationLineEndOptions:94613485855776', 'type': 'definition-ref'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'line_width': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'position': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'text': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'schema_ref': 'kittycad.models.annotation_text_options.AnnotationTextOptions:94613485834432', 'type': 'definition-ref'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'AnnotationOptions', 'type': 'model-fields'}, 'type': 'model'}, {'cls': <enum 'UnitDensity'>, 'members': [UnitDensity.LB_FT3, UnitDensity.KG_M3], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.unit_density.UnitDensity:94613489057088', 'sub_type': 'str', 'type': 'enum'}, {'cls': <enum 'UnitMass'>, 'members': [UnitMass.G, UnitMass.KG, UnitMass.LB], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.unit_mass.UnitMass:94613489058080', 'sub_type': 'str', 'type': 'enum'}, {'cls': <enum 'CameraMovement'>, 'members': [CameraMovement.VANTAGE, CameraMovement.NONE], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.camera_movement.CameraMovement:94613474761824', 'sub_type': 'str', 'type': 'enum'}], 'schema': {'cls': <class 'kittycad.models.web_socket_request.OptionModelingCmdBatchReq'>, 'config': {'title': 'OptionModelingCmdBatchReq'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.web_socket_request.OptionModelingCmdBatchReq'>>]}, 'ref': 'kittycad.models.web_socket_request.OptionModelingCmdBatchReq:94613505758480', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'batch_id': {'metadata': {}, 'schema': {'function': {'function': <class 'kittycad.models.modeling_cmd_id.ModelingCmdId'>, 'type': 'no-info'}, 'schema': {'type': 'str'}, 'type': 'function-after'}, 'type': 'model-field'}, 'requests': {'metadata': {}, 'schema': {'items_schema': {'cls': <class 'kittycad.models.modeling_cmd_req.ModelingCmdReq'>, 'config': {'title': 'ModelingCmdReq'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd_req.ModelingCmdReq'>>]}, 'ref': 'kittycad.models.modeling_cmd_req.ModelingCmdReq:94613494945664', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'cmd': {'metadata': {}, 'schema': {'cls': <class 'pydantic.root_model.RootModel[Annotated[Union[OptionEngineUtilEvaluatePath, OptionStartPath, OptionMovePathPen, OptionExtendPath, OptionExtrude, OptionRevolve, OptionSolid3DShellFace, OptionRevolveAboutEdge, OptionLoft, OptionClosePath, OptionCameraDragStart, OptionCameraDragMove, OptionCameraDragEnd, OptionDefaultCameraGetSettings, OptionDefaultCameraLookAt, OptionDefaultCameraPerspectiveSettings, OptionDefaultCameraZoom, OptionExport, OptionEntityGetParentId, OptionEntityGetNumChildren, OptionEntityGetChildUuid, OptionEntityGetAllChildUuids, OptionEntityGetSketchPaths, OptionEntityGetDistance, OptionEntityLinearPatternTransform, OptionEntityLinearPattern, OptionEntityCircularPattern, OptionEntityMakeHelix, OptionEntityMirror, OptionEntityMirrorAcrossEdge, OptionSelectWithPoint, OptionSelectAdd, OptionSelectRemove, OptionSceneClearAll, OptionSelectReplace, OptionHighlightSetEntity, OptionHighlightSetEntities, OptionNewAnnotation, OptionUpdateAnnotation, OptionEdgeLinesVisible, OptionObjectVisible, OptionObjectBringToFront, OptionObjectSetMaterialParamsPbr, OptionGetEntityType, OptionSolid3DGetAllEdgeFaces, OptionSolid2DAddHole, OptionSolid3DGetAllOppositeEdges, OptionSolid3DGetOppositeEdge, OptionSolid3DGetNextAdjacentEdge, OptionSolid3DGetPrevAdjacentEdge, OptionSolid3DGetCommonEdge, OptionSolid3DFilletEdge, OptionFaceIsPlanar, OptionFaceGetPosition, OptionFaceGetCenter, OptionFaceGetGradient, OptionSendObject, OptionEntitySetOpacity, OptionEntityFade, OptionMakePlane, OptionPlaneSetColor, OptionSetTool, OptionMouseMove, OptionMouseClick, OptionSketchModeDisable, OptionGetSketchModePlane, OptionCurveSetConstraint, OptionEnableSketchMode, OptionEnableDryRun, OptionDisableDryRun, OptionSetBackgroundColor, OptionSetCurrentToolProperties, OptionSetDefaultSystemProperties, OptionCurveGetType, OptionCurveGetControlPoints, OptionTakeSnapshot, OptionMakeAxesGizmo, OptionPathGetInfo, OptionPathGetCurveUuidsForVertices, OptionPathGetCurveUuid, OptionPathGetVertexUuids, OptionPathGetSketchTargetUuid, OptionHandleMouseDragStart, OptionHandleMouseDragMove, OptionHandleMouseDragEnd, OptionRemoveSceneObjects, OptionPlaneIntersectAndProject, OptionCurveGetEndPoints, OptionReconfigureStream, OptionImportFiles, OptionSetSceneUnits, OptionMass, OptionDensity, OptionVolume, OptionCenterOfMass, OptionSurfaceArea, OptionDefaultCameraFocusOn, OptionSetSelectionType, OptionSetSelectionFilter, OptionDefaultCameraSetOrthographic, OptionDefaultCameraSetPerspective, OptionDefaultCameraCenterToSelection, OptionDefaultCameraCenterToScene, OptionZoomToFit, OptionViewIsometric, OptionSolid3DGetExtrusionFaceInfo, OptionSelectClear, OptionSelectGet, OptionGetNumObjects, OptionMakeOffsetPath], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>, 'config': {'title': "RootModel[Annotated[Union[OptionEngineUtilEvaluatePath, OptionStartPath, OptionMovePathPen, OptionExtendPath, OptionExtrude, OptionRevolve, OptionSolid3DShellFace, OptionRevolveAboutEdge, OptionLoft, OptionClosePath, OptionCameraDragStart, OptionCameraDragMove, OptionCameraDragEnd, OptionDefaultCameraGetSettings, OptionDefaultCameraLookAt, OptionDefaultCameraPerspectiveSettings, OptionDefaultCameraZoom, OptionExport, OptionEntityGetParentId, OptionEntityGetNumChildren, OptionEntityGetChildUuid, OptionEntityGetAllChildUuids, OptionEntityGetSketchPaths, OptionEntityGetDistance, OptionEntityLinearPatternTransform, OptionEntityLinearPattern, OptionEntityCircularPattern, OptionEntityMakeHelix, OptionEntityMirror, OptionEntityMirrorAcrossEdge, OptionSelectWithPoint, OptionSelectAdd, OptionSelectRemove, OptionSceneClearAll, OptionSelectReplace, OptionHighlightSetEntity, OptionHighlightSetEntities, OptionNewAnnotation, OptionUpdateAnnotation, OptionEdgeLinesVisible, OptionObjectVisible, OptionObjectBringToFront, OptionObjectSetMaterialParamsPbr, OptionGetEntityType, OptionSolid3DGetAllEdgeFaces, OptionSolid2DAddHole, OptionSolid3DGetAllOppositeEdges, OptionSolid3DGetOppositeEdge, OptionSolid3DGetNextAdjacentEdge, OptionSolid3DGetPrevAdjacentEdge, OptionSolid3DGetCommonEdge, OptionSolid3DFilletEdge, OptionFaceIsPlanar, OptionFaceGetPosition, OptionFaceGetCenter, OptionFaceGetGradient, OptionSendObject, OptionEntitySetOpacity, OptionEntityFade, OptionMakePlane, OptionPlaneSetColor, OptionSetTool, OptionMouseMove, OptionMouseClick, OptionSketchModeDisable, OptionGetSketchModePlane, OptionCurveSetConstraint, OptionEnableSketchMode, OptionEnableDryRun, OptionDisableDryRun, OptionSetBackgroundColor, OptionSetCurrentToolProperties, OptionSetDefaultSystemProperties, OptionCurveGetType, OptionCurveGetControlPoints, OptionTakeSnapshot, OptionMakeAxesGizmo, OptionPathGetInfo, OptionPathGetCurveUuidsForVertices, OptionPathGetCurveUuid, OptionPathGetVertexUuids, OptionPathGetSketchTargetUuid, OptionHandleMouseDragStart, OptionHandleMouseDragMove, OptionHandleMouseDragEnd, OptionRemoveSceneObjects, OptionPlaneIntersectAndProject, OptionCurveGetEndPoints, OptionReconfigureStream, OptionImportFiles, OptionSetSceneUnits, OptionMass, OptionDensity, OptionVolume, OptionCenterOfMass, OptionSurfaceArea, OptionDefaultCameraFocusOn, OptionSetSelectionType, OptionSetSelectionFilter, OptionDefaultCameraSetOrthographic, OptionDefaultCameraSetPerspective, OptionDefaultCameraCenterToSelection, OptionDefaultCameraCenterToScene, OptionZoomToFit, OptionViewIsometric, OptionSolid3DGetExtrusionFaceInfo, OptionSelectClear, OptionSelectGet, OptionGetNumObjects, OptionMakeOffsetPath], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]"}, 'custom_init': False, 'generic_origin': <class 'pydantic.root_model.RootModel'>, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'pydantic.root_model.RootModel[Annotated[Union[OptionEngineUtilEvaluatePath, OptionStartPath, OptionMovePathPen, OptionExtendPath, OptionExtrude, OptionRevolve, OptionSolid3DShellFace, OptionRevolveAboutEdge, OptionLoft, OptionClosePath, OptionCameraDragStart, OptionCameraDragMove, OptionCameraDragEnd, OptionDefaultCameraGetSettings, OptionDefaultCameraLookAt, OptionDefaultCameraPerspectiveSettings, OptionDefaultCameraZoom, OptionExport, OptionEntityGetParentId, OptionEntityGetNumChildren, OptionEntityGetChildUuid, OptionEntityGetAllChildUuids, OptionEntityGetSketchPaths, OptionEntityGetDistance, OptionEntityLinearPatternTransform, OptionEntityLinearPattern, OptionEntityCircularPattern, OptionEntityMakeHelix, OptionEntityMirror, OptionEntityMirrorAcrossEdge, OptionSelectWithPoint, OptionSelectAdd, OptionSelectRemove, OptionSceneClearAll, OptionSelectReplace, OptionHighlightSetEntity, OptionHighlightSetEntities, OptionNewAnnotation, OptionUpdateAnnotation, OptionEdgeLinesVisible, OptionObjectVisible, OptionObjectBringToFront, OptionObjectSetMaterialParamsPbr, OptionGetEntityType, OptionSolid3DGetAllEdgeFaces, OptionSolid2DAddHole, OptionSolid3DGetAllOppositeEdges, OptionSolid3DGetOppositeEdge, OptionSolid3DGetNextAdjacentEdge, OptionSolid3DGetPrevAdjacentEdge, OptionSolid3DGetCommonEdge, OptionSolid3DFilletEdge, OptionFaceIsPlanar, OptionFaceGetPosition, OptionFaceGetCenter, OptionFaceGetGradient, OptionSendObject, OptionEntitySetOpacity, OptionEntityFade, OptionMakePlane, OptionPlaneSetColor, OptionSetTool, OptionMouseMove, OptionMouseClick, OptionSketchModeDisable, OptionGetSketchModePlane, OptionCurveSetConstraint, OptionEnableSketchMode, OptionEnableDryRun, OptionDisableDryRun, OptionSetBackgroundColor, OptionSetCurrentToolProperties, OptionSetDefaultSystemProperties, OptionCurveGetType, OptionCurveGetControlPoints, OptionTakeSnapshot, OptionMakeAxesGizmo, OptionPathGetInfo, OptionPathGetCurveUuidsForVertices, OptionPathGetCurveUuid, OptionPathGetVertexUuids, OptionPathGetSketchTargetUuid, OptionHandleMouseDragStart, OptionHandleMouseDragMove, OptionHandleMouseDragEnd, OptionRemoveSceneObjects, OptionPlaneIntersectAndProject, OptionCurveGetEndPoints, OptionReconfigureStream, OptionImportFiles, OptionSetSceneUnits, OptionMass, OptionDensity, OptionVolume, OptionCenterOfMass, OptionSurfaceArea, OptionDefaultCameraFocusOn, OptionSetSelectionType, OptionSetSelectionFilter, OptionDefaultCameraSetOrthographic, OptionDefaultCameraSetPerspective, OptionDefaultCameraCenterToSelection, OptionDefaultCameraCenterToScene, OptionZoomToFit, OptionViewIsometric, OptionSolid3DGetExtrusionFaceInfo, OptionSelectClear, OptionSelectGet, OptionGetNumObjects, OptionMakeOffsetPath], FieldInfo(annotation=NoneType, required=True, discriminator='type')]]'>>]}, 'ref': "pydantic.root_model.RootModel:94613489228048[Annotated[Union[OptionEngineUtilEvaluatePath, OptionStartPath, OptionMovePathPen, OptionExtendPath, OptionExtrude, OptionRevolve, OptionSolid3DShellFace, OptionRevolveAboutEdge, OptionLoft, OptionClosePath, OptionCameraDragStart, OptionCameraDragMove, OptionCameraDragEnd, OptionDefaultCameraGetSettings, OptionDefaultCameraLookAt, OptionDefaultCameraPerspectiveSettings, OptionDefaultCameraZoom, OptionExport, OptionEntityGetParentId, OptionEntityGetNumChildren, OptionEntityGetChildUuid, OptionEntityGetAllChildUuids, OptionEntityGetSketchPaths, OptionEntityGetDistance, OptionEntityLinearPatternTransform, OptionEntityLinearPattern, OptionEntityCircularPattern, OptionEntityMakeHelix, OptionEntityMirror, OptionEntityMirrorAcrossEdge, OptionSelectWithPoint, OptionSelectAdd, OptionSelectRemove, OptionSceneClearAll, OptionSelectReplace, OptionHighlightSetEntity, OptionHighlightSetEntities, OptionNewAnnotation, OptionUpdateAnnotation, OptionEdgeLinesVisible, OptionObjectVisible, OptionObjectBringToFront, OptionObjectSetMaterialParamsPbr, OptionGetEntityType, OptionSolid3DGetAllEdgeFaces, OptionSolid2DAddHole, OptionSolid3DGetAllOppositeEdges, OptionSolid3DGetOppositeEdge, OptionSolid3DGetNextAdjacentEdge, OptionSolid3DGetPrevAdjacentEdge, OptionSolid3DGetCommonEdge, OptionSolid3DFilletEdge, OptionFaceIsPlanar, OptionFaceGetPosition, OptionFaceGetCenter, OptionFaceGetGradient, OptionSendObject, OptionEntitySetOpacity, OptionEntityFade, OptionMakePlane, OptionPlaneSetColor, OptionSetTool, OptionMouseMove, OptionMouseClick, OptionSketchModeDisable, OptionGetSketchModePlane, OptionCurveSetConstraint, OptionEnableSketchMode, OptionEnableDryRun, OptionDisableDryRun, OptionSetBackgroundColor, OptionSetCurrentToolProperties, OptionSetDefaultSystemProperties, OptionCurveGetType, OptionCurveGetControlPoints, OptionTakeSnapshot, OptionMakeAxesGizmo, OptionPathGetInfo, OptionPathGetCurveUuidsForVertices, OptionPathGetCurveUuid, OptionPathGetVertexUuids, OptionPathGetSketchTargetUuid, OptionHandleMouseDragStart, OptionHandleMouseDragMove, OptionHandleMouseDragEnd, OptionRemoveSceneObjects, OptionPlaneIntersectAndProject, OptionCurveGetEndPoints, OptionReconfigureStream, OptionImportFiles, OptionSetSceneUnits, OptionMass, OptionDensity, OptionVolume, OptionCenterOfMass, OptionSurfaceArea, OptionDefaultCameraFocusOn, OptionSetSelectionType, OptionSetSelectionFilter, OptionDefaultCameraSetOrthographic, OptionDefaultCameraSetPerspective, OptionDefaultCameraCenterToSelection, OptionDefaultCameraCenterToScene, OptionZoomToFit, OptionViewIsometric, OptionSolid3DGetExtrusionFaceInfo, OptionSelectClear, OptionSelectGet, OptionGetNumObjects, OptionMakeOffsetPath], FieldInfo(annotation=NoneType, required=True, discriminator='type')]:140435619823440]", 'root_model': True, 'schema': {'choices': {'camera_drag_end': {'cls': <class 'kittycad.models.modeling_cmd.OptionCameraDragEnd'>, 'config': {'title': 'OptionCameraDragEnd'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCameraDragEnd'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCameraDragEnd:94613491849840', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'interaction': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.camera_drag_interaction_type.CameraDragInteractionType:94613474717680', 'type': 'definition-ref'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'camera_drag_end', 'schema': {'expected': ['camera_drag_end'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}, 'window': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point2d.Point2d:94613491414000', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'OptionCameraDragEnd', 'type': 'model-fields'}, 'type': 'model'}, 'camera_drag_move': {'cls': <class 'kittycad.models.modeling_cmd.OptionCameraDragMove'>, 'config': {'title': 'OptionCameraDragMove'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCameraDragMove'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCameraDragMove:94613491831088', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'interaction': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.camera_drag_interaction_type.CameraDragInteractionType:94613474717680', 'type': 'definition-ref'}, 'type': 'model-field'}, 'sequence': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'int'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'camera_drag_move', 'schema': {'expected': ['camera_drag_move'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}, 'window': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point2d.Point2d:94613491414000', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'OptionCameraDragMove', 'type': 'model-fields'}, 'type': 'model'}, 'camera_drag_start': {'cls': <class 'kittycad.models.modeling_cmd.OptionCameraDragStart'>, 'config': {'title': 'OptionCameraDragStart'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCameraDragStart'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCameraDragStart:94613491815312', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'interaction': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.camera_drag_interaction_type.CameraDragInteractionType:94613474717680', 'type': 'definition-ref'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'camera_drag_start', 'schema': {'expected': ['camera_drag_start'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}, 'window': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point2d.Point2d:94613491414000', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'OptionCameraDragStart', 'type': 'model-fields'}, 'type': 'model'}, 'center_of_mass': {'cls': <class 'kittycad.models.modeling_cmd.OptionCenterOfMass'>, 'config': {'title': 'OptionCenterOfMass'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCenterOfMass'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCenterOfMass:94613493426784', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'entity_ids': {'metadata': {}, 'schema': {'items_schema': {'type': 'str'}, 'type': 'list'}, 'type': 'model-field'}, 'output_unit': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.unit_length.UnitLength:94613489230064', 'type': 'definition-ref'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'center_of_mass', 'schema': {'expected': ['center_of_mass'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionCenterOfMass', 'type': 'model-fields'}, 'type': 'model'}, 'close_path': {'cls': <class 'kittycad.models.modeling_cmd.OptionClosePath'>, 'config': {'title': 'OptionClosePath'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionClosePath'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionClosePath:94613491807152', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'path_id': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'close_path', 'schema': {'expected': ['close_path'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionClosePath', 'type': 'model-fields'}, 'type': 'model'}, 'curve_get_control_points': {'cls': <class 'kittycad.models.modeling_cmd.OptionCurveGetControlPoints'>, 'config': {'title': 'OptionCurveGetControlPoints'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCurveGetControlPoints'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCurveGetControlPoints:94613493138544', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'curve_id': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'curve_get_control_points', 'schema': {'expected': ['curve_get_control_points'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionCurveGetControlPoints', 'type': 'model-fields'}, 'type': 'model'}, 'curve_get_end_points': {'cls': <class 'kittycad.models.modeling_cmd.OptionCurveGetEndPoints'>, 'config': {'title': 'OptionCurveGetEndPoints'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCurveGetEndPoints'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCurveGetEndPoints:94613493276112', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'curve_id': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'curve_get_end_points', 'schema': {'expected': ['curve_get_end_points'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionCurveGetEndPoints', 'type': 'model-fields'}, 'type': 'model'}, 'curve_get_type': {'cls': <class 'kittycad.models.modeling_cmd.OptionCurveGetType'>, 'config': {'title': 'OptionCurveGetType'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCurveGetType'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCurveGetType:94613493130288', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'curve_id': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'curve_get_type', 'schema': {'expected': ['curve_get_type'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionCurveGetType', 'type': 'model-fields'}, 'type': 'model'}, 'curve_set_constraint': {'cls': <class 'kittycad.models.modeling_cmd.OptionCurveSetConstraint'>, 'config': {'title': 'OptionCurveSetConstraint'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionCurveSetConstraint'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionCurveSetConstraint:94613493033280', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'constraint_bound': {'metadata': {}, 'schema': {'cls': <enum 'PathComponentConstraintBound'>, 'members': [PathComponentConstraintBound.UNCONSTRAINED, PathComponentConstraintBound.PARTIALLY_CONSTRAINED, PathComponentConstraintBound.FULLY_CONSTRAINED], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.path_component_constraint_bound.PathComponentConstraintBound:94613491402816', 'sub_type': 'str', 'type': 'enum'}, 'type': 'model-field'}, 'constraint_type': {'metadata': {}, 'schema': {'cls': <enum 'PathComponentConstraintType'>, 'members': [PathComponentConstraintType.UNCONSTRAINED, PathComponentConstraintType.VERTICAL, PathComponentConstraintType.HORIZONTAL, PathComponentConstraintType.EQUAL_LENGTH, PathComponentConstraintType.PARALLEL, PathComponentConstraintType.ANGLE_BETWEEN], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.path_component_constraint_type.PathComponentConstraintType:94613491406160', 'sub_type': 'str', 'type': 'enum'}, 'type': 'model-field'}, 'object_id': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'curve_set_constraint', 'schema': {'expected': ['curve_set_constraint'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionCurveSetConstraint', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_center_to_scene': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraCenterToScene'>, 'config': {'title': 'OptionDefaultCameraCenterToScene'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraCenterToScene'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraCenterToScene:94613493568128', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'camera_movement': {'metadata': {}, 'schema': {'default': 'vantage', 'schema': {'schema_ref': 'kittycad.models.camera_movement.CameraMovement:94613474761824', 'type': 'definition-ref'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'default_camera_center_to_scene', 'schema': {'expected': ['default_camera_center_to_scene'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraCenterToScene', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_center_to_selection': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraCenterToSelection'>, 'config': {'title': 'OptionDefaultCameraCenterToSelection'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraCenterToSelection'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraCenterToSelection:94613493529328', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'camera_movement': {'metadata': {}, 'schema': {'default': 'vantage', 'schema': {'schema_ref': 'kittycad.models.camera_movement.CameraMovement:94613474761824', 'type': 'definition-ref'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'default_camera_center_to_selection', 'schema': {'expected': ['default_camera_center_to_selection'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraCenterToSelection', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_focus_on': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraFocusOn'>, 'config': {'title': 'OptionDefaultCameraFocusOn'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraFocusOn'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraFocusOn:94613493448896', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'default_camera_focus_on', 'schema': {'expected': ['default_camera_focus_on'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}, 'uuid': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraFocusOn', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_get_settings': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraGetSettings'>, 'config': {'title': 'OptionDefaultCameraGetSettings'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraGetSettings'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraGetSettings:94613491864752', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'default_camera_get_settings', 'schema': {'expected': ['default_camera_get_settings'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraGetSettings', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_look_at': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraLookAt'>, 'config': {'title': 'OptionDefaultCameraLookAt'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraLookAt'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraLookAt:94613491871760', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'center': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'model-field'}, 'sequence': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'int'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'default_camera_look_at', 'schema': {'expected': ['default_camera_look_at'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}, 'up': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'model-field'}, 'vantage': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraLookAt', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_perspective_settings': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraPerspectiveSettings'>, 'config': {'title': 'OptionDefaultCameraPerspectiveSettings'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraPerspectiveSettings'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraPerspectiveSettings:94613491892352', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'center': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'model-field'}, 'fov_y': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'sequence': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'int'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'default_camera_perspective_settings', 'schema': {'expected': ['default_camera_perspective_settings'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}, 'up': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'model-field'}, 'vantage': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'model-field'}, 'z_far': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'z_near': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraPerspectiveSettings', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_set_orthographic': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraSetOrthographic'>, 'config': {'title': 'OptionDefaultCameraSetOrthographic'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraSetOrthographic'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraSetOrthographic:94613493502032', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'default_camera_set_orthographic', 'schema': {'expected': ['default_camera_set_orthographic'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraSetOrthographic', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_set_perspective': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraSetPerspective'>, 'config': {'title': 'OptionDefaultCameraSetPerspective'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraSetPerspective'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraSetPerspective:94613493508864', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'parameters': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'cls': <class 'kittycad.models.perspective_camera_parameters.PerspectiveCameraParameters'>, 'config': {'title': 'PerspectiveCameraParameters'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.perspective_camera_parameters.PerspectiveCameraParameters'>>]}, 'ref': 'kittycad.models.perspective_camera_parameters.PerspectiveCameraParameters:94613492104416', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'fov_y': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'z_far': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'z_near': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'PerspectiveCameraParameters', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'default_camera_set_perspective', 'schema': {'expected': ['default_camera_set_perspective'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraSetPerspective', 'type': 'model-fields'}, 'type': 'model'}, 'default_camera_zoom': {'cls': <class 'kittycad.models.modeling_cmd.OptionDefaultCameraZoom'>, 'config': {'title': 'OptionDefaultCameraZoom'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDefaultCameraZoom'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDefaultCameraZoom:94613491923840', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'magnitude': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'default_camera_zoom', 'schema': {'expected': ['default_camera_zoom'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDefaultCameraZoom', 'type': 'model-fields'}, 'type': 'model'}, 'density': {'cls': <class 'kittycad.models.modeling_cmd.OptionDensity'>, 'config': {'title': 'OptionDensity'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDensity'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDensity:94613493399280', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'entity_ids': {'metadata': {}, 'schema': {'items_schema': {'type': 'str'}, 'type': 'list'}, 'type': 'model-field'}, 'material_mass': {'metadata': {}, 'schema': {'type': 'float'}, 'type': 'model-field'}, 'material_mass_unit': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.unit_mass.UnitMass:94613489058080', 'type': 'definition-ref'}, 'type': 'model-field'}, 'output_unit': {'metadata': {}, 'schema': {'schema_ref': 'kittycad.models.unit_density.UnitDensity:94613489057088', 'type': 'definition-ref'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'density', 'schema': {'expected': ['density'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDensity', 'type': 'model-fields'}, 'type': 'model'}, 'disable_dry_run': {'cls': <class 'kittycad.models.modeling_cmd.OptionDisableDryRun'>, 'config': {'title': 'OptionDisableDryRun'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionDisableDryRun'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionDisableDryRun:94613493074064', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'disable_dry_run', 'schema': {'expected': ['disable_dry_run'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionDisableDryRun', 'type': 'model-fields'}, 'type': 'model'}, 'edge_lines_visible': {'cls': <class 'kittycad.models.modeling_cmd.OptionEdgeLinesVisible'>, 'config': {'title': 'OptionEdgeLinesVisible'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionEdgeLinesVisible'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionEdgeLinesVisible:94613492692192', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'hidden': {'metadata': {}, 'schema': {'type': 'bool'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'edge_lines_visible', 'schema': {'expected': ['edge_lines_visible'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionEdgeLinesVisible', 'type': 'model-fields'}, 'type': 'model'}, 'enable_dry_run': {'cls': <class 'kittycad.models.modeling_cmd.OptionEnableDryRun'>, 'config': {'title': 'OptionEnableDryRun'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionEnableDryRun'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionEnableDryRun:94613493066624', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'type': {'metadata': {}, 'schema': {'default': 'enable_dry_run', 'schema': {'expected': ['enable_dry_run'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionEnableDryRun', 'type': 'model-fields'}, 'type': 'model'}, 'enable_sketch_mode': {'cls': <class 'kittycad.models.modeling_cmd.OptionEnableSketchMode'>, 'config': {'title': 'OptionEnableSketchMode'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionEnableSketchMode'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionEnableSketchMode:94613493047632', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'adjust_camera': {'metadata': {}, 'schema': {'type': 'bool'}, 'type': 'model-field'}, 'animated': {'metadata': {}, 'schema': {'type': 'bool'}, 'type': 'model-field'}, 'entity_id': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 'ortho': {'metadata': {}, 'schema': {'type': 'bool'}, 'type': 'model-field'}, 'planar_normal': {'metadata': {}, 'schema': {'default': None, 'schema': {'schema': {'schema_ref': 'kittycad.models.point3d.Point3d:94613485774224', 'type': 'definition-ref'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'type': {'metadata': {}, 'schema': {'default': 'enable_sketch_mode', 'schema': {'expected': ['enable_sketch_mode'], 'type': 'literal'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'OptionEnableSketchMode', 'type': 'model-fields'}, 'type': 'model'}, 'engine_util_evaluate_path': {'cls': <class 'kittycad.models.modeling_cmd.OptionEngineUtilEvaluatePath'>, 'config': {'title': 'OptionEngineUtilEvaluatePath'}, 'custom_init': False, 'metadata': {'pydantic_js_functions': [<bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.modeling_cmd.OptionEngineUtilEvaluatePath'>>]}, 'ref': 'kittycad.models.modeling_cmd.OptionEngineUtilEvaluatePath:94613491573392', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'path_json': {'metadata': {}, 'schema': {'type': 'str'}, 'type': 'model-field'}, 't': {'metadata': {}, 'schema': {'type': 'float'}, 'type':