react-native-appwrite 0.3.0 → 0.3.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/package.json +1 -1
- package/types/client.d.ts +133 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/id.d.ts +5 -0
- package/types/index.d.ts +25 -0
- package/types/models.d.ts +1195 -0
- package/types/permission.d.ts +7 -0
- package/types/query.d.ts +34 -0
- package/types/role.d.ts +70 -0
- package/types/service.d.ts +8 -0
- package/types/services/account.d.ts +676 -0
- package/types/services/avatars.d.ts +149 -0
- package/types/services/databases.d.ts +77 -0
- package/types/services/functions.d.ts +49 -0
- package/types/services/graphql.d.ts +25 -0
- package/types/services/locale.d.ts +91 -0
- package/types/services/messaging.d.ts +29 -0
- package/types/services/storage.d.ts +147 -0
- package/types/services/teams.d.ts +197 -0
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
export declare namespace Models {
|
|
2
|
+
/**
|
|
3
|
+
* Documents List
|
|
4
|
+
*/
|
|
5
|
+
type DocumentList<Document extends Models.Document> = {
|
|
6
|
+
/**
|
|
7
|
+
* Total number of documents documents that matched your query.
|
|
8
|
+
*/
|
|
9
|
+
total: number;
|
|
10
|
+
/**
|
|
11
|
+
* List of documents.
|
|
12
|
+
*/
|
|
13
|
+
documents: Document[];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Sessions List
|
|
17
|
+
*/
|
|
18
|
+
type SessionList = {
|
|
19
|
+
/**
|
|
20
|
+
* Total number of sessions documents that matched your query.
|
|
21
|
+
*/
|
|
22
|
+
total: number;
|
|
23
|
+
/**
|
|
24
|
+
* List of sessions.
|
|
25
|
+
*/
|
|
26
|
+
sessions: Session[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Identities List
|
|
30
|
+
*/
|
|
31
|
+
type IdentityList = {
|
|
32
|
+
/**
|
|
33
|
+
* Total number of identities documents that matched your query.
|
|
34
|
+
*/
|
|
35
|
+
total: number;
|
|
36
|
+
/**
|
|
37
|
+
* List of identities.
|
|
38
|
+
*/
|
|
39
|
+
identities: Identity[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Logs List
|
|
43
|
+
*/
|
|
44
|
+
type LogList = {
|
|
45
|
+
/**
|
|
46
|
+
* Total number of logs documents that matched your query.
|
|
47
|
+
*/
|
|
48
|
+
total: number;
|
|
49
|
+
/**
|
|
50
|
+
* List of logs.
|
|
51
|
+
*/
|
|
52
|
+
logs: Log[];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Files List
|
|
56
|
+
*/
|
|
57
|
+
type FileList = {
|
|
58
|
+
/**
|
|
59
|
+
* Total number of files documents that matched your query.
|
|
60
|
+
*/
|
|
61
|
+
total: number;
|
|
62
|
+
/**
|
|
63
|
+
* List of files.
|
|
64
|
+
*/
|
|
65
|
+
files: File[];
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Teams List
|
|
69
|
+
*/
|
|
70
|
+
type TeamList<Preferences extends Models.Preferences> = {
|
|
71
|
+
/**
|
|
72
|
+
* Total number of teams documents that matched your query.
|
|
73
|
+
*/
|
|
74
|
+
total: number;
|
|
75
|
+
/**
|
|
76
|
+
* List of teams.
|
|
77
|
+
*/
|
|
78
|
+
teams: Team<Preferences>[];
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Memberships List
|
|
82
|
+
*/
|
|
83
|
+
type MembershipList = {
|
|
84
|
+
/**
|
|
85
|
+
* Total number of memberships documents that matched your query.
|
|
86
|
+
*/
|
|
87
|
+
total: number;
|
|
88
|
+
/**
|
|
89
|
+
* List of memberships.
|
|
90
|
+
*/
|
|
91
|
+
memberships: Membership[];
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Executions List
|
|
95
|
+
*/
|
|
96
|
+
type ExecutionList = {
|
|
97
|
+
/**
|
|
98
|
+
* Total number of executions documents that matched your query.
|
|
99
|
+
*/
|
|
100
|
+
total: number;
|
|
101
|
+
/**
|
|
102
|
+
* List of executions.
|
|
103
|
+
*/
|
|
104
|
+
executions: Execution[];
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Countries List
|
|
108
|
+
*/
|
|
109
|
+
type CountryList = {
|
|
110
|
+
/**
|
|
111
|
+
* Total number of countries documents that matched your query.
|
|
112
|
+
*/
|
|
113
|
+
total: number;
|
|
114
|
+
/**
|
|
115
|
+
* List of countries.
|
|
116
|
+
*/
|
|
117
|
+
countries: Country[];
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Continents List
|
|
121
|
+
*/
|
|
122
|
+
type ContinentList = {
|
|
123
|
+
/**
|
|
124
|
+
* Total number of continents documents that matched your query.
|
|
125
|
+
*/
|
|
126
|
+
total: number;
|
|
127
|
+
/**
|
|
128
|
+
* List of continents.
|
|
129
|
+
*/
|
|
130
|
+
continents: Continent[];
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Languages List
|
|
134
|
+
*/
|
|
135
|
+
type LanguageList = {
|
|
136
|
+
/**
|
|
137
|
+
* Total number of languages documents that matched your query.
|
|
138
|
+
*/
|
|
139
|
+
total: number;
|
|
140
|
+
/**
|
|
141
|
+
* List of languages.
|
|
142
|
+
*/
|
|
143
|
+
languages: Language[];
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Currencies List
|
|
147
|
+
*/
|
|
148
|
+
type CurrencyList = {
|
|
149
|
+
/**
|
|
150
|
+
* Total number of currencies documents that matched your query.
|
|
151
|
+
*/
|
|
152
|
+
total: number;
|
|
153
|
+
/**
|
|
154
|
+
* List of currencies.
|
|
155
|
+
*/
|
|
156
|
+
currencies: Currency[];
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Phones List
|
|
160
|
+
*/
|
|
161
|
+
type PhoneList = {
|
|
162
|
+
/**
|
|
163
|
+
* Total number of phones documents that matched your query.
|
|
164
|
+
*/
|
|
165
|
+
total: number;
|
|
166
|
+
/**
|
|
167
|
+
* List of phones.
|
|
168
|
+
*/
|
|
169
|
+
phones: Phone[];
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Locale codes list
|
|
173
|
+
*/
|
|
174
|
+
type LocaleCodeList = {
|
|
175
|
+
/**
|
|
176
|
+
* Total number of localeCodes documents that matched your query.
|
|
177
|
+
*/
|
|
178
|
+
total: number;
|
|
179
|
+
/**
|
|
180
|
+
* List of localeCodes.
|
|
181
|
+
*/
|
|
182
|
+
localeCodes: LocaleCode[];
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* Document
|
|
186
|
+
*/
|
|
187
|
+
type Document = {
|
|
188
|
+
/**
|
|
189
|
+
* Document ID.
|
|
190
|
+
*/
|
|
191
|
+
$id: string;
|
|
192
|
+
/**
|
|
193
|
+
* Collection ID.
|
|
194
|
+
*/
|
|
195
|
+
$collectionId: string;
|
|
196
|
+
/**
|
|
197
|
+
* Database ID.
|
|
198
|
+
*/
|
|
199
|
+
$databaseId: string;
|
|
200
|
+
/**
|
|
201
|
+
* Document creation date in ISO 8601 format.
|
|
202
|
+
*/
|
|
203
|
+
$createdAt: string;
|
|
204
|
+
/**
|
|
205
|
+
* Document update date in ISO 8601 format.
|
|
206
|
+
*/
|
|
207
|
+
$updatedAt: string;
|
|
208
|
+
/**
|
|
209
|
+
* Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
210
|
+
*/
|
|
211
|
+
$permissions: string[];
|
|
212
|
+
[key: string]: any;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Log
|
|
216
|
+
*/
|
|
217
|
+
type Log = {
|
|
218
|
+
/**
|
|
219
|
+
* Event name.
|
|
220
|
+
*/
|
|
221
|
+
event: string;
|
|
222
|
+
/**
|
|
223
|
+
* User ID.
|
|
224
|
+
*/
|
|
225
|
+
userId: string;
|
|
226
|
+
/**
|
|
227
|
+
* User Email.
|
|
228
|
+
*/
|
|
229
|
+
userEmail: string;
|
|
230
|
+
/**
|
|
231
|
+
* User Name.
|
|
232
|
+
*/
|
|
233
|
+
userName: string;
|
|
234
|
+
/**
|
|
235
|
+
* API mode when event triggered.
|
|
236
|
+
*/
|
|
237
|
+
mode: string;
|
|
238
|
+
/**
|
|
239
|
+
* IP session in use when the session was created.
|
|
240
|
+
*/
|
|
241
|
+
ip: string;
|
|
242
|
+
/**
|
|
243
|
+
* Log creation date in ISO 8601 format.
|
|
244
|
+
*/
|
|
245
|
+
time: string;
|
|
246
|
+
/**
|
|
247
|
+
* Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
|
|
248
|
+
*/
|
|
249
|
+
osCode: string;
|
|
250
|
+
/**
|
|
251
|
+
* Operating system name.
|
|
252
|
+
*/
|
|
253
|
+
osName: string;
|
|
254
|
+
/**
|
|
255
|
+
* Operating system version.
|
|
256
|
+
*/
|
|
257
|
+
osVersion: string;
|
|
258
|
+
/**
|
|
259
|
+
* Client type.
|
|
260
|
+
*/
|
|
261
|
+
clientType: string;
|
|
262
|
+
/**
|
|
263
|
+
* Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
|
|
264
|
+
*/
|
|
265
|
+
clientCode: string;
|
|
266
|
+
/**
|
|
267
|
+
* Client name.
|
|
268
|
+
*/
|
|
269
|
+
clientName: string;
|
|
270
|
+
/**
|
|
271
|
+
* Client version.
|
|
272
|
+
*/
|
|
273
|
+
clientVersion: string;
|
|
274
|
+
/**
|
|
275
|
+
* Client engine name.
|
|
276
|
+
*/
|
|
277
|
+
clientEngine: string;
|
|
278
|
+
/**
|
|
279
|
+
* Client engine name.
|
|
280
|
+
*/
|
|
281
|
+
clientEngineVersion: string;
|
|
282
|
+
/**
|
|
283
|
+
* Device name.
|
|
284
|
+
*/
|
|
285
|
+
deviceName: string;
|
|
286
|
+
/**
|
|
287
|
+
* Device brand name.
|
|
288
|
+
*/
|
|
289
|
+
deviceBrand: string;
|
|
290
|
+
/**
|
|
291
|
+
* Device model name.
|
|
292
|
+
*/
|
|
293
|
+
deviceModel: string;
|
|
294
|
+
/**
|
|
295
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
296
|
+
*/
|
|
297
|
+
countryCode: string;
|
|
298
|
+
/**
|
|
299
|
+
* Country name.
|
|
300
|
+
*/
|
|
301
|
+
countryName: string;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* User
|
|
305
|
+
*/
|
|
306
|
+
type User<Preferences extends Models.Preferences> = {
|
|
307
|
+
/**
|
|
308
|
+
* User ID.
|
|
309
|
+
*/
|
|
310
|
+
$id: string;
|
|
311
|
+
/**
|
|
312
|
+
* User creation date in ISO 8601 format.
|
|
313
|
+
*/
|
|
314
|
+
$createdAt: string;
|
|
315
|
+
/**
|
|
316
|
+
* User update date in ISO 8601 format.
|
|
317
|
+
*/
|
|
318
|
+
$updatedAt: string;
|
|
319
|
+
/**
|
|
320
|
+
* User name.
|
|
321
|
+
*/
|
|
322
|
+
name: string;
|
|
323
|
+
/**
|
|
324
|
+
* Hashed user password.
|
|
325
|
+
*/
|
|
326
|
+
password?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Password hashing algorithm.
|
|
329
|
+
*/
|
|
330
|
+
hash?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Password hashing algorithm configuration.
|
|
333
|
+
*/
|
|
334
|
+
hashOptions?: object;
|
|
335
|
+
/**
|
|
336
|
+
* User registration date in ISO 8601 format.
|
|
337
|
+
*/
|
|
338
|
+
registration: string;
|
|
339
|
+
/**
|
|
340
|
+
* User status. Pass `true` for enabled and `false` for disabled.
|
|
341
|
+
*/
|
|
342
|
+
status: boolean;
|
|
343
|
+
/**
|
|
344
|
+
* Labels for the user.
|
|
345
|
+
*/
|
|
346
|
+
labels: string[];
|
|
347
|
+
/**
|
|
348
|
+
* Password update time in ISO 8601 format.
|
|
349
|
+
*/
|
|
350
|
+
passwordUpdate: string;
|
|
351
|
+
/**
|
|
352
|
+
* User email address.
|
|
353
|
+
*/
|
|
354
|
+
email: string;
|
|
355
|
+
/**
|
|
356
|
+
* User phone number in E.164 format.
|
|
357
|
+
*/
|
|
358
|
+
phone: string;
|
|
359
|
+
/**
|
|
360
|
+
* Email verification status.
|
|
361
|
+
*/
|
|
362
|
+
emailVerification: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Phone verification status.
|
|
365
|
+
*/
|
|
366
|
+
phoneVerification: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Multi factor authentication status.
|
|
369
|
+
*/
|
|
370
|
+
mfa: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* User preferences as a key-value object
|
|
373
|
+
*/
|
|
374
|
+
prefs: Preferences;
|
|
375
|
+
/**
|
|
376
|
+
* A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
|
|
377
|
+
*/
|
|
378
|
+
targets: Target[];
|
|
379
|
+
/**
|
|
380
|
+
* Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
|
|
381
|
+
*/
|
|
382
|
+
accessedAt: string;
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* AlgoMD5
|
|
386
|
+
*/
|
|
387
|
+
type AlgoMd5 = {
|
|
388
|
+
/**
|
|
389
|
+
* Algo type.
|
|
390
|
+
*/
|
|
391
|
+
type: string;
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* AlgoSHA
|
|
395
|
+
*/
|
|
396
|
+
type AlgoSha = {
|
|
397
|
+
/**
|
|
398
|
+
* Algo type.
|
|
399
|
+
*/
|
|
400
|
+
type: string;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* AlgoPHPass
|
|
404
|
+
*/
|
|
405
|
+
type AlgoPhpass = {
|
|
406
|
+
/**
|
|
407
|
+
* Algo type.
|
|
408
|
+
*/
|
|
409
|
+
type: string;
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* AlgoBcrypt
|
|
413
|
+
*/
|
|
414
|
+
type AlgoBcrypt = {
|
|
415
|
+
/**
|
|
416
|
+
* Algo type.
|
|
417
|
+
*/
|
|
418
|
+
type: string;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* AlgoScrypt
|
|
422
|
+
*/
|
|
423
|
+
type AlgoScrypt = {
|
|
424
|
+
/**
|
|
425
|
+
* Algo type.
|
|
426
|
+
*/
|
|
427
|
+
type: string;
|
|
428
|
+
/**
|
|
429
|
+
* CPU complexity of computed hash.
|
|
430
|
+
*/
|
|
431
|
+
costCpu: number;
|
|
432
|
+
/**
|
|
433
|
+
* Memory complexity of computed hash.
|
|
434
|
+
*/
|
|
435
|
+
costMemory: number;
|
|
436
|
+
/**
|
|
437
|
+
* Parallelization of computed hash.
|
|
438
|
+
*/
|
|
439
|
+
costParallel: number;
|
|
440
|
+
/**
|
|
441
|
+
* Length used to compute hash.
|
|
442
|
+
*/
|
|
443
|
+
length: number;
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* AlgoScryptModified
|
|
447
|
+
*/
|
|
448
|
+
type AlgoScryptModified = {
|
|
449
|
+
/**
|
|
450
|
+
* Algo type.
|
|
451
|
+
*/
|
|
452
|
+
type: string;
|
|
453
|
+
/**
|
|
454
|
+
* Salt used to compute hash.
|
|
455
|
+
*/
|
|
456
|
+
salt: string;
|
|
457
|
+
/**
|
|
458
|
+
* Separator used to compute hash.
|
|
459
|
+
*/
|
|
460
|
+
saltSeparator: string;
|
|
461
|
+
/**
|
|
462
|
+
* Key used to compute hash.
|
|
463
|
+
*/
|
|
464
|
+
signerKey: string;
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* AlgoArgon2
|
|
468
|
+
*/
|
|
469
|
+
type AlgoArgon2 = {
|
|
470
|
+
/**
|
|
471
|
+
* Algo type.
|
|
472
|
+
*/
|
|
473
|
+
type: string;
|
|
474
|
+
/**
|
|
475
|
+
* Memory used to compute hash.
|
|
476
|
+
*/
|
|
477
|
+
memoryCost: number;
|
|
478
|
+
/**
|
|
479
|
+
* Amount of time consumed to compute hash
|
|
480
|
+
*/
|
|
481
|
+
timeCost: number;
|
|
482
|
+
/**
|
|
483
|
+
* Number of threads used to compute hash.
|
|
484
|
+
*/
|
|
485
|
+
threads: number;
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* Preferences
|
|
489
|
+
*/
|
|
490
|
+
type Preferences = {
|
|
491
|
+
[key: string]: any;
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Session
|
|
495
|
+
*/
|
|
496
|
+
type Session = {
|
|
497
|
+
/**
|
|
498
|
+
* Session ID.
|
|
499
|
+
*/
|
|
500
|
+
$id: string;
|
|
501
|
+
/**
|
|
502
|
+
* Session creation date in ISO 8601 format.
|
|
503
|
+
*/
|
|
504
|
+
$createdAt: string;
|
|
505
|
+
/**
|
|
506
|
+
* Session update date in ISO 8601 format.
|
|
507
|
+
*/
|
|
508
|
+
$updatedAt: string;
|
|
509
|
+
/**
|
|
510
|
+
* User ID.
|
|
511
|
+
*/
|
|
512
|
+
userId: string;
|
|
513
|
+
/**
|
|
514
|
+
* Session expiration date in ISO 8601 format.
|
|
515
|
+
*/
|
|
516
|
+
expire: string;
|
|
517
|
+
/**
|
|
518
|
+
* Session Provider.
|
|
519
|
+
*/
|
|
520
|
+
provider: string;
|
|
521
|
+
/**
|
|
522
|
+
* Session Provider User ID.
|
|
523
|
+
*/
|
|
524
|
+
providerUid: string;
|
|
525
|
+
/**
|
|
526
|
+
* Session Provider Access Token.
|
|
527
|
+
*/
|
|
528
|
+
providerAccessToken: string;
|
|
529
|
+
/**
|
|
530
|
+
* The date of when the access token expires in ISO 8601 format.
|
|
531
|
+
*/
|
|
532
|
+
providerAccessTokenExpiry: string;
|
|
533
|
+
/**
|
|
534
|
+
* Session Provider Refresh Token.
|
|
535
|
+
*/
|
|
536
|
+
providerRefreshToken: string;
|
|
537
|
+
/**
|
|
538
|
+
* IP in use when the session was created.
|
|
539
|
+
*/
|
|
540
|
+
ip: string;
|
|
541
|
+
/**
|
|
542
|
+
* Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
|
|
543
|
+
*/
|
|
544
|
+
osCode: string;
|
|
545
|
+
/**
|
|
546
|
+
* Operating system name.
|
|
547
|
+
*/
|
|
548
|
+
osName: string;
|
|
549
|
+
/**
|
|
550
|
+
* Operating system version.
|
|
551
|
+
*/
|
|
552
|
+
osVersion: string;
|
|
553
|
+
/**
|
|
554
|
+
* Client type.
|
|
555
|
+
*/
|
|
556
|
+
clientType: string;
|
|
557
|
+
/**
|
|
558
|
+
* Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
|
|
559
|
+
*/
|
|
560
|
+
clientCode: string;
|
|
561
|
+
/**
|
|
562
|
+
* Client name.
|
|
563
|
+
*/
|
|
564
|
+
clientName: string;
|
|
565
|
+
/**
|
|
566
|
+
* Client version.
|
|
567
|
+
*/
|
|
568
|
+
clientVersion: string;
|
|
569
|
+
/**
|
|
570
|
+
* Client engine name.
|
|
571
|
+
*/
|
|
572
|
+
clientEngine: string;
|
|
573
|
+
/**
|
|
574
|
+
* Client engine name.
|
|
575
|
+
*/
|
|
576
|
+
clientEngineVersion: string;
|
|
577
|
+
/**
|
|
578
|
+
* Device name.
|
|
579
|
+
*/
|
|
580
|
+
deviceName: string;
|
|
581
|
+
/**
|
|
582
|
+
* Device brand name.
|
|
583
|
+
*/
|
|
584
|
+
deviceBrand: string;
|
|
585
|
+
/**
|
|
586
|
+
* Device model name.
|
|
587
|
+
*/
|
|
588
|
+
deviceModel: string;
|
|
589
|
+
/**
|
|
590
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
591
|
+
*/
|
|
592
|
+
countryCode: string;
|
|
593
|
+
/**
|
|
594
|
+
* Country name.
|
|
595
|
+
*/
|
|
596
|
+
countryName: string;
|
|
597
|
+
/**
|
|
598
|
+
* Returns true if this the current user session.
|
|
599
|
+
*/
|
|
600
|
+
current: boolean;
|
|
601
|
+
/**
|
|
602
|
+
* Returns a list of active session factors.
|
|
603
|
+
*/
|
|
604
|
+
factors: string[];
|
|
605
|
+
/**
|
|
606
|
+
* Secret used to authenticate the user. Only included if the request was made with an API key
|
|
607
|
+
*/
|
|
608
|
+
secret: string;
|
|
609
|
+
/**
|
|
610
|
+
* Most recent date in ISO 8601 format when the session successfully passed MFA challenge.
|
|
611
|
+
*/
|
|
612
|
+
mfaUpdatedAt: string;
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* Identity
|
|
616
|
+
*/
|
|
617
|
+
type Identity = {
|
|
618
|
+
/**
|
|
619
|
+
* Identity ID.
|
|
620
|
+
*/
|
|
621
|
+
$id: string;
|
|
622
|
+
/**
|
|
623
|
+
* Identity creation date in ISO 8601 format.
|
|
624
|
+
*/
|
|
625
|
+
$createdAt: string;
|
|
626
|
+
/**
|
|
627
|
+
* Identity update date in ISO 8601 format.
|
|
628
|
+
*/
|
|
629
|
+
$updatedAt: string;
|
|
630
|
+
/**
|
|
631
|
+
* User ID.
|
|
632
|
+
*/
|
|
633
|
+
userId: string;
|
|
634
|
+
/**
|
|
635
|
+
* Identity Provider.
|
|
636
|
+
*/
|
|
637
|
+
provider: string;
|
|
638
|
+
/**
|
|
639
|
+
* ID of the User in the Identity Provider.
|
|
640
|
+
*/
|
|
641
|
+
providerUid: string;
|
|
642
|
+
/**
|
|
643
|
+
* Email of the User in the Identity Provider.
|
|
644
|
+
*/
|
|
645
|
+
providerEmail: string;
|
|
646
|
+
/**
|
|
647
|
+
* Identity Provider Access Token.
|
|
648
|
+
*/
|
|
649
|
+
providerAccessToken: string;
|
|
650
|
+
/**
|
|
651
|
+
* The date of when the access token expires in ISO 8601 format.
|
|
652
|
+
*/
|
|
653
|
+
providerAccessTokenExpiry: string;
|
|
654
|
+
/**
|
|
655
|
+
* Identity Provider Refresh Token.
|
|
656
|
+
*/
|
|
657
|
+
providerRefreshToken: string;
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Token
|
|
661
|
+
*/
|
|
662
|
+
type Token = {
|
|
663
|
+
/**
|
|
664
|
+
* Token ID.
|
|
665
|
+
*/
|
|
666
|
+
$id: string;
|
|
667
|
+
/**
|
|
668
|
+
* Token creation date in ISO 8601 format.
|
|
669
|
+
*/
|
|
670
|
+
$createdAt: string;
|
|
671
|
+
/**
|
|
672
|
+
* User ID.
|
|
673
|
+
*/
|
|
674
|
+
userId: string;
|
|
675
|
+
/**
|
|
676
|
+
* Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
|
|
677
|
+
*/
|
|
678
|
+
secret: string;
|
|
679
|
+
/**
|
|
680
|
+
* Token expiration date in ISO 8601 format.
|
|
681
|
+
*/
|
|
682
|
+
expire: string;
|
|
683
|
+
/**
|
|
684
|
+
* Security phrase of a token. Empty if security phrase was not requested when creating a token. It includes randomly generated phrase which is also sent in the external resource such as email.
|
|
685
|
+
*/
|
|
686
|
+
phrase: string;
|
|
687
|
+
};
|
|
688
|
+
/**
|
|
689
|
+
* JWT
|
|
690
|
+
*/
|
|
691
|
+
type Jwt = {
|
|
692
|
+
/**
|
|
693
|
+
* JWT encoded string.
|
|
694
|
+
*/
|
|
695
|
+
jwt: string;
|
|
696
|
+
};
|
|
697
|
+
/**
|
|
698
|
+
* Locale
|
|
699
|
+
*/
|
|
700
|
+
type Locale = {
|
|
701
|
+
/**
|
|
702
|
+
* User IP address.
|
|
703
|
+
*/
|
|
704
|
+
ip: string;
|
|
705
|
+
/**
|
|
706
|
+
* Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format
|
|
707
|
+
*/
|
|
708
|
+
countryCode: string;
|
|
709
|
+
/**
|
|
710
|
+
* Country name. This field support localization.
|
|
711
|
+
*/
|
|
712
|
+
country: string;
|
|
713
|
+
/**
|
|
714
|
+
* Continent code. A two character continent code "AF" for Africa, "AN" for Antarctica, "AS" for Asia, "EU" for Europe, "NA" for North America, "OC" for Oceania, and "SA" for South America.
|
|
715
|
+
*/
|
|
716
|
+
continentCode: string;
|
|
717
|
+
/**
|
|
718
|
+
* Continent name. This field support localization.
|
|
719
|
+
*/
|
|
720
|
+
continent: string;
|
|
721
|
+
/**
|
|
722
|
+
* True if country is part of the European Union.
|
|
723
|
+
*/
|
|
724
|
+
eu: boolean;
|
|
725
|
+
/**
|
|
726
|
+
* Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format
|
|
727
|
+
*/
|
|
728
|
+
currency: string;
|
|
729
|
+
};
|
|
730
|
+
/**
|
|
731
|
+
* LocaleCode
|
|
732
|
+
*/
|
|
733
|
+
type LocaleCode = {
|
|
734
|
+
/**
|
|
735
|
+
* Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
|
|
736
|
+
*/
|
|
737
|
+
code: string;
|
|
738
|
+
/**
|
|
739
|
+
* Locale name
|
|
740
|
+
*/
|
|
741
|
+
name: string;
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* File
|
|
745
|
+
*/
|
|
746
|
+
type File = {
|
|
747
|
+
/**
|
|
748
|
+
* File ID.
|
|
749
|
+
*/
|
|
750
|
+
$id: string;
|
|
751
|
+
/**
|
|
752
|
+
* Bucket ID.
|
|
753
|
+
*/
|
|
754
|
+
bucketId: string;
|
|
755
|
+
/**
|
|
756
|
+
* File creation date in ISO 8601 format.
|
|
757
|
+
*/
|
|
758
|
+
$createdAt: string;
|
|
759
|
+
/**
|
|
760
|
+
* File update date in ISO 8601 format.
|
|
761
|
+
*/
|
|
762
|
+
$updatedAt: string;
|
|
763
|
+
/**
|
|
764
|
+
* File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
765
|
+
*/
|
|
766
|
+
$permissions: string[];
|
|
767
|
+
/**
|
|
768
|
+
* File name.
|
|
769
|
+
*/
|
|
770
|
+
name: string;
|
|
771
|
+
/**
|
|
772
|
+
* File MD5 signature.
|
|
773
|
+
*/
|
|
774
|
+
signature: string;
|
|
775
|
+
/**
|
|
776
|
+
* File mime type.
|
|
777
|
+
*/
|
|
778
|
+
mimeType: string;
|
|
779
|
+
/**
|
|
780
|
+
* File original size in bytes.
|
|
781
|
+
*/
|
|
782
|
+
sizeOriginal: number;
|
|
783
|
+
/**
|
|
784
|
+
* Total number of chunks available
|
|
785
|
+
*/
|
|
786
|
+
chunksTotal: number;
|
|
787
|
+
/**
|
|
788
|
+
* Total number of chunks uploaded
|
|
789
|
+
*/
|
|
790
|
+
chunksUploaded: number;
|
|
791
|
+
};
|
|
792
|
+
/**
|
|
793
|
+
* Team
|
|
794
|
+
*/
|
|
795
|
+
type Team<Preferences extends Models.Preferences> = {
|
|
796
|
+
/**
|
|
797
|
+
* Team ID.
|
|
798
|
+
*/
|
|
799
|
+
$id: string;
|
|
800
|
+
/**
|
|
801
|
+
* Team creation date in ISO 8601 format.
|
|
802
|
+
*/
|
|
803
|
+
$createdAt: string;
|
|
804
|
+
/**
|
|
805
|
+
* Team update date in ISO 8601 format.
|
|
806
|
+
*/
|
|
807
|
+
$updatedAt: string;
|
|
808
|
+
/**
|
|
809
|
+
* Team name.
|
|
810
|
+
*/
|
|
811
|
+
name: string;
|
|
812
|
+
/**
|
|
813
|
+
* Total number of team members.
|
|
814
|
+
*/
|
|
815
|
+
total: number;
|
|
816
|
+
/**
|
|
817
|
+
* Team preferences as a key-value object
|
|
818
|
+
*/
|
|
819
|
+
prefs: Preferences;
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Membership
|
|
823
|
+
*/
|
|
824
|
+
type Membership = {
|
|
825
|
+
/**
|
|
826
|
+
* Membership ID.
|
|
827
|
+
*/
|
|
828
|
+
$id: string;
|
|
829
|
+
/**
|
|
830
|
+
* Membership creation date in ISO 8601 format.
|
|
831
|
+
*/
|
|
832
|
+
$createdAt: string;
|
|
833
|
+
/**
|
|
834
|
+
* Membership update date in ISO 8601 format.
|
|
835
|
+
*/
|
|
836
|
+
$updatedAt: string;
|
|
837
|
+
/**
|
|
838
|
+
* User ID.
|
|
839
|
+
*/
|
|
840
|
+
userId: string;
|
|
841
|
+
/**
|
|
842
|
+
* User name.
|
|
843
|
+
*/
|
|
844
|
+
userName: string;
|
|
845
|
+
/**
|
|
846
|
+
* User email address.
|
|
847
|
+
*/
|
|
848
|
+
userEmail: string;
|
|
849
|
+
/**
|
|
850
|
+
* Team ID.
|
|
851
|
+
*/
|
|
852
|
+
teamId: string;
|
|
853
|
+
/**
|
|
854
|
+
* Team name.
|
|
855
|
+
*/
|
|
856
|
+
teamName: string;
|
|
857
|
+
/**
|
|
858
|
+
* Date, the user has been invited to join the team in ISO 8601 format.
|
|
859
|
+
*/
|
|
860
|
+
invited: string;
|
|
861
|
+
/**
|
|
862
|
+
* Date, the user has accepted the invitation to join the team in ISO 8601 format.
|
|
863
|
+
*/
|
|
864
|
+
joined: string;
|
|
865
|
+
/**
|
|
866
|
+
* User confirmation status, true if the user has joined the team or false otherwise.
|
|
867
|
+
*/
|
|
868
|
+
confirm: boolean;
|
|
869
|
+
/**
|
|
870
|
+
* Multi factor authentication status, true if the user has MFA enabled or false otherwise.
|
|
871
|
+
*/
|
|
872
|
+
mfa: boolean;
|
|
873
|
+
/**
|
|
874
|
+
* User list of roles
|
|
875
|
+
*/
|
|
876
|
+
roles: string[];
|
|
877
|
+
};
|
|
878
|
+
/**
|
|
879
|
+
* Execution
|
|
880
|
+
*/
|
|
881
|
+
type Execution = {
|
|
882
|
+
/**
|
|
883
|
+
* Execution ID.
|
|
884
|
+
*/
|
|
885
|
+
$id: string;
|
|
886
|
+
/**
|
|
887
|
+
* Execution creation date in ISO 8601 format.
|
|
888
|
+
*/
|
|
889
|
+
$createdAt: string;
|
|
890
|
+
/**
|
|
891
|
+
* Execution upate date in ISO 8601 format.
|
|
892
|
+
*/
|
|
893
|
+
$updatedAt: string;
|
|
894
|
+
/**
|
|
895
|
+
* Execution roles.
|
|
896
|
+
*/
|
|
897
|
+
$permissions: string[];
|
|
898
|
+
/**
|
|
899
|
+
* Function ID.
|
|
900
|
+
*/
|
|
901
|
+
functionId: string;
|
|
902
|
+
/**
|
|
903
|
+
* The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
|
|
904
|
+
*/
|
|
905
|
+
trigger: string;
|
|
906
|
+
/**
|
|
907
|
+
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
|
|
908
|
+
*/
|
|
909
|
+
status: string;
|
|
910
|
+
/**
|
|
911
|
+
* HTTP request method type.
|
|
912
|
+
*/
|
|
913
|
+
requestMethod: string;
|
|
914
|
+
/**
|
|
915
|
+
* HTTP request path and query.
|
|
916
|
+
*/
|
|
917
|
+
requestPath: string;
|
|
918
|
+
/**
|
|
919
|
+
* HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
|
|
920
|
+
*/
|
|
921
|
+
requestHeaders: Headers[];
|
|
922
|
+
/**
|
|
923
|
+
* HTTP response status code.
|
|
924
|
+
*/
|
|
925
|
+
responseStatusCode: number;
|
|
926
|
+
/**
|
|
927
|
+
* HTTP response body. This will return empty unless execution is created as synchronous.
|
|
928
|
+
*/
|
|
929
|
+
responseBody: string;
|
|
930
|
+
/**
|
|
931
|
+
* HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
|
|
932
|
+
*/
|
|
933
|
+
responseHeaders: Headers[];
|
|
934
|
+
/**
|
|
935
|
+
* Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
|
|
936
|
+
*/
|
|
937
|
+
logs: string;
|
|
938
|
+
/**
|
|
939
|
+
* Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
|
|
940
|
+
*/
|
|
941
|
+
errors: string;
|
|
942
|
+
/**
|
|
943
|
+
* Function execution duration in seconds.
|
|
944
|
+
*/
|
|
945
|
+
duration: number;
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
* Country
|
|
949
|
+
*/
|
|
950
|
+
type Country = {
|
|
951
|
+
/**
|
|
952
|
+
* Country name.
|
|
953
|
+
*/
|
|
954
|
+
name: string;
|
|
955
|
+
/**
|
|
956
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
957
|
+
*/
|
|
958
|
+
code: string;
|
|
959
|
+
};
|
|
960
|
+
/**
|
|
961
|
+
* Continent
|
|
962
|
+
*/
|
|
963
|
+
type Continent = {
|
|
964
|
+
/**
|
|
965
|
+
* Continent name.
|
|
966
|
+
*/
|
|
967
|
+
name: string;
|
|
968
|
+
/**
|
|
969
|
+
* Continent two letter code.
|
|
970
|
+
*/
|
|
971
|
+
code: string;
|
|
972
|
+
};
|
|
973
|
+
/**
|
|
974
|
+
* Language
|
|
975
|
+
*/
|
|
976
|
+
type Language = {
|
|
977
|
+
/**
|
|
978
|
+
* Language name.
|
|
979
|
+
*/
|
|
980
|
+
name: string;
|
|
981
|
+
/**
|
|
982
|
+
* Language two-character ISO 639-1 codes.
|
|
983
|
+
*/
|
|
984
|
+
code: string;
|
|
985
|
+
/**
|
|
986
|
+
* Language native name.
|
|
987
|
+
*/
|
|
988
|
+
nativeName: string;
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Currency
|
|
992
|
+
*/
|
|
993
|
+
type Currency = {
|
|
994
|
+
/**
|
|
995
|
+
* Currency symbol.
|
|
996
|
+
*/
|
|
997
|
+
symbol: string;
|
|
998
|
+
/**
|
|
999
|
+
* Currency name.
|
|
1000
|
+
*/
|
|
1001
|
+
name: string;
|
|
1002
|
+
/**
|
|
1003
|
+
* Currency native symbol.
|
|
1004
|
+
*/
|
|
1005
|
+
symbolNative: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* Number of decimal digits.
|
|
1008
|
+
*/
|
|
1009
|
+
decimalDigits: number;
|
|
1010
|
+
/**
|
|
1011
|
+
* Currency digit rounding.
|
|
1012
|
+
*/
|
|
1013
|
+
rounding: number;
|
|
1014
|
+
/**
|
|
1015
|
+
* Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
|
|
1016
|
+
*/
|
|
1017
|
+
code: string;
|
|
1018
|
+
/**
|
|
1019
|
+
* Currency plural name
|
|
1020
|
+
*/
|
|
1021
|
+
namePlural: string;
|
|
1022
|
+
};
|
|
1023
|
+
/**
|
|
1024
|
+
* Phone
|
|
1025
|
+
*/
|
|
1026
|
+
type Phone = {
|
|
1027
|
+
/**
|
|
1028
|
+
* Phone code.
|
|
1029
|
+
*/
|
|
1030
|
+
code: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
1033
|
+
*/
|
|
1034
|
+
countryCode: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Country name.
|
|
1037
|
+
*/
|
|
1038
|
+
countryName: string;
|
|
1039
|
+
};
|
|
1040
|
+
/**
|
|
1041
|
+
* Headers
|
|
1042
|
+
*/
|
|
1043
|
+
type Headers = {
|
|
1044
|
+
/**
|
|
1045
|
+
* Header name.
|
|
1046
|
+
*/
|
|
1047
|
+
name: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Header value.
|
|
1050
|
+
*/
|
|
1051
|
+
value: string;
|
|
1052
|
+
};
|
|
1053
|
+
/**
|
|
1054
|
+
* MFA Challenge
|
|
1055
|
+
*/
|
|
1056
|
+
type MfaChallenge = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Token ID.
|
|
1059
|
+
*/
|
|
1060
|
+
$id: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* Token creation date in ISO 8601 format.
|
|
1063
|
+
*/
|
|
1064
|
+
$createdAt: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* User ID.
|
|
1067
|
+
*/
|
|
1068
|
+
userId: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* Token expiration date in ISO 8601 format.
|
|
1071
|
+
*/
|
|
1072
|
+
expire: string;
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* MFA Recovery Codes
|
|
1076
|
+
*/
|
|
1077
|
+
type MfaRecoveryCodes = {
|
|
1078
|
+
/**
|
|
1079
|
+
* Recovery codes.
|
|
1080
|
+
*/
|
|
1081
|
+
recoveryCodes: string[];
|
|
1082
|
+
};
|
|
1083
|
+
/**
|
|
1084
|
+
* MFAType
|
|
1085
|
+
*/
|
|
1086
|
+
type MfaType = {
|
|
1087
|
+
/**
|
|
1088
|
+
* Secret token used for TOTP factor.
|
|
1089
|
+
*/
|
|
1090
|
+
secret: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* URI for authenticator apps.
|
|
1093
|
+
*/
|
|
1094
|
+
uri: string;
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* MFAFactors
|
|
1098
|
+
*/
|
|
1099
|
+
type MfaFactors = {
|
|
1100
|
+
/**
|
|
1101
|
+
* Can TOTP be used for MFA challenge for this account.
|
|
1102
|
+
*/
|
|
1103
|
+
totp: boolean;
|
|
1104
|
+
/**
|
|
1105
|
+
* Can phone (SMS) be used for MFA challenge for this account.
|
|
1106
|
+
*/
|
|
1107
|
+
phone: boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* Can email be used for MFA challenge for this account.
|
|
1110
|
+
*/
|
|
1111
|
+
email: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* Can recovery code be used for MFA challenge for this account.
|
|
1114
|
+
*/
|
|
1115
|
+
recoveryCode: boolean;
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* Subscriber
|
|
1119
|
+
*/
|
|
1120
|
+
type Subscriber = {
|
|
1121
|
+
/**
|
|
1122
|
+
* Subscriber ID.
|
|
1123
|
+
*/
|
|
1124
|
+
$id: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* Subscriber creation time in ISO 8601 format.
|
|
1127
|
+
*/
|
|
1128
|
+
$createdAt: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* Subscriber update date in ISO 8601 format.
|
|
1131
|
+
*/
|
|
1132
|
+
$updatedAt: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Target ID.
|
|
1135
|
+
*/
|
|
1136
|
+
targetId: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* Target.
|
|
1139
|
+
*/
|
|
1140
|
+
target: Target;
|
|
1141
|
+
/**
|
|
1142
|
+
* Topic ID.
|
|
1143
|
+
*/
|
|
1144
|
+
userId: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* User Name.
|
|
1147
|
+
*/
|
|
1148
|
+
userName: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* Topic ID.
|
|
1151
|
+
*/
|
|
1152
|
+
topicId: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* The target provider type. Can be one of the following: `email`, `sms` or `push`.
|
|
1155
|
+
*/
|
|
1156
|
+
providerType: string;
|
|
1157
|
+
};
|
|
1158
|
+
/**
|
|
1159
|
+
* Target
|
|
1160
|
+
*/
|
|
1161
|
+
type Target = {
|
|
1162
|
+
/**
|
|
1163
|
+
* Target ID.
|
|
1164
|
+
*/
|
|
1165
|
+
$id: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Target creation time in ISO 8601 format.
|
|
1168
|
+
*/
|
|
1169
|
+
$createdAt: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* Target update date in ISO 8601 format.
|
|
1172
|
+
*/
|
|
1173
|
+
$updatedAt: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Target Name.
|
|
1176
|
+
*/
|
|
1177
|
+
name: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* User ID.
|
|
1180
|
+
*/
|
|
1181
|
+
userId: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* Provider ID.
|
|
1184
|
+
*/
|
|
1185
|
+
providerId?: string;
|
|
1186
|
+
/**
|
|
1187
|
+
* The target provider type. Can be one of the following: `email`, `sms` or `push`.
|
|
1188
|
+
*/
|
|
1189
|
+
providerType: string;
|
|
1190
|
+
/**
|
|
1191
|
+
* The target identifier.
|
|
1192
|
+
*/
|
|
1193
|
+
identifier: string;
|
|
1194
|
+
};
|
|
1195
|
+
}
|