mixpeek 0.6.7__py3-none-any.whl → 0.6.9__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 (84) 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.9.dist-info/METADATA +68 -0
  10. mixpeek-0.6.9.dist-info/RECORD +13 -0
  11. {mixpeek-0.6.7.dist-info → mixpeek-0.6.9.dist-info}/WHEEL +2 -1
  12. mixpeek-0.6.9.dist-info/top_level.txt +1 -0
  13. mixpeek/base_client.py +0 -989
  14. mixpeek/core/__init__.py +0 -25
  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 -103
  21. mixpeek/core/remove_none_from_dict.py +0 -11
  22. mixpeek/core/request_options.py +0 -32
  23. mixpeek/environment.py +0 -7
  24. mixpeek/errors/__init__.py +0 -17
  25. mixpeek/errors/bad_request_error.py +0 -9
  26. mixpeek/errors/forbidden_error.py +0 -9
  27. mixpeek/errors/internal_server_error.py +0 -9
  28. mixpeek/errors/not_found_error.py +0 -9
  29. mixpeek/errors/unauthorized_error.py +0 -9
  30. mixpeek/errors/unprocessable_entity_error.py +0 -9
  31. mixpeek/pipeline/__init__.py +0 -2
  32. mixpeek/pipeline/client.py +0 -474
  33. mixpeek/storage/__init__.py +0 -5
  34. mixpeek/storage/client.py +0 -145
  35. mixpeek/storage/sample/__init__.py +0 -2
  36. mixpeek/storage/sample/client.py +0 -282
  37. mixpeek/types/__init__.py +0 -81
  38. mixpeek/types/api_key.py +0 -31
  39. mixpeek/types/audio_params.py +0 -29
  40. mixpeek/types/configs_response.py +0 -42
  41. mixpeek/types/connection.py +0 -36
  42. mixpeek/types/connection_engine.py +0 -5
  43. mixpeek/types/csv_params.py +0 -29
  44. mixpeek/types/destination.py +0 -42
  45. mixpeek/types/embedding_response.py +0 -34
  46. mixpeek/types/error_message.py +0 -29
  47. mixpeek/types/error_response.py +0 -30
  48. mixpeek/types/extract_response.py +0 -35
  49. mixpeek/types/field_type.py +0 -5
  50. mixpeek/types/generation_response.py +0 -36
  51. mixpeek/types/html_params.py +0 -29
  52. mixpeek/types/http_validation_error.py +0 -30
  53. mixpeek/types/image_params.py +0 -32
  54. mixpeek/types/message.py +0 -37
  55. mixpeek/types/metadata.py +0 -32
  56. mixpeek/types/modality.py +0 -5
  57. mixpeek/types/model.py +0 -38
  58. mixpeek/types/models.py +0 -5
  59. mixpeek/types/pdf_params.py +0 -41
  60. mixpeek/types/pipeline_response.py +0 -49
  61. mixpeek/types/pipeline_task_response.py +0 -32
  62. mixpeek/types/ppt_params.py +0 -27
  63. mixpeek/types/pptx_params.py +0 -27
  64. mixpeek/types/settings.py +0 -35
  65. mixpeek/types/source.py +0 -43
  66. mixpeek/types/source_destination_mapping.py +0 -44
  67. mixpeek/types/txt_params.py +0 -27
  68. mixpeek/types/user.py +0 -36
  69. mixpeek/types/validation_error.py +0 -32
  70. mixpeek/types/validation_error_loc_item.py +0 -5
  71. mixpeek/types/video_params.py +0 -27
  72. mixpeek/types/workflow_code_response.py +0 -29
  73. mixpeek/types/workflow_response.py +0 -32
  74. mixpeek/types/workflow_settings.py +0 -30
  75. mixpeek/types/xlsx_params.py +0 -29
  76. mixpeek/user/__init__.py +0 -2
  77. mixpeek/user/client.py +0 -308
  78. mixpeek/version.py +0 -4
  79. mixpeek/workflow/__init__.py +0 -2
  80. mixpeek/workflow/client.py +0 -535
  81. mixpeek-0.6.7.dist-info/LICENSE +0 -21
  82. mixpeek-0.6.7.dist-info/METADATA +0 -145
  83. mixpeek-0.6.7.dist-info/RECORD +0 -75
  84. /mixpeek/{py.typed → endpoints/__init__.py} +0 -0
@@ -1,35 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class ExtractResponse(pydantic.BaseModel):
15
- output: typing.Any
16
- metadata: typing.Dict[str, typing.Any] = pydantic.Field()
17
- """
18
- Metadata related to the extraction process.
19
- """
20
-
21
- elapsed_time: typing.Optional[float] = None
22
-
23
- def json(self, **kwargs: typing.Any) -> str:
24
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
- return super().json(**kwargs_with_defaults)
26
-
27
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().dict(**kwargs_with_defaults)
30
-
31
- class Config:
32
- frozen = True
33
- smart_union = True
34
- extra = pydantic.Extra.allow
35
- 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
- FieldType = typing.Union[typing.AnyStr, typing.Literal["file_url", "contents"]]
@@ -1,36 +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 .metadata import Metadata
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class GenerationResponse(pydantic.BaseModel):
16
- response: typing.Dict[str, typing.Any] = pydantic.Field()
17
- """
18
- The response from the generation.
19
- """
20
-
21
- metadata: typing.Optional[Metadata] = None
22
- elapsed_time: typing.Optional[float] = None
23
-
24
- def json(self, **kwargs: typing.Any) -> str:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
- return super().json(**kwargs_with_defaults)
27
-
28
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
29
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
30
- return super().dict(**kwargs_with_defaults)
31
-
32
- class Config:
33
- frozen = True
34
- smart_union = True
35
- extra = pydantic.Extra.allow
36
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,29 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class HtmlParams(pydantic.BaseModel):
15
- skip_headers_and_footers: typing.Optional[bool] = None
16
-
17
- def json(self, **kwargs: typing.Any) -> str:
18
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
- return super().json(**kwargs_with_defaults)
20
-
21
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
22
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
- return super().dict(**kwargs_with_defaults)
24
-
25
- class Config:
26
- frozen = True
27
- smart_union = True
28
- extra = pydantic.Extra.allow
29
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,30 +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 .validation_error import ValidationError
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class HttpValidationError(pydantic.BaseModel):
16
- detail: typing.Optional[typing.List[ValidationError]] = None
17
-
18
- def json(self, **kwargs: typing.Any) -> str:
19
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
20
- return super().json(**kwargs_with_defaults)
21
-
22
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
23
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
24
- return super().dict(**kwargs_with_defaults)
25
-
26
- class Config:
27
- frozen = True
28
- smart_union = True
29
- extra = pydantic.Extra.allow
30
- json_encoders = {dt.datetime: serialize_datetime}
@@ -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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class ImageParams(pydantic.BaseModel):
15
- strategy: typing.Optional[str] = pydantic.Field(default=None)
16
- """
17
- The strategy to use for parsing the image. Valid strategies are 'ocr', 'object', and 'auto'.
18
- """
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.Extra.allow
32
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/message.py DELETED
@@ -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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class Message(pydantic.BaseModel):
15
- role: str = pydantic.Field()
16
- """
17
- The role of the message sender.
18
- """
19
-
20
- content: str = pydantic.Field()
21
- """
22
- The content of the message.
23
- """
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.Extra.allow
37
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/metadata.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 .model import Model
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class Metadata(pydantic.BaseModel):
16
- total_tokens: typing.Optional[int] = None
17
- generation_id: typing.Optional[str] = None
18
- model: typing.Optional[Model] = 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.Extra.allow
32
- 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,38 +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 .models import Models
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class Model(pydantic.BaseModel):
16
- provider: str = pydantic.Field()
17
- """
18
- The provider of the model.
19
- """
20
-
21
- model: Models = pydantic.Field()
22
- """
23
- The model to be used.
24
- """
25
-
26
- def json(self, **kwargs: typing.Any) -> str:
27
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
28
- return super().json(**kwargs_with_defaults)
29
-
30
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
31
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
32
- return super().dict(**kwargs_with_defaults)
33
-
34
- class Config:
35
- frozen = True
36
- smart_union = True
37
- extra = pydantic.Extra.allow
38
- 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,41 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class PdfParams(pydantic.BaseModel):
15
- strategy: typing.Optional[str] = pydantic.Field(default=None)
16
- """
17
- The strategy to use for partitioning the PDF. Valid strategies are "hi_res",
18
- "ocr_only", and "fast". When using the "hi_res" strategy, the function uses
19
- a layout detection model to identify document elements. When using the
20
- "ocr_only" strategy, partition_pdf simply extracts the text from the
21
- document using OCR and processes it. If the "fast" strategy is used, the text
22
- is extracted directly from the PDF. The default strategy `auto` will determine
23
- when a page can be extracted using `fast` mode, otherwise it will fall back to `hi_res`.
24
- """
25
-
26
- infer_table_structure: typing.Optional[bool] = None
27
- hi_res_model_name: typing.Optional[str] = None
28
-
29
- def json(self, **kwargs: typing.Any) -> str:
30
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
31
- return super().json(**kwargs_with_defaults)
32
-
33
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
34
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
35
- return super().dict(**kwargs_with_defaults)
36
-
37
- class Config:
38
- frozen = True
39
- smart_union = True
40
- extra = pydantic.Extra.allow
41
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,49 +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 .connection import Connection
8
- from .source_destination_mapping import SourceDestinationMapping
9
-
10
- try:
11
- import pydantic.v1 as pydantic # type: ignore
12
- except ImportError:
13
- import pydantic # type: ignore
14
-
15
-
16
- class PipelineResponse(pydantic.BaseModel):
17
- pipeline_id: typing.Optional[str] = pydantic.Field(default=None)
18
- """
19
- The ID of the pipeline
20
- """
21
-
22
- enabled: typing.Optional[bool] = None
23
- connection: typing.Optional[Connection] = None
24
- source_destination_mappings: typing.List[SourceDestinationMapping] = pydantic.Field()
25
- """
26
- The source-destination mappings
27
- """
28
-
29
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
30
- created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
31
- """
32
- The creation time
33
- """
34
-
35
- last_run: typing.Optional[dt.datetime] = None
36
-
37
- def json(self, **kwargs: typing.Any) -> str:
38
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
39
- return super().json(**kwargs_with_defaults)
40
-
41
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
42
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
43
- return super().dict(**kwargs_with_defaults)
44
-
45
- class Config:
46
- frozen = True
47
- smart_union = True
48
- extra = pydantic.Extra.allow
49
- json_encoders = {dt.datetime: serialize_datetime}
@@ -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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class PipelineTaskResponse(pydantic.BaseModel):
15
- task_id: str = pydantic.Field()
16
- """
17
- The ID of the task
18
- """
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.Extra.allow
32
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,27 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class PptParams(pydantic.BaseModel):
15
- def json(self, **kwargs: typing.Any) -> str:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().json(**kwargs_with_defaults)
18
-
19
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
20
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
- return super().dict(**kwargs_with_defaults)
22
-
23
- class Config:
24
- frozen = True
25
- smart_union = True
26
- extra = pydantic.Extra.allow
27
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,27 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class PptxParams(pydantic.BaseModel):
15
- def json(self, **kwargs: typing.Any) -> str:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().json(**kwargs_with_defaults)
18
-
19
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
20
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
- return super().dict(**kwargs_with_defaults)
22
-
23
- class Config:
24
- frozen = True
25
- smart_union = True
26
- extra = pydantic.Extra.allow
27
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/settings.py DELETED
@@ -1,35 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class Settings(pydantic.BaseModel):
15
- system_prompt: typing.Optional[str] = None
16
- temperature: typing.Optional[float] = None
17
- max_tokens: typing.Optional[int] = None
18
- stop: typing.Optional[typing.List[str]] = None
19
- top_p: typing.Optional[float] = None
20
- frequency_penalty: typing.Optional[float] = None
21
- presence_penalty: typing.Optional[float] = None
22
-
23
- def json(self, **kwargs: typing.Any) -> str:
24
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
25
- return super().json(**kwargs_with_defaults)
26
-
27
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
28
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
29
- return super().dict(**kwargs_with_defaults)
30
-
31
- class Config:
32
- frozen = True
33
- smart_union = True
34
- extra = pydantic.Extra.allow
35
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/source.py DELETED
@@ -1,43 +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 .field_type import FieldType
8
-
9
- try:
10
- import pydantic.v1 as pydantic # type: ignore
11
- except ImportError:
12
- import pydantic # type: ignore
13
-
14
-
15
- class Source(pydantic.BaseModel):
16
- field: str = pydantic.Field()
17
- """
18
- The field name
19
- """
20
-
21
- type: FieldType = pydantic.Field()
22
- """
23
- The type of the field
24
- """
25
-
26
- settings: typing.Dict[str, typing.Any] = pydantic.Field()
27
- """
28
- The settings for the field
29
- """
30
-
31
- def json(self, **kwargs: typing.Any) -> str:
32
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
33
- return super().json(**kwargs_with_defaults)
34
-
35
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
36
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
37
- return super().dict(**kwargs_with_defaults)
38
-
39
- class Config:
40
- frozen = True
41
- smart_union = True
42
- extra = pydantic.Extra.allow
43
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,44 +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 .destination import Destination
8
- from .source import Source
9
-
10
- try:
11
- import pydantic.v1 as pydantic # type: ignore
12
- except ImportError:
13
- import pydantic # type: ignore
14
-
15
-
16
- class SourceDestinationMapping(pydantic.BaseModel):
17
- embedding_model: str = pydantic.Field()
18
- """
19
- The embedding model
20
- """
21
-
22
- source: Source = pydantic.Field()
23
- """
24
- The source
25
- """
26
-
27
- destination: Destination = pydantic.Field()
28
- """
29
- The destination
30
- """
31
-
32
- def json(self, **kwargs: typing.Any) -> str:
33
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
34
- return super().json(**kwargs_with_defaults)
35
-
36
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
37
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
38
- return super().dict(**kwargs_with_defaults)
39
-
40
- class Config:
41
- frozen = True
42
- smart_union = True
43
- extra = pydantic.Extra.allow
44
- json_encoders = {dt.datetime: serialize_datetime}
@@ -1,27 +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
-
8
- try:
9
- import pydantic.v1 as pydantic # type: ignore
10
- except ImportError:
11
- import pydantic # type: ignore
12
-
13
-
14
- class TxtParams(pydantic.BaseModel):
15
- def json(self, **kwargs: typing.Any) -> str:
16
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
- return super().json(**kwargs_with_defaults)
18
-
19
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
20
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
- return super().dict(**kwargs_with_defaults)
22
-
23
- class Config:
24
- frozen = True
25
- smart_union = True
26
- extra = pydantic.Extra.allow
27
- json_encoders = {dt.datetime: serialize_datetime}
mixpeek/types/user.py DELETED
@@ -1,36 +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 .api_key import ApiKey
8
- from .connection import Connection
9
-
10
- try:
11
- import pydantic.v1 as pydantic # type: ignore
12
- except ImportError:
13
- import pydantic # type: ignore
14
-
15
-
16
- class User(pydantic.BaseModel):
17
- user_id: typing.Optional[str] = None
18
- email: str
19
- api_keys: typing.Optional[typing.List[ApiKey]] = None
20
- index_ids: typing.Optional[typing.List[str]] = None
21
- metadata: typing.Optional[typing.Dict[str, typing.Any]] = None
22
- connections: typing.Optional[typing.List[Connection]] = None
23
-
24
- def json(self, **kwargs: typing.Any) -> str:
25
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
26
- return super().json(**kwargs_with_defaults)
27
-
28
- def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
29
- kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
30
- return super().dict(**kwargs_with_defaults)
31
-
32
- class Config:
33
- frozen = True
34
- smart_union = True
35
- extra = pydantic.Extra.allow
36
- json_encoders = {dt.datetime: serialize_datetime}