You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes."""
88
98
89
99
self._global_headers['cookie'] =value
100
+
self._config['cookie'] =value
90
101
returnself
91
102
92
103
defset_impersonate_user_id(self, value):
93
104
"""Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data."""
"""Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data."""
"""Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data."""
Copy file name to clipboardExpand all lines: appwrite/models/project.py
+34-7Lines changed: 34 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@
6
6
from .project_auth_methodimportProjectAuthMethod
7
7
from .project_serviceimportProjectService
8
8
from .project_protocolimportProjectProtocol
9
-
from .billing_limitsimportBillingLimits
10
9
from .blockimportBlock
10
+
from .billing_limitsimportBillingLimits
11
11
12
12
classProject(AppwriteModel):
13
13
"""
@@ -25,6 +25,8 @@ class Project(AppwriteModel):
25
25
Project name.
26
26
teamid : str
27
27
Project team ID.
28
+
region : str
29
+
Project region
28
30
devkeys : List[DevKey]
29
31
Deprecated since 1.9.5: List of dev keys.
30
32
smtpenabled : bool
@@ -61,20 +63,37 @@ class Project(AppwriteModel):
61
63
List of services.
62
64
protocols : List[ProjectProtocol]
63
65
List of protocols.
64
-
region : str
65
-
Project region
66
-
billinglimits : Optional[BillingLimits]
67
-
Billing limits reached
68
66
blocks : List[Block]
69
67
Project blocks information
70
68
consoleaccessedat : str
71
69
Last time the project was accessed via console. Used with plan's projectInactivityDays to determine if project is paused.
70
+
billinglimits : Optional[BillingLimits]
71
+
Billing limits reached
72
+
oauth2serverenabled : bool
73
+
OAuth2 server status
74
+
oauth2serverauthorizationurl : str
75
+
OAuth2 server authorization URL
76
+
oauth2serverscopes : List[Any]
77
+
OAuth2 server allowed scopes
78
+
oauth2serveraccesstokenduration : float
79
+
OAuth2 server access token duration in seconds for confidential clients
80
+
oauth2serverrefreshtokenduration : float
81
+
OAuth2 server refresh token duration in seconds for confidential clients
82
+
oauth2serverpublicaccesstokenduration : float
83
+
OAuth2 server access token duration in seconds for public clients (SPAs, mobile, native)
84
+
oauth2serverpublicrefreshtokenduration : float
85
+
OAuth2 server refresh token duration in seconds for public clients (SPAs, mobile, native)
86
+
oauth2serverconfidentialpkce : bool
87
+
When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
0 commit comments