@appwrite.io/console 11.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/sdk.js +2337 -369
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2337 -370
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2337 -369
- package/package.json +1 -1
- package/types/client.d.ts +23 -2
- package/types/enums/appwrite-migration-resource.d.ts +2 -1
- package/types/enums/build-runtime.d.ts +1 -0
- package/types/enums/{auth-method.d.ts → method-id.d.ts} +1 -1
- package/types/enums/o-auth-provider.d.ts +3 -0
- package/types/enums/policy-id.d.ts +11 -0
- package/types/enums/query-suggestion-resource.d.ts +74 -0
- package/types/enums/resource-type.d.ts +9 -0
- package/types/enums/runtime.d.ts +1 -0
- package/types/enums/runtimes.d.ts +1 -0
- package/types/enums/scopes.d.ts +46 -35
- package/types/index.d.ts +5 -2
- package/types/models.d.ts +1560 -150
- package/types/services/account.d.ts +4 -4
- package/types/services/console.d.ts +45 -0
- package/types/services/domains.d.ts +8 -8
- package/types/services/manager.d.ts +110 -0
- package/types/services/organizations.d.ts +30 -0
- package/types/services/project.d.ts +1459 -110
- package/types/services/projects.d.ts +0 -125
package/dist/iife/sdk.js
CHANGED
|
@@ -4404,12 +4404,13 @@
|
|
|
4404
4404
|
locale: '',
|
|
4405
4405
|
mode: '',
|
|
4406
4406
|
cookie: '',
|
|
4407
|
+
session: '',
|
|
4408
|
+
devkey: '',
|
|
4407
4409
|
impersonateuserid: '',
|
|
4408
4410
|
impersonateuseremail: '',
|
|
4409
4411
|
impersonateuserphone: '',
|
|
4410
4412
|
platform: '',
|
|
4411
4413
|
selfSigned: false,
|
|
4412
|
-
session: undefined,
|
|
4413
4414
|
};
|
|
4414
4415
|
/**
|
|
4415
4416
|
* Custom headers for API requests.
|
|
@@ -4418,8 +4419,8 @@
|
|
|
4418
4419
|
'x-sdk-name': 'Console',
|
|
4419
4420
|
'x-sdk-platform': 'console',
|
|
4420
4421
|
'x-sdk-language': 'web',
|
|
4421
|
-
'x-sdk-version': '
|
|
4422
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
4422
|
+
'x-sdk-version': '12.1.0',
|
|
4423
|
+
'X-Appwrite-Response-Format': '1.9.3',
|
|
4423
4424
|
};
|
|
4424
4425
|
this.realtime = {
|
|
4425
4426
|
socket: undefined,
|
|
@@ -4728,7 +4729,7 @@
|
|
|
4728
4729
|
/**
|
|
4729
4730
|
* Set Cookie
|
|
4730
4731
|
*
|
|
4731
|
-
* The user cookie to authenticate with
|
|
4732
|
+
* The user cookie to authenticate with. Used by SDKs that forward an incoming Cookie header in server-side runtimes.
|
|
4732
4733
|
*
|
|
4733
4734
|
* @param value string
|
|
4734
4735
|
*
|
|
@@ -4739,6 +4740,34 @@
|
|
|
4739
4740
|
this.config.cookie = value;
|
|
4740
4741
|
return this;
|
|
4741
4742
|
}
|
|
4743
|
+
/**
|
|
4744
|
+
* Set Session
|
|
4745
|
+
*
|
|
4746
|
+
* The user session to authenticate with
|
|
4747
|
+
*
|
|
4748
|
+
* @param value string
|
|
4749
|
+
*
|
|
4750
|
+
* @return {this}
|
|
4751
|
+
*/
|
|
4752
|
+
setSession(value) {
|
|
4753
|
+
this.headers['X-Appwrite-Session'] = value;
|
|
4754
|
+
this.config.session = value;
|
|
4755
|
+
return this;
|
|
4756
|
+
}
|
|
4757
|
+
/**
|
|
4758
|
+
* Set DevKey
|
|
4759
|
+
*
|
|
4760
|
+
* Your secret dev API key
|
|
4761
|
+
*
|
|
4762
|
+
* @param value string
|
|
4763
|
+
*
|
|
4764
|
+
* @return {this}
|
|
4765
|
+
*/
|
|
4766
|
+
setDevKey(value) {
|
|
4767
|
+
this.headers['X-Appwrite-Dev-Key'] = value;
|
|
4768
|
+
this.config.devkey = value;
|
|
4769
|
+
return this;
|
|
4770
|
+
}
|
|
4742
4771
|
/**
|
|
4743
4772
|
* Set ImpersonateUserId
|
|
4744
4773
|
*
|
|
@@ -7982,6 +8011,19 @@
|
|
|
7982
8011
|
const apiHeaders = {};
|
|
7983
8012
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
7984
8013
|
}
|
|
8014
|
+
/**
|
|
8015
|
+
* List all OAuth2 providers supported by the Appwrite server, along with the parameters required to configure each provider. The response excludes mock providers but includes sandbox providers.
|
|
8016
|
+
*
|
|
8017
|
+
* @throws {AppwriteException}
|
|
8018
|
+
* @returns {Promise<Models.ConsoleOAuth2ProviderList>}
|
|
8019
|
+
*/
|
|
8020
|
+
listOAuth2Providers() {
|
|
8021
|
+
const apiPath = '/console/oauth2-providers';
|
|
8022
|
+
const payload = {};
|
|
8023
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8024
|
+
const apiHeaders = {};
|
|
8025
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
8026
|
+
}
|
|
7985
8027
|
getPlans(paramsOrFirst) {
|
|
7986
8028
|
let params;
|
|
7987
8029
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('platform' in paramsOrFirst))) {
|
|
@@ -8108,6 +8150,19 @@
|
|
|
8108
8150
|
const apiHeaders = {};
|
|
8109
8151
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
8110
8152
|
}
|
|
8153
|
+
/**
|
|
8154
|
+
* List all scopes available for project API keys, along with a description for each scope.
|
|
8155
|
+
*
|
|
8156
|
+
* @throws {AppwriteException}
|
|
8157
|
+
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
8158
|
+
*/
|
|
8159
|
+
listProjectScopes() {
|
|
8160
|
+
const apiPath = '/console/scopes/project';
|
|
8161
|
+
const payload = {};
|
|
8162
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8163
|
+
const apiHeaders = {};
|
|
8164
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
8165
|
+
}
|
|
8111
8166
|
createSource(paramsOrFirst, ...rest) {
|
|
8112
8167
|
let params;
|
|
8113
8168
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -8237,6 +8292,47 @@
|
|
|
8237
8292
|
const apiHeaders = {};
|
|
8238
8293
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
8239
8294
|
}
|
|
8295
|
+
suggestQueries(paramsOrFirst, ...rest) {
|
|
8296
|
+
let params;
|
|
8297
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('resource' in paramsOrFirst || 'input' in paramsOrFirst || 'databaseId' in paramsOrFirst || 'tableId' in paramsOrFirst))) {
|
|
8298
|
+
params = (paramsOrFirst || {});
|
|
8299
|
+
}
|
|
8300
|
+
else {
|
|
8301
|
+
params = {
|
|
8302
|
+
resource: paramsOrFirst,
|
|
8303
|
+
input: rest[0],
|
|
8304
|
+
databaseId: rest[1],
|
|
8305
|
+
tableId: rest[2]
|
|
8306
|
+
};
|
|
8307
|
+
}
|
|
8308
|
+
const resource = params.resource;
|
|
8309
|
+
const input = params.input;
|
|
8310
|
+
const databaseId = params.databaseId;
|
|
8311
|
+
const tableId = params.tableId;
|
|
8312
|
+
if (typeof resource === 'undefined') {
|
|
8313
|
+
throw new AppwriteException('Missing required parameter: "resource"');
|
|
8314
|
+
}
|
|
8315
|
+
if (typeof input === 'undefined') {
|
|
8316
|
+
throw new AppwriteException('Missing required parameter: "input"');
|
|
8317
|
+
}
|
|
8318
|
+
const apiPath = '/console/suggestions/queries';
|
|
8319
|
+
const payload = {};
|
|
8320
|
+
if (typeof resource !== 'undefined') {
|
|
8321
|
+
payload['resource'] = resource;
|
|
8322
|
+
}
|
|
8323
|
+
if (typeof input !== 'undefined') {
|
|
8324
|
+
payload['input'] = input;
|
|
8325
|
+
}
|
|
8326
|
+
if (typeof databaseId !== 'undefined') {
|
|
8327
|
+
payload['databaseId'] = databaseId;
|
|
8328
|
+
}
|
|
8329
|
+
if (typeof tableId !== 'undefined') {
|
|
8330
|
+
payload['tableId'] = tableId;
|
|
8331
|
+
}
|
|
8332
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8333
|
+
const apiHeaders = {};
|
|
8334
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
8335
|
+
}
|
|
8240
8336
|
/**
|
|
8241
8337
|
* Get all Environment Variables that are relevant for the console.
|
|
8242
8338
|
*
|
|
@@ -13011,19 +13107,19 @@
|
|
|
13011
13107
|
}
|
|
13012
13108
|
else {
|
|
13013
13109
|
params = {
|
|
13014
|
-
|
|
13110
|
+
invoiceId: paramsOrFirst,
|
|
13015
13111
|
organizationId: rest[0]
|
|
13016
13112
|
};
|
|
13017
13113
|
}
|
|
13018
|
-
const
|
|
13114
|
+
const invoiceId = params.invoiceId;
|
|
13019
13115
|
const organizationId = params.organizationId;
|
|
13020
|
-
if (typeof
|
|
13021
|
-
throw new AppwriteException('Missing required parameter: "
|
|
13116
|
+
if (typeof invoiceId === 'undefined') {
|
|
13117
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
13022
13118
|
}
|
|
13023
13119
|
if (typeof organizationId === 'undefined') {
|
|
13024
13120
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
13025
13121
|
}
|
|
13026
|
-
const apiPath = '/domains/purchases/{
|
|
13122
|
+
const apiPath = '/domains/purchases/{invoiceId}'.replace('{invoiceId}', invoiceId);
|
|
13027
13123
|
const payload = {};
|
|
13028
13124
|
if (typeof organizationId !== 'undefined') {
|
|
13029
13125
|
payload['organizationId'] = organizationId;
|
|
@@ -13143,19 +13239,19 @@
|
|
|
13143
13239
|
}
|
|
13144
13240
|
else {
|
|
13145
13241
|
params = {
|
|
13146
|
-
|
|
13242
|
+
invoiceId: paramsOrFirst,
|
|
13147
13243
|
organizationId: rest[0]
|
|
13148
13244
|
};
|
|
13149
13245
|
}
|
|
13150
|
-
const
|
|
13246
|
+
const invoiceId = params.invoiceId;
|
|
13151
13247
|
const organizationId = params.organizationId;
|
|
13152
|
-
if (typeof
|
|
13153
|
-
throw new AppwriteException('Missing required parameter: "
|
|
13248
|
+
if (typeof invoiceId === 'undefined') {
|
|
13249
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
13154
13250
|
}
|
|
13155
13251
|
if (typeof organizationId === 'undefined') {
|
|
13156
13252
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
13157
13253
|
}
|
|
13158
|
-
const apiPath = '/domains/transfers/in/{
|
|
13254
|
+
const apiPath = '/domains/transfers/in/{invoiceId}'.replace('{invoiceId}', invoiceId);
|
|
13159
13255
|
const payload = {};
|
|
13160
13256
|
if (typeof organizationId !== 'undefined') {
|
|
13161
13257
|
payload['organizationId'] = organizationId;
|
|
@@ -16692,6 +16788,158 @@
|
|
|
16692
16788
|
}
|
|
16693
16789
|
}
|
|
16694
16790
|
|
|
16791
|
+
class Manager {
|
|
16792
|
+
constructor(client) {
|
|
16793
|
+
this.client = client;
|
|
16794
|
+
}
|
|
16795
|
+
createBlock(paramsOrFirst, ...rest) {
|
|
16796
|
+
let params;
|
|
16797
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16798
|
+
params = (paramsOrFirst || {});
|
|
16799
|
+
}
|
|
16800
|
+
else {
|
|
16801
|
+
params = {
|
|
16802
|
+
projectId: paramsOrFirst,
|
|
16803
|
+
resourceType: rest[0],
|
|
16804
|
+
resourceId: rest[1],
|
|
16805
|
+
reason: rest[2],
|
|
16806
|
+
expiredAt: rest[3]
|
|
16807
|
+
};
|
|
16808
|
+
}
|
|
16809
|
+
const projectId = params.projectId;
|
|
16810
|
+
const resourceType = params.resourceType;
|
|
16811
|
+
const resourceId = params.resourceId;
|
|
16812
|
+
const reason = params.reason;
|
|
16813
|
+
const expiredAt = params.expiredAt;
|
|
16814
|
+
if (typeof projectId === 'undefined') {
|
|
16815
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
16816
|
+
}
|
|
16817
|
+
if (typeof resourceType === 'undefined') {
|
|
16818
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
16819
|
+
}
|
|
16820
|
+
const apiPath = '/manager/blocks';
|
|
16821
|
+
const payload = {};
|
|
16822
|
+
if (typeof projectId !== 'undefined') {
|
|
16823
|
+
payload['projectId'] = projectId;
|
|
16824
|
+
}
|
|
16825
|
+
if (typeof resourceType !== 'undefined') {
|
|
16826
|
+
payload['resourceType'] = resourceType;
|
|
16827
|
+
}
|
|
16828
|
+
if (typeof resourceId !== 'undefined') {
|
|
16829
|
+
payload['resourceId'] = resourceId;
|
|
16830
|
+
}
|
|
16831
|
+
if (typeof reason !== 'undefined') {
|
|
16832
|
+
payload['reason'] = reason;
|
|
16833
|
+
}
|
|
16834
|
+
if (typeof expiredAt !== 'undefined') {
|
|
16835
|
+
payload['expiredAt'] = expiredAt;
|
|
16836
|
+
}
|
|
16837
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16838
|
+
const apiHeaders = {
|
|
16839
|
+
'content-type': 'application/json',
|
|
16840
|
+
};
|
|
16841
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
16842
|
+
}
|
|
16843
|
+
deleteBlock(paramsOrFirst, ...rest) {
|
|
16844
|
+
let params;
|
|
16845
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16846
|
+
params = (paramsOrFirst || {});
|
|
16847
|
+
}
|
|
16848
|
+
else {
|
|
16849
|
+
params = {
|
|
16850
|
+
projectId: paramsOrFirst,
|
|
16851
|
+
resourceType: rest[0],
|
|
16852
|
+
resourceId: rest[1]
|
|
16853
|
+
};
|
|
16854
|
+
}
|
|
16855
|
+
const projectId = params.projectId;
|
|
16856
|
+
const resourceType = params.resourceType;
|
|
16857
|
+
const resourceId = params.resourceId;
|
|
16858
|
+
if (typeof projectId === 'undefined') {
|
|
16859
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
16860
|
+
}
|
|
16861
|
+
if (typeof resourceType === 'undefined') {
|
|
16862
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
16863
|
+
}
|
|
16864
|
+
const apiPath = '/manager/blocks';
|
|
16865
|
+
const payload = {};
|
|
16866
|
+
if (typeof projectId !== 'undefined') {
|
|
16867
|
+
payload['projectId'] = projectId;
|
|
16868
|
+
}
|
|
16869
|
+
if (typeof resourceType !== 'undefined') {
|
|
16870
|
+
payload['resourceType'] = resourceType;
|
|
16871
|
+
}
|
|
16872
|
+
if (typeof resourceId !== 'undefined') {
|
|
16873
|
+
payload['resourceId'] = resourceId;
|
|
16874
|
+
}
|
|
16875
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16876
|
+
const apiHeaders = {
|
|
16877
|
+
'content-type': 'application/json',
|
|
16878
|
+
};
|
|
16879
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
16880
|
+
}
|
|
16881
|
+
listBlocks(paramsOrFirst) {
|
|
16882
|
+
let params;
|
|
16883
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16884
|
+
params = (paramsOrFirst || {});
|
|
16885
|
+
}
|
|
16886
|
+
else {
|
|
16887
|
+
params = {
|
|
16888
|
+
projectId: paramsOrFirst
|
|
16889
|
+
};
|
|
16890
|
+
}
|
|
16891
|
+
const projectId = params.projectId;
|
|
16892
|
+
if (typeof projectId === 'undefined') {
|
|
16893
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
16894
|
+
}
|
|
16895
|
+
const apiPath = '/manager/blocks/{projectId}'.replace('{projectId}', projectId);
|
|
16896
|
+
const payload = {};
|
|
16897
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16898
|
+
const apiHeaders = {};
|
|
16899
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
16900
|
+
}
|
|
16901
|
+
updateUserStatus(paramsOrFirst, ...rest) {
|
|
16902
|
+
let params;
|
|
16903
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16904
|
+
params = (paramsOrFirst || {});
|
|
16905
|
+
}
|
|
16906
|
+
else {
|
|
16907
|
+
params = {
|
|
16908
|
+
status: paramsOrFirst,
|
|
16909
|
+
userId: rest[0],
|
|
16910
|
+
email: rest[1],
|
|
16911
|
+
reason: rest[2]
|
|
16912
|
+
};
|
|
16913
|
+
}
|
|
16914
|
+
const status = params.status;
|
|
16915
|
+
const userId = params.userId;
|
|
16916
|
+
const email = params.email;
|
|
16917
|
+
const reason = params.reason;
|
|
16918
|
+
if (typeof status === 'undefined') {
|
|
16919
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
16920
|
+
}
|
|
16921
|
+
const apiPath = '/manager/users/status';
|
|
16922
|
+
const payload = {};
|
|
16923
|
+
if (typeof userId !== 'undefined') {
|
|
16924
|
+
payload['userId'] = userId;
|
|
16925
|
+
}
|
|
16926
|
+
if (typeof email !== 'undefined') {
|
|
16927
|
+
payload['email'] = email;
|
|
16928
|
+
}
|
|
16929
|
+
if (typeof status !== 'undefined') {
|
|
16930
|
+
payload['status'] = status;
|
|
16931
|
+
}
|
|
16932
|
+
if (typeof reason !== 'undefined') {
|
|
16933
|
+
payload['reason'] = reason;
|
|
16934
|
+
}
|
|
16935
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16936
|
+
const apiHeaders = {
|
|
16937
|
+
'content-type': 'application/json',
|
|
16938
|
+
};
|
|
16939
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
16940
|
+
}
|
|
16941
|
+
}
|
|
16942
|
+
|
|
16695
16943
|
class Messaging {
|
|
16696
16944
|
constructor(client) {
|
|
16697
16945
|
this.client = client;
|
|
@@ -21572,6 +21820,46 @@
|
|
|
21572
21820
|
};
|
|
21573
21821
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21574
21822
|
}
|
|
21823
|
+
createPlanEstimation(paramsOrFirst, ...rest) {
|
|
21824
|
+
let params;
|
|
21825
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21826
|
+
params = (paramsOrFirst || {});
|
|
21827
|
+
}
|
|
21828
|
+
else {
|
|
21829
|
+
params = {
|
|
21830
|
+
organizationId: paramsOrFirst,
|
|
21831
|
+
billingPlan: rest[0],
|
|
21832
|
+
invites: rest[1],
|
|
21833
|
+
couponId: rest[2]
|
|
21834
|
+
};
|
|
21835
|
+
}
|
|
21836
|
+
const organizationId = params.organizationId;
|
|
21837
|
+
const billingPlan = params.billingPlan;
|
|
21838
|
+
const invites = params.invites;
|
|
21839
|
+
const couponId = params.couponId;
|
|
21840
|
+
if (typeof organizationId === 'undefined') {
|
|
21841
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
21842
|
+
}
|
|
21843
|
+
if (typeof billingPlan === 'undefined') {
|
|
21844
|
+
throw new AppwriteException('Missing required parameter: "billingPlan"');
|
|
21845
|
+
}
|
|
21846
|
+
const apiPath = '/organizations/{organizationId}/plan/estimations'.replace('{organizationId}', organizationId);
|
|
21847
|
+
const payload = {};
|
|
21848
|
+
if (typeof billingPlan !== 'undefined') {
|
|
21849
|
+
payload['billingPlan'] = billingPlan;
|
|
21850
|
+
}
|
|
21851
|
+
if (typeof invites !== 'undefined') {
|
|
21852
|
+
payload['invites'] = invites;
|
|
21853
|
+
}
|
|
21854
|
+
if (typeof couponId !== 'undefined') {
|
|
21855
|
+
payload['couponId'] = couponId;
|
|
21856
|
+
}
|
|
21857
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21858
|
+
const apiHeaders = {
|
|
21859
|
+
'content-type': 'application/json',
|
|
21860
|
+
};
|
|
21861
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21862
|
+
}
|
|
21575
21863
|
listRegions(paramsOrFirst) {
|
|
21576
21864
|
let params;
|
|
21577
21865
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -21710,22 +21998,1637 @@
|
|
|
21710
21998
|
constructor(client) {
|
|
21711
21999
|
this.client = client;
|
|
21712
22000
|
}
|
|
21713
|
-
|
|
21714
|
-
|
|
21715
|
-
|
|
21716
|
-
|
|
21717
|
-
|
|
21718
|
-
|
|
21719
|
-
|
|
21720
|
-
|
|
21721
|
-
|
|
21722
|
-
|
|
22001
|
+
/**
|
|
22002
|
+
* Delete a project.
|
|
22003
|
+
*
|
|
22004
|
+
* @throws {AppwriteException}
|
|
22005
|
+
* @returns {Promise<{}>}
|
|
22006
|
+
*/
|
|
22007
|
+
delete() {
|
|
22008
|
+
const apiPath = '/project';
|
|
22009
|
+
const payload = {};
|
|
22010
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22011
|
+
const apiHeaders = {
|
|
22012
|
+
'content-type': 'application/json',
|
|
22013
|
+
};
|
|
22014
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22015
|
+
}
|
|
22016
|
+
updateAuthMethod(paramsOrFirst, ...rest) {
|
|
22017
|
+
let params;
|
|
22018
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
22019
|
+
params = (paramsOrFirst || {});
|
|
22020
|
+
}
|
|
22021
|
+
else {
|
|
22022
|
+
params = {
|
|
22023
|
+
methodId: paramsOrFirst,
|
|
22024
|
+
enabled: rest[0]
|
|
22025
|
+
};
|
|
22026
|
+
}
|
|
22027
|
+
const methodId = params.methodId;
|
|
22028
|
+
const enabled = params.enabled;
|
|
22029
|
+
if (typeof methodId === 'undefined') {
|
|
22030
|
+
throw new AppwriteException('Missing required parameter: "methodId"');
|
|
22031
|
+
}
|
|
22032
|
+
if (typeof enabled === 'undefined') {
|
|
22033
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
22034
|
+
}
|
|
22035
|
+
const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
|
|
22036
|
+
const payload = {};
|
|
22037
|
+
if (typeof enabled !== 'undefined') {
|
|
22038
|
+
payload['enabled'] = enabled;
|
|
22039
|
+
}
|
|
22040
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22041
|
+
const apiHeaders = {
|
|
22042
|
+
'content-type': 'application/json',
|
|
22043
|
+
};
|
|
22044
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22045
|
+
}
|
|
22046
|
+
updateCanonicalEmails(paramsOrFirst) {
|
|
22047
|
+
let params;
|
|
22048
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22049
|
+
params = (paramsOrFirst || {});
|
|
22050
|
+
}
|
|
22051
|
+
else {
|
|
22052
|
+
params = {
|
|
22053
|
+
enabled: paramsOrFirst
|
|
22054
|
+
};
|
|
22055
|
+
}
|
|
22056
|
+
const enabled = params.enabled;
|
|
22057
|
+
if (typeof enabled === 'undefined') {
|
|
22058
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
22059
|
+
}
|
|
22060
|
+
const apiPath = '/project/auth/canonical-emails';
|
|
22061
|
+
const payload = {};
|
|
22062
|
+
if (typeof enabled !== 'undefined') {
|
|
22063
|
+
payload['enabled'] = enabled;
|
|
22064
|
+
}
|
|
22065
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22066
|
+
const apiHeaders = {
|
|
22067
|
+
'content-type': 'application/json',
|
|
22068
|
+
};
|
|
22069
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22070
|
+
}
|
|
22071
|
+
updateDisposableEmails(paramsOrFirst) {
|
|
22072
|
+
let params;
|
|
22073
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22074
|
+
params = (paramsOrFirst || {});
|
|
22075
|
+
}
|
|
22076
|
+
else {
|
|
22077
|
+
params = {
|
|
22078
|
+
enabled: paramsOrFirst
|
|
22079
|
+
};
|
|
22080
|
+
}
|
|
22081
|
+
const enabled = params.enabled;
|
|
22082
|
+
if (typeof enabled === 'undefined') {
|
|
22083
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
22084
|
+
}
|
|
22085
|
+
const apiPath = '/project/auth/disposable-emails';
|
|
22086
|
+
const payload = {};
|
|
22087
|
+
if (typeof enabled !== 'undefined') {
|
|
22088
|
+
payload['enabled'] = enabled;
|
|
22089
|
+
}
|
|
22090
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22091
|
+
const apiHeaders = {
|
|
22092
|
+
'content-type': 'application/json',
|
|
22093
|
+
};
|
|
22094
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22095
|
+
}
|
|
22096
|
+
updateFreeEmails(paramsOrFirst) {
|
|
22097
|
+
let params;
|
|
22098
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22099
|
+
params = (paramsOrFirst || {});
|
|
22100
|
+
}
|
|
22101
|
+
else {
|
|
22102
|
+
params = {
|
|
22103
|
+
enabled: paramsOrFirst
|
|
22104
|
+
};
|
|
22105
|
+
}
|
|
21723
22106
|
const enabled = params.enabled;
|
|
21724
22107
|
if (typeof enabled === 'undefined') {
|
|
21725
22108
|
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21726
22109
|
}
|
|
21727
|
-
const apiPath = '/project/auth/
|
|
22110
|
+
const apiPath = '/project/auth/free-emails';
|
|
22111
|
+
const payload = {};
|
|
22112
|
+
if (typeof enabled !== 'undefined') {
|
|
22113
|
+
payload['enabled'] = enabled;
|
|
22114
|
+
}
|
|
22115
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22116
|
+
const apiHeaders = {
|
|
22117
|
+
'content-type': 'application/json',
|
|
22118
|
+
};
|
|
22119
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22120
|
+
}
|
|
22121
|
+
listKeys(paramsOrFirst, ...rest) {
|
|
22122
|
+
let params;
|
|
22123
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22124
|
+
params = (paramsOrFirst || {});
|
|
22125
|
+
}
|
|
22126
|
+
else {
|
|
22127
|
+
params = {
|
|
22128
|
+
queries: paramsOrFirst,
|
|
22129
|
+
total: rest[0]
|
|
22130
|
+
};
|
|
22131
|
+
}
|
|
22132
|
+
const queries = params.queries;
|
|
22133
|
+
const total = params.total;
|
|
22134
|
+
const apiPath = '/project/keys';
|
|
22135
|
+
const payload = {};
|
|
22136
|
+
if (typeof queries !== 'undefined') {
|
|
22137
|
+
payload['queries'] = queries;
|
|
22138
|
+
}
|
|
22139
|
+
if (typeof total !== 'undefined') {
|
|
22140
|
+
payload['total'] = total;
|
|
22141
|
+
}
|
|
22142
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22143
|
+
const apiHeaders = {};
|
|
22144
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22145
|
+
}
|
|
22146
|
+
createKey(paramsOrFirst, ...rest) {
|
|
22147
|
+
let params;
|
|
22148
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22149
|
+
params = (paramsOrFirst || {});
|
|
22150
|
+
}
|
|
22151
|
+
else {
|
|
22152
|
+
params = {
|
|
22153
|
+
keyId: paramsOrFirst,
|
|
22154
|
+
name: rest[0],
|
|
22155
|
+
scopes: rest[1],
|
|
22156
|
+
expire: rest[2]
|
|
22157
|
+
};
|
|
22158
|
+
}
|
|
22159
|
+
const keyId = params.keyId;
|
|
22160
|
+
const name = params.name;
|
|
22161
|
+
const scopes = params.scopes;
|
|
22162
|
+
const expire = params.expire;
|
|
22163
|
+
if (typeof keyId === 'undefined') {
|
|
22164
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22165
|
+
}
|
|
22166
|
+
if (typeof name === 'undefined') {
|
|
22167
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
22168
|
+
}
|
|
22169
|
+
if (typeof scopes === 'undefined') {
|
|
22170
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
22171
|
+
}
|
|
22172
|
+
const apiPath = '/project/keys';
|
|
22173
|
+
const payload = {};
|
|
22174
|
+
if (typeof keyId !== 'undefined') {
|
|
22175
|
+
payload['keyId'] = keyId;
|
|
22176
|
+
}
|
|
22177
|
+
if (typeof name !== 'undefined') {
|
|
22178
|
+
payload['name'] = name;
|
|
22179
|
+
}
|
|
22180
|
+
if (typeof scopes !== 'undefined') {
|
|
22181
|
+
payload['scopes'] = scopes;
|
|
22182
|
+
}
|
|
22183
|
+
if (typeof expire !== 'undefined') {
|
|
22184
|
+
payload['expire'] = expire;
|
|
22185
|
+
}
|
|
22186
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22187
|
+
const apiHeaders = {
|
|
22188
|
+
'content-type': 'application/json',
|
|
22189
|
+
};
|
|
22190
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22191
|
+
}
|
|
22192
|
+
createEphemeralKey(paramsOrFirst, ...rest) {
|
|
22193
|
+
let params;
|
|
22194
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scopes' in paramsOrFirst || 'duration' in paramsOrFirst))) {
|
|
22195
|
+
params = (paramsOrFirst || {});
|
|
22196
|
+
}
|
|
22197
|
+
else {
|
|
22198
|
+
params = {
|
|
22199
|
+
scopes: paramsOrFirst,
|
|
22200
|
+
duration: rest[0]
|
|
22201
|
+
};
|
|
22202
|
+
}
|
|
22203
|
+
const scopes = params.scopes;
|
|
22204
|
+
const duration = params.duration;
|
|
22205
|
+
if (typeof scopes === 'undefined') {
|
|
22206
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
22207
|
+
}
|
|
22208
|
+
if (typeof duration === 'undefined') {
|
|
22209
|
+
throw new AppwriteException('Missing required parameter: "duration"');
|
|
22210
|
+
}
|
|
22211
|
+
const apiPath = '/project/keys/ephemeral';
|
|
22212
|
+
const payload = {};
|
|
22213
|
+
if (typeof scopes !== 'undefined') {
|
|
22214
|
+
payload['scopes'] = scopes;
|
|
22215
|
+
}
|
|
22216
|
+
if (typeof duration !== 'undefined') {
|
|
22217
|
+
payload['duration'] = duration;
|
|
22218
|
+
}
|
|
22219
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22220
|
+
const apiHeaders = {
|
|
22221
|
+
'content-type': 'application/json',
|
|
22222
|
+
};
|
|
22223
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22224
|
+
}
|
|
22225
|
+
getKey(paramsOrFirst) {
|
|
22226
|
+
let params;
|
|
22227
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22228
|
+
params = (paramsOrFirst || {});
|
|
22229
|
+
}
|
|
22230
|
+
else {
|
|
22231
|
+
params = {
|
|
22232
|
+
keyId: paramsOrFirst
|
|
22233
|
+
};
|
|
22234
|
+
}
|
|
22235
|
+
const keyId = params.keyId;
|
|
22236
|
+
if (typeof keyId === 'undefined') {
|
|
22237
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22238
|
+
}
|
|
22239
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
22240
|
+
const payload = {};
|
|
22241
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22242
|
+
const apiHeaders = {};
|
|
22243
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22244
|
+
}
|
|
22245
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
22246
|
+
let params;
|
|
22247
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22248
|
+
params = (paramsOrFirst || {});
|
|
22249
|
+
}
|
|
22250
|
+
else {
|
|
22251
|
+
params = {
|
|
22252
|
+
keyId: paramsOrFirst,
|
|
22253
|
+
name: rest[0],
|
|
22254
|
+
scopes: rest[1],
|
|
22255
|
+
expire: rest[2]
|
|
22256
|
+
};
|
|
22257
|
+
}
|
|
22258
|
+
const keyId = params.keyId;
|
|
22259
|
+
const name = params.name;
|
|
22260
|
+
const scopes = params.scopes;
|
|
22261
|
+
const expire = params.expire;
|
|
22262
|
+
if (typeof keyId === 'undefined') {
|
|
22263
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22264
|
+
}
|
|
22265
|
+
if (typeof name === 'undefined') {
|
|
22266
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
22267
|
+
}
|
|
22268
|
+
if (typeof scopes === 'undefined') {
|
|
22269
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
22270
|
+
}
|
|
22271
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
22272
|
+
const payload = {};
|
|
22273
|
+
if (typeof name !== 'undefined') {
|
|
22274
|
+
payload['name'] = name;
|
|
22275
|
+
}
|
|
22276
|
+
if (typeof scopes !== 'undefined') {
|
|
22277
|
+
payload['scopes'] = scopes;
|
|
22278
|
+
}
|
|
22279
|
+
if (typeof expire !== 'undefined') {
|
|
22280
|
+
payload['expire'] = expire;
|
|
22281
|
+
}
|
|
22282
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22283
|
+
const apiHeaders = {
|
|
22284
|
+
'content-type': 'application/json',
|
|
22285
|
+
};
|
|
22286
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
22287
|
+
}
|
|
22288
|
+
deleteKey(paramsOrFirst) {
|
|
22289
|
+
let params;
|
|
22290
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22291
|
+
params = (paramsOrFirst || {});
|
|
22292
|
+
}
|
|
22293
|
+
else {
|
|
22294
|
+
params = {
|
|
22295
|
+
keyId: paramsOrFirst
|
|
22296
|
+
};
|
|
22297
|
+
}
|
|
22298
|
+
const keyId = params.keyId;
|
|
22299
|
+
if (typeof keyId === 'undefined') {
|
|
22300
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22301
|
+
}
|
|
22302
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
22303
|
+
const payload = {};
|
|
22304
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22305
|
+
const apiHeaders = {
|
|
22306
|
+
'content-type': 'application/json',
|
|
22307
|
+
};
|
|
22308
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22309
|
+
}
|
|
22310
|
+
updateLabels(paramsOrFirst) {
|
|
22311
|
+
let params;
|
|
22312
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22313
|
+
params = (paramsOrFirst || {});
|
|
22314
|
+
}
|
|
22315
|
+
else {
|
|
22316
|
+
params = {
|
|
22317
|
+
labels: paramsOrFirst
|
|
22318
|
+
};
|
|
22319
|
+
}
|
|
22320
|
+
const labels = params.labels;
|
|
22321
|
+
if (typeof labels === 'undefined') {
|
|
22322
|
+
throw new AppwriteException('Missing required parameter: "labels"');
|
|
22323
|
+
}
|
|
22324
|
+
const apiPath = '/project/labels';
|
|
22325
|
+
const payload = {};
|
|
22326
|
+
if (typeof labels !== 'undefined') {
|
|
22327
|
+
payload['labels'] = labels;
|
|
22328
|
+
}
|
|
22329
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22330
|
+
const apiHeaders = {
|
|
22331
|
+
'content-type': 'application/json',
|
|
22332
|
+
};
|
|
22333
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
22334
|
+
}
|
|
22335
|
+
listMockPhones(paramsOrFirst, ...rest) {
|
|
22336
|
+
let params;
|
|
22337
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22338
|
+
params = (paramsOrFirst || {});
|
|
22339
|
+
}
|
|
22340
|
+
else {
|
|
22341
|
+
params = {
|
|
22342
|
+
queries: paramsOrFirst,
|
|
22343
|
+
total: rest[0]
|
|
22344
|
+
};
|
|
22345
|
+
}
|
|
22346
|
+
const queries = params.queries;
|
|
22347
|
+
const total = params.total;
|
|
22348
|
+
const apiPath = '/project/mock-phones';
|
|
22349
|
+
const payload = {};
|
|
22350
|
+
if (typeof queries !== 'undefined') {
|
|
22351
|
+
payload['queries'] = queries;
|
|
22352
|
+
}
|
|
22353
|
+
if (typeof total !== 'undefined') {
|
|
22354
|
+
payload['total'] = total;
|
|
22355
|
+
}
|
|
22356
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22357
|
+
const apiHeaders = {};
|
|
22358
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22359
|
+
}
|
|
22360
|
+
createMockPhone(paramsOrFirst, ...rest) {
|
|
22361
|
+
let params;
|
|
22362
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22363
|
+
params = (paramsOrFirst || {});
|
|
22364
|
+
}
|
|
22365
|
+
else {
|
|
22366
|
+
params = {
|
|
22367
|
+
number: paramsOrFirst,
|
|
22368
|
+
otp: rest[0]
|
|
22369
|
+
};
|
|
22370
|
+
}
|
|
22371
|
+
const number = params.number;
|
|
22372
|
+
const otp = params.otp;
|
|
22373
|
+
if (typeof number === 'undefined') {
|
|
22374
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22375
|
+
}
|
|
22376
|
+
if (typeof otp === 'undefined') {
|
|
22377
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
22378
|
+
}
|
|
22379
|
+
const apiPath = '/project/mock-phones';
|
|
22380
|
+
const payload = {};
|
|
22381
|
+
if (typeof number !== 'undefined') {
|
|
22382
|
+
payload['number'] = number;
|
|
22383
|
+
}
|
|
22384
|
+
if (typeof otp !== 'undefined') {
|
|
22385
|
+
payload['otp'] = otp;
|
|
22386
|
+
}
|
|
22387
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22388
|
+
const apiHeaders = {
|
|
22389
|
+
'content-type': 'application/json',
|
|
22390
|
+
};
|
|
22391
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22392
|
+
}
|
|
22393
|
+
getMockPhone(paramsOrFirst) {
|
|
22394
|
+
let params;
|
|
22395
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22396
|
+
params = (paramsOrFirst || {});
|
|
22397
|
+
}
|
|
22398
|
+
else {
|
|
22399
|
+
params = {
|
|
22400
|
+
number: paramsOrFirst
|
|
22401
|
+
};
|
|
22402
|
+
}
|
|
22403
|
+
const number = params.number;
|
|
22404
|
+
if (typeof number === 'undefined') {
|
|
22405
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22406
|
+
}
|
|
22407
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
22408
|
+
const payload = {};
|
|
22409
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22410
|
+
const apiHeaders = {};
|
|
22411
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22412
|
+
}
|
|
22413
|
+
updateMockPhone(paramsOrFirst, ...rest) {
|
|
22414
|
+
let params;
|
|
22415
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22416
|
+
params = (paramsOrFirst || {});
|
|
22417
|
+
}
|
|
22418
|
+
else {
|
|
22419
|
+
params = {
|
|
22420
|
+
number: paramsOrFirst,
|
|
22421
|
+
otp: rest[0]
|
|
22422
|
+
};
|
|
22423
|
+
}
|
|
22424
|
+
const number = params.number;
|
|
22425
|
+
const otp = params.otp;
|
|
22426
|
+
if (typeof number === 'undefined') {
|
|
22427
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22428
|
+
}
|
|
22429
|
+
if (typeof otp === 'undefined') {
|
|
22430
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
22431
|
+
}
|
|
22432
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
22433
|
+
const payload = {};
|
|
22434
|
+
if (typeof otp !== 'undefined') {
|
|
22435
|
+
payload['otp'] = otp;
|
|
22436
|
+
}
|
|
22437
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22438
|
+
const apiHeaders = {
|
|
22439
|
+
'content-type': 'application/json',
|
|
22440
|
+
};
|
|
22441
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
22442
|
+
}
|
|
22443
|
+
deleteMockPhone(paramsOrFirst) {
|
|
22444
|
+
let params;
|
|
22445
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22446
|
+
params = (paramsOrFirst || {});
|
|
22447
|
+
}
|
|
22448
|
+
else {
|
|
22449
|
+
params = {
|
|
22450
|
+
number: paramsOrFirst
|
|
22451
|
+
};
|
|
22452
|
+
}
|
|
22453
|
+
const number = params.number;
|
|
22454
|
+
if (typeof number === 'undefined') {
|
|
22455
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22456
|
+
}
|
|
22457
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
22458
|
+
const payload = {};
|
|
22459
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22460
|
+
const apiHeaders = {
|
|
22461
|
+
'content-type': 'application/json',
|
|
22462
|
+
};
|
|
22463
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22464
|
+
}
|
|
22465
|
+
/**
|
|
22466
|
+
* Get a list of all OAuth2 providers supported by the server, along with the project's configuration for each. Credential fields are write-only and always returned empty.
|
|
22467
|
+
*
|
|
22468
|
+
* @throws {AppwriteException}
|
|
22469
|
+
* @returns {Promise<Models.OAuth2ProviderList>}
|
|
22470
|
+
*/
|
|
22471
|
+
listOAuth2Providers() {
|
|
22472
|
+
const apiPath = '/project/oauth2';
|
|
22473
|
+
const payload = {};
|
|
22474
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22475
|
+
const apiHeaders = {};
|
|
22476
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22477
|
+
}
|
|
22478
|
+
updateOAuth2Amazon(paramsOrFirst, ...rest) {
|
|
22479
|
+
let params;
|
|
22480
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22481
|
+
params = (paramsOrFirst || {});
|
|
22482
|
+
}
|
|
22483
|
+
else {
|
|
22484
|
+
params = {
|
|
22485
|
+
clientId: paramsOrFirst,
|
|
22486
|
+
clientSecret: rest[0],
|
|
22487
|
+
enabled: rest[1]
|
|
22488
|
+
};
|
|
22489
|
+
}
|
|
22490
|
+
const clientId = params.clientId;
|
|
22491
|
+
const clientSecret = params.clientSecret;
|
|
22492
|
+
const enabled = params.enabled;
|
|
22493
|
+
const apiPath = '/project/oauth2/amazon';
|
|
22494
|
+
const payload = {};
|
|
22495
|
+
if (typeof clientId !== 'undefined') {
|
|
22496
|
+
payload['clientId'] = clientId;
|
|
22497
|
+
}
|
|
22498
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22499
|
+
payload['clientSecret'] = clientSecret;
|
|
22500
|
+
}
|
|
22501
|
+
if (typeof enabled !== 'undefined') {
|
|
22502
|
+
payload['enabled'] = enabled;
|
|
22503
|
+
}
|
|
22504
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22505
|
+
const apiHeaders = {
|
|
22506
|
+
'content-type': 'application/json',
|
|
22507
|
+
};
|
|
22508
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22509
|
+
}
|
|
22510
|
+
updateOAuth2Apple(paramsOrFirst, ...rest) {
|
|
22511
|
+
let params;
|
|
22512
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22513
|
+
params = (paramsOrFirst || {});
|
|
22514
|
+
}
|
|
22515
|
+
else {
|
|
22516
|
+
params = {
|
|
22517
|
+
serviceId: paramsOrFirst,
|
|
22518
|
+
keyId: rest[0],
|
|
22519
|
+
teamId: rest[1],
|
|
22520
|
+
p8File: rest[2],
|
|
22521
|
+
enabled: rest[3]
|
|
22522
|
+
};
|
|
22523
|
+
}
|
|
22524
|
+
const serviceId = params.serviceId;
|
|
22525
|
+
const keyId = params.keyId;
|
|
22526
|
+
const teamId = params.teamId;
|
|
22527
|
+
const p8File = params.p8File;
|
|
22528
|
+
const enabled = params.enabled;
|
|
22529
|
+
const apiPath = '/project/oauth2/apple';
|
|
22530
|
+
const payload = {};
|
|
22531
|
+
if (typeof serviceId !== 'undefined') {
|
|
22532
|
+
payload['serviceId'] = serviceId;
|
|
22533
|
+
}
|
|
22534
|
+
if (typeof keyId !== 'undefined') {
|
|
22535
|
+
payload['keyId'] = keyId;
|
|
22536
|
+
}
|
|
22537
|
+
if (typeof teamId !== 'undefined') {
|
|
22538
|
+
payload['teamId'] = teamId;
|
|
22539
|
+
}
|
|
22540
|
+
if (typeof p8File !== 'undefined') {
|
|
22541
|
+
payload['p8File'] = p8File;
|
|
22542
|
+
}
|
|
22543
|
+
if (typeof enabled !== 'undefined') {
|
|
22544
|
+
payload['enabled'] = enabled;
|
|
22545
|
+
}
|
|
22546
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22547
|
+
const apiHeaders = {
|
|
22548
|
+
'content-type': 'application/json',
|
|
22549
|
+
};
|
|
22550
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22551
|
+
}
|
|
22552
|
+
updateOAuth2Auth0(paramsOrFirst, ...rest) {
|
|
22553
|
+
let params;
|
|
22554
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22555
|
+
params = (paramsOrFirst || {});
|
|
22556
|
+
}
|
|
22557
|
+
else {
|
|
22558
|
+
params = {
|
|
22559
|
+
clientId: paramsOrFirst,
|
|
22560
|
+
clientSecret: rest[0],
|
|
22561
|
+
endpoint: rest[1],
|
|
22562
|
+
enabled: rest[2]
|
|
22563
|
+
};
|
|
22564
|
+
}
|
|
22565
|
+
const clientId = params.clientId;
|
|
22566
|
+
const clientSecret = params.clientSecret;
|
|
22567
|
+
const endpoint = params.endpoint;
|
|
22568
|
+
const enabled = params.enabled;
|
|
22569
|
+
const apiPath = '/project/oauth2/auth0';
|
|
22570
|
+
const payload = {};
|
|
22571
|
+
if (typeof clientId !== 'undefined') {
|
|
22572
|
+
payload['clientId'] = clientId;
|
|
22573
|
+
}
|
|
22574
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22575
|
+
payload['clientSecret'] = clientSecret;
|
|
22576
|
+
}
|
|
22577
|
+
if (typeof endpoint !== 'undefined') {
|
|
22578
|
+
payload['endpoint'] = endpoint;
|
|
22579
|
+
}
|
|
22580
|
+
if (typeof enabled !== 'undefined') {
|
|
22581
|
+
payload['enabled'] = enabled;
|
|
22582
|
+
}
|
|
22583
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22584
|
+
const apiHeaders = {
|
|
22585
|
+
'content-type': 'application/json',
|
|
22586
|
+
};
|
|
22587
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22588
|
+
}
|
|
22589
|
+
updateOAuth2Authentik(paramsOrFirst, ...rest) {
|
|
22590
|
+
let params;
|
|
22591
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22592
|
+
params = (paramsOrFirst || {});
|
|
22593
|
+
}
|
|
22594
|
+
else {
|
|
22595
|
+
params = {
|
|
22596
|
+
clientId: paramsOrFirst,
|
|
22597
|
+
clientSecret: rest[0],
|
|
22598
|
+
endpoint: rest[1],
|
|
22599
|
+
enabled: rest[2]
|
|
22600
|
+
};
|
|
22601
|
+
}
|
|
22602
|
+
const clientId = params.clientId;
|
|
22603
|
+
const clientSecret = params.clientSecret;
|
|
22604
|
+
const endpoint = params.endpoint;
|
|
22605
|
+
const enabled = params.enabled;
|
|
22606
|
+
const apiPath = '/project/oauth2/authentik';
|
|
22607
|
+
const payload = {};
|
|
22608
|
+
if (typeof clientId !== 'undefined') {
|
|
22609
|
+
payload['clientId'] = clientId;
|
|
22610
|
+
}
|
|
22611
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22612
|
+
payload['clientSecret'] = clientSecret;
|
|
22613
|
+
}
|
|
22614
|
+
if (typeof endpoint !== 'undefined') {
|
|
22615
|
+
payload['endpoint'] = endpoint;
|
|
22616
|
+
}
|
|
22617
|
+
if (typeof enabled !== 'undefined') {
|
|
22618
|
+
payload['enabled'] = enabled;
|
|
22619
|
+
}
|
|
22620
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22621
|
+
const apiHeaders = {
|
|
22622
|
+
'content-type': 'application/json',
|
|
22623
|
+
};
|
|
22624
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22625
|
+
}
|
|
22626
|
+
updateOAuth2Autodesk(paramsOrFirst, ...rest) {
|
|
22627
|
+
let params;
|
|
22628
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22629
|
+
params = (paramsOrFirst || {});
|
|
22630
|
+
}
|
|
22631
|
+
else {
|
|
22632
|
+
params = {
|
|
22633
|
+
clientId: paramsOrFirst,
|
|
22634
|
+
clientSecret: rest[0],
|
|
22635
|
+
enabled: rest[1]
|
|
22636
|
+
};
|
|
22637
|
+
}
|
|
22638
|
+
const clientId = params.clientId;
|
|
22639
|
+
const clientSecret = params.clientSecret;
|
|
22640
|
+
const enabled = params.enabled;
|
|
22641
|
+
const apiPath = '/project/oauth2/autodesk';
|
|
22642
|
+
const payload = {};
|
|
22643
|
+
if (typeof clientId !== 'undefined') {
|
|
22644
|
+
payload['clientId'] = clientId;
|
|
22645
|
+
}
|
|
22646
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22647
|
+
payload['clientSecret'] = clientSecret;
|
|
22648
|
+
}
|
|
22649
|
+
if (typeof enabled !== 'undefined') {
|
|
22650
|
+
payload['enabled'] = enabled;
|
|
22651
|
+
}
|
|
22652
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22653
|
+
const apiHeaders = {
|
|
22654
|
+
'content-type': 'application/json',
|
|
22655
|
+
};
|
|
22656
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22657
|
+
}
|
|
22658
|
+
updateOAuth2Bitbucket(paramsOrFirst, ...rest) {
|
|
22659
|
+
let params;
|
|
22660
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22661
|
+
params = (paramsOrFirst || {});
|
|
22662
|
+
}
|
|
22663
|
+
else {
|
|
22664
|
+
params = {
|
|
22665
|
+
key: paramsOrFirst,
|
|
22666
|
+
secret: rest[0],
|
|
22667
|
+
enabled: rest[1]
|
|
22668
|
+
};
|
|
22669
|
+
}
|
|
22670
|
+
const key = params.key;
|
|
22671
|
+
const secret = params.secret;
|
|
22672
|
+
const enabled = params.enabled;
|
|
22673
|
+
const apiPath = '/project/oauth2/bitbucket';
|
|
22674
|
+
const payload = {};
|
|
22675
|
+
if (typeof key !== 'undefined') {
|
|
22676
|
+
payload['key'] = key;
|
|
22677
|
+
}
|
|
22678
|
+
if (typeof secret !== 'undefined') {
|
|
22679
|
+
payload['secret'] = secret;
|
|
22680
|
+
}
|
|
22681
|
+
if (typeof enabled !== 'undefined') {
|
|
22682
|
+
payload['enabled'] = enabled;
|
|
22683
|
+
}
|
|
22684
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22685
|
+
const apiHeaders = {
|
|
22686
|
+
'content-type': 'application/json',
|
|
22687
|
+
};
|
|
22688
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22689
|
+
}
|
|
22690
|
+
updateOAuth2Bitly(paramsOrFirst, ...rest) {
|
|
22691
|
+
let params;
|
|
22692
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22693
|
+
params = (paramsOrFirst || {});
|
|
22694
|
+
}
|
|
22695
|
+
else {
|
|
22696
|
+
params = {
|
|
22697
|
+
clientId: paramsOrFirst,
|
|
22698
|
+
clientSecret: rest[0],
|
|
22699
|
+
enabled: rest[1]
|
|
22700
|
+
};
|
|
22701
|
+
}
|
|
22702
|
+
const clientId = params.clientId;
|
|
22703
|
+
const clientSecret = params.clientSecret;
|
|
22704
|
+
const enabled = params.enabled;
|
|
22705
|
+
const apiPath = '/project/oauth2/bitly';
|
|
22706
|
+
const payload = {};
|
|
22707
|
+
if (typeof clientId !== 'undefined') {
|
|
22708
|
+
payload['clientId'] = clientId;
|
|
22709
|
+
}
|
|
22710
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22711
|
+
payload['clientSecret'] = clientSecret;
|
|
22712
|
+
}
|
|
22713
|
+
if (typeof enabled !== 'undefined') {
|
|
22714
|
+
payload['enabled'] = enabled;
|
|
22715
|
+
}
|
|
22716
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22717
|
+
const apiHeaders = {
|
|
22718
|
+
'content-type': 'application/json',
|
|
22719
|
+
};
|
|
22720
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22721
|
+
}
|
|
22722
|
+
updateOAuth2Box(paramsOrFirst, ...rest) {
|
|
22723
|
+
let params;
|
|
22724
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22725
|
+
params = (paramsOrFirst || {});
|
|
22726
|
+
}
|
|
22727
|
+
else {
|
|
22728
|
+
params = {
|
|
22729
|
+
clientId: paramsOrFirst,
|
|
22730
|
+
clientSecret: rest[0],
|
|
22731
|
+
enabled: rest[1]
|
|
22732
|
+
};
|
|
22733
|
+
}
|
|
22734
|
+
const clientId = params.clientId;
|
|
22735
|
+
const clientSecret = params.clientSecret;
|
|
22736
|
+
const enabled = params.enabled;
|
|
22737
|
+
const apiPath = '/project/oauth2/box';
|
|
22738
|
+
const payload = {};
|
|
22739
|
+
if (typeof clientId !== 'undefined') {
|
|
22740
|
+
payload['clientId'] = clientId;
|
|
22741
|
+
}
|
|
22742
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22743
|
+
payload['clientSecret'] = clientSecret;
|
|
22744
|
+
}
|
|
22745
|
+
if (typeof enabled !== 'undefined') {
|
|
22746
|
+
payload['enabled'] = enabled;
|
|
22747
|
+
}
|
|
22748
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22749
|
+
const apiHeaders = {
|
|
22750
|
+
'content-type': 'application/json',
|
|
22751
|
+
};
|
|
22752
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22753
|
+
}
|
|
22754
|
+
updateOAuth2Dailymotion(paramsOrFirst, ...rest) {
|
|
22755
|
+
let params;
|
|
22756
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22757
|
+
params = (paramsOrFirst || {});
|
|
22758
|
+
}
|
|
22759
|
+
else {
|
|
22760
|
+
params = {
|
|
22761
|
+
apiKey: paramsOrFirst,
|
|
22762
|
+
apiSecret: rest[0],
|
|
22763
|
+
enabled: rest[1]
|
|
22764
|
+
};
|
|
22765
|
+
}
|
|
22766
|
+
const apiKey = params.apiKey;
|
|
22767
|
+
const apiSecret = params.apiSecret;
|
|
22768
|
+
const enabled = params.enabled;
|
|
22769
|
+
const apiPath = '/project/oauth2/dailymotion';
|
|
22770
|
+
const payload = {};
|
|
22771
|
+
if (typeof apiKey !== 'undefined') {
|
|
22772
|
+
payload['apiKey'] = apiKey;
|
|
22773
|
+
}
|
|
22774
|
+
if (typeof apiSecret !== 'undefined') {
|
|
22775
|
+
payload['apiSecret'] = apiSecret;
|
|
22776
|
+
}
|
|
22777
|
+
if (typeof enabled !== 'undefined') {
|
|
22778
|
+
payload['enabled'] = enabled;
|
|
22779
|
+
}
|
|
22780
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22781
|
+
const apiHeaders = {
|
|
22782
|
+
'content-type': 'application/json',
|
|
22783
|
+
};
|
|
22784
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22785
|
+
}
|
|
22786
|
+
updateOAuth2Discord(paramsOrFirst, ...rest) {
|
|
22787
|
+
let params;
|
|
22788
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22789
|
+
params = (paramsOrFirst || {});
|
|
22790
|
+
}
|
|
22791
|
+
else {
|
|
22792
|
+
params = {
|
|
22793
|
+
clientId: paramsOrFirst,
|
|
22794
|
+
clientSecret: rest[0],
|
|
22795
|
+
enabled: rest[1]
|
|
22796
|
+
};
|
|
22797
|
+
}
|
|
22798
|
+
const clientId = params.clientId;
|
|
22799
|
+
const clientSecret = params.clientSecret;
|
|
22800
|
+
const enabled = params.enabled;
|
|
22801
|
+
const apiPath = '/project/oauth2/discord';
|
|
22802
|
+
const payload = {};
|
|
22803
|
+
if (typeof clientId !== 'undefined') {
|
|
22804
|
+
payload['clientId'] = clientId;
|
|
22805
|
+
}
|
|
22806
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22807
|
+
payload['clientSecret'] = clientSecret;
|
|
22808
|
+
}
|
|
22809
|
+
if (typeof enabled !== 'undefined') {
|
|
22810
|
+
payload['enabled'] = enabled;
|
|
22811
|
+
}
|
|
22812
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22813
|
+
const apiHeaders = {
|
|
22814
|
+
'content-type': 'application/json',
|
|
22815
|
+
};
|
|
22816
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22817
|
+
}
|
|
22818
|
+
updateOAuth2Disqus(paramsOrFirst, ...rest) {
|
|
22819
|
+
let params;
|
|
22820
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22821
|
+
params = (paramsOrFirst || {});
|
|
22822
|
+
}
|
|
22823
|
+
else {
|
|
22824
|
+
params = {
|
|
22825
|
+
publicKey: paramsOrFirst,
|
|
22826
|
+
secretKey: rest[0],
|
|
22827
|
+
enabled: rest[1]
|
|
22828
|
+
};
|
|
22829
|
+
}
|
|
22830
|
+
const publicKey = params.publicKey;
|
|
22831
|
+
const secretKey = params.secretKey;
|
|
22832
|
+
const enabled = params.enabled;
|
|
22833
|
+
const apiPath = '/project/oauth2/disqus';
|
|
22834
|
+
const payload = {};
|
|
22835
|
+
if (typeof publicKey !== 'undefined') {
|
|
22836
|
+
payload['publicKey'] = publicKey;
|
|
22837
|
+
}
|
|
22838
|
+
if (typeof secretKey !== 'undefined') {
|
|
22839
|
+
payload['secretKey'] = secretKey;
|
|
22840
|
+
}
|
|
22841
|
+
if (typeof enabled !== 'undefined') {
|
|
22842
|
+
payload['enabled'] = enabled;
|
|
22843
|
+
}
|
|
22844
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22845
|
+
const apiHeaders = {
|
|
22846
|
+
'content-type': 'application/json',
|
|
22847
|
+
};
|
|
22848
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22849
|
+
}
|
|
22850
|
+
updateOAuth2Dropbox(paramsOrFirst, ...rest) {
|
|
22851
|
+
let params;
|
|
22852
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22853
|
+
params = (paramsOrFirst || {});
|
|
22854
|
+
}
|
|
22855
|
+
else {
|
|
22856
|
+
params = {
|
|
22857
|
+
appKey: paramsOrFirst,
|
|
22858
|
+
appSecret: rest[0],
|
|
22859
|
+
enabled: rest[1]
|
|
22860
|
+
};
|
|
22861
|
+
}
|
|
22862
|
+
const appKey = params.appKey;
|
|
22863
|
+
const appSecret = params.appSecret;
|
|
22864
|
+
const enabled = params.enabled;
|
|
22865
|
+
const apiPath = '/project/oauth2/dropbox';
|
|
22866
|
+
const payload = {};
|
|
22867
|
+
if (typeof appKey !== 'undefined') {
|
|
22868
|
+
payload['appKey'] = appKey;
|
|
22869
|
+
}
|
|
22870
|
+
if (typeof appSecret !== 'undefined') {
|
|
22871
|
+
payload['appSecret'] = appSecret;
|
|
22872
|
+
}
|
|
22873
|
+
if (typeof enabled !== 'undefined') {
|
|
22874
|
+
payload['enabled'] = enabled;
|
|
22875
|
+
}
|
|
22876
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22877
|
+
const apiHeaders = {
|
|
22878
|
+
'content-type': 'application/json',
|
|
22879
|
+
};
|
|
22880
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22881
|
+
}
|
|
22882
|
+
updateOAuth2Etsy(paramsOrFirst, ...rest) {
|
|
22883
|
+
let params;
|
|
22884
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22885
|
+
params = (paramsOrFirst || {});
|
|
22886
|
+
}
|
|
22887
|
+
else {
|
|
22888
|
+
params = {
|
|
22889
|
+
keyString: paramsOrFirst,
|
|
22890
|
+
sharedSecret: rest[0],
|
|
22891
|
+
enabled: rest[1]
|
|
22892
|
+
};
|
|
22893
|
+
}
|
|
22894
|
+
const keyString = params.keyString;
|
|
22895
|
+
const sharedSecret = params.sharedSecret;
|
|
22896
|
+
const enabled = params.enabled;
|
|
22897
|
+
const apiPath = '/project/oauth2/etsy';
|
|
22898
|
+
const payload = {};
|
|
22899
|
+
if (typeof keyString !== 'undefined') {
|
|
22900
|
+
payload['keyString'] = keyString;
|
|
22901
|
+
}
|
|
22902
|
+
if (typeof sharedSecret !== 'undefined') {
|
|
22903
|
+
payload['sharedSecret'] = sharedSecret;
|
|
22904
|
+
}
|
|
22905
|
+
if (typeof enabled !== 'undefined') {
|
|
22906
|
+
payload['enabled'] = enabled;
|
|
22907
|
+
}
|
|
22908
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22909
|
+
const apiHeaders = {
|
|
22910
|
+
'content-type': 'application/json',
|
|
22911
|
+
};
|
|
22912
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22913
|
+
}
|
|
22914
|
+
updateOAuth2Facebook(paramsOrFirst, ...rest) {
|
|
22915
|
+
let params;
|
|
22916
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22917
|
+
params = (paramsOrFirst || {});
|
|
22918
|
+
}
|
|
22919
|
+
else {
|
|
22920
|
+
params = {
|
|
22921
|
+
appId: paramsOrFirst,
|
|
22922
|
+
appSecret: rest[0],
|
|
22923
|
+
enabled: rest[1]
|
|
22924
|
+
};
|
|
22925
|
+
}
|
|
22926
|
+
const appId = params.appId;
|
|
22927
|
+
const appSecret = params.appSecret;
|
|
22928
|
+
const enabled = params.enabled;
|
|
22929
|
+
const apiPath = '/project/oauth2/facebook';
|
|
22930
|
+
const payload = {};
|
|
22931
|
+
if (typeof appId !== 'undefined') {
|
|
22932
|
+
payload['appId'] = appId;
|
|
22933
|
+
}
|
|
22934
|
+
if (typeof appSecret !== 'undefined') {
|
|
22935
|
+
payload['appSecret'] = appSecret;
|
|
22936
|
+
}
|
|
22937
|
+
if (typeof enabled !== 'undefined') {
|
|
22938
|
+
payload['enabled'] = enabled;
|
|
22939
|
+
}
|
|
22940
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22941
|
+
const apiHeaders = {
|
|
22942
|
+
'content-type': 'application/json',
|
|
22943
|
+
};
|
|
22944
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22945
|
+
}
|
|
22946
|
+
updateOAuth2Figma(paramsOrFirst, ...rest) {
|
|
22947
|
+
let params;
|
|
22948
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22949
|
+
params = (paramsOrFirst || {});
|
|
22950
|
+
}
|
|
22951
|
+
else {
|
|
22952
|
+
params = {
|
|
22953
|
+
clientId: paramsOrFirst,
|
|
22954
|
+
clientSecret: rest[0],
|
|
22955
|
+
enabled: rest[1]
|
|
22956
|
+
};
|
|
22957
|
+
}
|
|
22958
|
+
const clientId = params.clientId;
|
|
22959
|
+
const clientSecret = params.clientSecret;
|
|
22960
|
+
const enabled = params.enabled;
|
|
22961
|
+
const apiPath = '/project/oauth2/figma';
|
|
22962
|
+
const payload = {};
|
|
22963
|
+
if (typeof clientId !== 'undefined') {
|
|
22964
|
+
payload['clientId'] = clientId;
|
|
22965
|
+
}
|
|
22966
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22967
|
+
payload['clientSecret'] = clientSecret;
|
|
22968
|
+
}
|
|
22969
|
+
if (typeof enabled !== 'undefined') {
|
|
22970
|
+
payload['enabled'] = enabled;
|
|
22971
|
+
}
|
|
22972
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22973
|
+
const apiHeaders = {
|
|
22974
|
+
'content-type': 'application/json',
|
|
22975
|
+
};
|
|
22976
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22977
|
+
}
|
|
22978
|
+
updateOAuth2FusionAuth(paramsOrFirst, ...rest) {
|
|
22979
|
+
let params;
|
|
22980
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22981
|
+
params = (paramsOrFirst || {});
|
|
22982
|
+
}
|
|
22983
|
+
else {
|
|
22984
|
+
params = {
|
|
22985
|
+
clientId: paramsOrFirst,
|
|
22986
|
+
clientSecret: rest[0],
|
|
22987
|
+
endpoint: rest[1],
|
|
22988
|
+
enabled: rest[2]
|
|
22989
|
+
};
|
|
22990
|
+
}
|
|
22991
|
+
const clientId = params.clientId;
|
|
22992
|
+
const clientSecret = params.clientSecret;
|
|
22993
|
+
const endpoint = params.endpoint;
|
|
22994
|
+
const enabled = params.enabled;
|
|
22995
|
+
const apiPath = '/project/oauth2/fusionauth';
|
|
22996
|
+
const payload = {};
|
|
22997
|
+
if (typeof clientId !== 'undefined') {
|
|
22998
|
+
payload['clientId'] = clientId;
|
|
22999
|
+
}
|
|
23000
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23001
|
+
payload['clientSecret'] = clientSecret;
|
|
23002
|
+
}
|
|
23003
|
+
if (typeof endpoint !== 'undefined') {
|
|
23004
|
+
payload['endpoint'] = endpoint;
|
|
23005
|
+
}
|
|
23006
|
+
if (typeof enabled !== 'undefined') {
|
|
23007
|
+
payload['enabled'] = enabled;
|
|
23008
|
+
}
|
|
23009
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23010
|
+
const apiHeaders = {
|
|
23011
|
+
'content-type': 'application/json',
|
|
23012
|
+
};
|
|
23013
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23014
|
+
}
|
|
23015
|
+
updateOAuth2GitHub(paramsOrFirst, ...rest) {
|
|
23016
|
+
let params;
|
|
23017
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23018
|
+
params = (paramsOrFirst || {});
|
|
23019
|
+
}
|
|
23020
|
+
else {
|
|
23021
|
+
params = {
|
|
23022
|
+
clientId: paramsOrFirst,
|
|
23023
|
+
clientSecret: rest[0],
|
|
23024
|
+
enabled: rest[1]
|
|
23025
|
+
};
|
|
23026
|
+
}
|
|
23027
|
+
const clientId = params.clientId;
|
|
23028
|
+
const clientSecret = params.clientSecret;
|
|
23029
|
+
const enabled = params.enabled;
|
|
23030
|
+
const apiPath = '/project/oauth2/github';
|
|
23031
|
+
const payload = {};
|
|
23032
|
+
if (typeof clientId !== 'undefined') {
|
|
23033
|
+
payload['clientId'] = clientId;
|
|
23034
|
+
}
|
|
23035
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23036
|
+
payload['clientSecret'] = clientSecret;
|
|
23037
|
+
}
|
|
23038
|
+
if (typeof enabled !== 'undefined') {
|
|
23039
|
+
payload['enabled'] = enabled;
|
|
23040
|
+
}
|
|
23041
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23042
|
+
const apiHeaders = {
|
|
23043
|
+
'content-type': 'application/json',
|
|
23044
|
+
};
|
|
23045
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23046
|
+
}
|
|
23047
|
+
updateOAuth2Gitlab(paramsOrFirst, ...rest) {
|
|
23048
|
+
let params;
|
|
23049
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23050
|
+
params = (paramsOrFirst || {});
|
|
23051
|
+
}
|
|
23052
|
+
else {
|
|
23053
|
+
params = {
|
|
23054
|
+
applicationId: paramsOrFirst,
|
|
23055
|
+
secret: rest[0],
|
|
23056
|
+
endpoint: rest[1],
|
|
23057
|
+
enabled: rest[2]
|
|
23058
|
+
};
|
|
23059
|
+
}
|
|
23060
|
+
const applicationId = params.applicationId;
|
|
23061
|
+
const secret = params.secret;
|
|
23062
|
+
const endpoint = params.endpoint;
|
|
23063
|
+
const enabled = params.enabled;
|
|
23064
|
+
const apiPath = '/project/oauth2/gitlab';
|
|
23065
|
+
const payload = {};
|
|
23066
|
+
if (typeof applicationId !== 'undefined') {
|
|
23067
|
+
payload['applicationId'] = applicationId;
|
|
23068
|
+
}
|
|
23069
|
+
if (typeof secret !== 'undefined') {
|
|
23070
|
+
payload['secret'] = secret;
|
|
23071
|
+
}
|
|
23072
|
+
if (typeof endpoint !== 'undefined') {
|
|
23073
|
+
payload['endpoint'] = endpoint;
|
|
23074
|
+
}
|
|
23075
|
+
if (typeof enabled !== 'undefined') {
|
|
23076
|
+
payload['enabled'] = enabled;
|
|
23077
|
+
}
|
|
23078
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23079
|
+
const apiHeaders = {
|
|
23080
|
+
'content-type': 'application/json',
|
|
23081
|
+
};
|
|
23082
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23083
|
+
}
|
|
23084
|
+
updateOAuth2Google(paramsOrFirst, ...rest) {
|
|
23085
|
+
let params;
|
|
23086
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23087
|
+
params = (paramsOrFirst || {});
|
|
23088
|
+
}
|
|
23089
|
+
else {
|
|
23090
|
+
params = {
|
|
23091
|
+
clientId: paramsOrFirst,
|
|
23092
|
+
clientSecret: rest[0],
|
|
23093
|
+
enabled: rest[1]
|
|
23094
|
+
};
|
|
23095
|
+
}
|
|
23096
|
+
const clientId = params.clientId;
|
|
23097
|
+
const clientSecret = params.clientSecret;
|
|
23098
|
+
const enabled = params.enabled;
|
|
23099
|
+
const apiPath = '/project/oauth2/google';
|
|
23100
|
+
const payload = {};
|
|
23101
|
+
if (typeof clientId !== 'undefined') {
|
|
23102
|
+
payload['clientId'] = clientId;
|
|
23103
|
+
}
|
|
23104
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23105
|
+
payload['clientSecret'] = clientSecret;
|
|
23106
|
+
}
|
|
23107
|
+
if (typeof enabled !== 'undefined') {
|
|
23108
|
+
payload['enabled'] = enabled;
|
|
23109
|
+
}
|
|
23110
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23111
|
+
const apiHeaders = {
|
|
23112
|
+
'content-type': 'application/json',
|
|
23113
|
+
};
|
|
23114
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23115
|
+
}
|
|
23116
|
+
updateOAuth2Keycloak(paramsOrFirst, ...rest) {
|
|
23117
|
+
let params;
|
|
23118
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23119
|
+
params = (paramsOrFirst || {});
|
|
23120
|
+
}
|
|
23121
|
+
else {
|
|
23122
|
+
params = {
|
|
23123
|
+
clientId: paramsOrFirst,
|
|
23124
|
+
clientSecret: rest[0],
|
|
23125
|
+
endpoint: rest[1],
|
|
23126
|
+
realmName: rest[2],
|
|
23127
|
+
enabled: rest[3]
|
|
23128
|
+
};
|
|
23129
|
+
}
|
|
23130
|
+
const clientId = params.clientId;
|
|
23131
|
+
const clientSecret = params.clientSecret;
|
|
23132
|
+
const endpoint = params.endpoint;
|
|
23133
|
+
const realmName = params.realmName;
|
|
23134
|
+
const enabled = params.enabled;
|
|
23135
|
+
const apiPath = '/project/oauth2/keycloak';
|
|
23136
|
+
const payload = {};
|
|
23137
|
+
if (typeof clientId !== 'undefined') {
|
|
23138
|
+
payload['clientId'] = clientId;
|
|
23139
|
+
}
|
|
23140
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23141
|
+
payload['clientSecret'] = clientSecret;
|
|
23142
|
+
}
|
|
23143
|
+
if (typeof endpoint !== 'undefined') {
|
|
23144
|
+
payload['endpoint'] = endpoint;
|
|
23145
|
+
}
|
|
23146
|
+
if (typeof realmName !== 'undefined') {
|
|
23147
|
+
payload['realmName'] = realmName;
|
|
23148
|
+
}
|
|
23149
|
+
if (typeof enabled !== 'undefined') {
|
|
23150
|
+
payload['enabled'] = enabled;
|
|
23151
|
+
}
|
|
23152
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23153
|
+
const apiHeaders = {
|
|
23154
|
+
'content-type': 'application/json',
|
|
23155
|
+
};
|
|
23156
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23157
|
+
}
|
|
23158
|
+
updateOAuth2Kick(paramsOrFirst, ...rest) {
|
|
23159
|
+
let params;
|
|
23160
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23161
|
+
params = (paramsOrFirst || {});
|
|
23162
|
+
}
|
|
23163
|
+
else {
|
|
23164
|
+
params = {
|
|
23165
|
+
clientId: paramsOrFirst,
|
|
23166
|
+
clientSecret: rest[0],
|
|
23167
|
+
enabled: rest[1]
|
|
23168
|
+
};
|
|
23169
|
+
}
|
|
23170
|
+
const clientId = params.clientId;
|
|
23171
|
+
const clientSecret = params.clientSecret;
|
|
23172
|
+
const enabled = params.enabled;
|
|
23173
|
+
const apiPath = '/project/oauth2/kick';
|
|
23174
|
+
const payload = {};
|
|
23175
|
+
if (typeof clientId !== 'undefined') {
|
|
23176
|
+
payload['clientId'] = clientId;
|
|
23177
|
+
}
|
|
23178
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23179
|
+
payload['clientSecret'] = clientSecret;
|
|
23180
|
+
}
|
|
23181
|
+
if (typeof enabled !== 'undefined') {
|
|
23182
|
+
payload['enabled'] = enabled;
|
|
23183
|
+
}
|
|
23184
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23185
|
+
const apiHeaders = {
|
|
23186
|
+
'content-type': 'application/json',
|
|
23187
|
+
};
|
|
23188
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23189
|
+
}
|
|
23190
|
+
updateOAuth2Linkedin(paramsOrFirst, ...rest) {
|
|
23191
|
+
let params;
|
|
23192
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23193
|
+
params = (paramsOrFirst || {});
|
|
23194
|
+
}
|
|
23195
|
+
else {
|
|
23196
|
+
params = {
|
|
23197
|
+
clientId: paramsOrFirst,
|
|
23198
|
+
primaryClientSecret: rest[0],
|
|
23199
|
+
enabled: rest[1]
|
|
23200
|
+
};
|
|
23201
|
+
}
|
|
23202
|
+
const clientId = params.clientId;
|
|
23203
|
+
const primaryClientSecret = params.primaryClientSecret;
|
|
23204
|
+
const enabled = params.enabled;
|
|
23205
|
+
const apiPath = '/project/oauth2/linkedin';
|
|
23206
|
+
const payload = {};
|
|
23207
|
+
if (typeof clientId !== 'undefined') {
|
|
23208
|
+
payload['clientId'] = clientId;
|
|
23209
|
+
}
|
|
23210
|
+
if (typeof primaryClientSecret !== 'undefined') {
|
|
23211
|
+
payload['primaryClientSecret'] = primaryClientSecret;
|
|
23212
|
+
}
|
|
23213
|
+
if (typeof enabled !== 'undefined') {
|
|
23214
|
+
payload['enabled'] = enabled;
|
|
23215
|
+
}
|
|
23216
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23217
|
+
const apiHeaders = {
|
|
23218
|
+
'content-type': 'application/json',
|
|
23219
|
+
};
|
|
23220
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23221
|
+
}
|
|
23222
|
+
updateOAuth2Microsoft(paramsOrFirst, ...rest) {
|
|
23223
|
+
let params;
|
|
23224
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23225
|
+
params = (paramsOrFirst || {});
|
|
23226
|
+
}
|
|
23227
|
+
else {
|
|
23228
|
+
params = {
|
|
23229
|
+
applicationId: paramsOrFirst,
|
|
23230
|
+
applicationSecret: rest[0],
|
|
23231
|
+
tenant: rest[1],
|
|
23232
|
+
enabled: rest[2]
|
|
23233
|
+
};
|
|
23234
|
+
}
|
|
23235
|
+
const applicationId = params.applicationId;
|
|
23236
|
+
const applicationSecret = params.applicationSecret;
|
|
23237
|
+
const tenant = params.tenant;
|
|
23238
|
+
const enabled = params.enabled;
|
|
23239
|
+
const apiPath = '/project/oauth2/microsoft';
|
|
23240
|
+
const payload = {};
|
|
23241
|
+
if (typeof applicationId !== 'undefined') {
|
|
23242
|
+
payload['applicationId'] = applicationId;
|
|
23243
|
+
}
|
|
23244
|
+
if (typeof applicationSecret !== 'undefined') {
|
|
23245
|
+
payload['applicationSecret'] = applicationSecret;
|
|
23246
|
+
}
|
|
23247
|
+
if (typeof tenant !== 'undefined') {
|
|
23248
|
+
payload['tenant'] = tenant;
|
|
23249
|
+
}
|
|
23250
|
+
if (typeof enabled !== 'undefined') {
|
|
23251
|
+
payload['enabled'] = enabled;
|
|
23252
|
+
}
|
|
23253
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23254
|
+
const apiHeaders = {
|
|
23255
|
+
'content-type': 'application/json',
|
|
23256
|
+
};
|
|
23257
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23258
|
+
}
|
|
23259
|
+
updateOAuth2Notion(paramsOrFirst, ...rest) {
|
|
23260
|
+
let params;
|
|
23261
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23262
|
+
params = (paramsOrFirst || {});
|
|
23263
|
+
}
|
|
23264
|
+
else {
|
|
23265
|
+
params = {
|
|
23266
|
+
oauthClientId: paramsOrFirst,
|
|
23267
|
+
oauthClientSecret: rest[0],
|
|
23268
|
+
enabled: rest[1]
|
|
23269
|
+
};
|
|
23270
|
+
}
|
|
23271
|
+
const oauthClientId = params.oauthClientId;
|
|
23272
|
+
const oauthClientSecret = params.oauthClientSecret;
|
|
23273
|
+
const enabled = params.enabled;
|
|
23274
|
+
const apiPath = '/project/oauth2/notion';
|
|
23275
|
+
const payload = {};
|
|
23276
|
+
if (typeof oauthClientId !== 'undefined') {
|
|
23277
|
+
payload['oauthClientId'] = oauthClientId;
|
|
23278
|
+
}
|
|
23279
|
+
if (typeof oauthClientSecret !== 'undefined') {
|
|
23280
|
+
payload['oauthClientSecret'] = oauthClientSecret;
|
|
23281
|
+
}
|
|
23282
|
+
if (typeof enabled !== 'undefined') {
|
|
23283
|
+
payload['enabled'] = enabled;
|
|
23284
|
+
}
|
|
23285
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23286
|
+
const apiHeaders = {
|
|
23287
|
+
'content-type': 'application/json',
|
|
23288
|
+
};
|
|
23289
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23290
|
+
}
|
|
23291
|
+
updateOAuth2Oidc(paramsOrFirst, ...rest) {
|
|
23292
|
+
let params;
|
|
23293
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23294
|
+
params = (paramsOrFirst || {});
|
|
23295
|
+
}
|
|
23296
|
+
else {
|
|
23297
|
+
params = {
|
|
23298
|
+
clientId: paramsOrFirst,
|
|
23299
|
+
clientSecret: rest[0],
|
|
23300
|
+
wellKnownURL: rest[1],
|
|
23301
|
+
authorizationURL: rest[2],
|
|
23302
|
+
tokenUrl: rest[3],
|
|
23303
|
+
userInfoUrl: rest[4],
|
|
23304
|
+
enabled: rest[5]
|
|
23305
|
+
};
|
|
23306
|
+
}
|
|
23307
|
+
const clientId = params.clientId;
|
|
23308
|
+
const clientSecret = params.clientSecret;
|
|
23309
|
+
const wellKnownURL = params.wellKnownURL;
|
|
23310
|
+
const authorizationURL = params.authorizationURL;
|
|
23311
|
+
const tokenUrl = params.tokenUrl;
|
|
23312
|
+
const userInfoUrl = params.userInfoUrl;
|
|
23313
|
+
const enabled = params.enabled;
|
|
23314
|
+
const apiPath = '/project/oauth2/oidc';
|
|
23315
|
+
const payload = {};
|
|
23316
|
+
if (typeof clientId !== 'undefined') {
|
|
23317
|
+
payload['clientId'] = clientId;
|
|
23318
|
+
}
|
|
23319
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23320
|
+
payload['clientSecret'] = clientSecret;
|
|
23321
|
+
}
|
|
23322
|
+
if (typeof wellKnownURL !== 'undefined') {
|
|
23323
|
+
payload['wellKnownURL'] = wellKnownURL;
|
|
23324
|
+
}
|
|
23325
|
+
if (typeof authorizationURL !== 'undefined') {
|
|
23326
|
+
payload['authorizationURL'] = authorizationURL;
|
|
23327
|
+
}
|
|
23328
|
+
if (typeof tokenUrl !== 'undefined') {
|
|
23329
|
+
payload['tokenUrl'] = tokenUrl;
|
|
23330
|
+
}
|
|
23331
|
+
if (typeof userInfoUrl !== 'undefined') {
|
|
23332
|
+
payload['userInfoUrl'] = userInfoUrl;
|
|
23333
|
+
}
|
|
23334
|
+
if (typeof enabled !== 'undefined') {
|
|
23335
|
+
payload['enabled'] = enabled;
|
|
23336
|
+
}
|
|
23337
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23338
|
+
const apiHeaders = {
|
|
23339
|
+
'content-type': 'application/json',
|
|
23340
|
+
};
|
|
23341
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23342
|
+
}
|
|
23343
|
+
updateOAuth2Okta(paramsOrFirst, ...rest) {
|
|
23344
|
+
let params;
|
|
23345
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23346
|
+
params = (paramsOrFirst || {});
|
|
23347
|
+
}
|
|
23348
|
+
else {
|
|
23349
|
+
params = {
|
|
23350
|
+
clientId: paramsOrFirst,
|
|
23351
|
+
clientSecret: rest[0],
|
|
23352
|
+
domain: rest[1],
|
|
23353
|
+
authorizationServerId: rest[2],
|
|
23354
|
+
enabled: rest[3]
|
|
23355
|
+
};
|
|
23356
|
+
}
|
|
23357
|
+
const clientId = params.clientId;
|
|
23358
|
+
const clientSecret = params.clientSecret;
|
|
23359
|
+
const domain = params.domain;
|
|
23360
|
+
const authorizationServerId = params.authorizationServerId;
|
|
23361
|
+
const enabled = params.enabled;
|
|
23362
|
+
const apiPath = '/project/oauth2/okta';
|
|
23363
|
+
const payload = {};
|
|
23364
|
+
if (typeof clientId !== 'undefined') {
|
|
23365
|
+
payload['clientId'] = clientId;
|
|
23366
|
+
}
|
|
23367
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23368
|
+
payload['clientSecret'] = clientSecret;
|
|
23369
|
+
}
|
|
23370
|
+
if (typeof domain !== 'undefined') {
|
|
23371
|
+
payload['domain'] = domain;
|
|
23372
|
+
}
|
|
23373
|
+
if (typeof authorizationServerId !== 'undefined') {
|
|
23374
|
+
payload['authorizationServerId'] = authorizationServerId;
|
|
23375
|
+
}
|
|
23376
|
+
if (typeof enabled !== 'undefined') {
|
|
23377
|
+
payload['enabled'] = enabled;
|
|
23378
|
+
}
|
|
23379
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23380
|
+
const apiHeaders = {
|
|
23381
|
+
'content-type': 'application/json',
|
|
23382
|
+
};
|
|
23383
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23384
|
+
}
|
|
23385
|
+
updateOAuth2Paypal(paramsOrFirst, ...rest) {
|
|
23386
|
+
let params;
|
|
23387
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23388
|
+
params = (paramsOrFirst || {});
|
|
23389
|
+
}
|
|
23390
|
+
else {
|
|
23391
|
+
params = {
|
|
23392
|
+
clientId: paramsOrFirst,
|
|
23393
|
+
secretKey: rest[0],
|
|
23394
|
+
enabled: rest[1]
|
|
23395
|
+
};
|
|
23396
|
+
}
|
|
23397
|
+
const clientId = params.clientId;
|
|
23398
|
+
const secretKey = params.secretKey;
|
|
23399
|
+
const enabled = params.enabled;
|
|
23400
|
+
const apiPath = '/project/oauth2/paypal';
|
|
23401
|
+
const payload = {};
|
|
23402
|
+
if (typeof clientId !== 'undefined') {
|
|
23403
|
+
payload['clientId'] = clientId;
|
|
23404
|
+
}
|
|
23405
|
+
if (typeof secretKey !== 'undefined') {
|
|
23406
|
+
payload['secretKey'] = secretKey;
|
|
23407
|
+
}
|
|
23408
|
+
if (typeof enabled !== 'undefined') {
|
|
23409
|
+
payload['enabled'] = enabled;
|
|
23410
|
+
}
|
|
23411
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23412
|
+
const apiHeaders = {
|
|
23413
|
+
'content-type': 'application/json',
|
|
23414
|
+
};
|
|
23415
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23416
|
+
}
|
|
23417
|
+
updateOAuth2PaypalSandbox(paramsOrFirst, ...rest) {
|
|
23418
|
+
let params;
|
|
23419
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23420
|
+
params = (paramsOrFirst || {});
|
|
23421
|
+
}
|
|
23422
|
+
else {
|
|
23423
|
+
params = {
|
|
23424
|
+
clientId: paramsOrFirst,
|
|
23425
|
+
secretKey: rest[0],
|
|
23426
|
+
enabled: rest[1]
|
|
23427
|
+
};
|
|
23428
|
+
}
|
|
23429
|
+
const clientId = params.clientId;
|
|
23430
|
+
const secretKey = params.secretKey;
|
|
23431
|
+
const enabled = params.enabled;
|
|
23432
|
+
const apiPath = '/project/oauth2/paypalSandbox';
|
|
23433
|
+
const payload = {};
|
|
23434
|
+
if (typeof clientId !== 'undefined') {
|
|
23435
|
+
payload['clientId'] = clientId;
|
|
23436
|
+
}
|
|
23437
|
+
if (typeof secretKey !== 'undefined') {
|
|
23438
|
+
payload['secretKey'] = secretKey;
|
|
23439
|
+
}
|
|
23440
|
+
if (typeof enabled !== 'undefined') {
|
|
23441
|
+
payload['enabled'] = enabled;
|
|
23442
|
+
}
|
|
23443
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23444
|
+
const apiHeaders = {
|
|
23445
|
+
'content-type': 'application/json',
|
|
23446
|
+
};
|
|
23447
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23448
|
+
}
|
|
23449
|
+
updateOAuth2Podio(paramsOrFirst, ...rest) {
|
|
23450
|
+
let params;
|
|
23451
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23452
|
+
params = (paramsOrFirst || {});
|
|
23453
|
+
}
|
|
23454
|
+
else {
|
|
23455
|
+
params = {
|
|
23456
|
+
clientId: paramsOrFirst,
|
|
23457
|
+
clientSecret: rest[0],
|
|
23458
|
+
enabled: rest[1]
|
|
23459
|
+
};
|
|
23460
|
+
}
|
|
23461
|
+
const clientId = params.clientId;
|
|
23462
|
+
const clientSecret = params.clientSecret;
|
|
23463
|
+
const enabled = params.enabled;
|
|
23464
|
+
const apiPath = '/project/oauth2/podio';
|
|
23465
|
+
const payload = {};
|
|
23466
|
+
if (typeof clientId !== 'undefined') {
|
|
23467
|
+
payload['clientId'] = clientId;
|
|
23468
|
+
}
|
|
23469
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23470
|
+
payload['clientSecret'] = clientSecret;
|
|
23471
|
+
}
|
|
23472
|
+
if (typeof enabled !== 'undefined') {
|
|
23473
|
+
payload['enabled'] = enabled;
|
|
23474
|
+
}
|
|
23475
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23476
|
+
const apiHeaders = {
|
|
23477
|
+
'content-type': 'application/json',
|
|
23478
|
+
};
|
|
23479
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23480
|
+
}
|
|
23481
|
+
updateOAuth2Salesforce(paramsOrFirst, ...rest) {
|
|
23482
|
+
let params;
|
|
23483
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23484
|
+
params = (paramsOrFirst || {});
|
|
23485
|
+
}
|
|
23486
|
+
else {
|
|
23487
|
+
params = {
|
|
23488
|
+
customerKey: paramsOrFirst,
|
|
23489
|
+
customerSecret: rest[0],
|
|
23490
|
+
enabled: rest[1]
|
|
23491
|
+
};
|
|
23492
|
+
}
|
|
23493
|
+
const customerKey = params.customerKey;
|
|
23494
|
+
const customerSecret = params.customerSecret;
|
|
23495
|
+
const enabled = params.enabled;
|
|
23496
|
+
const apiPath = '/project/oauth2/salesforce';
|
|
23497
|
+
const payload = {};
|
|
23498
|
+
if (typeof customerKey !== 'undefined') {
|
|
23499
|
+
payload['customerKey'] = customerKey;
|
|
23500
|
+
}
|
|
23501
|
+
if (typeof customerSecret !== 'undefined') {
|
|
23502
|
+
payload['customerSecret'] = customerSecret;
|
|
23503
|
+
}
|
|
23504
|
+
if (typeof enabled !== 'undefined') {
|
|
23505
|
+
payload['enabled'] = enabled;
|
|
23506
|
+
}
|
|
23507
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23508
|
+
const apiHeaders = {
|
|
23509
|
+
'content-type': 'application/json',
|
|
23510
|
+
};
|
|
23511
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23512
|
+
}
|
|
23513
|
+
updateOAuth2Slack(paramsOrFirst, ...rest) {
|
|
23514
|
+
let params;
|
|
23515
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23516
|
+
params = (paramsOrFirst || {});
|
|
23517
|
+
}
|
|
23518
|
+
else {
|
|
23519
|
+
params = {
|
|
23520
|
+
clientId: paramsOrFirst,
|
|
23521
|
+
clientSecret: rest[0],
|
|
23522
|
+
enabled: rest[1]
|
|
23523
|
+
};
|
|
23524
|
+
}
|
|
23525
|
+
const clientId = params.clientId;
|
|
23526
|
+
const clientSecret = params.clientSecret;
|
|
23527
|
+
const enabled = params.enabled;
|
|
23528
|
+
const apiPath = '/project/oauth2/slack';
|
|
23529
|
+
const payload = {};
|
|
23530
|
+
if (typeof clientId !== 'undefined') {
|
|
23531
|
+
payload['clientId'] = clientId;
|
|
23532
|
+
}
|
|
23533
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23534
|
+
payload['clientSecret'] = clientSecret;
|
|
23535
|
+
}
|
|
23536
|
+
if (typeof enabled !== 'undefined') {
|
|
23537
|
+
payload['enabled'] = enabled;
|
|
23538
|
+
}
|
|
23539
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23540
|
+
const apiHeaders = {
|
|
23541
|
+
'content-type': 'application/json',
|
|
23542
|
+
};
|
|
23543
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23544
|
+
}
|
|
23545
|
+
updateOAuth2Spotify(paramsOrFirst, ...rest) {
|
|
23546
|
+
let params;
|
|
23547
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23548
|
+
params = (paramsOrFirst || {});
|
|
23549
|
+
}
|
|
23550
|
+
else {
|
|
23551
|
+
params = {
|
|
23552
|
+
clientId: paramsOrFirst,
|
|
23553
|
+
clientSecret: rest[0],
|
|
23554
|
+
enabled: rest[1]
|
|
23555
|
+
};
|
|
23556
|
+
}
|
|
23557
|
+
const clientId = params.clientId;
|
|
23558
|
+
const clientSecret = params.clientSecret;
|
|
23559
|
+
const enabled = params.enabled;
|
|
23560
|
+
const apiPath = '/project/oauth2/spotify';
|
|
23561
|
+
const payload = {};
|
|
23562
|
+
if (typeof clientId !== 'undefined') {
|
|
23563
|
+
payload['clientId'] = clientId;
|
|
23564
|
+
}
|
|
23565
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23566
|
+
payload['clientSecret'] = clientSecret;
|
|
23567
|
+
}
|
|
23568
|
+
if (typeof enabled !== 'undefined') {
|
|
23569
|
+
payload['enabled'] = enabled;
|
|
23570
|
+
}
|
|
23571
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23572
|
+
const apiHeaders = {
|
|
23573
|
+
'content-type': 'application/json',
|
|
23574
|
+
};
|
|
23575
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23576
|
+
}
|
|
23577
|
+
updateOAuth2Stripe(paramsOrFirst, ...rest) {
|
|
23578
|
+
let params;
|
|
23579
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23580
|
+
params = (paramsOrFirst || {});
|
|
23581
|
+
}
|
|
23582
|
+
else {
|
|
23583
|
+
params = {
|
|
23584
|
+
clientId: paramsOrFirst,
|
|
23585
|
+
apiSecretKey: rest[0],
|
|
23586
|
+
enabled: rest[1]
|
|
23587
|
+
};
|
|
23588
|
+
}
|
|
23589
|
+
const clientId = params.clientId;
|
|
23590
|
+
const apiSecretKey = params.apiSecretKey;
|
|
23591
|
+
const enabled = params.enabled;
|
|
23592
|
+
const apiPath = '/project/oauth2/stripe';
|
|
23593
|
+
const payload = {};
|
|
23594
|
+
if (typeof clientId !== 'undefined') {
|
|
23595
|
+
payload['clientId'] = clientId;
|
|
23596
|
+
}
|
|
23597
|
+
if (typeof apiSecretKey !== 'undefined') {
|
|
23598
|
+
payload['apiSecretKey'] = apiSecretKey;
|
|
23599
|
+
}
|
|
23600
|
+
if (typeof enabled !== 'undefined') {
|
|
23601
|
+
payload['enabled'] = enabled;
|
|
23602
|
+
}
|
|
23603
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23604
|
+
const apiHeaders = {
|
|
23605
|
+
'content-type': 'application/json',
|
|
23606
|
+
};
|
|
23607
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23608
|
+
}
|
|
23609
|
+
updateOAuth2Tradeshift(paramsOrFirst, ...rest) {
|
|
23610
|
+
let params;
|
|
23611
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23612
|
+
params = (paramsOrFirst || {});
|
|
23613
|
+
}
|
|
23614
|
+
else {
|
|
23615
|
+
params = {
|
|
23616
|
+
oauth2ClientId: paramsOrFirst,
|
|
23617
|
+
oauth2ClientSecret: rest[0],
|
|
23618
|
+
enabled: rest[1]
|
|
23619
|
+
};
|
|
23620
|
+
}
|
|
23621
|
+
const oauth2ClientId = params.oauth2ClientId;
|
|
23622
|
+
const oauth2ClientSecret = params.oauth2ClientSecret;
|
|
23623
|
+
const enabled = params.enabled;
|
|
23624
|
+
const apiPath = '/project/oauth2/tradeshift';
|
|
21728
23625
|
const payload = {};
|
|
23626
|
+
if (typeof oauth2ClientId !== 'undefined') {
|
|
23627
|
+
payload['oauth2ClientId'] = oauth2ClientId;
|
|
23628
|
+
}
|
|
23629
|
+
if (typeof oauth2ClientSecret !== 'undefined') {
|
|
23630
|
+
payload['oauth2ClientSecret'] = oauth2ClientSecret;
|
|
23631
|
+
}
|
|
21729
23632
|
if (typeof enabled !== 'undefined') {
|
|
21730
23633
|
payload['enabled'] = enabled;
|
|
21731
23634
|
}
|
|
@@ -21735,22 +23638,29 @@
|
|
|
21735
23638
|
};
|
|
21736
23639
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21737
23640
|
}
|
|
21738
|
-
|
|
23641
|
+
updateOAuth2TradeshiftSandbox(paramsOrFirst, ...rest) {
|
|
21739
23642
|
let params;
|
|
21740
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23643
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21741
23644
|
params = (paramsOrFirst || {});
|
|
21742
23645
|
}
|
|
21743
23646
|
else {
|
|
21744
23647
|
params = {
|
|
21745
|
-
|
|
23648
|
+
oauth2ClientId: paramsOrFirst,
|
|
23649
|
+
oauth2ClientSecret: rest[0],
|
|
23650
|
+
enabled: rest[1]
|
|
21746
23651
|
};
|
|
21747
23652
|
}
|
|
23653
|
+
const oauth2ClientId = params.oauth2ClientId;
|
|
23654
|
+
const oauth2ClientSecret = params.oauth2ClientSecret;
|
|
21748
23655
|
const enabled = params.enabled;
|
|
21749
|
-
|
|
21750
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21751
|
-
}
|
|
21752
|
-
const apiPath = '/project/auth/disposable-emails';
|
|
23656
|
+
const apiPath = '/project/oauth2/tradeshiftBox';
|
|
21753
23657
|
const payload = {};
|
|
23658
|
+
if (typeof oauth2ClientId !== 'undefined') {
|
|
23659
|
+
payload['oauth2ClientId'] = oauth2ClientId;
|
|
23660
|
+
}
|
|
23661
|
+
if (typeof oauth2ClientSecret !== 'undefined') {
|
|
23662
|
+
payload['oauth2ClientSecret'] = oauth2ClientSecret;
|
|
23663
|
+
}
|
|
21754
23664
|
if (typeof enabled !== 'undefined') {
|
|
21755
23665
|
payload['enabled'] = enabled;
|
|
21756
23666
|
}
|
|
@@ -21760,22 +23670,29 @@
|
|
|
21760
23670
|
};
|
|
21761
23671
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21762
23672
|
}
|
|
21763
|
-
|
|
23673
|
+
updateOAuth2Twitch(paramsOrFirst, ...rest) {
|
|
21764
23674
|
let params;
|
|
21765
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23675
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21766
23676
|
params = (paramsOrFirst || {});
|
|
21767
23677
|
}
|
|
21768
23678
|
else {
|
|
21769
23679
|
params = {
|
|
21770
|
-
|
|
23680
|
+
clientId: paramsOrFirst,
|
|
23681
|
+
clientSecret: rest[0],
|
|
23682
|
+
enabled: rest[1]
|
|
21771
23683
|
};
|
|
21772
23684
|
}
|
|
23685
|
+
const clientId = params.clientId;
|
|
23686
|
+
const clientSecret = params.clientSecret;
|
|
21773
23687
|
const enabled = params.enabled;
|
|
21774
|
-
|
|
21775
|
-
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21776
|
-
}
|
|
21777
|
-
const apiPath = '/project/auth/free-emails';
|
|
23688
|
+
const apiPath = '/project/oauth2/twitch';
|
|
21778
23689
|
const payload = {};
|
|
23690
|
+
if (typeof clientId !== 'undefined') {
|
|
23691
|
+
payload['clientId'] = clientId;
|
|
23692
|
+
}
|
|
23693
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23694
|
+
payload['clientSecret'] = clientSecret;
|
|
23695
|
+
}
|
|
21779
23696
|
if (typeof enabled !== 'undefined') {
|
|
21780
23697
|
payload['enabled'] = enabled;
|
|
21781
23698
|
}
|
|
@@ -21785,186 +23702,217 @@
|
|
|
21785
23702
|
};
|
|
21786
23703
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21787
23704
|
}
|
|
21788
|
-
|
|
23705
|
+
updateOAuth2WordPress(paramsOrFirst, ...rest) {
|
|
21789
23706
|
let params;
|
|
21790
23707
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21791
23708
|
params = (paramsOrFirst || {});
|
|
21792
23709
|
}
|
|
21793
23710
|
else {
|
|
21794
23711
|
params = {
|
|
21795
|
-
|
|
21796
|
-
|
|
23712
|
+
clientId: paramsOrFirst,
|
|
23713
|
+
clientSecret: rest[0],
|
|
23714
|
+
enabled: rest[1]
|
|
21797
23715
|
};
|
|
21798
23716
|
}
|
|
21799
|
-
const
|
|
21800
|
-
const
|
|
21801
|
-
const
|
|
23717
|
+
const clientId = params.clientId;
|
|
23718
|
+
const clientSecret = params.clientSecret;
|
|
23719
|
+
const enabled = params.enabled;
|
|
23720
|
+
const apiPath = '/project/oauth2/wordpress';
|
|
21802
23721
|
const payload = {};
|
|
21803
|
-
if (typeof
|
|
21804
|
-
payload['
|
|
23722
|
+
if (typeof clientId !== 'undefined') {
|
|
23723
|
+
payload['clientId'] = clientId;
|
|
21805
23724
|
}
|
|
21806
|
-
if (typeof
|
|
21807
|
-
payload['
|
|
23725
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23726
|
+
payload['clientSecret'] = clientSecret;
|
|
23727
|
+
}
|
|
23728
|
+
if (typeof enabled !== 'undefined') {
|
|
23729
|
+
payload['enabled'] = enabled;
|
|
21808
23730
|
}
|
|
21809
23731
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21810
|
-
const apiHeaders = {
|
|
21811
|
-
|
|
23732
|
+
const apiHeaders = {
|
|
23733
|
+
'content-type': 'application/json',
|
|
23734
|
+
};
|
|
23735
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21812
23736
|
}
|
|
21813
|
-
|
|
23737
|
+
updateOAuth2X(paramsOrFirst, ...rest) {
|
|
21814
23738
|
let params;
|
|
21815
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23739
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21816
23740
|
params = (paramsOrFirst || {});
|
|
21817
23741
|
}
|
|
21818
23742
|
else {
|
|
21819
23743
|
params = {
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
expire: rest[2]
|
|
23744
|
+
customerKey: paramsOrFirst,
|
|
23745
|
+
secretKey: rest[0],
|
|
23746
|
+
enabled: rest[1]
|
|
21824
23747
|
};
|
|
21825
23748
|
}
|
|
21826
|
-
const
|
|
21827
|
-
const
|
|
21828
|
-
const
|
|
21829
|
-
const
|
|
21830
|
-
if (typeof keyId === 'undefined') {
|
|
21831
|
-
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
21832
|
-
}
|
|
21833
|
-
if (typeof name === 'undefined') {
|
|
21834
|
-
throw new AppwriteException('Missing required parameter: "name"');
|
|
21835
|
-
}
|
|
21836
|
-
if (typeof scopes === 'undefined') {
|
|
21837
|
-
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
21838
|
-
}
|
|
21839
|
-
const apiPath = '/project/keys';
|
|
23749
|
+
const customerKey = params.customerKey;
|
|
23750
|
+
const secretKey = params.secretKey;
|
|
23751
|
+
const enabled = params.enabled;
|
|
23752
|
+
const apiPath = '/project/oauth2/x';
|
|
21840
23753
|
const payload = {};
|
|
21841
|
-
if (typeof
|
|
21842
|
-
payload['
|
|
21843
|
-
}
|
|
21844
|
-
if (typeof name !== 'undefined') {
|
|
21845
|
-
payload['name'] = name;
|
|
23754
|
+
if (typeof customerKey !== 'undefined') {
|
|
23755
|
+
payload['customerKey'] = customerKey;
|
|
21846
23756
|
}
|
|
21847
|
-
if (typeof
|
|
21848
|
-
payload['
|
|
23757
|
+
if (typeof secretKey !== 'undefined') {
|
|
23758
|
+
payload['secretKey'] = secretKey;
|
|
21849
23759
|
}
|
|
21850
|
-
if (typeof
|
|
21851
|
-
payload['
|
|
23760
|
+
if (typeof enabled !== 'undefined') {
|
|
23761
|
+
payload['enabled'] = enabled;
|
|
21852
23762
|
}
|
|
21853
23763
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21854
23764
|
const apiHeaders = {
|
|
21855
23765
|
'content-type': 'application/json',
|
|
21856
23766
|
};
|
|
21857
|
-
return this.client.call('
|
|
23767
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21858
23768
|
}
|
|
21859
|
-
|
|
23769
|
+
updateOAuth2Yahoo(paramsOrFirst, ...rest) {
|
|
21860
23770
|
let params;
|
|
21861
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23771
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21862
23772
|
params = (paramsOrFirst || {});
|
|
21863
23773
|
}
|
|
21864
23774
|
else {
|
|
21865
23775
|
params = {
|
|
21866
|
-
|
|
23776
|
+
clientId: paramsOrFirst,
|
|
23777
|
+
clientSecret: rest[0],
|
|
23778
|
+
enabled: rest[1]
|
|
21867
23779
|
};
|
|
21868
23780
|
}
|
|
21869
|
-
const
|
|
21870
|
-
|
|
21871
|
-
|
|
21872
|
-
|
|
21873
|
-
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
23781
|
+
const clientId = params.clientId;
|
|
23782
|
+
const clientSecret = params.clientSecret;
|
|
23783
|
+
const enabled = params.enabled;
|
|
23784
|
+
const apiPath = '/project/oauth2/yahoo';
|
|
21874
23785
|
const payload = {};
|
|
23786
|
+
if (typeof clientId !== 'undefined') {
|
|
23787
|
+
payload['clientId'] = clientId;
|
|
23788
|
+
}
|
|
23789
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23790
|
+
payload['clientSecret'] = clientSecret;
|
|
23791
|
+
}
|
|
23792
|
+
if (typeof enabled !== 'undefined') {
|
|
23793
|
+
payload['enabled'] = enabled;
|
|
23794
|
+
}
|
|
21875
23795
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21876
|
-
const apiHeaders = {
|
|
21877
|
-
|
|
23796
|
+
const apiHeaders = {
|
|
23797
|
+
'content-type': 'application/json',
|
|
23798
|
+
};
|
|
23799
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21878
23800
|
}
|
|
21879
|
-
|
|
23801
|
+
updateOAuth2Yandex(paramsOrFirst, ...rest) {
|
|
21880
23802
|
let params;
|
|
21881
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23803
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21882
23804
|
params = (paramsOrFirst || {});
|
|
21883
23805
|
}
|
|
21884
23806
|
else {
|
|
21885
23807
|
params = {
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
expire: rest[2]
|
|
23808
|
+
clientId: paramsOrFirst,
|
|
23809
|
+
clientSecret: rest[0],
|
|
23810
|
+
enabled: rest[1]
|
|
21890
23811
|
};
|
|
21891
23812
|
}
|
|
21892
|
-
const
|
|
21893
|
-
const
|
|
21894
|
-
const
|
|
21895
|
-
const
|
|
21896
|
-
|
|
21897
|
-
|
|
23813
|
+
const clientId = params.clientId;
|
|
23814
|
+
const clientSecret = params.clientSecret;
|
|
23815
|
+
const enabled = params.enabled;
|
|
23816
|
+
const apiPath = '/project/oauth2/yandex';
|
|
23817
|
+
const payload = {};
|
|
23818
|
+
if (typeof clientId !== 'undefined') {
|
|
23819
|
+
payload['clientId'] = clientId;
|
|
21898
23820
|
}
|
|
21899
|
-
if (typeof
|
|
21900
|
-
|
|
23821
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23822
|
+
payload['clientSecret'] = clientSecret;
|
|
21901
23823
|
}
|
|
21902
|
-
if (typeof
|
|
21903
|
-
|
|
23824
|
+
if (typeof enabled !== 'undefined') {
|
|
23825
|
+
payload['enabled'] = enabled;
|
|
21904
23826
|
}
|
|
21905
|
-
const
|
|
23827
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23828
|
+
const apiHeaders = {
|
|
23829
|
+
'content-type': 'application/json',
|
|
23830
|
+
};
|
|
23831
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23832
|
+
}
|
|
23833
|
+
updateOAuth2Zoho(paramsOrFirst, ...rest) {
|
|
23834
|
+
let params;
|
|
23835
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23836
|
+
params = (paramsOrFirst || {});
|
|
23837
|
+
}
|
|
23838
|
+
else {
|
|
23839
|
+
params = {
|
|
23840
|
+
clientId: paramsOrFirst,
|
|
23841
|
+
clientSecret: rest[0],
|
|
23842
|
+
enabled: rest[1]
|
|
23843
|
+
};
|
|
23844
|
+
}
|
|
23845
|
+
const clientId = params.clientId;
|
|
23846
|
+
const clientSecret = params.clientSecret;
|
|
23847
|
+
const enabled = params.enabled;
|
|
23848
|
+
const apiPath = '/project/oauth2/zoho';
|
|
21906
23849
|
const payload = {};
|
|
21907
|
-
if (typeof
|
|
21908
|
-
payload['
|
|
23850
|
+
if (typeof clientId !== 'undefined') {
|
|
23851
|
+
payload['clientId'] = clientId;
|
|
21909
23852
|
}
|
|
21910
|
-
if (typeof
|
|
21911
|
-
payload['
|
|
23853
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23854
|
+
payload['clientSecret'] = clientSecret;
|
|
21912
23855
|
}
|
|
21913
|
-
if (typeof
|
|
21914
|
-
payload['
|
|
23856
|
+
if (typeof enabled !== 'undefined') {
|
|
23857
|
+
payload['enabled'] = enabled;
|
|
21915
23858
|
}
|
|
21916
23859
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21917
23860
|
const apiHeaders = {
|
|
21918
23861
|
'content-type': 'application/json',
|
|
21919
23862
|
};
|
|
21920
|
-
return this.client.call('
|
|
23863
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21921
23864
|
}
|
|
21922
|
-
|
|
23865
|
+
updateOAuth2Zoom(paramsOrFirst, ...rest) {
|
|
21923
23866
|
let params;
|
|
21924
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23867
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21925
23868
|
params = (paramsOrFirst || {});
|
|
21926
23869
|
}
|
|
21927
23870
|
else {
|
|
21928
23871
|
params = {
|
|
21929
|
-
|
|
23872
|
+
clientId: paramsOrFirst,
|
|
23873
|
+
clientSecret: rest[0],
|
|
23874
|
+
enabled: rest[1]
|
|
21930
23875
|
};
|
|
21931
23876
|
}
|
|
21932
|
-
const
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
23877
|
+
const clientId = params.clientId;
|
|
23878
|
+
const clientSecret = params.clientSecret;
|
|
23879
|
+
const enabled = params.enabled;
|
|
23880
|
+
const apiPath = '/project/oauth2/zoom';
|
|
21937
23881
|
const payload = {};
|
|
23882
|
+
if (typeof clientId !== 'undefined') {
|
|
23883
|
+
payload['clientId'] = clientId;
|
|
23884
|
+
}
|
|
23885
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23886
|
+
payload['clientSecret'] = clientSecret;
|
|
23887
|
+
}
|
|
23888
|
+
if (typeof enabled !== 'undefined') {
|
|
23889
|
+
payload['enabled'] = enabled;
|
|
23890
|
+
}
|
|
21938
23891
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21939
23892
|
const apiHeaders = {
|
|
21940
23893
|
'content-type': 'application/json',
|
|
21941
23894
|
};
|
|
21942
|
-
return this.client.call('
|
|
23895
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21943
23896
|
}
|
|
21944
|
-
|
|
23897
|
+
getOAuth2Provider(paramsOrFirst) {
|
|
21945
23898
|
let params;
|
|
21946
23899
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21947
23900
|
params = (paramsOrFirst || {});
|
|
21948
23901
|
}
|
|
21949
23902
|
else {
|
|
21950
23903
|
params = {
|
|
21951
|
-
|
|
23904
|
+
provider: paramsOrFirst
|
|
21952
23905
|
};
|
|
21953
23906
|
}
|
|
21954
|
-
const
|
|
21955
|
-
if (typeof
|
|
21956
|
-
throw new AppwriteException('Missing required parameter: "
|
|
23907
|
+
const provider = params.provider;
|
|
23908
|
+
if (typeof provider === 'undefined') {
|
|
23909
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
21957
23910
|
}
|
|
21958
|
-
const apiPath = '/project/
|
|
23911
|
+
const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
|
|
21959
23912
|
const payload = {};
|
|
21960
|
-
if (typeof labels !== 'undefined') {
|
|
21961
|
-
payload['labels'] = labels;
|
|
21962
|
-
}
|
|
21963
23913
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21964
|
-
const apiHeaders = {
|
|
21965
|
-
|
|
21966
|
-
};
|
|
21967
|
-
return this.client.call('put', uri, apiHeaders, payload);
|
|
23914
|
+
const apiHeaders = {};
|
|
23915
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21968
23916
|
}
|
|
21969
23917
|
listPlatforms(paramsOrFirst, ...rest) {
|
|
21970
23918
|
let params;
|
|
@@ -22428,6 +24376,31 @@
|
|
|
22428
24376
|
};
|
|
22429
24377
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22430
24378
|
}
|
|
24379
|
+
listPolicies(paramsOrFirst, ...rest) {
|
|
24380
|
+
let params;
|
|
24381
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24382
|
+
params = (paramsOrFirst || {});
|
|
24383
|
+
}
|
|
24384
|
+
else {
|
|
24385
|
+
params = {
|
|
24386
|
+
queries: paramsOrFirst,
|
|
24387
|
+
total: rest[0]
|
|
24388
|
+
};
|
|
24389
|
+
}
|
|
24390
|
+
const queries = params.queries;
|
|
24391
|
+
const total = params.total;
|
|
24392
|
+
const apiPath = '/project/policies';
|
|
24393
|
+
const payload = {};
|
|
24394
|
+
if (typeof queries !== 'undefined') {
|
|
24395
|
+
payload['queries'] = queries;
|
|
24396
|
+
}
|
|
24397
|
+
if (typeof total !== 'undefined') {
|
|
24398
|
+
payload['total'] = total;
|
|
24399
|
+
}
|
|
24400
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24401
|
+
const apiHeaders = {};
|
|
24402
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24403
|
+
}
|
|
22431
24404
|
updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
|
|
22432
24405
|
let params;
|
|
22433
24406
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -22670,6 +24643,26 @@
|
|
|
22670
24643
|
};
|
|
22671
24644
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22672
24645
|
}
|
|
24646
|
+
getPolicy(paramsOrFirst) {
|
|
24647
|
+
let params;
|
|
24648
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('policyId' in paramsOrFirst))) {
|
|
24649
|
+
params = (paramsOrFirst || {});
|
|
24650
|
+
}
|
|
24651
|
+
else {
|
|
24652
|
+
params = {
|
|
24653
|
+
policyId: paramsOrFirst
|
|
24654
|
+
};
|
|
24655
|
+
}
|
|
24656
|
+
const policyId = params.policyId;
|
|
24657
|
+
if (typeof policyId === 'undefined') {
|
|
24658
|
+
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
24659
|
+
}
|
|
24660
|
+
const apiPath = '/project/policies/{policyId}'.replace('{policyId}', policyId);
|
|
24661
|
+
const payload = {};
|
|
24662
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24663
|
+
const apiHeaders = {};
|
|
24664
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24665
|
+
}
|
|
22673
24666
|
updateProtocol(paramsOrFirst, ...rest) {
|
|
22674
24667
|
let params;
|
|
22675
24668
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('protocolId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
@@ -22807,20 +24800,45 @@
|
|
|
22807
24800
|
emails: paramsOrFirst
|
|
22808
24801
|
};
|
|
22809
24802
|
}
|
|
22810
|
-
const emails = params.emails;
|
|
22811
|
-
if (typeof emails === 'undefined') {
|
|
22812
|
-
throw new AppwriteException('Missing required parameter: "emails"');
|
|
22813
|
-
}
|
|
22814
|
-
const apiPath = '/project/smtp/tests';
|
|
24803
|
+
const emails = params.emails;
|
|
24804
|
+
if (typeof emails === 'undefined') {
|
|
24805
|
+
throw new AppwriteException('Missing required parameter: "emails"');
|
|
24806
|
+
}
|
|
24807
|
+
const apiPath = '/project/smtp/tests';
|
|
24808
|
+
const payload = {};
|
|
24809
|
+
if (typeof emails !== 'undefined') {
|
|
24810
|
+
payload['emails'] = emails;
|
|
24811
|
+
}
|
|
24812
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24813
|
+
const apiHeaders = {
|
|
24814
|
+
'content-type': 'application/json',
|
|
24815
|
+
};
|
|
24816
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
24817
|
+
}
|
|
24818
|
+
listEmailTemplates(paramsOrFirst, ...rest) {
|
|
24819
|
+
let params;
|
|
24820
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24821
|
+
params = (paramsOrFirst || {});
|
|
24822
|
+
}
|
|
24823
|
+
else {
|
|
24824
|
+
params = {
|
|
24825
|
+
queries: paramsOrFirst,
|
|
24826
|
+
total: rest[0]
|
|
24827
|
+
};
|
|
24828
|
+
}
|
|
24829
|
+
const queries = params.queries;
|
|
24830
|
+
const total = params.total;
|
|
24831
|
+
const apiPath = '/project/templates/email';
|
|
22815
24832
|
const payload = {};
|
|
22816
|
-
if (typeof
|
|
22817
|
-
payload['
|
|
24833
|
+
if (typeof queries !== 'undefined') {
|
|
24834
|
+
payload['queries'] = queries;
|
|
24835
|
+
}
|
|
24836
|
+
if (typeof total !== 'undefined') {
|
|
24837
|
+
payload['total'] = total;
|
|
22818
24838
|
}
|
|
22819
24839
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22820
|
-
const apiHeaders = {
|
|
22821
|
-
|
|
22822
|
-
};
|
|
22823
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
24840
|
+
const apiHeaders = {};
|
|
24841
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22824
24842
|
}
|
|
22825
24843
|
updateEmailTemplate(paramsOrFirst, ...rest) {
|
|
22826
24844
|
let params;
|
|
@@ -23315,93 +25333,6 @@
|
|
|
23315
25333
|
};
|
|
23316
25334
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23317
25335
|
}
|
|
23318
|
-
delete(paramsOrFirst) {
|
|
23319
|
-
let params;
|
|
23320
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23321
|
-
params = (paramsOrFirst || {});
|
|
23322
|
-
}
|
|
23323
|
-
else {
|
|
23324
|
-
params = {
|
|
23325
|
-
projectId: paramsOrFirst
|
|
23326
|
-
};
|
|
23327
|
-
}
|
|
23328
|
-
const projectId = params.projectId;
|
|
23329
|
-
if (typeof projectId === 'undefined') {
|
|
23330
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
23331
|
-
}
|
|
23332
|
-
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
|
23333
|
-
const payload = {};
|
|
23334
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23335
|
-
const apiHeaders = {
|
|
23336
|
-
'content-type': 'application/json',
|
|
23337
|
-
};
|
|
23338
|
-
return this.client.call('delete', uri, apiHeaders, payload);
|
|
23339
|
-
}
|
|
23340
|
-
updateMockNumbers(paramsOrFirst, ...rest) {
|
|
23341
|
-
let params;
|
|
23342
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23343
|
-
params = (paramsOrFirst || {});
|
|
23344
|
-
}
|
|
23345
|
-
else {
|
|
23346
|
-
params = {
|
|
23347
|
-
projectId: paramsOrFirst,
|
|
23348
|
-
numbers: rest[0]
|
|
23349
|
-
};
|
|
23350
|
-
}
|
|
23351
|
-
const projectId = params.projectId;
|
|
23352
|
-
const numbers = params.numbers;
|
|
23353
|
-
if (typeof projectId === 'undefined') {
|
|
23354
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
23355
|
-
}
|
|
23356
|
-
if (typeof numbers === 'undefined') {
|
|
23357
|
-
throw new AppwriteException('Missing required parameter: "numbers"');
|
|
23358
|
-
}
|
|
23359
|
-
const apiPath = '/projects/{projectId}/auth/mock-numbers'.replace('{projectId}', projectId);
|
|
23360
|
-
const payload = {};
|
|
23361
|
-
if (typeof numbers !== 'undefined') {
|
|
23362
|
-
payload['numbers'] = numbers;
|
|
23363
|
-
}
|
|
23364
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23365
|
-
const apiHeaders = {
|
|
23366
|
-
'content-type': 'application/json',
|
|
23367
|
-
};
|
|
23368
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23369
|
-
}
|
|
23370
|
-
updateAuthStatus(paramsOrFirst, ...rest) {
|
|
23371
|
-
let params;
|
|
23372
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23373
|
-
params = (paramsOrFirst || {});
|
|
23374
|
-
}
|
|
23375
|
-
else {
|
|
23376
|
-
params = {
|
|
23377
|
-
projectId: paramsOrFirst,
|
|
23378
|
-
method: rest[0],
|
|
23379
|
-
status: rest[1]
|
|
23380
|
-
};
|
|
23381
|
-
}
|
|
23382
|
-
const projectId = params.projectId;
|
|
23383
|
-
const method = params.method;
|
|
23384
|
-
const status = params.status;
|
|
23385
|
-
if (typeof projectId === 'undefined') {
|
|
23386
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
23387
|
-
}
|
|
23388
|
-
if (typeof method === 'undefined') {
|
|
23389
|
-
throw new AppwriteException('Missing required parameter: "method"');
|
|
23390
|
-
}
|
|
23391
|
-
if (typeof status === 'undefined') {
|
|
23392
|
-
throw new AppwriteException('Missing required parameter: "status"');
|
|
23393
|
-
}
|
|
23394
|
-
const apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
|
|
23395
|
-
const payload = {};
|
|
23396
|
-
if (typeof status !== 'undefined') {
|
|
23397
|
-
payload['status'] = status;
|
|
23398
|
-
}
|
|
23399
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23400
|
-
const apiHeaders = {
|
|
23401
|
-
'content-type': 'application/json',
|
|
23402
|
-
};
|
|
23403
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23404
|
-
}
|
|
23405
25336
|
updateConsoleAccess(paramsOrFirst) {
|
|
23406
25337
|
let params;
|
|
23407
25338
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -23582,86 +25513,6 @@
|
|
|
23582
25513
|
};
|
|
23583
25514
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
23584
25515
|
}
|
|
23585
|
-
createJWT(paramsOrFirst, ...rest) {
|
|
23586
|
-
let params;
|
|
23587
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23588
|
-
params = (paramsOrFirst || {});
|
|
23589
|
-
}
|
|
23590
|
-
else {
|
|
23591
|
-
params = {
|
|
23592
|
-
projectId: paramsOrFirst,
|
|
23593
|
-
scopes: rest[0],
|
|
23594
|
-
duration: rest[1]
|
|
23595
|
-
};
|
|
23596
|
-
}
|
|
23597
|
-
const projectId = params.projectId;
|
|
23598
|
-
const scopes = params.scopes;
|
|
23599
|
-
const duration = params.duration;
|
|
23600
|
-
if (typeof projectId === 'undefined') {
|
|
23601
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
23602
|
-
}
|
|
23603
|
-
if (typeof scopes === 'undefined') {
|
|
23604
|
-
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
23605
|
-
}
|
|
23606
|
-
const apiPath = '/projects/{projectId}/jwts'.replace('{projectId}', projectId);
|
|
23607
|
-
const payload = {};
|
|
23608
|
-
if (typeof scopes !== 'undefined') {
|
|
23609
|
-
payload['scopes'] = scopes;
|
|
23610
|
-
}
|
|
23611
|
-
if (typeof duration !== 'undefined') {
|
|
23612
|
-
payload['duration'] = duration;
|
|
23613
|
-
}
|
|
23614
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23615
|
-
const apiHeaders = {
|
|
23616
|
-
'content-type': 'application/json',
|
|
23617
|
-
};
|
|
23618
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
23619
|
-
}
|
|
23620
|
-
updateOAuth2(paramsOrFirst, ...rest) {
|
|
23621
|
-
let params;
|
|
23622
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23623
|
-
params = (paramsOrFirst || {});
|
|
23624
|
-
}
|
|
23625
|
-
else {
|
|
23626
|
-
params = {
|
|
23627
|
-
projectId: paramsOrFirst,
|
|
23628
|
-
provider: rest[0],
|
|
23629
|
-
appId: rest[1],
|
|
23630
|
-
secret: rest[2],
|
|
23631
|
-
enabled: rest[3]
|
|
23632
|
-
};
|
|
23633
|
-
}
|
|
23634
|
-
const projectId = params.projectId;
|
|
23635
|
-
const provider = params.provider;
|
|
23636
|
-
const appId = params.appId;
|
|
23637
|
-
const secret = params.secret;
|
|
23638
|
-
const enabled = params.enabled;
|
|
23639
|
-
if (typeof projectId === 'undefined') {
|
|
23640
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
23641
|
-
}
|
|
23642
|
-
if (typeof provider === 'undefined') {
|
|
23643
|
-
throw new AppwriteException('Missing required parameter: "provider"');
|
|
23644
|
-
}
|
|
23645
|
-
const apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
|
|
23646
|
-
const payload = {};
|
|
23647
|
-
if (typeof provider !== 'undefined') {
|
|
23648
|
-
payload['provider'] = provider;
|
|
23649
|
-
}
|
|
23650
|
-
if (typeof appId !== 'undefined') {
|
|
23651
|
-
payload['appId'] = appId;
|
|
23652
|
-
}
|
|
23653
|
-
if (typeof secret !== 'undefined') {
|
|
23654
|
-
payload['secret'] = secret;
|
|
23655
|
-
}
|
|
23656
|
-
if (typeof enabled !== 'undefined') {
|
|
23657
|
-
payload['enabled'] = enabled;
|
|
23658
|
-
}
|
|
23659
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23660
|
-
const apiHeaders = {
|
|
23661
|
-
'content-type': 'application/json',
|
|
23662
|
-
};
|
|
23663
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23664
|
-
}
|
|
23665
25516
|
listSchedules(paramsOrFirst, ...rest) {
|
|
23666
25517
|
let params;
|
|
23667
25518
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -33987,73 +35838,84 @@
|
|
|
33987
35838
|
Scopes["Account"] = "account";
|
|
33988
35839
|
Scopes["TeamsRead"] = "teams.read";
|
|
33989
35840
|
Scopes["TeamsWrite"] = "teams.write";
|
|
33990
|
-
Scopes["
|
|
35841
|
+
Scopes["ProjectRead"] = "project.read";
|
|
35842
|
+
Scopes["ProjectWrite"] = "project.write";
|
|
35843
|
+
Scopes["KeysRead"] = "keys.read";
|
|
35844
|
+
Scopes["KeysWrite"] = "keys.write";
|
|
35845
|
+
Scopes["PlatformsRead"] = "platforms.read";
|
|
35846
|
+
Scopes["PlatformsWrite"] = "platforms.write";
|
|
35847
|
+
Scopes["MocksRead"] = "mocks.read";
|
|
35848
|
+
Scopes["MocksWrite"] = "mocks.write";
|
|
35849
|
+
Scopes["PoliciesRead"] = "policies.read";
|
|
35850
|
+
Scopes["PoliciesWrite"] = "policies.write";
|
|
35851
|
+
Scopes["ProjectPoliciesRead"] = "project.policies.read";
|
|
35852
|
+
Scopes["ProjectPoliciesWrite"] = "project.policies.write";
|
|
35853
|
+
Scopes["TemplatesRead"] = "templates.read";
|
|
35854
|
+
Scopes["TemplatesWrite"] = "templates.write";
|
|
35855
|
+
Scopes["Oauth2Read"] = "oauth2.read";
|
|
35856
|
+
Scopes["Oauth2Write"] = "oauth2.write";
|
|
33991
35857
|
Scopes["UsersRead"] = "users.read";
|
|
33992
35858
|
Scopes["UsersWrite"] = "users.write";
|
|
35859
|
+
Scopes["SessionsRead"] = "sessions.read";
|
|
35860
|
+
Scopes["SessionsWrite"] = "sessions.write";
|
|
33993
35861
|
Scopes["DatabasesRead"] = "databases.read";
|
|
33994
35862
|
Scopes["DatabasesWrite"] = "databases.write";
|
|
33995
|
-
Scopes["CollectionsRead"] = "collections.read";
|
|
33996
|
-
Scopes["CollectionsWrite"] = "collections.write";
|
|
33997
35863
|
Scopes["TablesRead"] = "tables.read";
|
|
33998
35864
|
Scopes["TablesWrite"] = "tables.write";
|
|
33999
|
-
Scopes["AttributesRead"] = "attributes.read";
|
|
34000
|
-
Scopes["AttributesWrite"] = "attributes.write";
|
|
34001
35865
|
Scopes["ColumnsRead"] = "columns.read";
|
|
34002
35866
|
Scopes["ColumnsWrite"] = "columns.write";
|
|
34003
35867
|
Scopes["IndexesRead"] = "indexes.read";
|
|
34004
35868
|
Scopes["IndexesWrite"] = "indexes.write";
|
|
34005
|
-
Scopes["DocumentsRead"] = "documents.read";
|
|
34006
|
-
Scopes["DocumentsWrite"] = "documents.write";
|
|
34007
35869
|
Scopes["RowsRead"] = "rows.read";
|
|
34008
35870
|
Scopes["RowsWrite"] = "rows.write";
|
|
34009
|
-
Scopes["
|
|
34010
|
-
Scopes["
|
|
35871
|
+
Scopes["CollectionsRead"] = "collections.read";
|
|
35872
|
+
Scopes["CollectionsWrite"] = "collections.write";
|
|
35873
|
+
Scopes["AttributesRead"] = "attributes.read";
|
|
35874
|
+
Scopes["AttributesWrite"] = "attributes.write";
|
|
35875
|
+
Scopes["DocumentsRead"] = "documents.read";
|
|
35876
|
+
Scopes["DocumentsWrite"] = "documents.write";
|
|
34011
35877
|
Scopes["BucketsRead"] = "buckets.read";
|
|
34012
35878
|
Scopes["BucketsWrite"] = "buckets.write";
|
|
35879
|
+
Scopes["FilesRead"] = "files.read";
|
|
35880
|
+
Scopes["FilesWrite"] = "files.write";
|
|
35881
|
+
Scopes["TokensRead"] = "tokens.read";
|
|
35882
|
+
Scopes["TokensWrite"] = "tokens.write";
|
|
34013
35883
|
Scopes["FunctionsRead"] = "functions.read";
|
|
34014
35884
|
Scopes["FunctionsWrite"] = "functions.write";
|
|
35885
|
+
Scopes["ExecutionsRead"] = "executions.read";
|
|
35886
|
+
Scopes["ExecutionsWrite"] = "executions.write";
|
|
35887
|
+
Scopes["ExecutionRead"] = "execution.read";
|
|
35888
|
+
Scopes["ExecutionWrite"] = "execution.write";
|
|
34015
35889
|
Scopes["SitesRead"] = "sites.read";
|
|
34016
35890
|
Scopes["SitesWrite"] = "sites.write";
|
|
34017
35891
|
Scopes["LogRead"] = "log.read";
|
|
34018
35892
|
Scopes["LogWrite"] = "log.write";
|
|
34019
|
-
Scopes["ExecutionRead"] = "execution.read";
|
|
34020
|
-
Scopes["ExecutionWrite"] = "execution.write";
|
|
34021
|
-
Scopes["LocaleRead"] = "locale.read";
|
|
34022
|
-
Scopes["AvatarsRead"] = "avatars.read";
|
|
34023
|
-
Scopes["HealthRead"] = "health.read";
|
|
34024
35893
|
Scopes["ProvidersRead"] = "providers.read";
|
|
34025
35894
|
Scopes["ProvidersWrite"] = "providers.write";
|
|
34026
|
-
Scopes["MessagesRead"] = "messages.read";
|
|
34027
|
-
Scopes["MessagesWrite"] = "messages.write";
|
|
34028
35895
|
Scopes["TopicsRead"] = "topics.read";
|
|
34029
35896
|
Scopes["TopicsWrite"] = "topics.write";
|
|
34030
35897
|
Scopes["SubscribersRead"] = "subscribers.read";
|
|
34031
35898
|
Scopes["SubscribersWrite"] = "subscribers.write";
|
|
34032
35899
|
Scopes["TargetsRead"] = "targets.read";
|
|
34033
35900
|
Scopes["TargetsWrite"] = "targets.write";
|
|
34034
|
-
Scopes["
|
|
34035
|
-
Scopes["
|
|
34036
|
-
Scopes["
|
|
34037
|
-
Scopes["
|
|
35901
|
+
Scopes["MessagesRead"] = "messages.read";
|
|
35902
|
+
Scopes["MessagesWrite"] = "messages.write";
|
|
35903
|
+
Scopes["WebhooksRead"] = "webhooks.read";
|
|
35904
|
+
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
35905
|
+
Scopes["LocaleRead"] = "locale.read";
|
|
35906
|
+
Scopes["AvatarsRead"] = "avatars.read";
|
|
35907
|
+
Scopes["HealthRead"] = "health.read";
|
|
35908
|
+
Scopes["AssistantRead"] = "assistant.read";
|
|
34038
35909
|
Scopes["MigrationsRead"] = "migrations.read";
|
|
34039
35910
|
Scopes["MigrationsWrite"] = "migrations.write";
|
|
35911
|
+
Scopes["SchedulesRead"] = "schedules.read";
|
|
35912
|
+
Scopes["SchedulesWrite"] = "schedules.write";
|
|
34040
35913
|
Scopes["VcsRead"] = "vcs.read";
|
|
34041
35914
|
Scopes["VcsWrite"] = "vcs.write";
|
|
34042
|
-
Scopes["
|
|
34043
|
-
Scopes["
|
|
34044
|
-
Scopes["
|
|
34045
|
-
Scopes["
|
|
34046
|
-
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
34047
|
-
Scopes["ProjectRead"] = "project.read";
|
|
34048
|
-
Scopes["ProjectWrite"] = "project.write";
|
|
34049
|
-
Scopes["KeysRead"] = "keys.read";
|
|
34050
|
-
Scopes["KeysWrite"] = "keys.write";
|
|
34051
|
-
Scopes["PlatformsRead"] = "platforms.read";
|
|
34052
|
-
Scopes["PlatformsWrite"] = "platforms.write";
|
|
34053
|
-
Scopes["PoliciesWrite"] = "policies.write";
|
|
34054
|
-
Scopes["TemplatesRead"] = "templates.read";
|
|
34055
|
-
Scopes["TemplatesWrite"] = "templates.write";
|
|
34056
|
-
Scopes["PoliciesRead"] = "policies.read";
|
|
35915
|
+
Scopes["RulesRead"] = "rules.read";
|
|
35916
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
35917
|
+
Scopes["BackupsPoliciesRead"] = "backups.policies.read";
|
|
35918
|
+
Scopes["BackupsPoliciesWrite"] = "backups.policies.write";
|
|
34057
35919
|
Scopes["ArchivesRead"] = "archives.read";
|
|
34058
35920
|
Scopes["ArchivesWrite"] = "archives.write";
|
|
34059
35921
|
Scopes["RestorationsRead"] = "restorations.read";
|
|
@@ -34097,9 +35959,12 @@
|
|
|
34097
35959
|
OAuthProvider["Etsy"] = "etsy";
|
|
34098
35960
|
OAuthProvider["Facebook"] = "facebook";
|
|
34099
35961
|
OAuthProvider["Figma"] = "figma";
|
|
35962
|
+
OAuthProvider["Fusionauth"] = "fusionauth";
|
|
34100
35963
|
OAuthProvider["Github"] = "github";
|
|
34101
35964
|
OAuthProvider["Gitlab"] = "gitlab";
|
|
34102
35965
|
OAuthProvider["Google"] = "google";
|
|
35966
|
+
OAuthProvider["Keycloak"] = "keycloak";
|
|
35967
|
+
OAuthProvider["Kick"] = "kick";
|
|
34103
35968
|
OAuthProvider["Linkedin"] = "linkedin";
|
|
34104
35969
|
OAuthProvider["Microsoft"] = "microsoft";
|
|
34105
35970
|
OAuthProvider["Notion"] = "notion";
|
|
@@ -34847,6 +36712,82 @@
|
|
|
34847
36712
|
ConsoleResourceType["Rules"] = "rules";
|
|
34848
36713
|
})(exports.ConsoleResourceType || (exports.ConsoleResourceType = {}));
|
|
34849
36714
|
|
|
36715
|
+
exports.QuerySuggestionResource = void 0;
|
|
36716
|
+
(function (QuerySuggestionResource) {
|
|
36717
|
+
QuerySuggestionResource["Activities"] = "activities";
|
|
36718
|
+
QuerySuggestionResource["ActivityEvents"] = "activityevents";
|
|
36719
|
+
QuerySuggestionResource["Archives"] = "archives";
|
|
36720
|
+
QuerySuggestionResource["Credits"] = "credits";
|
|
36721
|
+
QuerySuggestionResource["DnsRecords"] = "dnsrecords";
|
|
36722
|
+
QuerySuggestionResource["Domains"] = "domains";
|
|
36723
|
+
QuerySuggestionResource["Invoices"] = "invoices";
|
|
36724
|
+
QuerySuggestionResource["PaymentMethods"] = "paymentmethods";
|
|
36725
|
+
QuerySuggestionResource["Policies"] = "policies";
|
|
36726
|
+
QuerySuggestionResource["Projects"] = "projects";
|
|
36727
|
+
QuerySuggestionResource["Restorations"] = "restorations";
|
|
36728
|
+
QuerySuggestionResource["TeamAggregations"] = "teamaggregations";
|
|
36729
|
+
QuerySuggestionResource["Teams"] = "teams";
|
|
36730
|
+
QuerySuggestionResource["Databases"] = "databases";
|
|
36731
|
+
QuerySuggestionResource["Tables"] = "tables";
|
|
36732
|
+
QuerySuggestionResource["Rows"] = "rows";
|
|
36733
|
+
QuerySuggestionResource["Schedules"] = "schedules";
|
|
36734
|
+
QuerySuggestionResource["Platforms"] = "platforms";
|
|
36735
|
+
QuerySuggestionResource["Keys"] = "keys";
|
|
36736
|
+
QuerySuggestionResource["DevKeys"] = "devkeys";
|
|
36737
|
+
QuerySuggestionResource["Webhooks"] = "webhooks";
|
|
36738
|
+
QuerySuggestionResource["Certificates"] = "certificates";
|
|
36739
|
+
QuerySuggestionResource["Realtime"] = "realtime";
|
|
36740
|
+
QuerySuggestionResource["Rules"] = "rules";
|
|
36741
|
+
QuerySuggestionResource["Installations"] = "installations";
|
|
36742
|
+
QuerySuggestionResource["Repositories"] = "repositories";
|
|
36743
|
+
QuerySuggestionResource["VcsComments"] = "vcscomments";
|
|
36744
|
+
QuerySuggestionResource["VcsCommentLocks"] = "vcscommentlocks";
|
|
36745
|
+
QuerySuggestionResource["Users"] = "users";
|
|
36746
|
+
QuerySuggestionResource["Cache"] = "cache";
|
|
36747
|
+
QuerySuggestionResource["Tokens"] = "tokens";
|
|
36748
|
+
QuerySuggestionResource["Authenticators"] = "authenticators";
|
|
36749
|
+
QuerySuggestionResource["Challenges"] = "challenges";
|
|
36750
|
+
QuerySuggestionResource["Sessions"] = "sessions";
|
|
36751
|
+
QuerySuggestionResource["Identities"] = "identities";
|
|
36752
|
+
QuerySuggestionResource["Memberships"] = "memberships";
|
|
36753
|
+
QuerySuggestionResource["Buckets"] = "buckets";
|
|
36754
|
+
QuerySuggestionResource["Providers"] = "providers";
|
|
36755
|
+
QuerySuggestionResource["Messages"] = "messages";
|
|
36756
|
+
QuerySuggestionResource["Topics"] = "topics";
|
|
36757
|
+
QuerySuggestionResource["Subscribers"] = "subscribers";
|
|
36758
|
+
QuerySuggestionResource["Targets"] = "targets";
|
|
36759
|
+
QuerySuggestionResource["Companies"] = "companies";
|
|
36760
|
+
QuerySuggestionResource["BillingAddresses"] = "billingaddresses";
|
|
36761
|
+
QuerySuggestionResource["BillingAggregations"] = "billingaggregations";
|
|
36762
|
+
QuerySuggestionResource["BillingAggregationResources"] = "billingaggregationresources";
|
|
36763
|
+
QuerySuggestionResource["BillingTeamProjectAggregations"] = "billingteamprojectaggregations";
|
|
36764
|
+
QuerySuggestionResource["BillingTeamAggregationsV2"] = "billingteamaggregations_v2";
|
|
36765
|
+
QuerySuggestionResource["BillingTeamAggregationResources"] = "billingteamaggregationresources";
|
|
36766
|
+
QuerySuggestionResource["BillingInvoicesV2"] = "billinginvoices_v2";
|
|
36767
|
+
QuerySuggestionResource["BillingAddons"] = "billingaddons";
|
|
36768
|
+
QuerySuggestionResource["Alerts"] = "alerts";
|
|
36769
|
+
QuerySuggestionResource["Payments"] = "payments";
|
|
36770
|
+
QuerySuggestionResource["BillingDiscounts"] = "billingdiscounts";
|
|
36771
|
+
QuerySuggestionResource["Sources"] = "sources";
|
|
36772
|
+
QuerySuggestionResource["Deals"] = "deals";
|
|
36773
|
+
QuerySuggestionResource["Blocks"] = "blocks";
|
|
36774
|
+
QuerySuggestionResource["Threats"] = "threats";
|
|
36775
|
+
QuerySuggestionResource["Feedbacks"] = "feedbacks";
|
|
36776
|
+
QuerySuggestionResource["ShInstallations"] = "sh_installations";
|
|
36777
|
+
QuerySuggestionResource["Attributes"] = "attributes";
|
|
36778
|
+
QuerySuggestionResource["Indexes"] = "indexes";
|
|
36779
|
+
QuerySuggestionResource["Functions"] = "functions";
|
|
36780
|
+
QuerySuggestionResource["Sites"] = "sites";
|
|
36781
|
+
QuerySuggestionResource["Deployments"] = "deployments";
|
|
36782
|
+
QuerySuggestionResource["Executions"] = "executions";
|
|
36783
|
+
QuerySuggestionResource["Variables"] = "variables";
|
|
36784
|
+
QuerySuggestionResource["Migrations"] = "migrations";
|
|
36785
|
+
QuerySuggestionResource["ResourceTokens"] = "resourcetokens";
|
|
36786
|
+
QuerySuggestionResource["Transactions"] = "transactions";
|
|
36787
|
+
QuerySuggestionResource["TransactionLogs"] = "transactionlogs";
|
|
36788
|
+
QuerySuggestionResource["Stats"] = "stats";
|
|
36789
|
+
})(exports.QuerySuggestionResource || (exports.QuerySuggestionResource = {}));
|
|
36790
|
+
|
|
34850
36791
|
exports.UsageRange = void 0;
|
|
34851
36792
|
(function (UsageRange) {
|
|
34852
36793
|
UsageRange["TwentyFourHours"] = "24h";
|
|
@@ -34986,6 +36927,7 @@
|
|
|
34986
36927
|
Runtime["Go124"] = "go-1.24";
|
|
34987
36928
|
Runtime["Go125"] = "go-1.25";
|
|
34988
36929
|
Runtime["Go126"] = "go-1.26";
|
|
36930
|
+
Runtime["Rust183"] = "rust-1.83";
|
|
34989
36931
|
Runtime["Static1"] = "static-1";
|
|
34990
36932
|
Runtime["Flutter324"] = "flutter-3.24";
|
|
34991
36933
|
Runtime["Flutter327"] = "flutter-3.27";
|
|
@@ -35078,6 +37020,7 @@
|
|
|
35078
37020
|
Runtimes["Go124"] = "go-1.24";
|
|
35079
37021
|
Runtimes["Go125"] = "go-1.25";
|
|
35080
37022
|
Runtimes["Go126"] = "go-1.26";
|
|
37023
|
+
Runtimes["Rust183"] = "rust-1.83";
|
|
35081
37024
|
Runtimes["Static1"] = "static-1";
|
|
35082
37025
|
Runtimes["Flutter324"] = "flutter-3.24";
|
|
35083
37026
|
Runtimes["Flutter327"] = "flutter-3.27";
|
|
@@ -35154,6 +37097,23 @@
|
|
|
35154
37097
|
Name["V1migrations"] = "v1-migrations";
|
|
35155
37098
|
})(exports.Name || (exports.Name = {}));
|
|
35156
37099
|
|
|
37100
|
+
exports.ResourceType = void 0;
|
|
37101
|
+
(function (ResourceType) {
|
|
37102
|
+
ResourceType["Projects"] = "projects";
|
|
37103
|
+
ResourceType["Functions"] = "functions";
|
|
37104
|
+
ResourceType["Sites"] = "sites";
|
|
37105
|
+
ResourceType["Databases"] = "databases";
|
|
37106
|
+
ResourceType["Buckets"] = "buckets";
|
|
37107
|
+
ResourceType["Providers"] = "providers";
|
|
37108
|
+
ResourceType["Topics"] = "topics";
|
|
37109
|
+
ResourceType["Subscribers"] = "subscribers";
|
|
37110
|
+
ResourceType["Messages"] = "messages";
|
|
37111
|
+
ResourceType["Function"] = "function";
|
|
37112
|
+
ResourceType["Execution"] = "execution";
|
|
37113
|
+
ResourceType["Message"] = "message";
|
|
37114
|
+
ResourceType["Backup"] = "backup";
|
|
37115
|
+
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
37116
|
+
|
|
35157
37117
|
exports.MessagePriority = void 0;
|
|
35158
37118
|
(function (MessagePriority) {
|
|
35159
37119
|
MessagePriority["Normal"] = "normal";
|
|
@@ -35194,6 +37154,7 @@
|
|
|
35194
37154
|
AppwriteMigrationResource["Site"] = "site";
|
|
35195
37155
|
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
35196
37156
|
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
37157
|
+
AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
|
|
35197
37158
|
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
35198
37159
|
|
|
35199
37160
|
exports.FirebaseMigrationResource = void 0;
|
|
@@ -35245,6 +37206,30 @@
|
|
|
35245
37206
|
Addon["Baa"] = "baa";
|
|
35246
37207
|
})(exports.Addon || (exports.Addon = {}));
|
|
35247
37208
|
|
|
37209
|
+
exports.MethodId = void 0;
|
|
37210
|
+
(function (MethodId) {
|
|
37211
|
+
MethodId["Emailpassword"] = "email-password";
|
|
37212
|
+
MethodId["Magicurl"] = "magic-url";
|
|
37213
|
+
MethodId["Emailotp"] = "email-otp";
|
|
37214
|
+
MethodId["Anonymous"] = "anonymous";
|
|
37215
|
+
MethodId["Invites"] = "invites";
|
|
37216
|
+
MethodId["Jwt"] = "jwt";
|
|
37217
|
+
MethodId["Phone"] = "phone";
|
|
37218
|
+
})(exports.MethodId || (exports.MethodId = {}));
|
|
37219
|
+
|
|
37220
|
+
exports.PolicyId = void 0;
|
|
37221
|
+
(function (PolicyId) {
|
|
37222
|
+
PolicyId["Passworddictionary"] = "password-dictionary";
|
|
37223
|
+
PolicyId["Passwordhistory"] = "password-history";
|
|
37224
|
+
PolicyId["Passwordpersonaldata"] = "password-personal-data";
|
|
37225
|
+
PolicyId["Sessionalert"] = "session-alert";
|
|
37226
|
+
PolicyId["Sessionduration"] = "session-duration";
|
|
37227
|
+
PolicyId["Sessioninvalidation"] = "session-invalidation";
|
|
37228
|
+
PolicyId["Sessionlimit"] = "session-limit";
|
|
37229
|
+
PolicyId["Userlimit"] = "user-limit";
|
|
37230
|
+
PolicyId["Membershipprivacy"] = "membership-privacy";
|
|
37231
|
+
})(exports.PolicyId || (exports.PolicyId = {}));
|
|
37232
|
+
|
|
35248
37233
|
exports.ProtocolId = void 0;
|
|
35249
37234
|
(function (ProtocolId) {
|
|
35250
37235
|
ProtocolId["Rest"] = "rest";
|
|
@@ -35441,25 +37426,6 @@
|
|
|
35441
37426
|
Region["Tor"] = "tor";
|
|
35442
37427
|
})(exports.Region || (exports.Region = {}));
|
|
35443
37428
|
|
|
35444
|
-
exports.AuthMethod = void 0;
|
|
35445
|
-
(function (AuthMethod) {
|
|
35446
|
-
AuthMethod["Emailpassword"] = "email-password";
|
|
35447
|
-
AuthMethod["Magicurl"] = "magic-url";
|
|
35448
|
-
AuthMethod["Emailotp"] = "email-otp";
|
|
35449
|
-
AuthMethod["Anonymous"] = "anonymous";
|
|
35450
|
-
AuthMethod["Invites"] = "invites";
|
|
35451
|
-
AuthMethod["Jwt"] = "jwt";
|
|
35452
|
-
AuthMethod["Phone"] = "phone";
|
|
35453
|
-
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
35454
|
-
|
|
35455
|
-
exports.ResourceType = void 0;
|
|
35456
|
-
(function (ResourceType) {
|
|
35457
|
-
ResourceType["Function"] = "function";
|
|
35458
|
-
ResourceType["Execution"] = "execution";
|
|
35459
|
-
ResourceType["Message"] = "message";
|
|
35460
|
-
ResourceType["Backup"] = "backup";
|
|
35461
|
-
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
35462
|
-
|
|
35463
37429
|
exports.Status = void 0;
|
|
35464
37430
|
(function (Status) {
|
|
35465
37431
|
Status["Active"] = "active";
|
|
@@ -35580,6 +37546,7 @@
|
|
|
35580
37546
|
BuildRuntime["Go124"] = "go-1.24";
|
|
35581
37547
|
BuildRuntime["Go125"] = "go-1.25";
|
|
35582
37548
|
BuildRuntime["Go126"] = "go-1.26";
|
|
37549
|
+
BuildRuntime["Rust183"] = "rust-1.83";
|
|
35583
37550
|
BuildRuntime["Static1"] = "static-1";
|
|
35584
37551
|
BuildRuntime["Flutter324"] = "flutter-3.24";
|
|
35585
37552
|
BuildRuntime["Flutter327"] = "flutter-3.27";
|
|
@@ -35846,6 +37813,7 @@
|
|
|
35846
37813
|
exports.Health = Health;
|
|
35847
37814
|
exports.ID = ID;
|
|
35848
37815
|
exports.Locale = Locale;
|
|
37816
|
+
exports.Manager = Manager;
|
|
35849
37817
|
exports.Messaging = Messaging;
|
|
35850
37818
|
exports.Migrations = Migrations;
|
|
35851
37819
|
exports.Operator = Operator;
|