skyflow-flowvault-python 1.0.0__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.
- common/.coveragerc +4 -0
- common/__init__.py +3 -0
- common/client/__init__.py +0 -0
- common/client/base_skyflow.py +345 -0
- common/client/utils/__init__.py +1 -0
- common/client/utils/_utils.py +127 -0
- common/errors/__init__.py +1 -0
- common/errors/_skyflow_error.py +17 -0
- common/generated/__init__.py +0 -0
- common/generated/rest/__init__.py +24 -0
- common/generated/rest/authentication/__init__.py +4 -0
- common/generated/rest/authentication/client.py +181 -0
- common/generated/rest/authentication/raw_client.py +241 -0
- common/generated/rest/client.py +153 -0
- common/generated/rest/core/__init__.py +52 -0
- common/generated/rest/core/api_error.py +23 -0
- common/generated/rest/core/client_wrapper.py +86 -0
- common/generated/rest/core/datetime_utils.py +28 -0
- common/generated/rest/core/file.py +67 -0
- common/generated/rest/core/force_multipart.py +16 -0
- common/generated/rest/core/http_client.py +543 -0
- common/generated/rest/core/http_response.py +55 -0
- common/generated/rest/core/jsonable_encoder.py +100 -0
- common/generated/rest/core/pydantic_utilities.py +255 -0
- common/generated/rest/core/query_encoder.py +58 -0
- common/generated/rest/core/remove_none_from_dict.py +11 -0
- common/generated/rest/core/request_options.py +35 -0
- common/generated/rest/core/serialization.py +276 -0
- common/generated/rest/environment.py +8 -0
- common/generated/rest/errors/__init__.py +9 -0
- common/generated/rest/errors/bad_request_error.py +14 -0
- common/generated/rest/errors/not_found_error.py +14 -0
- common/generated/rest/errors/unauthorized_error.py +14 -0
- common/generated/rest/py.typed +0 -0
- common/generated/rest/types/__init__.py +9 -0
- common/generated/rest/types/googlerpc_status.py +22 -0
- common/generated/rest/types/protobuf_any.py +21 -0
- common/generated/rest/types/v_1_get_auth_token_response.py +33 -0
- common/generated/rest/version.py +6 -0
- common/service_account/__init__.py +1 -0
- common/service_account/_utils.py +248 -0
- common/service_account/client/__init__.py +0 -0
- common/service_account/client/auth_client.py +13 -0
- common/utils/__init__.py +4 -0
- common/utils/_helpers.py +18 -0
- common/utils/_skyflow_messages.py +445 -0
- common/utils/_utils.py +50 -0
- common/utils/constants.py +291 -0
- common/utils/enums/__init__.py +12 -0
- common/utils/enums/content_types.py +9 -0
- common/utils/enums/detect_entities.py +73 -0
- common/utils/enums/detect_output_transcriptions.py +8 -0
- common/utils/enums/env.py +13 -0
- common/utils/enums/log_level.py +8 -0
- common/utils/enums/masking_method.py +5 -0
- common/utils/enums/redaction_type.py +7 -0
- common/utils/enums/request_method.py +8 -0
- common/utils/enums/token_mode.py +6 -0
- common/utils/enums/token_type.py +6 -0
- common/utils/logger/__init__.py +2 -0
- common/utils/logger/_log_helpers.py +47 -0
- common/utils/logger/_logger.py +50 -0
- common/utils/validations/__init__.py +11 -0
- common/utils/validations/_validations.py +267 -0
- common/vault/base_vault_client.py +122 -0
- common/vault/base_vault_controller.py +58 -0
- common/vault/data/__init__.py +2 -0
- common/vault/data/_base_insert_request.py +7 -0
- common/vault/data/_base_insert_response.py +11 -0
- skyflow/__init__.py +2 -0
- skyflow/client/__init__.py +1 -0
- skyflow/client/_http_config_builder.py +45 -0
- skyflow/client/skyflow.py +15 -0
- skyflow/error/__init__.py +3 -0
- skyflow/generated/__init__.py +0 -0
- skyflow/generated/rest/__init__.py +164 -0
- skyflow/generated/rest/_default_clients.py +32 -0
- skyflow/generated/rest/client.py +385 -0
- skyflow/generated/rest/core/__init__.py +127 -0
- skyflow/generated/rest/core/api_error.py +23 -0
- skyflow/generated/rest/core/client_wrapper.py +148 -0
- skyflow/generated/rest/core/datetime_utils.py +70 -0
- skyflow/generated/rest/core/file.py +67 -0
- skyflow/generated/rest/core/force_multipart.py +18 -0
- skyflow/generated/rest/core/http_client.py +940 -0
- skyflow/generated/rest/core/http_response.py +63 -0
- skyflow/generated/rest/core/http_sse/__init__.py +42 -0
- skyflow/generated/rest/core/http_sse/_api.py +455 -0
- skyflow/generated/rest/core/http_sse/_decoders.py +74 -0
- skyflow/generated/rest/core/http_sse/_exceptions.py +7 -0
- skyflow/generated/rest/core/http_sse/_models.py +17 -0
- skyflow/generated/rest/core/jsonable_encoder.py +133 -0
- skyflow/generated/rest/core/logging.py +107 -0
- skyflow/generated/rest/core/parse_error.py +36 -0
- skyflow/generated/rest/core/pydantic_utilities.py +486 -0
- skyflow/generated/rest/core/query_encoder.py +58 -0
- skyflow/generated/rest/core/remove_none_from_dict.py +11 -0
- skyflow/generated/rest/core/request_options.py +40 -0
- skyflow/generated/rest/core/serialization.py +347 -0
- skyflow/generated/rest/environment.py +8 -0
- skyflow/generated/rest/errors/__init__.py +53 -0
- skyflow/generated/rest/errors/bad_request_error.py +11 -0
- skyflow/generated/rest/errors/forbidden_error.py +11 -0
- skyflow/generated/rest/errors/internal_server_error.py +11 -0
- skyflow/generated/rest/errors/not_found_error.py +11 -0
- skyflow/generated/rest/errors/too_many_requests_error.py +11 -0
- skyflow/generated/rest/errors/unauthorized_error.py +11 -0
- skyflow/generated/rest/py.typed +0 -0
- skyflow/generated/rest/query/__init__.py +4 -0
- skyflow/generated/rest/query/client.py +139 -0
- skyflow/generated/rest/query/raw_client.py +239 -0
- skyflow/generated/rest/raw_client.py +86 -0
- skyflow/generated/rest/records/__init__.py +34 -0
- skyflow/generated/rest/records/client.py +685 -0
- skyflow/generated/rest/records/raw_client.py +988 -0
- skyflow/generated/rest/records/types/__init__.py +34 -0
- skyflow/generated/rest/records/types/update_request_update_type.py +5 -0
- skyflow/generated/rest/tokens/__init__.py +4 -0
- skyflow/generated/rest/tokens/client.py +246 -0
- skyflow/generated/rest/tokens/raw_client.py +507 -0
- skyflow/generated/rest/types/__init__.py +116 -0
- skyflow/generated/rest/types/column_redactions.py +33 -0
- skyflow/generated/rest/types/delete_response.py +23 -0
- skyflow/generated/rest/types/delete_response_object.py +42 -0
- skyflow/generated/rest/types/detokenize_response.py +23 -0
- skyflow/generated/rest/types/detokenize_response_object.py +54 -0
- skyflow/generated/rest/types/error_response.py +20 -0
- skyflow/generated/rest/types/error_response_error.py +28 -0
- skyflow/generated/rest/types/execute_query_record_response.py +22 -0
- skyflow/generated/rest/types/execute_query_response.py +26 -0
- skyflow/generated/rest/types/execute_query_response_metadata.py +26 -0
- skyflow/generated/rest/types/get_request_data.py +60 -0
- skyflow/generated/rest/types/get_response.py +23 -0
- skyflow/generated/rest/types/get_tokens_from_values_request_object.py +30 -0
- skyflow/generated/rest/types/get_tokens_from_values_response.py +23 -0
- skyflow/generated/rest/types/google_protobuf_value.py +8 -0
- skyflow/generated/rest/types/http_code.py +6 -0
- skyflow/generated/rest/types/insert_record_data.py +36 -0
- skyflow/generated/rest/types/insert_response.py +23 -0
- skyflow/generated/rest/types/record_response_object.py +70 -0
- skyflow/generated/rest/types/token_group_redactions.py +33 -0
- skyflow/generated/rest/types/tokenize_response_object.py +49 -0
- skyflow/generated/rest/types/unique_value.py +22 -0
- skyflow/generated/rest/types/update_record_data.py +52 -0
- skyflow/generated/rest/types/update_record_data_update_type.py +5 -0
- skyflow/generated/rest/types/update_response.py +23 -0
- skyflow/generated/rest/types/upsert.py +45 -0
- skyflow/generated/rest/types/upsert_update_type.py +5 -0
- skyflow/generated/rest/version.py +6 -0
- skyflow/service_account/__init__.py +15 -0
- skyflow/utils/__init__.py +9 -0
- skyflow/utils/_http_config.py +36 -0
- skyflow/utils/_response_parsing.py +66 -0
- skyflow/utils/_retry.py +97 -0
- skyflow/utils/_skyflow_messages.py +114 -0
- skyflow/utils/_utils.py +54 -0
- skyflow/utils/_version.py +1 -0
- skyflow/utils/enums/__init__.py +3 -0
- skyflow/utils/enums/_custom_header_key.py +10 -0
- skyflow/utils/enums/_env_urls.py +9 -0
- skyflow/utils/enums/_upsert_type.py +7 -0
- skyflow/utils/validations/__init__.py +9 -0
- skyflow/utils/validations/_validations.py +195 -0
- skyflow/vault/__init__.py +0 -0
- skyflow/vault/client/__init__.py +0 -0
- skyflow/vault/client/client.py +102 -0
- skyflow/vault/controller/__init__.py +1 -0
- skyflow/vault/controller/_vault.py +475 -0
- skyflow/vault/data/__init__.py +30 -0
- skyflow/vault/data/_column_redactions.py +4 -0
- skyflow/vault/data/_delete_options.py +8 -0
- skyflow/vault/data/_delete_request.py +5 -0
- skyflow/vault/data/_delete_response.py +9 -0
- skyflow/vault/data/_delete_response_record.py +9 -0
- skyflow/vault/data/_detokenize_options.py +8 -0
- skyflow/vault/data/_detokenize_request.py +9 -0
- skyflow/vault/data/_detokenize_response.py +9 -0
- skyflow/vault/data/_detokenize_response_record.py +16 -0
- skyflow/vault/data/_detokenize_response_record_metadata.py +10 -0
- skyflow/vault/data/_get_options.py +8 -0
- skyflow/vault/data/_get_request.py +17 -0
- skyflow/vault/data/_get_request_record.py +13 -0
- skyflow/vault/data/_get_response.py +9 -0
- skyflow/vault/data/_get_response_record.py +17 -0
- skyflow/vault/data/_insert_options.py +8 -0
- skyflow/vault/data/_insert_request.py +11 -0
- skyflow/vault/data/_insert_request_record.py +9 -0
- skyflow/vault/data/_insert_response.py +9 -0
- skyflow/vault/data/_insert_response_record.py +17 -0
- skyflow/vault/data/_request_context.py +16 -0
- skyflow/vault/data/_token.py +8 -0
- skyflow/vault/data/_token_group_redactions.py +4 -0
- skyflow/vault/data/_update_options.py +8 -0
- skyflow/vault/data/_update_request.py +11 -0
- skyflow/vault/data/_update_request_record.py +6 -0
- skyflow/vault/data/_update_response.py +9 -0
- skyflow/vault/data/_update_response_record.py +17 -0
- skyflow/vault/data/_upsert_options.py +7 -0
- skyflow_flowvault_python-1.0.0.dist-info/METADATA +896 -0
- skyflow_flowvault_python-1.0.0.dist-info/RECORD +202 -0
- skyflow_flowvault_python-1.0.0.dist-info/WHEEL +5 -0
- skyflow_flowvault_python-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DeleteResponseObject(UniversalBaseModel):
|
|
12
|
+
skyflow_id: typing_extensions.Annotated[
|
|
13
|
+
str,
|
|
14
|
+
FieldMetadata(alias="skyflowID"),
|
|
15
|
+
pydantic.Field(alias="skyflowID", description="Skyflow ID of the deleted record."),
|
|
16
|
+
]
|
|
17
|
+
"""
|
|
18
|
+
Skyflow ID of the deleted record.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
error: typing.Optional[str] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
Error message, if any.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
http_code: typing_extensions.Annotated[
|
|
27
|
+
int,
|
|
28
|
+
FieldMetadata(alias="httpCode"),
|
|
29
|
+
pydantic.Field(alias="httpCode", description="HTTP status code of the response."),
|
|
30
|
+
]
|
|
31
|
+
"""
|
|
32
|
+
HTTP status code of the response.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
if IS_PYDANTIC_V2:
|
|
36
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
37
|
+
else:
|
|
38
|
+
|
|
39
|
+
class Config:
|
|
40
|
+
frozen = True
|
|
41
|
+
smart_union = True
|
|
42
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .detokenize_response_object import DetokenizeResponseObject
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DetokenizeResponse(UniversalBaseModel):
|
|
11
|
+
response: typing.List[DetokenizeResponseObject] = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Detokenized data
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .google_protobuf_value import GoogleProtobufValue
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class DetokenizeResponseObject(UniversalBaseModel):
|
|
13
|
+
token: str = pydantic.Field()
|
|
14
|
+
"""
|
|
15
|
+
Token that was detokenized.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
value: typing.Optional[GoogleProtobufValue] = None
|
|
19
|
+
token_group_name: typing_extensions.Annotated[
|
|
20
|
+
typing.Optional[str],
|
|
21
|
+
FieldMetadata(alias="tokenGroupName"),
|
|
22
|
+
pydantic.Field(alias="tokenGroupName", description="Name of the token group."),
|
|
23
|
+
] = None
|
|
24
|
+
"""
|
|
25
|
+
Name of the token group.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
error: typing.Optional[str] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
Error message, if any.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
http_code: typing_extensions.Annotated[
|
|
34
|
+
typing.Optional[int],
|
|
35
|
+
FieldMetadata(alias="httpCode"),
|
|
36
|
+
pydantic.Field(alias="httpCode", description="HTTP status code of the response."),
|
|
37
|
+
] = None
|
|
38
|
+
"""
|
|
39
|
+
HTTP status code of the response.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
|
|
43
|
+
"""
|
|
44
|
+
Additional metadata associated with the token, such as tableName or skyflowID.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
if IS_PYDANTIC_V2:
|
|
48
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
49
|
+
else:
|
|
50
|
+
|
|
51
|
+
class Config:
|
|
52
|
+
frozen = True
|
|
53
|
+
smart_union = True
|
|
54
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .error_response_error import ErrorResponseError
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorResponse(UniversalBaseModel):
|
|
11
|
+
error: ErrorResponseError
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
class Config:
|
|
18
|
+
frozen = True
|
|
19
|
+
smart_union = True
|
|
20
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .http_code import HttpCode
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ErrorResponseError(UniversalBaseModel):
|
|
11
|
+
grpc_code: int = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
gRPC status codes. See https://grpc.io/docs/guides/status-codes.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
http_code: HttpCode
|
|
17
|
+
http_status: str
|
|
18
|
+
message: str
|
|
19
|
+
details: typing.Optional[typing.List[typing.Dict[str, typing.Any]]] = None
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
+
else:
|
|
24
|
+
|
|
25
|
+
class Config:
|
|
26
|
+
frozen = True
|
|
27
|
+
smart_union = True
|
|
28
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ExecuteQueryRecordResponse(UniversalBaseModel):
|
|
10
|
+
data: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
|
|
11
|
+
"""
|
|
12
|
+
Fields and values for the record.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .execute_query_record_response import ExecuteQueryRecordResponse
|
|
8
|
+
from .execute_query_response_metadata import ExecuteQueryResponseMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ExecuteQueryResponse(UniversalBaseModel):
|
|
12
|
+
records: typing.Optional[typing.List[ExecuteQueryRecordResponse]] = pydantic.Field(default=None)
|
|
13
|
+
"""
|
|
14
|
+
Records corresponding to the specified query.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
metadata: typing.Optional[ExecuteQueryResponseMetadata] = None
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
21
|
+
else:
|
|
22
|
+
|
|
23
|
+
class Config:
|
|
24
|
+
frozen = True
|
|
25
|
+
smart_union = True
|
|
26
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ExecuteQueryResponseMetadata(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Metadata for the query.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
columns: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Columns returned for the query.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
21
|
+
else:
|
|
22
|
+
|
|
23
|
+
class Config:
|
|
24
|
+
frozen = True
|
|
25
|
+
smart_union = True
|
|
26
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .column_redactions import ColumnRedactions
|
|
10
|
+
from .unique_value import UniqueValue
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class GetRequestData(UniversalBaseModel):
|
|
14
|
+
table_name: typing_extensions.Annotated[
|
|
15
|
+
str, FieldMetadata(alias="tableName"), pydantic.Field(alias="tableName", description="Name of the table.")
|
|
16
|
+
]
|
|
17
|
+
"""
|
|
18
|
+
Name of the table.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
skyflow_i_ds: typing_extensions.Annotated[
|
|
22
|
+
typing.List[str],
|
|
23
|
+
FieldMetadata(alias="skyflowIDs"),
|
|
24
|
+
pydantic.Field(alias="skyflowIDs", description="Skyflow IDs of the records to return."),
|
|
25
|
+
]
|
|
26
|
+
"""
|
|
27
|
+
Skyflow IDs of the records to return.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
column_redactions: typing_extensions.Annotated[
|
|
31
|
+
typing.Optional[typing.List[ColumnRedactions]],
|
|
32
|
+
FieldMetadata(alias="columnRedactions"),
|
|
33
|
+
pydantic.Field(alias="columnRedactions", description="List of columns to redact."),
|
|
34
|
+
] = None
|
|
35
|
+
"""
|
|
36
|
+
List of columns to redact.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
columns: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
40
|
+
"""
|
|
41
|
+
List of columns to return.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
unique_values: typing_extensions.Annotated[
|
|
45
|
+
typing.Optional[typing.List[UniqueValue]],
|
|
46
|
+
FieldMetadata(alias="uniqueValues"),
|
|
47
|
+
pydantic.Field(alias="uniqueValues", description="List of unique constraint values to query records by data."),
|
|
48
|
+
] = None
|
|
49
|
+
"""
|
|
50
|
+
List of unique constraint values to query records by data.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
if IS_PYDANTIC_V2:
|
|
54
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
55
|
+
else:
|
|
56
|
+
|
|
57
|
+
class Config:
|
|
58
|
+
frozen = True
|
|
59
|
+
smart_union = True
|
|
60
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .record_response_object import RecordResponseObject
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetResponse(UniversalBaseModel):
|
|
11
|
+
records: typing.List[RecordResponseObject] = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
List of fetched records. For file columns, the value in the data map is an object containing: fileName, mimeType, sizeBytes, fileStatus (PENDING | READY | FAILED | SCAN_ERROR), fileFailureReason (non-null only when fileStatus is FAILED), url (pre-signed download URL, non-null only when fileStatus is READY), and urlExpiresAt (UTC expiry of the URL).
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .google_protobuf_value import GoogleProtobufValue
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetTokensFromValuesRequestObject(UniversalBaseModel):
|
|
13
|
+
value: GoogleProtobufValue
|
|
14
|
+
token_group_name: typing_extensions.Annotated[
|
|
15
|
+
str,
|
|
16
|
+
FieldMetadata(alias="tokenGroupName"),
|
|
17
|
+
pydantic.Field(alias="tokenGroupName", description="Name of the deterministic token group."),
|
|
18
|
+
]
|
|
19
|
+
"""
|
|
20
|
+
Name of the deterministic token group.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
if IS_PYDANTIC_V2:
|
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
25
|
+
else:
|
|
26
|
+
|
|
27
|
+
class Config:
|
|
28
|
+
frozen = True
|
|
29
|
+
smart_union = True
|
|
30
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .tokenize_response_object import TokenizeResponseObject
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetTokensFromValuesResponse(UniversalBaseModel):
|
|
11
|
+
records: typing.List[TokenizeResponseObject] = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
Array of token result objects, one per input entry, in the same order as the request.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
GoogleProtobufValue = typing.Any
|
|
6
|
+
"""
|
|
7
|
+
Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
|
|
8
|
+
"""
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .upsert import Upsert
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class InsertRecordData(UniversalBaseModel):
|
|
13
|
+
data: typing.Dict[str, typing.Any] = pydantic.Field()
|
|
14
|
+
"""
|
|
15
|
+
Columns and values for the record.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
table_name: typing_extensions.Annotated[
|
|
19
|
+
typing.Optional[str],
|
|
20
|
+
FieldMetadata(alias="tableName"),
|
|
21
|
+
pydantic.Field(alias="tableName", description="Name of the table to insert data into."),
|
|
22
|
+
] = None
|
|
23
|
+
"""
|
|
24
|
+
Name of the table to insert data into.
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
upsert: typing.Optional[Upsert] = None
|
|
28
|
+
|
|
29
|
+
if IS_PYDANTIC_V2:
|
|
30
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
31
|
+
else:
|
|
32
|
+
|
|
33
|
+
class Config:
|
|
34
|
+
frozen = True
|
|
35
|
+
smart_union = True
|
|
36
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .record_response_object import RecordResponseObject
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class InsertResponse(UniversalBaseModel):
|
|
11
|
+
records: typing.List[RecordResponseObject] = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
List of inserted records.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class RecordResponseObject(UniversalBaseModel):
|
|
12
|
+
skyflow_id: typing_extensions.Annotated[
|
|
13
|
+
typing.Optional[str],
|
|
14
|
+
FieldMetadata(alias="skyflowID"),
|
|
15
|
+
pydantic.Field(alias="skyflowID", description="Skyflow ID for the inserted record"),
|
|
16
|
+
] = None
|
|
17
|
+
"""
|
|
18
|
+
Skyflow ID for the inserted record
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
tokens: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
Columns and tokens for the record.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
data: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
|
|
27
|
+
"""
|
|
28
|
+
Columns and values for the record. For file columns, the value is an object containing file metadata: fileName, mimeType, sizeBytes, fileStatus (PENDING | READY | FAILED | SCAN_ERROR), fileFailureReason (populated only when fileStatus is FAILED), url (pre-signed download URL, populated only when fileStatus is READY), and urlExpiresAt (UTC expiry of the URL).
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
hashed_data: typing_extensions.Annotated[
|
|
32
|
+
typing.Optional[typing.Dict[str, typing.Any]],
|
|
33
|
+
FieldMetadata(alias="hashedData"),
|
|
34
|
+
pydantic.Field(alias="hashedData", description="Columns and hashed values for the record."),
|
|
35
|
+
] = None
|
|
36
|
+
"""
|
|
37
|
+
Columns and hashed values for the record.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
error: typing.Optional[str] = pydantic.Field(default=None)
|
|
41
|
+
"""
|
|
42
|
+
Error message, if any.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
http_code: typing_extensions.Annotated[
|
|
46
|
+
int,
|
|
47
|
+
FieldMetadata(alias="httpCode"),
|
|
48
|
+
pydantic.Field(alias="httpCode", description="HTTP status code of the response."),
|
|
49
|
+
]
|
|
50
|
+
"""
|
|
51
|
+
HTTP status code of the response.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
table_name: typing_extensions.Annotated[
|
|
55
|
+
typing.Optional[str],
|
|
56
|
+
FieldMetadata(alias="tableName"),
|
|
57
|
+
pydantic.Field(alias="tableName", description="Name of the table that the record belongs to."),
|
|
58
|
+
] = None
|
|
59
|
+
"""
|
|
60
|
+
Name of the table that the record belongs to.
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
if IS_PYDANTIC_V2:
|
|
64
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
65
|
+
else:
|
|
66
|
+
|
|
67
|
+
class Config:
|
|
68
|
+
frozen = True
|
|
69
|
+
smart_union = True
|
|
70
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class TokenGroupRedactions(UniversalBaseModel):
|
|
12
|
+
token_group_name: typing_extensions.Annotated[
|
|
13
|
+
typing.Optional[str],
|
|
14
|
+
FieldMetadata(alias="tokenGroupName"),
|
|
15
|
+
pydantic.Field(alias="tokenGroupName", description="Name of the token group to redact."),
|
|
16
|
+
] = None
|
|
17
|
+
"""
|
|
18
|
+
Name of the token group to redact.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
redaction: typing.Optional[str] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
Name of the redaction to perform.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
if IS_PYDANTIC_V2:
|
|
27
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
28
|
+
else:
|
|
29
|
+
|
|
30
|
+
class Config:
|
|
31
|
+
frozen = True
|
|
32
|
+
smart_union = True
|
|
33
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from ..core.serialization import FieldMetadata
|
|
9
|
+
from .google_protobuf_value import GoogleProtobufValue
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TokenizeResponseObject(UniversalBaseModel):
|
|
13
|
+
token: str = pydantic.Field()
|
|
14
|
+
"""
|
|
15
|
+
Token that was generated.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
value: GoogleProtobufValue
|
|
19
|
+
token_group_name: typing_extensions.Annotated[
|
|
20
|
+
str,
|
|
21
|
+
FieldMetadata(alias="tokenGroupName"),
|
|
22
|
+
pydantic.Field(alias="tokenGroupName", description="Name of the token group."),
|
|
23
|
+
]
|
|
24
|
+
"""
|
|
25
|
+
Name of the token group.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
error: typing.Optional[str] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
Error message, if any.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
http_code: typing_extensions.Annotated[
|
|
34
|
+
typing.Optional[int],
|
|
35
|
+
FieldMetadata(alias="httpCode"),
|
|
36
|
+
pydantic.Field(alias="httpCode", description="HTTP status code of the response."),
|
|
37
|
+
] = None
|
|
38
|
+
"""
|
|
39
|
+
HTTP status code of the response.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
if IS_PYDANTIC_V2:
|
|
43
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
44
|
+
else:
|
|
45
|
+
|
|
46
|
+
class Config:
|
|
47
|
+
frozen = True
|
|
48
|
+
smart_union = True
|
|
49
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class UniqueValue(UniversalBaseModel):
|
|
10
|
+
data: typing.Dict[str, typing.Any] = pydantic.Field()
|
|
11
|
+
"""
|
|
12
|
+
Columns names and values for the unique value entry.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|