agenta 0.30.0a1__py3-none-any.whl → 0.30.0a3__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.
Potentially problematic release.
This version of agenta might be problematic. Click here for more details.
- agenta/__init__.py +1 -0
- agenta/client/backend/__init__.py +32 -3
- agenta/client/backend/access_control/__init__.py +1 -0
- agenta/client/backend/access_control/client.py +167 -0
- agenta/client/backend/apps/client.py +70 -10
- agenta/client/backend/client.py +61 -45
- agenta/client/backend/configs/client.py +6 -0
- agenta/client/backend/containers/client.py +6 -0
- agenta/client/backend/core/file.py +13 -8
- agenta/client/backend/environments/client.py +6 -0
- agenta/client/backend/evaluations/client.py +14 -1
- agenta/client/backend/evaluators/client.py +24 -0
- agenta/client/backend/observability/client.py +22 -16
- agenta/client/backend/observability_v_1/__init__.py +2 -2
- agenta/client/backend/observability_v_1/client.py +203 -0
- agenta/client/backend/observability_v_1/types/__init__.py +2 -1
- agenta/client/backend/observability_v_1/types/format.py +1 -1
- agenta/client/backend/observability_v_1/types/query_analytics_response.py +7 -0
- agenta/client/backend/scopes/__init__.py +1 -0
- agenta/client/backend/scopes/client.py +114 -0
- agenta/client/backend/testsets/client.py +305 -121
- agenta/client/backend/types/__init__.py +24 -2
- agenta/client/backend/types/analytics_response.py +24 -0
- agenta/client/backend/types/app.py +2 -1
- agenta/client/backend/types/body_import_testset.py +0 -1
- agenta/client/backend/types/bucket_dto.py +26 -0
- agenta/client/backend/types/header_dto.py +22 -0
- agenta/client/backend/types/legacy_analytics_response.py +29 -0
- agenta/client/backend/types/legacy_data_point.py +27 -0
- agenta/client/backend/types/metrics_dto.py +24 -0
- agenta/client/backend/types/permission.py +1 -0
- agenta/client/backend/types/projects_response.py +28 -0
- agenta/client/backend/types/provider_key_dto.py +23 -0
- agenta/client/backend/types/provider_kind.py +21 -0
- agenta/client/backend/types/secret_dto.py +24 -0
- agenta/client/backend/types/secret_kind.py +5 -0
- agenta/client/backend/types/secret_response_dto.py +27 -0
- agenta/client/backend/variants/client.py +66 -0
- agenta/client/backend/vault/__init__.py +1 -0
- agenta/client/backend/vault/client.py +685 -0
- agenta/client/client.py +1 -1
- agenta/sdk/__init__.py +1 -0
- agenta/sdk/agenta_init.py +47 -118
- agenta/sdk/assets.py +57 -46
- agenta/sdk/context/exporting.py +25 -0
- agenta/sdk/context/routing.py +12 -12
- agenta/sdk/context/tracing.py +26 -1
- agenta/sdk/decorators/routing.py +272 -267
- agenta/sdk/decorators/tracing.py +53 -31
- agenta/sdk/managers/config.py +8 -118
- agenta/sdk/managers/secrets.py +38 -0
- agenta/sdk/middleware/auth.py +128 -93
- agenta/sdk/middleware/cache.py +4 -0
- agenta/sdk/middleware/config.py +254 -0
- agenta/sdk/middleware/cors.py +27 -0
- agenta/sdk/middleware/otel.py +40 -0
- agenta/sdk/middleware/vault.py +158 -0
- agenta/sdk/tracing/exporters.py +40 -2
- agenta/sdk/tracing/inline.py +2 -2
- agenta/sdk/tracing/processors.py +11 -3
- agenta/sdk/tracing/tracing.py +14 -12
- agenta/sdk/utils/constants.py +1 -0
- agenta/sdk/utils/exceptions.py +20 -19
- agenta/sdk/utils/globals.py +4 -8
- agenta/sdk/utils/timing.py +58 -0
- {agenta-0.30.0a1.dist-info → agenta-0.30.0a3.dist-info}/METADATA +3 -2
- {agenta-0.30.0a1.dist-info → agenta-0.30.0a3.dist-info}/RECORD +69 -44
- {agenta-0.30.0a1.dist-info → agenta-0.30.0a3.dist-info}/WHEEL +1 -1
- agenta/client/backend/types/lm_providers_enum.py +0 -21
- agenta/sdk/tracing/context.py +0 -24
- {agenta-0.30.0a1.dist-info → agenta-0.30.0a3.dist-info}/entry_points.txt +0 -0
|
@@ -9,11 +9,13 @@ from .agenta_tree_dto import AgentaTreeDto
|
|
|
9
9
|
from .agenta_trees_response import AgentaTreesResponse
|
|
10
10
|
from .aggregated_result import AggregatedResult
|
|
11
11
|
from .aggregated_result_evaluator_config import AggregatedResultEvaluatorConfig
|
|
12
|
+
from .analytics_response import AnalyticsResponse
|
|
12
13
|
from .app import App
|
|
13
14
|
from .app_variant_response import AppVariantResponse
|
|
14
15
|
from .app_variant_revision import AppVariantRevision
|
|
15
16
|
from .base_output import BaseOutput
|
|
16
17
|
from .body_import_testset import BodyImportTestset
|
|
18
|
+
from .bucket_dto import BucketDto
|
|
17
19
|
from .collect_status_response import CollectStatusResponse
|
|
18
20
|
from .config_db import ConfigDb
|
|
19
21
|
from .config_dto import ConfigDto
|
|
@@ -41,6 +43,7 @@ from .evaluator_mapping_output_interface import EvaluatorMappingOutputInterface
|
|
|
41
43
|
from .evaluator_output_interface import EvaluatorOutputInterface
|
|
42
44
|
from .exception_dto import ExceptionDto
|
|
43
45
|
from .get_config_response import GetConfigResponse
|
|
46
|
+
from .header_dto import HeaderDto
|
|
44
47
|
from .http_validation_error import HttpValidationError
|
|
45
48
|
from .human_evaluation import HumanEvaluation
|
|
46
49
|
from .human_evaluation_scenario import HumanEvaluationScenario
|
|
@@ -50,12 +53,14 @@ from .human_evaluation_scenario_update import HumanEvaluationScenarioUpdate
|
|
|
50
53
|
from .human_evaluation_update import HumanEvaluationUpdate
|
|
51
54
|
from .image import Image
|
|
52
55
|
from .invite_request import InviteRequest
|
|
56
|
+
from .legacy_analytics_response import LegacyAnalyticsResponse
|
|
57
|
+
from .legacy_data_point import LegacyDataPoint
|
|
53
58
|
from .lifecycle_dto import LifecycleDto
|
|
54
59
|
from .link_dto import LinkDto
|
|
55
60
|
from .list_api_keys_response import ListApiKeysResponse
|
|
56
61
|
from .llm_run_rate_limit import LlmRunRateLimit
|
|
57
62
|
from .llm_tokens import LlmTokens
|
|
58
|
-
from .
|
|
63
|
+
from .metrics_dto import MetricsDto
|
|
59
64
|
from .new_human_evaluation import NewHumanEvaluation
|
|
60
65
|
from .new_testset import NewTestset
|
|
61
66
|
from .node_dto import NodeDto
|
|
@@ -73,11 +78,17 @@ from .organization_output import OrganizationOutput
|
|
|
73
78
|
from .outputs import Outputs
|
|
74
79
|
from .parent_dto import ParentDto
|
|
75
80
|
from .permission import Permission
|
|
81
|
+
from .projects_response import ProjectsResponse
|
|
82
|
+
from .provider_key_dto import ProviderKeyDto
|
|
83
|
+
from .provider_kind import ProviderKind
|
|
76
84
|
from .reference_dto import ReferenceDto
|
|
77
85
|
from .reference_request_model import ReferenceRequestModel
|
|
78
86
|
from .result import Result
|
|
79
87
|
from .root_dto import RootDto
|
|
80
88
|
from .score import Score
|
|
89
|
+
from .secret_dto import SecretDto
|
|
90
|
+
from .secret_kind import SecretKind
|
|
91
|
+
from .secret_response_dto import SecretResponseDto
|
|
81
92
|
from .simple_evaluation_output import SimpleEvaluationOutput
|
|
82
93
|
from .span import Span
|
|
83
94
|
from .span_detail import SpanDetail
|
|
@@ -118,11 +129,13 @@ __all__ = [
|
|
|
118
129
|
"AgentaTreesResponse",
|
|
119
130
|
"AggregatedResult",
|
|
120
131
|
"AggregatedResultEvaluatorConfig",
|
|
132
|
+
"AnalyticsResponse",
|
|
121
133
|
"App",
|
|
122
134
|
"AppVariantResponse",
|
|
123
135
|
"AppVariantRevision",
|
|
124
136
|
"BaseOutput",
|
|
125
137
|
"BodyImportTestset",
|
|
138
|
+
"BucketDto",
|
|
126
139
|
"CollectStatusResponse",
|
|
127
140
|
"ConfigDb",
|
|
128
141
|
"ConfigDto",
|
|
@@ -150,6 +163,7 @@ __all__ = [
|
|
|
150
163
|
"EvaluatorOutputInterface",
|
|
151
164
|
"ExceptionDto",
|
|
152
165
|
"GetConfigResponse",
|
|
166
|
+
"HeaderDto",
|
|
153
167
|
"HttpValidationError",
|
|
154
168
|
"HumanEvaluation",
|
|
155
169
|
"HumanEvaluationScenario",
|
|
@@ -159,12 +173,14 @@ __all__ = [
|
|
|
159
173
|
"HumanEvaluationUpdate",
|
|
160
174
|
"Image",
|
|
161
175
|
"InviteRequest",
|
|
176
|
+
"LegacyAnalyticsResponse",
|
|
177
|
+
"LegacyDataPoint",
|
|
162
178
|
"LifecycleDto",
|
|
163
179
|
"LinkDto",
|
|
164
180
|
"ListApiKeysResponse",
|
|
165
181
|
"LlmRunRateLimit",
|
|
166
182
|
"LlmTokens",
|
|
167
|
-
"
|
|
183
|
+
"MetricsDto",
|
|
168
184
|
"NewHumanEvaluation",
|
|
169
185
|
"NewTestset",
|
|
170
186
|
"NodeDto",
|
|
@@ -182,11 +198,17 @@ __all__ = [
|
|
|
182
198
|
"Outputs",
|
|
183
199
|
"ParentDto",
|
|
184
200
|
"Permission",
|
|
201
|
+
"ProjectsResponse",
|
|
202
|
+
"ProviderKeyDto",
|
|
203
|
+
"ProviderKind",
|
|
185
204
|
"ReferenceDto",
|
|
186
205
|
"ReferenceRequestModel",
|
|
187
206
|
"Result",
|
|
188
207
|
"RootDto",
|
|
189
208
|
"Score",
|
|
209
|
+
"SecretDto",
|
|
210
|
+
"SecretKind",
|
|
211
|
+
"SecretResponseDto",
|
|
190
212
|
"SimpleEvaluationOutput",
|
|
191
213
|
"Span",
|
|
192
214
|
"SpanDetail",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .bucket_dto import BucketDto
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AnalyticsResponse(UniversalBaseModel):
|
|
11
|
+
version: str
|
|
12
|
+
count: typing.Optional[int] = None
|
|
13
|
+
buckets: typing.List[BucketDto]
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
17
|
+
extra="allow", frozen=True
|
|
18
|
+
) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
5
4
|
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
6
|
import pydantic
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class App(UniversalBaseModel):
|
|
10
10
|
app_id: str
|
|
11
11
|
app_name: str
|
|
12
|
+
app_type: typing.Optional[str] = None
|
|
12
13
|
updated_at: str
|
|
13
14
|
|
|
14
15
|
if IS_PYDANTIC_V2:
|
|
@@ -9,7 +9,6 @@ import pydantic
|
|
|
9
9
|
class BodyImportTestset(UniversalBaseModel):
|
|
10
10
|
endpoint: typing.Optional[str] = None
|
|
11
11
|
testset_name: typing.Optional[str] = None
|
|
12
|
-
app_id: typing.Optional[str] = None
|
|
13
12
|
|
|
14
13
|
if IS_PYDANTIC_V2:
|
|
15
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import datetime as dt
|
|
5
|
+
from .metrics_dto import MetricsDto
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import typing
|
|
8
|
+
import pydantic
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class BucketDto(UniversalBaseModel):
|
|
12
|
+
timestamp: dt.datetime
|
|
13
|
+
window: int
|
|
14
|
+
total: MetricsDto
|
|
15
|
+
error: MetricsDto
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
19
|
+
extra="allow", frozen=True
|
|
20
|
+
) # 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,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class HeaderDto(UniversalBaseModel):
|
|
10
|
+
name: typing.Optional[str] = None
|
|
11
|
+
description: typing.Optional[str] = None
|
|
12
|
+
|
|
13
|
+
if IS_PYDANTIC_V2:
|
|
14
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
15
|
+
extra="allow", frozen=True
|
|
16
|
+
) # 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,29 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .legacy_data_point import LegacyDataPoint
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LegacyAnalyticsResponse(UniversalBaseModel):
|
|
11
|
+
total_count: int
|
|
12
|
+
failure_rate: float
|
|
13
|
+
total_cost: float
|
|
14
|
+
avg_cost: float
|
|
15
|
+
avg_latency: float
|
|
16
|
+
total_tokens: int
|
|
17
|
+
avg_tokens: float
|
|
18
|
+
data: typing.List[LegacyDataPoint]
|
|
19
|
+
|
|
20
|
+
if IS_PYDANTIC_V2:
|
|
21
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
22
|
+
extra="allow", frozen=True
|
|
23
|
+
) # 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,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import datetime as dt
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import typing
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LegacyDataPoint(UniversalBaseModel):
|
|
11
|
+
timestamp: dt.datetime
|
|
12
|
+
success_count: int
|
|
13
|
+
failure_count: int
|
|
14
|
+
cost: float
|
|
15
|
+
latency: float
|
|
16
|
+
total_tokens: int
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
20
|
+
extra="allow", frozen=True
|
|
21
|
+
) # 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,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MetricsDto(UniversalBaseModel):
|
|
10
|
+
count: typing.Optional[int] = None
|
|
11
|
+
duration: typing.Optional[float] = None
|
|
12
|
+
cost: typing.Optional[float] = None
|
|
13
|
+
tokens: typing.Optional[int] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
17
|
+
extra="allow", frozen=True
|
|
18
|
+
) # 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,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import pydantic
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ProjectsResponse(UniversalBaseModel):
|
|
10
|
+
organization_id: typing.Optional[str] = None
|
|
11
|
+
organization_name: typing.Optional[str] = None
|
|
12
|
+
workspace_id: typing.Optional[str] = None
|
|
13
|
+
workspace_name: typing.Optional[str] = None
|
|
14
|
+
project_id: str
|
|
15
|
+
project_name: str
|
|
16
|
+
user_role: typing.Optional[str] = None
|
|
17
|
+
is_demo: typing.Optional[bool] = None
|
|
18
|
+
|
|
19
|
+
if IS_PYDANTIC_V2:
|
|
20
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
21
|
+
extra="allow", frozen=True
|
|
22
|
+
) # 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,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
from .provider_kind import ProviderKind
|
|
5
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
+
import typing
|
|
7
|
+
import pydantic
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ProviderKeyDto(UniversalBaseModel):
|
|
11
|
+
provider: ProviderKind
|
|
12
|
+
key: str
|
|
13
|
+
|
|
14
|
+
if IS_PYDANTIC_V2:
|
|
15
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
16
|
+
extra="allow", frozen=True
|
|
17
|
+
) # 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,21 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
ProviderKind = typing.Union[
|
|
6
|
+
typing.Literal[
|
|
7
|
+
"openai",
|
|
8
|
+
"cohere",
|
|
9
|
+
"anyscale",
|
|
10
|
+
"deepinfra",
|
|
11
|
+
"alephalpha",
|
|
12
|
+
"groq",
|
|
13
|
+
"mistralai",
|
|
14
|
+
"anthropic",
|
|
15
|
+
"perplexityai",
|
|
16
|
+
"togetherai",
|
|
17
|
+
"openrouter",
|
|
18
|
+
"gemini",
|
|
19
|
+
],
|
|
20
|
+
typing.Any,
|
|
21
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
from .secret_kind import SecretKind
|
|
5
|
+
from .provider_key_dto import ProviderKeyDto
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
import typing
|
|
8
|
+
import pydantic
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SecretDto(UniversalBaseModel):
|
|
12
|
+
kind: SecretKind = "provider_key"
|
|
13
|
+
data: ProviderKeyDto
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
17
|
+
extra="allow", frozen=True
|
|
18
|
+
) # 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,27 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
from .header_dto import HeaderDto
|
|
6
|
+
from .secret_dto import SecretDto
|
|
7
|
+
from .lifecycle_dto import LifecycleDto
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SecretResponseDto(UniversalBaseModel):
|
|
13
|
+
header: typing.Optional[HeaderDto] = None
|
|
14
|
+
secret: SecretDto
|
|
15
|
+
id: str
|
|
16
|
+
lifecycle: typing.Optional[LifecycleDto] = None
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
20
|
+
extra="allow", frozen=True
|
|
21
|
+
) # type: ignore # Pydantic v2
|
|
22
|
+
else:
|
|
23
|
+
|
|
24
|
+
class Config:
|
|
25
|
+
frozen = True
|
|
26
|
+
smart_union = True
|
|
27
|
+
extra = pydantic.Extra.allow
|
|
@@ -97,6 +97,9 @@ class VariantsClient:
|
|
|
97
97
|
"new_config_name": new_config_name,
|
|
98
98
|
"parameters": parameters,
|
|
99
99
|
},
|
|
100
|
+
headers={
|
|
101
|
+
"content-type": "application/json",
|
|
102
|
+
},
|
|
100
103
|
request_options=request_options,
|
|
101
104
|
omit=OMIT,
|
|
102
105
|
)
|
|
@@ -249,6 +252,9 @@ class VariantsClient:
|
|
|
249
252
|
object_=env_vars, annotation=DockerEnvVars, direction="write"
|
|
250
253
|
),
|
|
251
254
|
},
|
|
255
|
+
headers={
|
|
256
|
+
"content-type": "application/json",
|
|
257
|
+
},
|
|
252
258
|
request_options=request_options,
|
|
253
259
|
omit=OMIT,
|
|
254
260
|
)
|
|
@@ -399,6 +405,9 @@ class VariantsClient:
|
|
|
399
405
|
json={
|
|
400
406
|
"parameters": parameters,
|
|
401
407
|
},
|
|
408
|
+
headers={
|
|
409
|
+
"content-type": "application/json",
|
|
410
|
+
},
|
|
402
411
|
request_options=request_options,
|
|
403
412
|
omit=OMIT,
|
|
404
413
|
)
|
|
@@ -757,6 +766,9 @@ class VariantsClient:
|
|
|
757
766
|
direction="write",
|
|
758
767
|
),
|
|
759
768
|
},
|
|
769
|
+
headers={
|
|
770
|
+
"content-type": "application/json",
|
|
771
|
+
},
|
|
760
772
|
request_options=request_options,
|
|
761
773
|
omit=OMIT,
|
|
762
774
|
)
|
|
@@ -839,6 +851,9 @@ class VariantsClient:
|
|
|
839
851
|
direction="write",
|
|
840
852
|
),
|
|
841
853
|
},
|
|
854
|
+
headers={
|
|
855
|
+
"content-type": "application/json",
|
|
856
|
+
},
|
|
842
857
|
request_options=request_options,
|
|
843
858
|
omit=OMIT,
|
|
844
859
|
)
|
|
@@ -921,6 +936,9 @@ class VariantsClient:
|
|
|
921
936
|
direction="write",
|
|
922
937
|
),
|
|
923
938
|
},
|
|
939
|
+
headers={
|
|
940
|
+
"content-type": "application/json",
|
|
941
|
+
},
|
|
924
942
|
request_options=request_options,
|
|
925
943
|
omit=OMIT,
|
|
926
944
|
)
|
|
@@ -989,6 +1007,9 @@ class VariantsClient:
|
|
|
989
1007
|
object_=config, annotation=ConfigDto, direction="write"
|
|
990
1008
|
),
|
|
991
1009
|
},
|
|
1010
|
+
headers={
|
|
1011
|
+
"content-type": "application/json",
|
|
1012
|
+
},
|
|
992
1013
|
request_options=request_options,
|
|
993
1014
|
omit=OMIT,
|
|
994
1015
|
)
|
|
@@ -1074,6 +1095,9 @@ class VariantsClient:
|
|
|
1074
1095
|
direction="write",
|
|
1075
1096
|
),
|
|
1076
1097
|
},
|
|
1098
|
+
headers={
|
|
1099
|
+
"content-type": "application/json",
|
|
1100
|
+
},
|
|
1077
1101
|
request_options=request_options,
|
|
1078
1102
|
omit=OMIT,
|
|
1079
1103
|
)
|
|
@@ -1150,6 +1174,9 @@ class VariantsClient:
|
|
|
1150
1174
|
direction="write",
|
|
1151
1175
|
),
|
|
1152
1176
|
},
|
|
1177
|
+
headers={
|
|
1178
|
+
"content-type": "application/json",
|
|
1179
|
+
},
|
|
1153
1180
|
request_options=request_options,
|
|
1154
1181
|
omit=OMIT,
|
|
1155
1182
|
)
|
|
@@ -1216,6 +1243,9 @@ class VariantsClient:
|
|
|
1216
1243
|
object_=application_ref, annotation=ReferenceDto, direction="write"
|
|
1217
1244
|
),
|
|
1218
1245
|
},
|
|
1246
|
+
headers={
|
|
1247
|
+
"content-type": "application/json",
|
|
1248
|
+
},
|
|
1219
1249
|
request_options=request_options,
|
|
1220
1250
|
omit=OMIT,
|
|
1221
1251
|
)
|
|
@@ -1292,6 +1322,9 @@ class VariantsClient:
|
|
|
1292
1322
|
direction="write",
|
|
1293
1323
|
),
|
|
1294
1324
|
},
|
|
1325
|
+
headers={
|
|
1326
|
+
"content-type": "application/json",
|
|
1327
|
+
},
|
|
1295
1328
|
request_options=request_options,
|
|
1296
1329
|
omit=OMIT,
|
|
1297
1330
|
)
|
|
@@ -1397,6 +1430,9 @@ class AsyncVariantsClient:
|
|
|
1397
1430
|
"new_config_name": new_config_name,
|
|
1398
1431
|
"parameters": parameters,
|
|
1399
1432
|
},
|
|
1433
|
+
headers={
|
|
1434
|
+
"content-type": "application/json",
|
|
1435
|
+
},
|
|
1400
1436
|
request_options=request_options,
|
|
1401
1437
|
omit=OMIT,
|
|
1402
1438
|
)
|
|
@@ -1565,6 +1601,9 @@ class AsyncVariantsClient:
|
|
|
1565
1601
|
object_=env_vars, annotation=DockerEnvVars, direction="write"
|
|
1566
1602
|
),
|
|
1567
1603
|
},
|
|
1604
|
+
headers={
|
|
1605
|
+
"content-type": "application/json",
|
|
1606
|
+
},
|
|
1568
1607
|
request_options=request_options,
|
|
1569
1608
|
omit=OMIT,
|
|
1570
1609
|
)
|
|
@@ -1731,6 +1770,9 @@ class AsyncVariantsClient:
|
|
|
1731
1770
|
json={
|
|
1732
1771
|
"parameters": parameters,
|
|
1733
1772
|
},
|
|
1773
|
+
headers={
|
|
1774
|
+
"content-type": "application/json",
|
|
1775
|
+
},
|
|
1734
1776
|
request_options=request_options,
|
|
1735
1777
|
omit=OMIT,
|
|
1736
1778
|
)
|
|
@@ -2129,6 +2171,9 @@ class AsyncVariantsClient:
|
|
|
2129
2171
|
direction="write",
|
|
2130
2172
|
),
|
|
2131
2173
|
},
|
|
2174
|
+
headers={
|
|
2175
|
+
"content-type": "application/json",
|
|
2176
|
+
},
|
|
2132
2177
|
request_options=request_options,
|
|
2133
2178
|
omit=OMIT,
|
|
2134
2179
|
)
|
|
@@ -2219,6 +2264,9 @@ class AsyncVariantsClient:
|
|
|
2219
2264
|
direction="write",
|
|
2220
2265
|
),
|
|
2221
2266
|
},
|
|
2267
|
+
headers={
|
|
2268
|
+
"content-type": "application/json",
|
|
2269
|
+
},
|
|
2222
2270
|
request_options=request_options,
|
|
2223
2271
|
omit=OMIT,
|
|
2224
2272
|
)
|
|
@@ -2309,6 +2357,9 @@ class AsyncVariantsClient:
|
|
|
2309
2357
|
direction="write",
|
|
2310
2358
|
),
|
|
2311
2359
|
},
|
|
2360
|
+
headers={
|
|
2361
|
+
"content-type": "application/json",
|
|
2362
|
+
},
|
|
2312
2363
|
request_options=request_options,
|
|
2313
2364
|
omit=OMIT,
|
|
2314
2365
|
)
|
|
@@ -2385,6 +2436,9 @@ class AsyncVariantsClient:
|
|
|
2385
2436
|
object_=config, annotation=ConfigDto, direction="write"
|
|
2386
2437
|
),
|
|
2387
2438
|
},
|
|
2439
|
+
headers={
|
|
2440
|
+
"content-type": "application/json",
|
|
2441
|
+
},
|
|
2388
2442
|
request_options=request_options,
|
|
2389
2443
|
omit=OMIT,
|
|
2390
2444
|
)
|
|
@@ -2478,6 +2532,9 @@ class AsyncVariantsClient:
|
|
|
2478
2532
|
direction="write",
|
|
2479
2533
|
),
|
|
2480
2534
|
},
|
|
2535
|
+
headers={
|
|
2536
|
+
"content-type": "application/json",
|
|
2537
|
+
},
|
|
2481
2538
|
request_options=request_options,
|
|
2482
2539
|
omit=OMIT,
|
|
2483
2540
|
)
|
|
@@ -2562,6 +2619,9 @@ class AsyncVariantsClient:
|
|
|
2562
2619
|
direction="write",
|
|
2563
2620
|
),
|
|
2564
2621
|
},
|
|
2622
|
+
headers={
|
|
2623
|
+
"content-type": "application/json",
|
|
2624
|
+
},
|
|
2565
2625
|
request_options=request_options,
|
|
2566
2626
|
omit=OMIT,
|
|
2567
2627
|
)
|
|
@@ -2636,6 +2696,9 @@ class AsyncVariantsClient:
|
|
|
2636
2696
|
object_=application_ref, annotation=ReferenceDto, direction="write"
|
|
2637
2697
|
),
|
|
2638
2698
|
},
|
|
2699
|
+
headers={
|
|
2700
|
+
"content-type": "application/json",
|
|
2701
|
+
},
|
|
2639
2702
|
request_options=request_options,
|
|
2640
2703
|
omit=OMIT,
|
|
2641
2704
|
)
|
|
@@ -2720,6 +2783,9 @@ class AsyncVariantsClient:
|
|
|
2720
2783
|
direction="write",
|
|
2721
2784
|
),
|
|
2722
2785
|
},
|
|
2786
|
+
headers={
|
|
2787
|
+
"content-type": "application/json",
|
|
2788
|
+
},
|
|
2723
2789
|
request_options=request_options,
|
|
2724
2790
|
omit=OMIT,
|
|
2725
2791
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|