Skip to content

Commit ea0189c

Browse files
committed
Merge branch 'main' into docstrings
2 parents 4ad6220 + 6f40e07 commit ea0189c

48 files changed

Lines changed: 314 additions & 5336 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 148 additions & 778 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"start": "fake-seam-connect --seed"
1515
},
1616
"devDependencies": {
17-
"@seamapi/blueprint": "^1.0.0",
17+
"@seamapi/blueprint": "^1.1.0",
1818
"@seamapi/fake-seam-connect": "1.86.0",
19-
"@seamapi/smith": "^1.0.0",
20-
"@seamapi/types": "1.979.0",
19+
"@seamapi/smith": "^1.1.0",
20+
"@seamapi/types": "1.983.0",
2121
"change-case": "^5.4.4",
2222
"prettier": "^3.2.5"
2323
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "seam"
3-
version = "1.207.0"
3+
version = "1.208.0"
44
description = "SDK for the Seam API written in Python."
55
authors = ["Seam Labs, Inc. <engineering@getseam.com>"]
66
license = "MIT"

seam/resources/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
from .thermostat_daily_program import ThermostatDailyProgram
2525
from .thermostat_schedule import ThermostatSchedule
2626
from .unmanaged_access_code import UnmanagedAccessCode
27+
from .unmanaged_access_grant import UnmanagedAccessGrant
28+
from .unmanaged_access_method import UnmanagedAccessMethod
2729
from .unmanaged_device import UnmanagedDevice
30+
from .unmanaged_user_identity import UnmanagedUserIdentity
2831
from .user_identity import UserIdentity
2932
from .webhook import Webhook
3033
from .workspace import Workspace
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
from typing import Any, Dict, List, Optional, Union
2+
from dataclasses import dataclass
3+
from ..utils.deep_attr_dict import DeepAttrDict
4+
5+
6+
@dataclass
7+
class UnmanagedAccessGrant:
8+
access_grant_id: str
9+
access_method_ids: List[str]
10+
created_at: str
11+
display_name: str
12+
ends_at: str
13+
errors: List[Dict[str, Any]]
14+
location_ids: List[str]
15+
name: str
16+
pending_mutations: List[Dict[str, Any]]
17+
requested_access_methods: List[Dict[str, Any]]
18+
reservation_key: str
19+
space_ids: List[str]
20+
starts_at: str
21+
user_identity_id: str
22+
warnings: List[Dict[str, Any]]
23+
workspace_id: str
24+
25+
@staticmethod
26+
def from_dict(d: Dict[str, Any]):
27+
return UnmanagedAccessGrant(
28+
access_grant_id=d.get("access_grant_id", None),
29+
access_method_ids=d.get("access_method_ids", None),
30+
created_at=d.get("created_at", None),
31+
display_name=d.get("display_name", None),
32+
ends_at=d.get("ends_at", None),
33+
errors=d.get("errors", None),
34+
location_ids=d.get("location_ids", None),
35+
name=d.get("name", None),
36+
pending_mutations=d.get("pending_mutations", None),
37+
requested_access_methods=d.get("requested_access_methods", None),
38+
reservation_key=d.get("reservation_key", None),
39+
space_ids=d.get("space_ids", None),
40+
starts_at=d.get("starts_at", None),
41+
user_identity_id=d.get("user_identity_id", None),
42+
warnings=d.get("warnings", None),
43+
workspace_id=d.get("workspace_id", None),
44+
)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
from typing import Any, Dict, List, Optional, Union
2+
from dataclasses import dataclass
3+
from ..utils.deep_attr_dict import DeepAttrDict
4+
5+
6+
@dataclass
7+
class UnmanagedAccessMethod:
8+
access_method_id: str
9+
code: str
10+
created_at: str
11+
display_name: str
12+
errors: List[Dict[str, Any]]
13+
is_assignment_required: bool
14+
is_encoding_required: bool
15+
is_issued: bool
16+
is_ready_for_assignment: bool
17+
is_ready_for_encoding: bool
18+
issued_at: str
19+
mode: str
20+
pending_mutations: List[Dict[str, Any]]
21+
warnings: List[Dict[str, Any]]
22+
workspace_id: str
23+
24+
@staticmethod
25+
def from_dict(d: Dict[str, Any]):
26+
return UnmanagedAccessMethod(
27+
access_method_id=d.get("access_method_id", None),
28+
code=d.get("code", None),
29+
created_at=d.get("created_at", None),
30+
display_name=d.get("display_name", None),
31+
errors=d.get("errors", None),
32+
is_assignment_required=d.get("is_assignment_required", None),
33+
is_encoding_required=d.get("is_encoding_required", None),
34+
is_issued=d.get("is_issued", None),
35+
is_ready_for_assignment=d.get("is_ready_for_assignment", None),
36+
is_ready_for_encoding=d.get("is_ready_for_encoding", None),
37+
issued_at=d.get("issued_at", None),
38+
mode=d.get("mode", None),
39+
pending_mutations=d.get("pending_mutations", None),
40+
warnings=d.get("warnings", None),
41+
workspace_id=d.get("workspace_id", None),
42+
)
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
from typing import Any, Dict, List, Optional, Union
2+
from dataclasses import dataclass
3+
from ..utils.deep_attr_dict import DeepAttrDict
4+
5+
6+
@dataclass
7+
class UnmanagedUserIdentity:
8+
acs_user_ids: List[str]
9+
created_at: str
10+
display_name: str
11+
email_address: str
12+
errors: List[Dict[str, Any]]
13+
full_name: str
14+
phone_number: str
15+
user_identity_id: str
16+
warnings: List[Dict[str, Any]]
17+
workspace_id: str
18+
19+
@staticmethod
20+
def from_dict(d: Dict[str, Any]):
21+
return UnmanagedUserIdentity(
22+
acs_user_ids=d.get("acs_user_ids", None),
23+
created_at=d.get("created_at", None),
24+
display_name=d.get("display_name", None),
25+
email_address=d.get("email_address", None),
26+
errors=d.get("errors", None),
27+
full_name=d.get("full_name", None),
28+
phone_number=d.get("phone_number", None),
29+
user_identity_id=d.get("user_identity_id", None),
30+
warnings=d.get("warnings", None),
31+
workspace_id=d.get("workspace_id", None),
32+
)

0 commit comments

Comments
 (0)