amigo_sdk 0.97.0__py3-none-any.whl → 0.98.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.
- amigo_sdk/__init__.py +1 -1
- amigo_sdk/generated/model.py +1 -1
- amigo_sdk/resources/user.py +16 -0
- {amigo_sdk-0.97.0.dist-info → amigo_sdk-0.98.0.dist-info}/METADATA +1 -1
- {amigo_sdk-0.97.0.dist-info → amigo_sdk-0.98.0.dist-info}/RECORD +8 -8
- {amigo_sdk-0.97.0.dist-info → amigo_sdk-0.98.0.dist-info}/WHEEL +0 -0
- {amigo_sdk-0.97.0.dist-info → amigo_sdk-0.98.0.dist-info}/entry_points.txt +0 -0
- {amigo_sdk-0.97.0.dist-info → amigo_sdk-0.98.0.dist-info}/licenses/LICENSE +0 -0
amigo_sdk/__init__.py
CHANGED
amigo_sdk/generated/model.py
CHANGED
amigo_sdk/resources/user.py
CHANGED
|
@@ -2,6 +2,7 @@ from amigo_sdk.generated.model import (
|
|
|
2
2
|
GetUsersParametersQuery,
|
|
3
3
|
UserCreateInvitedUserRequest,
|
|
4
4
|
UserCreateInvitedUserResponse,
|
|
5
|
+
UserGetUserModelResponse,
|
|
5
6
|
UserGetUsersResponse,
|
|
6
7
|
UserUpdateUserInfoRequest,
|
|
7
8
|
)
|
|
@@ -54,6 +55,14 @@ class AsyncUserResource:
|
|
|
54
55
|
json=body.model_dump(mode="json", exclude_none=True),
|
|
55
56
|
)
|
|
56
57
|
|
|
58
|
+
async def get_user_model(self, user_id: str) -> UserGetUserModelResponse:
|
|
59
|
+
"""Get the latest user model for a user."""
|
|
60
|
+
response = await self._http.request(
|
|
61
|
+
"GET",
|
|
62
|
+
f"/v1/{self._organization_id}/user/{user_id}/user_model",
|
|
63
|
+
)
|
|
64
|
+
return UserGetUserModelResponse.model_validate_json(response.text)
|
|
65
|
+
|
|
57
66
|
|
|
58
67
|
class UserResource:
|
|
59
68
|
"""User resource (synchronous)."""
|
|
@@ -93,3 +102,10 @@ class UserResource:
|
|
|
93
102
|
f"/v1/{self._organization_id}/user/{user_id}",
|
|
94
103
|
json=body.model_dump(mode="json", exclude_none=True),
|
|
95
104
|
)
|
|
105
|
+
|
|
106
|
+
def get_user_model(self, user_id: str) -> UserGetUserModelResponse:
|
|
107
|
+
response = self._http.request(
|
|
108
|
+
"GET",
|
|
109
|
+
f"/v1/{self._organization_id}/user/{user_id}/user_model",
|
|
110
|
+
)
|
|
111
|
+
return UserGetUserModelResponse.model_validate_json(response.text)
|
|
@@ -2,7 +2,7 @@ scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
scripts/aliases.json,sha256=c1_bkZyvNDQ8iMrKtUuZQqdP87GdLnRPrb3wjX533eQ,322
|
|
3
3
|
scripts/check.py,sha256=ikFavw1IjX51FNjO-kIzXjYdep3on0dKZHYvPElPFtc,2872
|
|
4
4
|
scripts/gen_models.py,sha256=c4J_gHYQIBL3CcKg5z8oUusLvPePytfvLdZ7STHBcNk,3553
|
|
5
|
-
amigo_sdk/__init__.py,sha256=
|
|
5
|
+
amigo_sdk/__init__.py,sha256=SKegkSGR5Jguo83Iqy3NO1YcX0ctgzamLo5mVpq0ens,139
|
|
6
6
|
amigo_sdk/_retry_utils.py,sha256=VbA_Uwv268J80d11R9XfnCjZiV-NwE1aXRsSlRjjRio,2108
|
|
7
7
|
amigo_sdk/auth.py,sha256=WaM9PcEcnaC6CzNsgRKueHkdSAxNbRylzpR_3Q6guQ0,1765
|
|
8
8
|
amigo_sdk/config.py,sha256=0eZIo-hcJ8ODftKAr-mwB-FGJxGO5PT5T4dRpyWPqAg,1491
|
|
@@ -10,13 +10,13 @@ amigo_sdk/errors.py,sha256=Yn12AxIQ6zE9jnGLWO0MUVbBsmw77Kzh82AijyreOkA,4818
|
|
|
10
10
|
amigo_sdk/http_client.py,sha256=tfMXHqMTmlz2ja7aJhOVgbwAiJNlKCzPcK4UGNqXHO8,13488
|
|
11
11
|
amigo_sdk/models.py,sha256=V-G6iL43_ZNOPDcatCJCSszGWGz-nzp_RSyGNm-rBAc,45
|
|
12
12
|
amigo_sdk/sdk_client.py,sha256=5nj8hzjHSFRs9JMNabdYIhQAcFE2G1jI_r7SHVGr9No,6106
|
|
13
|
-
amigo_sdk/generated/model.py,sha256=
|
|
13
|
+
amigo_sdk/generated/model.py,sha256=TF46V7sugZT_tQcTCYghnb1SjpbCYj74tY__yPQL_Cw,446306
|
|
14
14
|
amigo_sdk/resources/conversation.py,sha256=X47PbPA6NqdkqXgxAPOjlO1E0W7t695tn1tPWSikMOk,14807
|
|
15
15
|
amigo_sdk/resources/organization.py,sha256=yX4UlOHNegRzFW4gCJrCxjiLCAGnGegasjviR1yad_Q,1211
|
|
16
16
|
amigo_sdk/resources/service.py,sha256=t1iA3nS9co-wuR-x5jBhAXXTWfMeGsLwfQcLycwVrCA,1536
|
|
17
|
-
amigo_sdk/resources/user.py,sha256=
|
|
18
|
-
amigo_sdk-0.
|
|
19
|
-
amigo_sdk-0.
|
|
20
|
-
amigo_sdk-0.
|
|
21
|
-
amigo_sdk-0.
|
|
22
|
-
amigo_sdk-0.
|
|
17
|
+
amigo_sdk/resources/user.py,sha256=P14lN-3fmIvELUjn_vpSaYpNsK-xd8zNmUV_KfcZPAU,4138
|
|
18
|
+
amigo_sdk-0.98.0.dist-info/METADATA,sha256=VuYRbvGyFOV6VDvOLKheyRe7m16wXwrY4FLRBBtmL3A,8499
|
|
19
|
+
amigo_sdk-0.98.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
20
|
+
amigo_sdk-0.98.0.dist-info/entry_points.txt,sha256=ivKZ8S9W6SH796zUDHeM-qHodrwmkmUItophi-jJWK0,82
|
|
21
|
+
amigo_sdk-0.98.0.dist-info/licenses/LICENSE,sha256=tx3FiTVbGxwBUOxQbNh05AAQlC2jd5hGvNpIkSfVbCo,1062
|
|
22
|
+
amigo_sdk-0.98.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|