@appwrite.io/console 0.2.0 → 0.3.0
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/cjs/sdk.js +2332 -633
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2329 -634
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2332 -633
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-session.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-phone-session.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create-with-invite-code.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-identity.md +18 -0
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-identities.md +18 -0
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +18 -0
- package/docs/examples/avatars/get-browser.md +1 -1
- package/docs/examples/avatars/get-credit-card.md +1 -1
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +1 -1
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +1 -1
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +1 -1
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-deployment.md +2 -2
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-variable.md +1 -1
- package/docs/examples/functions/create.md +1 -1
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/download-deployment.md +14 -0
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-function-usage.md +1 -1
- package/docs/examples/functions/get-usage.md +1 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment.md +1 -1
- package/docs/examples/functions/update-variable.md +1 -1
- package/docs/examples/functions/update.md +2 -2
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-queue.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +18 -0
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +18 -0
- package/docs/examples/migrations/create-firebase-migration.md +18 -0
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +18 -0
- package/docs/examples/migrations/create-n-host-migration.md +18 -0
- package/docs/examples/migrations/create-supabase-migration.md +18 -0
- package/docs/examples/migrations/delete-firebase-auth.md +18 -0
- package/docs/examples/migrations/delete.md +18 -0
- package/docs/examples/migrations/get-appwrite-report.md +18 -0
- package/docs/examples/migrations/get-firebase-report-o-auth.md +18 -0
- package/docs/examples/migrations/get-firebase-report.md +18 -0
- package/docs/examples/migrations/get-n-host-report.md +18 -0
- package/docs/examples/migrations/get-supabase-report.md +18 -0
- package/docs/examples/migrations/get.md +18 -0
- package/docs/examples/migrations/list-firebase-projects.md +18 -0
- package/docs/examples/migrations/list.md +18 -0
- package/docs/examples/migrations/retry.md +18 -0
- package/docs/examples/project/create-variable.md +18 -0
- package/docs/examples/project/delete-variable.md +18 -0
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +18 -0
- package/docs/examples/project/list-variables.md +18 -0
- package/docs/examples/project/update-variable.md +18 -0
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-email-template.md +18 -0
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +18 -0
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +2 -2
- package/docs/examples/projects/get-email-template.md +18 -0
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +18 -0
- package/docs/examples/projects/{list-domains.md → get-usage.md} +2 -2
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-email-template.md +18 -0
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/{get-domain.md → update-personal-data-check.md} +2 -2
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/{delete-domain.md → update-service-status-all.md} +2 -2
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-sms-template.md +18 -0
- package/docs/examples/projects/update-smtp-configuration.md +18 -0
- package/docs/examples/projects/{create-domain.md → update-team.md} +2 -2
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-rule.md +18 -0
- package/docs/examples/proxy/delete-rule.md +18 -0
- package/docs/examples/proxy/get-rule.md +18 -0
- package/docs/examples/proxy/list-rules.md +18 -0
- package/docs/examples/proxy/update-rule-verification.md +18 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +1 -1
- package/docs/examples/storage/get-file-preview.md +1 -1
- package/docs/examples/storage/get-file-view.md +1 -1
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +2 -2
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +18 -0
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +18 -0
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +18 -0
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +18 -0
- package/docs/examples/vcs/create-repository.md +18 -0
- package/docs/examples/vcs/delete-installation.md +18 -0
- package/docs/examples/vcs/get-installation.md +18 -0
- package/docs/examples/vcs/get-repository.md +18 -0
- package/docs/examples/vcs/list-installations.md +18 -0
- package/docs/examples/vcs/list-repositories.md +18 -0
- package/docs/examples/vcs/list-repository-branches.md +18 -0
- package/docs/examples/vcs/update-external-deployments.md +18 -0
- package/package.json +1 -1
- package/src/client.ts +2 -2
- package/src/index.ts +4 -0
- package/src/models.ts +905 -114
- package/src/services/account.ts +1102 -1055
- package/src/services/assistant.ts +38 -0
- package/src/services/avatars.ts +337 -337
- package/src/services/console.ts +16 -16
- package/src/services/databases.ts +2170 -2140
- package/src/services/functions.ts +808 -652
- package/src/services/graphql.ts +47 -47
- package/src/services/health.ts +226 -226
- package/src/services/locale.ts +156 -137
- package/src/services/migrations.ts +707 -0
- package/src/services/project.ts +160 -20
- package/src/services/projects.ts +1538 -1256
- package/src/services/proxy.ts +150 -0
- package/src/services/storage.ts +576 -571
- package/src/services/teams.ts +502 -501
- package/src/services/users.ts +1094 -1001
- package/src/services/vcs.ts +272 -0
- package/types/index.d.ts +4 -0
- package/types/models.d.ts +905 -114
- package/types/services/account.d.ts +62 -41
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +7 -7
- package/types/services/console.d.ts +1 -1
- package/types/services/databases.d.ts +60 -54
- package/types/services/functions.d.ts +66 -31
- package/types/services/graphql.d.ts +2 -2
- package/types/services/health.d.ts +12 -12
- package/types/services/locale.d.ts +17 -7
- package/types/services/migrations.d.ts +185 -0
- package/types/services/project.d.ts +56 -1
- package/types/services/projects.d.ts +159 -79
- package/types/services/proxy.d.ts +59 -0
- package/types/services/storage.d.ts +18 -17
- package/types/services/teams.d.ts +17 -16
- package/types/services/users.d.ts +65 -27
- package/types/services/vcs.d.ts +97 -0
- package/docs/examples/projects/update-domain-verification.md +0 -18
|
@@ -6,11 +6,11 @@ export declare class Account extends Service {
|
|
|
6
6
|
/**
|
|
7
7
|
* Get Account
|
|
8
8
|
*
|
|
9
|
-
* Get currently logged in user
|
|
9
|
+
* Get the currently logged in user.
|
|
10
10
|
*
|
|
11
11
|
* @throws {AppwriteException}
|
|
12
12
|
* @returns {Promise}
|
|
13
|
-
|
|
13
|
+
*/
|
|
14
14
|
get<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
|
|
15
15
|
/**
|
|
16
16
|
* Create Account
|
|
@@ -28,7 +28,7 @@ export declare class Account extends Service {
|
|
|
28
28
|
* @param {string} name
|
|
29
29
|
* @throws {AppwriteException}
|
|
30
30
|
* @returns {Promise}
|
|
31
|
-
|
|
31
|
+
*/
|
|
32
32
|
create<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
33
33
|
/**
|
|
34
34
|
* Update Email
|
|
@@ -46,8 +46,28 @@ export declare class Account extends Service {
|
|
|
46
46
|
* @param {string} password
|
|
47
47
|
* @throws {AppwriteException}
|
|
48
48
|
* @returns {Promise}
|
|
49
|
-
|
|
49
|
+
*/
|
|
50
50
|
updateEmail<Preferences extends Models.Preferences>(email: string, password: string): Promise<Models.User<Preferences>>;
|
|
51
|
+
/**
|
|
52
|
+
* List Identities
|
|
53
|
+
*
|
|
54
|
+
* Get the list of identities for the currently logged in user.
|
|
55
|
+
*
|
|
56
|
+
* @param {string} queries
|
|
57
|
+
* @throws {AppwriteException}
|
|
58
|
+
* @returns {Promise}
|
|
59
|
+
*/
|
|
60
|
+
listIdentities(queries?: string): Promise<Models.IdentityList>;
|
|
61
|
+
/**
|
|
62
|
+
* Delete Identity
|
|
63
|
+
*
|
|
64
|
+
* Delete an identity by its unique ID.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} identityId
|
|
67
|
+
* @throws {AppwriteException}
|
|
68
|
+
* @returns {Promise}
|
|
69
|
+
*/
|
|
70
|
+
deleteIdentity(identityId: string): Promise<{}>;
|
|
51
71
|
/**
|
|
52
72
|
* Create account using an invite code
|
|
53
73
|
*
|
|
@@ -65,7 +85,7 @@ export declare class Account extends Service {
|
|
|
65
85
|
* @param {string} code
|
|
66
86
|
* @throws {AppwriteException}
|
|
67
87
|
* @returns {Promise}
|
|
68
|
-
|
|
88
|
+
*/
|
|
69
89
|
createWithInviteCode<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string, code?: string): Promise<Models.Account<Preferences>>;
|
|
70
90
|
/**
|
|
71
91
|
* Create JWT
|
|
@@ -78,18 +98,18 @@ export declare class Account extends Service {
|
|
|
78
98
|
*
|
|
79
99
|
* @throws {AppwriteException}
|
|
80
100
|
* @returns {Promise}
|
|
81
|
-
|
|
101
|
+
*/
|
|
82
102
|
createJWT(): Promise<Models.Jwt>;
|
|
83
103
|
/**
|
|
84
104
|
* List Logs
|
|
85
105
|
*
|
|
86
|
-
* Get
|
|
87
|
-
* log returns user IP address, location and date and time of log.
|
|
106
|
+
* Get the list of latest security activity logs for the currently logged in
|
|
107
|
+
* user. Each log returns user IP address, location and date and time of log.
|
|
88
108
|
*
|
|
89
109
|
* @param {string[]} queries
|
|
90
110
|
* @throws {AppwriteException}
|
|
91
111
|
* @returns {Promise}
|
|
92
|
-
|
|
112
|
+
*/
|
|
93
113
|
listLogs(queries?: string[]): Promise<Models.LogList>;
|
|
94
114
|
/**
|
|
95
115
|
* Update Name
|
|
@@ -99,7 +119,7 @@ export declare class Account extends Service {
|
|
|
99
119
|
* @param {string} name
|
|
100
120
|
* @throws {AppwriteException}
|
|
101
121
|
* @returns {Promise}
|
|
102
|
-
|
|
122
|
+
*/
|
|
103
123
|
updateName<Preferences extends Models.Preferences>(name: string): Promise<Models.User<Preferences>>;
|
|
104
124
|
/**
|
|
105
125
|
* Update Password
|
|
@@ -112,7 +132,7 @@ export declare class Account extends Service {
|
|
|
112
132
|
* @param {string} oldPassword
|
|
113
133
|
* @throws {AppwriteException}
|
|
114
134
|
* @returns {Promise}
|
|
115
|
-
|
|
135
|
+
*/
|
|
116
136
|
updatePassword<Preferences extends Models.Preferences>(password: string, oldPassword?: string): Promise<Models.User<Preferences>>;
|
|
117
137
|
/**
|
|
118
138
|
* Update Phone
|
|
@@ -127,16 +147,16 @@ export declare class Account extends Service {
|
|
|
127
147
|
* @param {string} password
|
|
128
148
|
* @throws {AppwriteException}
|
|
129
149
|
* @returns {Promise}
|
|
130
|
-
|
|
150
|
+
*/
|
|
131
151
|
updatePhone<Preferences extends Models.Preferences>(phone: string, password: string): Promise<Models.User<Preferences>>;
|
|
132
152
|
/**
|
|
133
153
|
* Get Account Preferences
|
|
134
154
|
*
|
|
135
|
-
* Get
|
|
155
|
+
* Get the preferences as a key-value object for the currently logged in user.
|
|
136
156
|
*
|
|
137
157
|
* @throws {AppwriteException}
|
|
138
158
|
* @returns {Promise}
|
|
139
|
-
|
|
159
|
+
*/
|
|
140
160
|
getPrefs<Preferences extends Models.Preferences>(): Promise<Preferences>;
|
|
141
161
|
/**
|
|
142
162
|
* Update Preferences
|
|
@@ -148,7 +168,7 @@ export declare class Account extends Service {
|
|
|
148
168
|
* @param {Partial<Preferences>} prefs
|
|
149
169
|
* @throws {AppwriteException}
|
|
150
170
|
* @returns {Promise}
|
|
151
|
-
|
|
171
|
+
*/
|
|
152
172
|
updatePrefs<Preferences extends Models.Preferences>(prefs: Partial<Preferences>): Promise<Models.User<Preferences>>;
|
|
153
173
|
/**
|
|
154
174
|
* Create Password Recovery
|
|
@@ -166,7 +186,7 @@ export declare class Account extends Service {
|
|
|
166
186
|
* @param {string} url
|
|
167
187
|
* @throws {AppwriteException}
|
|
168
188
|
* @returns {Promise}
|
|
169
|
-
|
|
189
|
+
*/
|
|
170
190
|
createRecovery(email: string, url: string): Promise<Models.Token>;
|
|
171
191
|
/**
|
|
172
192
|
* Create Password Recovery (confirmation)
|
|
@@ -187,17 +207,17 @@ export declare class Account extends Service {
|
|
|
187
207
|
* @param {string} passwordAgain
|
|
188
208
|
* @throws {AppwriteException}
|
|
189
209
|
* @returns {Promise}
|
|
190
|
-
|
|
210
|
+
*/
|
|
191
211
|
updateRecovery(userId: string, secret: string, password: string, passwordAgain: string): Promise<Models.Token>;
|
|
192
212
|
/**
|
|
193
213
|
* List Sessions
|
|
194
214
|
*
|
|
195
|
-
* Get
|
|
196
|
-
*
|
|
215
|
+
* Get the list of active sessions across different devices for the currently
|
|
216
|
+
* logged in user.
|
|
197
217
|
*
|
|
198
218
|
* @throws {AppwriteException}
|
|
199
219
|
* @returns {Promise}
|
|
200
|
-
|
|
220
|
+
*/
|
|
201
221
|
listSessions(): Promise<Models.SessionList>;
|
|
202
222
|
/**
|
|
203
223
|
* Delete Sessions
|
|
@@ -207,7 +227,7 @@ export declare class Account extends Service {
|
|
|
207
227
|
*
|
|
208
228
|
* @throws {AppwriteException}
|
|
209
229
|
* @returns {Promise}
|
|
210
|
-
|
|
230
|
+
*/
|
|
211
231
|
deleteSessions(): Promise<{}>;
|
|
212
232
|
/**
|
|
213
233
|
* Create Anonymous Session
|
|
@@ -221,7 +241,7 @@ export declare class Account extends Service {
|
|
|
221
241
|
*
|
|
222
242
|
* @throws {AppwriteException}
|
|
223
243
|
* @returns {Promise}
|
|
224
|
-
|
|
244
|
+
*/
|
|
225
245
|
createAnonymousSession(): Promise<Models.Session>;
|
|
226
246
|
/**
|
|
227
247
|
* Create Email Session
|
|
@@ -236,13 +256,13 @@ export declare class Account extends Service {
|
|
|
236
256
|
* @param {string} password
|
|
237
257
|
* @throws {AppwriteException}
|
|
238
258
|
* @returns {Promise}
|
|
239
|
-
|
|
259
|
+
*/
|
|
240
260
|
createEmailSession(email: string, password: string): Promise<Models.Session>;
|
|
241
261
|
/**
|
|
242
262
|
* Create Magic URL session
|
|
243
263
|
*
|
|
244
264
|
* Sends the user an email with a secret key for creating a session. If the
|
|
245
|
-
* provided user ID has not
|
|
265
|
+
* provided user ID has not been registered, a new user will be created. When
|
|
246
266
|
* the user clicks the link in the email, the user is redirected back to the
|
|
247
267
|
* URL you provided with the secret key and userId values attached to the URL
|
|
248
268
|
* query string. Use the query string parameters to submit a request to the
|
|
@@ -256,12 +276,13 @@ export declare class Account extends Service {
|
|
|
256
276
|
* A user is limited to 10 active sessions at a time by default. [Learn more
|
|
257
277
|
* about session limits](/docs/authentication-security#limits).
|
|
258
278
|
*
|
|
279
|
+
*
|
|
259
280
|
* @param {string} userId
|
|
260
281
|
* @param {string} email
|
|
261
282
|
* @param {string} url
|
|
262
283
|
* @throws {AppwriteException}
|
|
263
284
|
* @returns {Promise}
|
|
264
|
-
|
|
285
|
+
*/
|
|
265
286
|
createMagicURLSession(userId: string, email: string, url?: string): Promise<Models.Token>;
|
|
266
287
|
/**
|
|
267
288
|
* Create Magic URL session (confirmation)
|
|
@@ -282,7 +303,7 @@ export declare class Account extends Service {
|
|
|
282
303
|
* @param {string} secret
|
|
283
304
|
* @throws {AppwriteException}
|
|
284
305
|
* @returns {Promise}
|
|
285
|
-
|
|
306
|
+
*/
|
|
286
307
|
updateMagicURLSession(userId: string, secret: string): Promise<Models.Session>;
|
|
287
308
|
/**
|
|
288
309
|
* Create OAuth2 Session
|
|
@@ -309,7 +330,7 @@ export declare class Account extends Service {
|
|
|
309
330
|
* @param {string[]} scopes
|
|
310
331
|
* @throws {AppwriteException}
|
|
311
332
|
* @returns {void|string}
|
|
312
|
-
|
|
333
|
+
*/
|
|
313
334
|
createOAuth2Session(provider: string, success?: string, failure?: string, scopes?: string[]): void | URL;
|
|
314
335
|
/**
|
|
315
336
|
* Create Phone session
|
|
@@ -328,7 +349,7 @@ export declare class Account extends Service {
|
|
|
328
349
|
* @param {string} phone
|
|
329
350
|
* @throws {AppwriteException}
|
|
330
351
|
* @returns {Promise}
|
|
331
|
-
|
|
352
|
+
*/
|
|
332
353
|
createPhoneSession(userId: string, phone: string): Promise<Models.Token>;
|
|
333
354
|
/**
|
|
334
355
|
* Create Phone Session (confirmation)
|
|
@@ -343,7 +364,7 @@ export declare class Account extends Service {
|
|
|
343
364
|
* @param {string} secret
|
|
344
365
|
* @throws {AppwriteException}
|
|
345
366
|
* @returns {Promise}
|
|
346
|
-
|
|
367
|
+
*/
|
|
347
368
|
updatePhoneSession(userId: string, secret: string): Promise<Models.Session>;
|
|
348
369
|
/**
|
|
349
370
|
* Get Session
|
|
@@ -354,7 +375,7 @@ export declare class Account extends Service {
|
|
|
354
375
|
* @param {string} sessionId
|
|
355
376
|
* @throws {AppwriteException}
|
|
356
377
|
* @returns {Promise}
|
|
357
|
-
|
|
378
|
+
*/
|
|
358
379
|
getSession(sessionId: string): Promise<Models.Session>;
|
|
359
380
|
/**
|
|
360
381
|
* Update OAuth Session (Refresh Tokens)
|
|
@@ -366,20 +387,20 @@ export declare class Account extends Service {
|
|
|
366
387
|
* @param {string} sessionId
|
|
367
388
|
* @throws {AppwriteException}
|
|
368
389
|
* @returns {Promise}
|
|
369
|
-
|
|
390
|
+
*/
|
|
370
391
|
updateSession(sessionId: string): Promise<Models.Session>;
|
|
371
392
|
/**
|
|
372
393
|
* Delete Session
|
|
373
394
|
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
395
|
+
* Logout the user. Use 'current' as the session ID to logout on this device,
|
|
396
|
+
* use a session ID to logout on another device. If you're looking to logout
|
|
397
|
+
* the user on all devices, use [Delete
|
|
398
|
+
* Sessions](/docs/client/account#accountDeleteSessions) instead.
|
|
378
399
|
*
|
|
379
400
|
* @param {string} sessionId
|
|
380
401
|
* @throws {AppwriteException}
|
|
381
402
|
* @returns {Promise}
|
|
382
|
-
|
|
403
|
+
*/
|
|
383
404
|
deleteSession(sessionId: string): Promise<{}>;
|
|
384
405
|
/**
|
|
385
406
|
* Update Status
|
|
@@ -390,7 +411,7 @@ export declare class Account extends Service {
|
|
|
390
411
|
*
|
|
391
412
|
* @throws {AppwriteException}
|
|
392
413
|
* @returns {Promise}
|
|
393
|
-
|
|
414
|
+
*/
|
|
394
415
|
updateStatus<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
|
|
395
416
|
/**
|
|
396
417
|
* Create Email Verification
|
|
@@ -414,7 +435,7 @@ export declare class Account extends Service {
|
|
|
414
435
|
* @param {string} url
|
|
415
436
|
* @throws {AppwriteException}
|
|
416
437
|
* @returns {Promise}
|
|
417
|
-
|
|
438
|
+
*/
|
|
418
439
|
createVerification(url: string): Promise<Models.Token>;
|
|
419
440
|
/**
|
|
420
441
|
* Create Email Verification (confirmation)
|
|
@@ -428,7 +449,7 @@ export declare class Account extends Service {
|
|
|
428
449
|
* @param {string} secret
|
|
429
450
|
* @throws {AppwriteException}
|
|
430
451
|
* @returns {Promise}
|
|
431
|
-
|
|
452
|
+
*/
|
|
432
453
|
updateVerification(userId: string, secret: string): Promise<Models.Token>;
|
|
433
454
|
/**
|
|
434
455
|
* Create Phone Verification
|
|
@@ -442,7 +463,7 @@ export declare class Account extends Service {
|
|
|
442
463
|
*
|
|
443
464
|
* @throws {AppwriteException}
|
|
444
465
|
* @returns {Promise}
|
|
445
|
-
|
|
466
|
+
*/
|
|
446
467
|
createPhoneVerification(): Promise<Models.Token>;
|
|
447
468
|
/**
|
|
448
469
|
* Create Phone Verification (confirmation)
|
|
@@ -456,6 +477,6 @@ export declare class Account extends Service {
|
|
|
456
477
|
* @param {string} secret
|
|
457
478
|
* @throws {AppwriteException}
|
|
458
479
|
* @returns {Promise}
|
|
459
|
-
|
|
480
|
+
*/
|
|
460
481
|
updatePhoneVerification(userId: string, secret: string): Promise<Models.Token>;
|
|
461
482
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { Client } from '../client';
|
|
3
|
+
export declare class Assistant extends Service {
|
|
4
|
+
constructor(client: Client);
|
|
5
|
+
/**
|
|
6
|
+
* Ask Query
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* @param {string} prompt
|
|
10
|
+
* @throws {AppwriteException}
|
|
11
|
+
* @returns {Promise}
|
|
12
|
+
*/
|
|
13
|
+
chat(prompt: string): Promise<{}>;
|
|
14
|
+
}
|
|
@@ -21,7 +21,7 @@ export declare class Avatars extends Service {
|
|
|
21
21
|
* @param {number} quality
|
|
22
22
|
* @throws {AppwriteException}
|
|
23
23
|
* @returns {URL}
|
|
24
|
-
|
|
24
|
+
*/
|
|
25
25
|
getBrowser(code: string, width?: number, height?: number, quality?: number): URL;
|
|
26
26
|
/**
|
|
27
27
|
* Get Credit Card Icon
|
|
@@ -42,7 +42,7 @@ export declare class Avatars extends Service {
|
|
|
42
42
|
* @param {number} quality
|
|
43
43
|
* @throws {AppwriteException}
|
|
44
44
|
* @returns {URL}
|
|
45
|
-
|
|
45
|
+
*/
|
|
46
46
|
getCreditCard(code: string, width?: number, height?: number, quality?: number): URL;
|
|
47
47
|
/**
|
|
48
48
|
* Get Favicon
|
|
@@ -54,7 +54,7 @@ export declare class Avatars extends Service {
|
|
|
54
54
|
* @param {string} url
|
|
55
55
|
* @throws {AppwriteException}
|
|
56
56
|
* @returns {URL}
|
|
57
|
-
|
|
57
|
+
*/
|
|
58
58
|
getFavicon(url: string): URL;
|
|
59
59
|
/**
|
|
60
60
|
* Get Country Flag
|
|
@@ -76,7 +76,7 @@ export declare class Avatars extends Service {
|
|
|
76
76
|
* @param {number} quality
|
|
77
77
|
* @throws {AppwriteException}
|
|
78
78
|
* @returns {URL}
|
|
79
|
-
|
|
79
|
+
*/
|
|
80
80
|
getFlag(code: string, width?: number, height?: number, quality?: number): URL;
|
|
81
81
|
/**
|
|
82
82
|
* Get Image from URL
|
|
@@ -97,7 +97,7 @@ export declare class Avatars extends Service {
|
|
|
97
97
|
* @param {number} height
|
|
98
98
|
* @throws {AppwriteException}
|
|
99
99
|
* @returns {URL}
|
|
100
|
-
|
|
100
|
+
*/
|
|
101
101
|
getImage(url: string, width?: number, height?: number): URL;
|
|
102
102
|
/**
|
|
103
103
|
* Get User Initials
|
|
@@ -125,7 +125,7 @@ export declare class Avatars extends Service {
|
|
|
125
125
|
* @param {string} background
|
|
126
126
|
* @throws {AppwriteException}
|
|
127
127
|
* @returns {URL}
|
|
128
|
-
|
|
128
|
+
*/
|
|
129
129
|
getInitials(name?: string, width?: number, height?: number, background?: string): URL;
|
|
130
130
|
/**
|
|
131
131
|
* Get QR Code
|
|
@@ -140,6 +140,6 @@ export declare class Avatars extends Service {
|
|
|
140
140
|
* @param {boolean} download
|
|
141
141
|
* @throws {AppwriteException}
|
|
142
142
|
* @returns {URL}
|
|
143
|
-
|
|
143
|
+
*/
|
|
144
144
|
getQR(text: string, size?: number, margin?: number, download?: boolean): URL;
|
|
145
145
|
}
|