@appwrite.io/console 0.2.0 → 0.4.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/README.md +3 -3
- package/dist/cjs/sdk.js +3353 -1497
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +3350 -1498
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +3353 -1497
- 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.md +1 -1
- package/docs/examples/account/{create-with-invite-code.md → delete-identity.md} +2 -2
- 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 +2 -2
- 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 +1 -1
- 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-builds.md +18 -0
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +18 -0
- package/docs/examples/health/get-queue-deletes.md +18 -0
- 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-mails.md +18 -0
- package/docs/examples/health/get-queue-messaging.md +18 -0
- package/docs/examples/health/get-queue-migrations.md +18 -0
- 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 +2 -2
- 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/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/{delete-domain.md → update-personal-data-check.md} +2 -2
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/{create-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/{get-domain.md → update-smtp-configuration.md} +2 -2
- package/docs/examples/projects/{list-domains.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 +2 -2
- 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 +3 -2
- package/src/client.ts +2 -2
- package/src/index.ts +4 -0
- package/src/models.ts +863 -233
- package/src/query.ts +1 -1
- package/src/role.ts +72 -6
- package/src/services/account.ts +1052 -1055
- package/src/services/assistant.ts +38 -0
- package/src/services/avatars.ts +338 -337
- package/src/services/console.ts +16 -16
- package/src/services/databases.ts +2170 -2140
- package/src/services/functions.ts +804 -657
- package/src/services/graphql.ts +47 -47
- package/src/services/health.ts +373 -204
- package/src/services/locale.ts +156 -137
- package/src/services/migrations.ts +707 -0
- package/src/services/project.ts +178 -20
- package/src/services/projects.ts +1511 -1256
- package/src/services/proxy.ts +150 -0
- package/src/services/storage.ts +572 -577
- package/src/services/teams.ts +498 -501
- package/src/services/users.ts +1091 -1001
- package/src/services/vcs.ts +272 -0
- package/types/index.d.ts +4 -0
- package/types/models.d.ts +863 -233
- package/types/role.d.ts +62 -0
- package/types/services/account.d.ts +116 -104
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +18 -17
- package/types/services/console.d.ts +2 -2
- package/types/services/databases.d.ts +111 -105
- package/types/services/functions.d.ts +95 -55
- package/types/services/graphql.d.ts +4 -4
- package/types/services/health.d.ts +97 -26
- package/types/services/locale.d.ts +24 -14
- package/types/services/migrations.d.ts +185 -0
- package/types/services/project.d.ts +60 -3
- package/types/services/projects.d.ts +174 -104
- package/types/services/proxy.d.ts +59 -0
- package/types/services/storage.d.ts +29 -28
- package/types/services/teams.d.ts +36 -35
- package/types/services/users.d.ts +105 -66
- package/types/services/vcs.d.ts +97 -0
- package/docs/examples/projects/update-domain-verification.md +0 -18
|
@@ -4,7 +4,7 @@ import type { Models } from '../models';
|
|
|
4
4
|
export declare class Users extends Service {
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* List
|
|
7
|
+
* List users
|
|
8
8
|
*
|
|
9
9
|
* Get a list of all the project's users. You can use the query params to
|
|
10
10
|
* filter your results.
|
|
@@ -13,10 +13,10 @@ export declare class Users extends Service {
|
|
|
13
13
|
* @param {string} search
|
|
14
14
|
* @throws {AppwriteException}
|
|
15
15
|
* @returns {Promise}
|
|
16
|
-
|
|
16
|
+
*/
|
|
17
17
|
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.UserList<Preferences>>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create user
|
|
20
20
|
*
|
|
21
21
|
* Create a new user.
|
|
22
22
|
*
|
|
@@ -27,15 +27,15 @@ export declare class Users extends Service {
|
|
|
27
27
|
* @param {string} name
|
|
28
28
|
* @throws {AppwriteException}
|
|
29
29
|
* @returns {Promise}
|
|
30
|
-
|
|
30
|
+
*/
|
|
31
31
|
create<Preferences extends Models.Preferences>(userId: string, email?: string, phone?: string, password?: string, name?: string): Promise<Models.User<Preferences>>;
|
|
32
32
|
/**
|
|
33
|
-
* Create
|
|
33
|
+
* Create user with Argon2 password
|
|
34
34
|
*
|
|
35
35
|
* Create a new user. Password provided must be hashed with the
|
|
36
36
|
* [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST
|
|
37
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
38
|
-
* plain text password.
|
|
37
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
38
|
+
* create users with a plain text password.
|
|
39
39
|
*
|
|
40
40
|
* @param {string} userId
|
|
41
41
|
* @param {string} email
|
|
@@ -43,15 +43,15 @@ export declare class Users extends Service {
|
|
|
43
43
|
* @param {string} name
|
|
44
44
|
* @throws {AppwriteException}
|
|
45
45
|
* @returns {Promise}
|
|
46
|
-
|
|
46
|
+
*/
|
|
47
47
|
createArgon2User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
48
48
|
/**
|
|
49
|
-
* Create
|
|
49
|
+
* Create user with bcrypt password
|
|
50
50
|
*
|
|
51
51
|
* Create a new user. Password provided must be hashed with the
|
|
52
52
|
* [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST
|
|
53
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
54
|
-
* plain text password.
|
|
53
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
54
|
+
* create users with a plain text password.
|
|
55
55
|
*
|
|
56
56
|
* @param {string} userId
|
|
57
57
|
* @param {string} email
|
|
@@ -59,15 +59,36 @@ export declare class Users extends Service {
|
|
|
59
59
|
* @param {string} name
|
|
60
60
|
* @throws {AppwriteException}
|
|
61
61
|
* @returns {Promise}
|
|
62
|
-
|
|
62
|
+
*/
|
|
63
63
|
createBcryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* List Identities
|
|
66
|
+
*
|
|
67
|
+
* Get identities for all users.
|
|
68
|
+
*
|
|
69
|
+
* @param {string} queries
|
|
70
|
+
* @param {string} search
|
|
71
|
+
* @throws {AppwriteException}
|
|
72
|
+
* @returns {Promise}
|
|
73
|
+
*/
|
|
74
|
+
listIdentities(queries?: string, search?: string): Promise<Models.IdentityList>;
|
|
75
|
+
/**
|
|
76
|
+
* Delete Identity
|
|
77
|
+
*
|
|
78
|
+
* Delete an identity by its unique ID.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} identityId
|
|
81
|
+
* @throws {AppwriteException}
|
|
82
|
+
* @returns {Promise}
|
|
83
|
+
*/
|
|
84
|
+
deleteIdentity(identityId: string): Promise<{}>;
|
|
85
|
+
/**
|
|
86
|
+
* Create user with MD5 password
|
|
66
87
|
*
|
|
67
88
|
* Create a new user. Password provided must be hashed with the
|
|
68
89
|
* [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST
|
|
69
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
70
|
-
* plain text password.
|
|
90
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
91
|
+
* create users with a plain text password.
|
|
71
92
|
*
|
|
72
93
|
* @param {string} userId
|
|
73
94
|
* @param {string} email
|
|
@@ -75,15 +96,15 @@ export declare class Users extends Service {
|
|
|
75
96
|
* @param {string} name
|
|
76
97
|
* @throws {AppwriteException}
|
|
77
98
|
* @returns {Promise}
|
|
78
|
-
|
|
99
|
+
*/
|
|
79
100
|
createMD5User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
80
101
|
/**
|
|
81
|
-
* Create
|
|
102
|
+
* Create user with PHPass password
|
|
82
103
|
*
|
|
83
104
|
* Create a new user. Password provided must be hashed with the
|
|
84
105
|
* [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST
|
|
85
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
86
|
-
* plain text password.
|
|
106
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
107
|
+
* create users with a plain text password.
|
|
87
108
|
*
|
|
88
109
|
* @param {string} userId
|
|
89
110
|
* @param {string} email
|
|
@@ -91,15 +112,15 @@ export declare class Users extends Service {
|
|
|
91
112
|
* @param {string} name
|
|
92
113
|
* @throws {AppwriteException}
|
|
93
114
|
* @returns {Promise}
|
|
94
|
-
|
|
115
|
+
*/
|
|
95
116
|
createPHPassUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
96
117
|
/**
|
|
97
|
-
* Create
|
|
118
|
+
* Create user with Scrypt password
|
|
98
119
|
*
|
|
99
120
|
* Create a new user. Password provided must be hashed with the
|
|
100
121
|
* [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST
|
|
101
|
-
* /users](/docs/server/users#usersCreate) endpoint to
|
|
102
|
-
* plain text password.
|
|
122
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
123
|
+
* create users with a plain text password.
|
|
103
124
|
*
|
|
104
125
|
* @param {string} userId
|
|
105
126
|
* @param {string} email
|
|
@@ -112,15 +133,16 @@ export declare class Users extends Service {
|
|
|
112
133
|
* @param {string} name
|
|
113
134
|
* @throws {AppwriteException}
|
|
114
135
|
* @returns {Promise}
|
|
115
|
-
|
|
136
|
+
*/
|
|
116
137
|
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>>;
|
|
117
138
|
/**
|
|
118
|
-
* Create
|
|
139
|
+
* Create user with Scrypt modified password
|
|
119
140
|
*
|
|
120
141
|
* Create a new user. Password provided must be hashed with the [Scrypt
|
|
121
142
|
* Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc)
|
|
122
|
-
* algorithm. Use the [POST
|
|
123
|
-
*
|
|
143
|
+
* algorithm. Use the [POST
|
|
144
|
+
* /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to
|
|
145
|
+
* create users with a plain text password.
|
|
124
146
|
*
|
|
125
147
|
* @param {string} userId
|
|
126
148
|
* @param {string} email
|
|
@@ -131,15 +153,15 @@ export declare class Users extends Service {
|
|
|
131
153
|
* @param {string} name
|
|
132
154
|
* @throws {AppwriteException}
|
|
133
155
|
* @returns {Promise}
|
|
134
|
-
|
|
156
|
+
*/
|
|
135
157
|
createScryptModifiedUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string): Promise<Models.User<Preferences>>;
|
|
136
158
|
/**
|
|
137
|
-
* Create
|
|
159
|
+
* Create user with SHA password
|
|
138
160
|
*
|
|
139
161
|
* Create a new user. Password provided must be hashed with the
|
|
140
162
|
* [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use
|
|
141
|
-
* the [POST /users](/docs/server/users#usersCreate)
|
|
142
|
-
* with a plain text password.
|
|
163
|
+
* the [POST /users](https://appwrite.io/docs/server/users#usersCreate)
|
|
164
|
+
* endpoint to create users with a plain text password.
|
|
143
165
|
*
|
|
144
166
|
* @param {string} userId
|
|
145
167
|
* @param {string} email
|
|
@@ -148,7 +170,7 @@ export declare class Users extends Service {
|
|
|
148
170
|
* @param {string} name
|
|
149
171
|
* @throws {AppwriteException}
|
|
150
172
|
* @returns {Promise}
|
|
151
|
-
|
|
173
|
+
*/
|
|
152
174
|
createSHAUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordVersion?: string, name?: string): Promise<Models.User<Preferences>>;
|
|
153
175
|
/**
|
|
154
176
|
* Get usage stats for the users API
|
|
@@ -157,34 +179,35 @@ export declare class Users extends Service {
|
|
|
157
179
|
* @param {string} range
|
|
158
180
|
* @throws {AppwriteException}
|
|
159
181
|
* @returns {Promise}
|
|
160
|
-
|
|
182
|
+
*/
|
|
161
183
|
getUsage(range?: string): Promise<Models.UsageUsers>;
|
|
162
184
|
/**
|
|
163
|
-
* Get
|
|
185
|
+
* Get user
|
|
164
186
|
*
|
|
165
187
|
* Get a user by its unique ID.
|
|
166
188
|
*
|
|
167
189
|
* @param {string} userId
|
|
168
190
|
* @throws {AppwriteException}
|
|
169
191
|
* @returns {Promise}
|
|
170
|
-
|
|
192
|
+
*/
|
|
171
193
|
get<Preferences extends Models.Preferences>(userId: string): Promise<Models.User<Preferences>>;
|
|
172
194
|
/**
|
|
173
|
-
* Delete
|
|
195
|
+
* Delete user
|
|
174
196
|
*
|
|
175
197
|
* Delete a user by its unique ID, thereby releasing it's ID. Since ID is
|
|
176
198
|
* released and can be reused, all user-related resources like documents or
|
|
177
199
|
* storage files should be deleted before user deletion. If you want to keep
|
|
178
|
-
* ID reserved, use the
|
|
200
|
+
* ID reserved, use the
|
|
201
|
+
* [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus)
|
|
179
202
|
* endpoint instead.
|
|
180
203
|
*
|
|
181
204
|
* @param {string} userId
|
|
182
205
|
* @throws {AppwriteException}
|
|
183
206
|
* @returns {Promise}
|
|
184
|
-
|
|
207
|
+
*/
|
|
185
208
|
delete(userId: string): Promise<{}>;
|
|
186
209
|
/**
|
|
187
|
-
* Update
|
|
210
|
+
* Update email
|
|
188
211
|
*
|
|
189
212
|
* Update the user email by its unique ID.
|
|
190
213
|
*
|
|
@@ -192,10 +215,26 @@ export declare class Users extends Service {
|
|
|
192
215
|
* @param {string} email
|
|
193
216
|
* @throws {AppwriteException}
|
|
194
217
|
* @returns {Promise}
|
|
195
|
-
|
|
218
|
+
*/
|
|
196
219
|
updateEmail<Preferences extends Models.Preferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
|
|
197
220
|
/**
|
|
198
|
-
*
|
|
221
|
+
* Update user labels
|
|
222
|
+
*
|
|
223
|
+
* Update the user labels by its unique ID.
|
|
224
|
+
*
|
|
225
|
+
* Labels can be used to grant access to resources. While teams are a way for
|
|
226
|
+
* user's to share access to a resource, labels can be defined by the
|
|
227
|
+
* developer to grant access without an invitation. See the [Permissions
|
|
228
|
+
* docs](https://appwrite.io/docs/permissions) for more info.
|
|
229
|
+
*
|
|
230
|
+
* @param {string} userId
|
|
231
|
+
* @param {string[]} labels
|
|
232
|
+
* @throws {AppwriteException}
|
|
233
|
+
* @returns {Promise}
|
|
234
|
+
*/
|
|
235
|
+
updateLabels<Preferences extends Models.Preferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
|
|
236
|
+
/**
|
|
237
|
+
* List user logs
|
|
199
238
|
*
|
|
200
239
|
* Get the user activity logs list by its unique ID.
|
|
201
240
|
*
|
|
@@ -203,20 +242,20 @@ export declare class Users extends Service {
|
|
|
203
242
|
* @param {string[]} queries
|
|
204
243
|
* @throws {AppwriteException}
|
|
205
244
|
* @returns {Promise}
|
|
206
|
-
|
|
245
|
+
*/
|
|
207
246
|
listLogs(userId: string, queries?: string[]): Promise<Models.LogList>;
|
|
208
247
|
/**
|
|
209
|
-
* List
|
|
248
|
+
* List user memberships
|
|
210
249
|
*
|
|
211
250
|
* Get the user membership list by its unique ID.
|
|
212
251
|
*
|
|
213
252
|
* @param {string} userId
|
|
214
253
|
* @throws {AppwriteException}
|
|
215
254
|
* @returns {Promise}
|
|
216
|
-
|
|
255
|
+
*/
|
|
217
256
|
listMemberships(userId: string): Promise<Models.MembershipList>;
|
|
218
257
|
/**
|
|
219
|
-
* Update
|
|
258
|
+
* Update name
|
|
220
259
|
*
|
|
221
260
|
* Update the user name by its unique ID.
|
|
222
261
|
*
|
|
@@ -224,10 +263,10 @@ export declare class Users extends Service {
|
|
|
224
263
|
* @param {string} name
|
|
225
264
|
* @throws {AppwriteException}
|
|
226
265
|
* @returns {Promise}
|
|
227
|
-
|
|
266
|
+
*/
|
|
228
267
|
updateName<Preferences extends Models.Preferences>(userId: string, name: string): Promise<Models.User<Preferences>>;
|
|
229
268
|
/**
|
|
230
|
-
* Update
|
|
269
|
+
* Update password
|
|
231
270
|
*
|
|
232
271
|
* Update the user password by its unique ID.
|
|
233
272
|
*
|
|
@@ -235,10 +274,10 @@ export declare class Users extends Service {
|
|
|
235
274
|
* @param {string} password
|
|
236
275
|
* @throws {AppwriteException}
|
|
237
276
|
* @returns {Promise}
|
|
238
|
-
|
|
277
|
+
*/
|
|
239
278
|
updatePassword<Preferences extends Models.Preferences>(userId: string, password: string): Promise<Models.User<Preferences>>;
|
|
240
279
|
/**
|
|
241
|
-
* Update
|
|
280
|
+
* Update phone
|
|
242
281
|
*
|
|
243
282
|
* Update the user phone by its unique ID.
|
|
244
283
|
*
|
|
@@ -246,20 +285,20 @@ export declare class Users extends Service {
|
|
|
246
285
|
* @param {string} number
|
|
247
286
|
* @throws {AppwriteException}
|
|
248
287
|
* @returns {Promise}
|
|
249
|
-
|
|
288
|
+
*/
|
|
250
289
|
updatePhone<Preferences extends Models.Preferences>(userId: string, number: string): Promise<Models.User<Preferences>>;
|
|
251
290
|
/**
|
|
252
|
-
* Get
|
|
291
|
+
* Get user preferences
|
|
253
292
|
*
|
|
254
293
|
* Get the user preferences by its unique ID.
|
|
255
294
|
*
|
|
256
295
|
* @param {string} userId
|
|
257
296
|
* @throws {AppwriteException}
|
|
258
297
|
* @returns {Promise}
|
|
259
|
-
|
|
298
|
+
*/
|
|
260
299
|
getPrefs<Preferences extends Models.Preferences>(userId: string): Promise<Preferences>;
|
|
261
300
|
/**
|
|
262
|
-
* Update
|
|
301
|
+
* Update user preferences
|
|
263
302
|
*
|
|
264
303
|
* Update the user preferences by its unique ID. The object you pass is stored
|
|
265
304
|
* as is, and replaces any previous value. The maximum allowed prefs size is
|
|
@@ -269,30 +308,30 @@ export declare class Users extends Service {
|
|
|
269
308
|
* @param {object} prefs
|
|
270
309
|
* @throws {AppwriteException}
|
|
271
310
|
* @returns {Promise}
|
|
272
|
-
|
|
311
|
+
*/
|
|
273
312
|
updatePrefs<Preferences extends Models.Preferences>(userId: string, prefs: object): Promise<Preferences>;
|
|
274
313
|
/**
|
|
275
|
-
* List
|
|
314
|
+
* List user sessions
|
|
276
315
|
*
|
|
277
316
|
* Get the user sessions list by its unique ID.
|
|
278
317
|
*
|
|
279
318
|
* @param {string} userId
|
|
280
319
|
* @throws {AppwriteException}
|
|
281
320
|
* @returns {Promise}
|
|
282
|
-
|
|
321
|
+
*/
|
|
283
322
|
listSessions(userId: string): Promise<Models.SessionList>;
|
|
284
323
|
/**
|
|
285
|
-
* Delete
|
|
324
|
+
* Delete user sessions
|
|
286
325
|
*
|
|
287
326
|
* Delete all user's sessions by using the user's unique ID.
|
|
288
327
|
*
|
|
289
328
|
* @param {string} userId
|
|
290
329
|
* @throws {AppwriteException}
|
|
291
330
|
* @returns {Promise}
|
|
292
|
-
|
|
331
|
+
*/
|
|
293
332
|
deleteSessions(userId: string): Promise<{}>;
|
|
294
333
|
/**
|
|
295
|
-
* Delete
|
|
334
|
+
* Delete user session
|
|
296
335
|
*
|
|
297
336
|
* Delete a user sessions by its unique ID.
|
|
298
337
|
*
|
|
@@ -300,10 +339,10 @@ export declare class Users extends Service {
|
|
|
300
339
|
* @param {string} sessionId
|
|
301
340
|
* @throws {AppwriteException}
|
|
302
341
|
* @returns {Promise}
|
|
303
|
-
|
|
342
|
+
*/
|
|
304
343
|
deleteSession(userId: string, sessionId: string): Promise<{}>;
|
|
305
344
|
/**
|
|
306
|
-
* Update
|
|
345
|
+
* Update user status
|
|
307
346
|
*
|
|
308
347
|
* Update the user status by its unique ID. Use this endpoint as an
|
|
309
348
|
* alternative to deleting a user if you want to keep user's ID reserved.
|
|
@@ -312,10 +351,10 @@ export declare class Users extends Service {
|
|
|
312
351
|
* @param {boolean} status
|
|
313
352
|
* @throws {AppwriteException}
|
|
314
353
|
* @returns {Promise}
|
|
315
|
-
|
|
354
|
+
*/
|
|
316
355
|
updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
|
|
317
356
|
/**
|
|
318
|
-
* Update
|
|
357
|
+
* Update email verification
|
|
319
358
|
*
|
|
320
359
|
* Update the user email verification status by its unique ID.
|
|
321
360
|
*
|
|
@@ -323,10 +362,10 @@ export declare class Users extends Service {
|
|
|
323
362
|
* @param {boolean} emailVerification
|
|
324
363
|
* @throws {AppwriteException}
|
|
325
364
|
* @returns {Promise}
|
|
326
|
-
|
|
365
|
+
*/
|
|
327
366
|
updateEmailVerification<Preferences extends Models.Preferences>(userId: string, emailVerification: boolean): Promise<Models.User<Preferences>>;
|
|
328
367
|
/**
|
|
329
|
-
* Update
|
|
368
|
+
* Update phone verification
|
|
330
369
|
*
|
|
331
370
|
* Update the user phone verification status by its unique ID.
|
|
332
371
|
*
|
|
@@ -334,6 +373,6 @@ export declare class Users extends Service {
|
|
|
334
373
|
* @param {boolean} phoneVerification
|
|
335
374
|
* @throws {AppwriteException}
|
|
336
375
|
* @returns {Promise}
|
|
337
|
-
|
|
376
|
+
*/
|
|
338
377
|
updatePhoneVerification<Preferences extends Models.Preferences>(userId: string, phoneVerification: boolean): Promise<Models.User<Preferences>>;
|
|
339
378
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { Client } from '../client';
|
|
3
|
+
import type { Models } from '../models';
|
|
4
|
+
export declare class Vcs extends Service {
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* List Repositories
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @param {string} installationId
|
|
11
|
+
* @param {string} search
|
|
12
|
+
* @throws {AppwriteException}
|
|
13
|
+
* @returns {Promise}
|
|
14
|
+
*/
|
|
15
|
+
listRepositories(installationId: string, search?: string): Promise<Models.ProviderRepositoryList>;
|
|
16
|
+
/**
|
|
17
|
+
* Create repository
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* @param {string} installationId
|
|
21
|
+
* @param {string} name
|
|
22
|
+
* @param {boolean} xprivate
|
|
23
|
+
* @throws {AppwriteException}
|
|
24
|
+
* @returns {Promise}
|
|
25
|
+
*/
|
|
26
|
+
createRepository(installationId: string, name: string, xprivate: boolean): Promise<Models.ProviderRepository>;
|
|
27
|
+
/**
|
|
28
|
+
* Get repository
|
|
29
|
+
*
|
|
30
|
+
*
|
|
31
|
+
* @param {string} installationId
|
|
32
|
+
* @param {string} providerRepositoryId
|
|
33
|
+
* @throws {AppwriteException}
|
|
34
|
+
* @returns {Promise}
|
|
35
|
+
*/
|
|
36
|
+
getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository>;
|
|
37
|
+
/**
|
|
38
|
+
* List Repository Branches
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @param {string} installationId
|
|
42
|
+
* @param {string} providerRepositoryId
|
|
43
|
+
* @throws {AppwriteException}
|
|
44
|
+
* @returns {Promise}
|
|
45
|
+
*/
|
|
46
|
+
listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList>;
|
|
47
|
+
/**
|
|
48
|
+
* Detect runtime settings from source code
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* @param {string} installationId
|
|
52
|
+
* @param {string} providerRepositoryId
|
|
53
|
+
* @param {string} providerRootDirectory
|
|
54
|
+
* @throws {AppwriteException}
|
|
55
|
+
* @returns {Promise}
|
|
56
|
+
*/
|
|
57
|
+
createRepositoryDetection(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.Detection>;
|
|
58
|
+
/**
|
|
59
|
+
* Authorize external deployment
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* @param {string} installationId
|
|
63
|
+
* @param {string} repositoryId
|
|
64
|
+
* @param {string} providerPullRequestId
|
|
65
|
+
* @throws {AppwriteException}
|
|
66
|
+
* @returns {Promise}
|
|
67
|
+
*/
|
|
68
|
+
updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}>;
|
|
69
|
+
/**
|
|
70
|
+
* List installations
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @param {string[]} queries
|
|
74
|
+
* @param {string} search
|
|
75
|
+
* @throws {AppwriteException}
|
|
76
|
+
* @returns {Promise}
|
|
77
|
+
*/
|
|
78
|
+
listInstallations(queries?: string[], search?: string): Promise<Models.InstallationList>;
|
|
79
|
+
/**
|
|
80
|
+
* Get installation
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
* @param {string} installationId
|
|
84
|
+
* @throws {AppwriteException}
|
|
85
|
+
* @returns {Promise}
|
|
86
|
+
*/
|
|
87
|
+
getInstallation(installationId: string): Promise<Models.Installation>;
|
|
88
|
+
/**
|
|
89
|
+
* Delete Installation
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* @param {string} installationId
|
|
93
|
+
* @throws {AppwriteException}
|
|
94
|
+
* @returns {Promise}
|
|
95
|
+
*/
|
|
96
|
+
deleteInstallation(installationId: string): Promise<{}>;
|
|
97
|
+
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Client, Projects } from "@appwrite.io/console";
|
|
2
|
-
|
|
3
|
-
const client = new Client();
|
|
4
|
-
|
|
5
|
-
const projects = new Projects(client);
|
|
6
|
-
|
|
7
|
-
client
|
|
8
|
-
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
|
|
9
|
-
.setProject('5df5acd0d48c2') // Your project ID
|
|
10
|
-
;
|
|
11
|
-
|
|
12
|
-
const promise = projects.updateDomainVerification('[PROJECT_ID]', '[DOMAIN_ID]');
|
|
13
|
-
|
|
14
|
-
promise.then(function (response) {
|
|
15
|
-
console.log(response); // Success
|
|
16
|
-
}, function (error) {
|
|
17
|
-
console.log(error); // Failure
|
|
18
|
-
});
|