@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
|
@@ -14,7 +14,7 @@ export declare class Storage extends Service {
|
|
|
14
14
|
* @param {string} search
|
|
15
15
|
* @throws {AppwriteException}
|
|
16
16
|
* @returns {Promise}
|
|
17
|
-
|
|
17
|
+
*/
|
|
18
18
|
listBuckets(queries?: string[], search?: string): Promise<Models.BucketList>;
|
|
19
19
|
/**
|
|
20
20
|
* Create bucket
|
|
@@ -33,10 +33,10 @@ export declare class Storage extends Service {
|
|
|
33
33
|
* @param {boolean} antivirus
|
|
34
34
|
* @throws {AppwriteException}
|
|
35
35
|
* @returns {Promise}
|
|
36
|
-
|
|
36
|
+
*/
|
|
37
37
|
createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: string, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
|
|
38
38
|
/**
|
|
39
|
-
* Get
|
|
39
|
+
* Get bucket
|
|
40
40
|
*
|
|
41
41
|
* Get a storage bucket by its unique ID. This endpoint response returns a
|
|
42
42
|
* JSON object with the storage bucket metadata.
|
|
@@ -44,10 +44,10 @@ export declare class Storage extends Service {
|
|
|
44
44
|
* @param {string} bucketId
|
|
45
45
|
* @throws {AppwriteException}
|
|
46
46
|
* @returns {Promise}
|
|
47
|
-
|
|
47
|
+
*/
|
|
48
48
|
getBucket(bucketId: string): Promise<Models.Bucket>;
|
|
49
49
|
/**
|
|
50
|
-
* Update
|
|
50
|
+
* Update bucket
|
|
51
51
|
*
|
|
52
52
|
* Update a storage bucket by its unique ID.
|
|
53
53
|
*
|
|
@@ -63,20 +63,20 @@ export declare class Storage extends Service {
|
|
|
63
63
|
* @param {boolean} antivirus
|
|
64
64
|
* @throws {AppwriteException}
|
|
65
65
|
* @returns {Promise}
|
|
66
|
-
|
|
66
|
+
*/
|
|
67
67
|
updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: string, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
|
|
68
68
|
/**
|
|
69
|
-
* Delete
|
|
69
|
+
* Delete bucket
|
|
70
70
|
*
|
|
71
71
|
* Delete a storage bucket by its unique ID.
|
|
72
72
|
*
|
|
73
73
|
* @param {string} bucketId
|
|
74
74
|
* @throws {AppwriteException}
|
|
75
75
|
* @returns {Promise}
|
|
76
|
-
|
|
76
|
+
*/
|
|
77
77
|
deleteBucket(bucketId: string): Promise<{}>;
|
|
78
78
|
/**
|
|
79
|
-
* List
|
|
79
|
+
* List files
|
|
80
80
|
*
|
|
81
81
|
* Get a list of all the user files. You can use the query params to filter
|
|
82
82
|
* your results.
|
|
@@ -86,15 +86,15 @@ export declare class Storage extends Service {
|
|
|
86
86
|
* @param {string} search
|
|
87
87
|
* @throws {AppwriteException}
|
|
88
88
|
* @returns {Promise}
|
|
89
|
-
|
|
89
|
+
*/
|
|
90
90
|
listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList>;
|
|
91
91
|
/**
|
|
92
|
-
* Create
|
|
92
|
+
* Create file
|
|
93
93
|
*
|
|
94
94
|
* Create a new file. Before using this route, you should create a new bucket
|
|
95
95
|
* resource using either a [server
|
|
96
|
-
* integration](/docs/server/storage#storageCreateBucket)
|
|
97
|
-
* your Appwrite console.
|
|
96
|
+
* integration](https://appwrite.io/docs/server/storage#storageCreateBucket)
|
|
97
|
+
* API or directly from your Appwrite console.
|
|
98
98
|
*
|
|
99
99
|
* Larger files should be uploaded using multiple requests with the
|
|
100
100
|
* [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range)
|
|
@@ -116,10 +116,10 @@ export declare class Storage extends Service {
|
|
|
116
116
|
* @param {string[]} permissions
|
|
117
117
|
* @throws {AppwriteException}
|
|
118
118
|
* @returns {Promise}
|
|
119
|
-
|
|
119
|
+
*/
|
|
120
120
|
createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise<Models.File>;
|
|
121
121
|
/**
|
|
122
|
-
* Get
|
|
122
|
+
* Get file
|
|
123
123
|
*
|
|
124
124
|
* Get a file by its unique ID. This endpoint response returns a JSON object
|
|
125
125
|
* with the file metadata.
|
|
@@ -128,21 +128,22 @@ export declare class Storage extends Service {
|
|
|
128
128
|
* @param {string} fileId
|
|
129
129
|
* @throws {AppwriteException}
|
|
130
130
|
* @returns {Promise}
|
|
131
|
-
|
|
131
|
+
*/
|
|
132
132
|
getFile(bucketId: string, fileId: string): Promise<Models.File>;
|
|
133
133
|
/**
|
|
134
|
-
* Update
|
|
134
|
+
* Update file
|
|
135
135
|
*
|
|
136
136
|
* Update a file by its unique ID. Only users with write permissions have
|
|
137
137
|
* access to update this resource.
|
|
138
138
|
*
|
|
139
139
|
* @param {string} bucketId
|
|
140
140
|
* @param {string} fileId
|
|
141
|
+
* @param {string} name
|
|
141
142
|
* @param {string[]} permissions
|
|
142
143
|
* @throws {AppwriteException}
|
|
143
144
|
* @returns {Promise}
|
|
144
|
-
|
|
145
|
-
updateFile(bucketId: string, fileId: string, permissions?: string[]): Promise<Models.File>;
|
|
145
|
+
*/
|
|
146
|
+
updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File>;
|
|
146
147
|
/**
|
|
147
148
|
* Delete File
|
|
148
149
|
*
|
|
@@ -153,10 +154,10 @@ export declare class Storage extends Service {
|
|
|
153
154
|
* @param {string} fileId
|
|
154
155
|
* @throws {AppwriteException}
|
|
155
156
|
* @returns {Promise}
|
|
156
|
-
|
|
157
|
+
*/
|
|
157
158
|
deleteFile(bucketId: string, fileId: string): Promise<{}>;
|
|
158
159
|
/**
|
|
159
|
-
* Get
|
|
160
|
+
* Get file for download
|
|
160
161
|
*
|
|
161
162
|
* Get a file content by its unique ID. The endpoint response return with a
|
|
162
163
|
* 'Content-Disposition: attachment' header that tells the browser to start
|
|
@@ -166,10 +167,10 @@ export declare class Storage extends Service {
|
|
|
166
167
|
* @param {string} fileId
|
|
167
168
|
* @throws {AppwriteException}
|
|
168
169
|
* @returns {URL}
|
|
169
|
-
|
|
170
|
+
*/
|
|
170
171
|
getFileDownload(bucketId: string, fileId: string): URL;
|
|
171
172
|
/**
|
|
172
|
-
* Get
|
|
173
|
+
* Get file preview
|
|
173
174
|
*
|
|
174
175
|
* Get a file preview image. Currently, this method supports preview for image
|
|
175
176
|
* files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
|
|
@@ -192,10 +193,10 @@ export declare class Storage extends Service {
|
|
|
192
193
|
* @param {string} output
|
|
193
194
|
* @throws {AppwriteException}
|
|
194
195
|
* @returns {URL}
|
|
195
|
-
|
|
196
|
+
*/
|
|
196
197
|
getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: string, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: string): URL;
|
|
197
198
|
/**
|
|
198
|
-
* Get
|
|
199
|
+
* Get file for view
|
|
199
200
|
*
|
|
200
201
|
* Get a file content by its unique ID. This endpoint is similar to the
|
|
201
202
|
* download method but returns with no 'Content-Disposition: attachment'
|
|
@@ -205,7 +206,7 @@ export declare class Storage extends Service {
|
|
|
205
206
|
* @param {string} fileId
|
|
206
207
|
* @throws {AppwriteException}
|
|
207
208
|
* @returns {URL}
|
|
208
|
-
|
|
209
|
+
*/
|
|
209
210
|
getFileView(bucketId: string, fileId: string): URL;
|
|
210
211
|
/**
|
|
211
212
|
* Get usage stats for storage
|
|
@@ -214,7 +215,7 @@ export declare class Storage extends Service {
|
|
|
214
215
|
* @param {string} range
|
|
215
216
|
* @throws {AppwriteException}
|
|
216
217
|
* @returns {Promise}
|
|
217
|
-
|
|
218
|
+
*/
|
|
218
219
|
getUsage(range?: string): Promise<Models.UsageStorage>;
|
|
219
220
|
/**
|
|
220
221
|
* Get usage stats for storage bucket
|
|
@@ -224,6 +225,6 @@ export declare class Storage extends Service {
|
|
|
224
225
|
* @param {string} range
|
|
225
226
|
* @throws {AppwriteException}
|
|
226
227
|
* @returns {Promise}
|
|
227
|
-
|
|
228
|
+
*/
|
|
228
229
|
getBucketUsage(bucketId: string, range?: string): Promise<Models.UsageBuckets>;
|
|
229
230
|
}
|
|
@@ -4,7 +4,7 @@ import type { Models } from '../models';
|
|
|
4
4
|
export declare class Teams extends Service {
|
|
5
5
|
constructor(client: Client);
|
|
6
6
|
/**
|
|
7
|
-
* List
|
|
7
|
+
* List teams
|
|
8
8
|
*
|
|
9
9
|
* Get a list of all the teams in which the current user is a member. You can
|
|
10
10
|
* use the parameters to filter your results.
|
|
@@ -13,10 +13,10 @@ export declare class Teams 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.TeamList<Preferences>>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create team
|
|
20
20
|
*
|
|
21
21
|
* Create a new team. The user who creates the team will automatically be
|
|
22
22
|
* assigned as the owner of the team. Only the users with the owner role can
|
|
@@ -27,20 +27,20 @@ export declare class Teams extends Service {
|
|
|
27
27
|
* @param {string[]} roles
|
|
28
28
|
* @throws {AppwriteException}
|
|
29
29
|
* @returns {Promise}
|
|
30
|
-
|
|
30
|
+
*/
|
|
31
31
|
create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>>;
|
|
32
32
|
/**
|
|
33
|
-
* Get
|
|
33
|
+
* Get team
|
|
34
34
|
*
|
|
35
35
|
* Get a team by its ID. All team members have read access for this resource.
|
|
36
36
|
*
|
|
37
37
|
* @param {string} teamId
|
|
38
38
|
* @throws {AppwriteException}
|
|
39
39
|
* @returns {Promise}
|
|
40
|
-
|
|
40
|
+
*/
|
|
41
41
|
get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>>;
|
|
42
42
|
/**
|
|
43
|
-
* Update
|
|
43
|
+
* Update name
|
|
44
44
|
*
|
|
45
45
|
* Update the team's name by its unique ID.
|
|
46
46
|
*
|
|
@@ -48,10 +48,10 @@ export declare class Teams extends Service {
|
|
|
48
48
|
* @param {string} name
|
|
49
49
|
* @throws {AppwriteException}
|
|
50
50
|
* @returns {Promise}
|
|
51
|
-
|
|
51
|
+
*/
|
|
52
52
|
updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>>;
|
|
53
53
|
/**
|
|
54
|
-
* Delete
|
|
54
|
+
* Delete team
|
|
55
55
|
*
|
|
56
56
|
* Delete a team using its ID. Only team members with the owner role can
|
|
57
57
|
* delete the team.
|
|
@@ -59,10 +59,10 @@ export declare class Teams extends Service {
|
|
|
59
59
|
* @param {string} teamId
|
|
60
60
|
* @throws {AppwriteException}
|
|
61
61
|
* @returns {Promise}
|
|
62
|
-
|
|
62
|
+
*/
|
|
63
63
|
delete(teamId: string): Promise<{}>;
|
|
64
64
|
/**
|
|
65
|
-
* List
|
|
65
|
+
* List team logs
|
|
66
66
|
*
|
|
67
67
|
* Get the team activity logs list by its unique ID.
|
|
68
68
|
*
|
|
@@ -70,10 +70,10 @@ export declare class Teams extends Service {
|
|
|
70
70
|
* @param {string[]} queries
|
|
71
71
|
* @throws {AppwriteException}
|
|
72
72
|
* @returns {Promise}
|
|
73
|
-
|
|
73
|
+
*/
|
|
74
74
|
listLogs(teamId: string, queries?: string[]): Promise<Models.LogList>;
|
|
75
75
|
/**
|
|
76
|
-
* List
|
|
76
|
+
* List team memberships
|
|
77
77
|
*
|
|
78
78
|
* Use this endpoint to list a team's members using the team's ID. All team
|
|
79
79
|
* members have read access to this endpoint.
|
|
@@ -83,10 +83,10 @@ export declare class Teams extends Service {
|
|
|
83
83
|
* @param {string} search
|
|
84
84
|
* @throws {AppwriteException}
|
|
85
85
|
* @returns {Promise}
|
|
86
|
-
|
|
86
|
+
*/
|
|
87
87
|
listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList>;
|
|
88
88
|
/**
|
|
89
|
-
* Create
|
|
89
|
+
* Create team membership
|
|
90
90
|
*
|
|
91
91
|
* Invite a new member to join your team. Provide an ID for existing users, or
|
|
92
92
|
* invite unregistered users using an email or phone number. If initiated from
|
|
@@ -101,8 +101,8 @@ export declare class Teams extends Service {
|
|
|
101
101
|
*
|
|
102
102
|
* Use the `url` parameter to redirect the user from the invitation email to
|
|
103
103
|
* your app. After the user is redirected, use the [Update Team Membership
|
|
104
|
-
* Status](/docs/client/teams#
|
|
105
|
-
* the user to accept the invitation to the team.
|
|
104
|
+
* Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus)
|
|
105
|
+
* endpoint to allow the user to accept the invitation to the team.
|
|
106
106
|
*
|
|
107
107
|
* Please note that to avoid a [Redirect
|
|
108
108
|
* Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
|
|
@@ -112,17 +112,17 @@ export declare class Teams extends Service {
|
|
|
112
112
|
*
|
|
113
113
|
* @param {string} teamId
|
|
114
114
|
* @param {string[]} roles
|
|
115
|
-
* @param {string} url
|
|
116
115
|
* @param {string} email
|
|
117
116
|
* @param {string} userId
|
|
118
117
|
* @param {string} phone
|
|
118
|
+
* @param {string} url
|
|
119
119
|
* @param {string} name
|
|
120
120
|
* @throws {AppwriteException}
|
|
121
121
|
* @returns {Promise}
|
|
122
|
-
|
|
123
|
-
createMembership(teamId: string, roles: string[],
|
|
122
|
+
*/
|
|
123
|
+
createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
|
|
124
124
|
/**
|
|
125
|
-
* Get
|
|
125
|
+
* Get team membership
|
|
126
126
|
*
|
|
127
127
|
* Get a team member by the membership unique id. All team members have read
|
|
128
128
|
* access for this resource.
|
|
@@ -131,24 +131,25 @@ export declare class Teams extends Service {
|
|
|
131
131
|
* @param {string} membershipId
|
|
132
132
|
* @throws {AppwriteException}
|
|
133
133
|
* @returns {Promise}
|
|
134
|
-
|
|
134
|
+
*/
|
|
135
135
|
getMembership(teamId: string, membershipId: string): Promise<Models.Membership>;
|
|
136
136
|
/**
|
|
137
|
-
* Update
|
|
137
|
+
* Update membership
|
|
138
138
|
*
|
|
139
139
|
* Modify the roles of a team member. Only team members with the owner role
|
|
140
140
|
* have access to this endpoint. Learn more about [roles and
|
|
141
|
-
* permissions](/docs/permissions).
|
|
141
|
+
* permissions](https://appwrite.io/docs/permissions).
|
|
142
|
+
*
|
|
142
143
|
*
|
|
143
144
|
* @param {string} teamId
|
|
144
145
|
* @param {string} membershipId
|
|
145
146
|
* @param {string[]} roles
|
|
146
147
|
* @throws {AppwriteException}
|
|
147
148
|
* @returns {Promise}
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
*/
|
|
150
|
+
updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership>;
|
|
150
151
|
/**
|
|
151
|
-
* Delete
|
|
152
|
+
* Delete team membership
|
|
152
153
|
*
|
|
153
154
|
* This endpoint allows a user to leave a team or for a team owner to delete
|
|
154
155
|
* the membership of any other team member. You can also use this endpoint to
|
|
@@ -158,10 +159,10 @@ export declare class Teams extends Service {
|
|
|
158
159
|
* @param {string} membershipId
|
|
159
160
|
* @throws {AppwriteException}
|
|
160
161
|
* @returns {Promise}
|
|
161
|
-
|
|
162
|
+
*/
|
|
162
163
|
deleteMembership(teamId: string, membershipId: string): Promise<{}>;
|
|
163
164
|
/**
|
|
164
|
-
* Update
|
|
165
|
+
* Update team membership status
|
|
165
166
|
*
|
|
166
167
|
* Use this endpoint to allow a user to accept an invitation to join a team
|
|
167
168
|
* after being redirected back to your app from the invitation email received
|
|
@@ -177,22 +178,22 @@ export declare class Teams extends Service {
|
|
|
177
178
|
* @param {string} secret
|
|
178
179
|
* @throws {AppwriteException}
|
|
179
180
|
* @returns {Promise}
|
|
180
|
-
|
|
181
|
+
*/
|
|
181
182
|
updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership>;
|
|
182
183
|
/**
|
|
183
|
-
* Get
|
|
184
|
+
* Get team preferences
|
|
184
185
|
*
|
|
185
186
|
* Get the team's shared preferences by its unique ID. If a preference doesn't
|
|
186
187
|
* need to be shared by all team members, prefer storing them in [user
|
|
187
|
-
* preferences](/docs/client/account#
|
|
188
|
+
* preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
|
|
188
189
|
*
|
|
189
190
|
* @param {string} teamId
|
|
190
191
|
* @throws {AppwriteException}
|
|
191
192
|
* @returns {Promise}
|
|
192
|
-
|
|
193
|
+
*/
|
|
193
194
|
getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences>;
|
|
194
195
|
/**
|
|
195
|
-
* Update
|
|
196
|
+
* Update preferences
|
|
196
197
|
*
|
|
197
198
|
* Update the team's preferences by its unique ID. The object you pass is
|
|
198
199
|
* stored as is and replaces any previous value. The maximum allowed prefs
|
|
@@ -202,6 +203,6 @@ export declare class Teams extends Service {
|
|
|
202
203
|
* @param {object} prefs
|
|
203
204
|
* @throws {AppwriteException}
|
|
204
205
|
* @returns {Promise}
|
|
205
|
-
|
|
206
|
+
*/
|
|
206
207
|
updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences>;
|
|
207
208
|
}
|