mixpeek 0.6.8__py3-none-any.whl → 0.6.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. mixpeek/__init__.py +1 -106
  2. mixpeek/client.py +21 -65
  3. mixpeek/endpoints/connections.py +16 -0
  4. mixpeek/endpoints/embed.py +50 -0
  5. mixpeek/endpoints/extract.py +16 -0
  6. mixpeek/endpoints/generate.py +17 -0
  7. mixpeek/endpoints/tools.py +23 -0
  8. mixpeek/exceptions.py +13 -0
  9. mixpeek-0.6.10.dist-info/METADATA +68 -0
  10. mixpeek-0.6.10.dist-info/RECORD +13 -0
  11. {mixpeek-0.6.8.dist-info → mixpeek-0.6.10.dist-info}/WHEEL +2 -1
  12. mixpeek-0.6.10.dist-info/top_level.txt +1 -0
  13. mixpeek/base_client.py +0 -1015
  14. mixpeek/core/__init__.py +0 -27
  15. mixpeek/core/api_error.py +0 -15
  16. mixpeek/core/client_wrapper.py +0 -83
  17. mixpeek/core/datetime_utils.py +0 -28
  18. mixpeek/core/file.py +0 -38
  19. mixpeek/core/http_client.py +0 -130
  20. mixpeek/core/jsonable_encoder.py +0 -99
  21. mixpeek/core/pydantic_utilities.py +0 -12
  22. mixpeek/core/remove_none_from_dict.py +0 -11
  23. mixpeek/core/request_options.py +0 -32
  24. mixpeek/environment.py +0 -7
  25. mixpeek/errors/__init__.py +0 -17
  26. mixpeek/errors/bad_request_error.py +0 -9
  27. mixpeek/errors/forbidden_error.py +0 -9
  28. mixpeek/errors/internal_server_error.py +0 -9
  29. mixpeek/errors/not_found_error.py +0 -9
  30. mixpeek/errors/unauthorized_error.py +0 -9
  31. mixpeek/errors/unprocessable_entity_error.py +0 -9
  32. mixpeek/pipeline/__init__.py +0 -2
  33. mixpeek/pipeline/client.py +0 -482
  34. mixpeek/storage/__init__.py +0 -5
  35. mixpeek/storage/client.py +0 -145
  36. mixpeek/storage/sample/__init__.py +0 -2
  37. mixpeek/storage/sample/client.py +0 -286
  38. mixpeek/types/__init__.py +0 -81
  39. mixpeek/types/api_key.py +0 -27
  40. mixpeek/types/audio_params.py +0 -25
  41. mixpeek/types/configs_response.py +0 -38
  42. mixpeek/types/connection.py +0 -32
  43. mixpeek/types/connection_engine.py +0 -5
  44. mixpeek/types/csv_params.py +0 -25
  45. mixpeek/types/destination.py +0 -38
  46. mixpeek/types/embedding_response.py +0 -30
  47. mixpeek/types/error_message.py +0 -25
  48. mixpeek/types/error_response.py +0 -26
  49. mixpeek/types/extract_response.py +0 -31
  50. mixpeek/types/field_type.py +0 -5
  51. mixpeek/types/generation_response.py +0 -32
  52. mixpeek/types/html_params.py +0 -25
  53. mixpeek/types/http_validation_error.py +0 -26
  54. mixpeek/types/image_params.py +0 -28
  55. mixpeek/types/message.py +0 -33
  56. mixpeek/types/metadata.py +0 -28
  57. mixpeek/types/modality.py +0 -5
  58. mixpeek/types/model.py +0 -34
  59. mixpeek/types/models.py +0 -5
  60. mixpeek/types/pdf_params.py +0 -37
  61. mixpeek/types/pipeline_response.py +0 -45
  62. mixpeek/types/pipeline_task_response.py +0 -28
  63. mixpeek/types/ppt_params.py +0 -23
  64. mixpeek/types/pptx_params.py +0 -23
  65. mixpeek/types/settings.py +0 -31
  66. mixpeek/types/source.py +0 -39
  67. mixpeek/types/source_destination_mapping.py +0 -40
  68. mixpeek/types/txt_params.py +0 -23
  69. mixpeek/types/user.py +0 -32
  70. mixpeek/types/validation_error.py +0 -28
  71. mixpeek/types/validation_error_loc_item.py +0 -5
  72. mixpeek/types/video_params.py +0 -23
  73. mixpeek/types/workflow_code_response.py +0 -25
  74. mixpeek/types/workflow_response.py +0 -28
  75. mixpeek/types/workflow_settings.py +0 -26
  76. mixpeek/types/xlsx_params.py +0 -25
  77. mixpeek/user/__init__.py +0 -2
  78. mixpeek/user/client.py +0 -312
  79. mixpeek/version.py +0 -4
  80. mixpeek/workflow/__init__.py +0 -2
  81. mixpeek/workflow/client.py +0 -543
  82. mixpeek-0.6.8.dist-info/LICENSE +0 -21
  83. mixpeek-0.6.8.dist-info/METADATA +0 -145
  84. mixpeek-0.6.8.dist-info/RECORD +0 -76
  85. /mixpeek/{py.typed → endpoints/__init__.py} +0 -0
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- FieldType = typing.Union[typing.AnyStr, typing.Literal["file_url", "contents"]]
@@ -1,32 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .metadata import Metadata
9
-
10
-
11
- class GenerationResponse(pydantic_v1.BaseModel):
12
- response: typing.Dict[str, typing.Any] = pydantic_v1.Field()
13
- """
14
- The response from the generation.
15
- """
16
-
17
- metadata: typing.Optional[Metadata] = None
18
- elapsed_time: typing.Optional[float] = None
19
-
20
- def json(self, **kwargs: typing.Any) -> str:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
- return super().json(**kwargs_with_defaults)
23
-
24
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
- return super().dict(**kwargs_with_defaults)
27
-
28
- class Config:
29
- frozen = True
30
- smart_union = True
31
- extra = pydantic_v1.Extra.allow
32
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,25 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class HtmlParams(pydantic_v1.BaseModel):
11
- skip_headers_and_footers: typing.Optional[bool] = None
12
-
13
- def json(self, **kwargs: typing.Any) -> str:
14
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
15
- return super().json(**kwargs_with_defaults)
16
-
17
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
18
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
- return super().dict(**kwargs_with_defaults)
20
-
21
- class Config:
22
- frozen = True
23
- smart_union = True
24
- extra = pydantic_v1.Extra.allow
25
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,26 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .validation_error import ValidationError
9
-
10
-
11
- class HttpValidationError(pydantic_v1.BaseModel):
12
- detail: typing.Optional[typing.List[ValidationError]] = None
13
-
14
- def json(self, **kwargs: typing.Any) -> str:
15
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
16
- return super().json(**kwargs_with_defaults)
17
-
18
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
- return super().dict(**kwargs_with_defaults)
21
-
22
- class Config:
23
- frozen = True
24
- smart_union = True
25
- extra = pydantic_v1.Extra.allow
26
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,28 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class ImageParams(pydantic_v1.BaseModel):
11
- strategy: typing.Optional[str] = pydantic_v1.Field(default=None)
12
- """
13
- The strategy to use for parsing the image. Valid strategies are 'ocr', 'object', and 'auto'.
14
- """
15
-
16
- def json(self, **kwargs: typing.Any) -> str:
17
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
18
- return super().json(**kwargs_with_defaults)
19
-
20
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
- return super().dict(**kwargs_with_defaults)
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- extra = pydantic_v1.Extra.allow
28
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/message.py DELETED
@@ -1,33 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class Message(pydantic_v1.BaseModel):
11
- role: str = pydantic_v1.Field()
12
- """
13
- The role of the message sender.
14
- """
15
-
16
- content: str = pydantic_v1.Field()
17
- """
18
- The content of the message.
19
- """
20
-
21
- def json(self, **kwargs: typing.Any) -> str:
22
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
- return super().json(**kwargs_with_defaults)
24
-
25
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
26
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
- return super().dict(**kwargs_with_defaults)
28
-
29
- class Config:
30
- frozen = True
31
- smart_union = True
32
- extra = pydantic_v1.Extra.allow
33
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/metadata.py DELETED
@@ -1,28 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .model import Model
9
-
10
-
11
- class Metadata(pydantic_v1.BaseModel):
12
- total_tokens: typing.Optional[int] = None
13
- generation_id: typing.Optional[str] = None
14
- model: typing.Optional[Model] = None
15
-
16
- def json(self, **kwargs: typing.Any) -> str:
17
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
18
- return super().json(**kwargs_with_defaults)
19
-
20
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
- return super().dict(**kwargs_with_defaults)
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- extra = pydantic_v1.Extra.allow
28
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/modality.py DELETED
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- Modality = typing.Any
mixpeek/types/model.py DELETED
@@ -1,34 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .models import Models
9
-
10
-
11
- class Model(pydantic_v1.BaseModel):
12
- provider: str = pydantic_v1.Field()
13
- """
14
- The provider of the model.
15
- """
16
-
17
- model: Models = pydantic_v1.Field()
18
- """
19
- The model to be used.
20
- """
21
-
22
- def json(self, **kwargs: typing.Any) -> str:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
- return super().json(**kwargs_with_defaults)
25
-
26
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().dict(**kwargs_with_defaults)
29
-
30
- class Config:
31
- frozen = True
32
- smart_union = True
33
- extra = pydantic_v1.Extra.allow
34
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/models.py DELETED
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- Models = typing.Union[typing.AnyStr, typing.Literal["gpt-3.5-turbo", "gpt-4-turbo-preview"]]
@@ -1,37 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class PdfParams(pydantic_v1.BaseModel):
11
- strategy: typing.Optional[str] = pydantic_v1.Field(default=None)
12
- """
13
- The strategy to use for partitioning the PDF. Valid strategies are "hi_res",
14
- "ocr_only", and "fast". When using the "hi_res" strategy, the function uses
15
- a layout detection model to identify document elements. When using the
16
- "ocr_only" strategy, partition_pdf simply extracts the text from the
17
- document using OCR and processes it. If the "fast" strategy is used, the text
18
- is extracted directly from the PDF. The default strategy `auto` will determine
19
- when a page can be extracted using `fast` mode, otherwise it will fall back to `hi_res`.
20
- """
21
-
22
- infer_table_structure: typing.Optional[bool] = None
23
- hi_res_model_name: typing.Optional[str] = None
24
-
25
- def json(self, **kwargs: typing.Any) -> str:
26
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
27
- return super().json(**kwargs_with_defaults)
28
-
29
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
30
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
31
- return super().dict(**kwargs_with_defaults)
32
-
33
- class Config:
34
- frozen = True
35
- smart_union = True
36
- extra = pydantic_v1.Extra.allow
37
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,45 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .connection import Connection
9
- from .source_destination_mapping import SourceDestinationMapping
10
-
11
-
12
- class PipelineResponse(pydantic_v1.BaseModel):
13
- pipeline_id: typing.Optional[str] = pydantic_v1.Field(default=None)
14
- """
15
- The ID of the pipeline
16
- """
17
-
18
- enabled: typing.Optional[bool] = None
19
- connection: typing.Optional[Connection] = None
20
- source_destination_mappings: typing.List[SourceDestinationMapping] = pydantic_v1.Field()
21
- """
22
- The source-destination mappings
23
- """
24
-
25
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
26
- created_at: typing.Optional[dt.datetime] = pydantic_v1.Field(default=None)
27
- """
28
- The creation time
29
- """
30
-
31
- last_run: typing.Optional[dt.datetime] = None
32
-
33
- def json(self, **kwargs: typing.Any) -> str:
34
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
35
- return super().json(**kwargs_with_defaults)
36
-
37
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
38
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
39
- return super().dict(**kwargs_with_defaults)
40
-
41
- class Config:
42
- frozen = True
43
- smart_union = True
44
- extra = pydantic_v1.Extra.allow
45
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,28 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class PipelineTaskResponse(pydantic_v1.BaseModel):
11
- task_id: str = pydantic_v1.Field()
12
- """
13
- The ID of the task
14
- """
15
-
16
- def json(self, **kwargs: typing.Any) -> str:
17
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
18
- return super().json(**kwargs_with_defaults)
19
-
20
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
- return super().dict(**kwargs_with_defaults)
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- extra = pydantic_v1.Extra.allow
28
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,23 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class PptParams(pydantic_v1.BaseModel):
11
- def json(self, **kwargs: typing.Any) -> str:
12
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
13
- return super().json(**kwargs_with_defaults)
14
-
15
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().dict(**kwargs_with_defaults)
18
-
19
- class Config:
20
- frozen = True
21
- smart_union = True
22
- extra = pydantic_v1.Extra.allow
23
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,23 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class PptxParams(pydantic_v1.BaseModel):
11
- def json(self, **kwargs: typing.Any) -> str:
12
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
13
- return super().json(**kwargs_with_defaults)
14
-
15
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().dict(**kwargs_with_defaults)
18
-
19
- class Config:
20
- frozen = True
21
- smart_union = True
22
- extra = pydantic_v1.Extra.allow
23
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/settings.py DELETED
@@ -1,31 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class Settings(pydantic_v1.BaseModel):
11
- system_prompt: typing.Optional[str] = None
12
- temperature: typing.Optional[float] = None
13
- max_tokens: typing.Optional[int] = None
14
- stop: typing.Optional[typing.List[str]] = None
15
- top_p: typing.Optional[float] = None
16
- frequency_penalty: typing.Optional[float] = None
17
- presence_penalty: typing.Optional[float] = None
18
-
19
- def json(self, **kwargs: typing.Any) -> str:
20
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
- return super().json(**kwargs_with_defaults)
22
-
23
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
24
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
- return super().dict(**kwargs_with_defaults)
26
-
27
- class Config:
28
- frozen = True
29
- smart_union = True
30
- extra = pydantic_v1.Extra.allow
31
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/source.py DELETED
@@ -1,39 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .field_type import FieldType
9
-
10
-
11
- class Source(pydantic_v1.BaseModel):
12
- field: str = pydantic_v1.Field()
13
- """
14
- The field name
15
- """
16
-
17
- type: FieldType = pydantic_v1.Field()
18
- """
19
- The type of the field
20
- """
21
-
22
- settings: typing.Dict[str, typing.Any] = pydantic_v1.Field()
23
- """
24
- The settings for the field
25
- """
26
-
27
- def json(self, **kwargs: typing.Any) -> str:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().json(**kwargs_with_defaults)
30
-
31
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
32
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
- return super().dict(**kwargs_with_defaults)
34
-
35
- class Config:
36
- frozen = True
37
- smart_union = True
38
- extra = pydantic_v1.Extra.allow
39
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,40 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .destination import Destination
9
- from .source import Source
10
-
11
-
12
- class SourceDestinationMapping(pydantic_v1.BaseModel):
13
- embedding_model: str = pydantic_v1.Field()
14
- """
15
- The embedding model
16
- """
17
-
18
- source: Source = pydantic_v1.Field()
19
- """
20
- The source
21
- """
22
-
23
- destination: Destination = pydantic_v1.Field()
24
- """
25
- The destination
26
- """
27
-
28
- def json(self, **kwargs: typing.Any) -> str:
29
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
30
- return super().json(**kwargs_with_defaults)
31
-
32
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
33
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
34
- return super().dict(**kwargs_with_defaults)
35
-
36
- class Config:
37
- frozen = True
38
- smart_union = True
39
- extra = pydantic_v1.Extra.allow
40
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,23 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class TxtParams(pydantic_v1.BaseModel):
11
- def json(self, **kwargs: typing.Any) -> str:
12
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
13
- return super().json(**kwargs_with_defaults)
14
-
15
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().dict(**kwargs_with_defaults)
18
-
19
- class Config:
20
- frozen = True
21
- smart_union = True
22
- extra = pydantic_v1.Extra.allow
23
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/user.py DELETED
@@ -1,32 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .api_key import ApiKey
9
- from .connection import Connection
10
-
11
-
12
- class User(pydantic_v1.BaseModel):
13
- user_id: typing.Optional[str] = None
14
- email: str
15
- api_keys: typing.Optional[typing.List[ApiKey]] = None
16
- index_ids: typing.Optional[typing.List[str]] = None
17
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
18
- connections: typing.Optional[typing.List[Connection]] = None
19
-
20
- def json(self, **kwargs: typing.Any) -> str:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
- return super().json(**kwargs_with_defaults)
23
-
24
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
- return super().dict(**kwargs_with_defaults)
27
-
28
- class Config:
29
- frozen = True
30
- smart_union = True
31
- extra = pydantic_v1.Extra.allow
32
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,28 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
- from .validation_error_loc_item import ValidationErrorLocItem
9
-
10
-
11
- class ValidationError(pydantic_v1.BaseModel):
12
- loc: typing.List[ValidationErrorLocItem]
13
- msg: str
14
- type: str
15
-
16
- def json(self, **kwargs: typing.Any) -> str:
17
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
18
- return super().json(**kwargs_with_defaults)
19
-
20
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
21
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
22
- return super().dict(**kwargs_with_defaults)
23
-
24
- class Config:
25
- frozen = True
26
- smart_union = True
27
- extra = pydantic_v1.Extra.allow
28
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- ValidationErrorLocItem = typing.Union[str, int]
@@ -1,23 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class VideoParams(pydantic_v1.BaseModel):
11
- def json(self, **kwargs: typing.Any) -> str:
12
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
13
- return super().json(**kwargs_with_defaults)
14
-
15
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().dict(**kwargs_with_defaults)
18
-
19
- class Config:
20
- frozen = True
21
- smart_union = True
22
- extra = pydantic_v1.Extra.allow
23
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,25 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import datetime as dt
4
- import typing
5
-
6
- from ..core.datetime_utils import serialize_datetime
7
- from ..core.pydantic_utilities import pydantic_v1
8
-
9
-
10
- class WorkflowCodeResponse(pydantic_v1.BaseModel):
11
- code_as_string: str
12
-
13
- def json(self, **kwargs: typing.Any) -> str:
14
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
15
- return super().json(**kwargs_with_defaults)
16
-
17
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
18
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
- return super().dict(**kwargs_with_defaults)
20
-
21
- class Config:
22
- frozen = True
23
- smart_union = True
24
- extra = pydantic_v1.Extra.allow
25
- json_encoders = {dt.datetime: serialize_datetime}