@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/cjs/sdk.js
CHANGED
|
@@ -620,8 +620,8 @@ class Client {
|
|
|
620
620
|
'x-sdk-name': 'Console',
|
|
621
621
|
'x-sdk-platform': 'console',
|
|
622
622
|
'x-sdk-language': 'web',
|
|
623
|
-
'x-sdk-version': '
|
|
624
|
-
'X-Appwrite-Response-Format': '1.9.
|
|
623
|
+
'x-sdk-version': '12.0.0',
|
|
624
|
+
'X-Appwrite-Response-Format': '1.9.3',
|
|
625
625
|
};
|
|
626
626
|
this.realtime = {
|
|
627
627
|
socket: undefined,
|
|
@@ -4184,6 +4184,19 @@ class Console {
|
|
|
4184
4184
|
const apiHeaders = {};
|
|
4185
4185
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
4186
4186
|
}
|
|
4187
|
+
/**
|
|
4188
|
+
* 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.
|
|
4189
|
+
*
|
|
4190
|
+
* @throws {AppwriteException}
|
|
4191
|
+
* @returns {Promise<Models.ConsoleOAuth2ProviderList>}
|
|
4192
|
+
*/
|
|
4193
|
+
listOAuth2Providers() {
|
|
4194
|
+
const apiPath = '/console/oauth2-providers';
|
|
4195
|
+
const payload = {};
|
|
4196
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4197
|
+
const apiHeaders = {};
|
|
4198
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4199
|
+
}
|
|
4187
4200
|
getPlans(paramsOrFirst) {
|
|
4188
4201
|
let params;
|
|
4189
4202
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('platform' in paramsOrFirst))) {
|
|
@@ -4310,6 +4323,19 @@ class Console {
|
|
|
4310
4323
|
const apiHeaders = {};
|
|
4311
4324
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
4312
4325
|
}
|
|
4326
|
+
/**
|
|
4327
|
+
* List all scopes available for project API keys, along with a description for each scope.
|
|
4328
|
+
*
|
|
4329
|
+
* @throws {AppwriteException}
|
|
4330
|
+
* @returns {Promise<Models.ConsoleKeyScopeList>}
|
|
4331
|
+
*/
|
|
4332
|
+
listProjectScopes() {
|
|
4333
|
+
const apiPath = '/console/scopes/project';
|
|
4334
|
+
const payload = {};
|
|
4335
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
4336
|
+
const apiHeaders = {};
|
|
4337
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
4338
|
+
}
|
|
4313
4339
|
createSource(paramsOrFirst, ...rest) {
|
|
4314
4340
|
let params;
|
|
4315
4341
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -9213,19 +9239,19 @@ class Domains {
|
|
|
9213
9239
|
}
|
|
9214
9240
|
else {
|
|
9215
9241
|
params = {
|
|
9216
|
-
|
|
9242
|
+
invoiceId: paramsOrFirst,
|
|
9217
9243
|
organizationId: rest[0]
|
|
9218
9244
|
};
|
|
9219
9245
|
}
|
|
9220
|
-
const
|
|
9246
|
+
const invoiceId = params.invoiceId;
|
|
9221
9247
|
const organizationId = params.organizationId;
|
|
9222
|
-
if (typeof
|
|
9223
|
-
throw new AppwriteException('Missing required parameter: "
|
|
9248
|
+
if (typeof invoiceId === 'undefined') {
|
|
9249
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
9224
9250
|
}
|
|
9225
9251
|
if (typeof organizationId === 'undefined') {
|
|
9226
9252
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
9227
9253
|
}
|
|
9228
|
-
const apiPath = '/domains/purchases/{
|
|
9254
|
+
const apiPath = '/domains/purchases/{invoiceId}'.replace('{invoiceId}', invoiceId);
|
|
9229
9255
|
const payload = {};
|
|
9230
9256
|
if (typeof organizationId !== 'undefined') {
|
|
9231
9257
|
payload['organizationId'] = organizationId;
|
|
@@ -9345,19 +9371,19 @@ class Domains {
|
|
|
9345
9371
|
}
|
|
9346
9372
|
else {
|
|
9347
9373
|
params = {
|
|
9348
|
-
|
|
9374
|
+
invoiceId: paramsOrFirst,
|
|
9349
9375
|
organizationId: rest[0]
|
|
9350
9376
|
};
|
|
9351
9377
|
}
|
|
9352
|
-
const
|
|
9378
|
+
const invoiceId = params.invoiceId;
|
|
9353
9379
|
const organizationId = params.organizationId;
|
|
9354
|
-
if (typeof
|
|
9355
|
-
throw new AppwriteException('Missing required parameter: "
|
|
9380
|
+
if (typeof invoiceId === 'undefined') {
|
|
9381
|
+
throw new AppwriteException('Missing required parameter: "invoiceId"');
|
|
9356
9382
|
}
|
|
9357
9383
|
if (typeof organizationId === 'undefined') {
|
|
9358
9384
|
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
9359
9385
|
}
|
|
9360
|
-
const apiPath = '/domains/transfers/in/{
|
|
9386
|
+
const apiPath = '/domains/transfers/in/{invoiceId}'.replace('{invoiceId}', invoiceId);
|
|
9361
9387
|
const payload = {};
|
|
9362
9388
|
if (typeof organizationId !== 'undefined') {
|
|
9363
9389
|
payload['organizationId'] = organizationId;
|
|
@@ -12894,6 +12920,158 @@ class Locale {
|
|
|
12894
12920
|
}
|
|
12895
12921
|
}
|
|
12896
12922
|
|
|
12923
|
+
class Manager {
|
|
12924
|
+
constructor(client) {
|
|
12925
|
+
this.client = client;
|
|
12926
|
+
}
|
|
12927
|
+
createBlock(paramsOrFirst, ...rest) {
|
|
12928
|
+
let params;
|
|
12929
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
12930
|
+
params = (paramsOrFirst || {});
|
|
12931
|
+
}
|
|
12932
|
+
else {
|
|
12933
|
+
params = {
|
|
12934
|
+
projectId: paramsOrFirst,
|
|
12935
|
+
resourceType: rest[0],
|
|
12936
|
+
resourceId: rest[1],
|
|
12937
|
+
reason: rest[2],
|
|
12938
|
+
expiredAt: rest[3]
|
|
12939
|
+
};
|
|
12940
|
+
}
|
|
12941
|
+
const projectId = params.projectId;
|
|
12942
|
+
const resourceType = params.resourceType;
|
|
12943
|
+
const resourceId = params.resourceId;
|
|
12944
|
+
const reason = params.reason;
|
|
12945
|
+
const expiredAt = params.expiredAt;
|
|
12946
|
+
if (typeof projectId === 'undefined') {
|
|
12947
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
12948
|
+
}
|
|
12949
|
+
if (typeof resourceType === 'undefined') {
|
|
12950
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
12951
|
+
}
|
|
12952
|
+
const apiPath = '/manager/blocks';
|
|
12953
|
+
const payload = {};
|
|
12954
|
+
if (typeof projectId !== 'undefined') {
|
|
12955
|
+
payload['projectId'] = projectId;
|
|
12956
|
+
}
|
|
12957
|
+
if (typeof resourceType !== 'undefined') {
|
|
12958
|
+
payload['resourceType'] = resourceType;
|
|
12959
|
+
}
|
|
12960
|
+
if (typeof resourceId !== 'undefined') {
|
|
12961
|
+
payload['resourceId'] = resourceId;
|
|
12962
|
+
}
|
|
12963
|
+
if (typeof reason !== 'undefined') {
|
|
12964
|
+
payload['reason'] = reason;
|
|
12965
|
+
}
|
|
12966
|
+
if (typeof expiredAt !== 'undefined') {
|
|
12967
|
+
payload['expiredAt'] = expiredAt;
|
|
12968
|
+
}
|
|
12969
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
12970
|
+
const apiHeaders = {
|
|
12971
|
+
'content-type': 'application/json',
|
|
12972
|
+
};
|
|
12973
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
12974
|
+
}
|
|
12975
|
+
deleteBlock(paramsOrFirst, ...rest) {
|
|
12976
|
+
let params;
|
|
12977
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
12978
|
+
params = (paramsOrFirst || {});
|
|
12979
|
+
}
|
|
12980
|
+
else {
|
|
12981
|
+
params = {
|
|
12982
|
+
projectId: paramsOrFirst,
|
|
12983
|
+
resourceType: rest[0],
|
|
12984
|
+
resourceId: rest[1]
|
|
12985
|
+
};
|
|
12986
|
+
}
|
|
12987
|
+
const projectId = params.projectId;
|
|
12988
|
+
const resourceType = params.resourceType;
|
|
12989
|
+
const resourceId = params.resourceId;
|
|
12990
|
+
if (typeof projectId === 'undefined') {
|
|
12991
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
12992
|
+
}
|
|
12993
|
+
if (typeof resourceType === 'undefined') {
|
|
12994
|
+
throw new AppwriteException('Missing required parameter: "resourceType"');
|
|
12995
|
+
}
|
|
12996
|
+
const apiPath = '/manager/blocks';
|
|
12997
|
+
const payload = {};
|
|
12998
|
+
if (typeof projectId !== 'undefined') {
|
|
12999
|
+
payload['projectId'] = projectId;
|
|
13000
|
+
}
|
|
13001
|
+
if (typeof resourceType !== 'undefined') {
|
|
13002
|
+
payload['resourceType'] = resourceType;
|
|
13003
|
+
}
|
|
13004
|
+
if (typeof resourceId !== 'undefined') {
|
|
13005
|
+
payload['resourceId'] = resourceId;
|
|
13006
|
+
}
|
|
13007
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13008
|
+
const apiHeaders = {
|
|
13009
|
+
'content-type': 'application/json',
|
|
13010
|
+
};
|
|
13011
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
13012
|
+
}
|
|
13013
|
+
listBlocks(paramsOrFirst) {
|
|
13014
|
+
let params;
|
|
13015
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13016
|
+
params = (paramsOrFirst || {});
|
|
13017
|
+
}
|
|
13018
|
+
else {
|
|
13019
|
+
params = {
|
|
13020
|
+
projectId: paramsOrFirst
|
|
13021
|
+
};
|
|
13022
|
+
}
|
|
13023
|
+
const projectId = params.projectId;
|
|
13024
|
+
if (typeof projectId === 'undefined') {
|
|
13025
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
13026
|
+
}
|
|
13027
|
+
const apiPath = '/manager/blocks/{projectId}'.replace('{projectId}', projectId);
|
|
13028
|
+
const payload = {};
|
|
13029
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13030
|
+
const apiHeaders = {};
|
|
13031
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
13032
|
+
}
|
|
13033
|
+
updateUserStatus(paramsOrFirst, ...rest) {
|
|
13034
|
+
let params;
|
|
13035
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
13036
|
+
params = (paramsOrFirst || {});
|
|
13037
|
+
}
|
|
13038
|
+
else {
|
|
13039
|
+
params = {
|
|
13040
|
+
status: paramsOrFirst,
|
|
13041
|
+
userId: rest[0],
|
|
13042
|
+
email: rest[1],
|
|
13043
|
+
reason: rest[2]
|
|
13044
|
+
};
|
|
13045
|
+
}
|
|
13046
|
+
const status = params.status;
|
|
13047
|
+
const userId = params.userId;
|
|
13048
|
+
const email = params.email;
|
|
13049
|
+
const reason = params.reason;
|
|
13050
|
+
if (typeof status === 'undefined') {
|
|
13051
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
13052
|
+
}
|
|
13053
|
+
const apiPath = '/manager/users/status';
|
|
13054
|
+
const payload = {};
|
|
13055
|
+
if (typeof userId !== 'undefined') {
|
|
13056
|
+
payload['userId'] = userId;
|
|
13057
|
+
}
|
|
13058
|
+
if (typeof email !== 'undefined') {
|
|
13059
|
+
payload['email'] = email;
|
|
13060
|
+
}
|
|
13061
|
+
if (typeof status !== 'undefined') {
|
|
13062
|
+
payload['status'] = status;
|
|
13063
|
+
}
|
|
13064
|
+
if (typeof reason !== 'undefined') {
|
|
13065
|
+
payload['reason'] = reason;
|
|
13066
|
+
}
|
|
13067
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
13068
|
+
const apiHeaders = {
|
|
13069
|
+
'content-type': 'application/json',
|
|
13070
|
+
};
|
|
13071
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
13072
|
+
}
|
|
13073
|
+
}
|
|
13074
|
+
|
|
12897
13075
|
class Messaging {
|
|
12898
13076
|
constructor(client) {
|
|
12899
13077
|
this.client = client;
|
|
@@ -17774,6 +17952,46 @@ class Organizations {
|
|
|
17774
17952
|
};
|
|
17775
17953
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
17776
17954
|
}
|
|
17955
|
+
createPlanEstimation(paramsOrFirst, ...rest) {
|
|
17956
|
+
let params;
|
|
17957
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
17958
|
+
params = (paramsOrFirst || {});
|
|
17959
|
+
}
|
|
17960
|
+
else {
|
|
17961
|
+
params = {
|
|
17962
|
+
organizationId: paramsOrFirst,
|
|
17963
|
+
billingPlan: rest[0],
|
|
17964
|
+
invites: rest[1],
|
|
17965
|
+
couponId: rest[2]
|
|
17966
|
+
};
|
|
17967
|
+
}
|
|
17968
|
+
const organizationId = params.organizationId;
|
|
17969
|
+
const billingPlan = params.billingPlan;
|
|
17970
|
+
const invites = params.invites;
|
|
17971
|
+
const couponId = params.couponId;
|
|
17972
|
+
if (typeof organizationId === 'undefined') {
|
|
17973
|
+
throw new AppwriteException('Missing required parameter: "organizationId"');
|
|
17974
|
+
}
|
|
17975
|
+
if (typeof billingPlan === 'undefined') {
|
|
17976
|
+
throw new AppwriteException('Missing required parameter: "billingPlan"');
|
|
17977
|
+
}
|
|
17978
|
+
const apiPath = '/organizations/{organizationId}/plan/estimations'.replace('{organizationId}', organizationId);
|
|
17979
|
+
const payload = {};
|
|
17980
|
+
if (typeof billingPlan !== 'undefined') {
|
|
17981
|
+
payload['billingPlan'] = billingPlan;
|
|
17982
|
+
}
|
|
17983
|
+
if (typeof invites !== 'undefined') {
|
|
17984
|
+
payload['invites'] = invites;
|
|
17985
|
+
}
|
|
17986
|
+
if (typeof couponId !== 'undefined') {
|
|
17987
|
+
payload['couponId'] = couponId;
|
|
17988
|
+
}
|
|
17989
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
17990
|
+
const apiHeaders = {
|
|
17991
|
+
'content-type': 'application/json',
|
|
17992
|
+
};
|
|
17993
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
17994
|
+
}
|
|
17777
17995
|
listRegions(paramsOrFirst) {
|
|
17778
17996
|
let params;
|
|
17779
17997
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -17912,6 +18130,51 @@ class Project {
|
|
|
17912
18130
|
constructor(client) {
|
|
17913
18131
|
this.client = client;
|
|
17914
18132
|
}
|
|
18133
|
+
/**
|
|
18134
|
+
* Delete a project.
|
|
18135
|
+
*
|
|
18136
|
+
* @throws {AppwriteException}
|
|
18137
|
+
* @returns {Promise<{}>}
|
|
18138
|
+
*/
|
|
18139
|
+
delete() {
|
|
18140
|
+
const apiPath = '/project';
|
|
18141
|
+
const payload = {};
|
|
18142
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18143
|
+
const apiHeaders = {
|
|
18144
|
+
'content-type': 'application/json',
|
|
18145
|
+
};
|
|
18146
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18147
|
+
}
|
|
18148
|
+
updateAuthMethod(paramsOrFirst, ...rest) {
|
|
18149
|
+
let params;
|
|
18150
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('methodId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
18151
|
+
params = (paramsOrFirst || {});
|
|
18152
|
+
}
|
|
18153
|
+
else {
|
|
18154
|
+
params = {
|
|
18155
|
+
methodId: paramsOrFirst,
|
|
18156
|
+
enabled: rest[0]
|
|
18157
|
+
};
|
|
18158
|
+
}
|
|
18159
|
+
const methodId = params.methodId;
|
|
18160
|
+
const enabled = params.enabled;
|
|
18161
|
+
if (typeof methodId === 'undefined') {
|
|
18162
|
+
throw new AppwriteException('Missing required parameter: "methodId"');
|
|
18163
|
+
}
|
|
18164
|
+
if (typeof enabled === 'undefined') {
|
|
18165
|
+
throw new AppwriteException('Missing required parameter: "enabled"');
|
|
18166
|
+
}
|
|
18167
|
+
const apiPath = '/project/auth-methods/{methodId}'.replace('{methodId}', methodId);
|
|
18168
|
+
const payload = {};
|
|
18169
|
+
if (typeof enabled !== 'undefined') {
|
|
18170
|
+
payload['enabled'] = enabled;
|
|
18171
|
+
}
|
|
18172
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18173
|
+
const apiHeaders = {
|
|
18174
|
+
'content-type': 'application/json',
|
|
18175
|
+
};
|
|
18176
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18177
|
+
}
|
|
17915
18178
|
updateCanonicalEmails(paramsOrFirst) {
|
|
17916
18179
|
let params;
|
|
17917
18180
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -18058,115 +18321,1730 @@ class Project {
|
|
|
18058
18321
|
};
|
|
18059
18322
|
return this.client.call('post', uri, apiHeaders, payload);
|
|
18060
18323
|
}
|
|
18061
|
-
|
|
18324
|
+
createEphemeralKey(paramsOrFirst, ...rest) {
|
|
18062
18325
|
let params;
|
|
18063
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18326
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('scopes' in paramsOrFirst || 'duration' in paramsOrFirst))) {
|
|
18064
18327
|
params = (paramsOrFirst || {});
|
|
18065
18328
|
}
|
|
18066
18329
|
else {
|
|
18067
18330
|
params = {
|
|
18068
|
-
|
|
18331
|
+
scopes: paramsOrFirst,
|
|
18332
|
+
duration: rest[0]
|
|
18069
18333
|
};
|
|
18070
18334
|
}
|
|
18071
|
-
const
|
|
18072
|
-
|
|
18073
|
-
|
|
18335
|
+
const scopes = params.scopes;
|
|
18336
|
+
const duration = params.duration;
|
|
18337
|
+
if (typeof scopes === 'undefined') {
|
|
18338
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
18074
18339
|
}
|
|
18075
|
-
|
|
18340
|
+
if (typeof duration === 'undefined') {
|
|
18341
|
+
throw new AppwriteException('Missing required parameter: "duration"');
|
|
18342
|
+
}
|
|
18343
|
+
const apiPath = '/project/keys/ephemeral';
|
|
18076
18344
|
const payload = {};
|
|
18077
|
-
|
|
18078
|
-
|
|
18345
|
+
if (typeof scopes !== 'undefined') {
|
|
18346
|
+
payload['scopes'] = scopes;
|
|
18347
|
+
}
|
|
18348
|
+
if (typeof duration !== 'undefined') {
|
|
18349
|
+
payload['duration'] = duration;
|
|
18350
|
+
}
|
|
18351
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18352
|
+
const apiHeaders = {
|
|
18353
|
+
'content-type': 'application/json',
|
|
18354
|
+
};
|
|
18355
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
18356
|
+
}
|
|
18357
|
+
getKey(paramsOrFirst) {
|
|
18358
|
+
let params;
|
|
18359
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18360
|
+
params = (paramsOrFirst || {});
|
|
18361
|
+
}
|
|
18362
|
+
else {
|
|
18363
|
+
params = {
|
|
18364
|
+
keyId: paramsOrFirst
|
|
18365
|
+
};
|
|
18366
|
+
}
|
|
18367
|
+
const keyId = params.keyId;
|
|
18368
|
+
if (typeof keyId === 'undefined') {
|
|
18369
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
18370
|
+
}
|
|
18371
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
18372
|
+
const payload = {};
|
|
18373
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18374
|
+
const apiHeaders = {};
|
|
18375
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
18376
|
+
}
|
|
18377
|
+
updateKey(paramsOrFirst, ...rest) {
|
|
18378
|
+
let params;
|
|
18379
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18380
|
+
params = (paramsOrFirst || {});
|
|
18381
|
+
}
|
|
18382
|
+
else {
|
|
18383
|
+
params = {
|
|
18384
|
+
keyId: paramsOrFirst,
|
|
18385
|
+
name: rest[0],
|
|
18386
|
+
scopes: rest[1],
|
|
18387
|
+
expire: rest[2]
|
|
18388
|
+
};
|
|
18389
|
+
}
|
|
18390
|
+
const keyId = params.keyId;
|
|
18391
|
+
const name = params.name;
|
|
18392
|
+
const scopes = params.scopes;
|
|
18393
|
+
const expire = params.expire;
|
|
18394
|
+
if (typeof keyId === 'undefined') {
|
|
18395
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
18396
|
+
}
|
|
18397
|
+
if (typeof name === 'undefined') {
|
|
18398
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
18399
|
+
}
|
|
18400
|
+
if (typeof scopes === 'undefined') {
|
|
18401
|
+
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
18402
|
+
}
|
|
18403
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
18404
|
+
const payload = {};
|
|
18405
|
+
if (typeof name !== 'undefined') {
|
|
18406
|
+
payload['name'] = name;
|
|
18407
|
+
}
|
|
18408
|
+
if (typeof scopes !== 'undefined') {
|
|
18409
|
+
payload['scopes'] = scopes;
|
|
18410
|
+
}
|
|
18411
|
+
if (typeof expire !== 'undefined') {
|
|
18412
|
+
payload['expire'] = expire;
|
|
18413
|
+
}
|
|
18414
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18415
|
+
const apiHeaders = {
|
|
18416
|
+
'content-type': 'application/json',
|
|
18417
|
+
};
|
|
18418
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
18419
|
+
}
|
|
18420
|
+
deleteKey(paramsOrFirst) {
|
|
18421
|
+
let params;
|
|
18422
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18423
|
+
params = (paramsOrFirst || {});
|
|
18424
|
+
}
|
|
18425
|
+
else {
|
|
18426
|
+
params = {
|
|
18427
|
+
keyId: paramsOrFirst
|
|
18428
|
+
};
|
|
18429
|
+
}
|
|
18430
|
+
const keyId = params.keyId;
|
|
18431
|
+
if (typeof keyId === 'undefined') {
|
|
18432
|
+
throw new AppwriteException('Missing required parameter: "keyId"');
|
|
18433
|
+
}
|
|
18434
|
+
const apiPath = '/project/keys/{keyId}'.replace('{keyId}', keyId);
|
|
18435
|
+
const payload = {};
|
|
18436
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18437
|
+
const apiHeaders = {
|
|
18438
|
+
'content-type': 'application/json',
|
|
18439
|
+
};
|
|
18440
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18441
|
+
}
|
|
18442
|
+
updateLabels(paramsOrFirst) {
|
|
18443
|
+
let params;
|
|
18444
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18445
|
+
params = (paramsOrFirst || {});
|
|
18446
|
+
}
|
|
18447
|
+
else {
|
|
18448
|
+
params = {
|
|
18449
|
+
labels: paramsOrFirst
|
|
18450
|
+
};
|
|
18451
|
+
}
|
|
18452
|
+
const labels = params.labels;
|
|
18453
|
+
if (typeof labels === 'undefined') {
|
|
18454
|
+
throw new AppwriteException('Missing required parameter: "labels"');
|
|
18455
|
+
}
|
|
18456
|
+
const apiPath = '/project/labels';
|
|
18457
|
+
const payload = {};
|
|
18458
|
+
if (typeof labels !== 'undefined') {
|
|
18459
|
+
payload['labels'] = labels;
|
|
18460
|
+
}
|
|
18461
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18462
|
+
const apiHeaders = {
|
|
18463
|
+
'content-type': 'application/json',
|
|
18464
|
+
};
|
|
18465
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
18466
|
+
}
|
|
18467
|
+
listMockPhones(paramsOrFirst, ...rest) {
|
|
18468
|
+
let params;
|
|
18469
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18470
|
+
params = (paramsOrFirst || {});
|
|
18471
|
+
}
|
|
18472
|
+
else {
|
|
18473
|
+
params = {
|
|
18474
|
+
queries: paramsOrFirst,
|
|
18475
|
+
total: rest[0]
|
|
18476
|
+
};
|
|
18477
|
+
}
|
|
18478
|
+
const queries = params.queries;
|
|
18479
|
+
const total = params.total;
|
|
18480
|
+
const apiPath = '/project/mock-phones';
|
|
18481
|
+
const payload = {};
|
|
18482
|
+
if (typeof queries !== 'undefined') {
|
|
18483
|
+
payload['queries'] = queries;
|
|
18484
|
+
}
|
|
18485
|
+
if (typeof total !== 'undefined') {
|
|
18486
|
+
payload['total'] = total;
|
|
18487
|
+
}
|
|
18488
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18489
|
+
const apiHeaders = {};
|
|
18490
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
18491
|
+
}
|
|
18492
|
+
createMockPhone(paramsOrFirst, ...rest) {
|
|
18493
|
+
let params;
|
|
18494
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18495
|
+
params = (paramsOrFirst || {});
|
|
18496
|
+
}
|
|
18497
|
+
else {
|
|
18498
|
+
params = {
|
|
18499
|
+
number: paramsOrFirst,
|
|
18500
|
+
otp: rest[0]
|
|
18501
|
+
};
|
|
18502
|
+
}
|
|
18503
|
+
const number = params.number;
|
|
18504
|
+
const otp = params.otp;
|
|
18505
|
+
if (typeof number === 'undefined') {
|
|
18506
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
18507
|
+
}
|
|
18508
|
+
if (typeof otp === 'undefined') {
|
|
18509
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
18510
|
+
}
|
|
18511
|
+
const apiPath = '/project/mock-phones';
|
|
18512
|
+
const payload = {};
|
|
18513
|
+
if (typeof number !== 'undefined') {
|
|
18514
|
+
payload['number'] = number;
|
|
18515
|
+
}
|
|
18516
|
+
if (typeof otp !== 'undefined') {
|
|
18517
|
+
payload['otp'] = otp;
|
|
18518
|
+
}
|
|
18519
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18520
|
+
const apiHeaders = {
|
|
18521
|
+
'content-type': 'application/json',
|
|
18522
|
+
};
|
|
18523
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
18524
|
+
}
|
|
18525
|
+
getMockPhone(paramsOrFirst) {
|
|
18526
|
+
let params;
|
|
18527
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18528
|
+
params = (paramsOrFirst || {});
|
|
18529
|
+
}
|
|
18530
|
+
else {
|
|
18531
|
+
params = {
|
|
18532
|
+
number: paramsOrFirst
|
|
18533
|
+
};
|
|
18534
|
+
}
|
|
18535
|
+
const number = params.number;
|
|
18536
|
+
if (typeof number === 'undefined') {
|
|
18537
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
18538
|
+
}
|
|
18539
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
18540
|
+
const payload = {};
|
|
18541
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18542
|
+
const apiHeaders = {};
|
|
18543
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
18544
|
+
}
|
|
18545
|
+
updateMockPhone(paramsOrFirst, ...rest) {
|
|
18546
|
+
let params;
|
|
18547
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18548
|
+
params = (paramsOrFirst || {});
|
|
18549
|
+
}
|
|
18550
|
+
else {
|
|
18551
|
+
params = {
|
|
18552
|
+
number: paramsOrFirst,
|
|
18553
|
+
otp: rest[0]
|
|
18554
|
+
};
|
|
18555
|
+
}
|
|
18556
|
+
const number = params.number;
|
|
18557
|
+
const otp = params.otp;
|
|
18558
|
+
if (typeof number === 'undefined') {
|
|
18559
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
18560
|
+
}
|
|
18561
|
+
if (typeof otp === 'undefined') {
|
|
18562
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
18563
|
+
}
|
|
18564
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
18565
|
+
const payload = {};
|
|
18566
|
+
if (typeof otp !== 'undefined') {
|
|
18567
|
+
payload['otp'] = otp;
|
|
18568
|
+
}
|
|
18569
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18570
|
+
const apiHeaders = {
|
|
18571
|
+
'content-type': 'application/json',
|
|
18572
|
+
};
|
|
18573
|
+
return this.client.call('put', uri, apiHeaders, payload);
|
|
18574
|
+
}
|
|
18575
|
+
deleteMockPhone(paramsOrFirst) {
|
|
18576
|
+
let params;
|
|
18577
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18578
|
+
params = (paramsOrFirst || {});
|
|
18579
|
+
}
|
|
18580
|
+
else {
|
|
18581
|
+
params = {
|
|
18582
|
+
number: paramsOrFirst
|
|
18583
|
+
};
|
|
18584
|
+
}
|
|
18585
|
+
const number = params.number;
|
|
18586
|
+
if (typeof number === 'undefined') {
|
|
18587
|
+
throw new AppwriteException('Missing required parameter: "number"');
|
|
18588
|
+
}
|
|
18589
|
+
const apiPath = '/project/mock-phones/{number}'.replace('{number}', number);
|
|
18590
|
+
const payload = {};
|
|
18591
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18592
|
+
const apiHeaders = {
|
|
18593
|
+
'content-type': 'application/json',
|
|
18594
|
+
};
|
|
18595
|
+
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18596
|
+
}
|
|
18597
|
+
/**
|
|
18598
|
+
* 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.
|
|
18599
|
+
*
|
|
18600
|
+
* @throws {AppwriteException}
|
|
18601
|
+
* @returns {Promise<Models.OAuth2ProviderList>}
|
|
18602
|
+
*/
|
|
18603
|
+
listOAuth2Providers() {
|
|
18604
|
+
const apiPath = '/project/oauth2';
|
|
18605
|
+
const payload = {};
|
|
18606
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18607
|
+
const apiHeaders = {};
|
|
18079
18608
|
return this.client.call('get', uri, apiHeaders, payload);
|
|
18080
18609
|
}
|
|
18081
|
-
|
|
18610
|
+
updateOAuth2Amazon(paramsOrFirst, ...rest) {
|
|
18611
|
+
let params;
|
|
18612
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18613
|
+
params = (paramsOrFirst || {});
|
|
18614
|
+
}
|
|
18615
|
+
else {
|
|
18616
|
+
params = {
|
|
18617
|
+
clientId: paramsOrFirst,
|
|
18618
|
+
clientSecret: rest[0],
|
|
18619
|
+
enabled: rest[1]
|
|
18620
|
+
};
|
|
18621
|
+
}
|
|
18622
|
+
const clientId = params.clientId;
|
|
18623
|
+
const clientSecret = params.clientSecret;
|
|
18624
|
+
const enabled = params.enabled;
|
|
18625
|
+
const apiPath = '/project/oauth2/amazon';
|
|
18626
|
+
const payload = {};
|
|
18627
|
+
if (typeof clientId !== 'undefined') {
|
|
18628
|
+
payload['clientId'] = clientId;
|
|
18629
|
+
}
|
|
18630
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18631
|
+
payload['clientSecret'] = clientSecret;
|
|
18632
|
+
}
|
|
18633
|
+
if (typeof enabled !== 'undefined') {
|
|
18634
|
+
payload['enabled'] = enabled;
|
|
18635
|
+
}
|
|
18636
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18637
|
+
const apiHeaders = {
|
|
18638
|
+
'content-type': 'application/json',
|
|
18639
|
+
};
|
|
18640
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18641
|
+
}
|
|
18642
|
+
updateOAuth2Apple(paramsOrFirst, ...rest) {
|
|
18643
|
+
let params;
|
|
18644
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18645
|
+
params = (paramsOrFirst || {});
|
|
18646
|
+
}
|
|
18647
|
+
else {
|
|
18648
|
+
params = {
|
|
18649
|
+
serviceId: paramsOrFirst,
|
|
18650
|
+
keyId: rest[0],
|
|
18651
|
+
teamId: rest[1],
|
|
18652
|
+
p8File: rest[2],
|
|
18653
|
+
enabled: rest[3]
|
|
18654
|
+
};
|
|
18655
|
+
}
|
|
18656
|
+
const serviceId = params.serviceId;
|
|
18657
|
+
const keyId = params.keyId;
|
|
18658
|
+
const teamId = params.teamId;
|
|
18659
|
+
const p8File = params.p8File;
|
|
18660
|
+
const enabled = params.enabled;
|
|
18661
|
+
const apiPath = '/project/oauth2/apple';
|
|
18662
|
+
const payload = {};
|
|
18663
|
+
if (typeof serviceId !== 'undefined') {
|
|
18664
|
+
payload['serviceId'] = serviceId;
|
|
18665
|
+
}
|
|
18666
|
+
if (typeof keyId !== 'undefined') {
|
|
18667
|
+
payload['keyId'] = keyId;
|
|
18668
|
+
}
|
|
18669
|
+
if (typeof teamId !== 'undefined') {
|
|
18670
|
+
payload['teamId'] = teamId;
|
|
18671
|
+
}
|
|
18672
|
+
if (typeof p8File !== 'undefined') {
|
|
18673
|
+
payload['p8File'] = p8File;
|
|
18674
|
+
}
|
|
18675
|
+
if (typeof enabled !== 'undefined') {
|
|
18676
|
+
payload['enabled'] = enabled;
|
|
18677
|
+
}
|
|
18678
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18679
|
+
const apiHeaders = {
|
|
18680
|
+
'content-type': 'application/json',
|
|
18681
|
+
};
|
|
18682
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18683
|
+
}
|
|
18684
|
+
updateOAuth2Auth0(paramsOrFirst, ...rest) {
|
|
18685
|
+
let params;
|
|
18686
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18687
|
+
params = (paramsOrFirst || {});
|
|
18688
|
+
}
|
|
18689
|
+
else {
|
|
18690
|
+
params = {
|
|
18691
|
+
clientId: paramsOrFirst,
|
|
18692
|
+
clientSecret: rest[0],
|
|
18693
|
+
endpoint: rest[1],
|
|
18694
|
+
enabled: rest[2]
|
|
18695
|
+
};
|
|
18696
|
+
}
|
|
18697
|
+
const clientId = params.clientId;
|
|
18698
|
+
const clientSecret = params.clientSecret;
|
|
18699
|
+
const endpoint = params.endpoint;
|
|
18700
|
+
const enabled = params.enabled;
|
|
18701
|
+
const apiPath = '/project/oauth2/auth0';
|
|
18702
|
+
const payload = {};
|
|
18703
|
+
if (typeof clientId !== 'undefined') {
|
|
18704
|
+
payload['clientId'] = clientId;
|
|
18705
|
+
}
|
|
18706
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18707
|
+
payload['clientSecret'] = clientSecret;
|
|
18708
|
+
}
|
|
18709
|
+
if (typeof endpoint !== 'undefined') {
|
|
18710
|
+
payload['endpoint'] = endpoint;
|
|
18711
|
+
}
|
|
18712
|
+
if (typeof enabled !== 'undefined') {
|
|
18713
|
+
payload['enabled'] = enabled;
|
|
18714
|
+
}
|
|
18715
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18716
|
+
const apiHeaders = {
|
|
18717
|
+
'content-type': 'application/json',
|
|
18718
|
+
};
|
|
18719
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18720
|
+
}
|
|
18721
|
+
updateOAuth2Authentik(paramsOrFirst, ...rest) {
|
|
18722
|
+
let params;
|
|
18723
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18724
|
+
params = (paramsOrFirst || {});
|
|
18725
|
+
}
|
|
18726
|
+
else {
|
|
18727
|
+
params = {
|
|
18728
|
+
clientId: paramsOrFirst,
|
|
18729
|
+
clientSecret: rest[0],
|
|
18730
|
+
endpoint: rest[1],
|
|
18731
|
+
enabled: rest[2]
|
|
18732
|
+
};
|
|
18733
|
+
}
|
|
18734
|
+
const clientId = params.clientId;
|
|
18735
|
+
const clientSecret = params.clientSecret;
|
|
18736
|
+
const endpoint = params.endpoint;
|
|
18737
|
+
const enabled = params.enabled;
|
|
18738
|
+
const apiPath = '/project/oauth2/authentik';
|
|
18739
|
+
const payload = {};
|
|
18740
|
+
if (typeof clientId !== 'undefined') {
|
|
18741
|
+
payload['clientId'] = clientId;
|
|
18742
|
+
}
|
|
18743
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18744
|
+
payload['clientSecret'] = clientSecret;
|
|
18745
|
+
}
|
|
18746
|
+
if (typeof endpoint !== 'undefined') {
|
|
18747
|
+
payload['endpoint'] = endpoint;
|
|
18748
|
+
}
|
|
18749
|
+
if (typeof enabled !== 'undefined') {
|
|
18750
|
+
payload['enabled'] = enabled;
|
|
18751
|
+
}
|
|
18752
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18753
|
+
const apiHeaders = {
|
|
18754
|
+
'content-type': 'application/json',
|
|
18755
|
+
};
|
|
18756
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18757
|
+
}
|
|
18758
|
+
updateOAuth2Autodesk(paramsOrFirst, ...rest) {
|
|
18759
|
+
let params;
|
|
18760
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18761
|
+
params = (paramsOrFirst || {});
|
|
18762
|
+
}
|
|
18763
|
+
else {
|
|
18764
|
+
params = {
|
|
18765
|
+
clientId: paramsOrFirst,
|
|
18766
|
+
clientSecret: rest[0],
|
|
18767
|
+
enabled: rest[1]
|
|
18768
|
+
};
|
|
18769
|
+
}
|
|
18770
|
+
const clientId = params.clientId;
|
|
18771
|
+
const clientSecret = params.clientSecret;
|
|
18772
|
+
const enabled = params.enabled;
|
|
18773
|
+
const apiPath = '/project/oauth2/autodesk';
|
|
18774
|
+
const payload = {};
|
|
18775
|
+
if (typeof clientId !== 'undefined') {
|
|
18776
|
+
payload['clientId'] = clientId;
|
|
18777
|
+
}
|
|
18778
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18779
|
+
payload['clientSecret'] = clientSecret;
|
|
18780
|
+
}
|
|
18781
|
+
if (typeof enabled !== 'undefined') {
|
|
18782
|
+
payload['enabled'] = enabled;
|
|
18783
|
+
}
|
|
18784
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18785
|
+
const apiHeaders = {
|
|
18786
|
+
'content-type': 'application/json',
|
|
18787
|
+
};
|
|
18788
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18789
|
+
}
|
|
18790
|
+
updateOAuth2Bitbucket(paramsOrFirst, ...rest) {
|
|
18791
|
+
let params;
|
|
18792
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18793
|
+
params = (paramsOrFirst || {});
|
|
18794
|
+
}
|
|
18795
|
+
else {
|
|
18796
|
+
params = {
|
|
18797
|
+
key: paramsOrFirst,
|
|
18798
|
+
secret: rest[0],
|
|
18799
|
+
enabled: rest[1]
|
|
18800
|
+
};
|
|
18801
|
+
}
|
|
18802
|
+
const key = params.key;
|
|
18803
|
+
const secret = params.secret;
|
|
18804
|
+
const enabled = params.enabled;
|
|
18805
|
+
const apiPath = '/project/oauth2/bitbucket';
|
|
18806
|
+
const payload = {};
|
|
18807
|
+
if (typeof key !== 'undefined') {
|
|
18808
|
+
payload['key'] = key;
|
|
18809
|
+
}
|
|
18810
|
+
if (typeof secret !== 'undefined') {
|
|
18811
|
+
payload['secret'] = secret;
|
|
18812
|
+
}
|
|
18813
|
+
if (typeof enabled !== 'undefined') {
|
|
18814
|
+
payload['enabled'] = enabled;
|
|
18815
|
+
}
|
|
18816
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18817
|
+
const apiHeaders = {
|
|
18818
|
+
'content-type': 'application/json',
|
|
18819
|
+
};
|
|
18820
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18821
|
+
}
|
|
18822
|
+
updateOAuth2Bitly(paramsOrFirst, ...rest) {
|
|
18823
|
+
let params;
|
|
18824
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18825
|
+
params = (paramsOrFirst || {});
|
|
18826
|
+
}
|
|
18827
|
+
else {
|
|
18828
|
+
params = {
|
|
18829
|
+
clientId: paramsOrFirst,
|
|
18830
|
+
clientSecret: rest[0],
|
|
18831
|
+
enabled: rest[1]
|
|
18832
|
+
};
|
|
18833
|
+
}
|
|
18834
|
+
const clientId = params.clientId;
|
|
18835
|
+
const clientSecret = params.clientSecret;
|
|
18836
|
+
const enabled = params.enabled;
|
|
18837
|
+
const apiPath = '/project/oauth2/bitly';
|
|
18838
|
+
const payload = {};
|
|
18839
|
+
if (typeof clientId !== 'undefined') {
|
|
18840
|
+
payload['clientId'] = clientId;
|
|
18841
|
+
}
|
|
18842
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18843
|
+
payload['clientSecret'] = clientSecret;
|
|
18844
|
+
}
|
|
18845
|
+
if (typeof enabled !== 'undefined') {
|
|
18846
|
+
payload['enabled'] = enabled;
|
|
18847
|
+
}
|
|
18848
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18849
|
+
const apiHeaders = {
|
|
18850
|
+
'content-type': 'application/json',
|
|
18851
|
+
};
|
|
18852
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18853
|
+
}
|
|
18854
|
+
updateOAuth2Box(paramsOrFirst, ...rest) {
|
|
18855
|
+
let params;
|
|
18856
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18857
|
+
params = (paramsOrFirst || {});
|
|
18858
|
+
}
|
|
18859
|
+
else {
|
|
18860
|
+
params = {
|
|
18861
|
+
clientId: paramsOrFirst,
|
|
18862
|
+
clientSecret: rest[0],
|
|
18863
|
+
enabled: rest[1]
|
|
18864
|
+
};
|
|
18865
|
+
}
|
|
18866
|
+
const clientId = params.clientId;
|
|
18867
|
+
const clientSecret = params.clientSecret;
|
|
18868
|
+
const enabled = params.enabled;
|
|
18869
|
+
const apiPath = '/project/oauth2/box';
|
|
18870
|
+
const payload = {};
|
|
18871
|
+
if (typeof clientId !== 'undefined') {
|
|
18872
|
+
payload['clientId'] = clientId;
|
|
18873
|
+
}
|
|
18874
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18875
|
+
payload['clientSecret'] = clientSecret;
|
|
18876
|
+
}
|
|
18877
|
+
if (typeof enabled !== 'undefined') {
|
|
18878
|
+
payload['enabled'] = enabled;
|
|
18879
|
+
}
|
|
18880
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18881
|
+
const apiHeaders = {
|
|
18882
|
+
'content-type': 'application/json',
|
|
18883
|
+
};
|
|
18884
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18885
|
+
}
|
|
18886
|
+
updateOAuth2Dailymotion(paramsOrFirst, ...rest) {
|
|
18887
|
+
let params;
|
|
18888
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18889
|
+
params = (paramsOrFirst || {});
|
|
18890
|
+
}
|
|
18891
|
+
else {
|
|
18892
|
+
params = {
|
|
18893
|
+
apiKey: paramsOrFirst,
|
|
18894
|
+
apiSecret: rest[0],
|
|
18895
|
+
enabled: rest[1]
|
|
18896
|
+
};
|
|
18897
|
+
}
|
|
18898
|
+
const apiKey = params.apiKey;
|
|
18899
|
+
const apiSecret = params.apiSecret;
|
|
18900
|
+
const enabled = params.enabled;
|
|
18901
|
+
const apiPath = '/project/oauth2/dailymotion';
|
|
18902
|
+
const payload = {};
|
|
18903
|
+
if (typeof apiKey !== 'undefined') {
|
|
18904
|
+
payload['apiKey'] = apiKey;
|
|
18905
|
+
}
|
|
18906
|
+
if (typeof apiSecret !== 'undefined') {
|
|
18907
|
+
payload['apiSecret'] = apiSecret;
|
|
18908
|
+
}
|
|
18909
|
+
if (typeof enabled !== 'undefined') {
|
|
18910
|
+
payload['enabled'] = enabled;
|
|
18911
|
+
}
|
|
18912
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18913
|
+
const apiHeaders = {
|
|
18914
|
+
'content-type': 'application/json',
|
|
18915
|
+
};
|
|
18916
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18917
|
+
}
|
|
18918
|
+
updateOAuth2Discord(paramsOrFirst, ...rest) {
|
|
18919
|
+
let params;
|
|
18920
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18921
|
+
params = (paramsOrFirst || {});
|
|
18922
|
+
}
|
|
18923
|
+
else {
|
|
18924
|
+
params = {
|
|
18925
|
+
clientId: paramsOrFirst,
|
|
18926
|
+
clientSecret: rest[0],
|
|
18927
|
+
enabled: rest[1]
|
|
18928
|
+
};
|
|
18929
|
+
}
|
|
18930
|
+
const clientId = params.clientId;
|
|
18931
|
+
const clientSecret = params.clientSecret;
|
|
18932
|
+
const enabled = params.enabled;
|
|
18933
|
+
const apiPath = '/project/oauth2/discord';
|
|
18934
|
+
const payload = {};
|
|
18935
|
+
if (typeof clientId !== 'undefined') {
|
|
18936
|
+
payload['clientId'] = clientId;
|
|
18937
|
+
}
|
|
18938
|
+
if (typeof clientSecret !== 'undefined') {
|
|
18939
|
+
payload['clientSecret'] = clientSecret;
|
|
18940
|
+
}
|
|
18941
|
+
if (typeof enabled !== 'undefined') {
|
|
18942
|
+
payload['enabled'] = enabled;
|
|
18943
|
+
}
|
|
18944
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18945
|
+
const apiHeaders = {
|
|
18946
|
+
'content-type': 'application/json',
|
|
18947
|
+
};
|
|
18948
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18949
|
+
}
|
|
18950
|
+
updateOAuth2Disqus(paramsOrFirst, ...rest) {
|
|
18951
|
+
let params;
|
|
18952
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18953
|
+
params = (paramsOrFirst || {});
|
|
18954
|
+
}
|
|
18955
|
+
else {
|
|
18956
|
+
params = {
|
|
18957
|
+
publicKey: paramsOrFirst,
|
|
18958
|
+
secretKey: rest[0],
|
|
18959
|
+
enabled: rest[1]
|
|
18960
|
+
};
|
|
18961
|
+
}
|
|
18962
|
+
const publicKey = params.publicKey;
|
|
18963
|
+
const secretKey = params.secretKey;
|
|
18964
|
+
const enabled = params.enabled;
|
|
18965
|
+
const apiPath = '/project/oauth2/disqus';
|
|
18966
|
+
const payload = {};
|
|
18967
|
+
if (typeof publicKey !== 'undefined') {
|
|
18968
|
+
payload['publicKey'] = publicKey;
|
|
18969
|
+
}
|
|
18970
|
+
if (typeof secretKey !== 'undefined') {
|
|
18971
|
+
payload['secretKey'] = secretKey;
|
|
18972
|
+
}
|
|
18973
|
+
if (typeof enabled !== 'undefined') {
|
|
18974
|
+
payload['enabled'] = enabled;
|
|
18975
|
+
}
|
|
18976
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18977
|
+
const apiHeaders = {
|
|
18978
|
+
'content-type': 'application/json',
|
|
18979
|
+
};
|
|
18980
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18981
|
+
}
|
|
18982
|
+
updateOAuth2Dropbox(paramsOrFirst, ...rest) {
|
|
18983
|
+
let params;
|
|
18984
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18985
|
+
params = (paramsOrFirst || {});
|
|
18986
|
+
}
|
|
18987
|
+
else {
|
|
18988
|
+
params = {
|
|
18989
|
+
appKey: paramsOrFirst,
|
|
18990
|
+
appSecret: rest[0],
|
|
18991
|
+
enabled: rest[1]
|
|
18992
|
+
};
|
|
18993
|
+
}
|
|
18994
|
+
const appKey = params.appKey;
|
|
18995
|
+
const appSecret = params.appSecret;
|
|
18996
|
+
const enabled = params.enabled;
|
|
18997
|
+
const apiPath = '/project/oauth2/dropbox';
|
|
18998
|
+
const payload = {};
|
|
18999
|
+
if (typeof appKey !== 'undefined') {
|
|
19000
|
+
payload['appKey'] = appKey;
|
|
19001
|
+
}
|
|
19002
|
+
if (typeof appSecret !== 'undefined') {
|
|
19003
|
+
payload['appSecret'] = appSecret;
|
|
19004
|
+
}
|
|
19005
|
+
if (typeof enabled !== 'undefined') {
|
|
19006
|
+
payload['enabled'] = enabled;
|
|
19007
|
+
}
|
|
19008
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19009
|
+
const apiHeaders = {
|
|
19010
|
+
'content-type': 'application/json',
|
|
19011
|
+
};
|
|
19012
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19013
|
+
}
|
|
19014
|
+
updateOAuth2Etsy(paramsOrFirst, ...rest) {
|
|
19015
|
+
let params;
|
|
19016
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19017
|
+
params = (paramsOrFirst || {});
|
|
19018
|
+
}
|
|
19019
|
+
else {
|
|
19020
|
+
params = {
|
|
19021
|
+
keyString: paramsOrFirst,
|
|
19022
|
+
sharedSecret: rest[0],
|
|
19023
|
+
enabled: rest[1]
|
|
19024
|
+
};
|
|
19025
|
+
}
|
|
19026
|
+
const keyString = params.keyString;
|
|
19027
|
+
const sharedSecret = params.sharedSecret;
|
|
19028
|
+
const enabled = params.enabled;
|
|
19029
|
+
const apiPath = '/project/oauth2/etsy';
|
|
19030
|
+
const payload = {};
|
|
19031
|
+
if (typeof keyString !== 'undefined') {
|
|
19032
|
+
payload['keyString'] = keyString;
|
|
19033
|
+
}
|
|
19034
|
+
if (typeof sharedSecret !== 'undefined') {
|
|
19035
|
+
payload['sharedSecret'] = sharedSecret;
|
|
19036
|
+
}
|
|
19037
|
+
if (typeof enabled !== 'undefined') {
|
|
19038
|
+
payload['enabled'] = enabled;
|
|
19039
|
+
}
|
|
19040
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19041
|
+
const apiHeaders = {
|
|
19042
|
+
'content-type': 'application/json',
|
|
19043
|
+
};
|
|
19044
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19045
|
+
}
|
|
19046
|
+
updateOAuth2Facebook(paramsOrFirst, ...rest) {
|
|
19047
|
+
let params;
|
|
19048
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19049
|
+
params = (paramsOrFirst || {});
|
|
19050
|
+
}
|
|
19051
|
+
else {
|
|
19052
|
+
params = {
|
|
19053
|
+
appId: paramsOrFirst,
|
|
19054
|
+
appSecret: rest[0],
|
|
19055
|
+
enabled: rest[1]
|
|
19056
|
+
};
|
|
19057
|
+
}
|
|
19058
|
+
const appId = params.appId;
|
|
19059
|
+
const appSecret = params.appSecret;
|
|
19060
|
+
const enabled = params.enabled;
|
|
19061
|
+
const apiPath = '/project/oauth2/facebook';
|
|
19062
|
+
const payload = {};
|
|
19063
|
+
if (typeof appId !== 'undefined') {
|
|
19064
|
+
payload['appId'] = appId;
|
|
19065
|
+
}
|
|
19066
|
+
if (typeof appSecret !== 'undefined') {
|
|
19067
|
+
payload['appSecret'] = appSecret;
|
|
19068
|
+
}
|
|
19069
|
+
if (typeof enabled !== 'undefined') {
|
|
19070
|
+
payload['enabled'] = enabled;
|
|
19071
|
+
}
|
|
19072
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19073
|
+
const apiHeaders = {
|
|
19074
|
+
'content-type': 'application/json',
|
|
19075
|
+
};
|
|
19076
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19077
|
+
}
|
|
19078
|
+
updateOAuth2Figma(paramsOrFirst, ...rest) {
|
|
19079
|
+
let params;
|
|
19080
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19081
|
+
params = (paramsOrFirst || {});
|
|
19082
|
+
}
|
|
19083
|
+
else {
|
|
19084
|
+
params = {
|
|
19085
|
+
clientId: paramsOrFirst,
|
|
19086
|
+
clientSecret: rest[0],
|
|
19087
|
+
enabled: rest[1]
|
|
19088
|
+
};
|
|
19089
|
+
}
|
|
19090
|
+
const clientId = params.clientId;
|
|
19091
|
+
const clientSecret = params.clientSecret;
|
|
19092
|
+
const enabled = params.enabled;
|
|
19093
|
+
const apiPath = '/project/oauth2/figma';
|
|
19094
|
+
const payload = {};
|
|
19095
|
+
if (typeof clientId !== 'undefined') {
|
|
19096
|
+
payload['clientId'] = clientId;
|
|
19097
|
+
}
|
|
19098
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19099
|
+
payload['clientSecret'] = clientSecret;
|
|
19100
|
+
}
|
|
19101
|
+
if (typeof enabled !== 'undefined') {
|
|
19102
|
+
payload['enabled'] = enabled;
|
|
19103
|
+
}
|
|
19104
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19105
|
+
const apiHeaders = {
|
|
19106
|
+
'content-type': 'application/json',
|
|
19107
|
+
};
|
|
19108
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19109
|
+
}
|
|
19110
|
+
updateOAuth2FusionAuth(paramsOrFirst, ...rest) {
|
|
19111
|
+
let params;
|
|
19112
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19113
|
+
params = (paramsOrFirst || {});
|
|
19114
|
+
}
|
|
19115
|
+
else {
|
|
19116
|
+
params = {
|
|
19117
|
+
clientId: paramsOrFirst,
|
|
19118
|
+
clientSecret: rest[0],
|
|
19119
|
+
endpoint: rest[1],
|
|
19120
|
+
enabled: rest[2]
|
|
19121
|
+
};
|
|
19122
|
+
}
|
|
19123
|
+
const clientId = params.clientId;
|
|
19124
|
+
const clientSecret = params.clientSecret;
|
|
19125
|
+
const endpoint = params.endpoint;
|
|
19126
|
+
const enabled = params.enabled;
|
|
19127
|
+
const apiPath = '/project/oauth2/fusionauth';
|
|
19128
|
+
const payload = {};
|
|
19129
|
+
if (typeof clientId !== 'undefined') {
|
|
19130
|
+
payload['clientId'] = clientId;
|
|
19131
|
+
}
|
|
19132
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19133
|
+
payload['clientSecret'] = clientSecret;
|
|
19134
|
+
}
|
|
19135
|
+
if (typeof endpoint !== 'undefined') {
|
|
19136
|
+
payload['endpoint'] = endpoint;
|
|
19137
|
+
}
|
|
19138
|
+
if (typeof enabled !== 'undefined') {
|
|
19139
|
+
payload['enabled'] = enabled;
|
|
19140
|
+
}
|
|
19141
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19142
|
+
const apiHeaders = {
|
|
19143
|
+
'content-type': 'application/json',
|
|
19144
|
+
};
|
|
19145
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19146
|
+
}
|
|
19147
|
+
updateOAuth2GitHub(paramsOrFirst, ...rest) {
|
|
19148
|
+
let params;
|
|
19149
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19150
|
+
params = (paramsOrFirst || {});
|
|
19151
|
+
}
|
|
19152
|
+
else {
|
|
19153
|
+
params = {
|
|
19154
|
+
clientId: paramsOrFirst,
|
|
19155
|
+
clientSecret: rest[0],
|
|
19156
|
+
enabled: rest[1]
|
|
19157
|
+
};
|
|
19158
|
+
}
|
|
19159
|
+
const clientId = params.clientId;
|
|
19160
|
+
const clientSecret = params.clientSecret;
|
|
19161
|
+
const enabled = params.enabled;
|
|
19162
|
+
const apiPath = '/project/oauth2/github';
|
|
19163
|
+
const payload = {};
|
|
19164
|
+
if (typeof clientId !== 'undefined') {
|
|
19165
|
+
payload['clientId'] = clientId;
|
|
19166
|
+
}
|
|
19167
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19168
|
+
payload['clientSecret'] = clientSecret;
|
|
19169
|
+
}
|
|
19170
|
+
if (typeof enabled !== 'undefined') {
|
|
19171
|
+
payload['enabled'] = enabled;
|
|
19172
|
+
}
|
|
19173
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19174
|
+
const apiHeaders = {
|
|
19175
|
+
'content-type': 'application/json',
|
|
19176
|
+
};
|
|
19177
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19178
|
+
}
|
|
19179
|
+
updateOAuth2Gitlab(paramsOrFirst, ...rest) {
|
|
19180
|
+
let params;
|
|
19181
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19182
|
+
params = (paramsOrFirst || {});
|
|
19183
|
+
}
|
|
19184
|
+
else {
|
|
19185
|
+
params = {
|
|
19186
|
+
applicationId: paramsOrFirst,
|
|
19187
|
+
secret: rest[0],
|
|
19188
|
+
endpoint: rest[1],
|
|
19189
|
+
enabled: rest[2]
|
|
19190
|
+
};
|
|
19191
|
+
}
|
|
19192
|
+
const applicationId = params.applicationId;
|
|
19193
|
+
const secret = params.secret;
|
|
19194
|
+
const endpoint = params.endpoint;
|
|
19195
|
+
const enabled = params.enabled;
|
|
19196
|
+
const apiPath = '/project/oauth2/gitlab';
|
|
19197
|
+
const payload = {};
|
|
19198
|
+
if (typeof applicationId !== 'undefined') {
|
|
19199
|
+
payload['applicationId'] = applicationId;
|
|
19200
|
+
}
|
|
19201
|
+
if (typeof secret !== 'undefined') {
|
|
19202
|
+
payload['secret'] = secret;
|
|
19203
|
+
}
|
|
19204
|
+
if (typeof endpoint !== 'undefined') {
|
|
19205
|
+
payload['endpoint'] = endpoint;
|
|
19206
|
+
}
|
|
19207
|
+
if (typeof enabled !== 'undefined') {
|
|
19208
|
+
payload['enabled'] = enabled;
|
|
19209
|
+
}
|
|
19210
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19211
|
+
const apiHeaders = {
|
|
19212
|
+
'content-type': 'application/json',
|
|
19213
|
+
};
|
|
19214
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19215
|
+
}
|
|
19216
|
+
updateOAuth2Google(paramsOrFirst, ...rest) {
|
|
19217
|
+
let params;
|
|
19218
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19219
|
+
params = (paramsOrFirst || {});
|
|
19220
|
+
}
|
|
19221
|
+
else {
|
|
19222
|
+
params = {
|
|
19223
|
+
clientId: paramsOrFirst,
|
|
19224
|
+
clientSecret: rest[0],
|
|
19225
|
+
enabled: rest[1]
|
|
19226
|
+
};
|
|
19227
|
+
}
|
|
19228
|
+
const clientId = params.clientId;
|
|
19229
|
+
const clientSecret = params.clientSecret;
|
|
19230
|
+
const enabled = params.enabled;
|
|
19231
|
+
const apiPath = '/project/oauth2/google';
|
|
19232
|
+
const payload = {};
|
|
19233
|
+
if (typeof clientId !== 'undefined') {
|
|
19234
|
+
payload['clientId'] = clientId;
|
|
19235
|
+
}
|
|
19236
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19237
|
+
payload['clientSecret'] = clientSecret;
|
|
19238
|
+
}
|
|
19239
|
+
if (typeof enabled !== 'undefined') {
|
|
19240
|
+
payload['enabled'] = enabled;
|
|
19241
|
+
}
|
|
19242
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19243
|
+
const apiHeaders = {
|
|
19244
|
+
'content-type': 'application/json',
|
|
19245
|
+
};
|
|
19246
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19247
|
+
}
|
|
19248
|
+
updateOAuth2Keycloak(paramsOrFirst, ...rest) {
|
|
19249
|
+
let params;
|
|
19250
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19251
|
+
params = (paramsOrFirst || {});
|
|
19252
|
+
}
|
|
19253
|
+
else {
|
|
19254
|
+
params = {
|
|
19255
|
+
clientId: paramsOrFirst,
|
|
19256
|
+
clientSecret: rest[0],
|
|
19257
|
+
endpoint: rest[1],
|
|
19258
|
+
realmName: rest[2],
|
|
19259
|
+
enabled: rest[3]
|
|
19260
|
+
};
|
|
19261
|
+
}
|
|
19262
|
+
const clientId = params.clientId;
|
|
19263
|
+
const clientSecret = params.clientSecret;
|
|
19264
|
+
const endpoint = params.endpoint;
|
|
19265
|
+
const realmName = params.realmName;
|
|
19266
|
+
const enabled = params.enabled;
|
|
19267
|
+
const apiPath = '/project/oauth2/keycloak';
|
|
19268
|
+
const payload = {};
|
|
19269
|
+
if (typeof clientId !== 'undefined') {
|
|
19270
|
+
payload['clientId'] = clientId;
|
|
19271
|
+
}
|
|
19272
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19273
|
+
payload['clientSecret'] = clientSecret;
|
|
19274
|
+
}
|
|
19275
|
+
if (typeof endpoint !== 'undefined') {
|
|
19276
|
+
payload['endpoint'] = endpoint;
|
|
19277
|
+
}
|
|
19278
|
+
if (typeof realmName !== 'undefined') {
|
|
19279
|
+
payload['realmName'] = realmName;
|
|
19280
|
+
}
|
|
19281
|
+
if (typeof enabled !== 'undefined') {
|
|
19282
|
+
payload['enabled'] = enabled;
|
|
19283
|
+
}
|
|
19284
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19285
|
+
const apiHeaders = {
|
|
19286
|
+
'content-type': 'application/json',
|
|
19287
|
+
};
|
|
19288
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19289
|
+
}
|
|
19290
|
+
updateOAuth2Kick(paramsOrFirst, ...rest) {
|
|
19291
|
+
let params;
|
|
19292
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19293
|
+
params = (paramsOrFirst || {});
|
|
19294
|
+
}
|
|
19295
|
+
else {
|
|
19296
|
+
params = {
|
|
19297
|
+
clientId: paramsOrFirst,
|
|
19298
|
+
clientSecret: rest[0],
|
|
19299
|
+
enabled: rest[1]
|
|
19300
|
+
};
|
|
19301
|
+
}
|
|
19302
|
+
const clientId = params.clientId;
|
|
19303
|
+
const clientSecret = params.clientSecret;
|
|
19304
|
+
const enabled = params.enabled;
|
|
19305
|
+
const apiPath = '/project/oauth2/kick';
|
|
19306
|
+
const payload = {};
|
|
19307
|
+
if (typeof clientId !== 'undefined') {
|
|
19308
|
+
payload['clientId'] = clientId;
|
|
19309
|
+
}
|
|
19310
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19311
|
+
payload['clientSecret'] = clientSecret;
|
|
19312
|
+
}
|
|
19313
|
+
if (typeof enabled !== 'undefined') {
|
|
19314
|
+
payload['enabled'] = enabled;
|
|
19315
|
+
}
|
|
19316
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19317
|
+
const apiHeaders = {
|
|
19318
|
+
'content-type': 'application/json',
|
|
19319
|
+
};
|
|
19320
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19321
|
+
}
|
|
19322
|
+
updateOAuth2Linkedin(paramsOrFirst, ...rest) {
|
|
19323
|
+
let params;
|
|
19324
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19325
|
+
params = (paramsOrFirst || {});
|
|
19326
|
+
}
|
|
19327
|
+
else {
|
|
19328
|
+
params = {
|
|
19329
|
+
clientId: paramsOrFirst,
|
|
19330
|
+
primaryClientSecret: rest[0],
|
|
19331
|
+
enabled: rest[1]
|
|
19332
|
+
};
|
|
19333
|
+
}
|
|
19334
|
+
const clientId = params.clientId;
|
|
19335
|
+
const primaryClientSecret = params.primaryClientSecret;
|
|
19336
|
+
const enabled = params.enabled;
|
|
19337
|
+
const apiPath = '/project/oauth2/linkedin';
|
|
19338
|
+
const payload = {};
|
|
19339
|
+
if (typeof clientId !== 'undefined') {
|
|
19340
|
+
payload['clientId'] = clientId;
|
|
19341
|
+
}
|
|
19342
|
+
if (typeof primaryClientSecret !== 'undefined') {
|
|
19343
|
+
payload['primaryClientSecret'] = primaryClientSecret;
|
|
19344
|
+
}
|
|
19345
|
+
if (typeof enabled !== 'undefined') {
|
|
19346
|
+
payload['enabled'] = enabled;
|
|
19347
|
+
}
|
|
19348
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19349
|
+
const apiHeaders = {
|
|
19350
|
+
'content-type': 'application/json',
|
|
19351
|
+
};
|
|
19352
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19353
|
+
}
|
|
19354
|
+
updateOAuth2Microsoft(paramsOrFirst, ...rest) {
|
|
19355
|
+
let params;
|
|
19356
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19357
|
+
params = (paramsOrFirst || {});
|
|
19358
|
+
}
|
|
19359
|
+
else {
|
|
19360
|
+
params = {
|
|
19361
|
+
applicationId: paramsOrFirst,
|
|
19362
|
+
applicationSecret: rest[0],
|
|
19363
|
+
tenant: rest[1],
|
|
19364
|
+
enabled: rest[2]
|
|
19365
|
+
};
|
|
19366
|
+
}
|
|
19367
|
+
const applicationId = params.applicationId;
|
|
19368
|
+
const applicationSecret = params.applicationSecret;
|
|
19369
|
+
const tenant = params.tenant;
|
|
19370
|
+
const enabled = params.enabled;
|
|
19371
|
+
const apiPath = '/project/oauth2/microsoft';
|
|
19372
|
+
const payload = {};
|
|
19373
|
+
if (typeof applicationId !== 'undefined') {
|
|
19374
|
+
payload['applicationId'] = applicationId;
|
|
19375
|
+
}
|
|
19376
|
+
if (typeof applicationSecret !== 'undefined') {
|
|
19377
|
+
payload['applicationSecret'] = applicationSecret;
|
|
19378
|
+
}
|
|
19379
|
+
if (typeof tenant !== 'undefined') {
|
|
19380
|
+
payload['tenant'] = tenant;
|
|
19381
|
+
}
|
|
19382
|
+
if (typeof enabled !== 'undefined') {
|
|
19383
|
+
payload['enabled'] = enabled;
|
|
19384
|
+
}
|
|
19385
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19386
|
+
const apiHeaders = {
|
|
19387
|
+
'content-type': 'application/json',
|
|
19388
|
+
};
|
|
19389
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19390
|
+
}
|
|
19391
|
+
updateOAuth2Notion(paramsOrFirst, ...rest) {
|
|
19392
|
+
let params;
|
|
19393
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19394
|
+
params = (paramsOrFirst || {});
|
|
19395
|
+
}
|
|
19396
|
+
else {
|
|
19397
|
+
params = {
|
|
19398
|
+
oauthClientId: paramsOrFirst,
|
|
19399
|
+
oauthClientSecret: rest[0],
|
|
19400
|
+
enabled: rest[1]
|
|
19401
|
+
};
|
|
19402
|
+
}
|
|
19403
|
+
const oauthClientId = params.oauthClientId;
|
|
19404
|
+
const oauthClientSecret = params.oauthClientSecret;
|
|
19405
|
+
const enabled = params.enabled;
|
|
19406
|
+
const apiPath = '/project/oauth2/notion';
|
|
19407
|
+
const payload = {};
|
|
19408
|
+
if (typeof oauthClientId !== 'undefined') {
|
|
19409
|
+
payload['oauthClientId'] = oauthClientId;
|
|
19410
|
+
}
|
|
19411
|
+
if (typeof oauthClientSecret !== 'undefined') {
|
|
19412
|
+
payload['oauthClientSecret'] = oauthClientSecret;
|
|
19413
|
+
}
|
|
19414
|
+
if (typeof enabled !== 'undefined') {
|
|
19415
|
+
payload['enabled'] = enabled;
|
|
19416
|
+
}
|
|
19417
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19418
|
+
const apiHeaders = {
|
|
19419
|
+
'content-type': 'application/json',
|
|
19420
|
+
};
|
|
19421
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19422
|
+
}
|
|
19423
|
+
updateOAuth2Oidc(paramsOrFirst, ...rest) {
|
|
19424
|
+
let params;
|
|
19425
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19426
|
+
params = (paramsOrFirst || {});
|
|
19427
|
+
}
|
|
19428
|
+
else {
|
|
19429
|
+
params = {
|
|
19430
|
+
clientId: paramsOrFirst,
|
|
19431
|
+
clientSecret: rest[0],
|
|
19432
|
+
wellKnownURL: rest[1],
|
|
19433
|
+
authorizationURL: rest[2],
|
|
19434
|
+
tokenUrl: rest[3],
|
|
19435
|
+
userInfoUrl: rest[4],
|
|
19436
|
+
enabled: rest[5]
|
|
19437
|
+
};
|
|
19438
|
+
}
|
|
19439
|
+
const clientId = params.clientId;
|
|
19440
|
+
const clientSecret = params.clientSecret;
|
|
19441
|
+
const wellKnownURL = params.wellKnownURL;
|
|
19442
|
+
const authorizationURL = params.authorizationURL;
|
|
19443
|
+
const tokenUrl = params.tokenUrl;
|
|
19444
|
+
const userInfoUrl = params.userInfoUrl;
|
|
19445
|
+
const enabled = params.enabled;
|
|
19446
|
+
const apiPath = '/project/oauth2/oidc';
|
|
19447
|
+
const payload = {};
|
|
19448
|
+
if (typeof clientId !== 'undefined') {
|
|
19449
|
+
payload['clientId'] = clientId;
|
|
19450
|
+
}
|
|
19451
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19452
|
+
payload['clientSecret'] = clientSecret;
|
|
19453
|
+
}
|
|
19454
|
+
if (typeof wellKnownURL !== 'undefined') {
|
|
19455
|
+
payload['wellKnownURL'] = wellKnownURL;
|
|
19456
|
+
}
|
|
19457
|
+
if (typeof authorizationURL !== 'undefined') {
|
|
19458
|
+
payload['authorizationURL'] = authorizationURL;
|
|
19459
|
+
}
|
|
19460
|
+
if (typeof tokenUrl !== 'undefined') {
|
|
19461
|
+
payload['tokenUrl'] = tokenUrl;
|
|
19462
|
+
}
|
|
19463
|
+
if (typeof userInfoUrl !== 'undefined') {
|
|
19464
|
+
payload['userInfoUrl'] = userInfoUrl;
|
|
19465
|
+
}
|
|
19466
|
+
if (typeof enabled !== 'undefined') {
|
|
19467
|
+
payload['enabled'] = enabled;
|
|
19468
|
+
}
|
|
19469
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19470
|
+
const apiHeaders = {
|
|
19471
|
+
'content-type': 'application/json',
|
|
19472
|
+
};
|
|
19473
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19474
|
+
}
|
|
19475
|
+
updateOAuth2Okta(paramsOrFirst, ...rest) {
|
|
19476
|
+
let params;
|
|
19477
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19478
|
+
params = (paramsOrFirst || {});
|
|
19479
|
+
}
|
|
19480
|
+
else {
|
|
19481
|
+
params = {
|
|
19482
|
+
clientId: paramsOrFirst,
|
|
19483
|
+
clientSecret: rest[0],
|
|
19484
|
+
domain: rest[1],
|
|
19485
|
+
authorizationServerId: rest[2],
|
|
19486
|
+
enabled: rest[3]
|
|
19487
|
+
};
|
|
19488
|
+
}
|
|
19489
|
+
const clientId = params.clientId;
|
|
19490
|
+
const clientSecret = params.clientSecret;
|
|
19491
|
+
const domain = params.domain;
|
|
19492
|
+
const authorizationServerId = params.authorizationServerId;
|
|
19493
|
+
const enabled = params.enabled;
|
|
19494
|
+
const apiPath = '/project/oauth2/okta';
|
|
19495
|
+
const payload = {};
|
|
19496
|
+
if (typeof clientId !== 'undefined') {
|
|
19497
|
+
payload['clientId'] = clientId;
|
|
19498
|
+
}
|
|
19499
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19500
|
+
payload['clientSecret'] = clientSecret;
|
|
19501
|
+
}
|
|
19502
|
+
if (typeof domain !== 'undefined') {
|
|
19503
|
+
payload['domain'] = domain;
|
|
19504
|
+
}
|
|
19505
|
+
if (typeof authorizationServerId !== 'undefined') {
|
|
19506
|
+
payload['authorizationServerId'] = authorizationServerId;
|
|
19507
|
+
}
|
|
19508
|
+
if (typeof enabled !== 'undefined') {
|
|
19509
|
+
payload['enabled'] = enabled;
|
|
19510
|
+
}
|
|
19511
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19512
|
+
const apiHeaders = {
|
|
19513
|
+
'content-type': 'application/json',
|
|
19514
|
+
};
|
|
19515
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19516
|
+
}
|
|
19517
|
+
updateOAuth2Paypal(paramsOrFirst, ...rest) {
|
|
19518
|
+
let params;
|
|
19519
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19520
|
+
params = (paramsOrFirst || {});
|
|
19521
|
+
}
|
|
19522
|
+
else {
|
|
19523
|
+
params = {
|
|
19524
|
+
clientId: paramsOrFirst,
|
|
19525
|
+
secretKey: rest[0],
|
|
19526
|
+
enabled: rest[1]
|
|
19527
|
+
};
|
|
19528
|
+
}
|
|
19529
|
+
const clientId = params.clientId;
|
|
19530
|
+
const secretKey = params.secretKey;
|
|
19531
|
+
const enabled = params.enabled;
|
|
19532
|
+
const apiPath = '/project/oauth2/paypal';
|
|
19533
|
+
const payload = {};
|
|
19534
|
+
if (typeof clientId !== 'undefined') {
|
|
19535
|
+
payload['clientId'] = clientId;
|
|
19536
|
+
}
|
|
19537
|
+
if (typeof secretKey !== 'undefined') {
|
|
19538
|
+
payload['secretKey'] = secretKey;
|
|
19539
|
+
}
|
|
19540
|
+
if (typeof enabled !== 'undefined') {
|
|
19541
|
+
payload['enabled'] = enabled;
|
|
19542
|
+
}
|
|
19543
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19544
|
+
const apiHeaders = {
|
|
19545
|
+
'content-type': 'application/json',
|
|
19546
|
+
};
|
|
19547
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19548
|
+
}
|
|
19549
|
+
updateOAuth2PaypalSandbox(paramsOrFirst, ...rest) {
|
|
19550
|
+
let params;
|
|
19551
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19552
|
+
params = (paramsOrFirst || {});
|
|
19553
|
+
}
|
|
19554
|
+
else {
|
|
19555
|
+
params = {
|
|
19556
|
+
clientId: paramsOrFirst,
|
|
19557
|
+
secretKey: rest[0],
|
|
19558
|
+
enabled: rest[1]
|
|
19559
|
+
};
|
|
19560
|
+
}
|
|
19561
|
+
const clientId = params.clientId;
|
|
19562
|
+
const secretKey = params.secretKey;
|
|
19563
|
+
const enabled = params.enabled;
|
|
19564
|
+
const apiPath = '/project/oauth2/paypalSandbox';
|
|
19565
|
+
const payload = {};
|
|
19566
|
+
if (typeof clientId !== 'undefined') {
|
|
19567
|
+
payload['clientId'] = clientId;
|
|
19568
|
+
}
|
|
19569
|
+
if (typeof secretKey !== 'undefined') {
|
|
19570
|
+
payload['secretKey'] = secretKey;
|
|
19571
|
+
}
|
|
19572
|
+
if (typeof enabled !== 'undefined') {
|
|
19573
|
+
payload['enabled'] = enabled;
|
|
19574
|
+
}
|
|
19575
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19576
|
+
const apiHeaders = {
|
|
19577
|
+
'content-type': 'application/json',
|
|
19578
|
+
};
|
|
19579
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19580
|
+
}
|
|
19581
|
+
updateOAuth2Podio(paramsOrFirst, ...rest) {
|
|
19582
|
+
let params;
|
|
19583
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19584
|
+
params = (paramsOrFirst || {});
|
|
19585
|
+
}
|
|
19586
|
+
else {
|
|
19587
|
+
params = {
|
|
19588
|
+
clientId: paramsOrFirst,
|
|
19589
|
+
clientSecret: rest[0],
|
|
19590
|
+
enabled: rest[1]
|
|
19591
|
+
};
|
|
19592
|
+
}
|
|
19593
|
+
const clientId = params.clientId;
|
|
19594
|
+
const clientSecret = params.clientSecret;
|
|
19595
|
+
const enabled = params.enabled;
|
|
19596
|
+
const apiPath = '/project/oauth2/podio';
|
|
19597
|
+
const payload = {};
|
|
19598
|
+
if (typeof clientId !== 'undefined') {
|
|
19599
|
+
payload['clientId'] = clientId;
|
|
19600
|
+
}
|
|
19601
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19602
|
+
payload['clientSecret'] = clientSecret;
|
|
19603
|
+
}
|
|
19604
|
+
if (typeof enabled !== 'undefined') {
|
|
19605
|
+
payload['enabled'] = enabled;
|
|
19606
|
+
}
|
|
19607
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19608
|
+
const apiHeaders = {
|
|
19609
|
+
'content-type': 'application/json',
|
|
19610
|
+
};
|
|
19611
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19612
|
+
}
|
|
19613
|
+
updateOAuth2Salesforce(paramsOrFirst, ...rest) {
|
|
19614
|
+
let params;
|
|
19615
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19616
|
+
params = (paramsOrFirst || {});
|
|
19617
|
+
}
|
|
19618
|
+
else {
|
|
19619
|
+
params = {
|
|
19620
|
+
customerKey: paramsOrFirst,
|
|
19621
|
+
customerSecret: rest[0],
|
|
19622
|
+
enabled: rest[1]
|
|
19623
|
+
};
|
|
19624
|
+
}
|
|
19625
|
+
const customerKey = params.customerKey;
|
|
19626
|
+
const customerSecret = params.customerSecret;
|
|
19627
|
+
const enabled = params.enabled;
|
|
19628
|
+
const apiPath = '/project/oauth2/salesforce';
|
|
19629
|
+
const payload = {};
|
|
19630
|
+
if (typeof customerKey !== 'undefined') {
|
|
19631
|
+
payload['customerKey'] = customerKey;
|
|
19632
|
+
}
|
|
19633
|
+
if (typeof customerSecret !== 'undefined') {
|
|
19634
|
+
payload['customerSecret'] = customerSecret;
|
|
19635
|
+
}
|
|
19636
|
+
if (typeof enabled !== 'undefined') {
|
|
19637
|
+
payload['enabled'] = enabled;
|
|
19638
|
+
}
|
|
19639
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19640
|
+
const apiHeaders = {
|
|
19641
|
+
'content-type': 'application/json',
|
|
19642
|
+
};
|
|
19643
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19644
|
+
}
|
|
19645
|
+
updateOAuth2Slack(paramsOrFirst, ...rest) {
|
|
19646
|
+
let params;
|
|
19647
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19648
|
+
params = (paramsOrFirst || {});
|
|
19649
|
+
}
|
|
19650
|
+
else {
|
|
19651
|
+
params = {
|
|
19652
|
+
clientId: paramsOrFirst,
|
|
19653
|
+
clientSecret: rest[0],
|
|
19654
|
+
enabled: rest[1]
|
|
19655
|
+
};
|
|
19656
|
+
}
|
|
19657
|
+
const clientId = params.clientId;
|
|
19658
|
+
const clientSecret = params.clientSecret;
|
|
19659
|
+
const enabled = params.enabled;
|
|
19660
|
+
const apiPath = '/project/oauth2/slack';
|
|
19661
|
+
const payload = {};
|
|
19662
|
+
if (typeof clientId !== 'undefined') {
|
|
19663
|
+
payload['clientId'] = clientId;
|
|
19664
|
+
}
|
|
19665
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19666
|
+
payload['clientSecret'] = clientSecret;
|
|
19667
|
+
}
|
|
19668
|
+
if (typeof enabled !== 'undefined') {
|
|
19669
|
+
payload['enabled'] = enabled;
|
|
19670
|
+
}
|
|
19671
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19672
|
+
const apiHeaders = {
|
|
19673
|
+
'content-type': 'application/json',
|
|
19674
|
+
};
|
|
19675
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19676
|
+
}
|
|
19677
|
+
updateOAuth2Spotify(paramsOrFirst, ...rest) {
|
|
19678
|
+
let params;
|
|
19679
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19680
|
+
params = (paramsOrFirst || {});
|
|
19681
|
+
}
|
|
19682
|
+
else {
|
|
19683
|
+
params = {
|
|
19684
|
+
clientId: paramsOrFirst,
|
|
19685
|
+
clientSecret: rest[0],
|
|
19686
|
+
enabled: rest[1]
|
|
19687
|
+
};
|
|
19688
|
+
}
|
|
19689
|
+
const clientId = params.clientId;
|
|
19690
|
+
const clientSecret = params.clientSecret;
|
|
19691
|
+
const enabled = params.enabled;
|
|
19692
|
+
const apiPath = '/project/oauth2/spotify';
|
|
19693
|
+
const payload = {};
|
|
19694
|
+
if (typeof clientId !== 'undefined') {
|
|
19695
|
+
payload['clientId'] = clientId;
|
|
19696
|
+
}
|
|
19697
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19698
|
+
payload['clientSecret'] = clientSecret;
|
|
19699
|
+
}
|
|
19700
|
+
if (typeof enabled !== 'undefined') {
|
|
19701
|
+
payload['enabled'] = enabled;
|
|
19702
|
+
}
|
|
19703
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19704
|
+
const apiHeaders = {
|
|
19705
|
+
'content-type': 'application/json',
|
|
19706
|
+
};
|
|
19707
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19708
|
+
}
|
|
19709
|
+
updateOAuth2Stripe(paramsOrFirst, ...rest) {
|
|
19710
|
+
let params;
|
|
19711
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19712
|
+
params = (paramsOrFirst || {});
|
|
19713
|
+
}
|
|
19714
|
+
else {
|
|
19715
|
+
params = {
|
|
19716
|
+
clientId: paramsOrFirst,
|
|
19717
|
+
apiSecretKey: rest[0],
|
|
19718
|
+
enabled: rest[1]
|
|
19719
|
+
};
|
|
19720
|
+
}
|
|
19721
|
+
const clientId = params.clientId;
|
|
19722
|
+
const apiSecretKey = params.apiSecretKey;
|
|
19723
|
+
const enabled = params.enabled;
|
|
19724
|
+
const apiPath = '/project/oauth2/stripe';
|
|
19725
|
+
const payload = {};
|
|
19726
|
+
if (typeof clientId !== 'undefined') {
|
|
19727
|
+
payload['clientId'] = clientId;
|
|
19728
|
+
}
|
|
19729
|
+
if (typeof apiSecretKey !== 'undefined') {
|
|
19730
|
+
payload['apiSecretKey'] = apiSecretKey;
|
|
19731
|
+
}
|
|
19732
|
+
if (typeof enabled !== 'undefined') {
|
|
19733
|
+
payload['enabled'] = enabled;
|
|
19734
|
+
}
|
|
19735
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19736
|
+
const apiHeaders = {
|
|
19737
|
+
'content-type': 'application/json',
|
|
19738
|
+
};
|
|
19739
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19740
|
+
}
|
|
19741
|
+
updateOAuth2Tradeshift(paramsOrFirst, ...rest) {
|
|
19742
|
+
let params;
|
|
19743
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19744
|
+
params = (paramsOrFirst || {});
|
|
19745
|
+
}
|
|
19746
|
+
else {
|
|
19747
|
+
params = {
|
|
19748
|
+
oauth2ClientId: paramsOrFirst,
|
|
19749
|
+
oauth2ClientSecret: rest[0],
|
|
19750
|
+
enabled: rest[1]
|
|
19751
|
+
};
|
|
19752
|
+
}
|
|
19753
|
+
const oauth2ClientId = params.oauth2ClientId;
|
|
19754
|
+
const oauth2ClientSecret = params.oauth2ClientSecret;
|
|
19755
|
+
const enabled = params.enabled;
|
|
19756
|
+
const apiPath = '/project/oauth2/tradeshift';
|
|
19757
|
+
const payload = {};
|
|
19758
|
+
if (typeof oauth2ClientId !== 'undefined') {
|
|
19759
|
+
payload['oauth2ClientId'] = oauth2ClientId;
|
|
19760
|
+
}
|
|
19761
|
+
if (typeof oauth2ClientSecret !== 'undefined') {
|
|
19762
|
+
payload['oauth2ClientSecret'] = oauth2ClientSecret;
|
|
19763
|
+
}
|
|
19764
|
+
if (typeof enabled !== 'undefined') {
|
|
19765
|
+
payload['enabled'] = enabled;
|
|
19766
|
+
}
|
|
19767
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19768
|
+
const apiHeaders = {
|
|
19769
|
+
'content-type': 'application/json',
|
|
19770
|
+
};
|
|
19771
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19772
|
+
}
|
|
19773
|
+
updateOAuth2TradeshiftSandbox(paramsOrFirst, ...rest) {
|
|
18082
19774
|
let params;
|
|
18083
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19775
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18084
19776
|
params = (paramsOrFirst || {});
|
|
18085
19777
|
}
|
|
18086
19778
|
else {
|
|
18087
19779
|
params = {
|
|
18088
|
-
|
|
18089
|
-
|
|
18090
|
-
|
|
18091
|
-
expire: rest[2]
|
|
19780
|
+
oauth2ClientId: paramsOrFirst,
|
|
19781
|
+
oauth2ClientSecret: rest[0],
|
|
19782
|
+
enabled: rest[1]
|
|
18092
19783
|
};
|
|
18093
19784
|
}
|
|
18094
|
-
const
|
|
18095
|
-
const
|
|
18096
|
-
const
|
|
18097
|
-
const
|
|
18098
|
-
|
|
18099
|
-
|
|
19785
|
+
const oauth2ClientId = params.oauth2ClientId;
|
|
19786
|
+
const oauth2ClientSecret = params.oauth2ClientSecret;
|
|
19787
|
+
const enabled = params.enabled;
|
|
19788
|
+
const apiPath = '/project/oauth2/tradeshiftBox';
|
|
19789
|
+
const payload = {};
|
|
19790
|
+
if (typeof oauth2ClientId !== 'undefined') {
|
|
19791
|
+
payload['oauth2ClientId'] = oauth2ClientId;
|
|
18100
19792
|
}
|
|
18101
|
-
if (typeof
|
|
18102
|
-
|
|
19793
|
+
if (typeof oauth2ClientSecret !== 'undefined') {
|
|
19794
|
+
payload['oauth2ClientSecret'] = oauth2ClientSecret;
|
|
18103
19795
|
}
|
|
18104
|
-
if (typeof
|
|
18105
|
-
|
|
19796
|
+
if (typeof enabled !== 'undefined') {
|
|
19797
|
+
payload['enabled'] = enabled;
|
|
18106
19798
|
}
|
|
18107
|
-
const
|
|
19799
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19800
|
+
const apiHeaders = {
|
|
19801
|
+
'content-type': 'application/json',
|
|
19802
|
+
};
|
|
19803
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19804
|
+
}
|
|
19805
|
+
updateOAuth2Twitch(paramsOrFirst, ...rest) {
|
|
19806
|
+
let params;
|
|
19807
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19808
|
+
params = (paramsOrFirst || {});
|
|
19809
|
+
}
|
|
19810
|
+
else {
|
|
19811
|
+
params = {
|
|
19812
|
+
clientId: paramsOrFirst,
|
|
19813
|
+
clientSecret: rest[0],
|
|
19814
|
+
enabled: rest[1]
|
|
19815
|
+
};
|
|
19816
|
+
}
|
|
19817
|
+
const clientId = params.clientId;
|
|
19818
|
+
const clientSecret = params.clientSecret;
|
|
19819
|
+
const enabled = params.enabled;
|
|
19820
|
+
const apiPath = '/project/oauth2/twitch';
|
|
18108
19821
|
const payload = {};
|
|
18109
|
-
if (typeof
|
|
18110
|
-
payload['
|
|
19822
|
+
if (typeof clientId !== 'undefined') {
|
|
19823
|
+
payload['clientId'] = clientId;
|
|
18111
19824
|
}
|
|
18112
|
-
if (typeof
|
|
18113
|
-
payload['
|
|
19825
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19826
|
+
payload['clientSecret'] = clientSecret;
|
|
18114
19827
|
}
|
|
18115
|
-
if (typeof
|
|
18116
|
-
payload['
|
|
19828
|
+
if (typeof enabled !== 'undefined') {
|
|
19829
|
+
payload['enabled'] = enabled;
|
|
18117
19830
|
}
|
|
18118
19831
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18119
19832
|
const apiHeaders = {
|
|
18120
19833
|
'content-type': 'application/json',
|
|
18121
19834
|
};
|
|
18122
|
-
return this.client.call('
|
|
19835
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18123
19836
|
}
|
|
18124
|
-
|
|
19837
|
+
updateOAuth2WordPress(paramsOrFirst, ...rest) {
|
|
18125
19838
|
let params;
|
|
18126
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19839
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18127
19840
|
params = (paramsOrFirst || {});
|
|
18128
19841
|
}
|
|
18129
19842
|
else {
|
|
18130
19843
|
params = {
|
|
18131
|
-
|
|
19844
|
+
clientId: paramsOrFirst,
|
|
19845
|
+
clientSecret: rest[0],
|
|
19846
|
+
enabled: rest[1]
|
|
18132
19847
|
};
|
|
18133
19848
|
}
|
|
18134
|
-
const
|
|
18135
|
-
|
|
18136
|
-
|
|
19849
|
+
const clientId = params.clientId;
|
|
19850
|
+
const clientSecret = params.clientSecret;
|
|
19851
|
+
const enabled = params.enabled;
|
|
19852
|
+
const apiPath = '/project/oauth2/wordpress';
|
|
19853
|
+
const payload = {};
|
|
19854
|
+
if (typeof clientId !== 'undefined') {
|
|
19855
|
+
payload['clientId'] = clientId;
|
|
18137
19856
|
}
|
|
18138
|
-
|
|
19857
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19858
|
+
payload['clientSecret'] = clientSecret;
|
|
19859
|
+
}
|
|
19860
|
+
if (typeof enabled !== 'undefined') {
|
|
19861
|
+
payload['enabled'] = enabled;
|
|
19862
|
+
}
|
|
19863
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19864
|
+
const apiHeaders = {
|
|
19865
|
+
'content-type': 'application/json',
|
|
19866
|
+
};
|
|
19867
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19868
|
+
}
|
|
19869
|
+
updateOAuth2X(paramsOrFirst, ...rest) {
|
|
19870
|
+
let params;
|
|
19871
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19872
|
+
params = (paramsOrFirst || {});
|
|
19873
|
+
}
|
|
19874
|
+
else {
|
|
19875
|
+
params = {
|
|
19876
|
+
customerKey: paramsOrFirst,
|
|
19877
|
+
secretKey: rest[0],
|
|
19878
|
+
enabled: rest[1]
|
|
19879
|
+
};
|
|
19880
|
+
}
|
|
19881
|
+
const customerKey = params.customerKey;
|
|
19882
|
+
const secretKey = params.secretKey;
|
|
19883
|
+
const enabled = params.enabled;
|
|
19884
|
+
const apiPath = '/project/oauth2/x';
|
|
18139
19885
|
const payload = {};
|
|
19886
|
+
if (typeof customerKey !== 'undefined') {
|
|
19887
|
+
payload['customerKey'] = customerKey;
|
|
19888
|
+
}
|
|
19889
|
+
if (typeof secretKey !== 'undefined') {
|
|
19890
|
+
payload['secretKey'] = secretKey;
|
|
19891
|
+
}
|
|
19892
|
+
if (typeof enabled !== 'undefined') {
|
|
19893
|
+
payload['enabled'] = enabled;
|
|
19894
|
+
}
|
|
18140
19895
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18141
19896
|
const apiHeaders = {
|
|
18142
19897
|
'content-type': 'application/json',
|
|
18143
19898
|
};
|
|
18144
|
-
return this.client.call('
|
|
19899
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18145
19900
|
}
|
|
18146
|
-
|
|
19901
|
+
updateOAuth2Yahoo(paramsOrFirst, ...rest) {
|
|
18147
19902
|
let params;
|
|
18148
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19903
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
18149
19904
|
params = (paramsOrFirst || {});
|
|
18150
19905
|
}
|
|
18151
19906
|
else {
|
|
18152
19907
|
params = {
|
|
18153
|
-
|
|
19908
|
+
clientId: paramsOrFirst,
|
|
19909
|
+
clientSecret: rest[0],
|
|
19910
|
+
enabled: rest[1]
|
|
18154
19911
|
};
|
|
18155
19912
|
}
|
|
18156
|
-
const
|
|
18157
|
-
|
|
18158
|
-
|
|
19913
|
+
const clientId = params.clientId;
|
|
19914
|
+
const clientSecret = params.clientSecret;
|
|
19915
|
+
const enabled = params.enabled;
|
|
19916
|
+
const apiPath = '/project/oauth2/yahoo';
|
|
19917
|
+
const payload = {};
|
|
19918
|
+
if (typeof clientId !== 'undefined') {
|
|
19919
|
+
payload['clientId'] = clientId;
|
|
18159
19920
|
}
|
|
18160
|
-
|
|
19921
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19922
|
+
payload['clientSecret'] = clientSecret;
|
|
19923
|
+
}
|
|
19924
|
+
if (typeof enabled !== 'undefined') {
|
|
19925
|
+
payload['enabled'] = enabled;
|
|
19926
|
+
}
|
|
19927
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19928
|
+
const apiHeaders = {
|
|
19929
|
+
'content-type': 'application/json',
|
|
19930
|
+
};
|
|
19931
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19932
|
+
}
|
|
19933
|
+
updateOAuth2Yandex(paramsOrFirst, ...rest) {
|
|
19934
|
+
let params;
|
|
19935
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19936
|
+
params = (paramsOrFirst || {});
|
|
19937
|
+
}
|
|
19938
|
+
else {
|
|
19939
|
+
params = {
|
|
19940
|
+
clientId: paramsOrFirst,
|
|
19941
|
+
clientSecret: rest[0],
|
|
19942
|
+
enabled: rest[1]
|
|
19943
|
+
};
|
|
19944
|
+
}
|
|
19945
|
+
const clientId = params.clientId;
|
|
19946
|
+
const clientSecret = params.clientSecret;
|
|
19947
|
+
const enabled = params.enabled;
|
|
19948
|
+
const apiPath = '/project/oauth2/yandex';
|
|
18161
19949
|
const payload = {};
|
|
18162
|
-
if (typeof
|
|
18163
|
-
payload['
|
|
19950
|
+
if (typeof clientId !== 'undefined') {
|
|
19951
|
+
payload['clientId'] = clientId;
|
|
19952
|
+
}
|
|
19953
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19954
|
+
payload['clientSecret'] = clientSecret;
|
|
19955
|
+
}
|
|
19956
|
+
if (typeof enabled !== 'undefined') {
|
|
19957
|
+
payload['enabled'] = enabled;
|
|
18164
19958
|
}
|
|
18165
19959
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
18166
19960
|
const apiHeaders = {
|
|
18167
19961
|
'content-type': 'application/json',
|
|
18168
19962
|
};
|
|
18169
|
-
return this.client.call('
|
|
19963
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19964
|
+
}
|
|
19965
|
+
updateOAuth2Zoho(paramsOrFirst, ...rest) {
|
|
19966
|
+
let params;
|
|
19967
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19968
|
+
params = (paramsOrFirst || {});
|
|
19969
|
+
}
|
|
19970
|
+
else {
|
|
19971
|
+
params = {
|
|
19972
|
+
clientId: paramsOrFirst,
|
|
19973
|
+
clientSecret: rest[0],
|
|
19974
|
+
enabled: rest[1]
|
|
19975
|
+
};
|
|
19976
|
+
}
|
|
19977
|
+
const clientId = params.clientId;
|
|
19978
|
+
const clientSecret = params.clientSecret;
|
|
19979
|
+
const enabled = params.enabled;
|
|
19980
|
+
const apiPath = '/project/oauth2/zoho';
|
|
19981
|
+
const payload = {};
|
|
19982
|
+
if (typeof clientId !== 'undefined') {
|
|
19983
|
+
payload['clientId'] = clientId;
|
|
19984
|
+
}
|
|
19985
|
+
if (typeof clientSecret !== 'undefined') {
|
|
19986
|
+
payload['clientSecret'] = clientSecret;
|
|
19987
|
+
}
|
|
19988
|
+
if (typeof enabled !== 'undefined') {
|
|
19989
|
+
payload['enabled'] = enabled;
|
|
19990
|
+
}
|
|
19991
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19992
|
+
const apiHeaders = {
|
|
19993
|
+
'content-type': 'application/json',
|
|
19994
|
+
};
|
|
19995
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19996
|
+
}
|
|
19997
|
+
updateOAuth2Zoom(paramsOrFirst, ...rest) {
|
|
19998
|
+
let params;
|
|
19999
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20000
|
+
params = (paramsOrFirst || {});
|
|
20001
|
+
}
|
|
20002
|
+
else {
|
|
20003
|
+
params = {
|
|
20004
|
+
clientId: paramsOrFirst,
|
|
20005
|
+
clientSecret: rest[0],
|
|
20006
|
+
enabled: rest[1]
|
|
20007
|
+
};
|
|
20008
|
+
}
|
|
20009
|
+
const clientId = params.clientId;
|
|
20010
|
+
const clientSecret = params.clientSecret;
|
|
20011
|
+
const enabled = params.enabled;
|
|
20012
|
+
const apiPath = '/project/oauth2/zoom';
|
|
20013
|
+
const payload = {};
|
|
20014
|
+
if (typeof clientId !== 'undefined') {
|
|
20015
|
+
payload['clientId'] = clientId;
|
|
20016
|
+
}
|
|
20017
|
+
if (typeof clientSecret !== 'undefined') {
|
|
20018
|
+
payload['clientSecret'] = clientSecret;
|
|
20019
|
+
}
|
|
20020
|
+
if (typeof enabled !== 'undefined') {
|
|
20021
|
+
payload['enabled'] = enabled;
|
|
20022
|
+
}
|
|
20023
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20024
|
+
const apiHeaders = {
|
|
20025
|
+
'content-type': 'application/json',
|
|
20026
|
+
};
|
|
20027
|
+
return this.client.call('patch', uri, apiHeaders, payload);
|
|
20028
|
+
}
|
|
20029
|
+
getOAuth2Provider(paramsOrFirst) {
|
|
20030
|
+
let params;
|
|
20031
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20032
|
+
params = (paramsOrFirst || {});
|
|
20033
|
+
}
|
|
20034
|
+
else {
|
|
20035
|
+
params = {
|
|
20036
|
+
provider: paramsOrFirst
|
|
20037
|
+
};
|
|
20038
|
+
}
|
|
20039
|
+
const provider = params.provider;
|
|
20040
|
+
if (typeof provider === 'undefined') {
|
|
20041
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
20042
|
+
}
|
|
20043
|
+
const apiPath = '/project/oauth2/{provider}'.replace('{provider}', provider);
|
|
20044
|
+
const payload = {};
|
|
20045
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20046
|
+
const apiHeaders = {};
|
|
20047
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
18170
20048
|
}
|
|
18171
20049
|
listPlatforms(paramsOrFirst, ...rest) {
|
|
18172
20050
|
let params;
|
|
@@ -18630,6 +20508,31 @@ class Project {
|
|
|
18630
20508
|
};
|
|
18631
20509
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
18632
20510
|
}
|
|
20511
|
+
listPolicies(paramsOrFirst, ...rest) {
|
|
20512
|
+
let params;
|
|
20513
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20514
|
+
params = (paramsOrFirst || {});
|
|
20515
|
+
}
|
|
20516
|
+
else {
|
|
20517
|
+
params = {
|
|
20518
|
+
queries: paramsOrFirst,
|
|
20519
|
+
total: rest[0]
|
|
20520
|
+
};
|
|
20521
|
+
}
|
|
20522
|
+
const queries = params.queries;
|
|
20523
|
+
const total = params.total;
|
|
20524
|
+
const apiPath = '/project/policies';
|
|
20525
|
+
const payload = {};
|
|
20526
|
+
if (typeof queries !== 'undefined') {
|
|
20527
|
+
payload['queries'] = queries;
|
|
20528
|
+
}
|
|
20529
|
+
if (typeof total !== 'undefined') {
|
|
20530
|
+
payload['total'] = total;
|
|
20531
|
+
}
|
|
20532
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20533
|
+
const apiHeaders = {};
|
|
20534
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
20535
|
+
}
|
|
18633
20536
|
updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
|
|
18634
20537
|
let params;
|
|
18635
20538
|
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -18872,6 +20775,26 @@ class Project {
|
|
|
18872
20775
|
};
|
|
18873
20776
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
18874
20777
|
}
|
|
20778
|
+
getPolicy(paramsOrFirst) {
|
|
20779
|
+
let params;
|
|
20780
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('policyId' in paramsOrFirst))) {
|
|
20781
|
+
params = (paramsOrFirst || {});
|
|
20782
|
+
}
|
|
20783
|
+
else {
|
|
20784
|
+
params = {
|
|
20785
|
+
policyId: paramsOrFirst
|
|
20786
|
+
};
|
|
20787
|
+
}
|
|
20788
|
+
const policyId = params.policyId;
|
|
20789
|
+
if (typeof policyId === 'undefined') {
|
|
20790
|
+
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
20791
|
+
}
|
|
20792
|
+
const apiPath = '/project/policies/{policyId}'.replace('{policyId}', policyId);
|
|
20793
|
+
const payload = {};
|
|
20794
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20795
|
+
const apiHeaders = {};
|
|
20796
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
20797
|
+
}
|
|
18875
20798
|
updateProtocol(paramsOrFirst, ...rest) {
|
|
18876
20799
|
let params;
|
|
18877
20800
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('protocolId' in paramsOrFirst || 'enabled' in paramsOrFirst))) {
|
|
@@ -19009,20 +20932,45 @@ class Project {
|
|
|
19009
20932
|
emails: paramsOrFirst
|
|
19010
20933
|
};
|
|
19011
20934
|
}
|
|
19012
|
-
const emails = params.emails;
|
|
19013
|
-
if (typeof emails === 'undefined') {
|
|
19014
|
-
throw new AppwriteException('Missing required parameter: "emails"');
|
|
19015
|
-
}
|
|
19016
|
-
const apiPath = '/project/smtp/tests';
|
|
20935
|
+
const emails = params.emails;
|
|
20936
|
+
if (typeof emails === 'undefined') {
|
|
20937
|
+
throw new AppwriteException('Missing required parameter: "emails"');
|
|
20938
|
+
}
|
|
20939
|
+
const apiPath = '/project/smtp/tests';
|
|
20940
|
+
const payload = {};
|
|
20941
|
+
if (typeof emails !== 'undefined') {
|
|
20942
|
+
payload['emails'] = emails;
|
|
20943
|
+
}
|
|
20944
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
20945
|
+
const apiHeaders = {
|
|
20946
|
+
'content-type': 'application/json',
|
|
20947
|
+
};
|
|
20948
|
+
return this.client.call('post', uri, apiHeaders, payload);
|
|
20949
|
+
}
|
|
20950
|
+
listEmailTemplates(paramsOrFirst, ...rest) {
|
|
20951
|
+
let params;
|
|
20952
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
20953
|
+
params = (paramsOrFirst || {});
|
|
20954
|
+
}
|
|
20955
|
+
else {
|
|
20956
|
+
params = {
|
|
20957
|
+
queries: paramsOrFirst,
|
|
20958
|
+
total: rest[0]
|
|
20959
|
+
};
|
|
20960
|
+
}
|
|
20961
|
+
const queries = params.queries;
|
|
20962
|
+
const total = params.total;
|
|
20963
|
+
const apiPath = '/project/templates/email';
|
|
19017
20964
|
const payload = {};
|
|
19018
|
-
if (typeof
|
|
19019
|
-
payload['
|
|
20965
|
+
if (typeof queries !== 'undefined') {
|
|
20966
|
+
payload['queries'] = queries;
|
|
20967
|
+
}
|
|
20968
|
+
if (typeof total !== 'undefined') {
|
|
20969
|
+
payload['total'] = total;
|
|
19020
20970
|
}
|
|
19021
20971
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19022
|
-
const apiHeaders = {
|
|
19023
|
-
|
|
19024
|
-
};
|
|
19025
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
20972
|
+
const apiHeaders = {};
|
|
20973
|
+
return this.client.call('get', uri, apiHeaders, payload);
|
|
19026
20974
|
}
|
|
19027
20975
|
updateEmailTemplate(paramsOrFirst, ...rest) {
|
|
19028
20976
|
let params;
|
|
@@ -19517,93 +21465,6 @@ class Projects {
|
|
|
19517
21465
|
};
|
|
19518
21466
|
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19519
21467
|
}
|
|
19520
|
-
delete(paramsOrFirst) {
|
|
19521
|
-
let params;
|
|
19522
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19523
|
-
params = (paramsOrFirst || {});
|
|
19524
|
-
}
|
|
19525
|
-
else {
|
|
19526
|
-
params = {
|
|
19527
|
-
projectId: paramsOrFirst
|
|
19528
|
-
};
|
|
19529
|
-
}
|
|
19530
|
-
const projectId = params.projectId;
|
|
19531
|
-
if (typeof projectId === 'undefined') {
|
|
19532
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
19533
|
-
}
|
|
19534
|
-
const apiPath = '/projects/{projectId}'.replace('{projectId}', projectId);
|
|
19535
|
-
const payload = {};
|
|
19536
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19537
|
-
const apiHeaders = {
|
|
19538
|
-
'content-type': 'application/json',
|
|
19539
|
-
};
|
|
19540
|
-
return this.client.call('delete', uri, apiHeaders, payload);
|
|
19541
|
-
}
|
|
19542
|
-
updateMockNumbers(paramsOrFirst, ...rest) {
|
|
19543
|
-
let params;
|
|
19544
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19545
|
-
params = (paramsOrFirst || {});
|
|
19546
|
-
}
|
|
19547
|
-
else {
|
|
19548
|
-
params = {
|
|
19549
|
-
projectId: paramsOrFirst,
|
|
19550
|
-
numbers: rest[0]
|
|
19551
|
-
};
|
|
19552
|
-
}
|
|
19553
|
-
const projectId = params.projectId;
|
|
19554
|
-
const numbers = params.numbers;
|
|
19555
|
-
if (typeof projectId === 'undefined') {
|
|
19556
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
19557
|
-
}
|
|
19558
|
-
if (typeof numbers === 'undefined') {
|
|
19559
|
-
throw new AppwriteException('Missing required parameter: "numbers"');
|
|
19560
|
-
}
|
|
19561
|
-
const apiPath = '/projects/{projectId}/auth/mock-numbers'.replace('{projectId}', projectId);
|
|
19562
|
-
const payload = {};
|
|
19563
|
-
if (typeof numbers !== 'undefined') {
|
|
19564
|
-
payload['numbers'] = numbers;
|
|
19565
|
-
}
|
|
19566
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19567
|
-
const apiHeaders = {
|
|
19568
|
-
'content-type': 'application/json',
|
|
19569
|
-
};
|
|
19570
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19571
|
-
}
|
|
19572
|
-
updateAuthStatus(paramsOrFirst, ...rest) {
|
|
19573
|
-
let params;
|
|
19574
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19575
|
-
params = (paramsOrFirst || {});
|
|
19576
|
-
}
|
|
19577
|
-
else {
|
|
19578
|
-
params = {
|
|
19579
|
-
projectId: paramsOrFirst,
|
|
19580
|
-
method: rest[0],
|
|
19581
|
-
status: rest[1]
|
|
19582
|
-
};
|
|
19583
|
-
}
|
|
19584
|
-
const projectId = params.projectId;
|
|
19585
|
-
const method = params.method;
|
|
19586
|
-
const status = params.status;
|
|
19587
|
-
if (typeof projectId === 'undefined') {
|
|
19588
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
19589
|
-
}
|
|
19590
|
-
if (typeof method === 'undefined') {
|
|
19591
|
-
throw new AppwriteException('Missing required parameter: "method"');
|
|
19592
|
-
}
|
|
19593
|
-
if (typeof status === 'undefined') {
|
|
19594
|
-
throw new AppwriteException('Missing required parameter: "status"');
|
|
19595
|
-
}
|
|
19596
|
-
const apiPath = '/projects/{projectId}/auth/{method}'.replace('{projectId}', projectId).replace('{method}', method);
|
|
19597
|
-
const payload = {};
|
|
19598
|
-
if (typeof status !== 'undefined') {
|
|
19599
|
-
payload['status'] = status;
|
|
19600
|
-
}
|
|
19601
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19602
|
-
const apiHeaders = {
|
|
19603
|
-
'content-type': 'application/json',
|
|
19604
|
-
};
|
|
19605
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19606
|
-
}
|
|
19607
21468
|
updateConsoleAccess(paramsOrFirst) {
|
|
19608
21469
|
let params;
|
|
19609
21470
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -19784,86 +21645,6 @@ class Projects {
|
|
|
19784
21645
|
};
|
|
19785
21646
|
return this.client.call('delete', uri, apiHeaders, payload);
|
|
19786
21647
|
}
|
|
19787
|
-
createJWT(paramsOrFirst, ...rest) {
|
|
19788
|
-
let params;
|
|
19789
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19790
|
-
params = (paramsOrFirst || {});
|
|
19791
|
-
}
|
|
19792
|
-
else {
|
|
19793
|
-
params = {
|
|
19794
|
-
projectId: paramsOrFirst,
|
|
19795
|
-
scopes: rest[0],
|
|
19796
|
-
duration: rest[1]
|
|
19797
|
-
};
|
|
19798
|
-
}
|
|
19799
|
-
const projectId = params.projectId;
|
|
19800
|
-
const scopes = params.scopes;
|
|
19801
|
-
const duration = params.duration;
|
|
19802
|
-
if (typeof projectId === 'undefined') {
|
|
19803
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
19804
|
-
}
|
|
19805
|
-
if (typeof scopes === 'undefined') {
|
|
19806
|
-
throw new AppwriteException('Missing required parameter: "scopes"');
|
|
19807
|
-
}
|
|
19808
|
-
const apiPath = '/projects/{projectId}/jwts'.replace('{projectId}', projectId);
|
|
19809
|
-
const payload = {};
|
|
19810
|
-
if (typeof scopes !== 'undefined') {
|
|
19811
|
-
payload['scopes'] = scopes;
|
|
19812
|
-
}
|
|
19813
|
-
if (typeof duration !== 'undefined') {
|
|
19814
|
-
payload['duration'] = duration;
|
|
19815
|
-
}
|
|
19816
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19817
|
-
const apiHeaders = {
|
|
19818
|
-
'content-type': 'application/json',
|
|
19819
|
-
};
|
|
19820
|
-
return this.client.call('post', uri, apiHeaders, payload);
|
|
19821
|
-
}
|
|
19822
|
-
updateOAuth2(paramsOrFirst, ...rest) {
|
|
19823
|
-
let params;
|
|
19824
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
19825
|
-
params = (paramsOrFirst || {});
|
|
19826
|
-
}
|
|
19827
|
-
else {
|
|
19828
|
-
params = {
|
|
19829
|
-
projectId: paramsOrFirst,
|
|
19830
|
-
provider: rest[0],
|
|
19831
|
-
appId: rest[1],
|
|
19832
|
-
secret: rest[2],
|
|
19833
|
-
enabled: rest[3]
|
|
19834
|
-
};
|
|
19835
|
-
}
|
|
19836
|
-
const projectId = params.projectId;
|
|
19837
|
-
const provider = params.provider;
|
|
19838
|
-
const appId = params.appId;
|
|
19839
|
-
const secret = params.secret;
|
|
19840
|
-
const enabled = params.enabled;
|
|
19841
|
-
if (typeof projectId === 'undefined') {
|
|
19842
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
19843
|
-
}
|
|
19844
|
-
if (typeof provider === 'undefined') {
|
|
19845
|
-
throw new AppwriteException('Missing required parameter: "provider"');
|
|
19846
|
-
}
|
|
19847
|
-
const apiPath = '/projects/{projectId}/oauth2'.replace('{projectId}', projectId);
|
|
19848
|
-
const payload = {};
|
|
19849
|
-
if (typeof provider !== 'undefined') {
|
|
19850
|
-
payload['provider'] = provider;
|
|
19851
|
-
}
|
|
19852
|
-
if (typeof appId !== 'undefined') {
|
|
19853
|
-
payload['appId'] = appId;
|
|
19854
|
-
}
|
|
19855
|
-
if (typeof secret !== 'undefined') {
|
|
19856
|
-
payload['secret'] = secret;
|
|
19857
|
-
}
|
|
19858
|
-
if (typeof enabled !== 'undefined') {
|
|
19859
|
-
payload['enabled'] = enabled;
|
|
19860
|
-
}
|
|
19861
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
19862
|
-
const apiHeaders = {
|
|
19863
|
-
'content-type': 'application/json',
|
|
19864
|
-
};
|
|
19865
|
-
return this.client.call('patch', uri, apiHeaders, payload);
|
|
19866
|
-
}
|
|
19867
21648
|
listSchedules(paramsOrFirst, ...rest) {
|
|
19868
21649
|
let params;
|
|
19869
21650
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
@@ -30189,73 +31970,80 @@ exports.Scopes = void 0;
|
|
|
30189
31970
|
Scopes["Account"] = "account";
|
|
30190
31971
|
Scopes["TeamsRead"] = "teams.read";
|
|
30191
31972
|
Scopes["TeamsWrite"] = "teams.write";
|
|
30192
|
-
Scopes["
|
|
31973
|
+
Scopes["ProjectRead"] = "project.read";
|
|
31974
|
+
Scopes["ProjectWrite"] = "project.write";
|
|
31975
|
+
Scopes["KeysRead"] = "keys.read";
|
|
31976
|
+
Scopes["KeysWrite"] = "keys.write";
|
|
31977
|
+
Scopes["PlatformsRead"] = "platforms.read";
|
|
31978
|
+
Scopes["PlatformsWrite"] = "platforms.write";
|
|
31979
|
+
Scopes["MocksRead"] = "mocks.read";
|
|
31980
|
+
Scopes["MocksWrite"] = "mocks.write";
|
|
31981
|
+
Scopes["PoliciesRead"] = "policies.read";
|
|
31982
|
+
Scopes["PoliciesWrite"] = "policies.write";
|
|
31983
|
+
Scopes["TemplatesRead"] = "templates.read";
|
|
31984
|
+
Scopes["TemplatesWrite"] = "templates.write";
|
|
31985
|
+
Scopes["Oauth2Read"] = "oauth2.read";
|
|
31986
|
+
Scopes["Oauth2Write"] = "oauth2.write";
|
|
30193
31987
|
Scopes["UsersRead"] = "users.read";
|
|
30194
31988
|
Scopes["UsersWrite"] = "users.write";
|
|
31989
|
+
Scopes["SessionsRead"] = "sessions.read";
|
|
31990
|
+
Scopes["SessionsWrite"] = "sessions.write";
|
|
30195
31991
|
Scopes["DatabasesRead"] = "databases.read";
|
|
30196
31992
|
Scopes["DatabasesWrite"] = "databases.write";
|
|
30197
|
-
Scopes["CollectionsRead"] = "collections.read";
|
|
30198
|
-
Scopes["CollectionsWrite"] = "collections.write";
|
|
30199
31993
|
Scopes["TablesRead"] = "tables.read";
|
|
30200
31994
|
Scopes["TablesWrite"] = "tables.write";
|
|
30201
|
-
Scopes["AttributesRead"] = "attributes.read";
|
|
30202
|
-
Scopes["AttributesWrite"] = "attributes.write";
|
|
30203
31995
|
Scopes["ColumnsRead"] = "columns.read";
|
|
30204
31996
|
Scopes["ColumnsWrite"] = "columns.write";
|
|
30205
31997
|
Scopes["IndexesRead"] = "indexes.read";
|
|
30206
31998
|
Scopes["IndexesWrite"] = "indexes.write";
|
|
30207
|
-
Scopes["DocumentsRead"] = "documents.read";
|
|
30208
|
-
Scopes["DocumentsWrite"] = "documents.write";
|
|
30209
31999
|
Scopes["RowsRead"] = "rows.read";
|
|
30210
32000
|
Scopes["RowsWrite"] = "rows.write";
|
|
30211
|
-
Scopes["
|
|
30212
|
-
Scopes["
|
|
32001
|
+
Scopes["CollectionsRead"] = "collections.read";
|
|
32002
|
+
Scopes["CollectionsWrite"] = "collections.write";
|
|
32003
|
+
Scopes["AttributesRead"] = "attributes.read";
|
|
32004
|
+
Scopes["AttributesWrite"] = "attributes.write";
|
|
32005
|
+
Scopes["DocumentsRead"] = "documents.read";
|
|
32006
|
+
Scopes["DocumentsWrite"] = "documents.write";
|
|
30213
32007
|
Scopes["BucketsRead"] = "buckets.read";
|
|
30214
32008
|
Scopes["BucketsWrite"] = "buckets.write";
|
|
32009
|
+
Scopes["FilesRead"] = "files.read";
|
|
32010
|
+
Scopes["FilesWrite"] = "files.write";
|
|
32011
|
+
Scopes["TokensRead"] = "tokens.read";
|
|
32012
|
+
Scopes["TokensWrite"] = "tokens.write";
|
|
30215
32013
|
Scopes["FunctionsRead"] = "functions.read";
|
|
30216
32014
|
Scopes["FunctionsWrite"] = "functions.write";
|
|
32015
|
+
Scopes["ExecutionsRead"] = "executions.read";
|
|
32016
|
+
Scopes["ExecutionsWrite"] = "executions.write";
|
|
32017
|
+
Scopes["ExecutionRead"] = "execution.read";
|
|
32018
|
+
Scopes["ExecutionWrite"] = "execution.write";
|
|
30217
32019
|
Scopes["SitesRead"] = "sites.read";
|
|
30218
32020
|
Scopes["SitesWrite"] = "sites.write";
|
|
30219
32021
|
Scopes["LogRead"] = "log.read";
|
|
30220
32022
|
Scopes["LogWrite"] = "log.write";
|
|
30221
|
-
Scopes["ExecutionRead"] = "execution.read";
|
|
30222
|
-
Scopes["ExecutionWrite"] = "execution.write";
|
|
30223
|
-
Scopes["LocaleRead"] = "locale.read";
|
|
30224
|
-
Scopes["AvatarsRead"] = "avatars.read";
|
|
30225
|
-
Scopes["HealthRead"] = "health.read";
|
|
30226
32023
|
Scopes["ProvidersRead"] = "providers.read";
|
|
30227
32024
|
Scopes["ProvidersWrite"] = "providers.write";
|
|
30228
|
-
Scopes["MessagesRead"] = "messages.read";
|
|
30229
|
-
Scopes["MessagesWrite"] = "messages.write";
|
|
30230
32025
|
Scopes["TopicsRead"] = "topics.read";
|
|
30231
32026
|
Scopes["TopicsWrite"] = "topics.write";
|
|
30232
32027
|
Scopes["SubscribersRead"] = "subscribers.read";
|
|
30233
32028
|
Scopes["SubscribersWrite"] = "subscribers.write";
|
|
30234
32029
|
Scopes["TargetsRead"] = "targets.read";
|
|
30235
32030
|
Scopes["TargetsWrite"] = "targets.write";
|
|
30236
|
-
Scopes["
|
|
30237
|
-
Scopes["
|
|
30238
|
-
Scopes["
|
|
30239
|
-
Scopes["
|
|
32031
|
+
Scopes["MessagesRead"] = "messages.read";
|
|
32032
|
+
Scopes["MessagesWrite"] = "messages.write";
|
|
32033
|
+
Scopes["WebhooksRead"] = "webhooks.read";
|
|
32034
|
+
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
32035
|
+
Scopes["LocaleRead"] = "locale.read";
|
|
32036
|
+
Scopes["AvatarsRead"] = "avatars.read";
|
|
32037
|
+
Scopes["HealthRead"] = "health.read";
|
|
32038
|
+
Scopes["AssistantRead"] = "assistant.read";
|
|
30240
32039
|
Scopes["MigrationsRead"] = "migrations.read";
|
|
30241
32040
|
Scopes["MigrationsWrite"] = "migrations.write";
|
|
32041
|
+
Scopes["SchedulesRead"] = "schedules.read";
|
|
32042
|
+
Scopes["SchedulesWrite"] = "schedules.write";
|
|
30242
32043
|
Scopes["VcsRead"] = "vcs.read";
|
|
30243
32044
|
Scopes["VcsWrite"] = "vcs.write";
|
|
30244
|
-
Scopes["
|
|
30245
|
-
Scopes["
|
|
30246
|
-
Scopes["TokensWrite"] = "tokens.write";
|
|
30247
|
-
Scopes["WebhooksRead"] = "webhooks.read";
|
|
30248
|
-
Scopes["WebhooksWrite"] = "webhooks.write";
|
|
30249
|
-
Scopes["ProjectRead"] = "project.read";
|
|
30250
|
-
Scopes["ProjectWrite"] = "project.write";
|
|
30251
|
-
Scopes["KeysRead"] = "keys.read";
|
|
30252
|
-
Scopes["KeysWrite"] = "keys.write";
|
|
30253
|
-
Scopes["PlatformsRead"] = "platforms.read";
|
|
30254
|
-
Scopes["PlatformsWrite"] = "platforms.write";
|
|
30255
|
-
Scopes["PoliciesWrite"] = "policies.write";
|
|
30256
|
-
Scopes["TemplatesRead"] = "templates.read";
|
|
30257
|
-
Scopes["TemplatesWrite"] = "templates.write";
|
|
30258
|
-
Scopes["PoliciesRead"] = "policies.read";
|
|
32045
|
+
Scopes["RulesRead"] = "rules.read";
|
|
32046
|
+
Scopes["RulesWrite"] = "rules.write";
|
|
30259
32047
|
Scopes["ArchivesRead"] = "archives.read";
|
|
30260
32048
|
Scopes["ArchivesWrite"] = "archives.write";
|
|
30261
32049
|
Scopes["RestorationsRead"] = "restorations.read";
|
|
@@ -30299,9 +32087,12 @@ exports.OAuthProvider = void 0;
|
|
|
30299
32087
|
OAuthProvider["Etsy"] = "etsy";
|
|
30300
32088
|
OAuthProvider["Facebook"] = "facebook";
|
|
30301
32089
|
OAuthProvider["Figma"] = "figma";
|
|
32090
|
+
OAuthProvider["Fusionauth"] = "fusionauth";
|
|
30302
32091
|
OAuthProvider["Github"] = "github";
|
|
30303
32092
|
OAuthProvider["Gitlab"] = "gitlab";
|
|
30304
32093
|
OAuthProvider["Google"] = "google";
|
|
32094
|
+
OAuthProvider["Keycloak"] = "keycloak";
|
|
32095
|
+
OAuthProvider["Kick"] = "kick";
|
|
30305
32096
|
OAuthProvider["Linkedin"] = "linkedin";
|
|
30306
32097
|
OAuthProvider["Microsoft"] = "microsoft";
|
|
30307
32098
|
OAuthProvider["Notion"] = "notion";
|
|
@@ -31188,6 +32979,7 @@ exports.Runtime = void 0;
|
|
|
31188
32979
|
Runtime["Go124"] = "go-1.24";
|
|
31189
32980
|
Runtime["Go125"] = "go-1.25";
|
|
31190
32981
|
Runtime["Go126"] = "go-1.26";
|
|
32982
|
+
Runtime["Rust183"] = "rust-1.83";
|
|
31191
32983
|
Runtime["Static1"] = "static-1";
|
|
31192
32984
|
Runtime["Flutter324"] = "flutter-3.24";
|
|
31193
32985
|
Runtime["Flutter327"] = "flutter-3.27";
|
|
@@ -31280,6 +33072,7 @@ exports.Runtimes = void 0;
|
|
|
31280
33072
|
Runtimes["Go124"] = "go-1.24";
|
|
31281
33073
|
Runtimes["Go125"] = "go-1.25";
|
|
31282
33074
|
Runtimes["Go126"] = "go-1.26";
|
|
33075
|
+
Runtimes["Rust183"] = "rust-1.83";
|
|
31283
33076
|
Runtimes["Static1"] = "static-1";
|
|
31284
33077
|
Runtimes["Flutter324"] = "flutter-3.24";
|
|
31285
33078
|
Runtimes["Flutter327"] = "flutter-3.27";
|
|
@@ -31356,6 +33149,23 @@ exports.Name = void 0;
|
|
|
31356
33149
|
Name["V1migrations"] = "v1-migrations";
|
|
31357
33150
|
})(exports.Name || (exports.Name = {}));
|
|
31358
33151
|
|
|
33152
|
+
exports.ResourceType = void 0;
|
|
33153
|
+
(function (ResourceType) {
|
|
33154
|
+
ResourceType["Projects"] = "projects";
|
|
33155
|
+
ResourceType["Functions"] = "functions";
|
|
33156
|
+
ResourceType["Sites"] = "sites";
|
|
33157
|
+
ResourceType["Databases"] = "databases";
|
|
33158
|
+
ResourceType["Buckets"] = "buckets";
|
|
33159
|
+
ResourceType["Providers"] = "providers";
|
|
33160
|
+
ResourceType["Topics"] = "topics";
|
|
33161
|
+
ResourceType["Subscribers"] = "subscribers";
|
|
33162
|
+
ResourceType["Messages"] = "messages";
|
|
33163
|
+
ResourceType["Function"] = "function";
|
|
33164
|
+
ResourceType["Execution"] = "execution";
|
|
33165
|
+
ResourceType["Message"] = "message";
|
|
33166
|
+
ResourceType["Backup"] = "backup";
|
|
33167
|
+
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
33168
|
+
|
|
31359
33169
|
exports.MessagePriority = void 0;
|
|
31360
33170
|
(function (MessagePriority) {
|
|
31361
33171
|
MessagePriority["Normal"] = "normal";
|
|
@@ -31396,6 +33206,7 @@ exports.AppwriteMigrationResource = void 0;
|
|
|
31396
33206
|
AppwriteMigrationResource["Site"] = "site";
|
|
31397
33207
|
AppwriteMigrationResource["Sitedeployment"] = "site-deployment";
|
|
31398
33208
|
AppwriteMigrationResource["Sitevariable"] = "site-variable";
|
|
33209
|
+
AppwriteMigrationResource["Backuppolicy"] = "backup-policy";
|
|
31399
33210
|
})(exports.AppwriteMigrationResource || (exports.AppwriteMigrationResource = {}));
|
|
31400
33211
|
|
|
31401
33212
|
exports.FirebaseMigrationResource = void 0;
|
|
@@ -31447,6 +33258,30 @@ exports.Addon = void 0;
|
|
|
31447
33258
|
Addon["Baa"] = "baa";
|
|
31448
33259
|
})(exports.Addon || (exports.Addon = {}));
|
|
31449
33260
|
|
|
33261
|
+
exports.MethodId = void 0;
|
|
33262
|
+
(function (MethodId) {
|
|
33263
|
+
MethodId["Emailpassword"] = "email-password";
|
|
33264
|
+
MethodId["Magicurl"] = "magic-url";
|
|
33265
|
+
MethodId["Emailotp"] = "email-otp";
|
|
33266
|
+
MethodId["Anonymous"] = "anonymous";
|
|
33267
|
+
MethodId["Invites"] = "invites";
|
|
33268
|
+
MethodId["Jwt"] = "jwt";
|
|
33269
|
+
MethodId["Phone"] = "phone";
|
|
33270
|
+
})(exports.MethodId || (exports.MethodId = {}));
|
|
33271
|
+
|
|
33272
|
+
exports.PolicyId = void 0;
|
|
33273
|
+
(function (PolicyId) {
|
|
33274
|
+
PolicyId["Passworddictionary"] = "password-dictionary";
|
|
33275
|
+
PolicyId["Passwordhistory"] = "password-history";
|
|
33276
|
+
PolicyId["Passwordpersonaldata"] = "password-personal-data";
|
|
33277
|
+
PolicyId["Sessionalert"] = "session-alert";
|
|
33278
|
+
PolicyId["Sessionduration"] = "session-duration";
|
|
33279
|
+
PolicyId["Sessioninvalidation"] = "session-invalidation";
|
|
33280
|
+
PolicyId["Sessionlimit"] = "session-limit";
|
|
33281
|
+
PolicyId["Userlimit"] = "user-limit";
|
|
33282
|
+
PolicyId["Membershipprivacy"] = "membership-privacy";
|
|
33283
|
+
})(exports.PolicyId || (exports.PolicyId = {}));
|
|
33284
|
+
|
|
31450
33285
|
exports.ProtocolId = void 0;
|
|
31451
33286
|
(function (ProtocolId) {
|
|
31452
33287
|
ProtocolId["Rest"] = "rest";
|
|
@@ -31643,25 +33478,6 @@ exports.Region = void 0;
|
|
|
31643
33478
|
Region["Tor"] = "tor";
|
|
31644
33479
|
})(exports.Region || (exports.Region = {}));
|
|
31645
33480
|
|
|
31646
|
-
exports.AuthMethod = void 0;
|
|
31647
|
-
(function (AuthMethod) {
|
|
31648
|
-
AuthMethod["Emailpassword"] = "email-password";
|
|
31649
|
-
AuthMethod["Magicurl"] = "magic-url";
|
|
31650
|
-
AuthMethod["Emailotp"] = "email-otp";
|
|
31651
|
-
AuthMethod["Anonymous"] = "anonymous";
|
|
31652
|
-
AuthMethod["Invites"] = "invites";
|
|
31653
|
-
AuthMethod["Jwt"] = "jwt";
|
|
31654
|
-
AuthMethod["Phone"] = "phone";
|
|
31655
|
-
})(exports.AuthMethod || (exports.AuthMethod = {}));
|
|
31656
|
-
|
|
31657
|
-
exports.ResourceType = void 0;
|
|
31658
|
-
(function (ResourceType) {
|
|
31659
|
-
ResourceType["Function"] = "function";
|
|
31660
|
-
ResourceType["Execution"] = "execution";
|
|
31661
|
-
ResourceType["Message"] = "message";
|
|
31662
|
-
ResourceType["Backup"] = "backup";
|
|
31663
|
-
})(exports.ResourceType || (exports.ResourceType = {}));
|
|
31664
|
-
|
|
31665
33481
|
exports.Status = void 0;
|
|
31666
33482
|
(function (Status) {
|
|
31667
33483
|
Status["Active"] = "active";
|
|
@@ -31782,6 +33598,7 @@ exports.BuildRuntime = void 0;
|
|
|
31782
33598
|
BuildRuntime["Go124"] = "go-1.24";
|
|
31783
33599
|
BuildRuntime["Go125"] = "go-1.25";
|
|
31784
33600
|
BuildRuntime["Go126"] = "go-1.26";
|
|
33601
|
+
BuildRuntime["Rust183"] = "rust-1.83";
|
|
31785
33602
|
BuildRuntime["Static1"] = "static-1";
|
|
31786
33603
|
BuildRuntime["Flutter324"] = "flutter-3.24";
|
|
31787
33604
|
BuildRuntime["Flutter327"] = "flutter-3.27";
|
|
@@ -32048,6 +33865,7 @@ exports.Graphql = Graphql;
|
|
|
32048
33865
|
exports.Health = Health;
|
|
32049
33866
|
exports.ID = ID;
|
|
32050
33867
|
exports.Locale = Locale;
|
|
33868
|
+
exports.Manager = Manager;
|
|
32051
33869
|
exports.Messaging = Messaging;
|
|
32052
33870
|
exports.Migrations = Migrations;
|
|
32053
33871
|
exports.Operator = Operator;
|