@appwrite.io/console 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/sdk.js +2113 -295
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2113 -296
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2113 -295
- package/package.json +1 -1
- 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/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 +42 -35
- package/types/index.d.ts +4 -2
- package/types/models.d.ts +1560 -150
- package/types/services/account.d.ts +4 -4
- package/types/services/console.d.ts +14 -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
|
@@ -4418,8 +4418,8 @@
|
|
|
4418
4418
|
'x-sdk-name': 'Console',
|
|
4419
4419
|
'x-sdk-platform': 'console',
|
|
4420
4420
|
'x-sdk-language': 'web',
|
|
4421
|
-
'x-sdk-version': '
|
|
4422
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
4421
|
+
'x-sdk-version': '12.0.0',
|
|
4422
|
+
'X-Appwrite-Response-Format': '1.9.3',
|
|
4423
4423
|
};
|
|
4424
4424
|
this.realtime = {
|
|
4425
4425
|
socket: undefined,
|
|
@@ -7982,6 +7982,19 @@
|
|
|
7982
7982
|
const apiHeaders = {};
|
|
7983
7983
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
7984
7984
|
}
|
|
7985
|
+
/**
|
|
7986
|
+
* 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.
|
|
7987
|
+
*
|
|
7988
|
+
* @throws {AppwriteException}
|
|
7989
|
+
* @returns {Promise<Models.ConsoleOAuth2ProviderList>}
|
|
7990
|
+
*/
|
|
7991
|
+
listOAuth2Providers() {
|
|
7992
|
+
const apiPath = '/console/oauth2-providers';
|
|
7993
|
+
const payload = {};
|
|
7994
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7995
|
+
const apiHeaders = {};
|
|
7996
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
7997
|
+
}
|
|
7985
7998
|
getPlans(paramsOrFirst) {
|
|
7986
7999
|
let params;
|
|
7987
8000
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('platform' in paramsOrFirst))) {
|
|
@@ -8108,6 +8121,19 @@
|
|
|
8108
8121
|
const apiHeaders = {};
|
|
8109
8122
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
8110
8123
|
}
|
|
8124
|
+
/**
|
|
8125
|
+
* List all scopes available for project API keys, along with a description for each scope.
|
|
8126
|
+
*
|
|
8127
|
+
* @throws {AppwriteException}
|
|
8128
|
+
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
8129
|
+
*/
|
|
8130
|
+
listProjectScopes() {
|
|
8131
|
+
const apiPath = '/console/scopes/project';
|
|
8132
|
+
const payload = {};
|
|
8133
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8134
|
+
const apiHeaders = {};
|
|
8135
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
8136
|
+
}
|
|
8111
8137
|
createSource(paramsOrFirst, ...rest) {
|
|
8112
8138
|
let params;
|
|
8113
8139
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -13011,19 +13037,19 @@
|
|
|
13011
13037
|
}
|
|
13012
13038
|
else {
|
|
13013
13039
|
params = {
|
|
13014
|
-
|
|
13040
|
+
invoiceId: paramsOrFirst,
|
|
13015
13041
|
organizationId: rest[0]
|
|
13016
13042
|
};
|
|
13017
13043
|
}
|
|
13018
|
-
const
|
|
13044
|
+
const invoiceId = params.invoiceId;
|
|
13019
13045
|
const organizationId = params.organizationId;
|
|
13020
|
-
if (typeof
|
|
13021
|
-
throw new AppwriteException('Missing required parameter: "
|
|
13046
|
+
if (typeof invoiceId === 'undefined') {
|
|
13047
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
13022
13048
|
}
|
|
13023
13049
|
if (typeof organizationId === 'undefined') {
|
|
13024
13050
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
13025
13051
|
}
|
|
13026
|
-
const apiPath = '/domains/purchases/{
|
|
13052
|
+
const apiPath = '/domains/purchases/{invoiceId}'.replace('{invoiceId}', invoiceId);
|
|
13027
13053
|
const payload = {};
|
|
13028
13054
|
if (typeof organizationId !== 'undefined') {
|
|
13029
13055
|
payload['organizationId'] = organizationId;
|
|
@@ -13143,19 +13169,19 @@
|
|
|
13143
13169
|
}
|
|
13144
13170
|
else {
|
|
13145
13171
|
params = {
|
|
13146
|
-
|
|
13172
|
+
invoiceId: paramsOrFirst,
|
|
13147
13173
|
organizationId: rest[0]
|
|
13148
13174
|
};
|
|
13149
13175
|
}
|
|
13150
|
-
const
|
|
13176
|
+
const invoiceId = params.invoiceId;
|
|
13151
13177
|
const organizationId = params.organizationId;
|
|
13152
|
-
if (typeof
|
|
13153
|
-
throw new AppwriteException('Missing required parameter: "
|
|
13178
|
+
if (typeof invoiceId === 'undefined') {
|
|
13179
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
13154
13180
|
}
|
|
13155
13181
|
if (typeof organizationId === 'undefined') {
|
|
13156
13182
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
13157
13183
|
}
|
|
13158
|
-
const apiPath = '/domains/transfers/in/{
|
|
13184
|
+
const apiPath = '/domains/transfers/in/{invoiceId}'.replace('{invoiceId}', invoiceId);
|
|
13159
13185
|
const payload = {};
|
|
13160
13186
|
if (typeof organizationId !== 'undefined') {
|
|
13161
13187
|
payload['organizationId'] = organizationId;
|
|
@@ -16692,6 +16718,158 @@
|
|
|
16692
16718
|
}
|
|
16693
16719
|
}
|
|
16694
16720
|
|
|
16721
|
+
class Manager {
|
|
16722
|
+
constructor(client) {
|
|
16723
|
+
this.client = client;
|
|
16724
|
+
}
|
|
16725
|
+
createBlock(paramsOrFirst, ...rest) {
|
|
16726
|
+
let params;
|
|
16727
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16728
|
+
params = (paramsOrFirst || {});
|
|
16729
|
+
}
|
|
16730
|
+
else {
|
|
16731
|
+
params = {
|
|
16732
|
+
projectId: paramsOrFirst,
|
|
16733
|
+
resourceType: rest[0],
|
|
16734
|
+
resourceId: rest[1],
|
|
16735
|
+
reason: rest[2],
|
|
16736
|
+
expiredAt: rest[3]
|
|
16737
|
+
};
|
|
16738
|
+
}
|
|
16739
|
+
const projectId = params.projectId;
|
|
16740
|
+
const resourceType = params.resourceType;
|
|
16741
|
+
const resourceId = params.resourceId;
|
|
16742
|
+
const reason = params.reason;
|
|
16743
|
+
const expiredAt = params.expiredAt;
|
|
16744
|
+
if (typeof projectId === 'undefined') {
|
|
16745
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
16746
|
+
}
|
|
16747
|
+
if (typeof resourceType === 'undefined') {
|
|
16748
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
16749
|
+
}
|
|
16750
|
+
const apiPath = '/manager/blocks';
|
|
16751
|
+
const payload = {};
|
|
16752
|
+
if (typeof projectId !== 'undefined') {
|
|
16753
|
+
payload['projectId'] = projectId;
|
|
16754
|
+
}
|
|
16755
|
+
if (typeof resourceType !== 'undefined') {
|
|
16756
|
+
payload['resourceType'] = resourceType;
|
|
16757
|
+
}
|
|
16758
|
+
if (typeof resourceId !== 'undefined') {
|
|
16759
|
+
payload['resourceId'] = resourceId;
|
|
16760
|
+
}
|
|
16761
|
+
if (typeof reason !== 'undefined') {
|
|
16762
|
+
payload['reason'] = reason;
|
|
16763
|
+
}
|
|
16764
|
+
if (typeof expiredAt !== 'undefined') {
|
|
16765
|
+
payload['expiredAt'] = expiredAt;
|
|
16766
|
+
}
|
|
16767
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16768
|
+
const apiHeaders = {
|
|
16769
|
+
'content-type': 'application/json',
|
|
16770
|
+
};
|
|
16771
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
16772
|
+
}
|
|
16773
|
+
deleteBlock(paramsOrFirst, ...rest) {
|
|
16774
|
+
let params;
|
|
16775
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16776
|
+
params = (paramsOrFirst || {});
|
|
16777
|
+
}
|
|
16778
|
+
else {
|
|
16779
|
+
params = {
|
|
16780
|
+
projectId: paramsOrFirst,
|
|
16781
|
+
resourceType: rest[0],
|
|
16782
|
+
resourceId: rest[1]
|
|
16783
|
+
};
|
|
16784
|
+
}
|
|
16785
|
+
const projectId = params.projectId;
|
|
16786
|
+
const resourceType = params.resourceType;
|
|
16787
|
+
const resourceId = params.resourceId;
|
|
16788
|
+
if (typeof projectId === 'undefined') {
|
|
16789
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
16790
|
+
}
|
|
16791
|
+
if (typeof resourceType === 'undefined') {
|
|
16792
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
16793
|
+
}
|
|
16794
|
+
const apiPath = '/manager/blocks';
|
|
16795
|
+
const payload = {};
|
|
16796
|
+
if (typeof projectId !== 'undefined') {
|
|
16797
|
+
payload['projectId'] = projectId;
|
|
16798
|
+
}
|
|
16799
|
+
if (typeof resourceType !== 'undefined') {
|
|
16800
|
+
payload['resourceType'] = resourceType;
|
|
16801
|
+
}
|
|
16802
|
+
if (typeof resourceId !== 'undefined') {
|
|
16803
|
+
payload['resourceId'] = resourceId;
|
|
16804
|
+
}
|
|
16805
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16806
|
+
const apiHeaders = {
|
|
16807
|
+
'content-type': 'application/json',
|
|
16808
|
+
};
|
|
16809
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
16810
|
+
}
|
|
16811
|
+
listBlocks(paramsOrFirst) {
|
|
16812
|
+
let params;
|
|
16813
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16814
|
+
params = (paramsOrFirst || {});
|
|
16815
|
+
}
|
|
16816
|
+
else {
|
|
16817
|
+
params = {
|
|
16818
|
+
projectId: paramsOrFirst
|
|
16819
|
+
};
|
|
16820
|
+
}
|
|
16821
|
+
const projectId = params.projectId;
|
|
16822
|
+
if (typeof projectId === 'undefined') {
|
|
16823
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
16824
|
+
}
|
|
16825
|
+
const apiPath = '/manager/blocks/{projectId}'.replace('{projectId}', projectId);
|
|
16826
|
+
const payload = {};
|
|
16827
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16828
|
+
const apiHeaders = {};
|
|
16829
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
16830
|
+
}
|
|
16831
|
+
updateUserStatus(paramsOrFirst, ...rest) {
|
|
16832
|
+
let params;
|
|
16833
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
16834
|
+
params = (paramsOrFirst || {});
|
|
16835
|
+
}
|
|
16836
|
+
else {
|
|
16837
|
+
params = {
|
|
16838
|
+
status: paramsOrFirst,
|
|
16839
|
+
userId: rest[0],
|
|
16840
|
+
email: rest[1],
|
|
16841
|
+
reason: rest[2]
|
|
16842
|
+
};
|
|
16843
|
+
}
|
|
16844
|
+
const status = params.status;
|
|
16845
|
+
const userId = params.userId;
|
|
16846
|
+
const email = params.email;
|
|
16847
|
+
const reason = params.reason;
|
|
16848
|
+
if (typeof status === 'undefined') {
|
|
16849
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
16850
|
+
}
|
|
16851
|
+
const apiPath = '/manager/users/status';
|
|
16852
|
+
const payload = {};
|
|
16853
|
+
if (typeof userId !== 'undefined') {
|
|
16854
|
+
payload['userId'] = userId;
|
|
16855
|
+
}
|
|
16856
|
+
if (typeof email !== 'undefined') {
|
|
16857
|
+
payload['email'] = email;
|
|
16858
|
+
}
|
|
16859
|
+
if (typeof status !== 'undefined') {
|
|
16860
|
+
payload['status'] = status;
|
|
16861
|
+
}
|
|
16862
|
+
if (typeof reason !== 'undefined') {
|
|
16863
|
+
payload['reason'] = reason;
|
|
16864
|
+
}
|
|
16865
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
16866
|
+
const apiHeaders = {
|
|
16867
|
+
'content-type': 'application/json',
|
|
16868
|
+
};
|
|
16869
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
16870
|
+
}
|
|
16871
|
+
}
|
|
16872
|
+
|
|
16695
16873
|
class Messaging {
|
|
16696
16874
|
constructor(client) {
|
|
16697
16875
|
this.client = client;
|
|
@@ -21572,6 +21750,46 @@
|
|
|
21572
21750
|
};
|
|
21573
21751
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21574
21752
|
}
|
|
21753
|
+
createPlanEstimation(paramsOrFirst, ...rest) {
|
|
21754
|
+
let params;
|
|
21755
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21756
|
+
params = (paramsOrFirst || {});
|
|
21757
|
+
}
|
|
21758
|
+
else {
|
|
21759
|
+
params = {
|
|
21760
|
+
organizationId: paramsOrFirst,
|
|
21761
|
+
billingPlan: rest[0],
|
|
21762
|
+
invites: rest[1],
|
|
21763
|
+
couponId: rest[2]
|
|
21764
|
+
};
|
|
21765
|
+
}
|
|
21766
|
+
const organizationId = params.organizationId;
|
|
21767
|
+
const billingPlan = params.billingPlan;
|
|
21768
|
+
const invites = params.invites;
|
|
21769
|
+
const couponId = params.couponId;
|
|
21770
|
+
if (typeof organizationId === 'undefined') {
|
|
21771
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
21772
|
+
}
|
|
21773
|
+
if (typeof billingPlan === 'undefined') {
|
|
21774
|
+
throw new AppwriteException('Missing required parameter: "billingPlan"');
|
|
21775
|
+
}
|
|
21776
|
+
const apiPath = '/organizations/{organizationId}/plan/estimations'.replace('{organizationId}', organizationId);
|
|
21777
|
+
const payload = {};
|
|
21778
|
+
if (typeof billingPlan !== 'undefined') {
|
|
21779
|
+
payload['billingPlan'] = billingPlan;
|
|
21780
|
+
}
|
|
21781
|
+
if (typeof invites !== 'undefined') {
|
|
21782
|
+
payload['invites'] = invites;
|
|
21783
|
+
}
|
|
21784
|
+
if (typeof couponId !== 'undefined') {
|
|
21785
|
+
payload['couponId'] = couponId;
|
|
21786
|
+
}
|
|
21787
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21788
|
+
const apiHeaders = {
|
|
21789
|
+
'content-type': 'application/json',
|
|
21790
|
+
};
|
|
21791
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
21792
|
+
}
|
|
21575
21793
|
listRegions(paramsOrFirst) {
|
|
21576
21794
|
let params;
|
|
21577
21795
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -21710,6 +21928,51 @@
|
|
|
21710
21928
|
constructor(client) {
|
|
21711
21929
|
this.client = client;
|
|
21712
21930
|
}
|
|
21931
|
+
/**
|
|
21932
|
+
* Delete a project.
|
|
21933
|
+
*
|
|
21934
|
+
* @throws {AppwriteException}
|
|
21935
|
+
* @returns {Promise<{}>}
|
|
21936
|
+
*/
|
|
21937
|
+
delete() {
|
|
21938
|
+
const apiPath = '/project';
|
|
21939
|
+
const payload = {};
|
|
21940
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21941
|
+
const apiHeaders = {
|
|
21942
|
+
'content-type': 'application/json',
|
|
21943
|
+
};
|
|
21944
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
21945
|
+
}
|
|
21946
|
+
updateAuthMethod(paramsOrFirst, ...rest) {
|
|
21947
|
+
let params;
|
|
21948
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
21949
|
+
params = (paramsOrFirst || {});
|
|
21950
|
+
}
|
|
21951
|
+
else {
|
|
21952
|
+
params = {
|
|
21953
|
+
methodId: paramsOrFirst,
|
|
21954
|
+
enabled: rest[0]
|
|
21955
|
+
};
|
|
21956
|
+
}
|
|
21957
|
+
const methodId = params.methodId;
|
|
21958
|
+
const enabled = params.enabled;
|
|
21959
|
+
if (typeof methodId === 'undefined') {
|
|
21960
|
+
throw new AppwriteException('Missing required parameter: "methodId"');
|
|
21961
|
+
}
|
|
21962
|
+
if (typeof enabled === 'undefined') {
|
|
21963
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
21964
|
+
}
|
|
21965
|
+
const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
|
|
21966
|
+
const payload = {};
|
|
21967
|
+
if (typeof enabled !== 'undefined') {
|
|
21968
|
+
payload['enabled'] = enabled;
|
|
21969
|
+
}
|
|
21970
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21971
|
+
const apiHeaders = {
|
|
21972
|
+
'content-type': 'application/json',
|
|
21973
|
+
};
|
|
21974
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21975
|
+
}
|
|
21713
21976
|
updateCanonicalEmails(paramsOrFirst) {
|
|
21714
21977
|
let params;
|
|
21715
21978
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -21856,115 +22119,1730 @@
|
|
|
21856
22119
|
};
|
|
21857
22120
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
21858
22121
|
}
|
|
21859
|
-
|
|
22122
|
+
createEphemeralKey(paramsOrFirst, ...rest) {
|
|
21860
22123
|
let params;
|
|
21861
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22124
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scopes' in paramsOrFirst || 'duration' in paramsOrFirst))) {
|
|
21862
22125
|
params = (paramsOrFirst || {});
|
|
21863
22126
|
}
|
|
21864
22127
|
else {
|
|
21865
22128
|
params = {
|
|
21866
|
-
|
|
22129
|
+
scopes: paramsOrFirst,
|
|
22130
|
+
duration: rest[0]
|
|
21867
22131
|
};
|
|
21868
22132
|
}
|
|
21869
|
-
const
|
|
21870
|
-
|
|
21871
|
-
|
|
22133
|
+
const scopes = params.scopes;
|
|
22134
|
+
const duration = params.duration;
|
|
22135
|
+
if (typeof scopes === 'undefined') {
|
|
22136
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
21872
22137
|
}
|
|
21873
|
-
|
|
22138
|
+
if (typeof duration === 'undefined') {
|
|
22139
|
+
throw new AppwriteException('Missing required parameter: "duration"');
|
|
22140
|
+
}
|
|
22141
|
+
const apiPath = '/project/keys/ephemeral';
|
|
21874
22142
|
const payload = {};
|
|
21875
|
-
|
|
21876
|
-
|
|
22143
|
+
if (typeof scopes !== 'undefined') {
|
|
22144
|
+
payload['scopes'] = scopes;
|
|
22145
|
+
}
|
|
22146
|
+
if (typeof duration !== 'undefined') {
|
|
22147
|
+
payload['duration'] = duration;
|
|
22148
|
+
}
|
|
22149
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22150
|
+
const apiHeaders = {
|
|
22151
|
+
'content-type': 'application/json',
|
|
22152
|
+
};
|
|
22153
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22154
|
+
}
|
|
22155
|
+
getKey(paramsOrFirst) {
|
|
22156
|
+
let params;
|
|
22157
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22158
|
+
params = (paramsOrFirst || {});
|
|
22159
|
+
}
|
|
22160
|
+
else {
|
|
22161
|
+
params = {
|
|
22162
|
+
keyId: paramsOrFirst
|
|
22163
|
+
};
|
|
22164
|
+
}
|
|
22165
|
+
const keyId = params.keyId;
|
|
22166
|
+
if (typeof keyId === 'undefined') {
|
|
22167
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22168
|
+
}
|
|
22169
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
22170
|
+
const payload = {};
|
|
22171
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22172
|
+
const apiHeaders = {};
|
|
22173
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22174
|
+
}
|
|
22175
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
22176
|
+
let params;
|
|
22177
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22178
|
+
params = (paramsOrFirst || {});
|
|
22179
|
+
}
|
|
22180
|
+
else {
|
|
22181
|
+
params = {
|
|
22182
|
+
keyId: paramsOrFirst,
|
|
22183
|
+
name: rest[0],
|
|
22184
|
+
scopes: rest[1],
|
|
22185
|
+
expire: rest[2]
|
|
22186
|
+
};
|
|
22187
|
+
}
|
|
22188
|
+
const keyId = params.keyId;
|
|
22189
|
+
const name = params.name;
|
|
22190
|
+
const scopes = params.scopes;
|
|
22191
|
+
const expire = params.expire;
|
|
22192
|
+
if (typeof keyId === 'undefined') {
|
|
22193
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22194
|
+
}
|
|
22195
|
+
if (typeof name === 'undefined') {
|
|
22196
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
22197
|
+
}
|
|
22198
|
+
if (typeof scopes === 'undefined') {
|
|
22199
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
22200
|
+
}
|
|
22201
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
22202
|
+
const payload = {};
|
|
22203
|
+
if (typeof name !== 'undefined') {
|
|
22204
|
+
payload['name'] = name;
|
|
22205
|
+
}
|
|
22206
|
+
if (typeof scopes !== 'undefined') {
|
|
22207
|
+
payload['scopes'] = scopes;
|
|
22208
|
+
}
|
|
22209
|
+
if (typeof expire !== 'undefined') {
|
|
22210
|
+
payload['expire'] = expire;
|
|
22211
|
+
}
|
|
22212
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22213
|
+
const apiHeaders = {
|
|
22214
|
+
'content-type': 'application/json',
|
|
22215
|
+
};
|
|
22216
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
22217
|
+
}
|
|
22218
|
+
deleteKey(paramsOrFirst) {
|
|
22219
|
+
let params;
|
|
22220
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22221
|
+
params = (paramsOrFirst || {});
|
|
22222
|
+
}
|
|
22223
|
+
else {
|
|
22224
|
+
params = {
|
|
22225
|
+
keyId: paramsOrFirst
|
|
22226
|
+
};
|
|
22227
|
+
}
|
|
22228
|
+
const keyId = params.keyId;
|
|
22229
|
+
if (typeof keyId === 'undefined') {
|
|
22230
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
22231
|
+
}
|
|
22232
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
22233
|
+
const payload = {};
|
|
22234
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22235
|
+
const apiHeaders = {
|
|
22236
|
+
'content-type': 'application/json',
|
|
22237
|
+
};
|
|
22238
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22239
|
+
}
|
|
22240
|
+
updateLabels(paramsOrFirst) {
|
|
22241
|
+
let params;
|
|
22242
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22243
|
+
params = (paramsOrFirst || {});
|
|
22244
|
+
}
|
|
22245
|
+
else {
|
|
22246
|
+
params = {
|
|
22247
|
+
labels: paramsOrFirst
|
|
22248
|
+
};
|
|
22249
|
+
}
|
|
22250
|
+
const labels = params.labels;
|
|
22251
|
+
if (typeof labels === 'undefined') {
|
|
22252
|
+
throw new AppwriteException('Missing required parameter: "labels"');
|
|
22253
|
+
}
|
|
22254
|
+
const apiPath = '/project/labels';
|
|
22255
|
+
const payload = {};
|
|
22256
|
+
if (typeof labels !== 'undefined') {
|
|
22257
|
+
payload['labels'] = labels;
|
|
22258
|
+
}
|
|
22259
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22260
|
+
const apiHeaders = {
|
|
22261
|
+
'content-type': 'application/json',
|
|
22262
|
+
};
|
|
22263
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
22264
|
+
}
|
|
22265
|
+
listMockPhones(paramsOrFirst, ...rest) {
|
|
22266
|
+
let params;
|
|
22267
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22268
|
+
params = (paramsOrFirst || {});
|
|
22269
|
+
}
|
|
22270
|
+
else {
|
|
22271
|
+
params = {
|
|
22272
|
+
queries: paramsOrFirst,
|
|
22273
|
+
total: rest[0]
|
|
22274
|
+
};
|
|
22275
|
+
}
|
|
22276
|
+
const queries = params.queries;
|
|
22277
|
+
const total = params.total;
|
|
22278
|
+
const apiPath = '/project/mock-phones';
|
|
22279
|
+
const payload = {};
|
|
22280
|
+
if (typeof queries !== 'undefined') {
|
|
22281
|
+
payload['queries'] = queries;
|
|
22282
|
+
}
|
|
22283
|
+
if (typeof total !== 'undefined') {
|
|
22284
|
+
payload['total'] = total;
|
|
22285
|
+
}
|
|
22286
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22287
|
+
const apiHeaders = {};
|
|
22288
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22289
|
+
}
|
|
22290
|
+
createMockPhone(paramsOrFirst, ...rest) {
|
|
22291
|
+
let params;
|
|
22292
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22293
|
+
params = (paramsOrFirst || {});
|
|
22294
|
+
}
|
|
22295
|
+
else {
|
|
22296
|
+
params = {
|
|
22297
|
+
number: paramsOrFirst,
|
|
22298
|
+
otp: rest[0]
|
|
22299
|
+
};
|
|
22300
|
+
}
|
|
22301
|
+
const number = params.number;
|
|
22302
|
+
const otp = params.otp;
|
|
22303
|
+
if (typeof number === 'undefined') {
|
|
22304
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22305
|
+
}
|
|
22306
|
+
if (typeof otp === 'undefined') {
|
|
22307
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
22308
|
+
}
|
|
22309
|
+
const apiPath = '/project/mock-phones';
|
|
22310
|
+
const payload = {};
|
|
22311
|
+
if (typeof number !== 'undefined') {
|
|
22312
|
+
payload['number'] = number;
|
|
22313
|
+
}
|
|
22314
|
+
if (typeof otp !== 'undefined') {
|
|
22315
|
+
payload['otp'] = otp;
|
|
22316
|
+
}
|
|
22317
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22318
|
+
const apiHeaders = {
|
|
22319
|
+
'content-type': 'application/json',
|
|
22320
|
+
};
|
|
22321
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
22322
|
+
}
|
|
22323
|
+
getMockPhone(paramsOrFirst) {
|
|
22324
|
+
let params;
|
|
22325
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22326
|
+
params = (paramsOrFirst || {});
|
|
22327
|
+
}
|
|
22328
|
+
else {
|
|
22329
|
+
params = {
|
|
22330
|
+
number: paramsOrFirst
|
|
22331
|
+
};
|
|
22332
|
+
}
|
|
22333
|
+
const number = params.number;
|
|
22334
|
+
if (typeof number === 'undefined') {
|
|
22335
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22336
|
+
}
|
|
22337
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
22338
|
+
const payload = {};
|
|
22339
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22340
|
+
const apiHeaders = {};
|
|
22341
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22342
|
+
}
|
|
22343
|
+
updateMockPhone(paramsOrFirst, ...rest) {
|
|
22344
|
+
let params;
|
|
22345
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22346
|
+
params = (paramsOrFirst || {});
|
|
22347
|
+
}
|
|
22348
|
+
else {
|
|
22349
|
+
params = {
|
|
22350
|
+
number: paramsOrFirst,
|
|
22351
|
+
otp: rest[0]
|
|
22352
|
+
};
|
|
22353
|
+
}
|
|
22354
|
+
const number = params.number;
|
|
22355
|
+
const otp = params.otp;
|
|
22356
|
+
if (typeof number === 'undefined') {
|
|
22357
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22358
|
+
}
|
|
22359
|
+
if (typeof otp === 'undefined') {
|
|
22360
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
22361
|
+
}
|
|
22362
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
22363
|
+
const payload = {};
|
|
22364
|
+
if (typeof otp !== 'undefined') {
|
|
22365
|
+
payload['otp'] = otp;
|
|
22366
|
+
}
|
|
22367
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22368
|
+
const apiHeaders = {
|
|
22369
|
+
'content-type': 'application/json',
|
|
22370
|
+
};
|
|
22371
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
22372
|
+
}
|
|
22373
|
+
deleteMockPhone(paramsOrFirst) {
|
|
22374
|
+
let params;
|
|
22375
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22376
|
+
params = (paramsOrFirst || {});
|
|
22377
|
+
}
|
|
22378
|
+
else {
|
|
22379
|
+
params = {
|
|
22380
|
+
number: paramsOrFirst
|
|
22381
|
+
};
|
|
22382
|
+
}
|
|
22383
|
+
const number = params.number;
|
|
22384
|
+
if (typeof number === 'undefined') {
|
|
22385
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
22386
|
+
}
|
|
22387
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
22388
|
+
const payload = {};
|
|
22389
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22390
|
+
const apiHeaders = {
|
|
22391
|
+
'content-type': 'application/json',
|
|
22392
|
+
};
|
|
22393
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22394
|
+
}
|
|
22395
|
+
/**
|
|
22396
|
+
* 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.
|
|
22397
|
+
*
|
|
22398
|
+
* @throws {AppwriteException}
|
|
22399
|
+
* @returns {Promise<Models.OAuth2ProviderList>}
|
|
22400
|
+
*/
|
|
22401
|
+
listOAuth2Providers() {
|
|
22402
|
+
const apiPath = '/project/oauth2';
|
|
22403
|
+
const payload = {};
|
|
22404
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22405
|
+
const apiHeaders = {};
|
|
21877
22406
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
21878
22407
|
}
|
|
21879
|
-
|
|
22408
|
+
updateOAuth2Amazon(paramsOrFirst, ...rest) {
|
|
22409
|
+
let params;
|
|
22410
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22411
|
+
params = (paramsOrFirst || {});
|
|
22412
|
+
}
|
|
22413
|
+
else {
|
|
22414
|
+
params = {
|
|
22415
|
+
clientId: paramsOrFirst,
|
|
22416
|
+
clientSecret: rest[0],
|
|
22417
|
+
enabled: rest[1]
|
|
22418
|
+
};
|
|
22419
|
+
}
|
|
22420
|
+
const clientId = params.clientId;
|
|
22421
|
+
const clientSecret = params.clientSecret;
|
|
22422
|
+
const enabled = params.enabled;
|
|
22423
|
+
const apiPath = '/project/oauth2/amazon';
|
|
22424
|
+
const payload = {};
|
|
22425
|
+
if (typeof clientId !== 'undefined') {
|
|
22426
|
+
payload['clientId'] = clientId;
|
|
22427
|
+
}
|
|
22428
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22429
|
+
payload['clientSecret'] = clientSecret;
|
|
22430
|
+
}
|
|
22431
|
+
if (typeof enabled !== 'undefined') {
|
|
22432
|
+
payload['enabled'] = enabled;
|
|
22433
|
+
}
|
|
22434
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22435
|
+
const apiHeaders = {
|
|
22436
|
+
'content-type': 'application/json',
|
|
22437
|
+
};
|
|
22438
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22439
|
+
}
|
|
22440
|
+
updateOAuth2Apple(paramsOrFirst, ...rest) {
|
|
22441
|
+
let params;
|
|
22442
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22443
|
+
params = (paramsOrFirst || {});
|
|
22444
|
+
}
|
|
22445
|
+
else {
|
|
22446
|
+
params = {
|
|
22447
|
+
serviceId: paramsOrFirst,
|
|
22448
|
+
keyId: rest[0],
|
|
22449
|
+
teamId: rest[1],
|
|
22450
|
+
p8File: rest[2],
|
|
22451
|
+
enabled: rest[3]
|
|
22452
|
+
};
|
|
22453
|
+
}
|
|
22454
|
+
const serviceId = params.serviceId;
|
|
22455
|
+
const keyId = params.keyId;
|
|
22456
|
+
const teamId = params.teamId;
|
|
22457
|
+
const p8File = params.p8File;
|
|
22458
|
+
const enabled = params.enabled;
|
|
22459
|
+
const apiPath = '/project/oauth2/apple';
|
|
22460
|
+
const payload = {};
|
|
22461
|
+
if (typeof serviceId !== 'undefined') {
|
|
22462
|
+
payload['serviceId'] = serviceId;
|
|
22463
|
+
}
|
|
22464
|
+
if (typeof keyId !== 'undefined') {
|
|
22465
|
+
payload['keyId'] = keyId;
|
|
22466
|
+
}
|
|
22467
|
+
if (typeof teamId !== 'undefined') {
|
|
22468
|
+
payload['teamId'] = teamId;
|
|
22469
|
+
}
|
|
22470
|
+
if (typeof p8File !== 'undefined') {
|
|
22471
|
+
payload['p8File'] = p8File;
|
|
22472
|
+
}
|
|
22473
|
+
if (typeof enabled !== 'undefined') {
|
|
22474
|
+
payload['enabled'] = enabled;
|
|
22475
|
+
}
|
|
22476
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22477
|
+
const apiHeaders = {
|
|
22478
|
+
'content-type': 'application/json',
|
|
22479
|
+
};
|
|
22480
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22481
|
+
}
|
|
22482
|
+
updateOAuth2Auth0(paramsOrFirst, ...rest) {
|
|
22483
|
+
let params;
|
|
22484
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22485
|
+
params = (paramsOrFirst || {});
|
|
22486
|
+
}
|
|
22487
|
+
else {
|
|
22488
|
+
params = {
|
|
22489
|
+
clientId: paramsOrFirst,
|
|
22490
|
+
clientSecret: rest[0],
|
|
22491
|
+
endpoint: rest[1],
|
|
22492
|
+
enabled: rest[2]
|
|
22493
|
+
};
|
|
22494
|
+
}
|
|
22495
|
+
const clientId = params.clientId;
|
|
22496
|
+
const clientSecret = params.clientSecret;
|
|
22497
|
+
const endpoint = params.endpoint;
|
|
22498
|
+
const enabled = params.enabled;
|
|
22499
|
+
const apiPath = '/project/oauth2/auth0';
|
|
22500
|
+
const payload = {};
|
|
22501
|
+
if (typeof clientId !== 'undefined') {
|
|
22502
|
+
payload['clientId'] = clientId;
|
|
22503
|
+
}
|
|
22504
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22505
|
+
payload['clientSecret'] = clientSecret;
|
|
22506
|
+
}
|
|
22507
|
+
if (typeof endpoint !== 'undefined') {
|
|
22508
|
+
payload['endpoint'] = endpoint;
|
|
22509
|
+
}
|
|
22510
|
+
if (typeof enabled !== 'undefined') {
|
|
22511
|
+
payload['enabled'] = enabled;
|
|
22512
|
+
}
|
|
22513
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22514
|
+
const apiHeaders = {
|
|
22515
|
+
'content-type': 'application/json',
|
|
22516
|
+
};
|
|
22517
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22518
|
+
}
|
|
22519
|
+
updateOAuth2Authentik(paramsOrFirst, ...rest) {
|
|
22520
|
+
let params;
|
|
22521
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22522
|
+
params = (paramsOrFirst || {});
|
|
22523
|
+
}
|
|
22524
|
+
else {
|
|
22525
|
+
params = {
|
|
22526
|
+
clientId: paramsOrFirst,
|
|
22527
|
+
clientSecret: rest[0],
|
|
22528
|
+
endpoint: rest[1],
|
|
22529
|
+
enabled: rest[2]
|
|
22530
|
+
};
|
|
22531
|
+
}
|
|
22532
|
+
const clientId = params.clientId;
|
|
22533
|
+
const clientSecret = params.clientSecret;
|
|
22534
|
+
const endpoint = params.endpoint;
|
|
22535
|
+
const enabled = params.enabled;
|
|
22536
|
+
const apiPath = '/project/oauth2/authentik';
|
|
22537
|
+
const payload = {};
|
|
22538
|
+
if (typeof clientId !== 'undefined') {
|
|
22539
|
+
payload['clientId'] = clientId;
|
|
22540
|
+
}
|
|
22541
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22542
|
+
payload['clientSecret'] = clientSecret;
|
|
22543
|
+
}
|
|
22544
|
+
if (typeof endpoint !== 'undefined') {
|
|
22545
|
+
payload['endpoint'] = endpoint;
|
|
22546
|
+
}
|
|
22547
|
+
if (typeof enabled !== 'undefined') {
|
|
22548
|
+
payload['enabled'] = enabled;
|
|
22549
|
+
}
|
|
22550
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22551
|
+
const apiHeaders = {
|
|
22552
|
+
'content-type': 'application/json',
|
|
22553
|
+
};
|
|
22554
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22555
|
+
}
|
|
22556
|
+
updateOAuth2Autodesk(paramsOrFirst, ...rest) {
|
|
22557
|
+
let params;
|
|
22558
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22559
|
+
params = (paramsOrFirst || {});
|
|
22560
|
+
}
|
|
22561
|
+
else {
|
|
22562
|
+
params = {
|
|
22563
|
+
clientId: paramsOrFirst,
|
|
22564
|
+
clientSecret: rest[0],
|
|
22565
|
+
enabled: rest[1]
|
|
22566
|
+
};
|
|
22567
|
+
}
|
|
22568
|
+
const clientId = params.clientId;
|
|
22569
|
+
const clientSecret = params.clientSecret;
|
|
22570
|
+
const enabled = params.enabled;
|
|
22571
|
+
const apiPath = '/project/oauth2/autodesk';
|
|
22572
|
+
const payload = {};
|
|
22573
|
+
if (typeof clientId !== 'undefined') {
|
|
22574
|
+
payload['clientId'] = clientId;
|
|
22575
|
+
}
|
|
22576
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22577
|
+
payload['clientSecret'] = clientSecret;
|
|
22578
|
+
}
|
|
22579
|
+
if (typeof enabled !== 'undefined') {
|
|
22580
|
+
payload['enabled'] = enabled;
|
|
22581
|
+
}
|
|
22582
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22583
|
+
const apiHeaders = {
|
|
22584
|
+
'content-type': 'application/json',
|
|
22585
|
+
};
|
|
22586
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22587
|
+
}
|
|
22588
|
+
updateOAuth2Bitbucket(paramsOrFirst, ...rest) {
|
|
22589
|
+
let params;
|
|
22590
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22591
|
+
params = (paramsOrFirst || {});
|
|
22592
|
+
}
|
|
22593
|
+
else {
|
|
22594
|
+
params = {
|
|
22595
|
+
key: paramsOrFirst,
|
|
22596
|
+
secret: rest[0],
|
|
22597
|
+
enabled: rest[1]
|
|
22598
|
+
};
|
|
22599
|
+
}
|
|
22600
|
+
const key = params.key;
|
|
22601
|
+
const secret = params.secret;
|
|
22602
|
+
const enabled = params.enabled;
|
|
22603
|
+
const apiPath = '/project/oauth2/bitbucket';
|
|
22604
|
+
const payload = {};
|
|
22605
|
+
if (typeof key !== 'undefined') {
|
|
22606
|
+
payload['key'] = key;
|
|
22607
|
+
}
|
|
22608
|
+
if (typeof secret !== 'undefined') {
|
|
22609
|
+
payload['secret'] = secret;
|
|
22610
|
+
}
|
|
22611
|
+
if (typeof enabled !== 'undefined') {
|
|
22612
|
+
payload['enabled'] = enabled;
|
|
22613
|
+
}
|
|
22614
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22615
|
+
const apiHeaders = {
|
|
22616
|
+
'content-type': 'application/json',
|
|
22617
|
+
};
|
|
22618
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22619
|
+
}
|
|
22620
|
+
updateOAuth2Bitly(paramsOrFirst, ...rest) {
|
|
22621
|
+
let params;
|
|
22622
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22623
|
+
params = (paramsOrFirst || {});
|
|
22624
|
+
}
|
|
22625
|
+
else {
|
|
22626
|
+
params = {
|
|
22627
|
+
clientId: paramsOrFirst,
|
|
22628
|
+
clientSecret: rest[0],
|
|
22629
|
+
enabled: rest[1]
|
|
22630
|
+
};
|
|
22631
|
+
}
|
|
22632
|
+
const clientId = params.clientId;
|
|
22633
|
+
const clientSecret = params.clientSecret;
|
|
22634
|
+
const enabled = params.enabled;
|
|
22635
|
+
const apiPath = '/project/oauth2/bitly';
|
|
22636
|
+
const payload = {};
|
|
22637
|
+
if (typeof clientId !== 'undefined') {
|
|
22638
|
+
payload['clientId'] = clientId;
|
|
22639
|
+
}
|
|
22640
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22641
|
+
payload['clientSecret'] = clientSecret;
|
|
22642
|
+
}
|
|
22643
|
+
if (typeof enabled !== 'undefined') {
|
|
22644
|
+
payload['enabled'] = enabled;
|
|
22645
|
+
}
|
|
22646
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22647
|
+
const apiHeaders = {
|
|
22648
|
+
'content-type': 'application/json',
|
|
22649
|
+
};
|
|
22650
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22651
|
+
}
|
|
22652
|
+
updateOAuth2Box(paramsOrFirst, ...rest) {
|
|
22653
|
+
let params;
|
|
22654
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22655
|
+
params = (paramsOrFirst || {});
|
|
22656
|
+
}
|
|
22657
|
+
else {
|
|
22658
|
+
params = {
|
|
22659
|
+
clientId: paramsOrFirst,
|
|
22660
|
+
clientSecret: rest[0],
|
|
22661
|
+
enabled: rest[1]
|
|
22662
|
+
};
|
|
22663
|
+
}
|
|
22664
|
+
const clientId = params.clientId;
|
|
22665
|
+
const clientSecret = params.clientSecret;
|
|
22666
|
+
const enabled = params.enabled;
|
|
22667
|
+
const apiPath = '/project/oauth2/box';
|
|
22668
|
+
const payload = {};
|
|
22669
|
+
if (typeof clientId !== 'undefined') {
|
|
22670
|
+
payload['clientId'] = clientId;
|
|
22671
|
+
}
|
|
22672
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22673
|
+
payload['clientSecret'] = clientSecret;
|
|
22674
|
+
}
|
|
22675
|
+
if (typeof enabled !== 'undefined') {
|
|
22676
|
+
payload['enabled'] = enabled;
|
|
22677
|
+
}
|
|
22678
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22679
|
+
const apiHeaders = {
|
|
22680
|
+
'content-type': 'application/json',
|
|
22681
|
+
};
|
|
22682
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22683
|
+
}
|
|
22684
|
+
updateOAuth2Dailymotion(paramsOrFirst, ...rest) {
|
|
22685
|
+
let params;
|
|
22686
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22687
|
+
params = (paramsOrFirst || {});
|
|
22688
|
+
}
|
|
22689
|
+
else {
|
|
22690
|
+
params = {
|
|
22691
|
+
apiKey: paramsOrFirst,
|
|
22692
|
+
apiSecret: rest[0],
|
|
22693
|
+
enabled: rest[1]
|
|
22694
|
+
};
|
|
22695
|
+
}
|
|
22696
|
+
const apiKey = params.apiKey;
|
|
22697
|
+
const apiSecret = params.apiSecret;
|
|
22698
|
+
const enabled = params.enabled;
|
|
22699
|
+
const apiPath = '/project/oauth2/dailymotion';
|
|
22700
|
+
const payload = {};
|
|
22701
|
+
if (typeof apiKey !== 'undefined') {
|
|
22702
|
+
payload['apiKey'] = apiKey;
|
|
22703
|
+
}
|
|
22704
|
+
if (typeof apiSecret !== 'undefined') {
|
|
22705
|
+
payload['apiSecret'] = apiSecret;
|
|
22706
|
+
}
|
|
22707
|
+
if (typeof enabled !== 'undefined') {
|
|
22708
|
+
payload['enabled'] = enabled;
|
|
22709
|
+
}
|
|
22710
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22711
|
+
const apiHeaders = {
|
|
22712
|
+
'content-type': 'application/json',
|
|
22713
|
+
};
|
|
22714
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22715
|
+
}
|
|
22716
|
+
updateOAuth2Discord(paramsOrFirst, ...rest) {
|
|
22717
|
+
let params;
|
|
22718
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22719
|
+
params = (paramsOrFirst || {});
|
|
22720
|
+
}
|
|
22721
|
+
else {
|
|
22722
|
+
params = {
|
|
22723
|
+
clientId: paramsOrFirst,
|
|
22724
|
+
clientSecret: rest[0],
|
|
22725
|
+
enabled: rest[1]
|
|
22726
|
+
};
|
|
22727
|
+
}
|
|
22728
|
+
const clientId = params.clientId;
|
|
22729
|
+
const clientSecret = params.clientSecret;
|
|
22730
|
+
const enabled = params.enabled;
|
|
22731
|
+
const apiPath = '/project/oauth2/discord';
|
|
22732
|
+
const payload = {};
|
|
22733
|
+
if (typeof clientId !== 'undefined') {
|
|
22734
|
+
payload['clientId'] = clientId;
|
|
22735
|
+
}
|
|
22736
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22737
|
+
payload['clientSecret'] = clientSecret;
|
|
22738
|
+
}
|
|
22739
|
+
if (typeof enabled !== 'undefined') {
|
|
22740
|
+
payload['enabled'] = enabled;
|
|
22741
|
+
}
|
|
22742
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22743
|
+
const apiHeaders = {
|
|
22744
|
+
'content-type': 'application/json',
|
|
22745
|
+
};
|
|
22746
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22747
|
+
}
|
|
22748
|
+
updateOAuth2Disqus(paramsOrFirst, ...rest) {
|
|
22749
|
+
let params;
|
|
22750
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22751
|
+
params = (paramsOrFirst || {});
|
|
22752
|
+
}
|
|
22753
|
+
else {
|
|
22754
|
+
params = {
|
|
22755
|
+
publicKey: paramsOrFirst,
|
|
22756
|
+
secretKey: rest[0],
|
|
22757
|
+
enabled: rest[1]
|
|
22758
|
+
};
|
|
22759
|
+
}
|
|
22760
|
+
const publicKey = params.publicKey;
|
|
22761
|
+
const secretKey = params.secretKey;
|
|
22762
|
+
const enabled = params.enabled;
|
|
22763
|
+
const apiPath = '/project/oauth2/disqus';
|
|
22764
|
+
const payload = {};
|
|
22765
|
+
if (typeof publicKey !== 'undefined') {
|
|
22766
|
+
payload['publicKey'] = publicKey;
|
|
22767
|
+
}
|
|
22768
|
+
if (typeof secretKey !== 'undefined') {
|
|
22769
|
+
payload['secretKey'] = secretKey;
|
|
22770
|
+
}
|
|
22771
|
+
if (typeof enabled !== 'undefined') {
|
|
22772
|
+
payload['enabled'] = enabled;
|
|
22773
|
+
}
|
|
22774
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22775
|
+
const apiHeaders = {
|
|
22776
|
+
'content-type': 'application/json',
|
|
22777
|
+
};
|
|
22778
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22779
|
+
}
|
|
22780
|
+
updateOAuth2Dropbox(paramsOrFirst, ...rest) {
|
|
22781
|
+
let params;
|
|
22782
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22783
|
+
params = (paramsOrFirst || {});
|
|
22784
|
+
}
|
|
22785
|
+
else {
|
|
22786
|
+
params = {
|
|
22787
|
+
appKey: paramsOrFirst,
|
|
22788
|
+
appSecret: rest[0],
|
|
22789
|
+
enabled: rest[1]
|
|
22790
|
+
};
|
|
22791
|
+
}
|
|
22792
|
+
const appKey = params.appKey;
|
|
22793
|
+
const appSecret = params.appSecret;
|
|
22794
|
+
const enabled = params.enabled;
|
|
22795
|
+
const apiPath = '/project/oauth2/dropbox';
|
|
22796
|
+
const payload = {};
|
|
22797
|
+
if (typeof appKey !== 'undefined') {
|
|
22798
|
+
payload['appKey'] = appKey;
|
|
22799
|
+
}
|
|
22800
|
+
if (typeof appSecret !== 'undefined') {
|
|
22801
|
+
payload['appSecret'] = appSecret;
|
|
22802
|
+
}
|
|
22803
|
+
if (typeof enabled !== 'undefined') {
|
|
22804
|
+
payload['enabled'] = enabled;
|
|
22805
|
+
}
|
|
22806
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22807
|
+
const apiHeaders = {
|
|
22808
|
+
'content-type': 'application/json',
|
|
22809
|
+
};
|
|
22810
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22811
|
+
}
|
|
22812
|
+
updateOAuth2Etsy(paramsOrFirst, ...rest) {
|
|
22813
|
+
let params;
|
|
22814
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22815
|
+
params = (paramsOrFirst || {});
|
|
22816
|
+
}
|
|
22817
|
+
else {
|
|
22818
|
+
params = {
|
|
22819
|
+
keyString: paramsOrFirst,
|
|
22820
|
+
sharedSecret: rest[0],
|
|
22821
|
+
enabled: rest[1]
|
|
22822
|
+
};
|
|
22823
|
+
}
|
|
22824
|
+
const keyString = params.keyString;
|
|
22825
|
+
const sharedSecret = params.sharedSecret;
|
|
22826
|
+
const enabled = params.enabled;
|
|
22827
|
+
const apiPath = '/project/oauth2/etsy';
|
|
22828
|
+
const payload = {};
|
|
22829
|
+
if (typeof keyString !== 'undefined') {
|
|
22830
|
+
payload['keyString'] = keyString;
|
|
22831
|
+
}
|
|
22832
|
+
if (typeof sharedSecret !== 'undefined') {
|
|
22833
|
+
payload['sharedSecret'] = sharedSecret;
|
|
22834
|
+
}
|
|
22835
|
+
if (typeof enabled !== 'undefined') {
|
|
22836
|
+
payload['enabled'] = enabled;
|
|
22837
|
+
}
|
|
22838
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22839
|
+
const apiHeaders = {
|
|
22840
|
+
'content-type': 'application/json',
|
|
22841
|
+
};
|
|
22842
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22843
|
+
}
|
|
22844
|
+
updateOAuth2Facebook(paramsOrFirst, ...rest) {
|
|
22845
|
+
let params;
|
|
22846
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22847
|
+
params = (paramsOrFirst || {});
|
|
22848
|
+
}
|
|
22849
|
+
else {
|
|
22850
|
+
params = {
|
|
22851
|
+
appId: paramsOrFirst,
|
|
22852
|
+
appSecret: rest[0],
|
|
22853
|
+
enabled: rest[1]
|
|
22854
|
+
};
|
|
22855
|
+
}
|
|
22856
|
+
const appId = params.appId;
|
|
22857
|
+
const appSecret = params.appSecret;
|
|
22858
|
+
const enabled = params.enabled;
|
|
22859
|
+
const apiPath = '/project/oauth2/facebook';
|
|
22860
|
+
const payload = {};
|
|
22861
|
+
if (typeof appId !== 'undefined') {
|
|
22862
|
+
payload['appId'] = appId;
|
|
22863
|
+
}
|
|
22864
|
+
if (typeof appSecret !== 'undefined') {
|
|
22865
|
+
payload['appSecret'] = appSecret;
|
|
22866
|
+
}
|
|
22867
|
+
if (typeof enabled !== 'undefined') {
|
|
22868
|
+
payload['enabled'] = enabled;
|
|
22869
|
+
}
|
|
22870
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22871
|
+
const apiHeaders = {
|
|
22872
|
+
'content-type': 'application/json',
|
|
22873
|
+
};
|
|
22874
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22875
|
+
}
|
|
22876
|
+
updateOAuth2Figma(paramsOrFirst, ...rest) {
|
|
22877
|
+
let params;
|
|
22878
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22879
|
+
params = (paramsOrFirst || {});
|
|
22880
|
+
}
|
|
22881
|
+
else {
|
|
22882
|
+
params = {
|
|
22883
|
+
clientId: paramsOrFirst,
|
|
22884
|
+
clientSecret: rest[0],
|
|
22885
|
+
enabled: rest[1]
|
|
22886
|
+
};
|
|
22887
|
+
}
|
|
22888
|
+
const clientId = params.clientId;
|
|
22889
|
+
const clientSecret = params.clientSecret;
|
|
22890
|
+
const enabled = params.enabled;
|
|
22891
|
+
const apiPath = '/project/oauth2/figma';
|
|
22892
|
+
const payload = {};
|
|
22893
|
+
if (typeof clientId !== 'undefined') {
|
|
22894
|
+
payload['clientId'] = clientId;
|
|
22895
|
+
}
|
|
22896
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22897
|
+
payload['clientSecret'] = clientSecret;
|
|
22898
|
+
}
|
|
22899
|
+
if (typeof enabled !== 'undefined') {
|
|
22900
|
+
payload['enabled'] = enabled;
|
|
22901
|
+
}
|
|
22902
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22903
|
+
const apiHeaders = {
|
|
22904
|
+
'content-type': 'application/json',
|
|
22905
|
+
};
|
|
22906
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22907
|
+
}
|
|
22908
|
+
updateOAuth2FusionAuth(paramsOrFirst, ...rest) {
|
|
22909
|
+
let params;
|
|
22910
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22911
|
+
params = (paramsOrFirst || {});
|
|
22912
|
+
}
|
|
22913
|
+
else {
|
|
22914
|
+
params = {
|
|
22915
|
+
clientId: paramsOrFirst,
|
|
22916
|
+
clientSecret: rest[0],
|
|
22917
|
+
endpoint: rest[1],
|
|
22918
|
+
enabled: rest[2]
|
|
22919
|
+
};
|
|
22920
|
+
}
|
|
22921
|
+
const clientId = params.clientId;
|
|
22922
|
+
const clientSecret = params.clientSecret;
|
|
22923
|
+
const endpoint = params.endpoint;
|
|
22924
|
+
const enabled = params.enabled;
|
|
22925
|
+
const apiPath = '/project/oauth2/fusionauth';
|
|
22926
|
+
const payload = {};
|
|
22927
|
+
if (typeof clientId !== 'undefined') {
|
|
22928
|
+
payload['clientId'] = clientId;
|
|
22929
|
+
}
|
|
22930
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22931
|
+
payload['clientSecret'] = clientSecret;
|
|
22932
|
+
}
|
|
22933
|
+
if (typeof endpoint !== 'undefined') {
|
|
22934
|
+
payload['endpoint'] = endpoint;
|
|
22935
|
+
}
|
|
22936
|
+
if (typeof enabled !== 'undefined') {
|
|
22937
|
+
payload['enabled'] = enabled;
|
|
22938
|
+
}
|
|
22939
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22940
|
+
const apiHeaders = {
|
|
22941
|
+
'content-type': 'application/json',
|
|
22942
|
+
};
|
|
22943
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22944
|
+
}
|
|
22945
|
+
updateOAuth2GitHub(paramsOrFirst, ...rest) {
|
|
22946
|
+
let params;
|
|
22947
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22948
|
+
params = (paramsOrFirst || {});
|
|
22949
|
+
}
|
|
22950
|
+
else {
|
|
22951
|
+
params = {
|
|
22952
|
+
clientId: paramsOrFirst,
|
|
22953
|
+
clientSecret: rest[0],
|
|
22954
|
+
enabled: rest[1]
|
|
22955
|
+
};
|
|
22956
|
+
}
|
|
22957
|
+
const clientId = params.clientId;
|
|
22958
|
+
const clientSecret = params.clientSecret;
|
|
22959
|
+
const enabled = params.enabled;
|
|
22960
|
+
const apiPath = '/project/oauth2/github';
|
|
22961
|
+
const payload = {};
|
|
22962
|
+
if (typeof clientId !== 'undefined') {
|
|
22963
|
+
payload['clientId'] = clientId;
|
|
22964
|
+
}
|
|
22965
|
+
if (typeof clientSecret !== 'undefined') {
|
|
22966
|
+
payload['clientSecret'] = clientSecret;
|
|
22967
|
+
}
|
|
22968
|
+
if (typeof enabled !== 'undefined') {
|
|
22969
|
+
payload['enabled'] = enabled;
|
|
22970
|
+
}
|
|
22971
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22972
|
+
const apiHeaders = {
|
|
22973
|
+
'content-type': 'application/json',
|
|
22974
|
+
};
|
|
22975
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22976
|
+
}
|
|
22977
|
+
updateOAuth2Gitlab(paramsOrFirst, ...rest) {
|
|
22978
|
+
let params;
|
|
22979
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
22980
|
+
params = (paramsOrFirst || {});
|
|
22981
|
+
}
|
|
22982
|
+
else {
|
|
22983
|
+
params = {
|
|
22984
|
+
applicationId: paramsOrFirst,
|
|
22985
|
+
secret: rest[0],
|
|
22986
|
+
endpoint: rest[1],
|
|
22987
|
+
enabled: rest[2]
|
|
22988
|
+
};
|
|
22989
|
+
}
|
|
22990
|
+
const applicationId = params.applicationId;
|
|
22991
|
+
const secret = params.secret;
|
|
22992
|
+
const endpoint = params.endpoint;
|
|
22993
|
+
const enabled = params.enabled;
|
|
22994
|
+
const apiPath = '/project/oauth2/gitlab';
|
|
22995
|
+
const payload = {};
|
|
22996
|
+
if (typeof applicationId !== 'undefined') {
|
|
22997
|
+
payload['applicationId'] = applicationId;
|
|
22998
|
+
}
|
|
22999
|
+
if (typeof secret !== 'undefined') {
|
|
23000
|
+
payload['secret'] = secret;
|
|
23001
|
+
}
|
|
23002
|
+
if (typeof endpoint !== 'undefined') {
|
|
23003
|
+
payload['endpoint'] = endpoint;
|
|
23004
|
+
}
|
|
23005
|
+
if (typeof enabled !== 'undefined') {
|
|
23006
|
+
payload['enabled'] = enabled;
|
|
23007
|
+
}
|
|
23008
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23009
|
+
const apiHeaders = {
|
|
23010
|
+
'content-type': 'application/json',
|
|
23011
|
+
};
|
|
23012
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23013
|
+
}
|
|
23014
|
+
updateOAuth2Google(paramsOrFirst, ...rest) {
|
|
23015
|
+
let params;
|
|
23016
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23017
|
+
params = (paramsOrFirst || {});
|
|
23018
|
+
}
|
|
23019
|
+
else {
|
|
23020
|
+
params = {
|
|
23021
|
+
clientId: paramsOrFirst,
|
|
23022
|
+
clientSecret: rest[0],
|
|
23023
|
+
enabled: rest[1]
|
|
23024
|
+
};
|
|
23025
|
+
}
|
|
23026
|
+
const clientId = params.clientId;
|
|
23027
|
+
const clientSecret = params.clientSecret;
|
|
23028
|
+
const enabled = params.enabled;
|
|
23029
|
+
const apiPath = '/project/oauth2/google';
|
|
23030
|
+
const payload = {};
|
|
23031
|
+
if (typeof clientId !== 'undefined') {
|
|
23032
|
+
payload['clientId'] = clientId;
|
|
23033
|
+
}
|
|
23034
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23035
|
+
payload['clientSecret'] = clientSecret;
|
|
23036
|
+
}
|
|
23037
|
+
if (typeof enabled !== 'undefined') {
|
|
23038
|
+
payload['enabled'] = enabled;
|
|
23039
|
+
}
|
|
23040
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23041
|
+
const apiHeaders = {
|
|
23042
|
+
'content-type': 'application/json',
|
|
23043
|
+
};
|
|
23044
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23045
|
+
}
|
|
23046
|
+
updateOAuth2Keycloak(paramsOrFirst, ...rest) {
|
|
23047
|
+
let params;
|
|
23048
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23049
|
+
params = (paramsOrFirst || {});
|
|
23050
|
+
}
|
|
23051
|
+
else {
|
|
23052
|
+
params = {
|
|
23053
|
+
clientId: paramsOrFirst,
|
|
23054
|
+
clientSecret: rest[0],
|
|
23055
|
+
endpoint: rest[1],
|
|
23056
|
+
realmName: rest[2],
|
|
23057
|
+
enabled: rest[3]
|
|
23058
|
+
};
|
|
23059
|
+
}
|
|
23060
|
+
const clientId = params.clientId;
|
|
23061
|
+
const clientSecret = params.clientSecret;
|
|
23062
|
+
const endpoint = params.endpoint;
|
|
23063
|
+
const realmName = params.realmName;
|
|
23064
|
+
const enabled = params.enabled;
|
|
23065
|
+
const apiPath = '/project/oauth2/keycloak';
|
|
23066
|
+
const payload = {};
|
|
23067
|
+
if (typeof clientId !== 'undefined') {
|
|
23068
|
+
payload['clientId'] = clientId;
|
|
23069
|
+
}
|
|
23070
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23071
|
+
payload['clientSecret'] = clientSecret;
|
|
23072
|
+
}
|
|
23073
|
+
if (typeof endpoint !== 'undefined') {
|
|
23074
|
+
payload['endpoint'] = endpoint;
|
|
23075
|
+
}
|
|
23076
|
+
if (typeof realmName !== 'undefined') {
|
|
23077
|
+
payload['realmName'] = realmName;
|
|
23078
|
+
}
|
|
23079
|
+
if (typeof enabled !== 'undefined') {
|
|
23080
|
+
payload['enabled'] = enabled;
|
|
23081
|
+
}
|
|
23082
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23083
|
+
const apiHeaders = {
|
|
23084
|
+
'content-type': 'application/json',
|
|
23085
|
+
};
|
|
23086
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23087
|
+
}
|
|
23088
|
+
updateOAuth2Kick(paramsOrFirst, ...rest) {
|
|
23089
|
+
let params;
|
|
23090
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23091
|
+
params = (paramsOrFirst || {});
|
|
23092
|
+
}
|
|
23093
|
+
else {
|
|
23094
|
+
params = {
|
|
23095
|
+
clientId: paramsOrFirst,
|
|
23096
|
+
clientSecret: rest[0],
|
|
23097
|
+
enabled: rest[1]
|
|
23098
|
+
};
|
|
23099
|
+
}
|
|
23100
|
+
const clientId = params.clientId;
|
|
23101
|
+
const clientSecret = params.clientSecret;
|
|
23102
|
+
const enabled = params.enabled;
|
|
23103
|
+
const apiPath = '/project/oauth2/kick';
|
|
23104
|
+
const payload = {};
|
|
23105
|
+
if (typeof clientId !== 'undefined') {
|
|
23106
|
+
payload['clientId'] = clientId;
|
|
23107
|
+
}
|
|
23108
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23109
|
+
payload['clientSecret'] = clientSecret;
|
|
23110
|
+
}
|
|
23111
|
+
if (typeof enabled !== 'undefined') {
|
|
23112
|
+
payload['enabled'] = enabled;
|
|
23113
|
+
}
|
|
23114
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23115
|
+
const apiHeaders = {
|
|
23116
|
+
'content-type': 'application/json',
|
|
23117
|
+
};
|
|
23118
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23119
|
+
}
|
|
23120
|
+
updateOAuth2Linkedin(paramsOrFirst, ...rest) {
|
|
23121
|
+
let params;
|
|
23122
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23123
|
+
params = (paramsOrFirst || {});
|
|
23124
|
+
}
|
|
23125
|
+
else {
|
|
23126
|
+
params = {
|
|
23127
|
+
clientId: paramsOrFirst,
|
|
23128
|
+
primaryClientSecret: rest[0],
|
|
23129
|
+
enabled: rest[1]
|
|
23130
|
+
};
|
|
23131
|
+
}
|
|
23132
|
+
const clientId = params.clientId;
|
|
23133
|
+
const primaryClientSecret = params.primaryClientSecret;
|
|
23134
|
+
const enabled = params.enabled;
|
|
23135
|
+
const apiPath = '/project/oauth2/linkedin';
|
|
23136
|
+
const payload = {};
|
|
23137
|
+
if (typeof clientId !== 'undefined') {
|
|
23138
|
+
payload['clientId'] = clientId;
|
|
23139
|
+
}
|
|
23140
|
+
if (typeof primaryClientSecret !== 'undefined') {
|
|
23141
|
+
payload['primaryClientSecret'] = primaryClientSecret;
|
|
23142
|
+
}
|
|
23143
|
+
if (typeof enabled !== 'undefined') {
|
|
23144
|
+
payload['enabled'] = enabled;
|
|
23145
|
+
}
|
|
23146
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23147
|
+
const apiHeaders = {
|
|
23148
|
+
'content-type': 'application/json',
|
|
23149
|
+
};
|
|
23150
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23151
|
+
}
|
|
23152
|
+
updateOAuth2Microsoft(paramsOrFirst, ...rest) {
|
|
23153
|
+
let params;
|
|
23154
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23155
|
+
params = (paramsOrFirst || {});
|
|
23156
|
+
}
|
|
23157
|
+
else {
|
|
23158
|
+
params = {
|
|
23159
|
+
applicationId: paramsOrFirst,
|
|
23160
|
+
applicationSecret: rest[0],
|
|
23161
|
+
tenant: rest[1],
|
|
23162
|
+
enabled: rest[2]
|
|
23163
|
+
};
|
|
23164
|
+
}
|
|
23165
|
+
const applicationId = params.applicationId;
|
|
23166
|
+
const applicationSecret = params.applicationSecret;
|
|
23167
|
+
const tenant = params.tenant;
|
|
23168
|
+
const enabled = params.enabled;
|
|
23169
|
+
const apiPath = '/project/oauth2/microsoft';
|
|
23170
|
+
const payload = {};
|
|
23171
|
+
if (typeof applicationId !== 'undefined') {
|
|
23172
|
+
payload['applicationId'] = applicationId;
|
|
23173
|
+
}
|
|
23174
|
+
if (typeof applicationSecret !== 'undefined') {
|
|
23175
|
+
payload['applicationSecret'] = applicationSecret;
|
|
23176
|
+
}
|
|
23177
|
+
if (typeof tenant !== 'undefined') {
|
|
23178
|
+
payload['tenant'] = tenant;
|
|
23179
|
+
}
|
|
23180
|
+
if (typeof enabled !== 'undefined') {
|
|
23181
|
+
payload['enabled'] = enabled;
|
|
23182
|
+
}
|
|
23183
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23184
|
+
const apiHeaders = {
|
|
23185
|
+
'content-type': 'application/json',
|
|
23186
|
+
};
|
|
23187
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23188
|
+
}
|
|
23189
|
+
updateOAuth2Notion(paramsOrFirst, ...rest) {
|
|
23190
|
+
let params;
|
|
23191
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23192
|
+
params = (paramsOrFirst || {});
|
|
23193
|
+
}
|
|
23194
|
+
else {
|
|
23195
|
+
params = {
|
|
23196
|
+
oauthClientId: paramsOrFirst,
|
|
23197
|
+
oauthClientSecret: rest[0],
|
|
23198
|
+
enabled: rest[1]
|
|
23199
|
+
};
|
|
23200
|
+
}
|
|
23201
|
+
const oauthClientId = params.oauthClientId;
|
|
23202
|
+
const oauthClientSecret = params.oauthClientSecret;
|
|
23203
|
+
const enabled = params.enabled;
|
|
23204
|
+
const apiPath = '/project/oauth2/notion';
|
|
23205
|
+
const payload = {};
|
|
23206
|
+
if (typeof oauthClientId !== 'undefined') {
|
|
23207
|
+
payload['oauthClientId'] = oauthClientId;
|
|
23208
|
+
}
|
|
23209
|
+
if (typeof oauthClientSecret !== 'undefined') {
|
|
23210
|
+
payload['oauthClientSecret'] = oauthClientSecret;
|
|
23211
|
+
}
|
|
23212
|
+
if (typeof enabled !== 'undefined') {
|
|
23213
|
+
payload['enabled'] = enabled;
|
|
23214
|
+
}
|
|
23215
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23216
|
+
const apiHeaders = {
|
|
23217
|
+
'content-type': 'application/json',
|
|
23218
|
+
};
|
|
23219
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23220
|
+
}
|
|
23221
|
+
updateOAuth2Oidc(paramsOrFirst, ...rest) {
|
|
23222
|
+
let params;
|
|
23223
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23224
|
+
params = (paramsOrFirst || {});
|
|
23225
|
+
}
|
|
23226
|
+
else {
|
|
23227
|
+
params = {
|
|
23228
|
+
clientId: paramsOrFirst,
|
|
23229
|
+
clientSecret: rest[0],
|
|
23230
|
+
wellKnownURL: rest[1],
|
|
23231
|
+
authorizationURL: rest[2],
|
|
23232
|
+
tokenUrl: rest[3],
|
|
23233
|
+
userInfoUrl: rest[4],
|
|
23234
|
+
enabled: rest[5]
|
|
23235
|
+
};
|
|
23236
|
+
}
|
|
23237
|
+
const clientId = params.clientId;
|
|
23238
|
+
const clientSecret = params.clientSecret;
|
|
23239
|
+
const wellKnownURL = params.wellKnownURL;
|
|
23240
|
+
const authorizationURL = params.authorizationURL;
|
|
23241
|
+
const tokenUrl = params.tokenUrl;
|
|
23242
|
+
const userInfoUrl = params.userInfoUrl;
|
|
23243
|
+
const enabled = params.enabled;
|
|
23244
|
+
const apiPath = '/project/oauth2/oidc';
|
|
23245
|
+
const payload = {};
|
|
23246
|
+
if (typeof clientId !== 'undefined') {
|
|
23247
|
+
payload['clientId'] = clientId;
|
|
23248
|
+
}
|
|
23249
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23250
|
+
payload['clientSecret'] = clientSecret;
|
|
23251
|
+
}
|
|
23252
|
+
if (typeof wellKnownURL !== 'undefined') {
|
|
23253
|
+
payload['wellKnownURL'] = wellKnownURL;
|
|
23254
|
+
}
|
|
23255
|
+
if (typeof authorizationURL !== 'undefined') {
|
|
23256
|
+
payload['authorizationURL'] = authorizationURL;
|
|
23257
|
+
}
|
|
23258
|
+
if (typeof tokenUrl !== 'undefined') {
|
|
23259
|
+
payload['tokenUrl'] = tokenUrl;
|
|
23260
|
+
}
|
|
23261
|
+
if (typeof userInfoUrl !== 'undefined') {
|
|
23262
|
+
payload['userInfoUrl'] = userInfoUrl;
|
|
23263
|
+
}
|
|
23264
|
+
if (typeof enabled !== 'undefined') {
|
|
23265
|
+
payload['enabled'] = enabled;
|
|
23266
|
+
}
|
|
23267
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23268
|
+
const apiHeaders = {
|
|
23269
|
+
'content-type': 'application/json',
|
|
23270
|
+
};
|
|
23271
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23272
|
+
}
|
|
23273
|
+
updateOAuth2Okta(paramsOrFirst, ...rest) {
|
|
23274
|
+
let params;
|
|
23275
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23276
|
+
params = (paramsOrFirst || {});
|
|
23277
|
+
}
|
|
23278
|
+
else {
|
|
23279
|
+
params = {
|
|
23280
|
+
clientId: paramsOrFirst,
|
|
23281
|
+
clientSecret: rest[0],
|
|
23282
|
+
domain: rest[1],
|
|
23283
|
+
authorizationServerId: rest[2],
|
|
23284
|
+
enabled: rest[3]
|
|
23285
|
+
};
|
|
23286
|
+
}
|
|
23287
|
+
const clientId = params.clientId;
|
|
23288
|
+
const clientSecret = params.clientSecret;
|
|
23289
|
+
const domain = params.domain;
|
|
23290
|
+
const authorizationServerId = params.authorizationServerId;
|
|
23291
|
+
const enabled = params.enabled;
|
|
23292
|
+
const apiPath = '/project/oauth2/okta';
|
|
23293
|
+
const payload = {};
|
|
23294
|
+
if (typeof clientId !== 'undefined') {
|
|
23295
|
+
payload['clientId'] = clientId;
|
|
23296
|
+
}
|
|
23297
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23298
|
+
payload['clientSecret'] = clientSecret;
|
|
23299
|
+
}
|
|
23300
|
+
if (typeof domain !== 'undefined') {
|
|
23301
|
+
payload['domain'] = domain;
|
|
23302
|
+
}
|
|
23303
|
+
if (typeof authorizationServerId !== 'undefined') {
|
|
23304
|
+
payload['authorizationServerId'] = authorizationServerId;
|
|
23305
|
+
}
|
|
23306
|
+
if (typeof enabled !== 'undefined') {
|
|
23307
|
+
payload['enabled'] = enabled;
|
|
23308
|
+
}
|
|
23309
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23310
|
+
const apiHeaders = {
|
|
23311
|
+
'content-type': 'application/json',
|
|
23312
|
+
};
|
|
23313
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23314
|
+
}
|
|
23315
|
+
updateOAuth2Paypal(paramsOrFirst, ...rest) {
|
|
23316
|
+
let params;
|
|
23317
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23318
|
+
params = (paramsOrFirst || {});
|
|
23319
|
+
}
|
|
23320
|
+
else {
|
|
23321
|
+
params = {
|
|
23322
|
+
clientId: paramsOrFirst,
|
|
23323
|
+
secretKey: rest[0],
|
|
23324
|
+
enabled: rest[1]
|
|
23325
|
+
};
|
|
23326
|
+
}
|
|
23327
|
+
const clientId = params.clientId;
|
|
23328
|
+
const secretKey = params.secretKey;
|
|
23329
|
+
const enabled = params.enabled;
|
|
23330
|
+
const apiPath = '/project/oauth2/paypal';
|
|
23331
|
+
const payload = {};
|
|
23332
|
+
if (typeof clientId !== 'undefined') {
|
|
23333
|
+
payload['clientId'] = clientId;
|
|
23334
|
+
}
|
|
23335
|
+
if (typeof secretKey !== 'undefined') {
|
|
23336
|
+
payload['secretKey'] = secretKey;
|
|
23337
|
+
}
|
|
23338
|
+
if (typeof enabled !== 'undefined') {
|
|
23339
|
+
payload['enabled'] = enabled;
|
|
23340
|
+
}
|
|
23341
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23342
|
+
const apiHeaders = {
|
|
23343
|
+
'content-type': 'application/json',
|
|
23344
|
+
};
|
|
23345
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23346
|
+
}
|
|
23347
|
+
updateOAuth2PaypalSandbox(paramsOrFirst, ...rest) {
|
|
23348
|
+
let params;
|
|
23349
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23350
|
+
params = (paramsOrFirst || {});
|
|
23351
|
+
}
|
|
23352
|
+
else {
|
|
23353
|
+
params = {
|
|
23354
|
+
clientId: paramsOrFirst,
|
|
23355
|
+
secretKey: rest[0],
|
|
23356
|
+
enabled: rest[1]
|
|
23357
|
+
};
|
|
23358
|
+
}
|
|
23359
|
+
const clientId = params.clientId;
|
|
23360
|
+
const secretKey = params.secretKey;
|
|
23361
|
+
const enabled = params.enabled;
|
|
23362
|
+
const apiPath = '/project/oauth2/paypalSandbox';
|
|
23363
|
+
const payload = {};
|
|
23364
|
+
if (typeof clientId !== 'undefined') {
|
|
23365
|
+
payload['clientId'] = clientId;
|
|
23366
|
+
}
|
|
23367
|
+
if (typeof secretKey !== 'undefined') {
|
|
23368
|
+
payload['secretKey'] = secretKey;
|
|
23369
|
+
}
|
|
23370
|
+
if (typeof enabled !== 'undefined') {
|
|
23371
|
+
payload['enabled'] = enabled;
|
|
23372
|
+
}
|
|
23373
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23374
|
+
const apiHeaders = {
|
|
23375
|
+
'content-type': 'application/json',
|
|
23376
|
+
};
|
|
23377
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23378
|
+
}
|
|
23379
|
+
updateOAuth2Podio(paramsOrFirst, ...rest) {
|
|
23380
|
+
let params;
|
|
23381
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23382
|
+
params = (paramsOrFirst || {});
|
|
23383
|
+
}
|
|
23384
|
+
else {
|
|
23385
|
+
params = {
|
|
23386
|
+
clientId: paramsOrFirst,
|
|
23387
|
+
clientSecret: rest[0],
|
|
23388
|
+
enabled: rest[1]
|
|
23389
|
+
};
|
|
23390
|
+
}
|
|
23391
|
+
const clientId = params.clientId;
|
|
23392
|
+
const clientSecret = params.clientSecret;
|
|
23393
|
+
const enabled = params.enabled;
|
|
23394
|
+
const apiPath = '/project/oauth2/podio';
|
|
23395
|
+
const payload = {};
|
|
23396
|
+
if (typeof clientId !== 'undefined') {
|
|
23397
|
+
payload['clientId'] = clientId;
|
|
23398
|
+
}
|
|
23399
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23400
|
+
payload['clientSecret'] = clientSecret;
|
|
23401
|
+
}
|
|
23402
|
+
if (typeof enabled !== 'undefined') {
|
|
23403
|
+
payload['enabled'] = enabled;
|
|
23404
|
+
}
|
|
23405
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23406
|
+
const apiHeaders = {
|
|
23407
|
+
'content-type': 'application/json',
|
|
23408
|
+
};
|
|
23409
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23410
|
+
}
|
|
23411
|
+
updateOAuth2Salesforce(paramsOrFirst, ...rest) {
|
|
23412
|
+
let params;
|
|
23413
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23414
|
+
params = (paramsOrFirst || {});
|
|
23415
|
+
}
|
|
23416
|
+
else {
|
|
23417
|
+
params = {
|
|
23418
|
+
customerKey: paramsOrFirst,
|
|
23419
|
+
customerSecret: rest[0],
|
|
23420
|
+
enabled: rest[1]
|
|
23421
|
+
};
|
|
23422
|
+
}
|
|
23423
|
+
const customerKey = params.customerKey;
|
|
23424
|
+
const customerSecret = params.customerSecret;
|
|
23425
|
+
const enabled = params.enabled;
|
|
23426
|
+
const apiPath = '/project/oauth2/salesforce';
|
|
23427
|
+
const payload = {};
|
|
23428
|
+
if (typeof customerKey !== 'undefined') {
|
|
23429
|
+
payload['customerKey'] = customerKey;
|
|
23430
|
+
}
|
|
23431
|
+
if (typeof customerSecret !== 'undefined') {
|
|
23432
|
+
payload['customerSecret'] = customerSecret;
|
|
23433
|
+
}
|
|
23434
|
+
if (typeof enabled !== 'undefined') {
|
|
23435
|
+
payload['enabled'] = enabled;
|
|
23436
|
+
}
|
|
23437
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23438
|
+
const apiHeaders = {
|
|
23439
|
+
'content-type': 'application/json',
|
|
23440
|
+
};
|
|
23441
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23442
|
+
}
|
|
23443
|
+
updateOAuth2Slack(paramsOrFirst, ...rest) {
|
|
23444
|
+
let params;
|
|
23445
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23446
|
+
params = (paramsOrFirst || {});
|
|
23447
|
+
}
|
|
23448
|
+
else {
|
|
23449
|
+
params = {
|
|
23450
|
+
clientId: paramsOrFirst,
|
|
23451
|
+
clientSecret: rest[0],
|
|
23452
|
+
enabled: rest[1]
|
|
23453
|
+
};
|
|
23454
|
+
}
|
|
23455
|
+
const clientId = params.clientId;
|
|
23456
|
+
const clientSecret = params.clientSecret;
|
|
23457
|
+
const enabled = params.enabled;
|
|
23458
|
+
const apiPath = '/project/oauth2/slack';
|
|
23459
|
+
const payload = {};
|
|
23460
|
+
if (typeof clientId !== 'undefined') {
|
|
23461
|
+
payload['clientId'] = clientId;
|
|
23462
|
+
}
|
|
23463
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23464
|
+
payload['clientSecret'] = clientSecret;
|
|
23465
|
+
}
|
|
23466
|
+
if (typeof enabled !== 'undefined') {
|
|
23467
|
+
payload['enabled'] = enabled;
|
|
23468
|
+
}
|
|
23469
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23470
|
+
const apiHeaders = {
|
|
23471
|
+
'content-type': 'application/json',
|
|
23472
|
+
};
|
|
23473
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23474
|
+
}
|
|
23475
|
+
updateOAuth2Spotify(paramsOrFirst, ...rest) {
|
|
23476
|
+
let params;
|
|
23477
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23478
|
+
params = (paramsOrFirst || {});
|
|
23479
|
+
}
|
|
23480
|
+
else {
|
|
23481
|
+
params = {
|
|
23482
|
+
clientId: paramsOrFirst,
|
|
23483
|
+
clientSecret: rest[0],
|
|
23484
|
+
enabled: rest[1]
|
|
23485
|
+
};
|
|
23486
|
+
}
|
|
23487
|
+
const clientId = params.clientId;
|
|
23488
|
+
const clientSecret = params.clientSecret;
|
|
23489
|
+
const enabled = params.enabled;
|
|
23490
|
+
const apiPath = '/project/oauth2/spotify';
|
|
23491
|
+
const payload = {};
|
|
23492
|
+
if (typeof clientId !== 'undefined') {
|
|
23493
|
+
payload['clientId'] = clientId;
|
|
23494
|
+
}
|
|
23495
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23496
|
+
payload['clientSecret'] = clientSecret;
|
|
23497
|
+
}
|
|
23498
|
+
if (typeof enabled !== 'undefined') {
|
|
23499
|
+
payload['enabled'] = enabled;
|
|
23500
|
+
}
|
|
23501
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23502
|
+
const apiHeaders = {
|
|
23503
|
+
'content-type': 'application/json',
|
|
23504
|
+
};
|
|
23505
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23506
|
+
}
|
|
23507
|
+
updateOAuth2Stripe(paramsOrFirst, ...rest) {
|
|
23508
|
+
let params;
|
|
23509
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23510
|
+
params = (paramsOrFirst || {});
|
|
23511
|
+
}
|
|
23512
|
+
else {
|
|
23513
|
+
params = {
|
|
23514
|
+
clientId: paramsOrFirst,
|
|
23515
|
+
apiSecretKey: rest[0],
|
|
23516
|
+
enabled: rest[1]
|
|
23517
|
+
};
|
|
23518
|
+
}
|
|
23519
|
+
const clientId = params.clientId;
|
|
23520
|
+
const apiSecretKey = params.apiSecretKey;
|
|
23521
|
+
const enabled = params.enabled;
|
|
23522
|
+
const apiPath = '/project/oauth2/stripe';
|
|
23523
|
+
const payload = {};
|
|
23524
|
+
if (typeof clientId !== 'undefined') {
|
|
23525
|
+
payload['clientId'] = clientId;
|
|
23526
|
+
}
|
|
23527
|
+
if (typeof apiSecretKey !== 'undefined') {
|
|
23528
|
+
payload['apiSecretKey'] = apiSecretKey;
|
|
23529
|
+
}
|
|
23530
|
+
if (typeof enabled !== 'undefined') {
|
|
23531
|
+
payload['enabled'] = enabled;
|
|
23532
|
+
}
|
|
23533
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23534
|
+
const apiHeaders = {
|
|
23535
|
+
'content-type': 'application/json',
|
|
23536
|
+
};
|
|
23537
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23538
|
+
}
|
|
23539
|
+
updateOAuth2Tradeshift(paramsOrFirst, ...rest) {
|
|
23540
|
+
let params;
|
|
23541
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23542
|
+
params = (paramsOrFirst || {});
|
|
23543
|
+
}
|
|
23544
|
+
else {
|
|
23545
|
+
params = {
|
|
23546
|
+
oauth2ClientId: paramsOrFirst,
|
|
23547
|
+
oauth2ClientSecret: rest[0],
|
|
23548
|
+
enabled: rest[1]
|
|
23549
|
+
};
|
|
23550
|
+
}
|
|
23551
|
+
const oauth2ClientId = params.oauth2ClientId;
|
|
23552
|
+
const oauth2ClientSecret = params.oauth2ClientSecret;
|
|
23553
|
+
const enabled = params.enabled;
|
|
23554
|
+
const apiPath = '/project/oauth2/tradeshift';
|
|
23555
|
+
const payload = {};
|
|
23556
|
+
if (typeof oauth2ClientId !== 'undefined') {
|
|
23557
|
+
payload['oauth2ClientId'] = oauth2ClientId;
|
|
23558
|
+
}
|
|
23559
|
+
if (typeof oauth2ClientSecret !== 'undefined') {
|
|
23560
|
+
payload['oauth2ClientSecret'] = oauth2ClientSecret;
|
|
23561
|
+
}
|
|
23562
|
+
if (typeof enabled !== 'undefined') {
|
|
23563
|
+
payload['enabled'] = enabled;
|
|
23564
|
+
}
|
|
23565
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23566
|
+
const apiHeaders = {
|
|
23567
|
+
'content-type': 'application/json',
|
|
23568
|
+
};
|
|
23569
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23570
|
+
}
|
|
23571
|
+
updateOAuth2TradeshiftSandbox(paramsOrFirst, ...rest) {
|
|
21880
23572
|
let params;
|
|
21881
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23573
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21882
23574
|
params = (paramsOrFirst || {});
|
|
21883
23575
|
}
|
|
21884
23576
|
else {
|
|
21885
23577
|
params = {
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
expire: rest[2]
|
|
23578
|
+
oauth2ClientId: paramsOrFirst,
|
|
23579
|
+
oauth2ClientSecret: rest[0],
|
|
23580
|
+
enabled: rest[1]
|
|
21890
23581
|
};
|
|
21891
23582
|
}
|
|
21892
|
-
const
|
|
21893
|
-
const
|
|
21894
|
-
const
|
|
21895
|
-
const
|
|
21896
|
-
|
|
21897
|
-
|
|
23583
|
+
const oauth2ClientId = params.oauth2ClientId;
|
|
23584
|
+
const oauth2ClientSecret = params.oauth2ClientSecret;
|
|
23585
|
+
const enabled = params.enabled;
|
|
23586
|
+
const apiPath = '/project/oauth2/tradeshiftBox';
|
|
23587
|
+
const payload = {};
|
|
23588
|
+
if (typeof oauth2ClientId !== 'undefined') {
|
|
23589
|
+
payload['oauth2ClientId'] = oauth2ClientId;
|
|
21898
23590
|
}
|
|
21899
|
-
if (typeof
|
|
21900
|
-
|
|
23591
|
+
if (typeof oauth2ClientSecret !== 'undefined') {
|
|
23592
|
+
payload['oauth2ClientSecret'] = oauth2ClientSecret;
|
|
21901
23593
|
}
|
|
21902
|
-
if (typeof
|
|
21903
|
-
|
|
23594
|
+
if (typeof enabled !== 'undefined') {
|
|
23595
|
+
payload['enabled'] = enabled;
|
|
21904
23596
|
}
|
|
21905
|
-
const
|
|
23597
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23598
|
+
const apiHeaders = {
|
|
23599
|
+
'content-type': 'application/json',
|
|
23600
|
+
};
|
|
23601
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23602
|
+
}
|
|
23603
|
+
updateOAuth2Twitch(paramsOrFirst, ...rest) {
|
|
23604
|
+
let params;
|
|
23605
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23606
|
+
params = (paramsOrFirst || {});
|
|
23607
|
+
}
|
|
23608
|
+
else {
|
|
23609
|
+
params = {
|
|
23610
|
+
clientId: paramsOrFirst,
|
|
23611
|
+
clientSecret: rest[0],
|
|
23612
|
+
enabled: rest[1]
|
|
23613
|
+
};
|
|
23614
|
+
}
|
|
23615
|
+
const clientId = params.clientId;
|
|
23616
|
+
const clientSecret = params.clientSecret;
|
|
23617
|
+
const enabled = params.enabled;
|
|
23618
|
+
const apiPath = '/project/oauth2/twitch';
|
|
21906
23619
|
const payload = {};
|
|
21907
|
-
if (typeof
|
|
21908
|
-
payload['
|
|
23620
|
+
if (typeof clientId !== 'undefined') {
|
|
23621
|
+
payload['clientId'] = clientId;
|
|
21909
23622
|
}
|
|
21910
|
-
if (typeof
|
|
21911
|
-
payload['
|
|
23623
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23624
|
+
payload['clientSecret'] = clientSecret;
|
|
21912
23625
|
}
|
|
21913
|
-
if (typeof
|
|
21914
|
-
payload['
|
|
23626
|
+
if (typeof enabled !== 'undefined') {
|
|
23627
|
+
payload['enabled'] = enabled;
|
|
21915
23628
|
}
|
|
21916
23629
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21917
23630
|
const apiHeaders = {
|
|
21918
23631
|
'content-type': 'application/json',
|
|
21919
23632
|
};
|
|
21920
|
-
return this.client.call('
|
|
23633
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21921
23634
|
}
|
|
21922
|
-
|
|
23635
|
+
updateOAuth2WordPress(paramsOrFirst, ...rest) {
|
|
21923
23636
|
let params;
|
|
21924
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23637
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21925
23638
|
params = (paramsOrFirst || {});
|
|
21926
23639
|
}
|
|
21927
23640
|
else {
|
|
21928
23641
|
params = {
|
|
21929
|
-
|
|
23642
|
+
clientId: paramsOrFirst,
|
|
23643
|
+
clientSecret: rest[0],
|
|
23644
|
+
enabled: rest[1]
|
|
21930
23645
|
};
|
|
21931
23646
|
}
|
|
21932
|
-
const
|
|
21933
|
-
|
|
21934
|
-
|
|
23647
|
+
const clientId = params.clientId;
|
|
23648
|
+
const clientSecret = params.clientSecret;
|
|
23649
|
+
const enabled = params.enabled;
|
|
23650
|
+
const apiPath = '/project/oauth2/wordpress';
|
|
23651
|
+
const payload = {};
|
|
23652
|
+
if (typeof clientId !== 'undefined') {
|
|
23653
|
+
payload['clientId'] = clientId;
|
|
21935
23654
|
}
|
|
21936
|
-
|
|
23655
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23656
|
+
payload['clientSecret'] = clientSecret;
|
|
23657
|
+
}
|
|
23658
|
+
if (typeof enabled !== 'undefined') {
|
|
23659
|
+
payload['enabled'] = enabled;
|
|
23660
|
+
}
|
|
23661
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23662
|
+
const apiHeaders = {
|
|
23663
|
+
'content-type': 'application/json',
|
|
23664
|
+
};
|
|
23665
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23666
|
+
}
|
|
23667
|
+
updateOAuth2X(paramsOrFirst, ...rest) {
|
|
23668
|
+
let params;
|
|
23669
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23670
|
+
params = (paramsOrFirst || {});
|
|
23671
|
+
}
|
|
23672
|
+
else {
|
|
23673
|
+
params = {
|
|
23674
|
+
customerKey: paramsOrFirst,
|
|
23675
|
+
secretKey: rest[0],
|
|
23676
|
+
enabled: rest[1]
|
|
23677
|
+
};
|
|
23678
|
+
}
|
|
23679
|
+
const customerKey = params.customerKey;
|
|
23680
|
+
const secretKey = params.secretKey;
|
|
23681
|
+
const enabled = params.enabled;
|
|
23682
|
+
const apiPath = '/project/oauth2/x';
|
|
21937
23683
|
const payload = {};
|
|
23684
|
+
if (typeof customerKey !== 'undefined') {
|
|
23685
|
+
payload['customerKey'] = customerKey;
|
|
23686
|
+
}
|
|
23687
|
+
if (typeof secretKey !== 'undefined') {
|
|
23688
|
+
payload['secretKey'] = secretKey;
|
|
23689
|
+
}
|
|
23690
|
+
if (typeof enabled !== 'undefined') {
|
|
23691
|
+
payload['enabled'] = enabled;
|
|
23692
|
+
}
|
|
21938
23693
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21939
23694
|
const apiHeaders = {
|
|
21940
23695
|
'content-type': 'application/json',
|
|
21941
23696
|
};
|
|
21942
|
-
return this.client.call('
|
|
23697
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
21943
23698
|
}
|
|
21944
|
-
|
|
23699
|
+
updateOAuth2Yahoo(paramsOrFirst, ...rest) {
|
|
21945
23700
|
let params;
|
|
21946
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23701
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
21947
23702
|
params = (paramsOrFirst || {});
|
|
21948
23703
|
}
|
|
21949
23704
|
else {
|
|
21950
23705
|
params = {
|
|
21951
|
-
|
|
23706
|
+
clientId: paramsOrFirst,
|
|
23707
|
+
clientSecret: rest[0],
|
|
23708
|
+
enabled: rest[1]
|
|
21952
23709
|
};
|
|
21953
23710
|
}
|
|
21954
|
-
const
|
|
21955
|
-
|
|
21956
|
-
|
|
23711
|
+
const clientId = params.clientId;
|
|
23712
|
+
const clientSecret = params.clientSecret;
|
|
23713
|
+
const enabled = params.enabled;
|
|
23714
|
+
const apiPath = '/project/oauth2/yahoo';
|
|
23715
|
+
const payload = {};
|
|
23716
|
+
if (typeof clientId !== 'undefined') {
|
|
23717
|
+
payload['clientId'] = clientId;
|
|
21957
23718
|
}
|
|
21958
|
-
|
|
23719
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23720
|
+
payload['clientSecret'] = clientSecret;
|
|
23721
|
+
}
|
|
23722
|
+
if (typeof enabled !== 'undefined') {
|
|
23723
|
+
payload['enabled'] = enabled;
|
|
23724
|
+
}
|
|
23725
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23726
|
+
const apiHeaders = {
|
|
23727
|
+
'content-type': 'application/json',
|
|
23728
|
+
};
|
|
23729
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23730
|
+
}
|
|
23731
|
+
updateOAuth2Yandex(paramsOrFirst, ...rest) {
|
|
23732
|
+
let params;
|
|
23733
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23734
|
+
params = (paramsOrFirst || {});
|
|
23735
|
+
}
|
|
23736
|
+
else {
|
|
23737
|
+
params = {
|
|
23738
|
+
clientId: paramsOrFirst,
|
|
23739
|
+
clientSecret: rest[0],
|
|
23740
|
+
enabled: rest[1]
|
|
23741
|
+
};
|
|
23742
|
+
}
|
|
23743
|
+
const clientId = params.clientId;
|
|
23744
|
+
const clientSecret = params.clientSecret;
|
|
23745
|
+
const enabled = params.enabled;
|
|
23746
|
+
const apiPath = '/project/oauth2/yandex';
|
|
21959
23747
|
const payload = {};
|
|
21960
|
-
if (typeof
|
|
21961
|
-
payload['
|
|
23748
|
+
if (typeof clientId !== 'undefined') {
|
|
23749
|
+
payload['clientId'] = clientId;
|
|
23750
|
+
}
|
|
23751
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23752
|
+
payload['clientSecret'] = clientSecret;
|
|
23753
|
+
}
|
|
23754
|
+
if (typeof enabled !== 'undefined') {
|
|
23755
|
+
payload['enabled'] = enabled;
|
|
21962
23756
|
}
|
|
21963
23757
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
21964
23758
|
const apiHeaders = {
|
|
21965
23759
|
'content-type': 'application/json',
|
|
21966
23760
|
};
|
|
21967
|
-
return this.client.call('
|
|
23761
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23762
|
+
}
|
|
23763
|
+
updateOAuth2Zoho(paramsOrFirst, ...rest) {
|
|
23764
|
+
let params;
|
|
23765
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23766
|
+
params = (paramsOrFirst || {});
|
|
23767
|
+
}
|
|
23768
|
+
else {
|
|
23769
|
+
params = {
|
|
23770
|
+
clientId: paramsOrFirst,
|
|
23771
|
+
clientSecret: rest[0],
|
|
23772
|
+
enabled: rest[1]
|
|
23773
|
+
};
|
|
23774
|
+
}
|
|
23775
|
+
const clientId = params.clientId;
|
|
23776
|
+
const clientSecret = params.clientSecret;
|
|
23777
|
+
const enabled = params.enabled;
|
|
23778
|
+
const apiPath = '/project/oauth2/zoho';
|
|
23779
|
+
const payload = {};
|
|
23780
|
+
if (typeof clientId !== 'undefined') {
|
|
23781
|
+
payload['clientId'] = clientId;
|
|
23782
|
+
}
|
|
23783
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23784
|
+
payload['clientSecret'] = clientSecret;
|
|
23785
|
+
}
|
|
23786
|
+
if (typeof enabled !== 'undefined') {
|
|
23787
|
+
payload['enabled'] = enabled;
|
|
23788
|
+
}
|
|
23789
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23790
|
+
const apiHeaders = {
|
|
23791
|
+
'content-type': 'application/json',
|
|
23792
|
+
};
|
|
23793
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23794
|
+
}
|
|
23795
|
+
updateOAuth2Zoom(paramsOrFirst, ...rest) {
|
|
23796
|
+
let params;
|
|
23797
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23798
|
+
params = (paramsOrFirst || {});
|
|
23799
|
+
}
|
|
23800
|
+
else {
|
|
23801
|
+
params = {
|
|
23802
|
+
clientId: paramsOrFirst,
|
|
23803
|
+
clientSecret: rest[0],
|
|
23804
|
+
enabled: rest[1]
|
|
23805
|
+
};
|
|
23806
|
+
}
|
|
23807
|
+
const clientId = params.clientId;
|
|
23808
|
+
const clientSecret = params.clientSecret;
|
|
23809
|
+
const enabled = params.enabled;
|
|
23810
|
+
const apiPath = '/project/oauth2/zoom';
|
|
23811
|
+
const payload = {};
|
|
23812
|
+
if (typeof clientId !== 'undefined') {
|
|
23813
|
+
payload['clientId'] = clientId;
|
|
23814
|
+
}
|
|
23815
|
+
if (typeof clientSecret !== 'undefined') {
|
|
23816
|
+
payload['clientSecret'] = clientSecret;
|
|
23817
|
+
}
|
|
23818
|
+
if (typeof enabled !== 'undefined') {
|
|
23819
|
+
payload['enabled'] = enabled;
|
|
23820
|
+
}
|
|
23821
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23822
|
+
const apiHeaders = {
|
|
23823
|
+
'content-type': 'application/json',
|
|
23824
|
+
};
|
|
23825
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23826
|
+
}
|
|
23827
|
+
getOAuth2Provider(paramsOrFirst) {
|
|
23828
|
+
let params;
|
|
23829
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
23830
|
+
params = (paramsOrFirst || {});
|
|
23831
|
+
}
|
|
23832
|
+
else {
|
|
23833
|
+
params = {
|
|
23834
|
+
provider: paramsOrFirst
|
|
23835
|
+
};
|
|
23836
|
+
}
|
|
23837
|
+
const provider = params.provider;
|
|
23838
|
+
if (typeof provider === 'undefined') {
|
|
23839
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
23840
|
+
}
|
|
23841
|
+
const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
|
|
23842
|
+
const payload = {};
|
|
23843
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
23844
|
+
const apiHeaders = {};
|
|
23845
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
21968
23846
|
}
|
|
21969
23847
|
listPlatforms(paramsOrFirst, ...rest) {
|
|
21970
23848
|
let params;
|
|
@@ -22428,6 +24306,31 @@
|
|
|
22428
24306
|
};
|
|
22429
24307
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
22430
24308
|
}
|
|
24309
|
+
listPolicies(paramsOrFirst, ...rest) {
|
|
24310
|
+
let params;
|
|
24311
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24312
|
+
params = (paramsOrFirst || {});
|
|
24313
|
+
}
|
|
24314
|
+
else {
|
|
24315
|
+
params = {
|
|
24316
|
+
queries: paramsOrFirst,
|
|
24317
|
+
total: rest[0]
|
|
24318
|
+
};
|
|
24319
|
+
}
|
|
24320
|
+
const queries = params.queries;
|
|
24321
|
+
const total = params.total;
|
|
24322
|
+
const apiPath = '/project/policies';
|
|
24323
|
+
const payload = {};
|
|
24324
|
+
if (typeof queries !== 'undefined') {
|
|
24325
|
+
payload['queries'] = queries;
|
|
24326
|
+
}
|
|
24327
|
+
if (typeof total !== 'undefined') {
|
|
24328
|
+
payload['total'] = total;
|
|
24329
|
+
}
|
|
24330
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24331
|
+
const apiHeaders = {};
|
|
24332
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24333
|
+
}
|
|
22431
24334
|
updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
|
|
22432
24335
|
let params;
|
|
22433
24336
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -22670,6 +24573,26 @@
|
|
|
22670
24573
|
};
|
|
22671
24574
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
22672
24575
|
}
|
|
24576
|
+
getPolicy(paramsOrFirst) {
|
|
24577
|
+
let params;
|
|
24578
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('policyId' in paramsOrFirst))) {
|
|
24579
|
+
params = (paramsOrFirst || {});
|
|
24580
|
+
}
|
|
24581
|
+
else {
|
|
24582
|
+
params = {
|
|
24583
|
+
policyId: paramsOrFirst
|
|
24584
|
+
};
|
|
24585
|
+
}
|
|
24586
|
+
const policyId = params.policyId;
|
|
24587
|
+
if (typeof policyId === 'undefined') {
|
|
24588
|
+
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
24589
|
+
}
|
|
24590
|
+
const apiPath = '/project/policies/{policyId}'.replace('{policyId}', policyId);
|
|
24591
|
+
const payload = {};
|
|
24592
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24593
|
+
const apiHeaders = {};
|
|
24594
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
24595
|
+
}
|
|
22673
24596
|
updateProtocol(paramsOrFirst, ...rest) {
|
|
22674
24597
|
let params;
|
|
22675
24598
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('protocolId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
@@ -22807,20 +24730,45 @@
|
|
|
22807
24730
|
emails: paramsOrFirst
|
|
22808
24731
|
};
|
|
22809
24732
|
}
|
|
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';
|
|
24733
|
+
const emails = params.emails;
|
|
24734
|
+
if (typeof emails === 'undefined') {
|
|
24735
|
+
throw new AppwriteException('Missing required parameter: "emails"');
|
|
24736
|
+
}
|
|
24737
|
+
const apiPath = '/project/smtp/tests';
|
|
24738
|
+
const payload = {};
|
|
24739
|
+
if (typeof emails !== 'undefined') {
|
|
24740
|
+
payload['emails'] = emails;
|
|
24741
|
+
}
|
|
24742
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
24743
|
+
const apiHeaders = {
|
|
24744
|
+
'content-type': 'application/json',
|
|
24745
|
+
};
|
|
24746
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
24747
|
+
}
|
|
24748
|
+
listEmailTemplates(paramsOrFirst, ...rest) {
|
|
24749
|
+
let params;
|
|
24750
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
24751
|
+
params = (paramsOrFirst || {});
|
|
24752
|
+
}
|
|
24753
|
+
else {
|
|
24754
|
+
params = {
|
|
24755
|
+
queries: paramsOrFirst,
|
|
24756
|
+
total: rest[0]
|
|
24757
|
+
};
|
|
24758
|
+
}
|
|
24759
|
+
const queries = params.queries;
|
|
24760
|
+
const total = params.total;
|
|
24761
|
+
const apiPath = '/project/templates/email';
|
|
22815
24762
|
const payload = {};
|
|
22816
|
-
if (typeof
|
|
22817
|
-
payload['
|
|
24763
|
+
if (typeof queries !== 'undefined') {
|
|
24764
|
+
payload['queries'] = queries;
|
|
24765
|
+
}
|
|
24766
|
+
if (typeof total !== 'undefined') {
|
|
24767
|
+
payload['total'] = total;
|
|
22818
24768
|
}
|
|
22819
24769
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
22820
|
-
const apiHeaders = {
|
|
22821
|
-
|
|
22822
|
-
};
|
|
22823
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
24770
|
+
const apiHeaders = {};
|
|
24771
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
22824
24772
|
}
|
|
22825
24773
|
updateEmailTemplate(paramsOrFirst, ...rest) {
|
|
22826
24774
|
let params;
|
|
@@ -23315,93 +25263,6 @@
|
|
|
23315
25263
|
};
|
|
23316
25264
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
23317
25265
|
}
|
|
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
25266
|
updateConsoleAccess(paramsOrFirst) {
|
|
23406
25267
|
let params;
|
|
23407
25268
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -23582,86 +25443,6 @@
|
|
|
23582
25443
|
};
|
|
23583
25444
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
23584
25445
|
}
|
|
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
25446
|
listSchedules(paramsOrFirst, ...rest) {
|
|
23666
25447
|
let params;
|
|
23667
25448
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -33987,73 +35768,80 @@
|
|
|
33987
35768
|
Scopes["Account"] = "account";
|
|
33988
35769
|
Scopes["TeamsRead"] = "teams.read";
|
|
33989
35770
|
Scopes["TeamsWrite"] = "teams.write";
|
|
33990
|
-
Scopes["
|
|
35771
|
+
Scopes["ProjectRead"] = "project.read";
|
|
35772
|
+
Scopes["ProjectWrite"] = "project.write";
|
|
35773
|
+
Scopes["KeysRead"] = "keys.read";
|
|
35774
|
+
Scopes["KeysWrite"] = "keys.write";
|
|
35775
|
+
Scopes["PlatformsRead"] = "platforms.read";
|
|
35776
|
+
Scopes["PlatformsWrite"] = "platforms.write";
|
|
35777
|
+
Scopes["MocksRead"] = "mocks.read";
|
|
35778
|
+
Scopes["MocksWrite"] = "mocks.write";
|
|
35779
|
+
Scopes["PoliciesRead"] = "policies.read";
|
|
35780
|
+
Scopes["PoliciesWrite"] = "policies.write";
|
|
35781
|
+
Scopes["TemplatesRead"] = "templates.read";
|
|
35782
|
+
Scopes["TemplatesWrite"] = "templates.write";
|
|
35783
|
+
Scopes["Oauth2Read"] = "oauth2.read";
|
|
35784
|
+
Scopes["Oauth2Write"] = "oauth2.write";
|
|
33991
35785
|
Scopes["UsersRead"] = "users.read";
|
|
33992
35786
|
Scopes["UsersWrite"] = "users.write";
|
|
35787
|
+
Scopes["SessionsRead"] = "sessions.read";
|
|
35788
|
+
Scopes["SessionsWrite"] = "sessions.write";
|
|
33993
35789
|
Scopes["DatabasesRead"] = "databases.read";
|
|
33994
35790
|
Scopes["DatabasesWrite"] = "databases.write";
|
|
33995
|
-
Scopes["CollectionsRead"] = "collections.read";
|
|
33996
|
-
Scopes["CollectionsWrite"] = "collections.write";
|
|
33997
35791
|
Scopes["TablesRead"] = "tables.read";
|
|
33998
35792
|
Scopes["TablesWrite"] = "tables.write";
|
|
33999
|
-
Scopes["AttributesRead"] = "attributes.read";
|
|
34000
|
-
Scopes["AttributesWrite"] = "attributes.write";
|
|
34001
35793
|
Scopes["ColumnsRead"] = "columns.read";
|
|
34002
35794
|
Scopes["ColumnsWrite"] = "columns.write";
|
|
34003
35795
|
Scopes["IndexesRead"] = "indexes.read";
|
|
34004
35796
|
Scopes["IndexesWrite"] = "indexes.write";
|
|
34005
|
-
Scopes["DocumentsRead"] = "documents.read";
|
|
34006
|
-
Scopes["DocumentsWrite"] = "documents.write";
|
|
34007
35797
|
Scopes["RowsRead"] = "rows.read";
|
|
34008
35798
|
Scopes["RowsWrite"] = "rows.write";
|
|
34009
|
-
Scopes["
|
|
34010
|
-
Scopes["
|
|
35799
|
+
Scopes["CollectionsRead"] = "collections.read";
|
|
35800
|
+
Scopes["CollectionsWrite"] = "collections.write";
|
|
35801
|
+
Scopes["AttributesRead"] = "attributes.read";
|
|
35802
|
+
Scopes["AttributesWrite"] = "attributes.write";
|
|
35803
|
+
Scopes["DocumentsRead"] = "documents.read";
|
|
35804
|
+
Scopes["DocumentsWrite"] = "documents.write";
|
|
34011
35805
|
Scopes["BucketsRead"] = "buckets.read";
|
|
34012
35806
|
Scopes["BucketsWrite"] = "buckets.write";
|
|
35807
|
+
Scopes["FilesRead"] = "files.read";
|
|
35808
|
+
Scopes["FilesWrite"] = "files.write";
|
|
35809
|
+
Scopes["TokensRead"] = "tokens.read";
|
|
35810
|
+
Scopes["TokensWrite"] = "tokens.write";
|
|
34013
35811
|
Scopes["FunctionsRead"] = "functions.read";
|
|
34014
35812
|
Scopes["FunctionsWrite"] = "functions.write";
|
|
35813
|
+
Scopes["ExecutionsRead"] = "executions.read";
|
|
35814
|
+
Scopes["ExecutionsWrite"] = "executions.write";
|
|
35815
|
+
Scopes["ExecutionRead"] = "execution.read";
|
|
35816
|
+
Scopes["ExecutionWrite"] = "execution.write";
|
|
34015
35817
|
Scopes["SitesRead"] = "sites.read";
|
|
34016
35818
|
Scopes["SitesWrite"] = "sites.write";
|
|
34017
35819
|
Scopes["LogRead"] = "log.read";
|
|
34018
35820
|
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
35821
|
Scopes["ProvidersRead"] = "providers.read";
|
|
34025
35822
|
Scopes["ProvidersWrite"] = "providers.write";
|
|
34026
|
-
Scopes["MessagesRead"] = "messages.read";
|
|
34027
|
-
Scopes["MessagesWrite"] = "messages.write";
|
|
34028
35823
|
Scopes["TopicsRead"] = "topics.read";
|
|
34029
35824
|
Scopes["TopicsWrite"] = "topics.write";
|
|
34030
35825
|
Scopes["SubscribersRead"] = "subscribers.read";
|
|
34031
35826
|
Scopes["SubscribersWrite"] = "subscribers.write";
|
|
34032
35827
|
Scopes["TargetsRead"] = "targets.read";
|
|
34033
35828
|
Scopes["TargetsWrite"] = "targets.write";
|
|
34034
|
-
Scopes["
|
|
34035
|
-
Scopes["
|
|
34036
|
-
Scopes["
|
|
34037
|
-
Scopes["
|
|
35829
|
+
Scopes["MessagesRead"] = "messages.read";
|
|
35830
|
+
Scopes["MessagesWrite"] = "messages.write";
|
|
35831
|
+
Scopes["WebhooksRead"] = "webhooks.read";
|
|
35832
|
+
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
35833
|
+
Scopes["LocaleRead"] = "locale.read";
|
|
35834
|
+
Scopes["AvatarsRead"] = "avatars.read";
|
|
35835
|
+
Scopes["HealthRead"] = "health.read";
|
|
35836
|
+
Scopes["AssistantRead"] = "assistant.read";
|
|
34038
35837
|
Scopes["MigrationsRead"] = "migrations.read";
|
|
34039
35838
|
Scopes["MigrationsWrite"] = "migrations.write";
|
|
35839
|
+
Scopes["SchedulesRead"] = "schedules.read";
|
|
35840
|
+
Scopes["SchedulesWrite"] = "schedules.write";
|
|
34040
35841
|
Scopes["VcsRead"] = "vcs.read";
|
|
34041
35842
|
Scopes["VcsWrite"] = "vcs.write";
|
|
34042
|
-
Scopes["
|
|
34043
|
-
Scopes["
|
|
34044
|
-
Scopes["TokensWrite"] = "tokens.write";
|
|
34045
|
-
Scopes["WebhooksRead"] = "webhooks.read";
|
|
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";
|
|
35843
|
+
Scopes["RulesRead"] = "rules.read";
|
|
35844
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
34057
35845
|
Scopes["ArchivesRead"] = "archives.read";
|
|
34058
35846
|
Scopes["ArchivesWrite"] = "archives.write";
|
|
34059
35847
|
Scopes["RestorationsRead"] = "restorations.read";
|
|
@@ -34097,9 +35885,12 @@
|
|
|
34097
35885
|
OAuthProvider["Etsy"] = "etsy";
|
|
34098
35886
|
OAuthProvider["Facebook"] = "facebook";
|
|
34099
35887
|
OAuthProvider["Figma"] = "figma";
|
|
35888
|
+
OAuthProvider["Fusionauth"] = "fusionauth";
|
|
34100
35889
|
OAuthProvider["Github"] = "github";
|
|
34101
35890
|
OAuthProvider["Gitlab"] = "gitlab";
|
|
34102
35891
|
OAuthProvider["Google"] = "google";
|
|
35892
|
+
OAuthProvider["Keycloak"] = "keycloak";
|
|
35893
|
+
OAuthProvider["Kick"] = "kick";
|
|
34103
35894
|
OAuthProvider["Linkedin"] = "linkedin";
|
|
34104
35895
|
OAuthProvider["Microsoft"] = "microsoft";
|
|
34105
35896
|
OAuthProvider["Notion"] = "notion";
|
|
@@ -34986,6 +36777,7 @@
|
|
|
34986
36777
|
Runtime["Go124"] = "go-1.24";
|
|
34987
36778
|
Runtime["Go125"] = "go-1.25";
|
|
34988
36779
|
Runtime["Go126"] = "go-1.26";
|
|
36780
|
+
Runtime["Rust183"] = "rust-1.83";
|
|
34989
36781
|
Runtime["Static1"] = "static-1";
|
|
34990
36782
|
Runtime["Flutter324"] = "flutter-3.24";
|
|
34991
36783
|
Runtime["Flutter327"] = "flutter-3.27";
|
|
@@ -35078,6 +36870,7 @@
|
|
|
35078
36870
|
Runtimes["Go124"] = "go-1.24";
|
|
35079
36871
|
Runtimes["Go125"] = "go-1.25";
|
|
35080
36872
|
Runtimes["Go126"] = "go-1.26";
|
|
36873
|
+
Runtimes["Rust183"] = "rust-1.83";
|
|
35081
36874
|
Runtimes["Static1"] = "static-1";
|
|
35082
36875
|
Runtimes["Flutter324"] = "flutter-3.24";
|
|
35083
36876
|
Runtimes["Flutter327"] = "flutter-3.27";
|
|
@@ -35154,6 +36947,23 @@
|
|
|
35154
36947
|
Name["V1migrations"] = "v1-migrations";
|
|
35155
36948
|
})(exports.Name || (exports.Name = {}));
|
|
35156
36949
|
|
|
36950
|
+
exports.ResourceType = void 0;
|
|
36951
|
+
(function (ResourceType) {
|
|
36952
|
+
ResourceType["Projects"] = "projects";
|
|
36953
|
+
ResourceType["Functions"] = "functions";
|
|
36954
|
+
ResourceType["Sites"] = "sites";
|
|
36955
|
+
ResourceType["Databases"] = "databases";
|
|
36956
|
+
ResourceType["Buckets"] = "buckets";
|
|
36957
|
+
ResourceType["Providers"] = "providers";
|
|
36958
|
+
ResourceType["Topics"] = "topics";
|
|
36959
|
+
ResourceType["Subscribers"] = "subscribers";
|
|
36960
|
+
ResourceType["Messages"] = "messages";
|
|
36961
|
+
ResourceType["Function"] = "function";
|
|
36962
|
+
ResourceType["Execution"] = "execution";
|
|
36963
|
+
ResourceType["Message"] = "message";
|
|
36964
|
+
ResourceType["Backup"] = "backup";
|
|
36965
|
+
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
36966
|
+
|
|
35157
36967
|
exports.MessagePriority = void 0;
|
|
35158
36968
|
(function (MessagePriority) {
|
|
35159
36969
|
MessagePriority["Normal"] = "normal";
|
|
@@ -35194,6 +37004,7 @@
|
|
|
35194
37004
|
AppwriteMigrationResource["Site"] = "site";
|
|
35195
37005
|
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
35196
37006
|
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
37007
|
+
AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
|
|
35197
37008
|
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
35198
37009
|
|
|
35199
37010
|
exports.FirebaseMigrationResource = void 0;
|
|
@@ -35245,6 +37056,30 @@
|
|
|
35245
37056
|
Addon["Baa"] = "baa";
|
|
35246
37057
|
})(exports.Addon || (exports.Addon = {}));
|
|
35247
37058
|
|
|
37059
|
+
exports.MethodId = void 0;
|
|
37060
|
+
(function (MethodId) {
|
|
37061
|
+
MethodId["Emailpassword"] = "email-password";
|
|
37062
|
+
MethodId["Magicurl"] = "magic-url";
|
|
37063
|
+
MethodId["Emailotp"] = "email-otp";
|
|
37064
|
+
MethodId["Anonymous"] = "anonymous";
|
|
37065
|
+
MethodId["Invites"] = "invites";
|
|
37066
|
+
MethodId["Jwt"] = "jwt";
|
|
37067
|
+
MethodId["Phone"] = "phone";
|
|
37068
|
+
})(exports.MethodId || (exports.MethodId = {}));
|
|
37069
|
+
|
|
37070
|
+
exports.PolicyId = void 0;
|
|
37071
|
+
(function (PolicyId) {
|
|
37072
|
+
PolicyId["Passworddictionary"] = "password-dictionary";
|
|
37073
|
+
PolicyId["Passwordhistory"] = "password-history";
|
|
37074
|
+
PolicyId["Passwordpersonaldata"] = "password-personal-data";
|
|
37075
|
+
PolicyId["Sessionalert"] = "session-alert";
|
|
37076
|
+
PolicyId["Sessionduration"] = "session-duration";
|
|
37077
|
+
PolicyId["Sessioninvalidation"] = "session-invalidation";
|
|
37078
|
+
PolicyId["Sessionlimit"] = "session-limit";
|
|
37079
|
+
PolicyId["Userlimit"] = "user-limit";
|
|
37080
|
+
PolicyId["Membershipprivacy"] = "membership-privacy";
|
|
37081
|
+
})(exports.PolicyId || (exports.PolicyId = {}));
|
|
37082
|
+
|
|
35248
37083
|
exports.ProtocolId = void 0;
|
|
35249
37084
|
(function (ProtocolId) {
|
|
35250
37085
|
ProtocolId["Rest"] = "rest";
|
|
@@ -35441,25 +37276,6 @@
|
|
|
35441
37276
|
Region["Tor"] = "tor";
|
|
35442
37277
|
})(exports.Region || (exports.Region = {}));
|
|
35443
37278
|
|
|
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
37279
|
exports.Status = void 0;
|
|
35464
37280
|
(function (Status) {
|
|
35465
37281
|
Status["Active"] = "active";
|
|
@@ -35580,6 +37396,7 @@
|
|
|
35580
37396
|
BuildRuntime["Go124"] = "go-1.24";
|
|
35581
37397
|
BuildRuntime["Go125"] = "go-1.25";
|
|
35582
37398
|
BuildRuntime["Go126"] = "go-1.26";
|
|
37399
|
+
BuildRuntime["Rust183"] = "rust-1.83";
|
|
35583
37400
|
BuildRuntime["Static1"] = "static-1";
|
|
35584
37401
|
BuildRuntime["Flutter324"] = "flutter-3.24";
|
|
35585
37402
|
BuildRuntime["Flutter327"] = "flutter-3.27";
|
|
@@ -35846,6 +37663,7 @@
|
|
|
35846
37663
|
exports.Health = Health;
|
|
35847
37664
|
exports.ID = ID;
|
|
35848
37665
|
exports.Locale = Locale;
|
|
37666
|
+
exports.Manager = Manager;
|
|
35849
37667
|
exports.Messaging = Messaging;
|
|
35850
37668
|
exports.Migrations = Migrations;
|
|
35851
37669
|
exports.Operator = Operator;
|