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
Copy file name to clipboardexpand all lines: src/main/kotlin/io/appwrite/services/Account.kt
+7-31
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,7 @@ class Account(client: Client) : Service(client) {
363
363
/**
364
364
* Add Authenticator
365
365
*
366
-
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator) method.
366
+
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
367
367
*
368
368
* @param type Type of authenticator. Must be `totp`
369
369
* @return [io.appwrite.models.MfaType]
@@ -396,7 +396,7 @@ class Account(client: Client) : Service(client) {
396
396
/**
397
397
* Verify Authenticator
398
398
*
399
-
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
399
+
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
400
400
*
401
401
* @param type Type of authenticator.
402
402
* @param otp Valid verification token.
@@ -433,7 +433,7 @@ class Account(client: Client) : Service(client) {
433
433
/**
434
434
* Verify Authenticator
435
435
*
436
-
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#addAuthenticator) method.
436
+
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method. add
437
437
*
438
438
* @param type Type of authenticator.
439
439
* @param otp Valid verification token.
@@ -456,14 +456,13 @@ class Account(client: Client) : Service(client) {
456
456
*
457
457
* @param type Type of authenticator.
458
458
* @param otp Valid verification token.
459
-
* @return [io.appwrite.models.User<T>]
459
+
* @return [Any]
460
460
*/
461
461
@Throws(AppwriteException::class)
462
-
suspendfun<T> deleteMfaAuthenticator(
462
+
suspendfundeleteMfaAuthenticator(
463
463
type: io.appwrite.enums.AuthenticatorType,
464
464
otp:String,
465
-
nestedType:Class<T>,
466
-
): io.appwrite.models.User<T> {
465
+
): Any {
467
466
val apiPath ="/account/mfa/authenticators/{type}"
468
467
.replace("{type}", type.value)
469
468
@@ -473,38 +472,15 @@ class Account(client: Client) : Service(client) {
473
472
val apiHeaders =mutableMapOf(
474
473
"content-type" to "application/json",
475
474
)
476
-
val converter: (Any) -> io.appwrite.models.User<T> = {
477
-
io.appwrite.models.User.from(map = it asMap<String, Any>, nestedType)
Copy file name to clipboardexpand all lines: src/main/kotlin/io/appwrite/services/Avatars.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ class Avatars(client: Client) : Service(client) {
58
58
*
59
59
* The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
Copy file name to clipboardexpand all lines: src/main/kotlin/io/appwrite/services/Messaging.kt
+6-3
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ class Messaging(client: Client) : Service(client) {
63
63
* @param targets List of Targets IDs.
64
64
* @param cc Array of target IDs to be added as CC.
65
65
* @param bcc Array of target IDs to be added as BCC.
66
-
* @param attachments Array of compound bucket IDs to file IDs to be attached to the email.
66
+
* @param attachments Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
67
67
* @param draft Is message a draft
68
68
* @param html Is content of type HTML
69
69
* @param scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
@@ -133,6 +133,7 @@ class Messaging(client: Client) : Service(client) {
133
133
* @param cc Array of target IDs to be added as CC.
134
134
* @param bcc Array of target IDs to be added as BCC.
135
135
* @param scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
136
+
* @param attachments Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
136
137
* @return [io.appwrite.models.Message]
137
138
*/
138
139
@JvmOverloads
@@ -149,6 +150,7 @@ class Messaging(client: Client) : Service(client) {
149
150
cc:List<String>? = null,
150
151
bcc:List<String>? = null,
151
152
scheduledAt:String? = null,
153
+
attachments:List<String>? = null,
152
154
): io.appwrite.models.Message {
153
155
val apiPath ="/messaging/messages/email/{messageId}"
154
156
.replace("{messageId}", messageId)
@@ -164,6 +166,7 @@ class Messaging(client: Client) : Service(client) {
164
166
"cc" to cc,
165
167
"bcc" to bcc,
166
168
"scheduledAt" to scheduledAt,
169
+
"attachments" to attachments,
167
170
)
168
171
val apiHeaders =mutableMapOf(
169
172
"content-type" to "application/json",
@@ -194,7 +197,7 @@ class Messaging(client: Client) : Service(client) {
194
197
* @param targets List of Targets IDs.
195
198
* @param data Additional Data for push notification.
196
199
* @param action Action for push notification.
197
-
* @param image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage.
200
+
* @param image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
198
201
* @param icon Icon for push notification. Available only for Android and Web Platform.
199
202
* @param sound Sound for push notification. Available only for Android and IOS Platform.
200
203
* @param color Color for push notification. Available only for Android Platform.
@@ -273,7 +276,7 @@ class Messaging(client: Client) : Service(client) {
273
276
* @param body Body for push notification.
274
277
* @param data Additional Data for push notification.
275
278
* @param action Action for push notification.
276
-
* @param image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage.
279
+
* @param image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
277
280
* @param icon Icon for push notification. Available only for Android and Web platforms.
278
281
* @param sound Sound for push notification. Available only for Android and iOS platforms.
279
282
* @param color Color for push notification. Available only for Android platforms.
Copy file name to clipboardexpand all lines: src/main/kotlin/io/appwrite/services/Users.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -1922,7 +1922,7 @@ class Users(client: Client) : Service(client) {
1922
1922
/**
1923
1923
* Create token
1924
1924
*
1925
-
* Returns a token with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [PUT /account/sessions/custom](https://appwrite.io/docs/references/cloud/client-web/account#updateCustomSession) endpoint to complete the login process.
1925
+
* 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.
1926
1926
*
1927
1927
* @param userId User ID.
1928
1928
* @param length Token length in characters. The default length is 6 characters
0 commit comments