node-appwrite 15.0.0 → 15.0.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/dist/client.js +7 -4
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +7 -4
- package/dist/client.mjs.map +1 -1
- package/dist/models.d.mts +2 -2
- package/dist/models.d.ts +2 -2
- package/dist/services/account.d.mts +0 -86
- package/dist/services/account.d.ts +0 -86
- package/dist/services/account.js +86 -172
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +86 -172
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/avatars.d.mts +0 -14
- package/dist/services/avatars.d.ts +0 -14
- package/dist/services/avatars.js +14 -28
- package/dist/services/avatars.js.map +1 -1
- package/dist/services/avatars.mjs +14 -28
- package/dist/services/avatars.mjs.map +1 -1
- package/dist/services/databases.d.mts +0 -84
- package/dist/services/databases.d.ts +0 -84
- package/dist/services/databases.js +84 -168
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +84 -168
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +0 -48
- package/dist/services/functions.d.ts +0 -48
- package/dist/services/functions.js +48 -96
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +48 -96
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/graphql.d.mts +0 -4
- package/dist/services/graphql.d.ts +0 -4
- package/dist/services/graphql.js +4 -8
- package/dist/services/graphql.js.map +1 -1
- package/dist/services/graphql.mjs +4 -8
- package/dist/services/graphql.mjs.map +1 -1
- package/dist/services/health.d.mts +0 -46
- package/dist/services/health.d.ts +0 -46
- package/dist/services/health.js +46 -92
- package/dist/services/health.js.map +1 -1
- package/dist/services/health.mjs +46 -92
- package/dist/services/health.mjs.map +1 -1
- package/dist/services/locale.d.mts +0 -16
- package/dist/services/locale.d.ts +0 -16
- package/dist/services/locale.js +16 -32
- package/dist/services/locale.js.map +1 -1
- package/dist/services/locale.mjs +16 -32
- package/dist/services/locale.mjs.map +1 -1
- package/dist/services/messaging.d.mts +3 -95
- package/dist/services/messaging.d.ts +3 -95
- package/dist/services/messaging.js +95 -187
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +95 -187
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/storage.d.mts +0 -26
- package/dist/services/storage.d.ts +0 -26
- package/dist/services/storage.js +26 -52
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +26 -52
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/teams.d.mts +0 -26
- package/dist/services/teams.d.ts +0 -26
- package/dist/services/teams.js +26 -52
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +26 -52
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/users.d.mts +0 -84
- package/dist/services/users.d.ts +0 -84
- package/dist/services/users.js +84 -168
- package/dist/services/users.js.map +1 -1
- package/dist/services/users.mjs +84 -168
- package/dist/services/users.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -9,8 +9,6 @@ declare class Users {
|
|
|
9
9
|
client: Client;
|
|
10
10
|
constructor(client: Client);
|
|
11
11
|
/**
|
|
12
|
-
* List users
|
|
13
|
-
*
|
|
14
12
|
* Get a list of all the project's users. You can use the query params to filter your results.
|
|
15
13
|
*
|
|
16
14
|
* @param {string[]} queries
|
|
@@ -20,8 +18,6 @@ declare class Users {
|
|
|
20
18
|
*/
|
|
21
19
|
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.UserList<Preferences>>;
|
|
22
20
|
/**
|
|
23
|
-
* Create user
|
|
24
|
-
*
|
|
25
21
|
* Create a new user.
|
|
26
22
|
*
|
|
27
23
|
* @param {string} userId
|
|
@@ -34,8 +30,6 @@ declare class Users {
|
|
|
34
30
|
*/
|
|
35
31
|
create<Preferences extends Models.Preferences>(userId: string, email?: string, phone?: string, password?: string, name?: string): Promise<Models.User<Preferences>>;
|
|
36
32
|
/**
|
|
37
|
-
* Create user with Argon2 password
|
|
38
|
-
*
|
|
39
33
|
* Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
40
34
|
*
|
|
41
35
|
* @param {string} userId
|
|
@@ -47,8 +41,6 @@ declare class Users {
|
|
|
47
41
|
*/
|
|
48
42
|
createArgon2User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
49
43
|
/**
|
|
50
|
-
* Create user with bcrypt password
|
|
51
|
-
*
|
|
52
44
|
* Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
53
45
|
*
|
|
54
46
|
* @param {string} userId
|
|
@@ -60,8 +52,6 @@ declare class Users {
|
|
|
60
52
|
*/
|
|
61
53
|
createBcryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
62
54
|
/**
|
|
63
|
-
* List identities
|
|
64
|
-
*
|
|
65
55
|
* Get identities for all users.
|
|
66
56
|
*
|
|
67
57
|
* @param {string[]} queries
|
|
@@ -71,8 +61,6 @@ declare class Users {
|
|
|
71
61
|
*/
|
|
72
62
|
listIdentities(queries?: string[], search?: string): Promise<Models.IdentityList>;
|
|
73
63
|
/**
|
|
74
|
-
* Delete identity
|
|
75
|
-
*
|
|
76
64
|
* Delete an identity by its unique ID.
|
|
77
65
|
*
|
|
78
66
|
* @param {string} identityId
|
|
@@ -81,8 +69,6 @@ declare class Users {
|
|
|
81
69
|
*/
|
|
82
70
|
deleteIdentity(identityId: string): Promise<{}>;
|
|
83
71
|
/**
|
|
84
|
-
* Create user with MD5 password
|
|
85
|
-
*
|
|
86
72
|
* Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
87
73
|
*
|
|
88
74
|
* @param {string} userId
|
|
@@ -94,8 +80,6 @@ declare class Users {
|
|
|
94
80
|
*/
|
|
95
81
|
createMD5User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
96
82
|
/**
|
|
97
|
-
* Create user with PHPass password
|
|
98
|
-
*
|
|
99
83
|
* Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
100
84
|
*
|
|
101
85
|
* @param {string} userId
|
|
@@ -107,8 +91,6 @@ declare class Users {
|
|
|
107
91
|
*/
|
|
108
92
|
createPHPassUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
109
93
|
/**
|
|
110
|
-
* Create user with Scrypt password
|
|
111
|
-
*
|
|
112
94
|
* Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
113
95
|
*
|
|
114
96
|
* @param {string} userId
|
|
@@ -125,8 +107,6 @@ declare class Users {
|
|
|
125
107
|
*/
|
|
126
108
|
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>>;
|
|
127
109
|
/**
|
|
128
|
-
* Create user with Scrypt modified password
|
|
129
|
-
*
|
|
130
110
|
* Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
131
111
|
*
|
|
132
112
|
* @param {string} userId
|
|
@@ -141,8 +121,6 @@ declare class Users {
|
|
|
141
121
|
*/
|
|
142
122
|
createScryptModifiedUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string): Promise<Models.User<Preferences>>;
|
|
143
123
|
/**
|
|
144
|
-
* Create user with SHA password
|
|
145
|
-
*
|
|
146
124
|
* Create a new user. Password provided must be hashed with the [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
147
125
|
*
|
|
148
126
|
* @param {string} userId
|
|
@@ -155,8 +133,6 @@ declare class Users {
|
|
|
155
133
|
*/
|
|
156
134
|
createSHAUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordVersion?: PasswordHash, name?: string): Promise<Models.User<Preferences>>;
|
|
157
135
|
/**
|
|
158
|
-
* Get user
|
|
159
|
-
*
|
|
160
136
|
* Get a user by its unique ID.
|
|
161
137
|
*
|
|
162
138
|
* @param {string} userId
|
|
@@ -165,8 +141,6 @@ declare class Users {
|
|
|
165
141
|
*/
|
|
166
142
|
get<Preferences extends Models.Preferences>(userId: string): Promise<Models.User<Preferences>>;
|
|
167
143
|
/**
|
|
168
|
-
* Delete user
|
|
169
|
-
*
|
|
170
144
|
* Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus) endpoint instead.
|
|
171
145
|
*
|
|
172
146
|
* @param {string} userId
|
|
@@ -175,8 +149,6 @@ declare class Users {
|
|
|
175
149
|
*/
|
|
176
150
|
delete(userId: string): Promise<{}>;
|
|
177
151
|
/**
|
|
178
|
-
* Update email
|
|
179
|
-
*
|
|
180
152
|
* Update the user email by its unique ID.
|
|
181
153
|
*
|
|
182
154
|
* @param {string} userId
|
|
@@ -186,8 +158,6 @@ declare class Users {
|
|
|
186
158
|
*/
|
|
187
159
|
updateEmail<Preferences extends Models.Preferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
|
|
188
160
|
/**
|
|
189
|
-
* Create user JWT
|
|
190
|
-
*
|
|
191
161
|
* Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
|
|
192
162
|
*
|
|
193
163
|
* @param {string} userId
|
|
@@ -198,8 +168,6 @@ declare class Users {
|
|
|
198
168
|
*/
|
|
199
169
|
createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt>;
|
|
200
170
|
/**
|
|
201
|
-
* Update user labels
|
|
202
|
-
*
|
|
203
171
|
* Update the user labels by its unique ID.
|
|
204
172
|
|
|
205
173
|
Labels can be used to grant access to resources. While teams are a way for user's to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the [Permissions docs](https://appwrite.io/docs/permissions) for more info.
|
|
@@ -211,8 +179,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
211
179
|
*/
|
|
212
180
|
updateLabels<Preferences extends Models.Preferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
|
|
213
181
|
/**
|
|
214
|
-
* List user logs
|
|
215
|
-
*
|
|
216
182
|
* Get the user activity logs list by its unique ID.
|
|
217
183
|
*
|
|
218
184
|
* @param {string} userId
|
|
@@ -222,8 +188,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
222
188
|
*/
|
|
223
189
|
listLogs(userId: string, queries?: string[]): Promise<Models.LogList>;
|
|
224
190
|
/**
|
|
225
|
-
* List user memberships
|
|
226
|
-
*
|
|
227
191
|
* Get the user membership list by its unique ID.
|
|
228
192
|
*
|
|
229
193
|
* @param {string} userId
|
|
@@ -232,8 +196,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
232
196
|
*/
|
|
233
197
|
listMemberships(userId: string): Promise<Models.MembershipList>;
|
|
234
198
|
/**
|
|
235
|
-
* Update MFA
|
|
236
|
-
*
|
|
237
199
|
* Enable or disable MFA on a user account.
|
|
238
200
|
*
|
|
239
201
|
* @param {string} userId
|
|
@@ -243,8 +205,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
243
205
|
*/
|
|
244
206
|
updateMfa<Preferences extends Models.Preferences>(userId: string, mfa: boolean): Promise<Models.User<Preferences>>;
|
|
245
207
|
/**
|
|
246
|
-
* Delete authenticator
|
|
247
|
-
*
|
|
248
208
|
* Delete an authenticator app.
|
|
249
209
|
*
|
|
250
210
|
* @param {string} userId
|
|
@@ -254,8 +214,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
254
214
|
*/
|
|
255
215
|
deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise<{}>;
|
|
256
216
|
/**
|
|
257
|
-
* List factors
|
|
258
|
-
*
|
|
259
217
|
* List the factors available on the account to be used as a MFA challange.
|
|
260
218
|
*
|
|
261
219
|
* @param {string} userId
|
|
@@ -264,8 +222,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
264
222
|
*/
|
|
265
223
|
listMfaFactors(userId: string): Promise<Models.MfaFactors>;
|
|
266
224
|
/**
|
|
267
|
-
* Get MFA recovery codes
|
|
268
|
-
*
|
|
269
225
|
* Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
270
226
|
*
|
|
271
227
|
* @param {string} userId
|
|
@@ -274,8 +230,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
274
230
|
*/
|
|
275
231
|
getMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
|
276
232
|
/**
|
|
277
|
-
* Regenerate MFA recovery codes
|
|
278
|
-
*
|
|
279
233
|
* Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
280
234
|
*
|
|
281
235
|
* @param {string} userId
|
|
@@ -284,8 +238,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
284
238
|
*/
|
|
285
239
|
updateMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
|
286
240
|
/**
|
|
287
|
-
* Create MFA recovery codes
|
|
288
|
-
*
|
|
289
241
|
* Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
|
|
290
242
|
*
|
|
291
243
|
* @param {string} userId
|
|
@@ -294,8 +246,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
294
246
|
*/
|
|
295
247
|
createMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
|
296
248
|
/**
|
|
297
|
-
* Update name
|
|
298
|
-
*
|
|
299
249
|
* Update the user name by its unique ID.
|
|
300
250
|
*
|
|
301
251
|
* @param {string} userId
|
|
@@ -305,8 +255,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
305
255
|
*/
|
|
306
256
|
updateName<Preferences extends Models.Preferences>(userId: string, name: string): Promise<Models.User<Preferences>>;
|
|
307
257
|
/**
|
|
308
|
-
* Update password
|
|
309
|
-
*
|
|
310
258
|
* Update the user password by its unique ID.
|
|
311
259
|
*
|
|
312
260
|
* @param {string} userId
|
|
@@ -316,8 +264,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
316
264
|
*/
|
|
317
265
|
updatePassword<Preferences extends Models.Preferences>(userId: string, password: string): Promise<Models.User<Preferences>>;
|
|
318
266
|
/**
|
|
319
|
-
* Update phone
|
|
320
|
-
*
|
|
321
267
|
* Update the user phone by its unique ID.
|
|
322
268
|
*
|
|
323
269
|
* @param {string} userId
|
|
@@ -327,8 +273,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
327
273
|
*/
|
|
328
274
|
updatePhone<Preferences extends Models.Preferences>(userId: string, number: string): Promise<Models.User<Preferences>>;
|
|
329
275
|
/**
|
|
330
|
-
* Get user preferences
|
|
331
|
-
*
|
|
332
276
|
* Get the user preferences by its unique ID.
|
|
333
277
|
*
|
|
334
278
|
* @param {string} userId
|
|
@@ -337,8 +281,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
337
281
|
*/
|
|
338
282
|
getPrefs<Preferences extends Models.Preferences>(userId: string): Promise<Preferences>;
|
|
339
283
|
/**
|
|
340
|
-
* Update user preferences
|
|
341
|
-
*
|
|
342
284
|
* Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
|
|
343
285
|
*
|
|
344
286
|
* @param {string} userId
|
|
@@ -348,8 +290,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
348
290
|
*/
|
|
349
291
|
updatePrefs<Preferences extends Models.Preferences>(userId: string, prefs: object): Promise<Preferences>;
|
|
350
292
|
/**
|
|
351
|
-
* List user sessions
|
|
352
|
-
*
|
|
353
293
|
* Get the user sessions list by its unique ID.
|
|
354
294
|
*
|
|
355
295
|
* @param {string} userId
|
|
@@ -358,8 +298,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
358
298
|
*/
|
|
359
299
|
listSessions(userId: string): Promise<Models.SessionList>;
|
|
360
300
|
/**
|
|
361
|
-
* Create session
|
|
362
|
-
*
|
|
363
301
|
* Creates a session for a user. Returns an immediately usable session object.
|
|
364
302
|
|
|
365
303
|
If you want to generate a token for a custom authentication flow, use the [POST /users/{userId}/tokens](https://appwrite.io/docs/server/users#createToken) endpoint.
|
|
@@ -370,8 +308,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
370
308
|
*/
|
|
371
309
|
createSession(userId: string): Promise<Models.Session>;
|
|
372
310
|
/**
|
|
373
|
-
* Delete user sessions
|
|
374
|
-
*
|
|
375
311
|
* Delete all user's sessions by using the user's unique ID.
|
|
376
312
|
*
|
|
377
313
|
* @param {string} userId
|
|
@@ -380,8 +316,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
380
316
|
*/
|
|
381
317
|
deleteSessions(userId: string): Promise<{}>;
|
|
382
318
|
/**
|
|
383
|
-
* Delete user session
|
|
384
|
-
*
|
|
385
319
|
* Delete a user sessions by its unique ID.
|
|
386
320
|
*
|
|
387
321
|
* @param {string} userId
|
|
@@ -391,8 +325,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
391
325
|
*/
|
|
392
326
|
deleteSession(userId: string, sessionId: string): Promise<{}>;
|
|
393
327
|
/**
|
|
394
|
-
* Update user status
|
|
395
|
-
*
|
|
396
328
|
* Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.
|
|
397
329
|
*
|
|
398
330
|
* @param {string} userId
|
|
@@ -402,8 +334,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
402
334
|
*/
|
|
403
335
|
updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
|
|
404
336
|
/**
|
|
405
|
-
* List user targets
|
|
406
|
-
*
|
|
407
337
|
* List the messaging targets that are associated with a user.
|
|
408
338
|
*
|
|
409
339
|
* @param {string} userId
|
|
@@ -413,8 +343,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
413
343
|
*/
|
|
414
344
|
listTargets(userId: string, queries?: string[]): Promise<Models.TargetList>;
|
|
415
345
|
/**
|
|
416
|
-
* Create user target
|
|
417
|
-
*
|
|
418
346
|
* Create a messaging target.
|
|
419
347
|
*
|
|
420
348
|
* @param {string} userId
|
|
@@ -428,8 +356,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
428
356
|
*/
|
|
429
357
|
createTarget(userId: string, targetId: string, providerType: MessagingProviderType, identifier: string, providerId?: string, name?: string): Promise<Models.Target>;
|
|
430
358
|
/**
|
|
431
|
-
* Get user target
|
|
432
|
-
*
|
|
433
359
|
* Get a user's push notification target by ID.
|
|
434
360
|
*
|
|
435
361
|
* @param {string} userId
|
|
@@ -439,8 +365,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
439
365
|
*/
|
|
440
366
|
getTarget(userId: string, targetId: string): Promise<Models.Target>;
|
|
441
367
|
/**
|
|
442
|
-
* Update user target
|
|
443
|
-
*
|
|
444
368
|
* Update a messaging target.
|
|
445
369
|
*
|
|
446
370
|
* @param {string} userId
|
|
@@ -453,8 +377,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
453
377
|
*/
|
|
454
378
|
updateTarget(userId: string, targetId: string, identifier?: string, providerId?: string, name?: string): Promise<Models.Target>;
|
|
455
379
|
/**
|
|
456
|
-
* Delete user target
|
|
457
|
-
*
|
|
458
380
|
* Delete a messaging target.
|
|
459
381
|
*
|
|
460
382
|
* @param {string} userId
|
|
@@ -464,8 +386,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
464
386
|
*/
|
|
465
387
|
deleteTarget(userId: string, targetId: string): Promise<{}>;
|
|
466
388
|
/**
|
|
467
|
-
* Create token
|
|
468
|
-
*
|
|
469
389
|
* Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
|
|
470
390
|
|
|
471
391
|
*
|
|
@@ -477,8 +397,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
477
397
|
*/
|
|
478
398
|
createToken(userId: string, length?: number, expire?: number): Promise<Models.Token>;
|
|
479
399
|
/**
|
|
480
|
-
* Update email verification
|
|
481
|
-
*
|
|
482
400
|
* Update the user email verification status by its unique ID.
|
|
483
401
|
*
|
|
484
402
|
* @param {string} userId
|
|
@@ -488,8 +406,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
488
406
|
*/
|
|
489
407
|
updateEmailVerification<Preferences extends Models.Preferences>(userId: string, emailVerification: boolean): Promise<Models.User<Preferences>>;
|
|
490
408
|
/**
|
|
491
|
-
* Update phone verification
|
|
492
|
-
*
|
|
493
409
|
* Update the user phone verification status by its unique ID.
|
|
494
410
|
*
|
|
495
411
|
* @param {string} userId
|