@appwrite.io/console 0.3.0 → 0.4.1
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.
- package/.github/workflows/publish.yml +2 -2
- package/README.md +3 -3
- package/dist/cjs/sdk.js +1354 -1197
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1354 -1197
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1354 -1197
- package/docs/examples/functions/create.md +1 -1
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/{projects/get-usage.md → health/get-queue-builds.md} +3 -3
- package/docs/examples/{account/create-with-invite-code.md → health/get-queue-databases.md} +3 -3
- package/docs/examples/health/get-queue-deletes.md +18 -0
- package/docs/examples/health/get-queue-mails.md +18 -0
- package/docs/examples/health/get-queue-messaging.md +18 -0
- package/docs/examples/health/get-queue-migrations.md +18 -0
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/package.json +3 -2
- package/src/client.ts +1 -1
- package/src/models.ts +147 -279
- package/src/query.ts +1 -1
- package/src/role.ts +72 -6
- package/src/services/account.ts +154 -204
- package/src/services/assistant.ts +3 -3
- package/src/services/avatars.ts +32 -31
- package/src/services/console.ts +4 -4
- package/src/services/databases.ts +195 -195
- package/src/services/functions.ts +117 -126
- package/src/services/graphql.ts +8 -8
- package/src/services/health.ts +219 -50
- package/src/services/locale.ts +31 -31
- package/src/services/migrations.ts +48 -48
- package/src/services/project.ts +40 -22
- package/src/services/projects.ts +143 -170
- package/src/services/proxy.ts +15 -15
- package/src/services/storage.ts +74 -84
- package/src/services/teams.ts +62 -66
- package/src/services/users.ts +132 -135
- package/src/services/vcs.ts +27 -27
- package/types/models.d.ts +147 -279
- package/types/role.d.ts +62 -0
- package/types/services/account.d.ts +61 -70
- package/types/services/avatars.d.ts +11 -10
- package/types/services/console.d.ts +1 -1
- package/types/services/databases.d.ts +51 -51
- package/types/services/functions.d.ts +32 -27
- package/types/services/graphql.d.ts +2 -2
- package/types/services/health.d.ts +85 -14
- package/types/services/locale.d.ts +7 -7
- package/types/services/project.d.ts +4 -2
- package/types/services/projects.d.ts +26 -36
- package/types/services/storage.d.ts +13 -13
- package/types/services/teams.d.ts +20 -20
- package/types/services/users.d.ts +45 -44
|
@@ -4,7 +4,7 @@ import type { Models } from '../models';
|
|
|
4
4
|
export declare class Teams extends Service {
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* List
|
|
7
|
+
* List teams
|
|
8
8
|
*
|
|
9
9
|
* Get a list of all the teams in which the current user is a member. You can
|
|
10
10
|
* use the parameters to filter your results.
|
|
@@ -16,7 +16,7 @@ export declare class Teams extends Service {
|
|
|
16
16
|
*/
|
|
17
17
|
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create team
|
|
20
20
|
*
|
|
21
21
|
* Create a new team. The user who creates the team will automatically be
|
|
22
22
|
* assigned as the owner of the team. Only the users with the owner role can
|
|
@@ -30,7 +30,7 @@ export declare class Teams extends Service {
|
|
|
30
30
|
*/
|
|
31
31
|
create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>>;
|
|
32
32
|
/**
|
|
33
|
-
* Get
|
|
33
|
+
* Get team
|
|
34
34
|
*
|
|
35
35
|
* Get a team by its ID. All team members have read access for this resource.
|
|
36
36
|
*
|
|
@@ -40,7 +40,7 @@ export declare class Teams extends Service {
|
|
|
40
40
|
*/
|
|
41
41
|
get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>>;
|
|
42
42
|
/**
|
|
43
|
-
* Update
|
|
43
|
+
* Update name
|
|
44
44
|
*
|
|
45
45
|
* Update the team's name by its unique ID.
|
|
46
46
|
*
|
|
@@ -51,7 +51,7 @@ export declare class Teams extends Service {
|
|
|
51
51
|
*/
|
|
52
52
|
updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>>;
|
|
53
53
|
/**
|
|
54
|
-
* Delete
|
|
54
|
+
* Delete team
|
|
55
55
|
*
|
|
56
56
|
* Delete a team using its ID. Only team members with the owner role can
|
|
57
57
|
* delete the team.
|
|
@@ -62,7 +62,7 @@ export declare class Teams extends Service {
|
|
|
62
62
|
*/
|
|
63
63
|
delete(teamId: string): Promise<{}>;
|
|
64
64
|
/**
|
|
65
|
-
* List
|
|
65
|
+
* List team logs
|
|
66
66
|
*
|
|
67
67
|
* Get the team activity logs list by its unique ID.
|
|
68
68
|
*
|
|
@@ -73,7 +73,7 @@ export declare class Teams extends Service {
|
|
|
73
73
|
*/
|
|
74
74
|
listLogs(teamId: string, queries?: string[]): Promise<Models.LogList>;
|
|
75
75
|
/**
|
|
76
|
-
* List
|
|
76
|
+
* List team memberships
|
|
77
77
|
*
|
|
78
78
|
* Use this endpoint to list a team's members using the team's ID. All team
|
|
79
79
|
* members have read access to this endpoint.
|
|
@@ -86,7 +86,7 @@ export declare class Teams extends Service {
|
|
|
86
86
|
*/
|
|
87
87
|
listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList>;
|
|
88
88
|
/**
|
|
89
|
-
* Create
|
|
89
|
+
* Create team membership
|
|
90
90
|
*
|
|
91
91
|
* Invite a new member to join your team. Provide an ID for existing users, or
|
|
92
92
|
* invite unregistered users using an email or phone number. If initiated from
|
|
@@ -101,8 +101,8 @@ export declare class Teams extends Service {
|
|
|
101
101
|
*
|
|
102
102
|
* Use the `url` parameter to redirect the user from the invitation email to
|
|
103
103
|
* your app. After the user is redirected, use the [Update Team Membership
|
|
104
|
-
* Status](/docs/client/teams#
|
|
105
|
-
* the user to accept the invitation to the team.
|
|
104
|
+
* Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus)
|
|
105
|
+
* endpoint to allow the user to accept the invitation to the team.
|
|
106
106
|
*
|
|
107
107
|
* Please note that to avoid a [Redirect
|
|
108
108
|
* Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
|
|
@@ -112,17 +112,17 @@ export declare class Teams extends Service {
|
|
|
112
112
|
*
|
|
113
113
|
* @param {string} teamId
|
|
114
114
|
* @param {string[]} roles
|
|
115
|
-
* @param {string} url
|
|
116
115
|
* @param {string} email
|
|
117
116
|
* @param {string} userId
|
|
118
117
|
* @param {string} phone
|
|
118
|
+
* @param {string} url
|
|
119
119
|
* @param {string} name
|
|
120
120
|
* @throws {AppwriteException}
|
|
121
121
|
* @returns {Promise}
|
|
122
122
|
*/
|
|
123
|
-
createMembership(teamId: string, roles: string[],
|
|
123
|
+
createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
|
|
124
124
|
/**
|
|
125
|
-
* Get
|
|
125
|
+
* Get team membership
|
|
126
126
|
*
|
|
127
127
|
* Get a team member by the membership unique id. All team members have read
|
|
128
128
|
* access for this resource.
|
|
@@ -134,11 +134,11 @@ export declare class Teams extends Service {
|
|
|
134
134
|
*/
|
|
135
135
|
getMembership(teamId: string, membershipId: string): Promise<Models.Membership>;
|
|
136
136
|
/**
|
|
137
|
-
* Update
|
|
137
|
+
* Update membership
|
|
138
138
|
*
|
|
139
139
|
* Modify the roles of a team member. Only team members with the owner role
|
|
140
140
|
* have access to this endpoint. Learn more about [roles and
|
|
141
|
-
* permissions](/docs/permissions).
|
|
141
|
+
* permissions](https://appwrite.io/docs/permissions).
|
|
142
142
|
*
|
|
143
143
|
*
|
|
144
144
|
* @param {string} teamId
|
|
@@ -149,7 +149,7 @@ export declare class Teams extends Service {
|
|
|
149
149
|
*/
|
|
150
150
|
updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership>;
|
|
151
151
|
/**
|
|
152
|
-
* Delete
|
|
152
|
+
* Delete team membership
|
|
153
153
|
*
|
|
154
154
|
* This endpoint allows a user to leave a team or for a team owner to delete
|
|
155
155
|
* the membership of any other team member. You can also use this endpoint to
|
|
@@ -162,7 +162,7 @@ export declare class Teams extends Service {
|
|
|
162
162
|
*/
|
|
163
163
|
deleteMembership(teamId: string, membershipId: string): Promise<{}>;
|
|
164
164
|
/**
|
|
165
|
-
* Update
|
|
165
|
+
* Update team membership status
|
|
166
166
|
*
|
|
167
167
|
* Use this endpoint to allow a user to accept an invitation to join a team
|
|
168
168
|
* after being redirected back to your app from the invitation email received
|
|
@@ -181,11 +181,11 @@ export declare class Teams extends Service {
|
|
|
181
181
|
*/
|
|
182
182
|
updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership>;
|
|
183
183
|
/**
|
|
184
|
-
* Get
|
|
184
|
+
* Get team preferences
|
|
185
185
|
*
|
|
186
186
|
* Get the team's shared preferences by its unique ID. If a preference doesn't
|
|
187
187
|
* need to be shared by all team members, prefer storing them in [user
|
|
188
|
-
* preferences](/docs/client/account#
|
|
188
|
+
* preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
|
|
189
189
|
*
|
|
190
190
|
* @param {string} teamId
|
|
191
191
|
* @throws {AppwriteException}
|
|
@@ -193,7 +193,7 @@ export declare class Teams extends Service {
|
|
|
193
193
|
*/
|
|
194
194
|
getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences>;
|
|
195
195
|
/**
|
|
196
|
-
* Update
|
|
196
|
+
* Update preferences
|
|
197
197
|
*
|
|
198
198
|
* Update the team's preferences by its unique ID. The object you pass is
|
|
199
199
|
* stored as is and replaces any previous value. The maximum allowed prefs
|
|
@@ -4,7 +4,7 @@ import type { Models } from '../models';
|
|
|
4
4
|
export declare class Users extends Service {
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* List
|
|
7
|
+
* List users
|
|
8
8
|
*
|
|
9
9
|
* Get a list of all the project's users. You can use the query params to
|
|
10
10
|
* filter your results.
|
|
@@ -16,7 +16,7 @@ export declare class Users extends Service {
|
|
|
16
16
|
*/
|
|
17
17
|
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.UserList<Preferences>>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create user
|
|
20
20
|
*
|
|
21
21
|
* Create a new user.
|
|
22
22
|
*
|
|
@@ -30,12 +30,12 @@ export declare class Users extends Service {
|
|
|
30
30
|
*/
|
|
31
31
|
create<Preferences extends Models.Preferences>(userId: string, email?: string, phone?: string, password?: string, name?: string): Promise<Models.User<Preferences>>;
|
|
32
32
|
/**
|
|
33
|
-
* Create
|
|
33
|
+
* Create user with Argon2 password
|
|
34
34
|
*
|
|
35
35
|
* Create a new user. Password provided must be hashed with the
|
|
36
36
|
* [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST
|
|
37
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
38
|
-
* plain text password.
|
|
37
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
38
|
+
* create users with a plain text password.
|
|
39
39
|
*
|
|
40
40
|
* @param {string} userId
|
|
41
41
|
* @param {string} email
|
|
@@ -46,12 +46,12 @@ export declare class Users extends Service {
|
|
|
46
46
|
*/
|
|
47
47
|
createArgon2User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
48
48
|
/**
|
|
49
|
-
* Create
|
|
49
|
+
* Create user with bcrypt password
|
|
50
50
|
*
|
|
51
51
|
* Create a new user. Password provided must be hashed with the
|
|
52
52
|
* [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST
|
|
53
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
54
|
-
* plain text password.
|
|
53
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
54
|
+
* create users with a plain text password.
|
|
55
55
|
*
|
|
56
56
|
* @param {string} userId
|
|
57
57
|
* @param {string} email
|
|
@@ -83,12 +83,12 @@ export declare class Users extends Service {
|
|
|
83
83
|
*/
|
|
84
84
|
deleteIdentity(identityId: string): Promise<{}>;
|
|
85
85
|
/**
|
|
86
|
-
* Create
|
|
86
|
+
* Create user with MD5 password
|
|
87
87
|
*
|
|
88
88
|
* Create a new user. Password provided must be hashed with the
|
|
89
89
|
* [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST
|
|
90
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
91
|
-
* plain text password.
|
|
90
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
91
|
+
* create users with a plain text password.
|
|
92
92
|
*
|
|
93
93
|
* @param {string} userId
|
|
94
94
|
* @param {string} email
|
|
@@ -99,12 +99,12 @@ export declare class Users extends Service {
|
|
|
99
99
|
*/
|
|
100
100
|
createMD5User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
101
101
|
/**
|
|
102
|
-
* Create
|
|
102
|
+
* Create user with PHPass password
|
|
103
103
|
*
|
|
104
104
|
* Create a new user. Password provided must be hashed with the
|
|
105
105
|
* [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST
|
|
106
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
107
|
-
* plain text password.
|
|
106
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
107
|
+
* create users with a plain text password.
|
|
108
108
|
*
|
|
109
109
|
* @param {string} userId
|
|
110
110
|
* @param {string} email
|
|
@@ -115,12 +115,12 @@ export declare class Users extends Service {
|
|
|
115
115
|
*/
|
|
116
116
|
createPHPassUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
117
117
|
/**
|
|
118
|
-
* Create
|
|
118
|
+
* Create user with Scrypt password
|
|
119
119
|
*
|
|
120
120
|
* Create a new user. Password provided must be hashed with the
|
|
121
121
|
* [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST
|
|
122
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
123
|
-
* plain text password.
|
|
122
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
123
|
+
* create users with a plain text password.
|
|
124
124
|
*
|
|
125
125
|
* @param {string} userId
|
|
126
126
|
* @param {string} email
|
|
@@ -136,12 +136,13 @@ export declare class Users extends Service {
|
|
|
136
136
|
*/
|
|
137
137
|
createScryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string): Promise<Models.User<Preferences>>;
|
|
138
138
|
/**
|
|
139
|
-
* Create
|
|
139
|
+
* Create user with Scrypt modified password
|
|
140
140
|
*
|
|
141
141
|
* Create a new user. Password provided must be hashed with the [Scrypt
|
|
142
142
|
* Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc)
|
|
143
|
-
* algorithm. Use the [POST
|
|
144
|
-
*
|
|
143
|
+
* algorithm. Use the [POST
|
|
144
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
145
|
+
* create users with a plain text password.
|
|
145
146
|
*
|
|
146
147
|
* @param {string} userId
|
|
147
148
|
* @param {string} email
|
|
@@ -155,12 +156,12 @@ export declare class Users extends Service {
|
|
|
155
156
|
*/
|
|
156
157
|
createScryptModifiedUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string): Promise<Models.User<Preferences>>;
|
|
157
158
|
/**
|
|
158
|
-
* Create
|
|
159
|
+
* Create user with SHA password
|
|
159
160
|
*
|
|
160
161
|
* Create a new user. Password provided must be hashed with the
|
|
161
162
|
* [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use
|
|
162
|
-
* the [POST /users](/docs/server/users#usersCreate)
|
|
163
|
-
* with a plain text password.
|
|
163
|
+
* the [POST /users](https://appwrite.io/docs/server/users#usersCreate)
|
|
164
|
+
* endpoint to create users with a plain text password.
|
|
164
165
|
*
|
|
165
166
|
* @param {string} userId
|
|
166
167
|
* @param {string} email
|
|
@@ -176,13 +177,12 @@ export declare class Users extends Service {
|
|
|
176
177
|
*
|
|
177
178
|
*
|
|
178
179
|
* @param {string} range
|
|
179
|
-
* @param {string} provider
|
|
180
180
|
* @throws {AppwriteException}
|
|
181
181
|
* @returns {Promise}
|
|
182
182
|
*/
|
|
183
|
-
getUsage(range?: string
|
|
183
|
+
getUsage(range?: string): Promise<Models.UsageUsers>;
|
|
184
184
|
/**
|
|
185
|
-
* Get
|
|
185
|
+
* Get user
|
|
186
186
|
*
|
|
187
187
|
* Get a user by its unique ID.
|
|
188
188
|
*
|
|
@@ -192,12 +192,13 @@ export declare class Users extends Service {
|
|
|
192
192
|
*/
|
|
193
193
|
get<Preferences extends Models.Preferences>(userId: string): Promise<Models.User<Preferences>>;
|
|
194
194
|
/**
|
|
195
|
-
* Delete
|
|
195
|
+
* Delete user
|
|
196
196
|
*
|
|
197
197
|
* Delete a user by its unique ID, thereby releasing it's ID. Since ID is
|
|
198
198
|
* released and can be reused, all user-related resources like documents or
|
|
199
199
|
* storage files should be deleted before user deletion. If you want to keep
|
|
200
|
-
* ID reserved, use the
|
|
200
|
+
* ID reserved, use the
|
|
201
|
+
* [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus)
|
|
201
202
|
* endpoint instead.
|
|
202
203
|
*
|
|
203
204
|
* @param {string} userId
|
|
@@ -206,7 +207,7 @@ export declare class Users extends Service {
|
|
|
206
207
|
*/
|
|
207
208
|
delete(userId: string): Promise<{}>;
|
|
208
209
|
/**
|
|
209
|
-
* Update
|
|
210
|
+
* Update email
|
|
210
211
|
*
|
|
211
212
|
* Update the user email by its unique ID.
|
|
212
213
|
*
|
|
@@ -217,14 +218,14 @@ export declare class Users extends Service {
|
|
|
217
218
|
*/
|
|
218
219
|
updateEmail<Preferences extends Models.Preferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
|
|
219
220
|
/**
|
|
220
|
-
* Update
|
|
221
|
+
* Update user labels
|
|
221
222
|
*
|
|
222
223
|
* Update the user labels by its unique ID.
|
|
223
224
|
*
|
|
224
225
|
* Labels can be used to grant access to resources. While teams are a way for
|
|
225
226
|
* user's to share access to a resource, labels can be defined by the
|
|
226
227
|
* developer to grant access without an invitation. See the [Permissions
|
|
227
|
-
* docs](/docs/permissions) for more info.
|
|
228
|
+
* docs](https://appwrite.io/docs/permissions) for more info.
|
|
228
229
|
*
|
|
229
230
|
* @param {string} userId
|
|
230
231
|
* @param {string[]} labels
|
|
@@ -233,7 +234,7 @@ export declare class Users extends Service {
|
|
|
233
234
|
*/
|
|
234
235
|
updateLabels<Preferences extends Models.Preferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
|
|
235
236
|
/**
|
|
236
|
-
* List
|
|
237
|
+
* List user logs
|
|
237
238
|
*
|
|
238
239
|
* Get the user activity logs list by its unique ID.
|
|
239
240
|
*
|
|
@@ -244,7 +245,7 @@ export declare class Users extends Service {
|
|
|
244
245
|
*/
|
|
245
246
|
listLogs(userId: string, queries?: string[]): Promise<Models.LogList>;
|
|
246
247
|
/**
|
|
247
|
-
* List
|
|
248
|
+
* List user memberships
|
|
248
249
|
*
|
|
249
250
|
* Get the user membership list by its unique ID.
|
|
250
251
|
*
|
|
@@ -254,7 +255,7 @@ export declare class Users extends Service {
|
|
|
254
255
|
*/
|
|
255
256
|
listMemberships(userId: string): Promise<Models.MembershipList>;
|
|
256
257
|
/**
|
|
257
|
-
* Update
|
|
258
|
+
* Update name
|
|
258
259
|
*
|
|
259
260
|
* Update the user name by its unique ID.
|
|
260
261
|
*
|
|
@@ -265,7 +266,7 @@ export declare class Users extends Service {
|
|
|
265
266
|
*/
|
|
266
267
|
updateName<Preferences extends Models.Preferences>(userId: string, name: string): Promise<Models.User<Preferences>>;
|
|
267
268
|
/**
|
|
268
|
-
* Update
|
|
269
|
+
* Update password
|
|
269
270
|
*
|
|
270
271
|
* Update the user password by its unique ID.
|
|
271
272
|
*
|
|
@@ -276,7 +277,7 @@ export declare class Users extends Service {
|
|
|
276
277
|
*/
|
|
277
278
|
updatePassword<Preferences extends Models.Preferences>(userId: string, password: string): Promise<Models.User<Preferences>>;
|
|
278
279
|
/**
|
|
279
|
-
* Update
|
|
280
|
+
* Update phone
|
|
280
281
|
*
|
|
281
282
|
* Update the user phone by its unique ID.
|
|
282
283
|
*
|
|
@@ -287,7 +288,7 @@ export declare class Users extends Service {
|
|
|
287
288
|
*/
|
|
288
289
|
updatePhone<Preferences extends Models.Preferences>(userId: string, number: string): Promise<Models.User<Preferences>>;
|
|
289
290
|
/**
|
|
290
|
-
* Get
|
|
291
|
+
* Get user preferences
|
|
291
292
|
*
|
|
292
293
|
* Get the user preferences by its unique ID.
|
|
293
294
|
*
|
|
@@ -297,7 +298,7 @@ export declare class Users extends Service {
|
|
|
297
298
|
*/
|
|
298
299
|
getPrefs<Preferences extends Models.Preferences>(userId: string): Promise<Preferences>;
|
|
299
300
|
/**
|
|
300
|
-
* Update
|
|
301
|
+
* Update user preferences
|
|
301
302
|
*
|
|
302
303
|
* Update the user preferences by its unique ID. The object you pass is stored
|
|
303
304
|
* as is, and replaces any previous value. The maximum allowed prefs size is
|
|
@@ -310,7 +311,7 @@ export declare class Users extends Service {
|
|
|
310
311
|
*/
|
|
311
312
|
updatePrefs<Preferences extends Models.Preferences>(userId: string, prefs: object): Promise<Preferences>;
|
|
312
313
|
/**
|
|
313
|
-
* List
|
|
314
|
+
* List user sessions
|
|
314
315
|
*
|
|
315
316
|
* Get the user sessions list by its unique ID.
|
|
316
317
|
*
|
|
@@ -320,7 +321,7 @@ export declare class Users extends Service {
|
|
|
320
321
|
*/
|
|
321
322
|
listSessions(userId: string): Promise<Models.SessionList>;
|
|
322
323
|
/**
|
|
323
|
-
* Delete
|
|
324
|
+
* Delete user sessions
|
|
324
325
|
*
|
|
325
326
|
* Delete all user's sessions by using the user's unique ID.
|
|
326
327
|
*
|
|
@@ -330,7 +331,7 @@ export declare class Users extends Service {
|
|
|
330
331
|
*/
|
|
331
332
|
deleteSessions(userId: string): Promise<{}>;
|
|
332
333
|
/**
|
|
333
|
-
* Delete
|
|
334
|
+
* Delete user session
|
|
334
335
|
*
|
|
335
336
|
* Delete a user sessions by its unique ID.
|
|
336
337
|
*
|
|
@@ -341,7 +342,7 @@ export declare class Users extends Service {
|
|
|
341
342
|
*/
|
|
342
343
|
deleteSession(userId: string, sessionId: string): Promise<{}>;
|
|
343
344
|
/**
|
|
344
|
-
* Update
|
|
345
|
+
* Update user status
|
|
345
346
|
*
|
|
346
347
|
* Update the user status by its unique ID. Use this endpoint as an
|
|
347
348
|
* alternative to deleting a user if you want to keep user's ID reserved.
|
|
@@ -353,7 +354,7 @@ export declare class Users extends Service {
|
|
|
353
354
|
*/
|
|
354
355
|
updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
|
|
355
356
|
/**
|
|
356
|
-
* Update
|
|
357
|
+
* Update email verification
|
|
357
358
|
*
|
|
358
359
|
* Update the user email verification status by its unique ID.
|
|
359
360
|
*
|
|
@@ -364,7 +365,7 @@ export declare class Users extends Service {
|
|
|
364
365
|
*/
|
|
365
366
|
updateEmailVerification<Preferences extends Models.Preferences>(userId: string, emailVerification: boolean): Promise<Models.User<Preferences>>;
|
|
366
367
|
/**
|
|
367
|
-
* Update
|
|
368
|
+
* Update phone verification
|
|
368
369
|
*
|
|
369
370
|
* Update the user phone verification status by its unique ID.
|
|
370
371
|
*
|