@appwrite.io/console 0.1.1 → 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/.github/workflows/publish.yml +18 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +2417 -630
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2413 -631
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2417 -630
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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-usage.md +1 -1
- 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 +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 +5 -0
- package/src/models.ts +750 -78
- package/src/services/account.ts +1102 -995
- 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 -189
- package/src/services/locale.ts +156 -137
- package/src/services/migrations.ts +707 -0
- package/src/services/project.ts +174 -0
- package/src/services/projects.ts +1538 -1283
- 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 -1006
- package/src/services/vcs.ts +272 -0
- package/types/index.d.ts +5 -0
- package/types/models.d.ts +750 -78
- package/types/services/account.d.ts +80 -40
- 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 +31 -12
- package/types/services/locale.d.ts +17 -7
- package/types/services/migrations.d.ts +185 -0
- package/types/services/project.d.ts +70 -0
- package/types/services/projects.d.ts +150 -80
- package/types/services/proxy.d.ts +59 -0
- package/types/services/storage.d.ts +17 -16
- package/types/services/teams.d.ts +17 -16
- package/types/services/users.d.ts +63 -26
- package/types/services/vcs.d.ts +97 -0
- package/.travis.yml +0 -32
- package/docs/examples/projects/update-domain-verification.md +0 -18
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { Client } from '../client';
|
|
3
|
+
import type { Models } from '../models';
|
|
4
|
+
export declare class Project extends Service {
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* Get usage stats for a project
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @param {string} range
|
|
11
|
+
* @throws {AppwriteException}
|
|
12
|
+
* @returns {Promise}
|
|
13
|
+
*/
|
|
14
|
+
getUsage(range?: string): Promise<Models.UsageProject>;
|
|
15
|
+
/**
|
|
16
|
+
* List Variables
|
|
17
|
+
*
|
|
18
|
+
* Get a list of all project variables. These variables will be accessible in
|
|
19
|
+
* all Appwrite Functions at runtime.
|
|
20
|
+
*
|
|
21
|
+
* @throws {AppwriteException}
|
|
22
|
+
* @returns {Promise}
|
|
23
|
+
*/
|
|
24
|
+
listVariables(): Promise<Models.VariableList>;
|
|
25
|
+
/**
|
|
26
|
+
* Create Variable
|
|
27
|
+
*
|
|
28
|
+
* Create a new project variable. This variable will be accessible in all
|
|
29
|
+
* Appwrite Functions at runtime.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} key
|
|
32
|
+
* @param {string} value
|
|
33
|
+
* @throws {AppwriteException}
|
|
34
|
+
* @returns {Promise}
|
|
35
|
+
*/
|
|
36
|
+
createVariable(key: string, value: string): Promise<Models.Variable>;
|
|
37
|
+
/**
|
|
38
|
+
* Get Variable
|
|
39
|
+
*
|
|
40
|
+
* Get a project variable by its unique ID.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} variableId
|
|
43
|
+
* @throws {AppwriteException}
|
|
44
|
+
* @returns {Promise}
|
|
45
|
+
*/
|
|
46
|
+
getVariable(variableId: string): Promise<Models.Variable>;
|
|
47
|
+
/**
|
|
48
|
+
* Update Variable
|
|
49
|
+
*
|
|
50
|
+
* Update project variable by its unique ID. This variable will be accessible
|
|
51
|
+
* in all Appwrite Functions at runtime.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} variableId
|
|
54
|
+
* @param {string} key
|
|
55
|
+
* @param {string} value
|
|
56
|
+
* @throws {AppwriteException}
|
|
57
|
+
* @returns {Promise}
|
|
58
|
+
*/
|
|
59
|
+
updateVariable(variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete Variable
|
|
62
|
+
*
|
|
63
|
+
* Delete a project variable by its unique ID.
|
|
64
|
+
*
|
|
65
|
+
* @param {string} variableId
|
|
66
|
+
* @throws {AppwriteException}
|
|
67
|
+
* @returns {Promise}
|
|
68
|
+
*/
|
|
69
|
+
deleteVariable(variableId: string): Promise<{}>;
|
|
70
|
+
}
|
|
@@ -11,7 +11,7 @@ export declare class Projects extends Service {
|
|
|
11
11
|
* @param {string} search
|
|
12
12
|
* @throws {AppwriteException}
|
|
13
13
|
* @returns {Promise}
|
|
14
|
-
|
|
14
|
+
*/
|
|
15
15
|
list(queries?: string[], search?: string): Promise<Models.ProjectList>;
|
|
16
16
|
/**
|
|
17
17
|
* Create Project
|
|
@@ -32,7 +32,7 @@ export declare class Projects extends Service {
|
|
|
32
32
|
* @param {string} legalTaxId
|
|
33
33
|
* @throws {AppwriteException}
|
|
34
34
|
* @returns {Promise}
|
|
35
|
-
|
|
35
|
+
*/
|
|
36
36
|
create(projectId: string, name: string, teamId: string, region?: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
37
37
|
/**
|
|
38
38
|
* Get Project
|
|
@@ -41,7 +41,7 @@ export declare class Projects extends Service {
|
|
|
41
41
|
* @param {string} projectId
|
|
42
42
|
* @throws {AppwriteException}
|
|
43
43
|
* @returns {Promise}
|
|
44
|
-
|
|
44
|
+
*/
|
|
45
45
|
get(projectId: string): Promise<Models.Project>;
|
|
46
46
|
/**
|
|
47
47
|
* Update Project
|
|
@@ -60,18 +60,17 @@ export declare class Projects extends Service {
|
|
|
60
60
|
* @param {string} legalTaxId
|
|
61
61
|
* @throws {AppwriteException}
|
|
62
62
|
* @returns {Promise}
|
|
63
|
-
|
|
63
|
+
*/
|
|
64
64
|
update(projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
65
65
|
/**
|
|
66
66
|
* Delete Project
|
|
67
67
|
*
|
|
68
68
|
*
|
|
69
69
|
* @param {string} projectId
|
|
70
|
-
* @param {string} password
|
|
71
70
|
* @throws {AppwriteException}
|
|
72
71
|
* @returns {Promise}
|
|
73
|
-
|
|
74
|
-
delete(projectId: string
|
|
72
|
+
*/
|
|
73
|
+
delete(projectId: string): Promise<{}>;
|
|
75
74
|
/**
|
|
76
75
|
* Update Project Authentication Duration
|
|
77
76
|
*
|
|
@@ -80,7 +79,7 @@ export declare class Projects extends Service {
|
|
|
80
79
|
* @param {number} duration
|
|
81
80
|
* @throws {AppwriteException}
|
|
82
81
|
* @returns {Promise}
|
|
83
|
-
|
|
82
|
+
*/
|
|
84
83
|
updateAuthDuration(projectId: string, duration: number): Promise<Models.Project>;
|
|
85
84
|
/**
|
|
86
85
|
* Update Project users limit
|
|
@@ -90,7 +89,7 @@ export declare class Projects extends Service {
|
|
|
90
89
|
* @param {number} limit
|
|
91
90
|
* @throws {AppwriteException}
|
|
92
91
|
* @returns {Promise}
|
|
93
|
-
|
|
92
|
+
*/
|
|
94
93
|
updateAuthLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
95
94
|
/**
|
|
96
95
|
* Update Project user sessions limit
|
|
@@ -100,17 +99,17 @@ export declare class Projects extends Service {
|
|
|
100
99
|
* @param {number} limit
|
|
101
100
|
* @throws {AppwriteException}
|
|
102
101
|
* @returns {Promise}
|
|
103
|
-
|
|
102
|
+
*/
|
|
104
103
|
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
105
104
|
/**
|
|
106
|
-
* Update authentication password
|
|
105
|
+
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
107
106
|
*
|
|
108
107
|
*
|
|
109
108
|
* @param {string} projectId
|
|
110
109
|
* @param {boolean} enabled
|
|
111
110
|
* @throws {AppwriteException}
|
|
112
111
|
* @returns {Promise}
|
|
113
|
-
|
|
112
|
+
*/
|
|
114
113
|
updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project>;
|
|
115
114
|
/**
|
|
116
115
|
* Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
|
|
@@ -120,68 +119,29 @@ export declare class Projects extends Service {
|
|
|
120
119
|
* @param {number} limit
|
|
121
120
|
* @throws {AppwriteException}
|
|
122
121
|
* @returns {Promise}
|
|
123
|
-
|
|
122
|
+
*/
|
|
124
123
|
updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project>;
|
|
125
124
|
/**
|
|
126
|
-
*
|
|
125
|
+
* Enable or disable checking user passwords for similarity with their personal data.
|
|
127
126
|
*
|
|
128
127
|
*
|
|
129
128
|
* @param {string} projectId
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {boolean} status
|
|
132
|
-
* @throws {AppwriteException}
|
|
133
|
-
* @returns {Promise}
|
|
134
|
-
*/
|
|
135
|
-
updateAuthStatus(projectId: string, method: string, status: boolean): Promise<Models.Project>;
|
|
136
|
-
/**
|
|
137
|
-
* List Domains
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
* @param {string} projectId
|
|
141
|
-
* @throws {AppwriteException}
|
|
142
|
-
* @returns {Promise}
|
|
143
|
-
*/
|
|
144
|
-
listDomains(projectId: string): Promise<Models.DomainList>;
|
|
145
|
-
/**
|
|
146
|
-
* Create Domain
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* @param {string} projectId
|
|
150
|
-
* @param {string} domain
|
|
151
|
-
* @throws {AppwriteException}
|
|
152
|
-
* @returns {Promise}
|
|
153
|
-
*/
|
|
154
|
-
createDomain(projectId: string, domain: string): Promise<Models.Domain>;
|
|
155
|
-
/**
|
|
156
|
-
* Get Domain
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* @param {string} projectId
|
|
160
|
-
* @param {string} domainId
|
|
161
|
-
* @throws {AppwriteException}
|
|
162
|
-
* @returns {Promise}
|
|
163
|
-
*/
|
|
164
|
-
getDomain(projectId: string, domainId: string): Promise<Models.Domain>;
|
|
165
|
-
/**
|
|
166
|
-
* Delete Domain
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* @param {string} projectId
|
|
170
|
-
* @param {string} domainId
|
|
129
|
+
* @param {boolean} enabled
|
|
171
130
|
* @throws {AppwriteException}
|
|
172
131
|
* @returns {Promise}
|
|
173
|
-
|
|
174
|
-
|
|
132
|
+
*/
|
|
133
|
+
updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project>;
|
|
175
134
|
/**
|
|
176
|
-
* Update
|
|
135
|
+
* Update Project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
|
177
136
|
*
|
|
178
137
|
*
|
|
179
138
|
* @param {string} projectId
|
|
180
|
-
* @param {string}
|
|
139
|
+
* @param {string} method
|
|
140
|
+
* @param {boolean} status
|
|
181
141
|
* @throws {AppwriteException}
|
|
182
142
|
* @returns {Promise}
|
|
183
|
-
|
|
184
|
-
|
|
143
|
+
*/
|
|
144
|
+
updateAuthStatus(projectId: string, method: string, status: boolean): Promise<Models.Project>;
|
|
185
145
|
/**
|
|
186
146
|
* List Keys
|
|
187
147
|
*
|
|
@@ -189,7 +149,7 @@ export declare class Projects extends Service {
|
|
|
189
149
|
* @param {string} projectId
|
|
190
150
|
* @throws {AppwriteException}
|
|
191
151
|
* @returns {Promise}
|
|
192
|
-
|
|
152
|
+
*/
|
|
193
153
|
listKeys(projectId: string): Promise<Models.KeyList>;
|
|
194
154
|
/**
|
|
195
155
|
* Create Key
|
|
@@ -201,7 +161,7 @@ export declare class Projects extends Service {
|
|
|
201
161
|
* @param {string} expire
|
|
202
162
|
* @throws {AppwriteException}
|
|
203
163
|
* @returns {Promise}
|
|
204
|
-
|
|
164
|
+
*/
|
|
205
165
|
createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
|
206
166
|
/**
|
|
207
167
|
* Get Key
|
|
@@ -211,7 +171,7 @@ export declare class Projects extends Service {
|
|
|
211
171
|
* @param {string} keyId
|
|
212
172
|
* @throws {AppwriteException}
|
|
213
173
|
* @returns {Promise}
|
|
214
|
-
|
|
174
|
+
*/
|
|
215
175
|
getKey(projectId: string, keyId: string): Promise<Models.Key>;
|
|
216
176
|
/**
|
|
217
177
|
* Update Key
|
|
@@ -224,7 +184,7 @@ export declare class Projects extends Service {
|
|
|
224
184
|
* @param {string} expire
|
|
225
185
|
* @throws {AppwriteException}
|
|
226
186
|
* @returns {Promise}
|
|
227
|
-
|
|
187
|
+
*/
|
|
228
188
|
updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
|
229
189
|
/**
|
|
230
190
|
* Delete Key
|
|
@@ -234,7 +194,7 @@ export declare class Projects extends Service {
|
|
|
234
194
|
* @param {string} keyId
|
|
235
195
|
* @throws {AppwriteException}
|
|
236
196
|
* @returns {Promise}
|
|
237
|
-
|
|
197
|
+
*/
|
|
238
198
|
deleteKey(projectId: string, keyId: string): Promise<{}>;
|
|
239
199
|
/**
|
|
240
200
|
* Update Project OAuth2
|
|
@@ -247,7 +207,7 @@ export declare class Projects extends Service {
|
|
|
247
207
|
* @param {boolean} enabled
|
|
248
208
|
* @throws {AppwriteException}
|
|
249
209
|
* @returns {Promise}
|
|
250
|
-
|
|
210
|
+
*/
|
|
251
211
|
updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
|
|
252
212
|
/**
|
|
253
213
|
* List Platforms
|
|
@@ -256,7 +216,7 @@ export declare class Projects extends Service {
|
|
|
256
216
|
* @param {string} projectId
|
|
257
217
|
* @throws {AppwriteException}
|
|
258
218
|
* @returns {Promise}
|
|
259
|
-
|
|
219
|
+
*/
|
|
260
220
|
listPlatforms(projectId: string): Promise<Models.PlatformList>;
|
|
261
221
|
/**
|
|
262
222
|
* Create Platform
|
|
@@ -270,7 +230,7 @@ export declare class Projects extends Service {
|
|
|
270
230
|
* @param {string} hostname
|
|
271
231
|
* @throws {AppwriteException}
|
|
272
232
|
* @returns {Promise}
|
|
273
|
-
|
|
233
|
+
*/
|
|
274
234
|
createPlatform(projectId: string, type: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
275
235
|
/**
|
|
276
236
|
* Get Platform
|
|
@@ -280,7 +240,7 @@ export declare class Projects extends Service {
|
|
|
280
240
|
* @param {string} platformId
|
|
281
241
|
* @throws {AppwriteException}
|
|
282
242
|
* @returns {Promise}
|
|
283
|
-
|
|
243
|
+
*/
|
|
284
244
|
getPlatform(projectId: string, platformId: string): Promise<Models.Platform>;
|
|
285
245
|
/**
|
|
286
246
|
* Update Platform
|
|
@@ -294,7 +254,7 @@ export declare class Projects extends Service {
|
|
|
294
254
|
* @param {string} hostname
|
|
295
255
|
* @throws {AppwriteException}
|
|
296
256
|
* @returns {Promise}
|
|
297
|
-
|
|
257
|
+
*/
|
|
298
258
|
updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
299
259
|
/**
|
|
300
260
|
* Delete Platform
|
|
@@ -304,7 +264,7 @@ export declare class Projects extends Service {
|
|
|
304
264
|
* @param {string} platformId
|
|
305
265
|
* @throws {AppwriteException}
|
|
306
266
|
* @returns {Promise}
|
|
307
|
-
|
|
267
|
+
*/
|
|
308
268
|
deletePlatform(projectId: string, platformId: string): Promise<{}>;
|
|
309
269
|
/**
|
|
310
270
|
* Update service status
|
|
@@ -315,8 +275,118 @@ export declare class Projects extends Service {
|
|
|
315
275
|
* @param {boolean} status
|
|
316
276
|
* @throws {AppwriteException}
|
|
317
277
|
* @returns {Promise}
|
|
318
|
-
|
|
278
|
+
*/
|
|
319
279
|
updateServiceStatus(projectId: string, service: string, status: boolean): Promise<Models.Project>;
|
|
280
|
+
/**
|
|
281
|
+
* Update all service status
|
|
282
|
+
*
|
|
283
|
+
*
|
|
284
|
+
* @param {string} projectId
|
|
285
|
+
* @param {boolean} status
|
|
286
|
+
* @throws {AppwriteException}
|
|
287
|
+
* @returns {Promise}
|
|
288
|
+
*/
|
|
289
|
+
updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
|
290
|
+
/**
|
|
291
|
+
* Update SMTP configuration
|
|
292
|
+
*
|
|
293
|
+
*
|
|
294
|
+
* @param {string} projectId
|
|
295
|
+
* @param {boolean} enabled
|
|
296
|
+
* @param {string} senderName
|
|
297
|
+
* @param {string} senderEmail
|
|
298
|
+
* @param {string} replyTo
|
|
299
|
+
* @param {string} host
|
|
300
|
+
* @param {number} port
|
|
301
|
+
* @param {string} username
|
|
302
|
+
* @param {string} password
|
|
303
|
+
* @param {string} secure
|
|
304
|
+
* @throws {AppwriteException}
|
|
305
|
+
* @returns {Promise}
|
|
306
|
+
*/
|
|
307
|
+
updateSmtpConfiguration(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: string): Promise<Models.Project>;
|
|
308
|
+
/**
|
|
309
|
+
* Update Project Team
|
|
310
|
+
*
|
|
311
|
+
*
|
|
312
|
+
* @param {string} projectId
|
|
313
|
+
* @param {string} teamId
|
|
314
|
+
* @throws {AppwriteException}
|
|
315
|
+
* @returns {Promise}
|
|
316
|
+
*/
|
|
317
|
+
updateTeam(projectId: string, teamId: string): Promise<Models.Project>;
|
|
318
|
+
/**
|
|
319
|
+
* Get custom email template
|
|
320
|
+
*
|
|
321
|
+
*
|
|
322
|
+
* @param {string} projectId
|
|
323
|
+
* @param {string} type
|
|
324
|
+
* @param {string} locale
|
|
325
|
+
* @throws {AppwriteException}
|
|
326
|
+
* @returns {Promise}
|
|
327
|
+
*/
|
|
328
|
+
getEmailTemplate(projectId: string, type: string, locale: string): Promise<Models.EmailTemplate>;
|
|
329
|
+
/**
|
|
330
|
+
* Update custom email templates
|
|
331
|
+
*
|
|
332
|
+
*
|
|
333
|
+
* @param {string} projectId
|
|
334
|
+
* @param {string} type
|
|
335
|
+
* @param {string} locale
|
|
336
|
+
* @param {string} subject
|
|
337
|
+
* @param {string} message
|
|
338
|
+
* @param {string} senderName
|
|
339
|
+
* @param {string} senderEmail
|
|
340
|
+
* @param {string} replyTo
|
|
341
|
+
* @throws {AppwriteException}
|
|
342
|
+
* @returns {Promise}
|
|
343
|
+
*/
|
|
344
|
+
updateEmailTemplate(projectId: string, type: string, locale: string, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
|
|
345
|
+
/**
|
|
346
|
+
* Reset custom email template
|
|
347
|
+
*
|
|
348
|
+
*
|
|
349
|
+
* @param {string} projectId
|
|
350
|
+
* @param {string} type
|
|
351
|
+
* @param {string} locale
|
|
352
|
+
* @throws {AppwriteException}
|
|
353
|
+
* @returns {Promise}
|
|
354
|
+
*/
|
|
355
|
+
deleteEmailTemplate(projectId: string, type: string, locale: string): Promise<Models.EmailTemplate>;
|
|
356
|
+
/**
|
|
357
|
+
* Get custom SMS template
|
|
358
|
+
*
|
|
359
|
+
*
|
|
360
|
+
* @param {string} projectId
|
|
361
|
+
* @param {string} type
|
|
362
|
+
* @param {string} locale
|
|
363
|
+
* @throws {AppwriteException}
|
|
364
|
+
* @returns {Promise}
|
|
365
|
+
*/
|
|
366
|
+
getSmsTemplate(projectId: string, type: string, locale: string): Promise<Models.SmsTemplate>;
|
|
367
|
+
/**
|
|
368
|
+
* Update custom SMS template
|
|
369
|
+
*
|
|
370
|
+
*
|
|
371
|
+
* @param {string} projectId
|
|
372
|
+
* @param {string} type
|
|
373
|
+
* @param {string} locale
|
|
374
|
+
* @param {string} message
|
|
375
|
+
* @throws {AppwriteException}
|
|
376
|
+
* @returns {Promise}
|
|
377
|
+
*/
|
|
378
|
+
updateSmsTemplate(projectId: string, type: string, locale: string, message: string): Promise<Models.SmsTemplate>;
|
|
379
|
+
/**
|
|
380
|
+
* Reset custom SMS template
|
|
381
|
+
*
|
|
382
|
+
*
|
|
383
|
+
* @param {string} projectId
|
|
384
|
+
* @param {string} type
|
|
385
|
+
* @param {string} locale
|
|
386
|
+
* @throws {AppwriteException}
|
|
387
|
+
* @returns {Promise}
|
|
388
|
+
*/
|
|
389
|
+
deleteSmsTemplate(projectId: string, type: string, locale: string): Promise<Models.SmsTemplate>;
|
|
320
390
|
/**
|
|
321
391
|
* Get usage stats for a project
|
|
322
392
|
*
|
|
@@ -325,7 +395,7 @@ export declare class Projects extends Service {
|
|
|
325
395
|
* @param {string} range
|
|
326
396
|
* @throws {AppwriteException}
|
|
327
397
|
* @returns {Promise}
|
|
328
|
-
|
|
398
|
+
*/
|
|
329
399
|
getUsage(projectId: string, range?: string): Promise<Models.UsageProject>;
|
|
330
400
|
/**
|
|
331
401
|
* List Webhooks
|
|
@@ -334,7 +404,7 @@ export declare class Projects extends Service {
|
|
|
334
404
|
* @param {string} projectId
|
|
335
405
|
* @throws {AppwriteException}
|
|
336
406
|
* @returns {Promise}
|
|
337
|
-
|
|
407
|
+
*/
|
|
338
408
|
listWebhooks(projectId: string): Promise<Models.WebhookList>;
|
|
339
409
|
/**
|
|
340
410
|
* Create Webhook
|
|
@@ -349,7 +419,7 @@ export declare class Projects extends Service {
|
|
|
349
419
|
* @param {string} httpPass
|
|
350
420
|
* @throws {AppwriteException}
|
|
351
421
|
* @returns {Promise}
|
|
352
|
-
|
|
422
|
+
*/
|
|
353
423
|
createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
|
354
424
|
/**
|
|
355
425
|
* Get Webhook
|
|
@@ -359,7 +429,7 @@ export declare class Projects extends Service {
|
|
|
359
429
|
* @param {string} webhookId
|
|
360
430
|
* @throws {AppwriteException}
|
|
361
431
|
* @returns {Promise}
|
|
362
|
-
|
|
432
|
+
*/
|
|
363
433
|
getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
|
364
434
|
/**
|
|
365
435
|
* Update Webhook
|
|
@@ -375,7 +445,7 @@ export declare class Projects extends Service {
|
|
|
375
445
|
* @param {string} httpPass
|
|
376
446
|
* @throws {AppwriteException}
|
|
377
447
|
* @returns {Promise}
|
|
378
|
-
|
|
448
|
+
*/
|
|
379
449
|
updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
|
380
450
|
/**
|
|
381
451
|
* Delete Webhook
|
|
@@ -385,7 +455,7 @@ export declare class Projects extends Service {
|
|
|
385
455
|
* @param {string} webhookId
|
|
386
456
|
* @throws {AppwriteException}
|
|
387
457
|
* @returns {Promise}
|
|
388
|
-
|
|
458
|
+
*/
|
|
389
459
|
deleteWebhook(projectId: string, webhookId: string): Promise<{}>;
|
|
390
460
|
/**
|
|
391
461
|
* Update Webhook Signature Key
|
|
@@ -395,6 +465,6 @@ export declare class Projects extends Service {
|
|
|
395
465
|
* @param {string} webhookId
|
|
396
466
|
* @throws {AppwriteException}
|
|
397
467
|
* @returns {Promise}
|
|
398
|
-
|
|
468
|
+
*/
|
|
399
469
|
updateWebhookSignature(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
|
400
470
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { Client } from '../client';
|
|
3
|
+
import type { Models } from '../models';
|
|
4
|
+
export declare class Proxy extends Service {
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* List Rules
|
|
8
|
+
*
|
|
9
|
+
* Get a list of all the proxy rules. You can use the query params to filter
|
|
10
|
+
* your results.
|
|
11
|
+
*
|
|
12
|
+
* @param {string[]} queries
|
|
13
|
+
* @param {string} search
|
|
14
|
+
* @throws {AppwriteException}
|
|
15
|
+
* @returns {Promise}
|
|
16
|
+
*/
|
|
17
|
+
listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
|
|
18
|
+
/**
|
|
19
|
+
* Create Rule
|
|
20
|
+
*
|
|
21
|
+
* Create a new proxy rule.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} domain
|
|
24
|
+
* @param {string} resourceType
|
|
25
|
+
* @param {string} resourceId
|
|
26
|
+
* @throws {AppwriteException}
|
|
27
|
+
* @returns {Promise}
|
|
28
|
+
*/
|
|
29
|
+
createRule(domain: string, resourceType: string, resourceId?: string): Promise<Models.ProxyRule>;
|
|
30
|
+
/**
|
|
31
|
+
* Get Rule
|
|
32
|
+
*
|
|
33
|
+
* Get a proxy rule by its unique ID.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} ruleId
|
|
36
|
+
* @throws {AppwriteException}
|
|
37
|
+
* @returns {Promise}
|
|
38
|
+
*/
|
|
39
|
+
getRule(ruleId: string): Promise<Models.ProxyRule>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete Rule
|
|
42
|
+
*
|
|
43
|
+
* Delete a proxy rule by its unique ID.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} ruleId
|
|
46
|
+
* @throws {AppwriteException}
|
|
47
|
+
* @returns {Promise}
|
|
48
|
+
*/
|
|
49
|
+
deleteRule(ruleId: string): Promise<{}>;
|
|
50
|
+
/**
|
|
51
|
+
* Update Rule Verification Status
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
* @param {string} ruleId
|
|
55
|
+
* @throws {AppwriteException}
|
|
56
|
+
* @returns {Promise}
|
|
57
|
+
*/
|
|
58
|
+
updateRuleVerification(ruleId: string): Promise<Models.ProxyRule>;
|
|
59
|
+
}
|