Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
bd1f835
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.357.3
speakeasybot Aug 8, 2024
cfb438f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.358.0
speakeasybot Aug 9, 2024
9997758
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.368.0
speakeasybot Aug 15, 2024
a558dec
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.376.0
speakeasybot Aug 20, 2024
23e77fe
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.383.2
speakeasybot Aug 30, 2024
82afb99
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.390.7
speakeasybot Sep 6, 2024
cc505f8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.392.1
speakeasybot Sep 7, 2024
10cf9ed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.394.0
speakeasybot Sep 10, 2024
e05c8b8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.6
speakeasybot Sep 13, 2024
827de95
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.9
speakeasybot Sep 14, 2024
d81543f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.401.2
speakeasybot Sep 21, 2024
a4ba6d4
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.405.6
speakeasybot Oct 1, 2024
1913ddd
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.406.0
speakeasybot Oct 3, 2024
fefcde1
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.411.1
speakeasybot Oct 8, 2024
eee2ba9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.413.0
speakeasybot Oct 9, 2024
75abf11
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.421.1
speakeasybot Oct 24, 2024
31c7ae3
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.423.5
speakeasybot Oct 31, 2024
043c047
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.426.0
speakeasybot Nov 5, 2024
eed2d8e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.436.0
speakeasybot Nov 9, 2024
091edf9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.443.0
speakeasybot Nov 22, 2024
849bb2f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.446.0
speakeasybot Nov 26, 2024
9f09e12
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.0
speakeasybot Nov 27, 2024
6a492c2
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.2
speakeasybot Nov 28, 2024
ae91509
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.451.5
speakeasybot Dec 5, 2024
7a89d96
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.1
speakeasybot Dec 7, 2024
76cac58
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.8
speakeasybot Dec 10, 2024
d4f0886
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.3
speakeasybot Dec 14, 2024
9f92070
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.7
speakeasybot Dec 17, 2024
d52780f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.459.2
speakeasybot Dec 21, 2024
ee2b859
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.460.2
speakeasybot Dec 24, 2024
493b426
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.462.2
speakeasybot Jan 4, 2025
b157659
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.465.1
speakeasybot Jan 9, 2025
754dcfb
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.467.0
speakeasybot Jan 10, 2025
a30160e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.6
speakeasybot Jan 15, 2025
54bdf33
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.8
speakeasybot Jan 16, 2025
08eea7e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.2
speakeasybot Jan 20, 2025
e80be87
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.11
speakeasybot Jan 21, 2025
07b580f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.474.0
speakeasybot Jan 24, 2025
4b76c49
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.476.0
speakeasybot Jan 25, 2025
e8800ac
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.477.2
speakeasybot Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.406.0
  • Loading branch information
speakeasybot committed Oct 3, 2024
commit 1913ddd591454e4856756b4e3e401fd39f15338c
1 change: 1 addition & 0 deletions template_variables/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.8
15 changes: 8 additions & 7 deletions template_variables/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ id: 5c509d65-b892-4e49-8160-6842e685ee9c
management:
docChecksum: 19642ac9925cfbd898583408571f7a7f
docVersion: 1.0.0
speakeasyVersion: 1.405.6
generationVersion: 2.428.1
releaseVersion: 1.7.1
configChecksum: 63d04a976d3914f093e2df010d126ab1
speakeasyVersion: 1.406.0
generationVersion: 2.429.0
releaseVersion: 1.8.0
configChecksum: 7fa439757e919d8de42b28d0389d15ba
repoURL: https://github.com/epilot-dev/sdk-python.git
repoSubDirectory: template_variables
installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=template_variables
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.3
core: 5.5.7
constsAndDefaults: 1.0.4
core: 5.5.8
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.1
flattening: 3.0.0
flattening: 3.1.0
globalSecurity: 3.0.2
globalSecurityCallbacks: 1.0.0
globalServerURLs: 3.0.0
Expand All @@ -29,6 +29,7 @@ features:
sdkHooks: 1.0.0
generatedFiles:
- .gitattributes
- .python-version
- .vscode/settings.json
- CONTRIBUTING.md
- USAGE.md
Expand Down
10 changes: 9 additions & 1 deletion template_variables/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,12 @@ Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.7.1] template_variables
- [python v1.7.1] template_variables

## 2024-10-03 00:27:58
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml
- Speakeasy CLI 1.406.0 (2.429.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.8.0] template_variables
3 changes: 2 additions & 1 deletion template_variables/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
sdkFlattening: true
telemetryEnabled: false
python:
version: 1.7.1
version: 1.8.0
additionalDependencies:
dev: {}
main: {}
Expand All @@ -26,6 +26,7 @@ python:
responseRequiredSep2024: false
flattenGlobalSecurity: true
flattenRequests: false
flatteningOrder: parameters-first
imports:
option: openapi
paths:
Expand Down
2 changes: 1 addition & 1 deletion template_variables/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "epilot-template-variables"
version = "1.7.1"
version = "1.8.0"
description = "Python Client SDK for Epilot"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from __future__ import annotations
from epilot_template_variables.types import BaseModel
from typing import Optional, TypedDict
from typing_extensions import NotRequired
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class CategoryResultTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from enum import Enum
from epilot_template_variables.types import BaseModel
import pydantic
from typing import List, Optional, TypedDict
from typing_extensions import Annotated, NotRequired
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class ConfigTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from enum import Enum
from epilot_template_variables.types import BaseModel
import pydantic
from typing import List, Optional, TypedDict
from typing_extensions import Annotated, NotRequired
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class CustomVariablesSearchParamsType(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from __future__ import annotations
from epilot_template_variables.types import BaseModel
from epilot_template_variables.utils import FieldMetadata, PathParamMetadata
from typing import TypedDict
from typing_extensions import Annotated
from typing_extensions import Annotated, TypedDict


class DeleteCustomVariableRequestTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from __future__ import annotations
from epilot_template_variables.types import BaseModel
from typing import Optional, TypedDict
from typing_extensions import NotRequired
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class ExternalCustomVariableTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
from epilot_template_variables.types import BaseModel
from epilot_template_variables.utils import FieldMetadata, QueryParamMetadata
from typing import Optional, TypedDict
from typing_extensions import Annotated, NotRequired
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class GetCategoriesRequestTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from __future__ import annotations
from epilot_template_variables.types import BaseModel
from epilot_template_variables.utils import FieldMetadata, PathParamMetadata
from typing import TypedDict
from typing_extensions import Annotated
from typing_extensions import Annotated, TypedDict


class GetCustomVariableRequestTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
from .variableparameters import VariableParameters, VariableParametersTypedDict
from epilot_template_variables.types import BaseModel
from typing import Optional, TypedDict
from typing_extensions import NotRequired
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class GetVariableContextRequestBodyTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
from .variableparameters import VariableParameters, VariableParametersTypedDict
from epilot_template_variables.types import BaseModel
from typing import List, Optional, TypedDict
from typing_extensions import NotRequired
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ReplaceTemplatesRequestBodyTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
from .customvariable import CustomVariable, CustomVariableTypedDict
from epilot_template_variables.types import BaseModel
from typing import List, Optional, TypedDict
from typing_extensions import NotRequired
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class SearchCustomVariablesResponseBodyTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from .templatetype import TemplateType
from epilot_template_variables.types import BaseModel
import pydantic
from typing import List, Optional, TypedDict
from typing_extensions import Annotated, NotRequired
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class SearchVariablesRequestBodyTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
from epilot_template_variables.types import BaseModel
from epilot_template_variables.utils import FieldMetadata, SecurityMetadata
from typing import Optional, TypedDict
from typing_extensions import Annotated, NotRequired
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class SecurityTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
PathParamMetadata,
RequestMetadata,
)
from typing import Optional, TypedDict
from typing_extensions import Annotated, NotRequired
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class UpdateCustomVariableRequestTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from __future__ import annotations
from epilot_template_variables.types import BaseModel
from typing import Any, Dict, Optional, TypedDict
from typing_extensions import NotRequired
from typing import Any, Dict, Optional
from typing_extensions import NotRequired, TypedDict


class VariableContextTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
UNSET_SENTINEL,
)
from pydantic import model_serializer
from typing import List, Optional, TypedDict
from typing_extensions import NotRequired
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ContextDataTypedDict(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from __future__ import annotations
from enum import Enum
from epilot_template_variables.types import BaseModel
from typing import Optional, TypedDict
from typing_extensions import NotRequired
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class VariableResultType(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class SDKConfiguration:
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "1.0.0"
sdk_version: str = "1.7.1"
gen_version: str = "2.428.1"
sdk_version: str = "1.8.0"
gen_version: str = "2.429.0"
user_agent: str = (
"speakeasy-sdk/python 1.7.1 2.428.1 1.0.0 epilot-template-variables"
"speakeasy-sdk/python 1.8.0 2.429.0 1.0.0 epilot-template-variables"
)
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
serialize_float,
serialize_int,
stream_to_text,
validate_const,
validate_decimal,
validate_float,
validate_int,
Expand Down Expand Up @@ -83,6 +84,7 @@
"unmarshal",
"unmarshal_json",
"validate_decimal",
"validate_const",
"validate_float",
"validate_int",
"validate_open_enum",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ def validate(e):
return validate


def validate_const(v):
def validate(c):
if is_optional_type(type(c)) and c is None:
return None

if v != c:
raise ValueError(f"Expected {v}")

return c

return validate


def unmarshal_json(raw, typ: Any) -> Any:
return unmarshal(from_json(raw), typ)

Expand Down