@appwrite.io/console 16.0.0 → 16.1.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.
Files changed (46) hide show
  1. package/README.md +5 -6
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/sdk.js +8031 -4529
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/package.json +1 -1
  6. package/dist/esm/sdk.js +8032 -4530
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +8031 -4529
  9. package/package.json +59 -50
  10. package/types/client.d.ts +2 -2
  11. package/types/enums/{addon.d.ts → addon-key.d.ts} +1 -1
  12. package/types/enums/authentication-factor.d.ts +2 -1
  13. package/types/enums/build-runtime.d.ts +4 -1
  14. package/types/enums/embedding-model.d.ts +1 -3
  15. package/types/enums/execution-resource-type.d.ts +4 -0
  16. package/types/enums/image-gravity.d.ts +1 -0
  17. package/types/enums/o-auth-provider.d.ts +5 -0
  18. package/types/enums/project-key-scopes.d.ts +19 -3
  19. package/types/enums/project-o-auth-provider-id.d.ts +5 -0
  20. package/types/enums/project-policy-id.d.ts +1 -0
  21. package/types/enums/query-suggestion-resource.d.ts +2 -1
  22. package/types/enums/runtime.d.ts +4 -1
  23. package/types/enums/usage-event-dimension.d.ts +7 -1
  24. package/types/enums/usage-event-metric.d.ts +55 -0
  25. package/types/enums/usage-gauge-metric.d.ts +50 -0
  26. package/types/index.d.ts +10 -5
  27. package/types/models.d.ts +548 -276
  28. package/types/services/account.d.ts +14 -14
  29. package/types/services/apps.d.ts +6 -6
  30. package/types/services/avatars.d.ts +44 -0
  31. package/types/services/databases.d.ts +8 -8
  32. package/types/services/documents-db.d.ts +13 -7
  33. package/types/services/domains.d.ts +82 -54
  34. package/types/services/functions.d.ts +6 -6
  35. package/types/services/mongo.d.ts +17 -23
  36. package/types/services/mysql.d.ts +17 -23
  37. package/types/services/organizations.d.ts +5 -5
  38. package/types/services/postgresql.d.ts +17 -23
  39. package/types/services/project.d.ts +171 -15
  40. package/types/services/sites.d.ts +15 -8
  41. package/types/services/storage.d.ts +6 -6
  42. package/types/services/tables-db.d.ts +37 -12
  43. package/types/services/usage.d.ts +23 -14
  44. package/types/services/users.d.ts +24 -2
  45. package/types/services/vectors-db.d.ts +15 -9
  46. package/types/services/waf.d.ts +11 -2
package/package.json CHANGED
@@ -1,53 +1,62 @@
1
1
  {
2
- "name": "@appwrite.io/console",
3
- "homepage": "https://appwrite.io/support",
4
- "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "16.0.0",
6
- "license": "BSD-3-Clause",
7
- "main": "dist/cjs/sdk.js",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/esm/sdk.js",
11
- "require": "./dist/cjs/sdk.js",
12
- "types": "./types/index.d.ts"
2
+ "name": "@appwrite.io/console",
3
+ "homepage": "https://appwrite.io/support",
4
+ "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
+ "version": "16.1.0",
6
+ "license": "BSD-3-Clause",
7
+ "main": "dist/cjs/sdk.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/sdk.js",
11
+ "require": "./dist/cjs/sdk.js",
12
+ "types": "./types/index.d.ts"
13
+ },
14
+ "./package.json": "./package.json"
13
15
  },
14
- "./package.json": "./package.json"
15
- },
16
- "module": "dist/esm/sdk.js",
17
- "types": "types/index.d.ts",
18
- "files": [
19
- "dist",
20
- "types"
21
- ],
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/appwrite/sdk-for-console"
25
- },
26
- "scripts": {
27
- "build": "npm run build:types && npm run build:libs",
28
- "build:types": "tsc --declaration --emitDeclarationOnly --outDir types",
29
- "build:libs": "rollup -c"
30
- },
31
- "engines": {
32
- "node": ">=18.0.0"
33
- },
34
- "dependencies": {
35
- "json-bigint": "1.0.0"
36
- },
37
- "devDependencies": {
38
- "@rollup/plugin-commonjs": "29.0.3",
39
- "@rollup/plugin-node-resolve": "16.0.3",
40
- "@rollup/plugin-typescript": "12.3.0",
41
- "@types/json-bigint": "1.0.4",
42
- "playwright": "1.56.1",
43
- "rollup": "4.62.4",
44
- "serve-handler": "6.1.7",
45
- "tslib": "2.8.1",
46
- "typescript": "5.9.3"
47
- },
48
- "overrides": {
49
- "brace-expansion": "5.0.9"
50
- },
51
- "jsdelivr": "dist/iife/sdk.js",
52
- "unpkg": "dist/iife/sdk.js"
16
+ "module": "dist/esm/sdk.js",
17
+ "types": "types/index.d.ts",
18
+ "files": [
19
+ "dist",
20
+ "types"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/appwrite/sdk-for-console"
25
+ },
26
+ "scripts": {
27
+ "build": "npm run build:types && npm run build:libs",
28
+ "build:types": "tsc --declaration --emitDeclarationOnly --outDir types",
29
+ "build:libs": "rollup -c",
30
+ "format": "prettier --write .",
31
+ "format:check": "prettier --check .",
32
+ "lint": "eslint .",
33
+ "lint:fix": "eslint --fix .",
34
+ "analyse": "tsc --noEmit"
35
+ },
36
+ "engines": {
37
+ "node": ">=18.0.0"
38
+ },
39
+ "dependencies": {
40
+ "json-bigint": "1.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@eslint/js": "10.0.1",
44
+ "@rollup/plugin-commonjs": "29.0.3",
45
+ "@rollup/plugin-node-resolve": "16.0.3",
46
+ "@rollup/plugin-typescript": "12.3.0",
47
+ "@types/json-bigint": "1.0.4",
48
+ "eslint": "10.10.0",
49
+ "playwright": "1.56.1",
50
+ "prettier": "3.9.6",
51
+ "rollup": "4.63.2",
52
+ "serve-handler": "6.1.7",
53
+ "tslib": "2.8.1",
54
+ "typescript": "5.9.3",
55
+ "typescript-eslint": "8.70.0"
56
+ },
57
+ "overrides": {
58
+ "brace-expansion": "5.0.9"
59
+ },
60
+ "jsdelivr": "dist/iife/sdk.js",
61
+ "unpkg": "dist/iife/sdk.js"
53
62
  }
package/types/client.d.ts CHANGED
@@ -23,7 +23,7 @@ type Headers = {
23
23
  /**
24
24
  * Realtime event response structure with generic payload type.
25
25
  */
26
- type RealtimeResponseEvent<T extends unknown> = {
26
+ type RealtimeResponseEvent<T> = {
27
27
  /**
28
28
  * List of event names associated with the response.
29
29
  */
@@ -347,7 +347,7 @@ declare class Client {
347
347
  * @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
348
348
  * @returns {() => void} Unsubscribes from events.
349
349
  */
350
- subscribe<T extends unknown>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): () => void;
350
+ subscribe<T>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): () => void;
351
351
  prepareRequest(method: string, url: URL, headers?: Headers, params?: Payload): {
352
352
  uri: string;
353
353
  options: RequestInit;
@@ -1,4 +1,4 @@
1
- export declare enum Addon {
1
+ export declare enum AddonKey {
2
2
  Baa = "baa",
3
3
  Premiumgeodb = "premiumgeodb",
4
4
  Premiumgeodborg = "premiumgeodborg",
@@ -2,5 +2,6 @@ export declare enum AuthenticationFactor {
2
2
  Email = "email",
3
3
  Phone = "phone",
4
4
  Totp = "totp",
5
- Recoverycode = "recoverycode"
5
+ Recoverycode = "recoverycode",
6
+ Custom = "custom"
6
7
  }
@@ -50,6 +50,7 @@ export declare enum BuildRuntime {
50
50
  Dart310 = "dart-3.10",
51
51
  Dart311 = "dart-3.11",
52
52
  Dart312 = "dart-3.12",
53
+ Dart313 = "dart-3.13",
53
54
  Dotnet60 = "dotnet-6.0",
54
55
  Dotnet70 = "dotnet-7.0",
55
56
  Dotnet80 = "dotnet-8.0",
@@ -77,6 +78,7 @@ export declare enum BuildRuntime {
77
78
  Bun11 = "bun-1.1",
78
79
  Bun12 = "bun-1.2",
79
80
  Bun13 = "bun-1.3",
81
+ Bun14 = "bun-1.4",
80
82
  Go123 = "go-1.23",
81
83
  Go124 = "go-1.24",
82
84
  Go125 = "go-1.25",
@@ -90,5 +92,6 @@ export declare enum BuildRuntime {
90
92
  Flutter335 = "flutter-3.35",
91
93
  Flutter338 = "flutter-3.38",
92
94
  Flutter341 = "flutter-3.41",
93
- Flutter344 = "flutter-3.44"
95
+ Flutter344 = "flutter-3.44",
96
+ Flutter347 = "flutter-3.47"
94
97
  }
@@ -1,6 +1,4 @@
1
1
  export declare enum EmbeddingModel {
2
2
  Nomicembedtext = "nomic-embed-text",
3
- Embeddinggemma = "embedding-gemma",
4
- Allminilm = "all-minilm",
5
- Bgesmall = "bge-small"
3
+ Allminilm = "all-minilm"
6
4
  }
@@ -0,0 +1,4 @@
1
+ export declare enum ExecutionResourceType {
2
+ Functions = "functions",
3
+ Sites = "sites"
4
+ }
@@ -1,4 +1,5 @@
1
1
  export declare enum ImageGravity {
2
+ Auto = "auto",
2
3
  Center = "center",
3
4
  Topleft = "top-left",
4
5
  Top = "top",
@@ -8,6 +8,7 @@ export declare enum OAuthProvider {
8
8
  Bitbucket = "bitbucket",
9
9
  Bitly = "bitly",
10
10
  Box = "box",
11
+ Cloudflare = "cloudflare",
11
12
  Dailymotion = "dailymotion",
12
13
  Discord = "discord",
13
14
  Disqus = "disqus",
@@ -19,6 +20,8 @@ export declare enum OAuthProvider {
19
20
  Github = "github",
20
21
  Gitlab = "gitlab",
21
22
  Google = "google",
23
+ Huggingface = "huggingface",
24
+ Kakao = "kakao",
22
25
  Keycloak = "keycloak",
23
26
  Kick = "kick",
24
27
  Linkedin = "linkedin",
@@ -29,10 +32,12 @@ export declare enum OAuthProvider {
29
32
  Paypal = "paypal",
30
33
  PaypalSandbox = "paypalSandbox",
31
34
  Podio = "podio",
35
+ Resend = "resend",
32
36
  Salesforce = "salesforce",
33
37
  Slack = "slack",
34
38
  Spotify = "spotify",
35
39
  Stripe = "stripe",
40
+ Tiktok = "tiktok",
36
41
  Tradeshift = "tradeshift",
37
42
  TradeshiftBox = "tradeshiftBox",
38
43
  Twitch = "twitch",
@@ -1,6 +1,7 @@
1
1
  export declare enum ProjectKeyScopes {
2
2
  ProjectRead = "project.read",
3
3
  ProjectWrite = "project.write",
4
+ UsageRead = "usage.read",
4
5
  KeysRead = "keys.read",
5
6
  KeysWrite = "keys.write",
6
7
  PlatformsRead = "platforms.read",
@@ -33,12 +34,29 @@ export declare enum ProjectKeyScopes {
33
34
  IndexesWrite = "indexes.write",
34
35
  RowsRead = "rows.read",
35
36
  RowsWrite = "rows.write",
37
+ EmbeddingsWrite = "embeddings.write",
36
38
  CollectionsRead = "collections.read",
37
39
  CollectionsWrite = "collections.write",
38
40
  AttributesRead = "attributes.read",
39
41
  AttributesWrite = "attributes.write",
40
42
  DocumentsRead = "documents.read",
41
43
  DocumentsWrite = "documents.write",
44
+ DocumentsdbRead = "documentsdb.read",
45
+ DocumentsdbWrite = "documentsdb.write",
46
+ DocumentsdbCollectionsRead = "documentsdb.collections.read",
47
+ DocumentsdbCollectionsWrite = "documentsdb.collections.write",
48
+ DocumentsdbDocumentsRead = "documentsdb.documents.read",
49
+ DocumentsdbDocumentsWrite = "documentsdb.documents.write",
50
+ DocumentsdbIndexesRead = "documentsdb.indexes.read",
51
+ DocumentsdbIndexesWrite = "documentsdb.indexes.write",
52
+ VectorsdbRead = "vectorsdb.read",
53
+ VectorsdbWrite = "vectorsdb.write",
54
+ VectorsdbCollectionsRead = "vectorsdb.collections.read",
55
+ VectorsdbCollectionsWrite = "vectorsdb.collections.write",
56
+ VectorsdbDocumentsRead = "vectorsdb.documents.read",
57
+ VectorsdbDocumentsWrite = "vectorsdb.documents.write",
58
+ VectorsdbIndexesRead = "vectorsdb.indexes.read",
59
+ VectorsdbIndexesWrite = "vectorsdb.indexes.write",
42
60
  BucketsRead = "buckets.read",
43
61
  BucketsWrite = "buckets.write",
44
62
  FilesRead = "files.read",
@@ -91,7 +109,6 @@ export declare enum ProjectKeyScopes {
91
109
  ArchivesWrite = "archives.write",
92
110
  RestorationsRead = "restorations.read",
93
111
  RestorationsWrite = "restorations.write",
94
- DedicatedDatabasesExecute = "dedicatedDatabases.execute",
95
112
  DomainsRead = "domains.read",
96
113
  DomainsWrite = "domains.write",
97
114
  WafRulesRead = "wafRules.read",
@@ -102,6 +119,5 @@ export declare enum ProjectKeyScopes {
102
119
  AppsWrite = "apps.write",
103
120
  Oauth2Read = "oauth2.read",
104
121
  Oauth2Write = "oauth2.write",
105
- Oauth2Introspect = "oauth2.introspect",
106
- UsageRead = "usage.read"
122
+ Oauth2Introspect = "oauth2.introspect"
107
123
  }
@@ -8,6 +8,7 @@ export declare enum ProjectOAuthProviderId {
8
8
  Bitbucket = "bitbucket",
9
9
  Bitly = "bitly",
10
10
  Box = "box",
11
+ Cloudflare = "cloudflare",
11
12
  Dailymotion = "dailymotion",
12
13
  Discord = "discord",
13
14
  Disqus = "disqus",
@@ -19,6 +20,8 @@ export declare enum ProjectOAuthProviderId {
19
20
  Github = "github",
20
21
  Gitlab = "gitlab",
21
22
  Google = "google",
23
+ Huggingface = "huggingface",
24
+ Kakao = "kakao",
22
25
  Keycloak = "keycloak",
23
26
  Kick = "kick",
24
27
  Linkedin = "linkedin",
@@ -29,10 +32,12 @@ export declare enum ProjectOAuthProviderId {
29
32
  Paypal = "paypal",
30
33
  PaypalSandbox = "paypalSandbox",
31
34
  Podio = "podio",
35
+ Resend = "resend",
32
36
  Salesforce = "salesforce",
33
37
  Slack = "slack",
34
38
  Spotify = "spotify",
35
39
  Stripe = "stripe",
40
+ Tiktok = "tiktok",
36
41
  Tradeshift = "tradeshift",
37
42
  TradeshiftBox = "tradeshiftBox",
38
43
  Twitch = "twitch",
@@ -9,6 +9,7 @@ export declare enum ProjectPolicyId {
9
9
  Sessionlimit = "session-limit",
10
10
  Userlimit = "user-limit",
11
11
  Membershipprivacy = "membership-privacy",
12
+ Mfafactors = "mfa-factors",
12
13
  Denyaliasedemail = "deny-aliased-email",
13
14
  Denydisposableemail = "deny-disposable-email",
14
15
  Denyfreeemail = "deny-free-email",
@@ -57,6 +57,7 @@ export declare enum QuerySuggestionResource {
57
57
  Alerts = "alerts",
58
58
  Payments = "payments",
59
59
  BillingDiscounts = "billingdiscounts",
60
+ ResourcesDeleted = "resourcesdeleted",
60
61
  Sources = "sources",
61
62
  Deals = "deals",
62
63
  Blocks = "blocks",
@@ -82,13 +83,13 @@ export declare enum QuerySuggestionResource {
82
83
  Functions = "functions",
83
84
  Sites = "sites",
84
85
  Deployments = "deployments",
86
+ Executions = "executions",
85
87
  Variables = "variables",
86
88
  Migrations = "migrations",
87
89
  ResourceTokens = "resourcetokens",
88
90
  Transactions = "transactions",
89
91
  TransactionLogs = "transactionlogs",
90
92
  Stats = "stats",
91
- Executions = "executions",
92
93
  DedicatedDatabases = "dedicateddatabases",
93
94
  DedicatedDatabaseConfigs = "dedicateddatabaseconfigs",
94
95
  DedicatedDatabaseRuntimes = "dedicateddatabaseruntimes",
@@ -50,6 +50,7 @@ export declare enum Runtime {
50
50
  Dart310 = "dart-3.10",
51
51
  Dart311 = "dart-3.11",
52
52
  Dart312 = "dart-3.12",
53
+ Dart313 = "dart-3.13",
53
54
  Dotnet60 = "dotnet-6.0",
54
55
  Dotnet70 = "dotnet-7.0",
55
56
  Dotnet80 = "dotnet-8.0",
@@ -77,6 +78,7 @@ export declare enum Runtime {
77
78
  Bun11 = "bun-1.1",
78
79
  Bun12 = "bun-1.2",
79
80
  Bun13 = "bun-1.3",
81
+ Bun14 = "bun-1.4",
80
82
  Go123 = "go-1.23",
81
83
  Go124 = "go-1.24",
82
84
  Go125 = "go-1.25",
@@ -90,5 +92,6 @@ export declare enum Runtime {
90
92
  Flutter335 = "flutter-3.35",
91
93
  Flutter338 = "flutter-3.38",
92
94
  Flutter341 = "flutter-3.41",
93
- Flutter344 = "flutter-3.44"
95
+ Flutter344 = "flutter-3.44",
96
+ Flutter347 = "flutter-3.47"
94
97
  }
@@ -17,5 +17,11 @@ export declare enum UsageEventDimension {
17
17
  Sdk = "sdk",
18
18
  SdkVersion = "sdkVersion",
19
19
  TeamId = "teamId",
20
- ResourceId = "resourceId"
20
+ ResourceId = "resourceId",
21
+ Isp = "isp",
22
+ AutonomousSystemNumber = "autonomousSystemNumber",
23
+ AutonomousSystemOrganization = "autonomousSystemOrganization",
24
+ ConnectionType = "connectionType",
25
+ ConnectionUsageType = "connectionUsageType",
26
+ ConnectionOrganization = "connectionOrganization"
21
27
  }
@@ -0,0 +1,55 @@
1
+ export declare enum UsageEventMetric {
2
+ NetworkRequests = "network.requests",
3
+ NetworkInbound = "network.inbound",
4
+ NetworkOutbound = "network.outbound",
5
+ WebhooksEventsSent = "webhooks.events.sent",
6
+ WebhooksEventsFailed = "webhooks.events.failed",
7
+ AuthMethodPhone = "auth.method.phone",
8
+ MessagesSent = "messages.sent",
9
+ MessagesSmsSent = "messages.sms.sent",
10
+ Executions = "executions",
11
+ ExecutionsCompute = "executions.compute",
12
+ ExecutionsMbSeconds = "executions.mbSeconds",
13
+ FunctionsExecutions = "functions.executions",
14
+ SitesExecutions = "sites.executions",
15
+ FunctionsExecutionsCompute = "functions.executions.compute",
16
+ SitesExecutionsCompute = "sites.executions.compute",
17
+ FunctionsExecutionsMbSeconds = "functions.executions.mbSeconds",
18
+ SitesExecutionsMbSeconds = "sites.executions.mbSeconds",
19
+ Builds = "builds",
20
+ BuildsSuccess = "builds.success",
21
+ BuildsFailed = "builds.failed",
22
+ BuildsCompute = "builds.compute",
23
+ BuildsComputeSuccess = "builds.compute.success",
24
+ BuildsComputeFailed = "builds.compute.failed",
25
+ BuildsMbSeconds = "builds.mbSeconds",
26
+ FunctionsBuildsMbSeconds = "functions.builds.mbSeconds",
27
+ SitesBuildsMbSeconds = "sites.builds.mbSeconds",
28
+ DatabasesOperationsReads = "databases.operations.reads",
29
+ DatabasesOperationsWrites = "databases.operations.writes",
30
+ DocumentsdbDatabasesOperationsReads = "documentsdb.databases.operations.reads",
31
+ DocumentsdbDatabasesOperationsWrites = "documentsdb.databases.operations.writes",
32
+ VectorsdbDatabasesOperationsReads = "vectorsdb.databases.operations.reads",
33
+ VectorsdbDatabasesOperationsWrites = "vectorsdb.databases.operations.writes",
34
+ FilesImagesTransformed = "files.imagesTransformed",
35
+ AvatarsScreenshotsGenerated = "avatars.screenshotsGenerated",
36
+ RealtimeMessagesSent = "realtime.messages.sent",
37
+ RealtimeInbound = "realtime.inbound",
38
+ RealtimeOutbound = "realtime.outbound",
39
+ EmbeddingsText = "embeddings.text",
40
+ EmbeddingsTextTotalTokens = "embeddings.text.totalTokens",
41
+ EmbeddingsTextTotalDuration = "embeddings.text.totalDuration",
42
+ EmbeddingsTextTotalErrors = "embeddings.text.totalErrors",
43
+ WafRequestsDenied = "waf.requests.denied",
44
+ WafRequestsChallenged = "waf.requests.challenged",
45
+ WafRequestsRateLimited = "waf.requests.rateLimited",
46
+ WafRequestsRedirected = "waf.requests.redirected",
47
+ WafRequestsChallengeSolved = "waf.requests.challengeSolved",
48
+ WafChallengeSolveTimeMs = "waf.challenge.solveTimeMs",
49
+ AffiliatesClicks = "affiliates.clicks",
50
+ AffiliatesSignups = "affiliates.signups",
51
+ AffiliatesConversions = "affiliates.conversions",
52
+ DedicatedDatabasesInbound = "dedicatedDatabases.inbound",
53
+ DedicatedDatabasesOutbound = "dedicatedDatabases.outbound",
54
+ DedicatedDatabasesCompute = "dedicatedDatabases.compute"
55
+ }
@@ -0,0 +1,50 @@
1
+ export declare enum UsageGaugeMetric {
2
+ Teams = "teams",
3
+ Users = "users",
4
+ Messages = "messages",
5
+ Sessions = "sessions",
6
+ Databases = "databases",
7
+ Collections = "collections",
8
+ Documents = "documents",
9
+ DatabasesStorage = "databases.storage",
10
+ DocumentsdbDatabases = "documentsdb.databases",
11
+ DocumentsdbCollections = "documentsdb.collections",
12
+ DocumentsdbDocuments = "documentsdb.documents",
13
+ DocumentsdbDatabasesStorage = "documentsdb.databases.storage",
14
+ VectorsdbDatabases = "vectorsdb.databases",
15
+ VectorsdbCollections = "vectorsdb.collections",
16
+ VectorsdbDocuments = "vectorsdb.documents",
17
+ VectorsdbDatabasesStorage = "vectorsdb.databases.storage",
18
+ Buckets = "buckets",
19
+ Files = "files",
20
+ FilesStorage = "files.storage",
21
+ Sites = "sites",
22
+ Functions = "functions",
23
+ Deployments = "deployments",
24
+ DeploymentsStorage = "deployments.storage",
25
+ Builds = "builds",
26
+ BuildsStorage = "builds.storage",
27
+ UsersMau = "users.mau",
28
+ UsersDau = "users.dau",
29
+ UsersWau = "users.wau",
30
+ Webhooks = "webhooks",
31
+ Platforms = "platforms",
32
+ Providers = "providers",
33
+ Topics = "topics",
34
+ Targets = "targets",
35
+ Keys = "keys",
36
+ Domains = "domains",
37
+ RealtimeConnections = "realtime.connections",
38
+ BackupsPolicies = "backups.policies",
39
+ BackupsStorage = "backups.storage",
40
+ DedicatedDatabasesStorage = "dedicatedDatabases.storage",
41
+ DedicatedDatabasesConnections = "dedicatedDatabases.connections",
42
+ DedicatedDatabasesCpu = "dedicatedDatabases.cpu",
43
+ DedicatedDatabasesMemory = "dedicatedDatabases.memory",
44
+ DedicatedDatabasesQps = "dedicatedDatabases.qps",
45
+ DedicatedDatabasesIopsRead = "dedicatedDatabases.iopsRead",
46
+ DedicatedDatabasesIopsWrite = "dedicatedDatabases.iopsWrite",
47
+ Apps = "apps",
48
+ AppsUsers = "apps.users",
49
+ AppsInstallations = "apps.installations"
50
+ }
package/types/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  /**
2
2
  * Appwrite Console SDK
3
3
  *
4
- * This SDK is compatible with Appwrite server version 1.9.x.
5
- * For older versions, please check
6
- * [previous releases](https://github.com/appwrite/sdk-for-console/releases).
4
+ * This SDK targets Appwrite server version 2.0.x as shipped on Appwrite Cloud.
5
+ * Self-hosted releases can lag behind Cloud — if you run an older self-hosted
6
+ * build, use a matching older SDK from
7
+ * [previous releases](https://github.com/appwrite/sdk-for-console/releases)
8
+ * when APIs differ.
7
9
  */
8
10
  export { Client, Query, AppwriteException } from './client';
9
11
  export { Account } from './services/account';
@@ -48,7 +50,7 @@ export { VectorsDB } from './services/vectors-db';
48
50
  export { Waf } from './services/waf';
49
51
  export { Webhooks } from './services/webhooks';
50
52
  export { Realtime } from './services/realtime';
51
- export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
53
+ export type { Models, Payload, RealtimeResponseEvent, UploadProgress, } from './client';
52
54
  export type { RealtimeSubscription } from './services/realtime';
53
55
  export type { QueryTypes, QueryTypesList } from './query';
54
56
  export { Permission } from './permission';
@@ -101,7 +103,7 @@ export { FirebaseMigrationResource } from './enums/firebase-migration-resource';
101
103
  export { NHostMigrationResource } from './enums/n-host-migration-resource';
102
104
  export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
103
105
  export { OrganizationKeyScopes } from './enums/organization-key-scopes';
104
- export { Addon } from './enums/addon';
106
+ export { AddonKey } from './enums/addon-key';
105
107
  export { UsageRange } from './enums/usage-range';
106
108
  export { ProjectAuthMethodId } from './enums/project-auth-method-id';
107
109
  export { ProjectOAuth2GooglePrompt } from './enums/project-o-auth-2-google-prompt';
@@ -124,10 +126,12 @@ export { SiteTemplateUseCase } from './enums/site-template-use-case';
124
126
  export { Compression } from './enums/compression';
125
127
  export { ImageGravity } from './enums/image-gravity';
126
128
  export { TablesDBIndexType } from './enums/tables-db-index-type';
129
+ export { UsageEventMetric } from './enums/usage-event-metric';
127
130
  export { UsageInterval } from './enums/usage-interval';
128
131
  export { UsageEventDimension } from './enums/usage-event-dimension';
129
132
  export { UsageOrderBy } from './enums/usage-order-by';
130
133
  export { UsageOrderDirection } from './enums/usage-order-direction';
134
+ export { UsageGaugeMetric } from './enums/usage-gauge-metric';
131
135
  export { UsageGaugeDimension } from './enums/usage-gauge-dimension';
132
136
  export { PasswordHash } from './enums/password-hash';
133
137
  export { MessagingProviderType } from './enums/messaging-provider-type';
@@ -141,6 +145,7 @@ export { IndexStatus } from './enums/index-status';
141
145
  export { DetectionFrameworkType } from './enums/detection-framework-type';
142
146
  export { DetectionRuntimeType } from './enums/detection-runtime-type';
143
147
  export { DeploymentStatus } from './enums/deployment-status';
148
+ export { ExecutionResourceType } from './enums/execution-resource-type';
144
149
  export { ExecutionTrigger } from './enums/execution-trigger';
145
150
  export { ExecutionStatus } from './enums/execution-status';
146
151
  export { OAuth2GooglePrompt } from './enums/o-auth-2-google-prompt';