@appwrite.io/console 7.0.0 → 8.0.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 (60) hide show
  1. package/CHANGELOG.md +22 -6
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +211 -303
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +209 -297
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +227 -306
  8. package/docs/examples/databases/create-index.md +2 -2
  9. package/docs/examples/domains/create-purchase.md +2 -1
  10. package/docs/examples/domains/create-transfer-in.md +2 -1
  11. package/docs/examples/domains/update-auto-renewal.md +16 -0
  12. package/docs/examples/project/create-variable.md +1 -0
  13. package/docs/examples/project/list-variables.md +4 -1
  14. package/docs/examples/project/update-variable.md +1 -1
  15. package/docs/examples/tablesdb/create-index.md +2 -2
  16. package/docs/examples/users/update-impersonator.md +16 -0
  17. package/package.json +7 -7
  18. package/rollup.config.js +2 -1
  19. package/src/client.ts +49 -1
  20. package/src/enums/appwrite-migration-resource.ts +2 -0
  21. package/src/enums/backup-services.ts +3 -0
  22. package/src/enums/build-runtime.ts +0 -86
  23. package/src/enums/database-type.ts +2 -0
  24. package/src/enums/databases-index-type.ts +6 -0
  25. package/src/enums/runtime.ts +0 -86
  26. package/src/enums/runtimes.ts +0 -86
  27. package/src/enums/scopes.ts +13 -2
  28. package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
  29. package/src/enums/template-reference-type.ts +1 -1
  30. package/src/enums/use-cases.ts +7 -2
  31. package/src/index.ts +2 -1
  32. package/src/models.ts +136 -90
  33. package/src/services/databases.ts +10 -10
  34. package/src/services/domains.ts +103 -26
  35. package/src/services/project.ts +76 -33
  36. package/src/services/tables-db.ts +10 -10
  37. package/src/services/users.ts +67 -2
  38. package/types/channel.d.ts +3 -3
  39. package/types/client.d.ts +37 -4
  40. package/types/enums/appwrite-migration-resource.d.ts +2 -0
  41. package/types/enums/backup-services.d.ts +3 -0
  42. package/types/enums/build-runtime.d.ts +1 -87
  43. package/types/enums/database-type.d.ts +3 -1
  44. package/types/enums/databases-index-type.d.ts +6 -0
  45. package/types/enums/runtime.d.ts +1 -87
  46. package/types/enums/runtimes.d.ts +1 -87
  47. package/types/enums/scopes.d.ts +14 -3
  48. package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
  49. package/types/enums/template-reference-type.d.ts +1 -1
  50. package/types/enums/use-cases.d.ts +7 -2
  51. package/types/index.d.ts +2 -1
  52. package/types/models.d.ts +136 -87
  53. package/types/operator.d.ts +3 -3
  54. package/types/query.d.ts +4 -4
  55. package/types/services/databases.d.ts +5 -5
  56. package/types/services/domains.d.ts +42 -14
  57. package/types/services/project.d.ts +37 -19
  58. package/types/services/realtime.d.ts +6 -6
  59. package/types/services/tables-db.d.ts +5 -5
  60. package/types/services/users.d.ts +26 -2
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Databases, IndexType, OrderBy } from "@appwrite.io/console";
2
+ import { Client, Databases, DatabasesIndexType, OrderBy } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -11,7 +11,7 @@ const result = await databases.createIndex({
11
11
  databaseId: '<DATABASE_ID>',
12
12
  collectionId: '<COLLECTION_ID>',
13
13
  key: '',
14
- type: IndexType.Key,
14
+ type: DatabasesIndexType.Key,
15
15
  attributes: [],
16
16
  orders: [OrderBy.Asc], // optional
17
17
  lengths: [] // optional
@@ -18,7 +18,8 @@ const result = await domains.createPurchase({
18
18
  paymentMethodId: '<PAYMENT_METHOD_ID>',
19
19
  addressLine3: '<ADDRESS_LINE3>', // optional
20
20
  companyName: '<COMPANY_NAME>', // optional
21
- periodYears: 1 // optional
21
+ periodYears: 1, // optional
22
+ autoRenewal: false // optional
22
23
  });
23
24
 
24
25
  console.log(result);
@@ -11,7 +11,8 @@ const result = await domains.createTransferIn({
11
11
  domain: '',
12
12
  organizationId: '<ORGANIZATION_ID>',
13
13
  authCode: '<AUTH_CODE>',
14
- paymentMethodId: '<PAYMENT_METHOD_ID>'
14
+ paymentMethodId: '<PAYMENT_METHOD_ID>',
15
+ autoRenewal: false // optional
15
16
  });
16
17
 
17
18
  console.log(result);
@@ -0,0 +1,16 @@
1
+ ```javascript
2
+ import { Client, Domains } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const domains = new Domains(client);
9
+
10
+ const result = await domains.updateAutoRenewal({
11
+ domainId: '<DOMAIN_ID>',
12
+ autoRenewal: false
13
+ });
14
+
15
+ console.log(result);
16
+ ```
@@ -8,6 +8,7 @@ const client = new Client()
8
8
  const project = new Project(client);
9
9
 
10
10
  const result = await project.createVariable({
11
+ variableId: '<VARIABLE_ID>',
11
12
  key: '<KEY>',
12
13
  value: '<VALUE>',
13
14
  secret: false // optional
@@ -7,7 +7,10 @@ const client = new Client()
7
7
 
8
8
  const project = new Project(client);
9
9
 
10
- const result = await project.listVariables();
10
+ const result = await project.listVariables({
11
+ queries: [], // optional
12
+ total: false // optional
13
+ });
11
14
 
12
15
  console.log(result);
13
16
  ```
@@ -9,7 +9,7 @@ const project = new Project(client);
9
9
 
10
10
  const result = await project.updateVariable({
11
11
  variableId: '<VARIABLE_ID>',
12
- key: '<KEY>',
12
+ key: '<KEY>', // optional
13
13
  value: '<VALUE>', // optional
14
14
  secret: false // optional
15
15
  });
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, TablesDB, IndexType, OrderBy } from "@appwrite.io/console";
2
+ import { Client, TablesDB, TablesDBIndexType, OrderBy } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -11,7 +11,7 @@ const result = await tablesDB.createIndex({
11
11
  databaseId: '<DATABASE_ID>',
12
12
  tableId: '<TABLE_ID>',
13
13
  key: '',
14
- type: IndexType.Key,
14
+ type: TablesDBIndexType.Key,
15
15
  columns: [],
16
16
  orders: [OrderBy.Asc], // optional
17
17
  lengths: [] // optional
@@ -0,0 +1,16 @@
1
+ ```javascript
2
+ import { Client, Users } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const users = new Users(client);
9
+
10
+ const result = await users.updateImpersonator({
11
+ userId: '<USER_ID>',
12
+ impersonator: false
13
+ });
14
+
15
+ console.log(result);
16
+ ```
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
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": "7.0.0",
5
+ "version": "8.0.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -28,15 +28,15 @@
28
28
  "json-bigint": "1.0.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@rollup/plugin-commonjs": "22.0.0",
32
- "@rollup/plugin-node-resolve": "13.3.0",
33
- "@rollup/plugin-typescript": "8.3.2",
31
+ "@rollup/plugin-commonjs": "25.0.8",
32
+ "@rollup/plugin-node-resolve": "15.3.1",
33
+ "@rollup/plugin-typescript": "11.1.6",
34
34
  "@types/json-bigint": "1.0.4",
35
35
  "playwright": "1.56.1",
36
- "rollup": "2.79.2",
36
+ "rollup": "3.29.5",
37
37
  "serve-handler": "6.1.0",
38
- "tslib": "2.4.0",
39
- "typescript": "4.7.2"
38
+ "tslib": "2.8.1",
39
+ "typescript": "5.7.3"
40
40
  },
41
41
  "jsdelivr": "dist/iife/sdk.js",
42
42
  "unpkg": "dist/iife/sdk.js"
package/rollup.config.js CHANGED
@@ -1,4 +1,5 @@
1
- import pkg from "./package.json";
1
+ import { readFileSync } from "fs";
2
+ const pkg = JSON.parse(readFileSync("./package.json", "utf8"));
2
3
  import typescript from "@rollup/plugin-typescript";
3
4
  import resolve from "@rollup/plugin-node-resolve";
4
5
  import commonjs from "@rollup/plugin-commonjs";
package/src/client.ts CHANGED
@@ -377,6 +377,9 @@ class Client {
377
377
  locale: string;
378
378
  mode: string;
379
379
  cookie: string;
380
+ impersonateuserid: string;
381
+ impersonateuseremail: string;
382
+ impersonateuserphone: string;
380
383
  platform: string;
381
384
  selfSigned: boolean;
382
385
  session?: string;
@@ -389,6 +392,9 @@ class Client {
389
392
  locale: '',
390
393
  mode: '',
391
394
  cookie: '',
395
+ impersonateuserid: '',
396
+ impersonateuseremail: '',
397
+ impersonateuserphone: '',
392
398
  platform: '',
393
399
  selfSigned: false,
394
400
  session: undefined,
@@ -400,7 +406,7 @@ class Client {
400
406
  'x-sdk-name': 'Console',
401
407
  'x-sdk-platform': 'console',
402
408
  'x-sdk-language': 'web',
403
- 'x-sdk-version': '7.0.0',
409
+ 'x-sdk-version': '8.0.0',
404
410
  'X-Appwrite-Response-Format': '1.9.0',
405
411
  };
406
412
 
@@ -540,6 +546,48 @@ class Client {
540
546
  this.config.cookie = value;
541
547
  return this;
542
548
  }
549
+ /**
550
+ * Set ImpersonateUserId
551
+ *
552
+ * Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
553
+ *
554
+ * @param value string
555
+ *
556
+ * @return {this}
557
+ */
558
+ setImpersonateUserId(value: string): this {
559
+ this.headers['X-Appwrite-Impersonate-User-Id'] = value;
560
+ this.config.impersonateuserid = value;
561
+ return this;
562
+ }
563
+ /**
564
+ * Set ImpersonateUserEmail
565
+ *
566
+ * Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
567
+ *
568
+ * @param value string
569
+ *
570
+ * @return {this}
571
+ */
572
+ setImpersonateUserEmail(value: string): this {
573
+ this.headers['X-Appwrite-Impersonate-User-Email'] = value;
574
+ this.config.impersonateuseremail = value;
575
+ return this;
576
+ }
577
+ /**
578
+ * Set ImpersonateUserPhone
579
+ *
580
+ * Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data.
581
+ *
582
+ * @param value string
583
+ *
584
+ * @return {this}
585
+ */
586
+ setImpersonateUserPhone(value: string): this {
587
+ this.headers['X-Appwrite-Impersonate-User-Phone'] = value;
588
+ this.config.impersonateuserphone = value;
589
+ return this;
590
+ }
543
591
  /**
544
592
  * Set Platform
545
593
  *
@@ -10,6 +10,8 @@ export enum AppwriteMigrationResource {
10
10
  Document = 'document',
11
11
  Attribute = 'attribute',
12
12
  Collection = 'collection',
13
+ Documentsdb = 'documentsdb',
14
+ Vectorsdb = 'vectorsdb',
13
15
  Bucket = 'bucket',
14
16
  File = 'file',
15
17
  Function = 'function',
@@ -1,5 +1,8 @@
1
1
  export enum BackupServices {
2
2
  Databases = 'databases',
3
+ Tablesdb = 'tablesdb',
4
+ Documentsdb = 'documentsdb',
5
+ Vectorsdb = 'vectorsdb',
3
6
  Functions = 'functions',
4
7
  Storage = 'storage',
5
8
  }
@@ -85,90 +85,4 @@ export enum BuildRuntime {
85
85
  Flutter332 = 'flutter-3.32',
86
86
  Flutter335 = 'flutter-3.35',
87
87
  Flutter338 = 'flutter-3.38',
88
- Node145rc = 'node-14.5-rc',
89
- Node160rc = 'node-16.0-rc',
90
- Node180rc = 'node-18.0-rc',
91
- Node190rc = 'node-19.0-rc',
92
- Node200rc = 'node-20.0-rc',
93
- Node210rc = 'node-21.0-rc',
94
- Node22rc = 'node-22-rc',
95
- Node23rc = 'node-23-rc',
96
- Node24rc = 'node-24-rc',
97
- Node25rc = 'node-25-rc',
98
- Php80rc = 'php-8.0-rc',
99
- Php81rc = 'php-8.1-rc',
100
- Php82rc = 'php-8.2-rc',
101
- Php83rc = 'php-8.3-rc',
102
- Php84rc = 'php-8.4-rc',
103
- Ruby30rc = 'ruby-3.0-rc',
104
- Ruby31rc = 'ruby-3.1-rc',
105
- Ruby32rc = 'ruby-3.2-rc',
106
- Ruby33rc = 'ruby-3.3-rc',
107
- Ruby34rc = 'ruby-3.4-rc',
108
- Ruby40rc = 'ruby-4.0-rc',
109
- Python38rc = 'python-3.8-rc',
110
- Python39rc = 'python-3.9-rc',
111
- Python310rc = 'python-3.10-rc',
112
- Python311rc = 'python-3.11-rc',
113
- Python312rc = 'python-3.12-rc',
114
- Python313rc = 'python-3.13-rc',
115
- Python314rc = 'python-3.14-rc',
116
- Pythonml311rc = 'python-ml-3.11-rc',
117
- Pythonml312rc = 'python-ml-3.12-rc',
118
- Pythonml313rc = 'python-ml-3.13-rc',
119
- Deno140rc = 'deno-1.40-rc',
120
- Deno146rc = 'deno-1.46-rc',
121
- Deno20rc = 'deno-2.0-rc',
122
- Deno25rc = 'deno-2.5-rc',
123
- Deno26rc = 'deno-2.6-rc',
124
- Dart215rc = 'dart-2.15-rc',
125
- Dart216rc = 'dart-2.16-rc',
126
- Dart217rc = 'dart-2.17-rc',
127
- Dart218rc = 'dart-2.18-rc',
128
- Dart219rc = 'dart-2.19-rc',
129
- Dart30rc = 'dart-3.0-rc',
130
- Dart31rc = 'dart-3.1-rc',
131
- Dart33rc = 'dart-3.3-rc',
132
- Dart35rc = 'dart-3.5-rc',
133
- Dart38rc = 'dart-3.8-rc',
134
- Dart39rc = 'dart-3.9-rc',
135
- Dart310rc = 'dart-3.10-rc',
136
- Dotnet60rc = 'dotnet-6.0-rc',
137
- Dotnet70rc = 'dotnet-7.0-rc',
138
- Dotnet80rc = 'dotnet-8.0-rc',
139
- Dotnet10rc = 'dotnet-10-rc',
140
- Java80rc = 'java-8.0-rc',
141
- Java110rc = 'java-11.0-rc',
142
- Java170rc = 'java-17.0-rc',
143
- Java180rc = 'java-18.0-rc',
144
- Java210rc = 'java-21.0-rc',
145
- Java22rc = 'java-22-rc',
146
- Java25rc = 'java-25-rc',
147
- Swift55rc = 'swift-5.5-rc',
148
- Swift58rc = 'swift-5.8-rc',
149
- Swift59rc = 'swift-5.9-rc',
150
- Swift510rc = 'swift-5.10-rc',
151
- Swift62rc = 'swift-6.2-rc',
152
- Kotlin16rc = 'kotlin-1.6-rc',
153
- Kotlin18rc = 'kotlin-1.8-rc',
154
- Kotlin19rc = 'kotlin-1.9-rc',
155
- Kotlin20rc = 'kotlin-2.0-rc',
156
- Kotlin23rc = 'kotlin-2.3-rc',
157
- Cpp17rc = 'cpp-17-rc',
158
- Cpp20rc = 'cpp-20-rc',
159
- Bun10rc = 'bun-1.0-rc',
160
- Bun11rc = 'bun-1.1-rc',
161
- Bun12rc = 'bun-1.2-rc',
162
- Bun13rc = 'bun-1.3-rc',
163
- Go123rc = 'go-1.23-rc',
164
- Go124rc = 'go-1.24-rc',
165
- Go125rc = 'go-1.25-rc',
166
- Go126rc = 'go-1.26-rc',
167
- Static1rc = 'static-1-rc',
168
- Flutter324rc = 'flutter-3.24-rc',
169
- Flutter327rc = 'flutter-3.27-rc',
170
- Flutter329rc = 'flutter-3.29-rc',
171
- Flutter332rc = 'flutter-3.32-rc',
172
- Flutter335rc = 'flutter-3.35-rc',
173
- Flutter338rc = 'flutter-3.38-rc',
174
88
  }
@@ -1,4 +1,6 @@
1
1
  export enum DatabaseType {
2
2
  Legacy = 'legacy',
3
3
  Tablesdb = 'tablesdb',
4
+ Documentsdb = 'documentsdb',
5
+ Vectorsdb = 'vectorsdb',
4
6
  }
@@ -0,0 +1,6 @@
1
+ export enum DatabasesIndexType {
2
+ Key = 'key',
3
+ Fulltext = 'fulltext',
4
+ Unique = 'unique',
5
+ Spatial = 'spatial',
6
+ }
@@ -85,90 +85,4 @@ export enum Runtime {
85
85
  Flutter332 = 'flutter-3.32',
86
86
  Flutter335 = 'flutter-3.35',
87
87
  Flutter338 = 'flutter-3.38',
88
- Node145rc = 'node-14.5-rc',
89
- Node160rc = 'node-16.0-rc',
90
- Node180rc = 'node-18.0-rc',
91
- Node190rc = 'node-19.0-rc',
92
- Node200rc = 'node-20.0-rc',
93
- Node210rc = 'node-21.0-rc',
94
- Node22rc = 'node-22-rc',
95
- Node23rc = 'node-23-rc',
96
- Node24rc = 'node-24-rc',
97
- Node25rc = 'node-25-rc',
98
- Php80rc = 'php-8.0-rc',
99
- Php81rc = 'php-8.1-rc',
100
- Php82rc = 'php-8.2-rc',
101
- Php83rc = 'php-8.3-rc',
102
- Php84rc = 'php-8.4-rc',
103
- Ruby30rc = 'ruby-3.0-rc',
104
- Ruby31rc = 'ruby-3.1-rc',
105
- Ruby32rc = 'ruby-3.2-rc',
106
- Ruby33rc = 'ruby-3.3-rc',
107
- Ruby34rc = 'ruby-3.4-rc',
108
- Ruby40rc = 'ruby-4.0-rc',
109
- Python38rc = 'python-3.8-rc',
110
- Python39rc = 'python-3.9-rc',
111
- Python310rc = 'python-3.10-rc',
112
- Python311rc = 'python-3.11-rc',
113
- Python312rc = 'python-3.12-rc',
114
- Python313rc = 'python-3.13-rc',
115
- Python314rc = 'python-3.14-rc',
116
- Pythonml311rc = 'python-ml-3.11-rc',
117
- Pythonml312rc = 'python-ml-3.12-rc',
118
- Pythonml313rc = 'python-ml-3.13-rc',
119
- Deno140rc = 'deno-1.40-rc',
120
- Deno146rc = 'deno-1.46-rc',
121
- Deno20rc = 'deno-2.0-rc',
122
- Deno25rc = 'deno-2.5-rc',
123
- Deno26rc = 'deno-2.6-rc',
124
- Dart215rc = 'dart-2.15-rc',
125
- Dart216rc = 'dart-2.16-rc',
126
- Dart217rc = 'dart-2.17-rc',
127
- Dart218rc = 'dart-2.18-rc',
128
- Dart219rc = 'dart-2.19-rc',
129
- Dart30rc = 'dart-3.0-rc',
130
- Dart31rc = 'dart-3.1-rc',
131
- Dart33rc = 'dart-3.3-rc',
132
- Dart35rc = 'dart-3.5-rc',
133
- Dart38rc = 'dart-3.8-rc',
134
- Dart39rc = 'dart-3.9-rc',
135
- Dart310rc = 'dart-3.10-rc',
136
- Dotnet60rc = 'dotnet-6.0-rc',
137
- Dotnet70rc = 'dotnet-7.0-rc',
138
- Dotnet80rc = 'dotnet-8.0-rc',
139
- Dotnet10rc = 'dotnet-10-rc',
140
- Java80rc = 'java-8.0-rc',
141
- Java110rc = 'java-11.0-rc',
142
- Java170rc = 'java-17.0-rc',
143
- Java180rc = 'java-18.0-rc',
144
- Java210rc = 'java-21.0-rc',
145
- Java22rc = 'java-22-rc',
146
- Java25rc = 'java-25-rc',
147
- Swift55rc = 'swift-5.5-rc',
148
- Swift58rc = 'swift-5.8-rc',
149
- Swift59rc = 'swift-5.9-rc',
150
- Swift510rc = 'swift-5.10-rc',
151
- Swift62rc = 'swift-6.2-rc',
152
- Kotlin16rc = 'kotlin-1.6-rc',
153
- Kotlin18rc = 'kotlin-1.8-rc',
154
- Kotlin19rc = 'kotlin-1.9-rc',
155
- Kotlin20rc = 'kotlin-2.0-rc',
156
- Kotlin23rc = 'kotlin-2.3-rc',
157
- Cpp17rc = 'cpp-17-rc',
158
- Cpp20rc = 'cpp-20-rc',
159
- Bun10rc = 'bun-1.0-rc',
160
- Bun11rc = 'bun-1.1-rc',
161
- Bun12rc = 'bun-1.2-rc',
162
- Bun13rc = 'bun-1.3-rc',
163
- Go123rc = 'go-1.23-rc',
164
- Go124rc = 'go-1.24-rc',
165
- Go125rc = 'go-1.25-rc',
166
- Go126rc = 'go-1.26-rc',
167
- Static1rc = 'static-1-rc',
168
- Flutter324rc = 'flutter-3.24-rc',
169
- Flutter327rc = 'flutter-3.27-rc',
170
- Flutter329rc = 'flutter-3.29-rc',
171
- Flutter332rc = 'flutter-3.32-rc',
172
- Flutter335rc = 'flutter-3.35-rc',
173
- Flutter338rc = 'flutter-3.38-rc',
174
88
  }
@@ -85,90 +85,4 @@ export enum Runtimes {
85
85
  Flutter332 = 'flutter-3.32',
86
86
  Flutter335 = 'flutter-3.35',
87
87
  Flutter338 = 'flutter-3.38',
88
- Node145rc = 'node-14.5-rc',
89
- Node160rc = 'node-16.0-rc',
90
- Node180rc = 'node-18.0-rc',
91
- Node190rc = 'node-19.0-rc',
92
- Node200rc = 'node-20.0-rc',
93
- Node210rc = 'node-21.0-rc',
94
- Node22rc = 'node-22-rc',
95
- Node23rc = 'node-23-rc',
96
- Node24rc = 'node-24-rc',
97
- Node25rc = 'node-25-rc',
98
- Php80rc = 'php-8.0-rc',
99
- Php81rc = 'php-8.1-rc',
100
- Php82rc = 'php-8.2-rc',
101
- Php83rc = 'php-8.3-rc',
102
- Php84rc = 'php-8.4-rc',
103
- Ruby30rc = 'ruby-3.0-rc',
104
- Ruby31rc = 'ruby-3.1-rc',
105
- Ruby32rc = 'ruby-3.2-rc',
106
- Ruby33rc = 'ruby-3.3-rc',
107
- Ruby34rc = 'ruby-3.4-rc',
108
- Ruby40rc = 'ruby-4.0-rc',
109
- Python38rc = 'python-3.8-rc',
110
- Python39rc = 'python-3.9-rc',
111
- Python310rc = 'python-3.10-rc',
112
- Python311rc = 'python-3.11-rc',
113
- Python312rc = 'python-3.12-rc',
114
- Python313rc = 'python-3.13-rc',
115
- Python314rc = 'python-3.14-rc',
116
- Pythonml311rc = 'python-ml-3.11-rc',
117
- Pythonml312rc = 'python-ml-3.12-rc',
118
- Pythonml313rc = 'python-ml-3.13-rc',
119
- Deno140rc = 'deno-1.40-rc',
120
- Deno146rc = 'deno-1.46-rc',
121
- Deno20rc = 'deno-2.0-rc',
122
- Deno25rc = 'deno-2.5-rc',
123
- Deno26rc = 'deno-2.6-rc',
124
- Dart215rc = 'dart-2.15-rc',
125
- Dart216rc = 'dart-2.16-rc',
126
- Dart217rc = 'dart-2.17-rc',
127
- Dart218rc = 'dart-2.18-rc',
128
- Dart219rc = 'dart-2.19-rc',
129
- Dart30rc = 'dart-3.0-rc',
130
- Dart31rc = 'dart-3.1-rc',
131
- Dart33rc = 'dart-3.3-rc',
132
- Dart35rc = 'dart-3.5-rc',
133
- Dart38rc = 'dart-3.8-rc',
134
- Dart39rc = 'dart-3.9-rc',
135
- Dart310rc = 'dart-3.10-rc',
136
- Dotnet60rc = 'dotnet-6.0-rc',
137
- Dotnet70rc = 'dotnet-7.0-rc',
138
- Dotnet80rc = 'dotnet-8.0-rc',
139
- Dotnet10rc = 'dotnet-10-rc',
140
- Java80rc = 'java-8.0-rc',
141
- Java110rc = 'java-11.0-rc',
142
- Java170rc = 'java-17.0-rc',
143
- Java180rc = 'java-18.0-rc',
144
- Java210rc = 'java-21.0-rc',
145
- Java22rc = 'java-22-rc',
146
- Java25rc = 'java-25-rc',
147
- Swift55rc = 'swift-5.5-rc',
148
- Swift58rc = 'swift-5.8-rc',
149
- Swift59rc = 'swift-5.9-rc',
150
- Swift510rc = 'swift-5.10-rc',
151
- Swift62rc = 'swift-6.2-rc',
152
- Kotlin16rc = 'kotlin-1.6-rc',
153
- Kotlin18rc = 'kotlin-1.8-rc',
154
- Kotlin19rc = 'kotlin-1.9-rc',
155
- Kotlin20rc = 'kotlin-2.0-rc',
156
- Kotlin23rc = 'kotlin-2.3-rc',
157
- Cpp17rc = 'cpp-17-rc',
158
- Cpp20rc = 'cpp-20-rc',
159
- Bun10rc = 'bun-1.0-rc',
160
- Bun11rc = 'bun-1.1-rc',
161
- Bun12rc = 'bun-1.2-rc',
162
- Bun13rc = 'bun-1.3-rc',
163
- Go123rc = 'go-1.23-rc',
164
- Go124rc = 'go-1.24-rc',
165
- Go125rc = 'go-1.25-rc',
166
- Go126rc = 'go-1.26-rc',
167
- Static1rc = 'static-1-rc',
168
- Flutter324rc = 'flutter-3.24-rc',
169
- Flutter327rc = 'flutter-3.27-rc',
170
- Flutter329rc = 'flutter-3.29-rc',
171
- Flutter332rc = 'flutter-3.32-rc',
172
- Flutter335rc = 'flutter-3.35-rc',
173
- Flutter338rc = 'flutter-3.38-rc',
174
88
  }
@@ -1,9 +1,10 @@
1
1
  export enum Scopes {
2
+ Account = 'account',
3
+ TeamsRead = 'teams.read',
4
+ TeamsWrite = 'teams.write',
2
5
  SessionsWrite = 'sessions.write',
3
6
  UsersRead = 'users.read',
4
7
  UsersWrite = 'users.write',
5
- TeamsRead = 'teams.read',
6
- TeamsWrite = 'teams.write',
7
8
  DatabasesRead = 'databases.read',
8
9
  DatabasesWrite = 'databases.write',
9
10
  CollectionsRead = 'collections.read',
@@ -58,6 +59,8 @@ export enum Scopes {
58
59
  TokensWrite = 'tokens.write',
59
60
  WebhooksRead = 'webhooks.read',
60
61
  WebhooksWrite = 'webhooks.write',
62
+ ProjectRead = 'project.read',
63
+ ProjectWrite = 'project.write',
61
64
  PoliciesWrite = 'policies.write',
62
65
  PoliciesRead = 'policies.read',
63
66
  ArchivesRead = 'archives.read',
@@ -67,4 +70,12 @@ export enum Scopes {
67
70
  DomainsRead = 'domains.read',
68
71
  DomainsWrite = 'domains.write',
69
72
  EventsRead = 'events.read',
73
+ PlatformsRead = 'platforms.read',
74
+ PlatformsWrite = 'platforms.write',
75
+ ProjectsRead = 'projects.read',
76
+ ProjectsWrite = 'projects.write',
77
+ KeysRead = 'keys.read',
78
+ KeysWrite = 'keys.write',
79
+ DevKeysRead = 'devKeys.read',
80
+ DevKeysWrite = 'devKeys.write',
70
81
  }
@@ -1,4 +1,4 @@
1
- export enum IndexType {
1
+ export enum TablesDBIndexType {
2
2
  Key = 'key',
3
3
  Fulltext = 'fulltext',
4
4
  Unique = 'unique',
@@ -1,5 +1,5 @@
1
1
  export enum TemplateReferenceType {
2
- Branch = 'branch',
3
2
  Commit = 'commit',
3
+ Branch = 'branch',
4
4
  Tag = 'tag',
5
5
  }
@@ -1,11 +1,16 @@
1
1
  export enum UseCases {
2
- Portfolio = 'portfolio',
3
2
  Starter = 'starter',
3
+ Databases = 'databases',
4
+ Ai = 'ai',
5
+ Messaging = 'messaging',
6
+ Utilities = 'utilities',
7
+ Devtools = 'dev-tools',
8
+ Auth = 'auth',
9
+ Portfolio = 'portfolio',
4
10
  Events = 'events',
5
11
  Ecommerce = 'ecommerce',
6
12
  Documentation = 'documentation',
7
13
  Blog = 'blog',
8
- Ai = 'ai',
9
14
  Forms = 'forms',
10
15
  Dashboard = 'dashboard',
11
16
  }
package/src/index.ts CHANGED
@@ -58,7 +58,7 @@ export { ConsoleResourceType } from './enums/console-resource-type';
58
58
  export { UsageRange } from './enums/usage-range';
59
59
  export { RelationshipType } from './enums/relationship-type';
60
60
  export { RelationMutate } from './enums/relation-mutate';
61
- export { IndexType } from './enums/index-type';
61
+ export { DatabasesIndexType } from './enums/databases-index-type';
62
62
  export { OrderBy } from './enums/order-by';
63
63
  export { RegistrationType } from './enums/registration-type';
64
64
  export { FilterType } from './enums/filter-type';
@@ -97,6 +97,7 @@ export { Adapter } from './enums/adapter';
97
97
  export { Frameworks } from './enums/frameworks';
98
98
  export { Compression } from './enums/compression';
99
99
  export { ImageGravity } from './enums/image-gravity';
100
+ export { TablesDBIndexType } from './enums/tables-db-index-type';
100
101
  export { PasswordHash } from './enums/password-hash';
101
102
  export { MessagingProviderType } from './enums/messaging-provider-type';
102
103
  export { VCSDetectionType } from './enums/vcs-detection-type';