@appwrite.io/console 0.6.0 → 0.6.2

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/types/models.d.ts CHANGED
@@ -1320,6 +1320,10 @@ export declare namespace Models {
1320
1320
  * Session creation date in ISO 8601 format.
1321
1321
  */
1322
1322
  $createdAt: string;
1323
+ /**
1324
+ * Session update date in ISO 8601 format.
1325
+ */
1326
+ $updatedAt: string;
1323
1327
  /**
1324
1328
  * User ID.
1325
1329
  */
@@ -3266,17 +3270,21 @@ export declare namespace Models {
3266
3270
  */
3267
3271
  type MfaFactors = {
3268
3272
  /**
3269
- * TOTP
3273
+ * Can TOTP be used for MFA challenge for this account.
3270
3274
  */
3271
3275
  totp: boolean;
3272
3276
  /**
3273
- * Phone
3277
+ * Can phone (SMS) be used for MFA challenge for this account.
3274
3278
  */
3275
3279
  phone: boolean;
3276
3280
  /**
3277
- * Email
3281
+ * Can email be used for MFA challenge for this account.
3278
3282
  */
3279
3283
  email: boolean;
3284
+ /**
3285
+ * Can recovery code be used for MFA challenge for this account.
3286
+ */
3287
+ recoveryCode: boolean;
3280
3288
  };
3281
3289
  /**
3282
3290
  * Provider
@@ -120,7 +120,7 @@ export declare class Account extends Service {
120
120
  *
121
121
  * Add an authenticator app to be used as an MFA factor. Verify the
122
122
  * authenticator using the [verify
123
- * authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
123
+ * authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator)
124
124
  * method.
125
125
  *
126
126
  * @param {AuthenticatorType} type
@@ -132,8 +132,8 @@ export declare class Account extends Service {
132
132
  * Verify Authenticator
133
133
  *
134
134
  * Verify an authenticator app after adding it using the [add
135
- * authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
136
- * method.
135
+ * authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator)
136
+ * method. add
137
137
  *
138
138
  * @param {AuthenticatorType} type
139
139
  * @param {string} otp
@@ -151,7 +151,7 @@ export declare class Account extends Service {
151
151
  * @throws {AppwriteException}
152
152
  * @returns {Promise}
153
153
  */
154
- deleteMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
154
+ deleteMfaAuthenticator(type: AuthenticatorType, otp: string): Promise<{}>;
155
155
  /**
156
156
  * Create 2FA Challenge
157
157
  *
@@ -53,10 +53,11 @@ export declare class Messaging extends Service {
53
53
  * @param {string[]} cc
54
54
  * @param {string[]} bcc
55
55
  * @param {string} scheduledAt
56
+ * @param {string[]} attachments
56
57
  * @throws {AppwriteException}
57
58
  * @returns {Promise}
58
59
  */
59
- updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string): Promise<Models.Message>;
60
+ updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string, attachments?: string[]): Promise<Models.Message>;
60
61
  /**
61
62
  * Create push notification
62
63
  *
@@ -301,14 +302,14 @@ export declare class Messaging extends Service {
301
302
  *
302
303
  * @param {string} providerId
303
304
  * @param {string} name
304
- * @param {string} from
305
+ * @param {string} templateId
305
306
  * @param {string} senderId
306
307
  * @param {string} authKey
307
308
  * @param {boolean} enabled
308
309
  * @throws {AppwriteException}
309
310
  * @returns {Promise}
310
311
  */
311
- createMsg91Provider(providerId: string, name: string, from?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider>;
312
+ createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider>;
312
313
  /**
313
314
  * Update Msg91 provider
314
315
  *
@@ -317,13 +318,13 @@ export declare class Messaging extends Service {
317
318
  * @param {string} providerId
318
319
  * @param {string} name
319
320
  * @param {boolean} enabled
321
+ * @param {string} templateId
320
322
  * @param {string} senderId
321
323
  * @param {string} authKey
322
- * @param {string} from
323
324
  * @throws {AppwriteException}
324
325
  * @returns {Promise}
325
326
  */
326
- updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, senderId?: string, authKey?: string, from?: string): Promise<Models.Provider>;
327
+ updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider>;
327
328
  /**
328
329
  * Create Sendgrid provider
329
330
  *