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
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
10
+
**This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
11
11
12
12
Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Flutter SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
13
13
@@ -19,7 +19,7 @@ Add this to your package's `pubspec.yaml` file:
Copy file name to clipboardExpand all lines: lib/src/client.dart
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,21 @@ abstract class Client {
79
79
/// Your secret dev API key.
80
80
ClientsetDevKey(String value);
81
81
82
+
/// Set ImpersonateUserId.
83
+
///
84
+
/// 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..
85
+
ClientsetImpersonateUserId(String value);
86
+
87
+
/// Set ImpersonateUserEmail.
88
+
///
89
+
/// 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..
90
+
ClientsetImpersonateUserEmail(String value);
91
+
92
+
/// Set ImpersonateUserPhone.
93
+
///
94
+
/// 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..
95
+
ClientsetImpersonateUserPhone(String value);
96
+
82
97
/// Add headers that should be sent with all API calls.
Copy file name to clipboardExpand all lines: lib/src/client_base.dart
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,18 @@ abstract class ClientBase implements Client {
21
21
@override
22
22
ClientBasesetDevKey(value);
23
23
24
+
/// 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.
25
+
@override
26
+
ClientBasesetImpersonateUserId(value);
27
+
28
+
/// 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.
29
+
@override
30
+
ClientBasesetImpersonateUserEmail(value);
31
+
32
+
/// 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: lib/src/client_browser.dart
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,8 @@ class ClientBrowser extends ClientBase with ClientMixin {
40
40
'x-sdk-name':'Flutter',
41
41
'x-sdk-platform':'client',
42
42
'x-sdk-language':'flutter',
43
-
'x-sdk-version':'22.0.0',
44
-
'X-Appwrite-Response-Format':'1.8.0',
43
+
'x-sdk-version':'23.0.0',
44
+
'X-Appwrite-Response-Format':'1.9.0',
45
45
};
46
46
47
47
config = {};
@@ -95,6 +95,30 @@ class ClientBrowser extends ClientBase with ClientMixin {
95
95
returnthis;
96
96
}
97
97
98
+
/// 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: lib/src/client_io.dart
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ class ClientIO extends ClientBase with ClientMixin {
58
58
'x-sdk-name':'Flutter',
59
59
'x-sdk-platform':'client',
60
60
'x-sdk-language':'flutter',
61
-
'x-sdk-version':'22.0.0',
62
-
'X-Appwrite-Response-Format':'1.8.0',
61
+
'x-sdk-version':'23.0.0',
62
+
'X-Appwrite-Response-Format':'1.9.0',
63
63
};
64
64
65
65
config = {};
@@ -121,6 +121,30 @@ class ClientIO extends ClientBase with ClientMixin {
121
121
returnthis;
122
122
}
123
123
124
+
/// 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.
0 commit comments