@appwrite.io/console 15.7.0 → 16.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/README.md +2 -2
- package/dist/cjs/sdk.js +441 -73
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +440 -74
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +441 -73
- package/package.json +3 -3
- package/types/client.d.ts +11 -0
- package/types/enums/build-runtime.d.ts +1 -0
- package/types/enums/invalidation-type.d.ts +5 -0
- package/types/enums/project-key-scopes.d.ts +1 -0
- package/types/enums/query-suggestion-resource.d.ts +3 -0
- package/types/enums/runtime.d.ts +1 -0
- package/types/enums/usage-event-dimension.d.ts +21 -0
- package/types/enums/usage-gauge-dimension.d.ts +7 -0
- package/types/enums/usage-interval.d.ts +7 -0
- package/types/enums/usage-order-by.d.ts +4 -0
- package/types/enums/usage-order-direction.d.ts +4 -0
- package/types/index.d.ts +9 -1
- package/types/models.d.ts +304 -53
- package/types/services/account.d.ts +6 -6
- package/types/services/affiliates.d.ts +162 -0
- package/types/services/documents-db.d.ts +8 -2
- package/types/services/embeddings.d.ts +31 -0
- package/types/services/mongo.d.ts +1 -4
- package/types/services/mysql.d.ts +3 -6
- package/types/services/postgresql.d.ts +3 -6
- package/types/services/project.d.ts +10 -10
- package/types/services/proxy.d.ts +30 -0
- package/types/services/tables-db.d.ts +8 -2
- package/types/services/usage.d.ts +35 -30
- package/types/services/vectors-db.d.ts +8 -27
- package/types/services/waf.d.ts +30 -12
package/dist/esm/sdk.js
CHANGED
|
@@ -624,6 +624,7 @@ class Client {
|
|
|
624
624
|
endpointRealtime: '',
|
|
625
625
|
project: '',
|
|
626
626
|
key: '',
|
|
627
|
+
organization: '',
|
|
627
628
|
jwt: '',
|
|
628
629
|
bearer: '',
|
|
629
630
|
locale: '',
|
|
@@ -645,8 +646,8 @@ class Client {
|
|
|
645
646
|
'x-sdk-name': 'Console',
|
|
646
647
|
'x-sdk-platform': 'console',
|
|
647
648
|
'x-sdk-language': 'web',
|
|
648
|
-
'x-sdk-version': '
|
|
649
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
649
|
+
'x-sdk-version': '16.0.0',
|
|
650
|
+
'X-Appwrite-Response-Format': '1.9.6',
|
|
650
651
|
};
|
|
651
652
|
this.realtime = {
|
|
652
653
|
socket: undefined,
|
|
@@ -955,6 +956,20 @@ class Client {
|
|
|
955
956
|
this.config.key = value;
|
|
956
957
|
return this;
|
|
957
958
|
}
|
|
959
|
+
/**
|
|
960
|
+
* Set Organization
|
|
961
|
+
*
|
|
962
|
+
* Your organization ID
|
|
963
|
+
*
|
|
964
|
+
* @param value string
|
|
965
|
+
*
|
|
966
|
+
* @return {this}
|
|
967
|
+
*/
|
|
968
|
+
setOrganization(value) {
|
|
969
|
+
this.headers['X-Appwrite-Organization'] = value;
|
|
970
|
+
this.config.organization = value;
|
|
971
|
+
return this;
|
|
972
|
+
}
|
|
958
973
|
/**
|
|
959
974
|
* Set JWT
|
|
960
975
|
*
|
|
@@ -3906,6 +3921,200 @@ class Activities {
|
|
|
3906
3921
|
}
|
|
3907
3922
|
}
|
|
3908
3923
|
|
|
3924
|
+
class Affiliates {
|
|
3925
|
+
constructor(client) {
|
|
3926
|
+
this.client = client;
|
|
3927
|
+
}
|
|
3928
|
+
listLinks(paramsOrFirst) {
|
|
3929
|
+
let params;
|
|
3930
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3931
|
+
params = (paramsOrFirst || {});
|
|
3932
|
+
}
|
|
3933
|
+
else {
|
|
3934
|
+
params = {
|
|
3935
|
+
queries: paramsOrFirst
|
|
3936
|
+
};
|
|
3937
|
+
}
|
|
3938
|
+
const queries = params.queries;
|
|
3939
|
+
const apiPath = '/affiliates/links';
|
|
3940
|
+
const payload = {};
|
|
3941
|
+
if (typeof queries !== 'undefined') {
|
|
3942
|
+
payload['queries'] = queries;
|
|
3943
|
+
}
|
|
3944
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3945
|
+
const apiHeaders = {
|
|
3946
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3947
|
+
'accept': 'application/json',
|
|
3948
|
+
};
|
|
3949
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
3950
|
+
}
|
|
3951
|
+
createLink(paramsOrFirst, ...rest) {
|
|
3952
|
+
let params;
|
|
3953
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3954
|
+
params = (paramsOrFirst || {});
|
|
3955
|
+
}
|
|
3956
|
+
else {
|
|
3957
|
+
params = {
|
|
3958
|
+
linkId: paramsOrFirst,
|
|
3959
|
+
name: rest[0]
|
|
3960
|
+
};
|
|
3961
|
+
}
|
|
3962
|
+
const linkId = params.linkId;
|
|
3963
|
+
const name = params.name;
|
|
3964
|
+
if (typeof linkId === 'undefined') {
|
|
3965
|
+
throw new AppwriteException('Missing required parameter: "linkId"');
|
|
3966
|
+
}
|
|
3967
|
+
const apiPath = '/affiliates/links';
|
|
3968
|
+
const payload = {};
|
|
3969
|
+
if (typeof linkId !== 'undefined') {
|
|
3970
|
+
payload['linkId'] = linkId;
|
|
3971
|
+
}
|
|
3972
|
+
if (typeof name !== 'undefined') {
|
|
3973
|
+
payload['name'] = name;
|
|
3974
|
+
}
|
|
3975
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
3976
|
+
const apiHeaders = {
|
|
3977
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
3978
|
+
'content-type': 'application/json',
|
|
3979
|
+
'accept': 'application/json',
|
|
3980
|
+
};
|
|
3981
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
3982
|
+
}
|
|
3983
|
+
getLink(paramsOrFirst) {
|
|
3984
|
+
let params;
|
|
3985
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
3986
|
+
params = (paramsOrFirst || {});
|
|
3987
|
+
}
|
|
3988
|
+
else {
|
|
3989
|
+
params = {
|
|
3990
|
+
linkId: paramsOrFirst
|
|
3991
|
+
};
|
|
3992
|
+
}
|
|
3993
|
+
const linkId = params.linkId;
|
|
3994
|
+
if (typeof linkId === 'undefined') {
|
|
3995
|
+
throw new AppwriteException('Missing required parameter: "linkId"');
|
|
3996
|
+
}
|
|
3997
|
+
const apiPath = '/affiliates/links/{linkId}'.replace('{linkId}', encodeURIComponent(String(linkId)));
|
|
3998
|
+
const payload = {};
|
|
3999
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4000
|
+
const apiHeaders = {
|
|
4001
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4002
|
+
'accept': 'application/json',
|
|
4003
|
+
};
|
|
4004
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4005
|
+
}
|
|
4006
|
+
deleteLink(paramsOrFirst) {
|
|
4007
|
+
let params;
|
|
4008
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4009
|
+
params = (paramsOrFirst || {});
|
|
4010
|
+
}
|
|
4011
|
+
else {
|
|
4012
|
+
params = {
|
|
4013
|
+
linkId: paramsOrFirst
|
|
4014
|
+
};
|
|
4015
|
+
}
|
|
4016
|
+
const linkId = params.linkId;
|
|
4017
|
+
if (typeof linkId === 'undefined') {
|
|
4018
|
+
throw new AppwriteException('Missing required parameter: "linkId"');
|
|
4019
|
+
}
|
|
4020
|
+
const apiPath = '/affiliates/links/{linkId}'.replace('{linkId}', encodeURIComponent(String(linkId)));
|
|
4021
|
+
const payload = {};
|
|
4022
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4023
|
+
const apiHeaders = {
|
|
4024
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4025
|
+
'content-type': 'application/json',
|
|
4026
|
+
'accept': 'application/json',
|
|
4027
|
+
};
|
|
4028
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
4029
|
+
}
|
|
4030
|
+
listReferrals(paramsOrFirst) {
|
|
4031
|
+
let params;
|
|
4032
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4033
|
+
params = (paramsOrFirst || {});
|
|
4034
|
+
}
|
|
4035
|
+
else {
|
|
4036
|
+
params = {
|
|
4037
|
+
queries: paramsOrFirst
|
|
4038
|
+
};
|
|
4039
|
+
}
|
|
4040
|
+
const queries = params.queries;
|
|
4041
|
+
const apiPath = '/affiliates/referrals';
|
|
4042
|
+
const payload = {};
|
|
4043
|
+
if (typeof queries !== 'undefined') {
|
|
4044
|
+
payload['queries'] = queries;
|
|
4045
|
+
}
|
|
4046
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4047
|
+
const apiHeaders = {
|
|
4048
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4049
|
+
'accept': 'application/json',
|
|
4050
|
+
};
|
|
4051
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4052
|
+
}
|
|
4053
|
+
listRewards(paramsOrFirst) {
|
|
4054
|
+
let params;
|
|
4055
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4056
|
+
params = (paramsOrFirst || {});
|
|
4057
|
+
}
|
|
4058
|
+
else {
|
|
4059
|
+
params = {
|
|
4060
|
+
queries: paramsOrFirst
|
|
4061
|
+
};
|
|
4062
|
+
}
|
|
4063
|
+
const queries = params.queries;
|
|
4064
|
+
const apiPath = '/affiliates/rewards';
|
|
4065
|
+
const payload = {};
|
|
4066
|
+
if (typeof queries !== 'undefined') {
|
|
4067
|
+
payload['queries'] = queries;
|
|
4068
|
+
}
|
|
4069
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4070
|
+
const apiHeaders = {
|
|
4071
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4072
|
+
'accept': 'application/json',
|
|
4073
|
+
};
|
|
4074
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4075
|
+
}
|
|
4076
|
+
updateReward(paramsOrFirst, ...rest) {
|
|
4077
|
+
let params;
|
|
4078
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
4079
|
+
params = (paramsOrFirst || {});
|
|
4080
|
+
}
|
|
4081
|
+
else {
|
|
4082
|
+
params = {
|
|
4083
|
+
rewardId: paramsOrFirst,
|
|
4084
|
+
status: rest[0],
|
|
4085
|
+
organizationId: rest[1]
|
|
4086
|
+
};
|
|
4087
|
+
}
|
|
4088
|
+
const rewardId = params.rewardId;
|
|
4089
|
+
const status = params.status;
|
|
4090
|
+
const organizationId = params.organizationId;
|
|
4091
|
+
if (typeof rewardId === 'undefined') {
|
|
4092
|
+
throw new AppwriteException('Missing required parameter: "rewardId"');
|
|
4093
|
+
}
|
|
4094
|
+
if (typeof status === 'undefined') {
|
|
4095
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
4096
|
+
}
|
|
4097
|
+
if (typeof organizationId === 'undefined') {
|
|
4098
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
4099
|
+
}
|
|
4100
|
+
const apiPath = '/affiliates/rewards/{rewardId}'.replace('{rewardId}', encodeURIComponent(String(rewardId)));
|
|
4101
|
+
const payload = {};
|
|
4102
|
+
if (typeof status !== 'undefined') {
|
|
4103
|
+
payload['status'] = status;
|
|
4104
|
+
}
|
|
4105
|
+
if (typeof organizationId !== 'undefined') {
|
|
4106
|
+
payload['organizationId'] = organizationId;
|
|
4107
|
+
}
|
|
4108
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4109
|
+
const apiHeaders = {
|
|
4110
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
4111
|
+
'content-type': 'application/json',
|
|
4112
|
+
'accept': 'application/json',
|
|
4113
|
+
};
|
|
4114
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
4115
|
+
}
|
|
4116
|
+
}
|
|
4117
|
+
|
|
3909
4118
|
class Apps {
|
|
3910
4119
|
constructor(client) {
|
|
3911
4120
|
this.client = client;
|
|
@@ -9515,7 +9724,8 @@ class DocumentsDB {
|
|
|
9515
9724
|
name: rest[0],
|
|
9516
9725
|
enabled: rest[1],
|
|
9517
9726
|
specification: rest[2],
|
|
9518
|
-
replicas: rest[3]
|
|
9727
|
+
replicas: rest[3],
|
|
9728
|
+
syncMode: rest[4]
|
|
9519
9729
|
};
|
|
9520
9730
|
}
|
|
9521
9731
|
const databaseId = params.databaseId;
|
|
@@ -9523,6 +9733,7 @@ class DocumentsDB {
|
|
|
9523
9733
|
const enabled = params.enabled;
|
|
9524
9734
|
const specification = params.specification;
|
|
9525
9735
|
const replicas = params.replicas;
|
|
9736
|
+
const syncMode = params.syncMode;
|
|
9526
9737
|
if (typeof databaseId === 'undefined') {
|
|
9527
9738
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9528
9739
|
}
|
|
@@ -9546,6 +9757,9 @@ class DocumentsDB {
|
|
|
9546
9757
|
if (typeof replicas !== 'undefined') {
|
|
9547
9758
|
payload['replicas'] = replicas;
|
|
9548
9759
|
}
|
|
9760
|
+
if (typeof syncMode !== 'undefined') {
|
|
9761
|
+
payload['syncMode'] = syncMode;
|
|
9762
|
+
}
|
|
9549
9763
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9550
9764
|
const apiHeaders = {
|
|
9551
9765
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -9731,7 +9945,8 @@ class DocumentsDB {
|
|
|
9731
9945
|
name: rest[0],
|
|
9732
9946
|
enabled: rest[1],
|
|
9733
9947
|
specification: rest[2],
|
|
9734
|
-
replicas: rest[3]
|
|
9948
|
+
replicas: rest[3],
|
|
9949
|
+
syncMode: rest[4]
|
|
9735
9950
|
};
|
|
9736
9951
|
}
|
|
9737
9952
|
const databaseId = params.databaseId;
|
|
@@ -9739,6 +9954,7 @@ class DocumentsDB {
|
|
|
9739
9954
|
const enabled = params.enabled;
|
|
9740
9955
|
const specification = params.specification;
|
|
9741
9956
|
const replicas = params.replicas;
|
|
9957
|
+
const syncMode = params.syncMode;
|
|
9742
9958
|
if (typeof databaseId === 'undefined') {
|
|
9743
9959
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
9744
9960
|
}
|
|
@@ -9759,6 +9975,9 @@ class DocumentsDB {
|
|
|
9759
9975
|
if (typeof replicas !== 'undefined') {
|
|
9760
9976
|
payload['replicas'] = replicas;
|
|
9761
9977
|
}
|
|
9978
|
+
if (typeof syncMode !== 'undefined') {
|
|
9979
|
+
payload['syncMode'] = syncMode;
|
|
9980
|
+
}
|
|
9762
9981
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9763
9982
|
const apiHeaders = {
|
|
9764
9983
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -13029,6 +13248,44 @@ class Domains {
|
|
|
13029
13248
|
}
|
|
13030
13249
|
}
|
|
13031
13250
|
|
|
13251
|
+
class Embeddings {
|
|
13252
|
+
constructor(client) {
|
|
13253
|
+
this.client = client;
|
|
13254
|
+
}
|
|
13255
|
+
createTextEmbeddings(paramsOrFirst, ...rest) {
|
|
13256
|
+
let params;
|
|
13257
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13258
|
+
params = (paramsOrFirst || {});
|
|
13259
|
+
}
|
|
13260
|
+
else {
|
|
13261
|
+
params = {
|
|
13262
|
+
texts: paramsOrFirst,
|
|
13263
|
+
model: rest[0]
|
|
13264
|
+
};
|
|
13265
|
+
}
|
|
13266
|
+
const texts = params.texts;
|
|
13267
|
+
const model = params.model;
|
|
13268
|
+
if (typeof texts === 'undefined') {
|
|
13269
|
+
throw new AppwriteException('Missing required parameter: "texts"');
|
|
13270
|
+
}
|
|
13271
|
+
const apiPath = '/embeddings/text';
|
|
13272
|
+
const payload = {};
|
|
13273
|
+
if (typeof texts !== 'undefined') {
|
|
13274
|
+
payload['texts'] = texts;
|
|
13275
|
+
}
|
|
13276
|
+
if (typeof model !== 'undefined') {
|
|
13277
|
+
payload['model'] = model;
|
|
13278
|
+
}
|
|
13279
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13280
|
+
const apiHeaders = {
|
|
13281
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
13282
|
+
'content-type': 'application/json',
|
|
13283
|
+
'accept': 'application/json',
|
|
13284
|
+
};
|
|
13285
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
13286
|
+
}
|
|
13287
|
+
}
|
|
13288
|
+
|
|
13032
13289
|
class Functions {
|
|
13033
13290
|
constructor(client) {
|
|
13034
13291
|
this.client = client;
|
|
@@ -18479,8 +18736,7 @@ class Mongo {
|
|
|
18479
18736
|
pitrRetentionDays: rest[10],
|
|
18480
18737
|
storageAutoscaling: rest[11],
|
|
18481
18738
|
storageAutoscalingThresholdPercent: rest[12],
|
|
18482
|
-
storageAutoscalingMaxGb: rest[13]
|
|
18483
|
-
api: rest[14]
|
|
18739
|
+
storageAutoscalingMaxGb: rest[13]
|
|
18484
18740
|
};
|
|
18485
18741
|
}
|
|
18486
18742
|
const databaseId = params.databaseId;
|
|
@@ -18498,7 +18754,6 @@ class Mongo {
|
|
|
18498
18754
|
const storageAutoscaling = params.storageAutoscaling;
|
|
18499
18755
|
const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
|
|
18500
18756
|
const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
|
|
18501
|
-
const api = params.api;
|
|
18502
18757
|
if (typeof databaseId === 'undefined') {
|
|
18503
18758
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
18504
18759
|
}
|
|
@@ -18552,9 +18807,6 @@ class Mongo {
|
|
|
18552
18807
|
if (typeof storageAutoscalingMaxGb !== 'undefined') {
|
|
18553
18808
|
payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
|
|
18554
18809
|
}
|
|
18555
|
-
if (typeof api !== 'undefined') {
|
|
18556
|
-
payload['api'] = api;
|
|
18557
|
-
}
|
|
18558
18810
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18559
18811
|
const apiHeaders = {
|
|
18560
18812
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -19660,8 +19912,7 @@ class Mysql {
|
|
|
19660
19912
|
pitrRetentionDays: rest[10],
|
|
19661
19913
|
storageAutoscaling: rest[11],
|
|
19662
19914
|
storageAutoscalingThresholdPercent: rest[12],
|
|
19663
|
-
storageAutoscalingMaxGb: rest[13]
|
|
19664
|
-
api: rest[14]
|
|
19915
|
+
storageAutoscalingMaxGb: rest[13]
|
|
19665
19916
|
};
|
|
19666
19917
|
}
|
|
19667
19918
|
const databaseId = params.databaseId;
|
|
@@ -19679,7 +19930,6 @@ class Mysql {
|
|
|
19679
19930
|
const storageAutoscaling = params.storageAutoscaling;
|
|
19680
19931
|
const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
|
|
19681
19932
|
const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
|
|
19682
|
-
const api = params.api;
|
|
19683
19933
|
if (typeof databaseId === 'undefined') {
|
|
19684
19934
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
19685
19935
|
}
|
|
@@ -19733,9 +19983,6 @@ class Mysql {
|
|
|
19733
19983
|
if (typeof storageAutoscalingMaxGb !== 'undefined') {
|
|
19734
19984
|
payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
|
|
19735
19985
|
}
|
|
19736
|
-
if (typeof api !== 'undefined') {
|
|
19737
|
-
payload['api'] = api;
|
|
19738
|
-
}
|
|
19739
19986
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19740
19987
|
const apiHeaders = {
|
|
19741
19988
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -23849,8 +24096,7 @@ class Postgresql {
|
|
|
23849
24096
|
pitrRetentionDays: rest[10],
|
|
23850
24097
|
storageAutoscaling: rest[11],
|
|
23851
24098
|
storageAutoscalingThresholdPercent: rest[12],
|
|
23852
|
-
storageAutoscalingMaxGb: rest[13]
|
|
23853
|
-
api: rest[14]
|
|
24099
|
+
storageAutoscalingMaxGb: rest[13]
|
|
23854
24100
|
};
|
|
23855
24101
|
}
|
|
23856
24102
|
const databaseId = params.databaseId;
|
|
@@ -23868,7 +24114,6 @@ class Postgresql {
|
|
|
23868
24114
|
const storageAutoscaling = params.storageAutoscaling;
|
|
23869
24115
|
const storageAutoscalingThresholdPercent = params.storageAutoscalingThresholdPercent;
|
|
23870
24116
|
const storageAutoscalingMaxGb = params.storageAutoscalingMaxGb;
|
|
23871
|
-
const api = params.api;
|
|
23872
24117
|
if (typeof databaseId === 'undefined') {
|
|
23873
24118
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
23874
24119
|
}
|
|
@@ -23922,9 +24167,6 @@ class Postgresql {
|
|
|
23922
24167
|
if (typeof storageAutoscalingMaxGb !== 'undefined') {
|
|
23923
24168
|
payload['storageAutoscalingMaxGb'] = storageAutoscalingMaxGb;
|
|
23924
24169
|
}
|
|
23925
|
-
if (typeof api !== 'undefined') {
|
|
23926
|
-
payload['api'] = api;
|
|
23927
|
-
}
|
|
23928
24170
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23929
24171
|
const apiHeaders = {
|
|
23930
24172
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -29539,6 +29781,46 @@ class Proxy {
|
|
|
29539
29781
|
constructor(client) {
|
|
29540
29782
|
this.client = client;
|
|
29541
29783
|
}
|
|
29784
|
+
createInvalidation(paramsOrFirst, ...rest) {
|
|
29785
|
+
let params;
|
|
29786
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
29787
|
+
params = (paramsOrFirst || {});
|
|
29788
|
+
}
|
|
29789
|
+
else {
|
|
29790
|
+
params = {
|
|
29791
|
+
domain: paramsOrFirst,
|
|
29792
|
+
type: rest[0],
|
|
29793
|
+
reference: rest[1]
|
|
29794
|
+
};
|
|
29795
|
+
}
|
|
29796
|
+
const domain = params.domain;
|
|
29797
|
+
const type = params.type;
|
|
29798
|
+
const reference = params.reference;
|
|
29799
|
+
if (typeof domain === 'undefined') {
|
|
29800
|
+
throw new AppwriteException('Missing required parameter: "domain"');
|
|
29801
|
+
}
|
|
29802
|
+
if (typeof type === 'undefined') {
|
|
29803
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
29804
|
+
}
|
|
29805
|
+
const apiPath = '/proxy/invalidations';
|
|
29806
|
+
const payload = {};
|
|
29807
|
+
if (typeof domain !== 'undefined') {
|
|
29808
|
+
payload['domain'] = domain;
|
|
29809
|
+
}
|
|
29810
|
+
if (typeof type !== 'undefined') {
|
|
29811
|
+
payload['type'] = type;
|
|
29812
|
+
}
|
|
29813
|
+
if (typeof reference !== 'undefined') {
|
|
29814
|
+
payload['reference'] = reference;
|
|
29815
|
+
}
|
|
29816
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
29817
|
+
const apiHeaders = {
|
|
29818
|
+
'X-Appwrite-Project': this.client.config.project,
|
|
29819
|
+
'content-type': 'application/json',
|
|
29820
|
+
'accept': 'application/json',
|
|
29821
|
+
};
|
|
29822
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
29823
|
+
}
|
|
29542
29824
|
listRules(paramsOrFirst, ...rest) {
|
|
29543
29825
|
let params;
|
|
29544
29826
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -31729,7 +32011,8 @@ class TablesDB {
|
|
|
31729
32011
|
name: rest[0],
|
|
31730
32012
|
enabled: rest[1],
|
|
31731
32013
|
specification: rest[2],
|
|
31732
|
-
replicas: rest[3]
|
|
32014
|
+
replicas: rest[3],
|
|
32015
|
+
syncMode: rest[4]
|
|
31733
32016
|
};
|
|
31734
32017
|
}
|
|
31735
32018
|
const databaseId = params.databaseId;
|
|
@@ -31737,6 +32020,7 @@ class TablesDB {
|
|
|
31737
32020
|
const enabled = params.enabled;
|
|
31738
32021
|
const specification = params.specification;
|
|
31739
32022
|
const replicas = params.replicas;
|
|
32023
|
+
const syncMode = params.syncMode;
|
|
31740
32024
|
if (typeof databaseId === 'undefined') {
|
|
31741
32025
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
31742
32026
|
}
|
|
@@ -31760,6 +32044,9 @@ class TablesDB {
|
|
|
31760
32044
|
if (typeof replicas !== 'undefined') {
|
|
31761
32045
|
payload['replicas'] = replicas;
|
|
31762
32046
|
}
|
|
32047
|
+
if (typeof syncMode !== 'undefined') {
|
|
32048
|
+
payload['syncMode'] = syncMode;
|
|
32049
|
+
}
|
|
31763
32050
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
31764
32051
|
const apiHeaders = {
|
|
31765
32052
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -31974,7 +32261,8 @@ class TablesDB {
|
|
|
31974
32261
|
name: rest[0],
|
|
31975
32262
|
enabled: rest[1],
|
|
31976
32263
|
specification: rest[2],
|
|
31977
|
-
replicas: rest[3]
|
|
32264
|
+
replicas: rest[3],
|
|
32265
|
+
syncMode: rest[4]
|
|
31978
32266
|
};
|
|
31979
32267
|
}
|
|
31980
32268
|
const databaseId = params.databaseId;
|
|
@@ -31982,6 +32270,7 @@ class TablesDB {
|
|
|
31982
32270
|
const enabled = params.enabled;
|
|
31983
32271
|
const specification = params.specification;
|
|
31984
32272
|
const replicas = params.replicas;
|
|
32273
|
+
const syncMode = params.syncMode;
|
|
31985
32274
|
if (typeof databaseId === 'undefined') {
|
|
31986
32275
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
31987
32276
|
}
|
|
@@ -31999,6 +32288,9 @@ class TablesDB {
|
|
|
31999
32288
|
if (typeof replicas !== 'undefined') {
|
|
32000
32289
|
payload['replicas'] = replicas;
|
|
32001
32290
|
}
|
|
32291
|
+
if (typeof syncMode !== 'undefined') {
|
|
32292
|
+
payload['syncMode'] = syncMode;
|
|
32293
|
+
}
|
|
32002
32294
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
32003
32295
|
const apiHeaders = {
|
|
32004
32296
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -38453,7 +38745,8 @@ class VectorsDB {
|
|
|
38453
38745
|
name: rest[0],
|
|
38454
38746
|
enabled: rest[1],
|
|
38455
38747
|
specification: rest[2],
|
|
38456
|
-
replicas: rest[3]
|
|
38748
|
+
replicas: rest[3],
|
|
38749
|
+
syncMode: rest[4]
|
|
38457
38750
|
};
|
|
38458
38751
|
}
|
|
38459
38752
|
const databaseId = params.databaseId;
|
|
@@ -38461,6 +38754,7 @@ class VectorsDB {
|
|
|
38461
38754
|
const enabled = params.enabled;
|
|
38462
38755
|
const specification = params.specification;
|
|
38463
38756
|
const replicas = params.replicas;
|
|
38757
|
+
const syncMode = params.syncMode;
|
|
38464
38758
|
if (typeof databaseId === 'undefined') {
|
|
38465
38759
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
38466
38760
|
}
|
|
@@ -38484,37 +38778,8 @@ class VectorsDB {
|
|
|
38484
38778
|
if (typeof replicas !== 'undefined') {
|
|
38485
38779
|
payload['replicas'] = replicas;
|
|
38486
38780
|
}
|
|
38487
|
-
|
|
38488
|
-
|
|
38489
|
-
'X-Appwrite-Project': this.client.config.project,
|
|
38490
|
-
'content-type': 'application/json',
|
|
38491
|
-
'accept': 'application/json',
|
|
38492
|
-
};
|
|
38493
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
38494
|
-
}
|
|
38495
|
-
createTextEmbeddings(paramsOrFirst, ...rest) {
|
|
38496
|
-
let params;
|
|
38497
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
38498
|
-
params = (paramsOrFirst || {});
|
|
38499
|
-
}
|
|
38500
|
-
else {
|
|
38501
|
-
params = {
|
|
38502
|
-
texts: paramsOrFirst,
|
|
38503
|
-
model: rest[0]
|
|
38504
|
-
};
|
|
38505
|
-
}
|
|
38506
|
-
const texts = params.texts;
|
|
38507
|
-
const model = params.model;
|
|
38508
|
-
if (typeof texts === 'undefined') {
|
|
38509
|
-
throw new AppwriteException('Missing required parameter: "texts"');
|
|
38510
|
-
}
|
|
38511
|
-
const apiPath = '/vectorsdb/embeddings/text';
|
|
38512
|
-
const payload = {};
|
|
38513
|
-
if (typeof texts !== 'undefined') {
|
|
38514
|
-
payload['texts'] = texts;
|
|
38515
|
-
}
|
|
38516
|
-
if (typeof model !== 'undefined') {
|
|
38517
|
-
payload['model'] = model;
|
|
38781
|
+
if (typeof syncMode !== 'undefined') {
|
|
38782
|
+
payload['syncMode'] = syncMode;
|
|
38518
38783
|
}
|
|
38519
38784
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
38520
38785
|
const apiHeaders = {
|
|
@@ -38730,7 +38995,8 @@ class VectorsDB {
|
|
|
38730
38995
|
name: rest[0],
|
|
38731
38996
|
enabled: rest[1],
|
|
38732
38997
|
specification: rest[2],
|
|
38733
|
-
replicas: rest[3]
|
|
38998
|
+
replicas: rest[3],
|
|
38999
|
+
syncMode: rest[4]
|
|
38734
39000
|
};
|
|
38735
39001
|
}
|
|
38736
39002
|
const databaseId = params.databaseId;
|
|
@@ -38738,6 +39004,7 @@ class VectorsDB {
|
|
|
38738
39004
|
const enabled = params.enabled;
|
|
38739
39005
|
const specification = params.specification;
|
|
38740
39006
|
const replicas = params.replicas;
|
|
39007
|
+
const syncMode = params.syncMode;
|
|
38741
39008
|
if (typeof databaseId === 'undefined') {
|
|
38742
39009
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
38743
39010
|
}
|
|
@@ -38758,6 +39025,9 @@ class VectorsDB {
|
|
|
38758
39025
|
if (typeof replicas !== 'undefined') {
|
|
38759
39026
|
payload['replicas'] = replicas;
|
|
38760
39027
|
}
|
|
39028
|
+
if (typeof syncMode !== 'undefined') {
|
|
39029
|
+
payload['syncMode'] = syncMode;
|
|
39030
|
+
}
|
|
38761
39031
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
38762
39032
|
const apiHeaders = {
|
|
38763
39033
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -39952,7 +40222,9 @@ class Waf {
|
|
|
39952
40222
|
challengeType: rest[4],
|
|
39953
40223
|
priority: rest[5],
|
|
39954
40224
|
enabled: rest[6],
|
|
39955
|
-
conditions: rest[7]
|
|
40225
|
+
conditions: rest[7],
|
|
40226
|
+
difficulty: rest[8],
|
|
40227
|
+
ttl: rest[9]
|
|
39956
40228
|
};
|
|
39957
40229
|
}
|
|
39958
40230
|
const ruleId = params.ruleId;
|
|
@@ -39964,6 +40236,8 @@ class Waf {
|
|
|
39964
40236
|
const priority = params.priority;
|
|
39965
40237
|
const enabled = params.enabled;
|
|
39966
40238
|
const conditions = params.conditions;
|
|
40239
|
+
const difficulty = params.difficulty;
|
|
40240
|
+
const ttl = params.ttl;
|
|
39967
40241
|
if (typeof ruleId === 'undefined') {
|
|
39968
40242
|
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
39969
40243
|
}
|
|
@@ -40002,6 +40276,12 @@ class Waf {
|
|
|
40002
40276
|
if (typeof conditions !== 'undefined') {
|
|
40003
40277
|
payload['conditions'] = conditions;
|
|
40004
40278
|
}
|
|
40279
|
+
if (typeof difficulty !== 'undefined') {
|
|
40280
|
+
payload['difficulty'] = difficulty;
|
|
40281
|
+
}
|
|
40282
|
+
if (typeof ttl !== 'undefined') {
|
|
40283
|
+
payload['ttl'] = ttl;
|
|
40284
|
+
}
|
|
40005
40285
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
40006
40286
|
const apiHeaders = {
|
|
40007
40287
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -40025,7 +40305,9 @@ class Waf {
|
|
|
40025
40305
|
challengeType: rest[4],
|
|
40026
40306
|
priority: rest[5],
|
|
40027
40307
|
enabled: rest[6],
|
|
40028
|
-
conditions: rest[7]
|
|
40308
|
+
conditions: rest[7],
|
|
40309
|
+
difficulty: rest[8],
|
|
40310
|
+
ttl: rest[9]
|
|
40029
40311
|
};
|
|
40030
40312
|
}
|
|
40031
40313
|
const ruleId = params.ruleId;
|
|
@@ -40037,6 +40319,8 @@ class Waf {
|
|
|
40037
40319
|
const priority = params.priority;
|
|
40038
40320
|
const enabled = params.enabled;
|
|
40039
40321
|
const conditions = params.conditions;
|
|
40322
|
+
const difficulty = params.difficulty;
|
|
40323
|
+
const ttl = params.ttl;
|
|
40040
40324
|
if (typeof ruleId === 'undefined') {
|
|
40041
40325
|
throw new AppwriteException('Missing required parameter: "ruleId"');
|
|
40042
40326
|
}
|
|
@@ -40066,6 +40350,12 @@ class Waf {
|
|
|
40066
40350
|
if (typeof conditions !== 'undefined') {
|
|
40067
40351
|
payload['conditions'] = conditions;
|
|
40068
40352
|
}
|
|
40353
|
+
if (typeof difficulty !== 'undefined') {
|
|
40354
|
+
payload['difficulty'] = difficulty;
|
|
40355
|
+
}
|
|
40356
|
+
if (typeof ttl !== 'undefined') {
|
|
40357
|
+
payload['ttl'] = ttl;
|
|
40358
|
+
}
|
|
40069
40359
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
40070
40360
|
const apiHeaders = {
|
|
40071
40361
|
'X-Appwrite-Project': this.client.config.project,
|
|
@@ -40215,9 +40505,10 @@ class Waf {
|
|
|
40215
40505
|
interval: rest[3],
|
|
40216
40506
|
resourceId: rest[4],
|
|
40217
40507
|
description: rest[5],
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
|
|
40508
|
+
key: rest[6],
|
|
40509
|
+
priority: rest[7],
|
|
40510
|
+
enabled: rest[8],
|
|
40511
|
+
conditions: rest[9]
|
|
40221
40512
|
};
|
|
40222
40513
|
}
|
|
40223
40514
|
const ruleId = params.ruleId;
|
|
@@ -40227,6 +40518,7 @@ class Waf {
|
|
|
40227
40518
|
const interval = params.interval;
|
|
40228
40519
|
const resourceId = params.resourceId;
|
|
40229
40520
|
const description = params.description;
|
|
40521
|
+
const key = params.key;
|
|
40230
40522
|
const priority = params.priority;
|
|
40231
40523
|
const enabled = params.enabled;
|
|
40232
40524
|
const conditions = params.conditions;
|
|
@@ -40268,6 +40560,9 @@ class Waf {
|
|
|
40268
40560
|
if (typeof interval !== 'undefined') {
|
|
40269
40561
|
payload['interval'] = interval;
|
|
40270
40562
|
}
|
|
40563
|
+
if (typeof key !== 'undefined') {
|
|
40564
|
+
payload['key'] = key;
|
|
40565
|
+
}
|
|
40271
40566
|
if (typeof priority !== 'undefined') {
|
|
40272
40567
|
payload['priority'] = priority;
|
|
40273
40568
|
}
|
|
@@ -40299,9 +40594,10 @@ class Waf {
|
|
|
40299
40594
|
description: rest[3],
|
|
40300
40595
|
limit: rest[4],
|
|
40301
40596
|
interval: rest[5],
|
|
40302
|
-
|
|
40303
|
-
|
|
40304
|
-
|
|
40597
|
+
key: rest[6],
|
|
40598
|
+
priority: rest[7],
|
|
40599
|
+
enabled: rest[8],
|
|
40600
|
+
conditions: rest[9]
|
|
40305
40601
|
};
|
|
40306
40602
|
}
|
|
40307
40603
|
const ruleId = params.ruleId;
|
|
@@ -40311,6 +40607,7 @@ class Waf {
|
|
|
40311
40607
|
const description = params.description;
|
|
40312
40608
|
const limit = params.limit;
|
|
40313
40609
|
const interval = params.interval;
|
|
40610
|
+
const key = params.key;
|
|
40314
40611
|
const priority = params.priority;
|
|
40315
40612
|
const enabled = params.enabled;
|
|
40316
40613
|
const conditions = params.conditions;
|
|
@@ -40337,6 +40634,9 @@ class Waf {
|
|
|
40337
40634
|
if (typeof interval !== 'undefined') {
|
|
40338
40635
|
payload['interval'] = interval;
|
|
40339
40636
|
}
|
|
40637
|
+
if (typeof key !== 'undefined') {
|
|
40638
|
+
payload['key'] = key;
|
|
40639
|
+
}
|
|
40340
40640
|
if (typeof priority !== 'undefined') {
|
|
40341
40641
|
payload['priority'] = priority;
|
|
40342
40642
|
}
|
|
@@ -42783,6 +43083,9 @@ var QuerySuggestionResource;
|
|
|
42783
43083
|
QuerySuggestionResource["ShInstallations"] = "sh_installations";
|
|
42784
43084
|
QuerySuggestionResource["MigrationDatabases"] = "migrationdatabases";
|
|
42785
43085
|
QuerySuggestionResource["MigrationProjects"] = "migrationprojects";
|
|
43086
|
+
QuerySuggestionResource["AffiliateLinks"] = "affiliatelinks";
|
|
43087
|
+
QuerySuggestionResource["AffiliateReferrals"] = "affiliatereferrals";
|
|
43088
|
+
QuerySuggestionResource["AffiliateRewards"] = "affiliaterewards";
|
|
42786
43089
|
QuerySuggestionResource["Apps"] = "apps";
|
|
42787
43090
|
QuerySuggestionResource["AppSecrets"] = "appsecrets";
|
|
42788
43091
|
QuerySuggestionResource["AppInstallations"] = "appinstallations";
|
|
@@ -43007,6 +43310,14 @@ var DomainSuggestionType;
|
|
|
43007
43310
|
DomainSuggestionType["Suggestion"] = "suggestion";
|
|
43008
43311
|
})(DomainSuggestionType || (DomainSuggestionType = {}));
|
|
43009
43312
|
|
|
43313
|
+
var EmbeddingModel;
|
|
43314
|
+
(function (EmbeddingModel) {
|
|
43315
|
+
EmbeddingModel["Nomicembedtext"] = "nomic-embed-text";
|
|
43316
|
+
EmbeddingModel["Embeddinggemma"] = "embedding-gemma";
|
|
43317
|
+
EmbeddingModel["Allminilm"] = "all-minilm";
|
|
43318
|
+
EmbeddingModel["Bgesmall"] = "bge-small";
|
|
43319
|
+
})(EmbeddingModel || (EmbeddingModel = {}));
|
|
43320
|
+
|
|
43010
43321
|
var Runtime;
|
|
43011
43322
|
(function (Runtime) {
|
|
43012
43323
|
Runtime["Node145"] = "node-14.5";
|
|
@@ -43019,6 +43330,7 @@ var Runtime;
|
|
|
43019
43330
|
Runtime["Node23"] = "node-23";
|
|
43020
43331
|
Runtime["Node24"] = "node-24";
|
|
43021
43332
|
Runtime["Node25"] = "node-25";
|
|
43333
|
+
Runtime["Node26"] = "node-26";
|
|
43022
43334
|
Runtime["Php80"] = "php-8.0";
|
|
43023
43335
|
Runtime["Php81"] = "php-8.1";
|
|
43024
43336
|
Runtime["Php82"] = "php-8.2";
|
|
@@ -43202,6 +43514,7 @@ var ProjectKeyScopes;
|
|
|
43202
43514
|
ProjectKeyScopes["WafRulesRead"] = "wafRules.read";
|
|
43203
43515
|
ProjectKeyScopes["WafRulesWrite"] = "wafRules.write";
|
|
43204
43516
|
ProjectKeyScopes["EventsRead"] = "events.read";
|
|
43517
|
+
ProjectKeyScopes["ProxyInvalidationsWrite"] = "proxy.invalidations.write";
|
|
43205
43518
|
ProjectKeyScopes["AppsRead"] = "apps.read";
|
|
43206
43519
|
ProjectKeyScopes["AppsWrite"] = "apps.write";
|
|
43207
43520
|
ProjectKeyScopes["Oauth2Read"] = "oauth2.read";
|
|
@@ -43587,6 +43900,13 @@ var Status;
|
|
|
43587
43900
|
Status["Active"] = "active";
|
|
43588
43901
|
})(Status || (Status = {}));
|
|
43589
43902
|
|
|
43903
|
+
var InvalidationType;
|
|
43904
|
+
(function (InvalidationType) {
|
|
43905
|
+
InvalidationType["Tag"] = "tag";
|
|
43906
|
+
InvalidationType["Path"] = "path";
|
|
43907
|
+
InvalidationType["All"] = "all";
|
|
43908
|
+
})(InvalidationType || (InvalidationType = {}));
|
|
43909
|
+
|
|
43590
43910
|
var StatusCode;
|
|
43591
43911
|
(function (StatusCode) {
|
|
43592
43912
|
StatusCode["MovedPermanently"] = "301";
|
|
@@ -43632,6 +43952,7 @@ var BuildRuntime;
|
|
|
43632
43952
|
BuildRuntime["Node23"] = "node-23";
|
|
43633
43953
|
BuildRuntime["Node24"] = "node-24";
|
|
43634
43954
|
BuildRuntime["Node25"] = "node-25";
|
|
43955
|
+
BuildRuntime["Node26"] = "node-26";
|
|
43635
43956
|
BuildRuntime["Php80"] = "php-8.0";
|
|
43636
43957
|
BuildRuntime["Php81"] = "php-8.1";
|
|
43637
43958
|
BuildRuntime["Php82"] = "php-8.2";
|
|
@@ -43762,6 +44083,59 @@ var TablesDBIndexType;
|
|
|
43762
44083
|
TablesDBIndexType["Spatial"] = "spatial";
|
|
43763
44084
|
})(TablesDBIndexType || (TablesDBIndexType = {}));
|
|
43764
44085
|
|
|
44086
|
+
var UsageInterval;
|
|
44087
|
+
(function (UsageInterval) {
|
|
44088
|
+
UsageInterval["OneMinute"] = "1m";
|
|
44089
|
+
UsageInterval["FifteenMinutes"] = "15m";
|
|
44090
|
+
UsageInterval["ThirtyMinutes"] = "30m";
|
|
44091
|
+
UsageInterval["OneHour"] = "1h";
|
|
44092
|
+
UsageInterval["OneDay"] = "1d";
|
|
44093
|
+
})(UsageInterval || (UsageInterval = {}));
|
|
44094
|
+
|
|
44095
|
+
var UsageEventDimension;
|
|
44096
|
+
(function (UsageEventDimension) {
|
|
44097
|
+
UsageEventDimension["Path"] = "path";
|
|
44098
|
+
UsageEventDimension["Method"] = "method";
|
|
44099
|
+
UsageEventDimension["Status"] = "status";
|
|
44100
|
+
UsageEventDimension["Service"] = "service";
|
|
44101
|
+
UsageEventDimension["ResourceType"] = "resourceType";
|
|
44102
|
+
UsageEventDimension["Country"] = "country";
|
|
44103
|
+
UsageEventDimension["ContinentCode"] = "continentCode";
|
|
44104
|
+
UsageEventDimension["City"] = "city";
|
|
44105
|
+
UsageEventDimension["Region"] = "region";
|
|
44106
|
+
UsageEventDimension["Hostname"] = "hostname";
|
|
44107
|
+
UsageEventDimension["Ip"] = "ip";
|
|
44108
|
+
UsageEventDimension["OsName"] = "osName";
|
|
44109
|
+
UsageEventDimension["ClientType"] = "clientType";
|
|
44110
|
+
UsageEventDimension["ClientName"] = "clientName";
|
|
44111
|
+
UsageEventDimension["DeviceName"] = "deviceName";
|
|
44112
|
+
UsageEventDimension["Sdk"] = "sdk";
|
|
44113
|
+
UsageEventDimension["SdkVersion"] = "sdkVersion";
|
|
44114
|
+
UsageEventDimension["TeamId"] = "teamId";
|
|
44115
|
+
UsageEventDimension["ResourceId"] = "resourceId";
|
|
44116
|
+
})(UsageEventDimension || (UsageEventDimension = {}));
|
|
44117
|
+
|
|
44118
|
+
var UsageOrderBy;
|
|
44119
|
+
(function (UsageOrderBy) {
|
|
44120
|
+
UsageOrderBy["Time"] = "time";
|
|
44121
|
+
UsageOrderBy["Value"] = "value";
|
|
44122
|
+
})(UsageOrderBy || (UsageOrderBy = {}));
|
|
44123
|
+
|
|
44124
|
+
var UsageOrderDirection;
|
|
44125
|
+
(function (UsageOrderDirection) {
|
|
44126
|
+
UsageOrderDirection["Asc"] = "asc";
|
|
44127
|
+
UsageOrderDirection["Desc"] = "desc";
|
|
44128
|
+
})(UsageOrderDirection || (UsageOrderDirection = {}));
|
|
44129
|
+
|
|
44130
|
+
var UsageGaugeDimension;
|
|
44131
|
+
(function (UsageGaugeDimension) {
|
|
44132
|
+
UsageGaugeDimension["ResourceId"] = "resourceId";
|
|
44133
|
+
UsageGaugeDimension["TeamId"] = "teamId";
|
|
44134
|
+
UsageGaugeDimension["Service"] = "service";
|
|
44135
|
+
UsageGaugeDimension["ResourceType"] = "resourceType";
|
|
44136
|
+
UsageGaugeDimension["Ordinal"] = "ordinal";
|
|
44137
|
+
})(UsageGaugeDimension || (UsageGaugeDimension = {}));
|
|
44138
|
+
|
|
43765
44139
|
var PasswordHash;
|
|
43766
44140
|
(function (PasswordHash) {
|
|
43767
44141
|
PasswordHash["Sha1"] = "sha1";
|
|
@@ -43790,14 +44164,6 @@ var VCSDetectionType;
|
|
|
43790
44164
|
VCSDetectionType["Framework"] = "framework";
|
|
43791
44165
|
})(VCSDetectionType || (VCSDetectionType = {}));
|
|
43792
44166
|
|
|
43793
|
-
var EmbeddingModel;
|
|
43794
|
-
(function (EmbeddingModel) {
|
|
43795
|
-
EmbeddingModel["Nomicembedtext"] = "nomic-embed-text";
|
|
43796
|
-
EmbeddingModel["Embeddinggemma"] = "embedding-gemma";
|
|
43797
|
-
EmbeddingModel["Allminilm"] = "all-minilm";
|
|
43798
|
-
EmbeddingModel["Bgesmall"] = "bge-small";
|
|
43799
|
-
})(EmbeddingModel || (EmbeddingModel = {}));
|
|
43800
|
-
|
|
43801
44167
|
var VectorsDBIndexType;
|
|
43802
44168
|
(function (VectorsDBIndexType) {
|
|
43803
44169
|
VectorsDBIndexType["HnswEuclidean"] = "hnsw_euclidean";
|
|
@@ -43982,5 +44348,5 @@ var WafRuleAction;
|
|
|
43982
44348
|
WafRuleAction["Redirect"] = "redirect";
|
|
43983
44349
|
})(WafRuleAction || (WafRuleAction = {}));
|
|
43984
44350
|
|
|
43985
|
-
export { Account, AccountKeyScopes, Activities, Adapter, Addon, Advisor, Apps, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, BlockMode, BlockResourceType, Browser, BrowserPermission, BrowserTheme, BuildRuntime, CacheDatabase, CacheTarget, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseStatus, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainRegistrationType, DomainSuggestionType, DomainTransferStatusEnum, Domains, EmbeddingModel, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FirebaseMigrationResource, Flag, Framework, FunctionTemplateUseCase, Functions, Graphql, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Mongo, Mysql, NHostMigrationResource, Notifications, OAuth2GooglePrompt, OAuth2OidcPrompt, OAuthProvider, Oauth2, OnDuplicate, Operator, OrderBy, Organization, OrganizationKeyScopes, Organizations, PasswordHash, Permission, Platform, PlatformType, Postgresql, Presences, Project, ProjectAuthMethodId, ProjectEmailTemplateId, ProjectEmailTemplateLocale, ProjectKeyScopes, ProjectOAuth2GooglePrompt, ProjectOAuth2OidcPrompt, ProjectOAuthProviderId, ProjectPolicyId, ProjectProtocolId, ProjectSMTPSecure, ProjectServiceId, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RelationMutate, RelationshipType, Role, Runtime, ScheduleResourceType, SiteTemplateUseCase, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Timezone, Tokens, Usage, UsageRange, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Waf, WafRuleAction, Webhooks };
|
|
44351
|
+
export { Account, AccountKeyScopes, Activities, Adapter, Addon, Advisor, Affiliates, Apps, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, BlockMode, BlockResourceType, Browser, BrowserPermission, BrowserTheme, BuildRuntime, CacheDatabase, CacheTarget, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseStatus, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainRegistrationType, DomainSuggestionType, DomainTransferStatusEnum, Domains, EmbeddingModel, Embeddings, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FirebaseMigrationResource, Flag, Framework, FunctionTemplateUseCase, Functions, Graphql, ID, ImageFormat, ImageGravity, IndexStatus, InvalidationType, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Mongo, Mysql, NHostMigrationResource, Notifications, OAuth2GooglePrompt, OAuth2OidcPrompt, OAuthProvider, Oauth2, OnDuplicate, Operator, OrderBy, Organization, OrganizationKeyScopes, Organizations, PasswordHash, Permission, Platform, PlatformType, Postgresql, Presences, Project, ProjectAuthMethodId, ProjectEmailTemplateId, ProjectEmailTemplateLocale, ProjectKeyScopes, ProjectOAuth2GooglePrompt, ProjectOAuth2OidcPrompt, ProjectOAuthProviderId, ProjectPolicyId, ProjectProtocolId, ProjectSMTPSecure, ProjectServiceId, ProjectUsageRange, Projects, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RelationMutate, RelationshipType, Role, Runtime, ScheduleResourceType, SiteTemplateUseCase, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Timezone, Tokens, Usage, UsageEventDimension, UsageGaugeDimension, UsageInterval, UsageOrderBy, UsageOrderDirection, UsageRange, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Waf, WafRuleAction, Webhooks };
|
|
43986
44352
|
//# sourceMappingURL=sdk.js.map
|