@appwrite.io/console 5.0.0 → 6.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.
- package/CHANGELOG.md +13 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +516 -285
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +516 -286
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +517 -286
- package/docs/examples/domains/{confirm-purchase.md → update-purchase.md} +1 -1
- package/docs/examples/domains/{confirm-transfer-in.md → update-transfer-in.md} +1 -1
- package/docs/examples/{projects/update-webhook.md → webhooks/create.md} +5 -6
- package/docs/examples/{projects/get-webhook.md → webhooks/delete.md} +3 -4
- package/docs/examples/{projects/delete-webhook.md → webhooks/get.md} +3 -4
- package/docs/examples/{projects/list-webhooks.md → webhooks/list.md} +4 -4
- package/docs/examples/{projects/update-webhook-signature.md → webhooks/update-signature.md} +3 -4
- package/docs/examples/{projects/create-webhook.md → webhooks/update.md} +6 -6
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/build-runtime.ts +86 -3
- package/src/enums/domain-purchase-status.ts +6 -0
- package/src/enums/{domain-transfer-status-status.ts → domain-transfer-status-enum.ts} +1 -1
- package/src/enums/runtime.ts +86 -3
- package/src/enums/runtimes.ts +86 -3
- package/src/enums/scopes.ts +2 -0
- package/src/index.ts +3 -2
- package/src/models.ts +58 -16
- package/src/services/domains.ts +30 -30
- package/src/services/projects.ts +0 -473
- package/src/services/webhooks.ts +451 -0
- package/types/enums/build-runtime.d.ts +87 -4
- package/types/enums/domain-purchase-status.d.ts +6 -0
- package/types/enums/{domain-transfer-status-status.d.ts → domain-transfer-status-enum.d.ts} +1 -1
- package/types/enums/runtime.d.ts +87 -4
- package/types/enums/runtimes.d.ts +87 -4
- package/types/enums/scopes.d.ts +2 -0
- package/types/index.d.ts +3 -2
- package/types/models.d.ts +57 -16
- package/types/services/domains.d.ts +22 -22
- package/types/services/projects.d.ts +0 -171
- package/types/services/webhooks.d.ts +165 -0
- package/src/enums/domain-purchase-payment-status.ts +0 -10
- package/types/enums/domain-purchase-payment-status.d.ts +0 -10
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
```javascript
|
|
2
|
-
import { Client,
|
|
2
|
+
import { Client, Webhooks } from "@appwrite.io/console";
|
|
3
3
|
|
|
4
4
|
const client = new Client()
|
|
5
5
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
6
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const webhooks = new Webhooks(client);
|
|
9
9
|
|
|
10
|
-
const result = await
|
|
11
|
-
projectId: '<PROJECT_ID>',
|
|
10
|
+
const result = await webhooks.create({
|
|
12
11
|
webhookId: '<WEBHOOK_ID>',
|
|
12
|
+
url: '',
|
|
13
13
|
name: '<NAME>',
|
|
14
14
|
events: [],
|
|
15
|
-
url: '',
|
|
16
|
-
security: false,
|
|
17
15
|
enabled: false, // optional
|
|
16
|
+
security: false, // optional
|
|
18
17
|
httpUser: '<HTTP_USER>', // optional
|
|
19
18
|
httpPass: '<HTTP_PASS>' // optional
|
|
20
19
|
});
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
```javascript
|
|
2
|
-
import { Client,
|
|
2
|
+
import { Client, Webhooks } from "@appwrite.io/console";
|
|
3
3
|
|
|
4
4
|
const client = new Client()
|
|
5
5
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
6
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const webhooks = new Webhooks(client);
|
|
9
9
|
|
|
10
|
-
const result = await
|
|
11
|
-
projectId: '<PROJECT_ID>',
|
|
10
|
+
const result = await webhooks.delete({
|
|
12
11
|
webhookId: '<WEBHOOK_ID>'
|
|
13
12
|
});
|
|
14
13
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
```javascript
|
|
2
|
-
import { Client,
|
|
2
|
+
import { Client, Webhooks } from "@appwrite.io/console";
|
|
3
3
|
|
|
4
4
|
const client = new Client()
|
|
5
5
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
6
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const webhooks = new Webhooks(client);
|
|
9
9
|
|
|
10
|
-
const result = await
|
|
11
|
-
projectId: '<PROJECT_ID>',
|
|
10
|
+
const result = await webhooks.get({
|
|
12
11
|
webhookId: '<WEBHOOK_ID>'
|
|
13
12
|
});
|
|
14
13
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
```javascript
|
|
2
|
-
import { Client,
|
|
2
|
+
import { Client, Webhooks } from "@appwrite.io/console";
|
|
3
3
|
|
|
4
4
|
const client = new Client()
|
|
5
5
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
6
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const webhooks = new Webhooks(client);
|
|
9
9
|
|
|
10
|
-
const result = await
|
|
11
|
-
|
|
10
|
+
const result = await webhooks.list({
|
|
11
|
+
queries: [], // optional
|
|
12
12
|
total: false // optional
|
|
13
13
|
});
|
|
14
14
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
```javascript
|
|
2
|
-
import { Client,
|
|
2
|
+
import { Client, Webhooks } from "@appwrite.io/console";
|
|
3
3
|
|
|
4
4
|
const client = new Client()
|
|
5
5
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
6
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const webhooks = new Webhooks(client);
|
|
9
9
|
|
|
10
|
-
const result = await
|
|
11
|
-
projectId: '<PROJECT_ID>',
|
|
10
|
+
const result = await webhooks.updateSignature({
|
|
12
11
|
webhookId: '<WEBHOOK_ID>'
|
|
13
12
|
});
|
|
14
13
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
```javascript
|
|
2
|
-
import { Client,
|
|
2
|
+
import { Client, Webhooks } from "@appwrite.io/console";
|
|
3
3
|
|
|
4
4
|
const client = new Client()
|
|
5
5
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
6
6
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
7
7
|
|
|
8
|
-
const
|
|
8
|
+
const webhooks = new Webhooks(client);
|
|
9
9
|
|
|
10
|
-
const result = await
|
|
11
|
-
|
|
10
|
+
const result = await webhooks.update({
|
|
11
|
+
webhookId: '<WEBHOOK_ID>',
|
|
12
12
|
name: '<NAME>',
|
|
13
|
-
events: [],
|
|
14
13
|
url: '',
|
|
15
|
-
|
|
14
|
+
events: [],
|
|
16
15
|
enabled: false, // optional
|
|
16
|
+
security: false, // optional
|
|
17
17
|
httpUser: '<HTTP_USER>', // optional
|
|
18
18
|
httpPass: '<HTTP_PASS>' // optional
|
|
19
19
|
});
|
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": "
|
|
5
|
+
"version": "6.0.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/src/client.ts
CHANGED
|
@@ -30,9 +30,6 @@ export enum BuildRuntime {
|
|
|
30
30
|
Pythonml311 = 'python-ml-3.11',
|
|
31
31
|
Pythonml312 = 'python-ml-3.12',
|
|
32
32
|
Pythonml313 = 'python-ml-3.13',
|
|
33
|
-
Deno121 = 'deno-1.21',
|
|
34
|
-
Deno124 = 'deno-1.24',
|
|
35
|
-
Deno135 = 'deno-1.35',
|
|
36
33
|
Deno140 = 'deno-1.40',
|
|
37
34
|
Deno146 = 'deno-1.46',
|
|
38
35
|
Deno20 = 'deno-2.0',
|
|
@@ -88,4 +85,90 @@ export enum BuildRuntime {
|
|
|
88
85
|
Flutter332 = 'flutter-3.32',
|
|
89
86
|
Flutter335 = 'flutter-3.35',
|
|
90
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',
|
|
91
174
|
}
|
package/src/enums/runtime.ts
CHANGED
|
@@ -30,9 +30,6 @@ export enum Runtime {
|
|
|
30
30
|
Pythonml311 = 'python-ml-3.11',
|
|
31
31
|
Pythonml312 = 'python-ml-3.12',
|
|
32
32
|
Pythonml313 = 'python-ml-3.13',
|
|
33
|
-
Deno121 = 'deno-1.21',
|
|
34
|
-
Deno124 = 'deno-1.24',
|
|
35
|
-
Deno135 = 'deno-1.35',
|
|
36
33
|
Deno140 = 'deno-1.40',
|
|
37
34
|
Deno146 = 'deno-1.46',
|
|
38
35
|
Deno20 = 'deno-2.0',
|
|
@@ -88,4 +85,90 @@ export enum Runtime {
|
|
|
88
85
|
Flutter332 = 'flutter-3.32',
|
|
89
86
|
Flutter335 = 'flutter-3.35',
|
|
90
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',
|
|
91
174
|
}
|
package/src/enums/runtimes.ts
CHANGED
|
@@ -30,9 +30,6 @@ export enum Runtimes {
|
|
|
30
30
|
Pythonml311 = 'python-ml-3.11',
|
|
31
31
|
Pythonml312 = 'python-ml-3.12',
|
|
32
32
|
Pythonml313 = 'python-ml-3.13',
|
|
33
|
-
Deno121 = 'deno-1.21',
|
|
34
|
-
Deno124 = 'deno-1.24',
|
|
35
|
-
Deno135 = 'deno-1.35',
|
|
36
33
|
Deno140 = 'deno-1.40',
|
|
37
34
|
Deno146 = 'deno-1.46',
|
|
38
35
|
Deno20 = 'deno-2.0',
|
|
@@ -88,4 +85,90 @@ export enum Runtimes {
|
|
|
88
85
|
Flutter332 = 'flutter-3.32',
|
|
89
86
|
Flutter335 = 'flutter-3.35',
|
|
90
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',
|
|
91
174
|
}
|
package/src/enums/scopes.ts
CHANGED
|
@@ -56,6 +56,8 @@ export enum Scopes {
|
|
|
56
56
|
AssistantRead = 'assistant.read',
|
|
57
57
|
TokensRead = 'tokens.read',
|
|
58
58
|
TokensWrite = 'tokens.write',
|
|
59
|
+
WebhooksRead = 'webhooks.read',
|
|
60
|
+
WebhooksWrite = 'webhooks.write',
|
|
59
61
|
PoliciesWrite = 'policies.write',
|
|
60
62
|
PoliciesRead = 'policies.read',
|
|
61
63
|
ArchivesRead = 'archives.read',
|
package/src/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export { Teams } from './services/teams';
|
|
|
31
31
|
export { Tokens } from './services/tokens';
|
|
32
32
|
export { Users } from './services/users';
|
|
33
33
|
export { Vcs } from './services/vcs';
|
|
34
|
+
export { Webhooks } from './services/webhooks';
|
|
34
35
|
export { Realtime } from './services/realtime';
|
|
35
36
|
export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
|
|
36
37
|
export type { RealtimeSubscription } from './services/realtime';
|
|
@@ -112,5 +113,5 @@ export { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-r
|
|
|
112
113
|
export { ProxyRuleStatus } from './enums/proxy-rule-status';
|
|
113
114
|
export { MessageStatus } from './enums/message-status';
|
|
114
115
|
export { BillingPlanGroup } from './enums/billing-plan-group';
|
|
115
|
-
export {
|
|
116
|
-
export {
|
|
116
|
+
export { DomainTransferStatusEnum } from './enums/domain-transfer-status-enum';
|
|
117
|
+
export { DomainPurchaseStatus } from './enums/domain-purchase-status';
|
package/src/models.ts
CHANGED
|
@@ -12,8 +12,8 @@ import { ProxyRuleDeploymentResourceType } from "./enums/proxy-rule-deployment-r
|
|
|
12
12
|
import { ProxyRuleStatus } from "./enums/proxy-rule-status"
|
|
13
13
|
import { MessageStatus } from "./enums/message-status"
|
|
14
14
|
import { BillingPlanGroup } from "./enums/billing-plan-group"
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { DomainTransferStatusEnum } from "./enums/domain-transfer-status-enum"
|
|
16
|
+
import { DomainPurchaseStatus } from "./enums/domain-purchase-status"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Appwrite Models
|
|
@@ -7206,9 +7206,17 @@ export namespace Models {
|
|
|
7206
7206
|
*/
|
|
7207
7207
|
usageBandwidth: number;
|
|
7208
7208
|
/**
|
|
7209
|
-
*
|
|
7209
|
+
* Peak concurrent realtime connections for the billing period
|
|
7210
7210
|
*/
|
|
7211
7211
|
usageRealtime: number;
|
|
7212
|
+
/**
|
|
7213
|
+
* Total realtime messages sent for the billing period
|
|
7214
|
+
*/
|
|
7215
|
+
usageRealtimeMessages: number;
|
|
7216
|
+
/**
|
|
7217
|
+
* Total realtime bandwidth usage for the billing period
|
|
7218
|
+
*/
|
|
7219
|
+
usageRealtimeBandwidth: number;
|
|
7212
7220
|
/**
|
|
7213
7221
|
* Additional members
|
|
7214
7222
|
*/
|
|
@@ -8725,14 +8733,6 @@ export namespace Models {
|
|
|
8725
8733
|
* Domain registrar (e.g. "appwrite" or "third_party").
|
|
8726
8734
|
*/
|
|
8727
8735
|
registrar: string;
|
|
8728
|
-
/**
|
|
8729
|
-
* Payment status for domain purchase.
|
|
8730
|
-
*/
|
|
8731
|
-
paymentStatus: DomainPurchasePaymentStatus;
|
|
8732
|
-
/**
|
|
8733
|
-
* Client secret for payment confirmation. Present only when paymentStatus is pending_confirmation.
|
|
8734
|
-
*/
|
|
8735
|
-
clientSecret: string;
|
|
8736
8736
|
/**
|
|
8737
8737
|
* Nameservers setting. "Appwrite" or empty string.
|
|
8738
8738
|
*/
|
|
@@ -8753,6 +8753,10 @@ export namespace Models {
|
|
|
8753
8753
|
* Renewal price (in cents).
|
|
8754
8754
|
*/
|
|
8755
8755
|
renewalPrice: number;
|
|
8756
|
+
/**
|
|
8757
|
+
* Transfer status for domains being transferred in.
|
|
8758
|
+
*/
|
|
8759
|
+
transferStatus: DomainTransferStatusEnum;
|
|
8756
8760
|
/**
|
|
8757
8761
|
* Team ID.
|
|
8758
8762
|
*/
|
|
@@ -8761,14 +8765,52 @@ export namespace Models {
|
|
|
8761
8765
|
* Dns records
|
|
8762
8766
|
*/
|
|
8763
8767
|
dnsRecords: DnsRecord[];
|
|
8768
|
+
}
|
|
8769
|
+
|
|
8770
|
+
/**
|
|
8771
|
+
* DomainPurchase
|
|
8772
|
+
*/
|
|
8773
|
+
export type DomainPurchase = {
|
|
8774
|
+
/**
|
|
8775
|
+
* Purchase/invoice ID.
|
|
8776
|
+
*/
|
|
8777
|
+
$id: string;
|
|
8764
8778
|
/**
|
|
8765
|
-
*
|
|
8779
|
+
* Purchase creation time in ISO 8601 format.
|
|
8766
8780
|
*/
|
|
8767
|
-
|
|
8781
|
+
$createdAt: string;
|
|
8768
8782
|
/**
|
|
8769
|
-
*
|
|
8783
|
+
* Purchase update date in ISO 8601 format.
|
|
8770
8784
|
*/
|
|
8771
|
-
|
|
8785
|
+
$updatedAt: string;
|
|
8786
|
+
/**
|
|
8787
|
+
* Domain document ID.
|
|
8788
|
+
*/
|
|
8789
|
+
domainId: string;
|
|
8790
|
+
/**
|
|
8791
|
+
* Domain name.
|
|
8792
|
+
*/
|
|
8793
|
+
domain: string;
|
|
8794
|
+
/**
|
|
8795
|
+
* Team ID that owns the domain.
|
|
8796
|
+
*/
|
|
8797
|
+
organizationId: string;
|
|
8798
|
+
/**
|
|
8799
|
+
* Domain purchase status.
|
|
8800
|
+
*/
|
|
8801
|
+
status: DomainPurchaseStatus;
|
|
8802
|
+
/**
|
|
8803
|
+
* Stripe client secret for 3DS; empty when not applicable.
|
|
8804
|
+
*/
|
|
8805
|
+
clientSecret: string;
|
|
8806
|
+
/**
|
|
8807
|
+
* Purchase amount.
|
|
8808
|
+
*/
|
|
8809
|
+
amount: number;
|
|
8810
|
+
/**
|
|
8811
|
+
* Currency code.
|
|
8812
|
+
*/
|
|
8813
|
+
currency: string;
|
|
8772
8814
|
}
|
|
8773
8815
|
|
|
8774
8816
|
/**
|
|
@@ -9070,7 +9112,7 @@ export namespace Models {
|
|
|
9070
9112
|
/**
|
|
9071
9113
|
* Transfer status.
|
|
9072
9114
|
*/
|
|
9073
|
-
status:
|
|
9115
|
+
status: DomainTransferStatusEnum;
|
|
9074
9116
|
/**
|
|
9075
9117
|
* Additional transfer status information.
|
|
9076
9118
|
*/
|