appwrite-cli 14.0.1 → 15.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/cli.cjs CHANGED
@@ -85459,7 +85459,7 @@ var package_default = {
85459
85459
  type: "module",
85460
85460
  homepage: "https://appwrite.io/support",
85461
85461
  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",
85462
- version: "14.0.1",
85462
+ version: "15.0.0",
85463
85463
  license: "BSD-3-Clause",
85464
85464
  main: "dist/index.cjs",
85465
85465
  module: "dist/index.js",
@@ -85503,7 +85503,7 @@ var package_default = {
85503
85503
  "windows-arm64": "esbuild cli.ts --bundle --loader:.hbs=text --platform=node --target=node18 --format=esm --external:fsevents --outfile=dist/bundle-win-arm64.mjs && pkg dist/bundle-win-arm64.mjs -t node18-win-arm64 -o build/appwrite-cli-win-arm64.exe"
85504
85504
  },
85505
85505
  dependencies: {
85506
- "@appwrite.io/console": "^4.0.0",
85506
+ "@appwrite.io/console": "^5.0.0",
85507
85507
  chalk: "4.1.2",
85508
85508
  chokidar: "^3.6.0",
85509
85509
  "cli-progress": "^3.12.0",
@@ -99534,7 +99534,10 @@ var SiteSchema = external_exports.object({
99534
99534
  buildCommand: external_exports.string().optional(),
99535
99535
  outputDirectory: external_exports.string().optional(),
99536
99536
  fallbackFile: external_exports.string().optional(),
99537
- specification: external_exports.string().optional(),
99537
+ buildSpecification: external_exports.string().optional(),
99538
+ runtimeSpecification: external_exports.string().optional(),
99539
+ deploymentRetention: external_exports.number().optional(),
99540
+ startCommand: external_exports.string().optional(),
99538
99541
  vars: external_exports.record(external_exports.string(), external_exports.string()).optional(),
99539
99542
  ignore: external_exports.string().optional()
99540
99543
  }).strict();
@@ -99546,7 +99549,9 @@ var FunctionSchema = external_exports.object({
99546
99549
  enabled: external_exports.boolean().optional(),
99547
99550
  logging: external_exports.boolean().optional(),
99548
99551
  runtime: external_exports.string(),
99549
- specification: external_exports.string().optional(),
99552
+ buildSpecification: external_exports.string().optional(),
99553
+ runtimeSpecification: external_exports.string().optional(),
99554
+ deploymentRetention: external_exports.number().optional(),
99550
99555
  scopes: external_exports.array(external_exports.string()).optional(),
99551
99556
  events: external_exports.array(external_exports.string()).optional(),
99552
99557
  schedule: external_exports.string().optional(),
@@ -99742,7 +99747,7 @@ var import_undici = __toESM(require_undici(), 1);
99742
99747
  // lib/constants.ts
99743
99748
  var SDK_TITLE = "Appwrite";
99744
99749
  var SDK_TITLE_LOWER = "appwrite";
99745
- var SDK_VERSION = "14.0.1";
99750
+ var SDK_VERSION = "15.0.0";
99746
99751
  var SDK_NAME = "Command Line";
99747
99752
  var SDK_PLATFORM = "console";
99748
99753
  var SDK_LANGUAGE = "cli";
@@ -100781,7 +100786,7 @@ var Client = class _Client {
100781
100786
  "x-sdk-name": "Console",
100782
100787
  "x-sdk-platform": "console",
100783
100788
  "x-sdk-language": "web",
100784
- "x-sdk-version": "4.0.0",
100789
+ "x-sdk-version": "5.0.0",
100785
100790
  "X-Appwrite-Response-Format": "1.8.0"
100786
100791
  };
100787
100792
  this.realtime = {
@@ -101306,6 +101311,9 @@ var Client = class _Client {
101306
101311
  window.console.warn("Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.");
101307
101312
  window.localStorage.setItem("cookieFallback", cookieFallback);
101308
101313
  }
101314
+ if (data && typeof data === "object") {
101315
+ data.toString = () => JSONbig.stringify(data);
101316
+ }
101309
101317
  return data;
101310
101318
  });
101311
101319
  }
@@ -107332,7 +107340,9 @@ var Functions = class {
107332
107340
  providerBranch: rest[13],
107333
107341
  providerSilentMode: rest[14],
107334
107342
  providerRootDirectory: rest[15],
107335
- specification: rest[16]
107343
+ buildSpecification: rest[16],
107344
+ runtimeSpecification: rest[17],
107345
+ deploymentRetention: rest[18]
107336
107346
  };
107337
107347
  }
107338
107348
  const functionId = params.functionId;
@@ -107352,7 +107362,9 @@ var Functions = class {
107352
107362
  const providerBranch = params.providerBranch;
107353
107363
  const providerSilentMode = params.providerSilentMode;
107354
107364
  const providerRootDirectory = params.providerRootDirectory;
107355
- const specification = params.specification;
107365
+ const buildSpecification = params.buildSpecification;
107366
+ const runtimeSpecification = params.runtimeSpecification;
107367
+ const deploymentRetention = params.deploymentRetention;
107356
107368
  if (typeof functionId === "undefined") {
107357
107369
  throw new AppwriteException('Missing required parameter: "functionId"');
107358
107370
  }
@@ -107415,8 +107427,14 @@ var Functions = class {
107415
107427
  if (typeof providerRootDirectory !== "undefined") {
107416
107428
  payload["providerRootDirectory"] = providerRootDirectory;
107417
107429
  }
107418
- if (typeof specification !== "undefined") {
107419
- payload["specification"] = specification;
107430
+ if (typeof buildSpecification !== "undefined") {
107431
+ payload["buildSpecification"] = buildSpecification;
107432
+ }
107433
+ if (typeof runtimeSpecification !== "undefined") {
107434
+ payload["runtimeSpecification"] = runtimeSpecification;
107435
+ }
107436
+ if (typeof deploymentRetention !== "undefined") {
107437
+ payload["deploymentRetention"] = deploymentRetention;
107420
107438
  }
107421
107439
  const uri = new URL(this.client.config.endpoint + apiPath);
107422
107440
  const apiHeaders = {
@@ -107569,7 +107587,9 @@ var Functions = class {
107569
107587
  providerBranch: rest[13],
107570
107588
  providerSilentMode: rest[14],
107571
107589
  providerRootDirectory: rest[15],
107572
- specification: rest[16]
107590
+ buildSpecification: rest[16],
107591
+ runtimeSpecification: rest[17],
107592
+ deploymentRetention: rest[18]
107573
107593
  };
107574
107594
  }
107575
107595
  const functionId = params.functionId;
@@ -107589,7 +107609,9 @@ var Functions = class {
107589
107609
  const providerBranch = params.providerBranch;
107590
107610
  const providerSilentMode = params.providerSilentMode;
107591
107611
  const providerRootDirectory = params.providerRootDirectory;
107592
- const specification = params.specification;
107612
+ const buildSpecification = params.buildSpecification;
107613
+ const runtimeSpecification = params.runtimeSpecification;
107614
+ const deploymentRetention = params.deploymentRetention;
107593
107615
  if (typeof functionId === "undefined") {
107594
107616
  throw new AppwriteException('Missing required parameter: "functionId"');
107595
107617
  }
@@ -107646,8 +107668,14 @@ var Functions = class {
107646
107668
  if (typeof providerRootDirectory !== "undefined") {
107647
107669
  payload["providerRootDirectory"] = providerRootDirectory;
107648
107670
  }
107649
- if (typeof specification !== "undefined") {
107650
- payload["specification"] = specification;
107671
+ if (typeof buildSpecification !== "undefined") {
107672
+ payload["buildSpecification"] = buildSpecification;
107673
+ }
107674
+ if (typeof runtimeSpecification !== "undefined") {
107675
+ payload["runtimeSpecification"] = runtimeSpecification;
107676
+ }
107677
+ if (typeof deploymentRetention !== "undefined") {
107678
+ payload["deploymentRetention"] = deploymentRetention;
107651
107679
  }
107652
107680
  const uri = new URL(this.client.config.endpoint + apiPath);
107653
107681
  const apiHeaders = {
@@ -116589,15 +116617,18 @@ var Sites = class {
116589
116617
  timeout: rest[5],
116590
116618
  installCommand: rest[6],
116591
116619
  buildCommand: rest[7],
116592
- outputDirectory: rest[8],
116593
- adapter: rest[9],
116594
- installationId: rest[10],
116595
- fallbackFile: rest[11],
116596
- providerRepositoryId: rest[12],
116597
- providerBranch: rest[13],
116598
- providerSilentMode: rest[14],
116599
- providerRootDirectory: rest[15],
116600
- specification: rest[16]
116620
+ startCommand: rest[8],
116621
+ outputDirectory: rest[9],
116622
+ adapter: rest[10],
116623
+ installationId: rest[11],
116624
+ fallbackFile: rest[12],
116625
+ providerRepositoryId: rest[13],
116626
+ providerBranch: rest[14],
116627
+ providerSilentMode: rest[15],
116628
+ providerRootDirectory: rest[16],
116629
+ buildSpecification: rest[17],
116630
+ runtimeSpecification: rest[18],
116631
+ deploymentRetention: rest[19]
116601
116632
  };
116602
116633
  }
116603
116634
  const siteId = params.siteId;
@@ -116609,6 +116640,7 @@ var Sites = class {
116609
116640
  const timeout = params.timeout;
116610
116641
  const installCommand = params.installCommand;
116611
116642
  const buildCommand = params.buildCommand;
116643
+ const startCommand = params.startCommand;
116612
116644
  const outputDirectory = params.outputDirectory;
116613
116645
  const adapter = params.adapter;
116614
116646
  const installationId = params.installationId;
@@ -116617,7 +116649,9 @@ var Sites = class {
116617
116649
  const providerBranch = params.providerBranch;
116618
116650
  const providerSilentMode = params.providerSilentMode;
116619
116651
  const providerRootDirectory = params.providerRootDirectory;
116620
- const specification = params.specification;
116652
+ const buildSpecification = params.buildSpecification;
116653
+ const runtimeSpecification = params.runtimeSpecification;
116654
+ const deploymentRetention = params.deploymentRetention;
116621
116655
  if (typeof siteId === "undefined") {
116622
116656
  throw new AppwriteException('Missing required parameter: "siteId"');
116623
116657
  }
@@ -116656,6 +116690,9 @@ var Sites = class {
116656
116690
  if (typeof buildCommand !== "undefined") {
116657
116691
  payload["buildCommand"] = buildCommand;
116658
116692
  }
116693
+ if (typeof startCommand !== "undefined") {
116694
+ payload["startCommand"] = startCommand;
116695
+ }
116659
116696
  if (typeof outputDirectory !== "undefined") {
116660
116697
  payload["outputDirectory"] = outputDirectory;
116661
116698
  }
@@ -116683,8 +116720,14 @@ var Sites = class {
116683
116720
  if (typeof providerRootDirectory !== "undefined") {
116684
116721
  payload["providerRootDirectory"] = providerRootDirectory;
116685
116722
  }
116686
- if (typeof specification !== "undefined") {
116687
- payload["specification"] = specification;
116723
+ if (typeof buildSpecification !== "undefined") {
116724
+ payload["buildSpecification"] = buildSpecification;
116725
+ }
116726
+ if (typeof runtimeSpecification !== "undefined") {
116727
+ payload["runtimeSpecification"] = runtimeSpecification;
116728
+ }
116729
+ if (typeof deploymentRetention !== "undefined") {
116730
+ payload["deploymentRetention"] = deploymentRetention;
116688
116731
  }
116689
116732
  const uri = new URL(this.client.config.endpoint + apiPath);
116690
116733
  const apiHeaders = {
@@ -116823,16 +116866,19 @@ var Sites = class {
116823
116866
  timeout: rest[4],
116824
116867
  installCommand: rest[5],
116825
116868
  buildCommand: rest[6],
116826
- outputDirectory: rest[7],
116827
- buildRuntime: rest[8],
116828
- adapter: rest[9],
116829
- fallbackFile: rest[10],
116830
- installationId: rest[11],
116831
- providerRepositoryId: rest[12],
116832
- providerBranch: rest[13],
116833
- providerSilentMode: rest[14],
116834
- providerRootDirectory: rest[15],
116835
- specification: rest[16]
116869
+ startCommand: rest[7],
116870
+ outputDirectory: rest[8],
116871
+ buildRuntime: rest[9],
116872
+ adapter: rest[10],
116873
+ fallbackFile: rest[11],
116874
+ installationId: rest[12],
116875
+ providerRepositoryId: rest[13],
116876
+ providerBranch: rest[14],
116877
+ providerSilentMode: rest[15],
116878
+ providerRootDirectory: rest[16],
116879
+ buildSpecification: rest[17],
116880
+ runtimeSpecification: rest[18],
116881
+ deploymentRetention: rest[19]
116836
116882
  };
116837
116883
  }
116838
116884
  const siteId = params.siteId;
@@ -116843,6 +116889,7 @@ var Sites = class {
116843
116889
  const timeout = params.timeout;
116844
116890
  const installCommand = params.installCommand;
116845
116891
  const buildCommand = params.buildCommand;
116892
+ const startCommand = params.startCommand;
116846
116893
  const outputDirectory = params.outputDirectory;
116847
116894
  const buildRuntime = params.buildRuntime;
116848
116895
  const adapter = params.adapter;
@@ -116852,7 +116899,9 @@ var Sites = class {
116852
116899
  const providerBranch = params.providerBranch;
116853
116900
  const providerSilentMode = params.providerSilentMode;
116854
116901
  const providerRootDirectory = params.providerRootDirectory;
116855
- const specification = params.specification;
116902
+ const buildSpecification = params.buildSpecification;
116903
+ const runtimeSpecification = params.runtimeSpecification;
116904
+ const deploymentRetention = params.deploymentRetention;
116856
116905
  if (typeof siteId === "undefined") {
116857
116906
  throw new AppwriteException('Missing required parameter: "siteId"');
116858
116907
  }
@@ -116885,6 +116934,9 @@ var Sites = class {
116885
116934
  if (typeof buildCommand !== "undefined") {
116886
116935
  payload["buildCommand"] = buildCommand;
116887
116936
  }
116937
+ if (typeof startCommand !== "undefined") {
116938
+ payload["startCommand"] = startCommand;
116939
+ }
116888
116940
  if (typeof outputDirectory !== "undefined") {
116889
116941
  payload["outputDirectory"] = outputDirectory;
116890
116942
  }
@@ -116912,8 +116964,14 @@ var Sites = class {
116912
116964
  if (typeof providerRootDirectory !== "undefined") {
116913
116965
  payload["providerRootDirectory"] = providerRootDirectory;
116914
116966
  }
116915
- if (typeof specification !== "undefined") {
116916
- payload["specification"] = specification;
116967
+ if (typeof buildSpecification !== "undefined") {
116968
+ payload["buildSpecification"] = buildSpecification;
116969
+ }
116970
+ if (typeof runtimeSpecification !== "undefined") {
116971
+ payload["runtimeSpecification"] = runtimeSpecification;
116972
+ }
116973
+ if (typeof deploymentRetention !== "undefined") {
116974
+ payload["deploymentRetention"] = deploymentRetention;
116917
116975
  }
116918
116976
  const uri = new URL(this.client.config.endpoint + apiPath);
116919
116977
  const apiHeaders = {
@@ -124856,6 +124914,9 @@ var Runtime;
124856
124914
  Runtime2["Pythonml311"] = "python-ml-3.11";
124857
124915
  Runtime2["Pythonml312"] = "python-ml-3.12";
124858
124916
  Runtime2["Pythonml313"] = "python-ml-3.13";
124917
+ Runtime2["Deno121"] = "deno-1.21";
124918
+ Runtime2["Deno124"] = "deno-1.24";
124919
+ Runtime2["Deno135"] = "deno-1.35";
124859
124920
  Runtime2["Deno140"] = "deno-1.40";
124860
124921
  Runtime2["Deno146"] = "deno-1.46";
124861
124922
  Runtime2["Deno20"] = "deno-2.0";
@@ -124945,6 +125006,9 @@ var Runtimes;
124945
125006
  Runtimes2["Pythonml311"] = "python-ml-3.11";
124946
125007
  Runtimes2["Pythonml312"] = "python-ml-3.12";
124947
125008
  Runtimes2["Pythonml313"] = "python-ml-3.13";
125009
+ Runtimes2["Deno121"] = "deno-1.21";
125010
+ Runtimes2["Deno124"] = "deno-1.24";
125011
+ Runtimes2["Deno135"] = "deno-1.35";
124948
125012
  Runtimes2["Deno140"] = "deno-1.40";
124949
125013
  Runtimes2["Deno146"] = "deno-1.46";
124950
125014
  Runtimes2["Deno20"] = "deno-2.0";
@@ -125085,6 +125149,10 @@ var AppwriteMigrationResource;
125085
125149
  AppwriteMigrationResource2["Function"] = "function";
125086
125150
  AppwriteMigrationResource2["Deployment"] = "deployment";
125087
125151
  AppwriteMigrationResource2["Environmentvariable"] = "environment-variable";
125152
+ AppwriteMigrationResource2["Provider"] = "provider";
125153
+ AppwriteMigrationResource2["Topic"] = "topic";
125154
+ AppwriteMigrationResource2["Subscriber"] = "subscriber";
125155
+ AppwriteMigrationResource2["Message"] = "message";
125088
125156
  AppwriteMigrationResource2["Site"] = "site";
125089
125157
  AppwriteMigrationResource2["Sitedeployment"] = "site-deployment";
125090
125158
  AppwriteMigrationResource2["Sitevariable"] = "site-variable";
@@ -125558,6 +125626,9 @@ var BuildRuntime;
125558
125626
  BuildRuntime2["Pythonml311"] = "python-ml-3.11";
125559
125627
  BuildRuntime2["Pythonml312"] = "python-ml-3.12";
125560
125628
  BuildRuntime2["Pythonml313"] = "python-ml-3.13";
125629
+ BuildRuntime2["Deno121"] = "deno-1.21";
125630
+ BuildRuntime2["Deno124"] = "deno-1.24";
125631
+ BuildRuntime2["Deno135"] = "deno-1.35";
125561
125632
  BuildRuntime2["Deno140"] = "deno-1.40";
125562
125633
  BuildRuntime2["Deno146"] = "deno-1.46";
125563
125634
  BuildRuntime2["Deno20"] = "deno-2.0";
@@ -125769,6 +125840,17 @@ var BillingPlanGroup;
125769
125840
  BillingPlanGroup2["Pro"] = "pro";
125770
125841
  BillingPlanGroup2["Scale"] = "scale";
125771
125842
  })(BillingPlanGroup || (BillingPlanGroup = {}));
125843
+ var DomainPurchasePaymentStatus;
125844
+ (function(DomainPurchasePaymentStatus2) {
125845
+ DomainPurchasePaymentStatus2["Pending"] = "pending";
125846
+ DomainPurchasePaymentStatus2["PendingConfirmation"] = "pending_confirmation";
125847
+ DomainPurchasePaymentStatus2["PendingPaymentProcessing"] = "pending_payment_processing";
125848
+ DomainPurchasePaymentStatus2["Authorized"] = "authorized";
125849
+ DomainPurchasePaymentStatus2["Captured"] = "captured";
125850
+ DomainPurchasePaymentStatus2["Failed"] = "failed";
125851
+ DomainPurchasePaymentStatus2["CaptureFailed"] = "capture_failed";
125852
+ DomainPurchasePaymentStatus2["RenewalCaptureFailed"] = "renewal_capture_failed";
125853
+ })(DomainPurchasePaymentStatus || (DomainPurchasePaymentStatus = {}));
125772
125854
  var DomainTransferStatusStatus;
125773
125855
  (function(DomainTransferStatusStatus2) {
125774
125856
  DomainTransferStatusStatus2["Transferrable"] = "transferrable";
@@ -126049,6 +126131,7 @@ var sdkForConsole = async (requiresAuth = true) => {
126049
126131
  );
126050
126132
  }
126051
126133
  client2.headers = {
126134
+ ...client2.headers,
126052
126135
  "x-sdk-name": "Command Line",
126053
126136
  "x-sdk-platform": "console",
126054
126137
  "x-sdk-language": "cli",
@@ -126071,6 +126154,7 @@ var sdkForProject = async () => {
126071
126154
  );
126072
126155
  }
126073
126156
  client2.headers = {
126157
+ ...client2.headers,
126074
126158
  "x-sdk-name": "Command Line",
126075
126159
  "x-sdk-platform": "console",
126076
126160
  "x-sdk-language": "cli",
@@ -126599,8 +126683,25 @@ var questionsCreateFunction = [
126599
126683
  },
126600
126684
  {
126601
126685
  type: "list",
126602
- name: "specification",
126603
- message: "What specification would you like to use?",
126686
+ name: "buildSpecification",
126687
+ message: "What build specification would you like to use?",
126688
+ choices: async () => {
126689
+ const response = await (await getFunctionsService()).listSpecifications();
126690
+ const specifications = response["specifications"];
126691
+ const choices = specifications.map((spec, _idx) => {
126692
+ return {
126693
+ name: `${spec.cpus} CPU, ${spec.memory}MB RAM`,
126694
+ value: spec.slug,
126695
+ disabled: spec.enabled === false ? "Upgrade to use" : false
126696
+ };
126697
+ });
126698
+ return choices;
126699
+ }
126700
+ },
126701
+ {
126702
+ type: "list",
126703
+ name: "runtimeSpecification",
126704
+ message: "What runtime specification would you like to use?",
126604
126705
  choices: async () => {
126605
126706
  const response = await (await getFunctionsService()).listSpecifications();
126606
126707
  const specifications = response["specifications"];
@@ -127219,8 +127320,25 @@ var questionsCreateSite = [
127219
127320
  },
127220
127321
  {
127221
127322
  type: "list",
127222
- name: "specification",
127223
- message: "What specification would you like to use?",
127323
+ name: "buildSpecification",
127324
+ message: "What build specification would you like to use?",
127325
+ choices: async () => {
127326
+ const response = await (await getSitesService()).listSpecifications();
127327
+ const specifications = response["specifications"];
127328
+ const choices = specifications.map((spec) => {
127329
+ return {
127330
+ name: `${spec.cpus} CPU, ${spec.memory}MB RAM`,
127331
+ value: spec.slug,
127332
+ disabled: spec.enabled === false ? "Upgrade to use" : false
127333
+ };
127334
+ });
127335
+ return choices;
127336
+ }
127337
+ },
127338
+ {
127339
+ type: "list",
127340
+ name: "runtimeSpecification",
127341
+ message: "What runtime specification would you like to use?",
127224
127342
  choices: async () => {
127225
127343
  const response = await (await getSitesService()).listSpecifications();
127226
127344
  const specifications = response["specifications"];
@@ -127419,6 +127537,15 @@ var Client3 = class _Client {
127419
127537
  globalConfig2.setCurrentSession("");
127420
127538
  globalConfig2.removeSession(current);
127421
127539
  }
127540
+ const isUnauthorized = json3.code === 401 && json3.type === "general_unauthorized_scope" && typeof json3.message === "string" && /role:\s*guests/i.test(json3.message);
127541
+ if (isUnauthorized) {
127542
+ throw new AppwriteException(
127543
+ `You are not authenticated. Run '${EXECUTABLE_NAME} login' to authenticate and try again.`,
127544
+ json3.code,
127545
+ json3.type,
127546
+ text2
127547
+ );
127548
+ }
127422
127549
  throw new AppwriteException(
127423
127550
  json3.message || text2,
127424
127551
  json3.code,
@@ -130327,7 +130454,7 @@ var qt = class extends st {
130327
130454
  if (h.includes("..") || Oe && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
130328
130455
  if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
130329
130456
  {
130330
- let a = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a, i));
130457
+ let a = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a, h.join("/")));
130331
130458
  if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
130332
130459
  }
130333
130460
  }
@@ -131210,7 +131337,9 @@ var Pull = class {
131210
131337
  timeout: func.timeout,
131211
131338
  commands: func.commands,
131212
131339
  scopes: func.scopes,
131213
- specification: func.specification
131340
+ buildSpecification: func.buildSpecification,
131341
+ runtimeSpecification: func.runtimeSpecification,
131342
+ deploymentRetention: func.deploymentRetention
131214
131343
  };
131215
131344
  result.push(functionConfig);
131216
131345
  if (!import_fs8.default.existsSync(absoluteFuncPath)) {
@@ -131292,7 +131421,10 @@ var Pull = class {
131292
131421
  buildCommand: site.buildCommand,
131293
131422
  outputDirectory: site.outputDirectory,
131294
131423
  fallbackFile: site.fallbackFile,
131295
- specification: site.specification
131424
+ startCommand: site.startCommand,
131425
+ buildSpecification: site.buildSpecification,
131426
+ runtimeSpecification: site.runtimeSpecification,
131427
+ deploymentRetention: site.deploymentRetention
131296
131428
  };
131297
131429
  result.push(siteConfig);
131298
131430
  if (!import_fs8.default.existsSync(absoluteSitePath)) {
@@ -132112,7 +132244,8 @@ Suggestion: It appears that git is not installed, try installing git then trying
132112
132244
  $id: functionId,
132113
132245
  name: answers.name,
132114
132246
  runtime: answers.runtime.id,
132115
- specification: answers.specification,
132247
+ buildSpecification: answers.buildSpecification,
132248
+ runtimeSpecification: answers.runtimeSpecification,
132116
132249
  execute: ["any"],
132117
132250
  events: [],
132118
132251
  scopes: ["users.read"],
@@ -132277,7 +132410,8 @@ Suggestion: It appears that git is not installed, try installing git then trying
132277
132410
  buildCommand: templateDetails.frameworks[0].buildCommand || "",
132278
132411
  outputDirectory: templateDetails.frameworks[0].outputDirectory || "",
132279
132412
  fallbackFile: templateDetails.frameworks[0].fallbackFile || "",
132280
- specification: answers.specification,
132413
+ buildSpecification: answers.buildSpecification,
132414
+ runtimeSpecification: answers.runtimeSpecification,
132281
132415
  enabled: true,
132282
132416
  timeout: 30,
132283
132417
  logging: true,
@@ -136465,7 +136599,9 @@ var Push = class {
136465
136599
  entrypoint: func.entrypoint,
136466
136600
  commands: func.commands,
136467
136601
  scopes: func.scopes,
136468
- specification: func.specification
136602
+ buildSpecification: func.buildSpecification,
136603
+ runtimeSpecification: func.runtimeSpecification,
136604
+ deploymentRetention: func.deploymentRetention
136469
136605
  });
136470
136606
  } catch (e) {
136471
136607
  if (Number(e.code) === 404) {
@@ -136494,7 +136630,9 @@ var Push = class {
136494
136630
  entrypoint: func.entrypoint,
136495
136631
  commands: func.commands,
136496
136632
  scopes: func.scopes,
136497
- specification: func.specification
136633
+ buildSpecification: func.buildSpecification,
136634
+ runtimeSpecification: func.runtimeSpecification,
136635
+ deploymentRetention: func.deploymentRetention
136498
136636
  });
136499
136637
  let domain2 = "";
136500
136638
  try {
@@ -136766,7 +136904,10 @@ var Push = class {
136766
136904
  outputDirectory: site.outputDirectory,
136767
136905
  buildRuntime: site.buildRuntime,
136768
136906
  adapter: site.adapter,
136769
- specification: site.specification
136907
+ startCommand: site.startCommand,
136908
+ buildSpecification: site.buildSpecification,
136909
+ runtimeSpecification: site.runtimeSpecification,
136910
+ deploymentRetention: site.deploymentRetention
136770
136911
  });
136771
136912
  } catch (e) {
136772
136913
  if (Number(e.code) === 404) {
@@ -136794,7 +136935,10 @@ var Push = class {
136794
136935
  outputDirectory: site.outputDirectory,
136795
136936
  buildRuntime: site.buildRuntime,
136796
136937
  adapter: site.adapter,
136797
- specification: site.specification
136938
+ startCommand: site.startCommand,
136939
+ buildSpecification: site.buildSpecification,
136940
+ runtimeSpecification: site.runtimeSpecification,
136941
+ deploymentRetention: site.deploymentRetention
136798
136942
  });
136799
136943
  let domain2 = "";
136800
136944
  try {
@@ -138959,7 +139103,7 @@ account.command(`delete-identity`).description(`Delete an identity by its unique
138959
139103
  async ({ identityId }) => parse3(await (await getAccountClient()).deleteIdentity(identityId))
138960
139104
  )
138961
139105
  );
138962
- account.command(`list-invoices`).description(`List all invoices tied to an account.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, amount, currency, from, to, dueAt, attempts, status, grossAmount`).action(
139106
+ account.command(`list-invoices`).description(`List all invoices tied to an account.`).option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: teamId, aggregationId, type, amount, currency, from, to, dueAt, attempts, status, grossAmount`).action(
138963
139107
  actionRunner(
138964
139108
  async ({ queries }) => parse3(await (await getAccountClient()).listInvoices(queries))
138965
139109
  )
@@ -139981,9 +140125,9 @@ functions.command(`create`).description(`Create a new function. You can pass a l
139981
140125
  `--provider-silent-mode [value]`,
139982
140126
  `Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.`,
139983
140127
  (value) => value === void 0 ? true : parseBool(value)
139984
- ).option(`--provider-root-directory <provider-root-directory>`, `Path to function code in the linked repo.`).option(`--specification <specification>`, `Runtime specification for the function and builds.`).action(
140128
+ ).option(`--provider-root-directory <provider-root-directory>`, `Path to function code in the linked repo.`).option(`--build-specification <build-specification>`, `Build specification for the function deployments.`).option(`--runtime-specification <runtime-specification>`, `Runtime specification for the function executions.`).option(`--deployment-retention <deployment-retention>`, `Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.`, parseInteger).action(
139985
140129
  actionRunner(
139986
- async ({ functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) => parse3(await (await getFunctionsClient()).create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification))
140130
+ async ({ functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention }) => parse3(await (await getFunctionsClient()).create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention))
139987
140131
  )
139988
140132
  );
139989
140133
  functions.command(`list-runtimes`).description(`Get a list of all runtimes that are currently active on your instance.`).action(
@@ -140032,9 +140176,9 @@ functions.command(`update`).description(`Update function by its unique ID.`).req
140032
140176
  `--provider-silent-mode [value]`,
140033
140177
  `Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.`,
140034
140178
  (value) => value === void 0 ? true : parseBool(value)
140035
- ).option(`--provider-root-directory <provider-root-directory>`, `Path to function code in the linked repo.`).option(`--specification <specification>`, `Runtime specification for the function and builds.`).action(
140179
+ ).option(`--provider-root-directory <provider-root-directory>`, `Path to function code in the linked repo.`).option(`--build-specification <build-specification>`, `Build specification for the function deployments.`).option(`--runtime-specification <runtime-specification>`, `Runtime specification for the function executions.`).option(`--deployment-retention <deployment-retention>`, `Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.`, parseInteger).action(
140036
140180
  actionRunner(
140037
- async ({ functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) => parse3(await (await getFunctionsClient()).update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification))
140181
+ async ({ functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention }) => parse3(await (await getFunctionsClient()).update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention))
140038
140182
  )
140039
140183
  );
140040
140184
  functions.command(`delete`).description(`Delete a function by its unique ID.`).requiredOption(`--function-id <function-id>`, `Function ID.`).action(
@@ -141458,13 +141602,13 @@ sites.command(`create`).description(`Create a new site.`).requiredOption(`--site
141458
141602
  `--logging [value]`,
141459
141603
  `When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.`,
141460
141604
  (value) => value === void 0 ? true : parseBool(value)
141461
- ).option(`--timeout <timeout>`, `Maximum request time in seconds.`, parseInteger).option(`--install-command <install-command>`, `Install Command.`).option(`--build-command <build-command>`, `Build Command.`).option(`--output-directory <output-directory>`, `Output Directory for site.`).option(`--adapter <adapter>`, `Framework adapter defining rendering strategy. Allowed values are: static, ssr`).option(`--installation-id <installation-id>`, `Appwrite Installation ID for VCS (Version Control System) deployment.`).option(`--fallback-file <fallback-file>`, `Fallback file for single page application sites.`).option(`--provider-repository-id <provider-repository-id>`, `Repository ID of the repo linked to the site.`).option(`--provider-branch <provider-branch>`, `Production branch for the repo linked to the site.`).option(
141605
+ ).option(`--timeout <timeout>`, `Maximum request time in seconds.`, parseInteger).option(`--install-command <install-command>`, `Install Command.`).option(`--build-command <build-command>`, `Build Command.`).option(`--start-command <start-command>`, `Custom start command. Leave empty to use default.`).option(`--output-directory <output-directory>`, `Output Directory for site.`).option(`--adapter <adapter>`, `Framework adapter defining rendering strategy. Allowed values are: static, ssr`).option(`--installation-id <installation-id>`, `Appwrite Installation ID for VCS (Version Control System) deployment.`).option(`--fallback-file <fallback-file>`, `Fallback file for single page application sites.`).option(`--provider-repository-id <provider-repository-id>`, `Repository ID of the repo linked to the site.`).option(`--provider-branch <provider-branch>`, `Production branch for the repo linked to the site.`).option(
141462
141606
  `--provider-silent-mode [value]`,
141463
141607
  `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.`,
141464
141608
  (value) => value === void 0 ? true : parseBool(value)
141465
- ).option(`--provider-root-directory <provider-root-directory>`, `Path to site code in the linked repo.`).option(`--specification <specification>`, `Framework specification for the site and builds.`).action(
141609
+ ).option(`--provider-root-directory <provider-root-directory>`, `Path to site code in the linked repo.`).option(`--build-specification <build-specification>`, `Build specification for the site deployments.`).option(`--runtime-specification <runtime-specification>`, `Runtime specification for the SSR executions.`).option(`--deployment-retention <deployment-retention>`, `Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.`, parseInteger).action(
141466
141610
  actionRunner(
141467
- async ({ siteId, name, framework, buildRuntime, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, adapter, installationId, fallbackFile, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) => parse3(await (await getSitesClient()).create(siteId, name, framework, buildRuntime, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, adapter, installationId, fallbackFile, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification))
141611
+ async ({ siteId, name, framework, buildRuntime, enabled, logging, timeout, installCommand, buildCommand, startCommand, outputDirectory, adapter, installationId, fallbackFile, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention }) => parse3(await (await getSitesClient()).create(siteId, name, framework, buildRuntime, enabled, logging, timeout, installCommand, buildCommand, startCommand, outputDirectory, adapter, installationId, fallbackFile, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention))
141468
141612
  )
141469
141613
  );
141470
141614
  sites.command(`list-frameworks`).description(`Get a list of all frameworks that are currently available on the server instance.`).action(
@@ -141505,13 +141649,13 @@ sites.command(`update`).description(`Update site by its unique ID.`).requiredOpt
141505
141649
  `--logging [value]`,
141506
141650
  `When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.`,
141507
141651
  (value) => value === void 0 ? true : parseBool(value)
141508
- ).option(`--timeout <timeout>`, `Maximum request time in seconds.`, parseInteger).option(`--install-command <install-command>`, `Install Command.`).option(`--build-command <build-command>`, `Build Command.`).option(`--output-directory <output-directory>`, `Output Directory for site.`).option(`--build-runtime <build-runtime>`, `Runtime to use during build step.`).option(`--adapter <adapter>`, `Framework adapter defining rendering strategy. Allowed values are: static, ssr`).option(`--fallback-file <fallback-file>`, `Fallback file for single page application sites.`).option(`--installation-id <installation-id>`, `Appwrite Installation ID for VCS (Version Control System) deployment.`).option(`--provider-repository-id <provider-repository-id>`, `Repository ID of the repo linked to the site.`).option(`--provider-branch <provider-branch>`, `Production branch for the repo linked to the site.`).option(
141652
+ ).option(`--timeout <timeout>`, `Maximum request time in seconds.`, parseInteger).option(`--install-command <install-command>`, `Install Command.`).option(`--build-command <build-command>`, `Build Command.`).option(`--start-command <start-command>`, `Custom start command. Leave empty to use default.`).option(`--output-directory <output-directory>`, `Output Directory for site.`).option(`--build-runtime <build-runtime>`, `Runtime to use during build step.`).option(`--adapter <adapter>`, `Framework adapter defining rendering strategy. Allowed values are: static, ssr`).option(`--fallback-file <fallback-file>`, `Fallback file for single page application sites.`).option(`--installation-id <installation-id>`, `Appwrite Installation ID for VCS (Version Control System) deployment.`).option(`--provider-repository-id <provider-repository-id>`, `Repository ID of the repo linked to the site.`).option(`--provider-branch <provider-branch>`, `Production branch for the repo linked to the site.`).option(
141509
141653
  `--provider-silent-mode [value]`,
141510
141654
  `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.`,
141511
141655
  (value) => value === void 0 ? true : parseBool(value)
141512
- ).option(`--provider-root-directory <provider-root-directory>`, `Path to site code in the linked repo.`).option(`--specification <specification>`, `Framework specification for the site and builds.`).action(
141656
+ ).option(`--provider-root-directory <provider-root-directory>`, `Path to site code in the linked repo.`).option(`--build-specification <build-specification>`, `Build specification for the site deployments.`).option(`--runtime-specification <runtime-specification>`, `Runtime specification for the SSR executions.`).option(`--deployment-retention <deployment-retention>`, `Days to keep non-active deployments before deletion. Value 0 means all deployments will be kept.`, parseInteger).action(
141513
141657
  actionRunner(
141514
- async ({ siteId, name, framework, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, buildRuntime, adapter, fallbackFile, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) => parse3(await (await getSitesClient()).update(siteId, name, framework, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, buildRuntime, adapter, fallbackFile, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification))
141658
+ async ({ siteId, name, framework, enabled, logging, timeout, installCommand, buildCommand, startCommand, outputDirectory, buildRuntime, adapter, fallbackFile, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention }) => parse3(await (await getSitesClient()).update(siteId, name, framework, enabled, logging, timeout, installCommand, buildCommand, startCommand, outputDirectory, buildRuntime, adapter, fallbackFile, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, buildSpecification, runtimeSpecification, deploymentRetention))
141515
141659
  )
141516
141660
  );
141517
141661
  sites.command(`delete`).description(`Delete a site by its unique ID.`).requiredOption(`--site-id <site-id>`, `Site ID.`).action(