Skip to content

Commit c23595e

Browse files
committed
Release 1.8.7
1 parent e56d616 commit c23595e

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "flagright"
33

44
[tool.poetry]
55
name = "flagright"
6-
version = "1.8.6"
6+
version = "1.8.7"
77
description = ""
88
readme = "README.md"
99
authors = []

src/flagright/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def __init__(self, *, api_key: str, base_url: str, timeout: typing.Optional[floa
1414

1515
def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
17-
"User-Agent": "flagright/1.8.6",
17+
"User-Agent": "flagright/1.8.7",
1818
"X-Fern-Language": "Python",
1919
"X-Fern-SDK-Name": "flagright",
20-
"X-Fern-SDK-Version": "1.8.6",
20+
"X-Fern-SDK-Version": "1.8.7",
2121
}
2222
headers["x-api-key"] = self.api_key
2323
return headers

src/flagright/types/tag.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
from ..core.pydantic_utilities import UniversalBaseModel
44
import pydantic
5-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
5+
import typing_extensions
66
import typing
7+
from ..core.serialization import FieldMetadata
8+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
79

810

911
class Tag(UniversalBaseModel):
@@ -21,6 +23,13 @@ class Tag(UniversalBaseModel):
2123
Value for a given key when you are creating a custom variable
2224
"""
2325

26+
is_timestamp: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="isTimestamp")] = (
27+
pydantic.Field(default=None)
28+
)
29+
"""
30+
Flag to indicate if the tag value is a timestamp
31+
"""
32+
2433
if IS_PYDANTIC_V2:
2534
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
2635
else:

src/flagright/types/user_tag.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ class UserTag(UniversalBaseModel):
1919
Value for a given key when you are creating a custom variable
2020
"""
2121

22+
is_timestamp: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="isTimestamp")] = (
23+
pydantic.Field(default=None)
24+
)
25+
"""
26+
Flag to indicate if the tag value is a timestamp
27+
"""
28+
2229
is_editable: typing_extensions.Annotated[typing.Optional[bool], FieldMetadata(alias="isEditable")] = pydantic.Field(
2330
default=None
2431
)

0 commit comments

Comments
 (0)