@appwrite.io/console 12.2.0 → 13.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/dist/esm/sdk.js CHANGED
@@ -619,7 +619,7 @@ class Client {
619
619
  'x-sdk-name': 'Console',
620
620
  'x-sdk-platform': 'console',
621
621
  'x-sdk-language': 'web',
622
- 'x-sdk-version': '12.2.0',
622
+ 'x-sdk-version': '13.0.0',
623
623
  'X-Appwrite-Response-Format': '1.9.4',
624
624
  };
625
625
  this.realtime = {
@@ -18399,81 +18399,6 @@ class Project {
18399
18399
  };
18400
18400
  return this.client.call('patch', uri, apiHeaders, payload);
18401
18401
  }
18402
- updateCanonicalEmails(paramsOrFirst) {
18403
- let params;
18404
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18405
- params = (paramsOrFirst || {});
18406
- }
18407
- else {
18408
- params = {
18409
- enabled: paramsOrFirst
18410
- };
18411
- }
18412
- const enabled = params.enabled;
18413
- if (typeof enabled === 'undefined') {
18414
- throw new AppwriteException('Missing required parameter: "enabled"');
18415
- }
18416
- const apiPath = '/project/auth/canonical-emails';
18417
- const payload = {};
18418
- if (typeof enabled !== 'undefined') {
18419
- payload['enabled'] = enabled;
18420
- }
18421
- const uri = new URL(this.client.config.endpoint + apiPath);
18422
- const apiHeaders = {
18423
- 'content-type': 'application/json',
18424
- };
18425
- return this.client.call('patch', uri, apiHeaders, payload);
18426
- }
18427
- updateDisposableEmails(paramsOrFirst) {
18428
- let params;
18429
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18430
- params = (paramsOrFirst || {});
18431
- }
18432
- else {
18433
- params = {
18434
- enabled: paramsOrFirst
18435
- };
18436
- }
18437
- const enabled = params.enabled;
18438
- if (typeof enabled === 'undefined') {
18439
- throw new AppwriteException('Missing required parameter: "enabled"');
18440
- }
18441
- const apiPath = '/project/auth/disposable-emails';
18442
- const payload = {};
18443
- if (typeof enabled !== 'undefined') {
18444
- payload['enabled'] = enabled;
18445
- }
18446
- const uri = new URL(this.client.config.endpoint + apiPath);
18447
- const apiHeaders = {
18448
- 'content-type': 'application/json',
18449
- };
18450
- return this.client.call('patch', uri, apiHeaders, payload);
18451
- }
18452
- updateFreeEmails(paramsOrFirst) {
18453
- let params;
18454
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
18455
- params = (paramsOrFirst || {});
18456
- }
18457
- else {
18458
- params = {
18459
- enabled: paramsOrFirst
18460
- };
18461
- }
18462
- const enabled = params.enabled;
18463
- if (typeof enabled === 'undefined') {
18464
- throw new AppwriteException('Missing required parameter: "enabled"');
18465
- }
18466
- const apiPath = '/project/auth/free-emails';
18467
- const payload = {};
18468
- if (typeof enabled !== 'undefined') {
18469
- payload['enabled'] = enabled;
18470
- }
18471
- const uri = new URL(this.client.config.endpoint + apiPath);
18472
- const apiHeaders = {
18473
- 'content-type': 'application/json',
18474
- };
18475
- return this.client.call('patch', uri, apiHeaders, payload);
18476
- }
18477
18402
  listKeys(paramsOrFirst, ...rest) {
18478
18403
  let params;
18479
18404
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -19458,11 +19383,13 @@ class Project {
19458
19383
  params = {
19459
19384
  clientId: paramsOrFirst,
19460
19385
  clientSecret: rest[0],
19461
- enabled: rest[1]
19386
+ prompt: rest[1],
19387
+ enabled: rest[2]
19462
19388
  };
19463
19389
  }
19464
19390
  const clientId = params.clientId;
19465
19391
  const clientSecret = params.clientSecret;
19392
+ const prompt = params.prompt;
19466
19393
  const enabled = params.enabled;
19467
19394
  const apiPath = '/project/oauth2/google';
19468
19395
  const payload = {};
@@ -19472,6 +19399,9 @@ class Project {
19472
19399
  if (typeof clientSecret !== 'undefined') {
19473
19400
  payload['clientSecret'] = clientSecret;
19474
19401
  }
19402
+ if (typeof prompt !== 'undefined') {
19403
+ payload['prompt'] = prompt;
19404
+ }
19475
19405
  if (typeof enabled !== 'undefined') {
19476
19406
  payload['enabled'] = enabled;
19477
19407
  }
@@ -20769,6 +20699,81 @@ class Project {
20769
20699
  const apiHeaders = {};
20770
20700
  return this.client.call('get', uri, apiHeaders, payload);
20771
20701
  }
20702
+ updateDenyCanonicalEmailPolicy(paramsOrFirst) {
20703
+ let params;
20704
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20705
+ params = (paramsOrFirst || {});
20706
+ }
20707
+ else {
20708
+ params = {
20709
+ enabled: paramsOrFirst
20710
+ };
20711
+ }
20712
+ const enabled = params.enabled;
20713
+ if (typeof enabled === 'undefined') {
20714
+ throw new AppwriteException('Missing required parameter: "enabled"');
20715
+ }
20716
+ const apiPath = '/project/policies/deny-canonical-email';
20717
+ const payload = {};
20718
+ if (typeof enabled !== 'undefined') {
20719
+ payload['enabled'] = enabled;
20720
+ }
20721
+ const uri = new URL(this.client.config.endpoint + apiPath);
20722
+ const apiHeaders = {
20723
+ 'content-type': 'application/json',
20724
+ };
20725
+ return this.client.call('patch', uri, apiHeaders, payload);
20726
+ }
20727
+ updateDenyDisposableEmailPolicy(paramsOrFirst) {
20728
+ let params;
20729
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20730
+ params = (paramsOrFirst || {});
20731
+ }
20732
+ else {
20733
+ params = {
20734
+ enabled: paramsOrFirst
20735
+ };
20736
+ }
20737
+ const enabled = params.enabled;
20738
+ if (typeof enabled === 'undefined') {
20739
+ throw new AppwriteException('Missing required parameter: "enabled"');
20740
+ }
20741
+ const apiPath = '/project/policies/deny-disposable-email';
20742
+ const payload = {};
20743
+ if (typeof enabled !== 'undefined') {
20744
+ payload['enabled'] = enabled;
20745
+ }
20746
+ const uri = new URL(this.client.config.endpoint + apiPath);
20747
+ const apiHeaders = {
20748
+ 'content-type': 'application/json',
20749
+ };
20750
+ return this.client.call('patch', uri, apiHeaders, payload);
20751
+ }
20752
+ updateDenyFreeEmailPolicy(paramsOrFirst) {
20753
+ let params;
20754
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
20755
+ params = (paramsOrFirst || {});
20756
+ }
20757
+ else {
20758
+ params = {
20759
+ enabled: paramsOrFirst
20760
+ };
20761
+ }
20762
+ const enabled = params.enabled;
20763
+ if (typeof enabled === 'undefined') {
20764
+ throw new AppwriteException('Missing required parameter: "enabled"');
20765
+ }
20766
+ const apiPath = '/project/policies/deny-free-email';
20767
+ const payload = {};
20768
+ if (typeof enabled !== 'undefined') {
20769
+ payload['enabled'] = enabled;
20770
+ }
20771
+ const uri = new URL(this.client.config.endpoint + apiPath);
20772
+ const apiHeaders = {
20773
+ 'content-type': 'application/json',
20774
+ };
20775
+ return this.client.call('patch', uri, apiHeaders, payload);
20776
+ }
20772
20777
  updateMembershipPrivacyPolicy(paramsOrFirst, ...rest) {
20773
20778
  let params;
20774
20779
  if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
@@ -33740,6 +33745,13 @@ var AuthMethod;
33740
33745
  AuthMethod["Phone"] = "phone";
33741
33746
  })(AuthMethod || (AuthMethod = {}));
33742
33747
 
33748
+ var Prompt;
33749
+ (function (Prompt) {
33750
+ Prompt["None"] = "none";
33751
+ Prompt["Consent"] = "consent";
33752
+ Prompt["SelectAccount"] = "select_account";
33753
+ })(Prompt || (Prompt = {}));
33754
+
33743
33755
  var ProjectPolicy;
33744
33756
  (function (ProjectPolicy) {
33745
33757
  ProjectPolicy["Passworddictionary"] = "password-dictionary";
@@ -34247,6 +34259,13 @@ var ExecutionStatus;
34247
34259
  ExecutionStatus["Scheduled"] = "scheduled";
34248
34260
  })(ExecutionStatus || (ExecutionStatus = {}));
34249
34261
 
34262
+ var OAuth2GooglePrompt;
34263
+ (function (OAuth2GooglePrompt) {
34264
+ OAuth2GooglePrompt["None"] = "none";
34265
+ OAuth2GooglePrompt["Consent"] = "consent";
34266
+ OAuth2GooglePrompt["SelectAccount"] = "select_account";
34267
+ })(OAuth2GooglePrompt || (OAuth2GooglePrompt = {}));
34268
+
34250
34269
  var PlatformType;
34251
34270
  (function (PlatformType) {
34252
34271
  PlatformType["Windows"] = "windows";
@@ -34318,5 +34337,5 @@ var DomainPurchaseStatus;
34318
34337
  DomainPurchaseStatus["Cancelled"] = "cancelled";
34319
34338
  })(DomainPurchaseStatus || (DomainPurchaseStatus = {}));
34320
34339
 
34321
- export { Account, Activities, Adapter, Addon, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Model, NHostMigrationResource, Name, OAuthProvider, OnDuplicate, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectPolicy, ProjectUsageRange, Projects, ProtocolId, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, Scopes, Secure, ServiceId, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Webhooks };
34340
+ export { Account, Activities, Adapter, Addon, AppwriteException, AppwriteMigrationResource, Assistant, AttributeStatus, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, BackupServices, Backups, BillingPlanGroup, Browser, BrowserPermission, BuildRuntime, Channel, Client, ColumnStatus, Compression, Condition, Console, ConsoleResourceType, CreditCard, DatabaseType, Databases, DatabasesIndexType, DeploymentDownloadType, DeploymentStatus, DetectionFrameworkType, DetectionRuntimeType, DocumentsDB, DocumentsDBIndexType, DomainPurchaseStatus, DomainTransferStatusEnum, Domains, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, ExecutionStatus, ExecutionTrigger, FilterType, FirebaseMigrationResource, Flag, Framework, Frameworks, Functions, Graphql, Health, HealthAntivirusStatus, HealthCheckStatus, ID, ImageFormat, ImageGravity, IndexStatus, Locale, Manager, MessagePriority, MessageStatus, Messaging, MessagingProviderType, Migrations, Model, NHostMigrationResource, Name, OAuth2GooglePrompt, OAuthProvider, OnDuplicate, Operator, OrderBy, Organizations, PasswordHash, Permission, Platform, PlatformType, Project, ProjectPolicy, ProjectUsageRange, Projects, Prompt, ProtocolId, Proxy, ProxyResourceType, ProxyRuleDeploymentResourceType, ProxyRuleStatus, Query, QuerySuggestionResource, Realtime, Region, RegistrationType, RelationMutate, RelationshipType, ResourceType, Role, Runtime, Runtimes, Scopes, Secure, ServiceId, Sites, SmtpEncryption, Status, StatusCode, Storage, SupabaseMigrationResource, TablesDB, TablesDBIndexType, Teams, TemplateReferenceType, Theme, Timezone, Tokens, UsageRange, UseCases, Users, VCSDetectionType, VCSReferenceType, Vcs, VectorsDB, VectorsDBIndexType, Webhooks };
34322
34341
  //# sourceMappingURL=sdk.js.map