@appwrite.io/console 15.0.0 → 15.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/sdk.js +60 -54
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +60 -54
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +60 -54
- package/package.json +1 -1
- package/types/models.d.ts +44 -31
- package/types/services/compute.d.ts +2 -2
- package/types/services/databases.d.ts +14 -0
- package/types/services/functions.d.ts +13 -1
- package/types/services/health.d.ts +0 -19
- package/types/services/oauth-2.d.ts +12 -3
- package/types/services/sites.d.ts +13 -1
- package/types/services/usage.d.ts +22 -22
package/dist/iife/sdk.js
CHANGED
|
@@ -4420,7 +4420,7 @@
|
|
|
4420
4420
|
'x-sdk-name': 'Console',
|
|
4421
4421
|
'x-sdk-platform': 'console',
|
|
4422
4422
|
'x-sdk-language': 'web',
|
|
4423
|
-
'x-sdk-version': '15.
|
|
4423
|
+
'x-sdk-version': '15.1.1',
|
|
4424
4424
|
'X-Appwrite-Response-Format': '1.9.5',
|
|
4425
4425
|
};
|
|
4426
4426
|
this.realtime = {
|
|
@@ -9728,7 +9728,7 @@
|
|
|
9728
9728
|
if (typeof sql === 'undefined') {
|
|
9729
9729
|
throw new AppwriteException('Missing required parameter: "sql"');
|
|
9730
9730
|
}
|
|
9731
|
-
const apiPath = '/compute/databases/{databaseId}/
|
|
9731
|
+
const apiPath = '/compute/databases/{databaseId}/executions'.replace('{databaseId}', encodeURIComponent(String(databaseId)));
|
|
9732
9732
|
const payload = {};
|
|
9733
9733
|
if (typeof sql !== 'undefined') {
|
|
9734
9734
|
payload['sql'] = sql;
|
|
@@ -18087,15 +18087,22 @@
|
|
|
18087
18087
|
};
|
|
18088
18088
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
18089
18089
|
}
|
|
18090
|
-
|
|
18091
|
-
|
|
18092
|
-
|
|
18093
|
-
|
|
18094
|
-
|
|
18095
|
-
|
|
18096
|
-
|
|
18090
|
+
listSpecifications(paramsOrFirst) {
|
|
18091
|
+
let params;
|
|
18092
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18093
|
+
params = (paramsOrFirst || {});
|
|
18094
|
+
}
|
|
18095
|
+
else {
|
|
18096
|
+
params = {
|
|
18097
|
+
type: paramsOrFirst
|
|
18098
|
+
};
|
|
18099
|
+
}
|
|
18100
|
+
const type = params.type;
|
|
18097
18101
|
const apiPath = '/functions/specifications';
|
|
18098
18102
|
const payload = {};
|
|
18103
|
+
if (typeof type !== 'undefined') {
|
|
18104
|
+
payload['type'] = type;
|
|
18105
|
+
}
|
|
18099
18106
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18100
18107
|
const apiHeaders = {
|
|
18101
18108
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -19430,29 +19437,6 @@
|
|
|
19430
19437
|
};
|
|
19431
19438
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
19432
19439
|
}
|
|
19433
|
-
getQueuePriorityBuilds(paramsOrFirst) {
|
|
19434
|
-
let params;
|
|
19435
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19436
|
-
params = (paramsOrFirst || {});
|
|
19437
|
-
}
|
|
19438
|
-
else {
|
|
19439
|
-
params = {
|
|
19440
|
-
threshold: paramsOrFirst
|
|
19441
|
-
};
|
|
19442
|
-
}
|
|
19443
|
-
const threshold = params.threshold;
|
|
19444
|
-
const apiPath = '/health/queue/builds-priority';
|
|
19445
|
-
const payload = {};
|
|
19446
|
-
if (typeof threshold !== 'undefined') {
|
|
19447
|
-
payload['threshold'] = threshold;
|
|
19448
|
-
}
|
|
19449
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19450
|
-
const apiHeaders = {
|
|
19451
|
-
'X-Appwrite-Project': this.client.config.project,
|
|
19452
|
-
'accept': 'application/json',
|
|
19453
|
-
};
|
|
19454
|
-
return this.client.call('get', uri, apiHeaders, payload);
|
|
19455
|
-
}
|
|
19456
19440
|
getQueueCertificates(paramsOrFirst) {
|
|
19457
19441
|
let params;
|
|
19458
19442
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -24133,7 +24117,8 @@
|
|
|
24133
24117
|
codeChallengeMethod: rest[6],
|
|
24134
24118
|
prompt: rest[7],
|
|
24135
24119
|
maxAge: rest[8],
|
|
24136
|
-
authorizationDetails: rest[9]
|
|
24120
|
+
authorizationDetails: rest[9],
|
|
24121
|
+
resource: rest[10]
|
|
24137
24122
|
};
|
|
24138
24123
|
}
|
|
24139
24124
|
const clientId = params.clientId;
|
|
@@ -24147,6 +24132,7 @@
|
|
|
24147
24132
|
const prompt = params.prompt;
|
|
24148
24133
|
const maxAge = params.maxAge;
|
|
24149
24134
|
const authorizationDetails = params.authorizationDetails;
|
|
24135
|
+
const resource = params.resource;
|
|
24150
24136
|
if (typeof clientId === 'undefined') {
|
|
24151
24137
|
throw new AppwriteException('Missing required parameter: "clientId"');
|
|
24152
24138
|
}
|
|
@@ -24194,6 +24180,9 @@
|
|
|
24194
24180
|
if (typeof authorizationDetails !== 'undefined') {
|
|
24195
24181
|
payload['authorization_details'] = authorizationDetails;
|
|
24196
24182
|
}
|
|
24183
|
+
if (typeof resource !== 'undefined') {
|
|
24184
|
+
payload['resource'] = resource;
|
|
24185
|
+
}
|
|
24197
24186
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24198
24187
|
const apiHeaders = {
|
|
24199
24188
|
'accept': 'application/json',
|
|
@@ -24209,12 +24198,14 @@
|
|
|
24209
24198
|
params = {
|
|
24210
24199
|
clientId: paramsOrFirst,
|
|
24211
24200
|
scope: rest[0],
|
|
24212
|
-
authorizationDetails: rest[1]
|
|
24201
|
+
authorizationDetails: rest[1],
|
|
24202
|
+
resource: rest[2]
|
|
24213
24203
|
};
|
|
24214
24204
|
}
|
|
24215
24205
|
const clientId = params.clientId;
|
|
24216
24206
|
const scope = params.scope;
|
|
24217
24207
|
const authorizationDetails = params.authorizationDetails;
|
|
24208
|
+
const resource = params.resource;
|
|
24218
24209
|
const apiPath = '/oauth2/{project_id}/device_authorization'.replace('{project_id}', encodeURIComponent(String(this.client.config.project)));
|
|
24219
24210
|
const payload = {};
|
|
24220
24211
|
if (typeof clientId !== 'undefined') {
|
|
@@ -24226,6 +24217,9 @@
|
|
|
24226
24217
|
if (typeof authorizationDetails !== 'undefined') {
|
|
24227
24218
|
payload['authorization_details'] = authorizationDetails;
|
|
24228
24219
|
}
|
|
24220
|
+
if (typeof resource !== 'undefined') {
|
|
24221
|
+
payload['resource'] = resource;
|
|
24222
|
+
}
|
|
24229
24223
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24230
24224
|
const apiHeaders = {
|
|
24231
24225
|
'content-type': 'application/json',
|
|
@@ -24409,7 +24403,8 @@
|
|
|
24409
24403
|
clientId: rest[3],
|
|
24410
24404
|
clientSecret: rest[4],
|
|
24411
24405
|
codeVerifier: rest[5],
|
|
24412
|
-
redirectUri: rest[6]
|
|
24406
|
+
redirectUri: rest[6],
|
|
24407
|
+
resource: rest[7]
|
|
24413
24408
|
};
|
|
24414
24409
|
}
|
|
24415
24410
|
const grantType = params.grantType;
|
|
@@ -24420,6 +24415,7 @@
|
|
|
24420
24415
|
const clientSecret = params.clientSecret;
|
|
24421
24416
|
const codeVerifier = params.codeVerifier;
|
|
24422
24417
|
const redirectUri = params.redirectUri;
|
|
24418
|
+
const resource = params.resource;
|
|
24423
24419
|
if (typeof grantType === 'undefined') {
|
|
24424
24420
|
throw new AppwriteException('Missing required parameter: "grantType"');
|
|
24425
24421
|
}
|
|
@@ -24449,6 +24445,9 @@
|
|
|
24449
24445
|
if (typeof redirectUri !== 'undefined') {
|
|
24450
24446
|
payload['redirect_uri'] = redirectUri;
|
|
24451
24447
|
}
|
|
24448
|
+
if (typeof resource !== 'undefined') {
|
|
24449
|
+
payload['resource'] = resource;
|
|
24450
|
+
}
|
|
24452
24451
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24453
24452
|
const apiHeaders = {
|
|
24454
24453
|
'content-type': 'application/json',
|
|
@@ -30915,15 +30914,22 @@
|
|
|
30915
30914
|
};
|
|
30916
30915
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
30917
30916
|
}
|
|
30918
|
-
|
|
30919
|
-
|
|
30920
|
-
|
|
30921
|
-
|
|
30922
|
-
|
|
30923
|
-
|
|
30924
|
-
|
|
30917
|
+
listSpecifications(paramsOrFirst) {
|
|
30918
|
+
let params;
|
|
30919
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
30920
|
+
params = (paramsOrFirst || {});
|
|
30921
|
+
}
|
|
30922
|
+
else {
|
|
30923
|
+
params = {
|
|
30924
|
+
type: paramsOrFirst
|
|
30925
|
+
};
|
|
30926
|
+
}
|
|
30927
|
+
const type = params.type;
|
|
30925
30928
|
const apiPath = '/sites/specifications';
|
|
30926
30929
|
const payload = {};
|
|
30930
|
+
if (typeof type !== 'undefined') {
|
|
30931
|
+
payload['type'] = type;
|
|
30932
|
+
}
|
|
30927
30933
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
30928
30934
|
const apiHeaders = {
|
|
30929
30935
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -36776,7 +36782,7 @@
|
|
|
36776
36782
|
}
|
|
36777
36783
|
else {
|
|
36778
36784
|
params = {
|
|
36779
|
-
|
|
36785
|
+
metrics: paramsOrFirst,
|
|
36780
36786
|
resource: rest[0],
|
|
36781
36787
|
resourceId: rest[1],
|
|
36782
36788
|
interval: rest[2],
|
|
@@ -36789,7 +36795,7 @@
|
|
|
36789
36795
|
offset: rest[9]
|
|
36790
36796
|
};
|
|
36791
36797
|
}
|
|
36792
|
-
const
|
|
36798
|
+
const metrics = params.metrics;
|
|
36793
36799
|
const resource = params.resource;
|
|
36794
36800
|
const resourceId = params.resourceId;
|
|
36795
36801
|
const interval = params.interval;
|
|
@@ -36800,13 +36806,13 @@
|
|
|
36800
36806
|
const orderDir = params.orderDir;
|
|
36801
36807
|
const limit = params.limit;
|
|
36802
36808
|
const offset = params.offset;
|
|
36803
|
-
if (typeof
|
|
36804
|
-
throw new AppwriteException('Missing required parameter: "
|
|
36809
|
+
if (typeof metrics === 'undefined') {
|
|
36810
|
+
throw new AppwriteException('Missing required parameter: "metrics"');
|
|
36805
36811
|
}
|
|
36806
36812
|
const apiPath = '/usage/events';
|
|
36807
36813
|
const payload = {};
|
|
36808
|
-
if (typeof
|
|
36809
|
-
payload['
|
|
36814
|
+
if (typeof metrics !== 'undefined') {
|
|
36815
|
+
payload['metrics'] = metrics;
|
|
36810
36816
|
}
|
|
36811
36817
|
if (typeof resource !== 'undefined') {
|
|
36812
36818
|
payload['resource'] = resource;
|
|
@@ -36852,7 +36858,7 @@
|
|
|
36852
36858
|
}
|
|
36853
36859
|
else {
|
|
36854
36860
|
params = {
|
|
36855
|
-
|
|
36861
|
+
metrics: paramsOrFirst,
|
|
36856
36862
|
resourceId: rest[0],
|
|
36857
36863
|
teamId: rest[1],
|
|
36858
36864
|
interval: rest[2],
|
|
@@ -36865,7 +36871,7 @@
|
|
|
36865
36871
|
offset: rest[9]
|
|
36866
36872
|
};
|
|
36867
36873
|
}
|
|
36868
|
-
const
|
|
36874
|
+
const metrics = params.metrics;
|
|
36869
36875
|
const resourceId = params.resourceId;
|
|
36870
36876
|
const teamId = params.teamId;
|
|
36871
36877
|
const interval = params.interval;
|
|
@@ -36876,13 +36882,13 @@
|
|
|
36876
36882
|
const orderDir = params.orderDir;
|
|
36877
36883
|
const limit = params.limit;
|
|
36878
36884
|
const offset = params.offset;
|
|
36879
|
-
if (typeof
|
|
36880
|
-
throw new AppwriteException('Missing required parameter: "
|
|
36885
|
+
if (typeof metrics === 'undefined') {
|
|
36886
|
+
throw new AppwriteException('Missing required parameter: "metrics"');
|
|
36881
36887
|
}
|
|
36882
36888
|
const apiPath = '/usage/gauges';
|
|
36883
36889
|
const payload = {};
|
|
36884
|
-
if (typeof
|
|
36885
|
-
payload['
|
|
36890
|
+
if (typeof metrics !== 'undefined') {
|
|
36891
|
+
payload['metrics'] = metrics;
|
|
36886
36892
|
}
|
|
36887
36893
|
if (typeof resourceId !== 'undefined') {
|
|
36888
36894
|
payload['resourceId'] = resourceId;
|
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": "15.
|
|
5
|
+
"version": "15.1.1",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/types/models.d.ts
CHANGED
|
@@ -5121,59 +5121,59 @@ export declare namespace Models {
|
|
|
5121
5121
|
/**
|
|
5122
5122
|
* OAuth2 server status
|
|
5123
5123
|
*/
|
|
5124
|
-
oAuth2ServerEnabled
|
|
5124
|
+
oAuth2ServerEnabled?: boolean;
|
|
5125
5125
|
/**
|
|
5126
5126
|
* OAuth2 server authorization URL
|
|
5127
5127
|
*/
|
|
5128
|
-
oAuth2ServerAuthorizationUrl
|
|
5128
|
+
oAuth2ServerAuthorizationUrl?: string;
|
|
5129
5129
|
/**
|
|
5130
5130
|
* OAuth2 server allowed scopes
|
|
5131
5131
|
*/
|
|
5132
|
-
oAuth2ServerScopes
|
|
5132
|
+
oAuth2ServerScopes?: string[];
|
|
5133
5133
|
/**
|
|
5134
5134
|
* OAuth2 server accepted RFC 9396 authorization_details types
|
|
5135
5135
|
*/
|
|
5136
|
-
oAuth2ServerAuthorizationDetailsTypes
|
|
5136
|
+
oAuth2ServerAuthorizationDetailsTypes?: string[];
|
|
5137
5137
|
/**
|
|
5138
5138
|
* OAuth2 server access token duration in seconds for confidential clients
|
|
5139
5139
|
*/
|
|
5140
|
-
oAuth2ServerAccessTokenDuration
|
|
5140
|
+
oAuth2ServerAccessTokenDuration?: number;
|
|
5141
5141
|
/**
|
|
5142
5142
|
* OAuth2 server refresh token duration in seconds for confidential clients
|
|
5143
5143
|
*/
|
|
5144
|
-
oAuth2ServerRefreshTokenDuration
|
|
5144
|
+
oAuth2ServerRefreshTokenDuration?: number;
|
|
5145
5145
|
/**
|
|
5146
5146
|
* OAuth2 server access token duration in seconds for public clients (SPAs, mobile, native)
|
|
5147
5147
|
*/
|
|
5148
|
-
oAuth2ServerPublicAccessTokenDuration
|
|
5148
|
+
oAuth2ServerPublicAccessTokenDuration?: number;
|
|
5149
5149
|
/**
|
|
5150
5150
|
* OAuth2 server refresh token duration in seconds for public clients (SPAs, mobile, native)
|
|
5151
5151
|
*/
|
|
5152
|
-
oAuth2ServerPublicRefreshTokenDuration
|
|
5152
|
+
oAuth2ServerPublicRefreshTokenDuration?: number;
|
|
5153
5153
|
/**
|
|
5154
5154
|
* When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
|
|
5155
5155
|
*/
|
|
5156
|
-
oAuth2ServerConfidentialPkce
|
|
5156
|
+
oAuth2ServerConfidentialPkce?: boolean;
|
|
5157
5157
|
/**
|
|
5158
5158
|
* URL to your application page where users enter the device flow user code. Empty when the Device Authorization Grant is not configured.
|
|
5159
5159
|
*/
|
|
5160
|
-
oAuth2ServerVerificationUrl
|
|
5160
|
+
oAuth2ServerVerificationUrl?: string;
|
|
5161
5161
|
/**
|
|
5162
5162
|
* Number of characters in the device flow user code, excluding the formatting separator.
|
|
5163
5163
|
*/
|
|
5164
|
-
oAuth2ServerUserCodeLength
|
|
5164
|
+
oAuth2ServerUserCodeLength?: number;
|
|
5165
5165
|
/**
|
|
5166
5166
|
* Character set for device flow user codes: `numeric`, `alphabetic`, or `alphanumeric`.
|
|
5167
5167
|
*/
|
|
5168
|
-
oAuth2ServerUserCodeFormat
|
|
5168
|
+
oAuth2ServerUserCodeFormat?: string;
|
|
5169
5169
|
/**
|
|
5170
5170
|
* Lifetime in seconds of device flow device codes and user codes.
|
|
5171
5171
|
*/
|
|
5172
|
-
oAuth2ServerDeviceCodeDuration
|
|
5172
|
+
oAuth2ServerDeviceCodeDuration?: number;
|
|
5173
5173
|
/**
|
|
5174
5174
|
* OAuth2 server discovery URL
|
|
5175
5175
|
*/
|
|
5176
|
-
oAuth2ServerDiscoveryUrl
|
|
5176
|
+
oAuth2ServerDiscoveryUrl?: string;
|
|
5177
5177
|
};
|
|
5178
5178
|
/**
|
|
5179
5179
|
* ProjectAuthMethod
|
|
@@ -12040,15 +12040,15 @@ export declare namespace Models {
|
|
|
12040
12040
|
credits: AdditionalResource;
|
|
12041
12041
|
};
|
|
12042
12042
|
/**
|
|
12043
|
-
*
|
|
12043
|
+
* usageDataPoint
|
|
12044
12044
|
*/
|
|
12045
|
-
export type
|
|
12045
|
+
export type UsageDataPoint = {
|
|
12046
12046
|
/**
|
|
12047
|
-
*
|
|
12047
|
+
* Bucket start timestamp (ISO 8601). When `interval` is omitted this is the request end time, marking the aggregate as-of moment.
|
|
12048
12048
|
*/
|
|
12049
12049
|
time: string;
|
|
12050
12050
|
/**
|
|
12051
|
-
* Aggregated value for the
|
|
12051
|
+
* Aggregated value for the bucket.
|
|
12052
12052
|
*/
|
|
12053
12053
|
value: number;
|
|
12054
12054
|
/**
|
|
@@ -12103,40 +12103,49 @@ export declare namespace Models {
|
|
|
12103
12103
|
* External resource ID when broken down by `resourceId`.
|
|
12104
12104
|
*/
|
|
12105
12105
|
resourceId?: string;
|
|
12106
|
+
/**
|
|
12107
|
+
* Resource type when broken down by `resource` (gauges only).
|
|
12108
|
+
*/
|
|
12109
|
+
resource?: string;
|
|
12106
12110
|
};
|
|
12107
12111
|
/**
|
|
12108
12112
|
* usageEventList
|
|
12109
12113
|
*/
|
|
12110
12114
|
export type UsageEventList = {
|
|
12111
12115
|
/**
|
|
12112
|
-
*
|
|
12113
|
-
*/
|
|
12114
|
-
metric: string;
|
|
12115
|
-
/**
|
|
12116
|
-
* Time interval size (1h or 1d).
|
|
12116
|
+
* Time interval size (1h or 1d). Empty when the request omits `interval` — points then carry the request end time as their as-of marker.
|
|
12117
12117
|
*/
|
|
12118
12118
|
interval: string;
|
|
12119
12119
|
/**
|
|
12120
|
-
*
|
|
12120
|
+
* One entry per requested metric, each carrying its own points[] time series (sums per bucket / dimension over time).
|
|
12121
12121
|
*/
|
|
12122
|
-
|
|
12122
|
+
metrics: UsageMetric[];
|
|
12123
12123
|
};
|
|
12124
12124
|
/**
|
|
12125
12125
|
* usageGaugeList
|
|
12126
12126
|
*/
|
|
12127
12127
|
export type UsageGaugeList = {
|
|
12128
12128
|
/**
|
|
12129
|
-
*
|
|
12129
|
+
* Time interval size (1h or 1d). Empty when the request omits `interval` — points then carry the request end time as their as-of marker.
|
|
12130
12130
|
*/
|
|
12131
|
-
|
|
12131
|
+
interval: string;
|
|
12132
12132
|
/**
|
|
12133
|
-
*
|
|
12133
|
+
* One entry per requested metric, each carrying its own points[] time series (latest-snapshot per bucket / dimension via argMax over time).
|
|
12134
12134
|
*/
|
|
12135
|
-
|
|
12135
|
+
metrics: UsageMetric[];
|
|
12136
|
+
};
|
|
12137
|
+
/**
|
|
12138
|
+
* usageMetric
|
|
12139
|
+
*/
|
|
12140
|
+
export type UsageMetric = {
|
|
12141
|
+
/**
|
|
12142
|
+
* Metric key this series describes.
|
|
12143
|
+
*/
|
|
12144
|
+
metric: string;
|
|
12136
12145
|
/**
|
|
12137
|
-
*
|
|
12146
|
+
* Data points for this metric, ordered by time ascending. With `interval`, each entry is one bucket; without, each entry is one row of the dimensional or aggregate breakdown.
|
|
12138
12147
|
*/
|
|
12139
|
-
|
|
12148
|
+
points: UsageDataPoint[];
|
|
12140
12149
|
};
|
|
12141
12150
|
/**
|
|
12142
12151
|
* Organization
|
|
@@ -12627,6 +12636,10 @@ export declare namespace Models {
|
|
|
12627
12636
|
* Requested OAuth2 scopes the user is being asked to consent to.
|
|
12628
12637
|
*/
|
|
12629
12638
|
scopes: string[];
|
|
12639
|
+
/**
|
|
12640
|
+
* Requested RFC 8707 resource indicators the user is being asked to consent to.
|
|
12641
|
+
*/
|
|
12642
|
+
resources: string[];
|
|
12630
12643
|
/**
|
|
12631
12644
|
* Requested authorization_details the user is being asked to consent to, as a JSON string. Each entry has a `type` plus project-defined fields.
|
|
12632
12645
|
*/
|
|
@@ -637,7 +637,7 @@ export declare class Compute {
|
|
|
637
637
|
*/
|
|
638
638
|
updateDatabaseCredentials(databaseId: string): Promise<Models.DedicatedDatabaseCredentials>;
|
|
639
639
|
/**
|
|
640
|
-
* Execute SQL through the console-facing Cloud endpoint. Cloud proxies through the edge platform to the per-database SQL API sidecar. Application traffic should bypass cloud entirely and POST directly to the per-database hostname: `https://db-{project}-{db}.{region}.appwrite.center/v1/sql/
|
|
640
|
+
* Execute SQL through the console-facing Cloud endpoint. Cloud proxies through the edge platform to the per-database SQL API sidecar. Application traffic should bypass cloud entirely and POST directly to the per-database hostname: `https://db-{project}-{db}.{region}.appwrite.center/v1/sql/executions` with an `X-Appwrite-Key` header — that path scales to the whole DB fleet without a per-query cloud round-trip. The statement type must be on the database's configured allow-list. Use bound parameters for any user-supplied values — the API does not interpolate raw strings.
|
|
641
641
|
*
|
|
642
642
|
* @param {string} params.databaseId - Database ID.
|
|
643
643
|
* @param {string} params.sql - SQL statement to execute. Exactly one statement per request.
|
|
@@ -653,7 +653,7 @@ export declare class Compute {
|
|
|
653
653
|
timeoutSeconds?: number;
|
|
654
654
|
}): Promise<Models.DedicatedDatabaseExecution>;
|
|
655
655
|
/**
|
|
656
|
-
* Execute SQL through the console-facing Cloud endpoint. Cloud proxies through the edge platform to the per-database SQL API sidecar. Application traffic should bypass cloud entirely and POST directly to the per-database hostname: `https://db-{project}-{db}.{region}.appwrite.center/v1/sql/
|
|
656
|
+
* Execute SQL through the console-facing Cloud endpoint. Cloud proxies through the edge platform to the per-database SQL API sidecar. Application traffic should bypass cloud entirely and POST directly to the per-database hostname: `https://db-{project}-{db}.{region}.appwrite.center/v1/sql/executions` with an `X-Appwrite-Key` header — that path scales to the whole DB fleet without a per-query cloud round-trip. The statement type must be on the database's configured allow-list. Use bound parameters for any user-supplied values — the API does not interpolate raw strings.
|
|
657
657
|
*
|
|
658
658
|
* @param {string} databaseId - Database ID.
|
|
659
659
|
* @param {string} sql - SQL statement to execute. Exactly one statement per request.
|
|
@@ -68,6 +68,7 @@ export declare class Databases {
|
|
|
68
68
|
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
|
|
69
69
|
* @throws {AppwriteException}
|
|
70
70
|
* @returns {Promise<Models.TransactionList>}
|
|
71
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.listTransactions` instead.
|
|
71
72
|
*/
|
|
72
73
|
listTransactions(params?: {
|
|
73
74
|
queries?: string[];
|
|
@@ -87,6 +88,7 @@ export declare class Databases {
|
|
|
87
88
|
* @param {number} params.ttl - Seconds before the transaction expires.
|
|
88
89
|
* @throws {AppwriteException}
|
|
89
90
|
* @returns {Promise<Models.Transaction>}
|
|
91
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createTransaction` instead.
|
|
90
92
|
*/
|
|
91
93
|
createTransaction(params?: {
|
|
92
94
|
ttl?: number;
|
|
@@ -106,6 +108,7 @@ export declare class Databases {
|
|
|
106
108
|
* @param {string} params.transactionId - Transaction ID.
|
|
107
109
|
* @throws {AppwriteException}
|
|
108
110
|
* @returns {Promise<Models.Transaction>}
|
|
111
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.getTransaction` instead.
|
|
109
112
|
*/
|
|
110
113
|
getTransaction(params: {
|
|
111
114
|
transactionId: string;
|
|
@@ -127,6 +130,7 @@ export declare class Databases {
|
|
|
127
130
|
* @param {boolean} params.rollback - Rollback transaction?
|
|
128
131
|
* @throws {AppwriteException}
|
|
129
132
|
* @returns {Promise<Models.Transaction>}
|
|
133
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTransaction` instead.
|
|
130
134
|
*/
|
|
131
135
|
updateTransaction(params: {
|
|
132
136
|
transactionId: string;
|
|
@@ -150,6 +154,7 @@ export declare class Databases {
|
|
|
150
154
|
* @param {string} params.transactionId - Transaction ID.
|
|
151
155
|
* @throws {AppwriteException}
|
|
152
156
|
* @returns {Promise<{}>}
|
|
157
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.deleteTransaction` instead.
|
|
153
158
|
*/
|
|
154
159
|
deleteTransaction(params: {
|
|
155
160
|
transactionId: string;
|
|
@@ -170,6 +175,7 @@ export declare class Databases {
|
|
|
170
175
|
* @param {object[]} params.operations - Array of staged operations.
|
|
171
176
|
* @throws {AppwriteException}
|
|
172
177
|
* @returns {Promise<Models.Transaction>}
|
|
178
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createOperations` instead.
|
|
173
179
|
*/
|
|
174
180
|
createOperations(params: {
|
|
175
181
|
transactionId: string;
|
|
@@ -1162,6 +1168,7 @@ export declare class Databases {
|
|
|
1162
1168
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1163
1169
|
* @throws {AppwriteException}
|
|
1164
1170
|
* @returns {Promise<Models.AttributeLongtext>}
|
|
1171
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createLongtextColumn` instead.
|
|
1165
1172
|
*/
|
|
1166
1173
|
createLongtextAttribute(params: {
|
|
1167
1174
|
databaseId: string;
|
|
@@ -1200,6 +1207,7 @@ export declare class Databases {
|
|
|
1200
1207
|
* @param {string} params.newKey - New Attribute Key.
|
|
1201
1208
|
* @throws {AppwriteException}
|
|
1202
1209
|
* @returns {Promise<Models.AttributeLongtext>}
|
|
1210
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateLongtextColumn` instead.
|
|
1203
1211
|
*/
|
|
1204
1212
|
updateLongtextAttribute(params: {
|
|
1205
1213
|
databaseId: string;
|
|
@@ -1237,6 +1245,7 @@ export declare class Databases {
|
|
|
1237
1245
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1238
1246
|
* @throws {AppwriteException}
|
|
1239
1247
|
* @returns {Promise<Models.AttributeMediumtext>}
|
|
1248
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createMediumtextColumn` instead.
|
|
1240
1249
|
*/
|
|
1241
1250
|
createMediumtextAttribute(params: {
|
|
1242
1251
|
databaseId: string;
|
|
@@ -1275,6 +1284,7 @@ export declare class Databases {
|
|
|
1275
1284
|
* @param {string} params.newKey - New Attribute Key.
|
|
1276
1285
|
* @throws {AppwriteException}
|
|
1277
1286
|
* @returns {Promise<Models.AttributeMediumtext>}
|
|
1287
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateMediumtextColumn` instead.
|
|
1278
1288
|
*/
|
|
1279
1289
|
updateMediumtextAttribute(params: {
|
|
1280
1290
|
databaseId: string;
|
|
@@ -1606,6 +1616,7 @@ export declare class Databases {
|
|
|
1606
1616
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1607
1617
|
* @throws {AppwriteException}
|
|
1608
1618
|
* @returns {Promise<Models.AttributeText>}
|
|
1619
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createTextColumn` instead.
|
|
1609
1620
|
*/
|
|
1610
1621
|
createTextAttribute(params: {
|
|
1611
1622
|
databaseId: string;
|
|
@@ -1644,6 +1655,7 @@ export declare class Databases {
|
|
|
1644
1655
|
* @param {string} params.newKey - New Attribute Key.
|
|
1645
1656
|
* @throws {AppwriteException}
|
|
1646
1657
|
* @returns {Promise<Models.AttributeText>}
|
|
1658
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTextColumn` instead.
|
|
1647
1659
|
*/
|
|
1648
1660
|
updateTextAttribute(params: {
|
|
1649
1661
|
databaseId: string;
|
|
@@ -1756,6 +1768,7 @@ export declare class Databases {
|
|
|
1756
1768
|
* @param {boolean} params.encrypt - Toggle encryption for the attribute. Encryption enhances security by not storing any plain text values in the database. However, encrypted attributes cannot be queried.
|
|
1757
1769
|
* @throws {AppwriteException}
|
|
1758
1770
|
* @returns {Promise<Models.AttributeVarchar>}
|
|
1771
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createVarcharColumn` instead.
|
|
1759
1772
|
*/
|
|
1760
1773
|
createVarcharAttribute(params: {
|
|
1761
1774
|
databaseId: string;
|
|
@@ -1797,6 +1810,7 @@ export declare class Databases {
|
|
|
1797
1810
|
* @param {string} params.newKey - New Attribute Key.
|
|
1798
1811
|
* @throws {AppwriteException}
|
|
1799
1812
|
* @returns {Promise<Models.AttributeVarchar>}
|
|
1813
|
+
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateVarcharColumn` instead.
|
|
1800
1814
|
*/
|
|
1801
1815
|
updateVarcharAttribute(params: {
|
|
1802
1816
|
databaseId: string;
|
|
@@ -128,10 +128,22 @@ export declare class Functions {
|
|
|
128
128
|
/**
|
|
129
129
|
* List allowed function specifications for this instance.
|
|
130
130
|
*
|
|
131
|
+
* @param {string} params.type - Specification type to list. Can be one of: runtimes, builds.
|
|
131
132
|
* @throws {AppwriteException}
|
|
132
133
|
* @returns {Promise<Models.SpecificationList>}
|
|
133
134
|
*/
|
|
134
|
-
listSpecifications(
|
|
135
|
+
listSpecifications(params?: {
|
|
136
|
+
type?: string;
|
|
137
|
+
}): Promise<Models.SpecificationList>;
|
|
138
|
+
/**
|
|
139
|
+
* List allowed function specifications for this instance.
|
|
140
|
+
*
|
|
141
|
+
* @param {string} type - Specification type to list. Can be one of: runtimes, builds.
|
|
142
|
+
* @throws {AppwriteException}
|
|
143
|
+
* @returns {Promise<Models.SpecificationList>}
|
|
144
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
145
|
+
*/
|
|
146
|
+
listSpecifications(type?: string): Promise<Models.SpecificationList>;
|
|
135
147
|
/**
|
|
136
148
|
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
137
149
|
*
|
|
@@ -168,25 +168,6 @@ export declare class Health {
|
|
|
168
168
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
169
169
|
*/
|
|
170
170
|
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
171
|
-
/**
|
|
172
|
-
* Get the priority builds queue size.
|
|
173
|
-
*
|
|
174
|
-
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
|
|
175
|
-
* @throws {AppwriteException}
|
|
176
|
-
* @returns {Promise<Models.HealthQueue>}
|
|
177
|
-
*/
|
|
178
|
-
getQueuePriorityBuilds(params?: {
|
|
179
|
-
threshold?: number;
|
|
180
|
-
}): Promise<Models.HealthQueue>;
|
|
181
|
-
/**
|
|
182
|
-
* Get the priority builds queue size.
|
|
183
|
-
*
|
|
184
|
-
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
|
|
185
|
-
* @throws {AppwriteException}
|
|
186
|
-
* @returns {Promise<Models.HealthQueue>}
|
|
187
|
-
* @deprecated Use the object parameter style method for a better developer experience.
|
|
188
|
-
*/
|
|
189
|
-
getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
190
171
|
/**
|
|
191
172
|
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
|
|
192
173
|
*
|