@appwrite.io/console 4.0.0 → 6.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 (53) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +752 -383
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +752 -384
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +752 -383
  8. package/docs/examples/domains/update-purchase.md +16 -0
  9. package/docs/examples/domains/update-transfer-in.md +16 -0
  10. package/docs/examples/functions/create.md +3 -1
  11. package/docs/examples/functions/update.md +3 -1
  12. package/docs/examples/sites/create.md +4 -1
  13. package/docs/examples/sites/update.md +4 -1
  14. package/docs/examples/{projects/update-webhook.md → webhooks/create.md} +5 -6
  15. package/docs/examples/{projects/get-webhook.md → webhooks/delete.md} +3 -4
  16. package/docs/examples/{projects/delete-webhook.md → webhooks/get.md} +3 -4
  17. package/docs/examples/{projects/list-webhooks.md → webhooks/list.md} +4 -4
  18. package/docs/examples/{projects/update-webhook-signature.md → webhooks/update-signature.md} +3 -4
  19. package/docs/examples/{projects/create-webhook.md → webhooks/update.md} +6 -6
  20. package/package.json +1 -1
  21. package/src/client.ts +5 -1
  22. package/src/enums/appwrite-migration-resource.ts +4 -0
  23. package/src/enums/build-runtime.ts +86 -0
  24. package/src/enums/domain-purchase-status.ts +6 -0
  25. package/src/enums/{domain-transfer-status-status.ts → domain-transfer-status-enum.ts} +1 -1
  26. package/src/enums/runtime.ts +86 -0
  27. package/src/enums/runtimes.ts +86 -0
  28. package/src/enums/scopes.ts +2 -0
  29. package/src/index.ts +3 -1
  30. package/src/models.ts +140 -13
  31. package/src/services/account.ts +2 -2
  32. package/src/services/domains.ts +136 -10
  33. package/src/services/functions.ts +52 -24
  34. package/src/services/organizations.ts +2 -2
  35. package/src/services/projects.ts +0 -473
  36. package/src/services/sites.ts +83 -41
  37. package/src/services/webhooks.ts +451 -0
  38. package/types/enums/appwrite-migration-resource.d.ts +4 -0
  39. package/types/enums/build-runtime.d.ts +87 -1
  40. package/types/enums/domain-purchase-status.d.ts +6 -0
  41. package/types/enums/{domain-transfer-status-status.d.ts → domain-transfer-status-enum.d.ts} +1 -1
  42. package/types/enums/runtime.d.ts +87 -1
  43. package/types/enums/runtimes.d.ts +87 -1
  44. package/types/enums/scopes.d.ts +2 -0
  45. package/types/index.d.ts +3 -1
  46. package/types/models.d.ts +139 -13
  47. package/types/services/account.d.ts +2 -2
  48. package/types/services/domains.d.ts +52 -8
  49. package/types/services/functions.d.ts +20 -8
  50. package/types/services/organizations.d.ts +2 -2
  51. package/types/services/projects.d.ts +0 -171
  52. package/types/services/sites.d.ts +26 -8
  53. package/types/services/webhooks.d.ts +165 -0
@@ -97,6 +97,7 @@ export class Sites {
97
97
  * @param {number} params.timeout - Maximum request time in seconds.
98
98
  * @param {string} params.installCommand - Install Command.
99
99
  * @param {string} params.buildCommand - Build Command.
100
+ * @param {string} params.startCommand - Custom start command. Leave empty to use default.
100
101
  * @param {string} params.outputDirectory - Output Directory for site.
101
102
  * @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
102
103
  * @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
@@ -105,11 +106,13 @@ export class Sites {
105
106
  * @param {string} params.providerBranch - Production branch for the repo linked to the site.
106
107
  * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
107
108
  * @param {string} params.providerRootDirectory - Path to site code in the linked repo.
108
- * @param {string} params.specification - Framework specification for the site and builds.
109
+ * @param {string} params.buildSpecification - Build specification for the site deployments.
110
+ * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
111
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
109
112
  * @throws {AppwriteException}
110
113
  * @returns {Promise<Models.Site>}
111
114
  */
112
- create(params: { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string }): Promise<Models.Site>;
115
+ create(params: { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number }): Promise<Models.Site>;
113
116
  /**
114
117
  * Create a new site.
115
118
  *
@@ -122,6 +125,7 @@ export class Sites {
122
125
  * @param {number} timeout - Maximum request time in seconds.
123
126
  * @param {string} installCommand - Install Command.
124
127
  * @param {string} buildCommand - Build Command.
128
+ * @param {string} startCommand - Custom start command. Leave empty to use default.
125
129
  * @param {string} outputDirectory - Output Directory for site.
126
130
  * @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
127
131
  * @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
@@ -130,20 +134,22 @@ export class Sites {
130
134
  * @param {string} providerBranch - Production branch for the repo linked to the site.
131
135
  * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
132
136
  * @param {string} providerRootDirectory - Path to site code in the linked repo.
133
- * @param {string} specification - Framework specification for the site and builds.
137
+ * @param {string} buildSpecification - Build specification for the site deployments.
138
+ * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
139
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
134
140
  * @throws {AppwriteException}
135
141
  * @returns {Promise<Models.Site>}
136
142
  * @deprecated Use the object parameter style method for a better developer experience.
137
143
  */
138
- create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Site>;
144
+ create(siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
139
145
  create(
140
- paramsOrFirst: { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string } | string,
141
- ...rest: [(string)?, (Framework)?, (BuildRuntime)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?]
146
+ paramsOrFirst: { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number } | string,
147
+ ...rest: [(string)?, (Framework)?, (BuildRuntime)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (string)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (number)?]
142
148
  ): Promise<Models.Site> {
143
- let params: { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };
149
+ let params: { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number };
144
150
 
145
151
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
146
- params = (paramsOrFirst || {}) as { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };
152
+ params = (paramsOrFirst || {}) as { siteId: string, name: string, framework: Framework, buildRuntime: BuildRuntime, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, adapter?: Adapter, installationId?: string, fallbackFile?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number };
147
153
  } else {
148
154
  params = {
149
155
  siteId: paramsOrFirst as string,
@@ -155,15 +161,18 @@ export class Sites {
155
161
  timeout: rest[5] as number,
156
162
  installCommand: rest[6] as string,
157
163
  buildCommand: rest[7] as string,
158
- outputDirectory: rest[8] as string,
159
- adapter: rest[9] as Adapter,
160
- installationId: rest[10] as string,
161
- fallbackFile: rest[11] as string,
162
- providerRepositoryId: rest[12] as string,
163
- providerBranch: rest[13] as string,
164
- providerSilentMode: rest[14] as boolean,
165
- providerRootDirectory: rest[15] as string,
166
- specification: rest[16] as string
164
+ startCommand: rest[8] as string,
165
+ outputDirectory: rest[9] as string,
166
+ adapter: rest[10] as Adapter,
167
+ installationId: rest[11] as string,
168
+ fallbackFile: rest[12] as string,
169
+ providerRepositoryId: rest[13] as string,
170
+ providerBranch: rest[14] as string,
171
+ providerSilentMode: rest[15] as boolean,
172
+ providerRootDirectory: rest[16] as string,
173
+ buildSpecification: rest[17] as string,
174
+ runtimeSpecification: rest[18] as string,
175
+ deploymentRetention: rest[19] as number
167
176
  };
168
177
  }
169
178
 
@@ -176,6 +185,7 @@ export class Sites {
176
185
  const timeout = params.timeout;
177
186
  const installCommand = params.installCommand;
178
187
  const buildCommand = params.buildCommand;
188
+ const startCommand = params.startCommand;
179
189
  const outputDirectory = params.outputDirectory;
180
190
  const adapter = params.adapter;
181
191
  const installationId = params.installationId;
@@ -184,7 +194,9 @@ export class Sites {
184
194
  const providerBranch = params.providerBranch;
185
195
  const providerSilentMode = params.providerSilentMode;
186
196
  const providerRootDirectory = params.providerRootDirectory;
187
- const specification = params.specification;
197
+ const buildSpecification = params.buildSpecification;
198
+ const runtimeSpecification = params.runtimeSpecification;
199
+ const deploymentRetention = params.deploymentRetention;
188
200
 
189
201
  if (typeof siteId === 'undefined') {
190
202
  throw new AppwriteException('Missing required parameter: "siteId"');
@@ -225,6 +237,9 @@ export class Sites {
225
237
  if (typeof buildCommand !== 'undefined') {
226
238
  payload['buildCommand'] = buildCommand;
227
239
  }
240
+ if (typeof startCommand !== 'undefined') {
241
+ payload['startCommand'] = startCommand;
242
+ }
228
243
  if (typeof outputDirectory !== 'undefined') {
229
244
  payload['outputDirectory'] = outputDirectory;
230
245
  }
@@ -252,8 +267,14 @@ export class Sites {
252
267
  if (typeof providerRootDirectory !== 'undefined') {
253
268
  payload['providerRootDirectory'] = providerRootDirectory;
254
269
  }
255
- if (typeof specification !== 'undefined') {
256
- payload['specification'] = specification;
270
+ if (typeof buildSpecification !== 'undefined') {
271
+ payload['buildSpecification'] = buildSpecification;
272
+ }
273
+ if (typeof runtimeSpecification !== 'undefined') {
274
+ payload['runtimeSpecification'] = runtimeSpecification;
275
+ }
276
+ if (typeof deploymentRetention !== 'undefined') {
277
+ payload['deploymentRetention'] = deploymentRetention;
257
278
  }
258
279
  const uri = new URL(this.client.config.endpoint + apiPath);
259
280
 
@@ -552,6 +573,7 @@ export class Sites {
552
573
  * @param {number} params.timeout - Maximum request time in seconds.
553
574
  * @param {string} params.installCommand - Install Command.
554
575
  * @param {string} params.buildCommand - Build Command.
576
+ * @param {string} params.startCommand - Custom start command. Leave empty to use default.
555
577
  * @param {string} params.outputDirectory - Output Directory for site.
556
578
  * @param {BuildRuntime} params.buildRuntime - Runtime to use during build step.
557
579
  * @param {Adapter} params.adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
@@ -561,11 +583,13 @@ export class Sites {
561
583
  * @param {string} params.providerBranch - Production branch for the repo linked to the site.
562
584
  * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
563
585
  * @param {string} params.providerRootDirectory - Path to site code in the linked repo.
564
- * @param {string} params.specification - Framework specification for the site and builds.
586
+ * @param {string} params.buildSpecification - Build specification for the site deployments.
587
+ * @param {string} params.runtimeSpecification - Runtime specification for the SSR executions.
588
+ * @param {number} params.deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
565
589
  * @throws {AppwriteException}
566
590
  * @returns {Promise<Models.Site>}
567
591
  */
568
- update(params: { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string }): Promise<Models.Site>;
592
+ update(params: { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number }): Promise<Models.Site>;
569
593
  /**
570
594
  * Update site by its unique ID.
571
595
  *
@@ -577,6 +601,7 @@ export class Sites {
577
601
  * @param {number} timeout - Maximum request time in seconds.
578
602
  * @param {string} installCommand - Install Command.
579
603
  * @param {string} buildCommand - Build Command.
604
+ * @param {string} startCommand - Custom start command. Leave empty to use default.
580
605
  * @param {string} outputDirectory - Output Directory for site.
581
606
  * @param {BuildRuntime} buildRuntime - Runtime to use during build step.
582
607
  * @param {Adapter} adapter - Framework adapter defining rendering strategy. Allowed values are: static, ssr
@@ -586,20 +611,22 @@ export class Sites {
586
611
  * @param {string} providerBranch - Production branch for the repo linked to the site.
587
612
  * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the site? In silent mode, comments will not be made on commits and pull requests.
588
613
  * @param {string} providerRootDirectory - Path to site code in the linked repo.
589
- * @param {string} specification - Framework specification for the site and builds.
614
+ * @param {string} buildSpecification - Build specification for the site deployments.
615
+ * @param {string} runtimeSpecification - Runtime specification for the SSR executions.
616
+ * @param {number} deploymentRetention - Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.
590
617
  * @throws {AppwriteException}
591
618
  * @returns {Promise<Models.Site>}
592
619
  * @deprecated Use the object parameter style method for a better developer experience.
593
620
  */
594
- update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Site>;
621
+ update(siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number): Promise<Models.Site>;
595
622
  update(
596
- paramsOrFirst: { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string } | string,
597
- ...rest: [(string)?, (Framework)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (BuildRuntime)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?]
623
+ paramsOrFirst: { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number } | string,
624
+ ...rest: [(string)?, (Framework)?, (boolean)?, (boolean)?, (number)?, (string)?, (string)?, (string)?, (string)?, (BuildRuntime)?, (Adapter)?, (string)?, (string)?, (string)?, (string)?, (boolean)?, (string)?, (string)?, (string)?, (number)?]
598
625
  ): Promise<Models.Site> {
599
- let params: { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };
626
+ let params: { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number };
600
627
 
601
628
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
602
- params = (paramsOrFirst || {}) as { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string };
629
+ params = (paramsOrFirst || {}) as { siteId: string, name: string, framework: Framework, enabled?: boolean, logging?: boolean, timeout?: number, installCommand?: string, buildCommand?: string, startCommand?: string, outputDirectory?: string, buildRuntime?: BuildRuntime, adapter?: Adapter, fallbackFile?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, buildSpecification?: string, runtimeSpecification?: string, deploymentRetention?: number };
603
630
  } else {
604
631
  params = {
605
632
  siteId: paramsOrFirst as string,
@@ -610,16 +637,19 @@ export class Sites {
610
637
  timeout: rest[4] as number,
611
638
  installCommand: rest[5] as string,
612
639
  buildCommand: rest[6] as string,
613
- outputDirectory: rest[7] as string,
614
- buildRuntime: rest[8] as BuildRuntime,
615
- adapter: rest[9] as Adapter,
616
- fallbackFile: rest[10] as string,
617
- installationId: rest[11] as string,
618
- providerRepositoryId: rest[12] as string,
619
- providerBranch: rest[13] as string,
620
- providerSilentMode: rest[14] as boolean,
621
- providerRootDirectory: rest[15] as string,
622
- specification: rest[16] as string
640
+ startCommand: rest[7] as string,
641
+ outputDirectory: rest[8] as string,
642
+ buildRuntime: rest[9] as BuildRuntime,
643
+ adapter: rest[10] as Adapter,
644
+ fallbackFile: rest[11] as string,
645
+ installationId: rest[12] as string,
646
+ providerRepositoryId: rest[13] as string,
647
+ providerBranch: rest[14] as string,
648
+ providerSilentMode: rest[15] as boolean,
649
+ providerRootDirectory: rest[16] as string,
650
+ buildSpecification: rest[17] as string,
651
+ runtimeSpecification: rest[18] as string,
652
+ deploymentRetention: rest[19] as number
623
653
  };
624
654
  }
625
655
 
@@ -631,6 +661,7 @@ export class Sites {
631
661
  const timeout = params.timeout;
632
662
  const installCommand = params.installCommand;
633
663
  const buildCommand = params.buildCommand;
664
+ const startCommand = params.startCommand;
634
665
  const outputDirectory = params.outputDirectory;
635
666
  const buildRuntime = params.buildRuntime;
636
667
  const adapter = params.adapter;
@@ -640,7 +671,9 @@ export class Sites {
640
671
  const providerBranch = params.providerBranch;
641
672
  const providerSilentMode = params.providerSilentMode;
642
673
  const providerRootDirectory = params.providerRootDirectory;
643
- const specification = params.specification;
674
+ const buildSpecification = params.buildSpecification;
675
+ const runtimeSpecification = params.runtimeSpecification;
676
+ const deploymentRetention = params.deploymentRetention;
644
677
 
645
678
  if (typeof siteId === 'undefined') {
646
679
  throw new AppwriteException('Missing required parameter: "siteId"');
@@ -675,6 +708,9 @@ export class Sites {
675
708
  if (typeof buildCommand !== 'undefined') {
676
709
  payload['buildCommand'] = buildCommand;
677
710
  }
711
+ if (typeof startCommand !== 'undefined') {
712
+ payload['startCommand'] = startCommand;
713
+ }
678
714
  if (typeof outputDirectory !== 'undefined') {
679
715
  payload['outputDirectory'] = outputDirectory;
680
716
  }
@@ -702,8 +738,14 @@ export class Sites {
702
738
  if (typeof providerRootDirectory !== 'undefined') {
703
739
  payload['providerRootDirectory'] = providerRootDirectory;
704
740
  }
705
- if (typeof specification !== 'undefined') {
706
- payload['specification'] = specification;
741
+ if (typeof buildSpecification !== 'undefined') {
742
+ payload['buildSpecification'] = buildSpecification;
743
+ }
744
+ if (typeof runtimeSpecification !== 'undefined') {
745
+ payload['runtimeSpecification'] = runtimeSpecification;
746
+ }
747
+ if (typeof deploymentRetention !== 'undefined') {
748
+ payload['deploymentRetention'] = deploymentRetention;
707
749
  }
708
750
  const uri = new URL(this.client.config.endpoint + apiPath);
709
751