contextbase-base-client 0.5.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.
Files changed (79) hide show
  1. base_client/.fern/metadata.json +13 -0
  2. base_client/CONTRIBUTING.md +125 -0
  3. base_client/README.md +176 -0
  4. base_client/__init__.py +159 -0
  5. base_client/_default_clients.py +30 -0
  6. base_client/bases/__init__.py +34 -0
  7. base_client/bases/client.py +256 -0
  8. base_client/bases/raw_client.py +365 -0
  9. base_client/bases/types/__init__.py +34 -0
  10. base_client/bases/types/list_bases_response.py +20 -0
  11. base_client/binding_plan/__init__.py +4 -0
  12. base_client/binding_plan/client.py +108 -0
  13. base_client/binding_plan/raw_client.py +128 -0
  14. base_client/bindings/__init__.py +34 -0
  15. base_client/bindings/client.py +242 -0
  16. base_client/bindings/raw_client.py +326 -0
  17. base_client/bindings/types/__init__.py +34 -0
  18. base_client/bindings/types/list_bindings_response.py +20 -0
  19. base_client/client.py +252 -0
  20. base_client/core/__init__.py +127 -0
  21. base_client/core/api_error.py +23 -0
  22. base_client/core/client_wrapper.py +102 -0
  23. base_client/core/datetime_utils.py +70 -0
  24. base_client/core/file.py +67 -0
  25. base_client/core/force_multipart.py +18 -0
  26. base_client/core/http_client.py +839 -0
  27. base_client/core/http_response.py +59 -0
  28. base_client/core/http_sse/__init__.py +42 -0
  29. base_client/core/http_sse/_api.py +170 -0
  30. base_client/core/http_sse/_decoders.py +61 -0
  31. base_client/core/http_sse/_exceptions.py +7 -0
  32. base_client/core/http_sse/_models.py +17 -0
  33. base_client/core/jsonable_encoder.py +120 -0
  34. base_client/core/logging.py +107 -0
  35. base_client/core/parse_error.py +36 -0
  36. base_client/core/pydantic_utilities.py +508 -0
  37. base_client/core/query_encoder.py +58 -0
  38. base_client/core/remove_none_from_dict.py +11 -0
  39. base_client/core/request_options.py +35 -0
  40. base_client/core/serialization.py +347 -0
  41. base_client/dsn/__init__.py +4 -0
  42. base_client/dsn/client.py +104 -0
  43. base_client/dsn/raw_client.py +128 -0
  44. base_client/errors/__init__.py +38 -0
  45. base_client/errors/bad_request_error.py +11 -0
  46. base_client/errors/forbidden_error.py +11 -0
  47. base_client/reference.md +591 -0
  48. base_client/sync_state/__init__.py +34 -0
  49. base_client/sync_state/client.py +206 -0
  50. base_client/sync_state/raw_client.py +280 -0
  51. base_client/sync_state/types/__init__.py +34 -0
  52. base_client/sync_state/types/sync_state_input_bindings_value.py +23 -0
  53. base_client/tests/conftest.py +21 -0
  54. base_client/tests/test_aiohttp_autodetect.py +113 -0
  55. base_client/types/__init__.py +126 -0
  56. base_client/types/api_key_auth.py +19 -0
  57. base_client/types/authenticated_account_ref.py +20 -0
  58. base_client/types/base.py +23 -0
  59. base_client/types/binding.py +29 -0
  60. base_client/types/binding_auth.py +72 -0
  61. base_client/types/binding_auth_input.py +77 -0
  62. base_client/types/binding_auth_input_api_key.py +19 -0
  63. base_client/types/binding_auth_input_authenticated_account.py +20 -0
  64. base_client/types/binding_auth_input_client_credentials.py +20 -0
  65. base_client/types/binding_auth_input_none.py +17 -0
  66. base_client/types/binding_auth_none.py +17 -0
  67. base_client/types/binding_models.py +23 -0
  68. base_client/types/binding_state.py +24 -0
  69. base_client/types/binding_state_response.py +21 -0
  70. base_client/types/client_credentials_auth.py +20 -0
  71. base_client/types/dagster_all_plan_binding.py +27 -0
  72. base_client/types/dagster_all_plan_binding_mode.py +5 -0
  73. base_client/types/dagster_binding_plan_all.py +23 -0
  74. base_client/types/dsn_response.py +19 -0
  75. base_client/types/error.py +19 -0
  76. base_client/types/run_status.py +10 -0
  77. contextbase_base_client-0.5.0.dist-info/METADATA +10 -0
  78. contextbase_base_client-0.5.0.dist-info/RECORD +79 -0
  79. contextbase_base_client-0.5.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,126 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .api_key_auth import ApiKeyAuth
10
+ from .authenticated_account_ref import AuthenticatedAccountRef
11
+ from .base import Base
12
+ from .binding import Binding
13
+ from .binding_auth import (
14
+ BindingAuth,
15
+ BindingAuth_ApiKey,
16
+ BindingAuth_AuthenticatedAccount,
17
+ BindingAuth_ClientCredentials,
18
+ BindingAuth_None,
19
+ )
20
+ from .binding_auth_input import (
21
+ BindingAuthInput,
22
+ BindingAuthInput_ApiKey,
23
+ BindingAuthInput_AuthenticatedAccount,
24
+ BindingAuthInput_ClientCredentials,
25
+ BindingAuthInput_None,
26
+ )
27
+ from .binding_auth_input_api_key import BindingAuthInputApiKey
28
+ from .binding_auth_input_authenticated_account import BindingAuthInputAuthenticatedAccount
29
+ from .binding_auth_input_client_credentials import BindingAuthInputClientCredentials
30
+ from .binding_auth_input_none import BindingAuthInputNone
31
+ from .binding_auth_none import BindingAuthNone
32
+ from .binding_models import BindingModels
33
+ from .binding_state import BindingState
34
+ from .binding_state_response import BindingStateResponse
35
+ from .client_credentials_auth import ClientCredentialsAuth
36
+ from .dagster_all_plan_binding import DagsterAllPlanBinding
37
+ from .dagster_all_plan_binding_mode import DagsterAllPlanBindingMode
38
+ from .dagster_binding_plan_all import DagsterBindingPlanAll
39
+ from .dsn_response import DsnResponse
40
+ from .error import Error
41
+ from .run_status import RunStatus
42
+ _dynamic_imports: typing.Dict[str, str] = {
43
+ "ApiKeyAuth": ".api_key_auth",
44
+ "AuthenticatedAccountRef": ".authenticated_account_ref",
45
+ "Base": ".base",
46
+ "Binding": ".binding",
47
+ "BindingAuth": ".binding_auth",
48
+ "BindingAuthInput": ".binding_auth_input",
49
+ "BindingAuthInputApiKey": ".binding_auth_input_api_key",
50
+ "BindingAuthInputAuthenticatedAccount": ".binding_auth_input_authenticated_account",
51
+ "BindingAuthInputClientCredentials": ".binding_auth_input_client_credentials",
52
+ "BindingAuthInputNone": ".binding_auth_input_none",
53
+ "BindingAuthInput_ApiKey": ".binding_auth_input",
54
+ "BindingAuthInput_AuthenticatedAccount": ".binding_auth_input",
55
+ "BindingAuthInput_ClientCredentials": ".binding_auth_input",
56
+ "BindingAuthInput_None": ".binding_auth_input",
57
+ "BindingAuthNone": ".binding_auth_none",
58
+ "BindingAuth_ApiKey": ".binding_auth",
59
+ "BindingAuth_AuthenticatedAccount": ".binding_auth",
60
+ "BindingAuth_ClientCredentials": ".binding_auth",
61
+ "BindingAuth_None": ".binding_auth",
62
+ "BindingModels": ".binding_models",
63
+ "BindingState": ".binding_state",
64
+ "BindingStateResponse": ".binding_state_response",
65
+ "ClientCredentialsAuth": ".client_credentials_auth",
66
+ "DagsterAllPlanBinding": ".dagster_all_plan_binding",
67
+ "DagsterAllPlanBindingMode": ".dagster_all_plan_binding_mode",
68
+ "DagsterBindingPlanAll": ".dagster_binding_plan_all",
69
+ "DsnResponse": ".dsn_response",
70
+ "Error": ".error",
71
+ "RunStatus": ".run_status",
72
+ }
73
+
74
+
75
+ def __getattr__(attr_name: str) -> typing.Any:
76
+ module_name = _dynamic_imports.get(attr_name)
77
+ if module_name is None:
78
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
79
+ try:
80
+ module = import_module(module_name, __package__)
81
+ if module_name == f".{attr_name}":
82
+ return module
83
+ else:
84
+ return getattr(module, attr_name)
85
+ except ImportError as e:
86
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
87
+ except AttributeError as e:
88
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
89
+
90
+
91
+ def __dir__():
92
+ lazy_attrs = list(_dynamic_imports.keys())
93
+ return sorted(lazy_attrs)
94
+
95
+
96
+ __all__ = [
97
+ "ApiKeyAuth",
98
+ "AuthenticatedAccountRef",
99
+ "Base",
100
+ "Binding",
101
+ "BindingAuth",
102
+ "BindingAuthInput",
103
+ "BindingAuthInputApiKey",
104
+ "BindingAuthInputAuthenticatedAccount",
105
+ "BindingAuthInputClientCredentials",
106
+ "BindingAuthInputNone",
107
+ "BindingAuthInput_ApiKey",
108
+ "BindingAuthInput_AuthenticatedAccount",
109
+ "BindingAuthInput_ClientCredentials",
110
+ "BindingAuthInput_None",
111
+ "BindingAuthNone",
112
+ "BindingAuth_ApiKey",
113
+ "BindingAuth_AuthenticatedAccount",
114
+ "BindingAuth_ClientCredentials",
115
+ "BindingAuth_None",
116
+ "BindingModels",
117
+ "BindingState",
118
+ "BindingStateResponse",
119
+ "ClientCredentialsAuth",
120
+ "DagsterAllPlanBinding",
121
+ "DagsterAllPlanBindingMode",
122
+ "DagsterBindingPlanAll",
123
+ "DsnResponse",
124
+ "Error",
125
+ "RunStatus",
126
+ ]
@@ -0,0 +1,19 @@
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 ApiKeyAuth(UniversalBaseModel):
10
+ api_key: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ 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
+
8
+
9
+ class AuthenticatedAccountRef(UniversalBaseModel):
10
+ account_id: str
11
+ provider_id: str
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,23 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
+
9
+
10
+ class Base(UniversalBaseModel):
11
+ base_id: str
12
+ created_at: dt.datetime
13
+ name: str
14
+ updated_at: dt.datetime
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,29 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
+ from .binding_models import BindingModels
9
+
10
+
11
+ class Binding(UniversalBaseModel):
12
+ auth_type: str
13
+ base_id: str
14
+ binding_id: str
15
+ config: typing.Dict[str, typing.Any]
16
+ created_at: dt.datetime
17
+ enabled: bool
18
+ models: typing.Optional[BindingModels] = None
19
+ plugin_id: str
20
+ updated_at: dt.datetime
21
+
22
+ if IS_PYDANTIC_V2:
23
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
24
+ else:
25
+
26
+ class Config:
27
+ frozen = True
28
+ smart_union = True
29
+ extra = pydantic.Extra.allow
@@ -0,0 +1,72 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+
5
+ import typing
6
+
7
+ import pydantic
8
+ import typing_extensions
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
10
+
11
+
12
+ class BindingAuth_ApiKey(UniversalBaseModel):
13
+ type: typing.Literal["api_key"] = "api_key"
14
+ api_key: str
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
24
+
25
+
26
+ class BindingAuth_AuthenticatedAccount(UniversalBaseModel):
27
+ type: typing.Literal["authenticated_account"] = "authenticated_account"
28
+ account_id: str
29
+ provider_id: str
30
+
31
+ if IS_PYDANTIC_V2:
32
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
33
+ else:
34
+
35
+ class Config:
36
+ frozen = True
37
+ smart_union = True
38
+ extra = pydantic.Extra.allow
39
+
40
+
41
+ class BindingAuth_ClientCredentials(UniversalBaseModel):
42
+ type: typing.Literal["client_credentials"] = "client_credentials"
43
+ client_id: str
44
+ client_secret: str
45
+
46
+ if IS_PYDANTIC_V2:
47
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
48
+ else:
49
+
50
+ class Config:
51
+ frozen = True
52
+ smart_union = True
53
+ extra = pydantic.Extra.allow
54
+
55
+
56
+ class BindingAuth_None(UniversalBaseModel):
57
+ type: typing.Literal["none"] = "none"
58
+
59
+ if IS_PYDANTIC_V2:
60
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
61
+ else:
62
+
63
+ class Config:
64
+ frozen = True
65
+ smart_union = True
66
+ extra = pydantic.Extra.allow
67
+
68
+
69
+ BindingAuth = typing_extensions.Annotated[
70
+ typing.Union[BindingAuth_ApiKey, BindingAuth_AuthenticatedAccount, BindingAuth_ClientCredentials, BindingAuth_None],
71
+ pydantic.Field(discriminator="type"),
72
+ ]
@@ -0,0 +1,77 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+
5
+ import typing
6
+
7
+ import pydantic
8
+ import typing_extensions
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
10
+
11
+
12
+ class BindingAuthInput_ApiKey(UniversalBaseModel):
13
+ type: typing.Literal["api_key"] = "api_key"
14
+ api_key_secret: str
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
24
+
25
+
26
+ class BindingAuthInput_AuthenticatedAccount(UniversalBaseModel):
27
+ type: typing.Literal["authenticated_account"] = "authenticated_account"
28
+ account_id: str
29
+ provider_id: str
30
+
31
+ if IS_PYDANTIC_V2:
32
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
33
+ else:
34
+
35
+ class Config:
36
+ frozen = True
37
+ smart_union = True
38
+ extra = pydantic.Extra.allow
39
+
40
+
41
+ class BindingAuthInput_ClientCredentials(UniversalBaseModel):
42
+ type: typing.Literal["client_credentials"] = "client_credentials"
43
+ client_id: str
44
+ client_secret: str
45
+
46
+ if IS_PYDANTIC_V2:
47
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
48
+ else:
49
+
50
+ class Config:
51
+ frozen = True
52
+ smart_union = True
53
+ extra = pydantic.Extra.allow
54
+
55
+
56
+ class BindingAuthInput_None(UniversalBaseModel):
57
+ type: typing.Literal["none"] = "none"
58
+
59
+ if IS_PYDANTIC_V2:
60
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
61
+ else:
62
+
63
+ class Config:
64
+ frozen = True
65
+ smart_union = True
66
+ extra = pydantic.Extra.allow
67
+
68
+
69
+ BindingAuthInput = typing_extensions.Annotated[
70
+ typing.Union[
71
+ BindingAuthInput_ApiKey,
72
+ BindingAuthInput_AuthenticatedAccount,
73
+ BindingAuthInput_ClientCredentials,
74
+ BindingAuthInput_None,
75
+ ],
76
+ pydantic.Field(discriminator="type"),
77
+ ]
@@ -0,0 +1,19 @@
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 BindingAuthInputApiKey(UniversalBaseModel):
10
+ api_key_secret: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ 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
+
8
+
9
+ class BindingAuthInputAuthenticatedAccount(UniversalBaseModel):
10
+ account_id: str
11
+ provider_id: str
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,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
+
8
+
9
+ class BindingAuthInputClientCredentials(UniversalBaseModel):
10
+ client_id: str
11
+ client_secret: str
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,17 @@
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 BindingAuthInputNone(UniversalBaseModel):
10
+ if IS_PYDANTIC_V2:
11
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
12
+ else:
13
+
14
+ class Config:
15
+ frozen = True
16
+ smart_union = True
17
+ extra = pydantic.Extra.allow
@@ -0,0 +1,17 @@
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 BindingAuthNone(UniversalBaseModel):
10
+ if IS_PYDANTIC_V2:
11
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
12
+ else:
13
+
14
+ class Config:
15
+ frozen = True
16
+ smart_union = True
17
+ 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
+
8
+
9
+ class BindingModels(UniversalBaseModel):
10
+ active: typing.Optional[typing.List[str]] = None
11
+ filter: typing.Optional[str] = pydantic.Field(default=None)
12
+ """
13
+ DEPRECATED — unused, retained dormant. A `<path.py>:<callable>` row-filter ref; no binding sets it and per-row filtering is unwired. Use `active` for stream selection.
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,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
+ from .run_status import RunStatus
9
+
10
+
11
+ class BindingState(UniversalBaseModel):
12
+ frontier: typing.Optional[dt.datetime] = None
13
+ last_run: typing.Optional[dt.datetime] = None
14
+ last_run_status: typing.Optional[RunStatus] = None
15
+ plugin_id: str
16
+
17
+ if IS_PYDANTIC_V2:
18
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -0,0 +1,21 @@
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 .binding_state import BindingState
8
+
9
+
10
+ class BindingStateResponse(UniversalBaseModel):
11
+ bindings: typing.Dict[str, BindingState]
12
+ version: float
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ 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
+
8
+
9
+ class ClientCredentialsAuth(UniversalBaseModel):
10
+ client_id: str
11
+ client_secret: str
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,27 @@
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 .binding_auth import BindingAuth
8
+ from .binding_models import BindingModels
9
+ from .dagster_all_plan_binding_mode import DagsterAllPlanBindingMode
10
+
11
+
12
+ class DagsterAllPlanBinding(UniversalBaseModel):
13
+ auth: BindingAuth
14
+ binding_id: str
15
+ config: typing.Dict[str, typing.Any]
16
+ mode: DagsterAllPlanBindingMode
17
+ models: typing.Optional[BindingModels] = None
18
+ plugin_id: str
19
+
20
+ if IS_PYDANTIC_V2:
21
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ DagsterAllPlanBindingMode = typing.Union[typing.Literal["dagster"], typing.Any]
@@ -0,0 +1,23 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ import pydantic
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
8
+ from .dagster_all_plan_binding import DagsterAllPlanBinding
9
+
10
+
11
+ class DagsterBindingPlanAll(UniversalBaseModel):
12
+ bindings: typing.List[DagsterAllPlanBinding]
13
+ generated_at: dt.datetime
14
+ version: float
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,19 @@
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 DsnResponse(UniversalBaseModel):
10
+ dsn: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -0,0 +1,19 @@
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 Error(UniversalBaseModel):
10
+ error: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -0,0 +1,10 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ RunStatus = typing.Union[
6
+ typing.Literal[
7
+ "QUEUED", "NOT_STARTED", "MANAGED", "STARTING", "STARTED", "SUCCESS", "FAILURE", "CANCELING", "CANCELED"
8
+ ],
9
+ typing.Any,
10
+ ]