@appwrite.io/console 3.1.0 → 23.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +345 -86
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +346 -87
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +345 -86
  8. package/docs/examples/databases/list-documents.md +2 -1
  9. package/docs/examples/domains/create-purchase.md +1 -1
  10. package/docs/examples/domains/create-transfer-in.md +18 -0
  11. package/docs/examples/domains/create-transfer-out.md +16 -0
  12. package/docs/examples/domains/get-transfer-status.md +15 -0
  13. package/docs/examples/health/get-console-pausing.md +16 -0
  14. package/docs/examples/migrations/create-appwrite-migration.md +2 -2
  15. package/docs/examples/migrations/create-firebase-migration.md +2 -2
  16. package/docs/examples/migrations/create-n-host-migration.md +2 -2
  17. package/docs/examples/migrations/create-supabase-migration.md +2 -2
  18. package/docs/examples/migrations/get-appwrite-report.md +2 -2
  19. package/docs/examples/migrations/get-firebase-report.md +2 -2
  20. package/docs/examples/migrations/get-n-host-report.md +2 -2
  21. package/docs/examples/migrations/get-supabase-report.md +2 -2
  22. package/docs/examples/projects/update-console-access.md +15 -0
  23. package/docs/examples/projects/update-status.md +16 -0
  24. package/docs/examples/sites/create-deployment.md +2 -2
  25. package/docs/examples/tablesdb/list-rows.md +2 -1
  26. package/package.json +1 -1
  27. package/src/channel.ts +19 -15
  28. package/src/client.ts +1 -1
  29. package/src/enums/appwrite-migration-resource.ts +21 -0
  30. package/src/enums/domain-transfer-status-status.ts +10 -0
  31. package/src/enums/firebase-migration-resource.ts +12 -0
  32. package/src/enums/{resources.ts → n-host-migration-resource.ts} +1 -1
  33. package/src/enums/status.ts +3 -0
  34. package/src/enums/supabase-migration-resource.ts +13 -0
  35. package/src/index.ts +6 -1
  36. package/src/models.ts +119 -2
  37. package/src/services/account.ts +2 -2
  38. package/src/services/databases.ts +100 -93
  39. package/src/services/domains.ts +216 -13
  40. package/src/services/health.ts +61 -0
  41. package/src/services/messaging.ts +2 -2
  42. package/src/services/migrations.ts +68 -65
  43. package/src/services/projects.ts +120 -0
  44. package/src/services/sites.ts +13 -16
  45. package/src/services/tables-db.ts +14 -7
  46. package/src/services/teams.ts +4 -4
  47. package/types/channel.d.ts +9 -9
  48. package/types/enums/appwrite-migration-resource.d.ts +21 -0
  49. package/types/enums/domain-transfer-status-status.d.ts +10 -0
  50. package/types/enums/firebase-migration-resource.d.ts +12 -0
  51. package/types/enums/{resources.d.ts → n-host-migration-resource.d.ts} +1 -1
  52. package/types/enums/status.d.ts +3 -0
  53. package/types/enums/supabase-migration-resource.d.ts +13 -0
  54. package/types/index.d.ts +6 -1
  55. package/types/models.d.ts +117 -2
  56. package/types/services/databases.d.ts +40 -37
  57. package/types/services/domains.d.ts +73 -4
  58. package/types/services/health.d.ts +24 -0
  59. package/types/services/messaging.d.ts +2 -2
  60. package/types/services/migrations.d.ts +36 -33
  61. package/types/services/projects.d.ts +46 -0
  62. package/types/services/sites.d.ts +4 -4
  63. package/types/services/tables-db.d.ts +4 -1
  64. package/types/services/teams.d.ts +4 -4
@@ -0,0 +1,16 @@
1
+ ```javascript
2
+ import { Client, Domains } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const domains = new Domains(client);
9
+
10
+ const result = await domains.createTransferOut({
11
+ domainId: '<DOMAIN_ID>',
12
+ organizationId: '<ORGANIZATION_ID>'
13
+ });
14
+
15
+ console.log(result);
16
+ ```
@@ -0,0 +1,15 @@
1
+ ```javascript
2
+ import { Client, Domains } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const domains = new Domains(client);
9
+
10
+ const result = await domains.getTransferStatus({
11
+ domainId: '<DOMAIN_ID>'
12
+ });
13
+
14
+ console.log(result);
15
+ ```
@@ -0,0 +1,16 @@
1
+ ```javascript
2
+ import { Client, Health } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const health = new Health(client);
9
+
10
+ const result = await health.getConsolePausing({
11
+ threshold: null, // optional
12
+ inactivityDays: null // optional
13
+ });
14
+
15
+ console.log(result);
16
+ ```
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, AppwriteMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.createAppwriteMigration({
11
- resources: [Resources.User],
11
+ resources: [AppwriteMigrationResource.User],
12
12
  endpoint: 'https://example.com',
13
13
  projectId: '<PROJECT_ID>',
14
14
  apiKey: '<API_KEY>'
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, FirebaseMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.createFirebaseMigration({
11
- resources: [Resources.User],
11
+ resources: [FirebaseMigrationResource.User],
12
12
  serviceAccount: '<SERVICE_ACCOUNT>'
13
13
  });
14
14
 
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, NHostMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.createNHostMigration({
11
- resources: [Resources.User],
11
+ resources: [NHostMigrationResource.User],
12
12
  subdomain: '<SUBDOMAIN>',
13
13
  region: '<REGION>',
14
14
  adminSecret: '<ADMIN_SECRET>',
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, SupabaseMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.createSupabaseMigration({
11
- resources: [Resources.User],
11
+ resources: [SupabaseMigrationResource.User],
12
12
  endpoint: 'https://example.com',
13
13
  apiKey: '<API_KEY>',
14
14
  databaseHost: '<DATABASE_HOST>',
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, AppwriteMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.getAppwriteReport({
11
- resources: [Resources.User],
11
+ resources: [AppwriteMigrationResource.User],
12
12
  endpoint: 'https://example.com',
13
13
  projectID: '<PROJECT_ID>',
14
14
  key: '<KEY>'
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, FirebaseMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.getFirebaseReport({
11
- resources: [Resources.User],
11
+ resources: [FirebaseMigrationResource.User],
12
12
  serviceAccount: '<SERVICE_ACCOUNT>'
13
13
  });
14
14
 
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, NHostMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.getNHostReport({
11
- resources: [Resources.User],
11
+ resources: [NHostMigrationResource.User],
12
12
  subdomain: '<SUBDOMAIN>',
13
13
  region: '<REGION>',
14
14
  adminSecret: '<ADMIN_SECRET>',
@@ -1,5 +1,5 @@
1
1
  ```javascript
2
- import { Client, Migrations, Resources } from "@appwrite.io/console";
2
+ import { Client, Migrations, SupabaseMigrationResource } from "@appwrite.io/console";
3
3
 
4
4
  const client = new Client()
5
5
  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
8
8
  const migrations = new Migrations(client);
9
9
 
10
10
  const result = await migrations.getSupabaseReport({
11
- resources: [Resources.User],
11
+ resources: [SupabaseMigrationResource.User],
12
12
  endpoint: 'https://example.com',
13
13
  apiKey: '<API_KEY>',
14
14
  databaseHost: '<DATABASE_HOST>',
@@ -0,0 +1,15 @@
1
+ ```javascript
2
+ import { Client, Projects } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const projects = new Projects(client);
9
+
10
+ const result = await projects.updateConsoleAccess({
11
+ projectId: '<PROJECT_ID>'
12
+ });
13
+
14
+ console.log(result);
15
+ ```
@@ -0,0 +1,16 @@
1
+ ```javascript
2
+ import { Client, Projects, Status } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const projects = new Projects(client);
9
+
10
+ const result = await projects.updateStatus({
11
+ projectId: '<PROJECT_ID>',
12
+ status: Status.Active
13
+ });
14
+
15
+ console.log(result);
16
+ ```
@@ -10,10 +10,10 @@ const sites = new Sites(client);
10
10
  const result = await sites.createDeployment({
11
11
  siteId: '<SITE_ID>',
12
12
  code: document.getElementById('uploader').files[0],
13
- activate: false,
14
13
  installCommand: '<INSTALL_COMMAND>', // optional
15
14
  buildCommand: '<BUILD_COMMAND>', // optional
16
- outputDirectory: '<OUTPUT_DIRECTORY>' // optional
15
+ outputDirectory: '<OUTPUT_DIRECTORY>', // optional
16
+ activate: false // optional
17
17
  });
18
18
 
19
19
  console.log(result);
@@ -12,7 +12,8 @@ const result = await tablesDB.listRows({
12
12
  tableId: '<TABLE_ID>',
13
13
  queries: [], // optional
14
14
  transactionId: '<TRANSACTION_ID>', // optional
15
- total: false // optional
15
+ total: false, // optional
16
+ ttl: 0 // optional
16
17
  });
17
18
 
18
19
  console.log(result);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "3.1.0",
5
+ "version": "23.0.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/src/channel.ts CHANGED
@@ -16,8 +16,14 @@ interface Resolved { _res: any }
16
16
  type Actionable = Document | Row | File | Team | Membership;
17
17
 
18
18
  function normalize(id: string): string {
19
- const trimmed = id.trim();
20
- return trimmed === "" ? "*" : trimmed;
19
+ if (id === undefined || id === null) {
20
+ throw new Error("Channel ID is required");
21
+ }
22
+ const trimmed = String(id).trim();
23
+ if (trimmed === "") {
24
+ throw new Error("Channel ID is required");
25
+ }
26
+ return trimmed;
21
27
  }
22
28
 
23
29
  export class Channel<T> {
@@ -44,9 +50,8 @@ export class Channel<T> {
44
50
 
45
51
  // --- DATABASE ROUTE ---
46
52
  // Only available on Channel<Database>
47
- collection(this: Channel<Database>, id?: string): Channel<Collection> {
48
- // Default: wildcard collection ID
49
- return this.next<Collection>("collections", id ?? "*");
53
+ collection(this: Channel<Database>, id: string): Channel<Collection> {
54
+ return this.next<Collection>("collections", id);
50
55
  }
51
56
 
52
57
  // Only available on Channel<Collection>
@@ -56,9 +61,8 @@ export class Channel<T> {
56
61
  }
57
62
 
58
63
  // --- TABLESDB ROUTE ---
59
- table(this: Channel<TablesDB>, id?: string): Channel<Table> {
60
- // Default: wildcard table ID
61
- return this.next<Table>("tables", id ?? "*");
64
+ table(this: Channel<TablesDB>, id: string): Channel<Table> {
65
+ return this.next<Table>("tables", id);
62
66
  }
63
67
 
64
68
  row(this: Channel<Table>, id?: string): Channel<Row> {
@@ -91,31 +95,31 @@ export class Channel<T> {
91
95
  }
92
96
 
93
97
  // --- ROOT FACTORIES ---
94
- static database(id: string = "*") {
98
+ static database(id: string) {
95
99
  return new Channel<Database>(["databases", normalize(id)]);
96
100
  }
97
101
 
98
- static execution(id: string = "*") {
102
+ static execution(id: string) {
99
103
  return new Channel<Execution>(["executions", normalize(id)]);
100
104
  }
101
105
 
102
- static tablesdb(id: string = "*") {
106
+ static tablesdb(id: string) {
103
107
  return new Channel<TablesDB>(["tablesdb", normalize(id)]);
104
108
  }
105
109
 
106
- static bucket(id: string = "*") {
110
+ static bucket(id: string) {
107
111
  return new Channel<Bucket>(["buckets", normalize(id)]);
108
112
  }
109
113
 
110
- static function(id: string = "*") {
114
+ static function(id: string) {
111
115
  return new Channel<Func>(["functions", normalize(id)]);
112
116
  }
113
117
 
114
- static team(id: string = "*") {
118
+ static team(id: string) {
115
119
  return new Channel<Team>(["teams", normalize(id)]);
116
120
  }
117
121
 
118
- static membership(id: string = "*") {
122
+ static membership(id: string) {
119
123
  return new Channel<Membership>(["memberships", normalize(id)]);
120
124
  }
121
125
 
package/src/client.ts CHANGED
@@ -400,7 +400,7 @@ class Client {
400
400
  'x-sdk-name': 'Console',
401
401
  'x-sdk-platform': 'console',
402
402
  'x-sdk-language': 'web',
403
- 'x-sdk-version': '3.1.0',
403
+ 'x-sdk-version': '23.0.0',
404
404
  'X-Appwrite-Response-Format': '1.8.0',
405
405
  };
406
406
 
@@ -0,0 +1,21 @@
1
+ export enum AppwriteMigrationResource {
2
+ User = 'user',
3
+ Team = 'team',
4
+ Membership = 'membership',
5
+ Database = 'database',
6
+ Table = 'table',
7
+ Column = 'column',
8
+ Index = 'index',
9
+ Row = 'row',
10
+ Document = 'document',
11
+ Attribute = 'attribute',
12
+ Collection = 'collection',
13
+ Bucket = 'bucket',
14
+ File = 'file',
15
+ Function = 'function',
16
+ Deployment = 'deployment',
17
+ Environmentvariable = 'environment-variable',
18
+ Site = 'site',
19
+ Sitedeployment = 'site-deployment',
20
+ Sitevariable = 'site-variable',
21
+ }
@@ -0,0 +1,10 @@
1
+ export enum DomainTransferStatusStatus {
2
+ Transferrable = 'transferrable',
3
+ NotTransferrable = 'not_transferrable',
4
+ PendingOwner = 'pending_owner',
5
+ PendingAdmin = 'pending_admin',
6
+ PendingRegistry = 'pending_registry',
7
+ Completed = 'completed',
8
+ Cancelled = 'cancelled',
9
+ ServiceUnavailable = 'service_unavailable',
10
+ }
@@ -0,0 +1,12 @@
1
+ export enum FirebaseMigrationResource {
2
+ User = 'user',
3
+ Database = 'database',
4
+ Table = 'table',
5
+ Column = 'column',
6
+ Row = 'row',
7
+ Document = 'document',
8
+ Attribute = 'attribute',
9
+ Collection = 'collection',
10
+ Bucket = 'bucket',
11
+ File = 'file',
12
+ }
@@ -1,4 +1,4 @@
1
- export enum Resources {
1
+ export enum NHostMigrationResource {
2
2
  User = 'user',
3
3
  Database = 'database',
4
4
  Table = 'table',
@@ -0,0 +1,3 @@
1
+ export enum Status {
2
+ Active = 'active',
3
+ }
@@ -0,0 +1,13 @@
1
+ export enum SupabaseMigrationResource {
2
+ User = 'user',
3
+ Database = 'database',
4
+ Table = 'table',
5
+ Column = 'column',
6
+ Index = 'index',
7
+ Row = 'row',
8
+ Document = 'document',
9
+ Attribute = 'attribute',
10
+ Collection = 'collection',
11
+ Bucket = 'bucket',
12
+ File = 'file',
13
+ }
package/src/index.ts CHANGED
@@ -71,7 +71,10 @@ export { ExecutionMethod } from './enums/execution-method';
71
71
  export { Name } from './enums/name';
72
72
  export { MessagePriority } from './enums/message-priority';
73
73
  export { SmtpEncryption } from './enums/smtp-encryption';
74
- export { Resources } from './enums/resources';
74
+ export { AppwriteMigrationResource } from './enums/appwrite-migration-resource';
75
+ export { FirebaseMigrationResource } from './enums/firebase-migration-resource';
76
+ export { NHostMigrationResource } from './enums/n-host-migration-resource';
77
+ export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
75
78
  export { ProjectUsageRange } from './enums/project-usage-range';
76
79
  export { Region } from './enums/region';
77
80
  export { Api } from './enums/api';
@@ -80,6 +83,7 @@ export { PlatformType } from './enums/platform-type';
80
83
  export { ResourceType } from './enums/resource-type';
81
84
  export { ApiService } from './enums/api-service';
82
85
  export { SMTPSecure } from './enums/smtp-secure';
86
+ export { Status } from './enums/status';
83
87
  export { EmailTemplateType } from './enums/email-template-type';
84
88
  export { EmailTemplateLocale } from './enums/email-template-locale';
85
89
  export { SmsTemplateType } from './enums/sms-template-type';
@@ -108,3 +112,4 @@ export { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-r
108
112
  export { ProxyRuleStatus } from './enums/proxy-rule-status';
109
113
  export { MessageStatus } from './enums/message-status';
110
114
  export { BillingPlanGroup } from './enums/billing-plan-group';
115
+ export { DomainTransferStatusStatus } from './enums/domain-transfer-status-status';
package/src/models.ts CHANGED
@@ -12,6 +12,7 @@ import { ProxyRuleDeploymentResourceType } from "./enums/proxy-rule-deployment-r
12
12
  import { ProxyRuleStatus } from "./enums/proxy-rule-status"
13
13
  import { MessageStatus } from "./enums/message-status"
14
14
  import { BillingPlanGroup } from "./enums/billing-plan-group"
15
+ import { DomainTransferStatusStatus } from "./enums/domain-transfer-status-status"
15
16
 
16
17
  /**
17
18
  * Appwrite Models
@@ -2627,7 +2628,7 @@ export namespace Models {
2627
2628
  */
2628
2629
  $id: string;
2629
2630
  /**
2630
- * Row automatically incrementing ID.
2631
+ * Row sequence ID.
2631
2632
  */
2632
2633
  $sequence: number;
2633
2634
  /**
@@ -2666,7 +2667,7 @@ export namespace Models {
2666
2667
  */
2667
2668
  $id: string;
2668
2669
  /**
2669
- * Document automatically incrementing ID.
2670
+ * Document sequence ID.
2670
2671
  */
2671
2672
  $sequence: number;
2672
2673
  /**
@@ -4015,6 +4016,14 @@ export namespace Models {
4015
4016
  * VCS (Version Control System) repository's default branch name.
4016
4017
  */
4017
4018
  defaultBranch: string;
4019
+ /**
4020
+ * VCS (Version Control System) installation ID.
4021
+ */
4022
+ providerInstallationId: string;
4023
+ /**
4024
+ * Is VCS (Version Control System) repository authorized for the installation?
4025
+ */
4026
+ authorized: boolean;
4018
4027
  /**
4019
4028
  * Last commit date in ISO 8601 format.
4020
4029
  */
@@ -4053,6 +4062,14 @@ export namespace Models {
4053
4062
  * VCS (Version Control System) repository's default branch name.
4054
4063
  */
4055
4064
  defaultBranch: string;
4065
+ /**
4066
+ * VCS (Version Control System) installation ID.
4067
+ */
4068
+ providerInstallationId: string;
4069
+ /**
4070
+ * Is VCS (Version Control System) repository authorized for the installation?
4071
+ */
4072
+ authorized: boolean;
4056
4073
  /**
4057
4074
  * Last commit date in ISO 8601 format.
4058
4075
  */
@@ -4095,6 +4112,14 @@ export namespace Models {
4095
4112
  * VCS (Version Control System) repository's default branch name.
4096
4113
  */
4097
4114
  defaultBranch: string;
4115
+ /**
4116
+ * VCS (Version Control System) installation ID.
4117
+ */
4118
+ providerInstallationId: string;
4119
+ /**
4120
+ * Is VCS (Version Control System) repository authorized for the installation?
4121
+ */
4122
+ authorized: boolean;
4098
4123
  /**
4099
4124
  * Last commit date in ISO 8601 format.
4100
4125
  */
@@ -4753,6 +4778,10 @@ export namespace Models {
4753
4778
  * Project blocks information
4754
4779
  */
4755
4780
  blocks: Block[];
4781
+ /**
4782
+ * Last time the project was accessed via console. Used with plan's projectInactivityDays to determine if project is paused.
4783
+ */
4784
+ consoleAccessedAt: string;
4756
4785
  }
4757
4786
 
4758
4787
  /**
@@ -6401,6 +6430,50 @@ export namespace Models {
6401
6430
  * Comma-separated list of nameservers.
6402
6431
  */
6403
6432
  _APP_DOMAINS_NAMESERVERS: string;
6433
+ /**
6434
+ * Database adapter in use.
6435
+ */
6436
+ _APP_DB_ADAPTER: string;
6437
+ /**
6438
+ * Whether the database adapter supports relationships.
6439
+ */
6440
+ supportForRelationships: boolean;
6441
+ /**
6442
+ * Whether the database adapter supports operators.
6443
+ */
6444
+ supportForOperators: boolean;
6445
+ /**
6446
+ * Whether the database adapter supports spatial attributes.
6447
+ */
6448
+ supportForSpatials: boolean;
6449
+ /**
6450
+ * Whether the database adapter supports spatial indexes on nullable columns.
6451
+ */
6452
+ supportForSpatialIndexNull: boolean;
6453
+ /**
6454
+ * Whether the database adapter supports fulltext wildcard search.
6455
+ */
6456
+ supportForFulltextWildcard: boolean;
6457
+ /**
6458
+ * Whether the database adapter supports multiple fulltext indexes per collection.
6459
+ */
6460
+ supportForMultipleFulltextIndexes: boolean;
6461
+ /**
6462
+ * Whether the database adapter supports resizing attributes.
6463
+ */
6464
+ supportForAttributeResizing: boolean;
6465
+ /**
6466
+ * Whether the database adapter supports fixed schemas with row width limits.
6467
+ */
6468
+ supportForSchemas: boolean;
6469
+ /**
6470
+ * Maximum index length supported by the database adapter.
6471
+ */
6472
+ maxIndexLength: number;
6473
+ /**
6474
+ * Whether the database adapter uses integer sequence IDs.
6475
+ */
6476
+ supportForIntegerIds: boolean;
6404
6477
  }
6405
6478
 
6406
6479
  /**
@@ -6813,6 +6886,10 @@ export namespace Models {
6813
6886
  * Number of functions to be migrated.
6814
6887
  */
6815
6888
  function: number;
6889
+ /**
6890
+ * Number of sites to be migrated.
6891
+ */
6892
+ site: number;
6816
6893
  /**
6817
6894
  * Size of files to be migrated in mb.
6818
6895
  */
@@ -7355,6 +7432,10 @@ export namespace Models {
7355
7432
  * Log days
7356
7433
  */
7357
7434
  logs: number;
7435
+ /**
7436
+ * Number of days of console inactivity before a project is paused. 0 means pausing is disabled.
7437
+ */
7438
+ projectInactivityDays: number;
7358
7439
  /**
7359
7440
  * Alert threshold percentage
7360
7441
  */
@@ -8599,6 +8680,10 @@ export namespace Models {
8599
8680
  * Dns records
8600
8681
  */
8601
8682
  dnsRecords: DnsRecord[];
8683
+ /**
8684
+ * Domain transfer status (e.g., "pending", "completed", "failed").
8685
+ */
8686
+ transferStatus: string;
8602
8687
  }
8603
8688
 
8604
8689
  /**
@@ -8855,6 +8940,10 @@ export namespace Models {
8855
8940
  * Price period in years.
8856
8941
  */
8857
8942
  periodYears: number;
8943
+ /**
8944
+ * Whether the domain is a premium domain.
8945
+ */
8946
+ premium: boolean;
8858
8947
  }
8859
8948
 
8860
8949
  /**
@@ -8879,6 +8968,34 @@ export namespace Models {
8879
8968
  available: boolean;
8880
8969
  }
8881
8970
 
8971
+ /**
8972
+ * domainTransferOut
8973
+ */
8974
+ export type DomainTransferOut = {
8975
+ /**
8976
+ * Domain transfer authorization code.
8977
+ */
8978
+ authCode: string;
8979
+ }
8980
+
8981
+ /**
8982
+ * domainTransferStatus
8983
+ */
8984
+ export type DomainTransferStatus = {
8985
+ /**
8986
+ * Transfer status.
8987
+ */
8988
+ status: DomainTransferStatusStatus;
8989
+ /**
8990
+ * Additional transfer status information.
8991
+ */
8992
+ reason: string;
8993
+ /**
8994
+ * Transfer status timestamp in ISO 8601 format.
8995
+ */
8996
+ timestamp: string;
8997
+ }
8998
+
8882
8999
  /**
8883
9000
  * Activity event list
8884
9001
  */