appwrite-cli 22.1.0 → 22.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,7 +29,7 @@ Once the installation is complete, you can verify the install using
29
29
 
30
30
  ```sh
31
31
  $ appwrite -v
32
- 22.1.0
32
+ 22.1.2
33
33
  ```
34
34
 
35
35
  ### Install using prebuilt binaries
@@ -83,7 +83,7 @@ $ scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/sc
83
83
  Once the installation completes, you can verify your install using
84
84
  ```
85
85
  $ appwrite -v
86
- 22.1.0
86
+ 22.1.2
87
87
  ```
88
88
 
89
89
  ## Getting Started
package/dist/cli.cjs CHANGED
@@ -86099,7 +86099,7 @@ var package_default = {
86099
86099
  type: "module",
86100
86100
  homepage: "https://appwrite.io/support",
86101
86101
  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",
86102
- version: "22.1.0",
86102
+ version: "22.1.2",
86103
86103
  license: "BSD-3-Clause",
86104
86104
  main: "dist/index.cjs",
86105
86105
  module: "dist/index.js",
@@ -86139,12 +86139,12 @@ var package_default = {
86139
86139
  generate: "tsx scripts/generate-commands.ts",
86140
86140
  prepublishOnly: "npm run build",
86141
86141
  test: 'echo "Error: no test specified" && exit 1',
86142
- "linux-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
86143
- "linux-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
86144
- "mac-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
86145
- "mac-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
86146
- "windows-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
86147
- "windows-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
86142
+ "linux-x64": "bun build cli.ts --compile --minify --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
86143
+ "linux-arm64": "bun build cli.ts --compile --minify --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
86144
+ "mac-x64": "bun build cli.ts --compile --minify --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
86145
+ "mac-arm64": "bun build cli.ts --compile --minify --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
86146
+ "windows-x64": "bun build cli.ts --compile --minify --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
86147
+ "windows-arm64": "bun build cli.ts --compile --minify --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
86148
86148
  },
86149
86149
  dependencies: {
86150
86150
  "@appwrite.io/console": "^15.0.0",
@@ -100830,7 +100830,7 @@ var validateCrossDatabase = (data, ctx) => {
100830
100830
  // lib/constants.ts
100831
100831
  var SDK_TITLE = "Appwrite";
100832
100832
  var SDK_TITLE_LOWER = "appwrite";
100833
- var SDK_VERSION = "22.1.0";
100833
+ var SDK_VERSION = "22.1.2";
100834
100834
  var SDK_NAME = "Command Line";
100835
100835
  var SDK_PLATFORM = "console";
100836
100836
  var SDK_LANGUAGE = "cli";
@@ -100845,7 +100845,7 @@ var GITHUB_REPO = "appwrite/sdk-for-cli";
100845
100845
  var GITHUB_RELEASES_URL = `https://github.com/${GITHUB_REPO}/releases`;
100846
100846
  var DEFAULT_ENDPOINT = "https://cloud.appwrite.io/v1";
100847
100847
  var OAUTH2_CLIENT_ID = "appwrite-cli";
100848
- var OAUTH2_SCOPES = "openid email profile";
100848
+ var OAUTH2_SCOPES = "openid email profile account.admin";
100849
100849
  var CONFIG_RESOURCE_KEYS = [
100850
100850
  "databases",
100851
100851
  "functions",
@@ -131393,6 +131393,7 @@ var getHomebrewLatestVersion = async (options = {}) => {
131393
131393
  }
131394
131394
  };
131395
131395
  var CLOUD_REGION_CODES = /* @__PURE__ */ new Set(["fra", "nyc", "syd", "sfo", "sgp", "tor"]);
131396
+ var CLOUD_LOGIN_ENVIRONMENTS = /* @__PURE__ */ new Set(["stage"]);
131396
131397
  var isCloudHostname = (hostname3) => {
131397
131398
  if (hostname3 === "cloud.appwrite.io") {
131398
131399
  return true;
@@ -131411,10 +131412,11 @@ var isRegionalCloudEndpoint = (endpoint) => {
131411
131412
  }
131412
131413
  };
131413
131414
  var isLocalhostHostname = (hostname3) => hostname3 === "localhost" || hostname3 === "127.0.0.1" || hostname3 === "[::1]";
131415
+ var isCloudEnvironmentHostname = (hostname3) => hostname3.endsWith(".cloud.appwrite.io") && CLOUD_LOGIN_ENVIRONMENTS.has(hostname3.split(".")[0]);
131414
131416
  var isCloudLoginEndpoint = (endpoint) => {
131415
131417
  try {
131416
131418
  const hostname3 = new URL(endpoint).hostname;
131417
- return isCloudHostname(hostname3) || isFlagEnabled("devCloudLogin") && isLocalhostHostname(hostname3);
131419
+ return isCloudHostname(hostname3) || isCloudEnvironmentHostname(hostname3) || isFlagEnabled("devCloudLogin") && isLocalhostHostname(hostname3);
131418
131420
  } catch (_error) {
131419
131421
  return false;
131420
131422
  }
@@ -136345,7 +136347,7 @@ var removeCurrentSession = () => {
136345
136347
  var deleteServerSession = async (sessionId) => {
136346
136348
  const session = getSession(sessionId);
136347
136349
  if (!session?.endpoint) {
136348
- return false;
136350
+ return { deleted: false };
136349
136351
  }
136350
136352
  try {
136351
136353
  if (session.refreshToken) {
@@ -136354,7 +136356,7 @@ var deleteServerSession = async (sessionId) => {
136354
136356
  session.refreshToken,
136355
136357
  session.clientId || OAUTH2_CLIENT_ID
136356
136358
  );
136357
- return true;
136359
+ return { deleted: true };
136358
136360
  }
136359
136361
  if (session.cookie) {
136360
136362
  const legacyClient = createLegacyConsoleClient(
@@ -136365,31 +136367,38 @@ var deleteServerSession = async (sessionId) => {
136365
136367
  await legacyClient.call("DELETE", "/account/sessions/current", {
136366
136368
  "content-type": "application/json"
136367
136369
  });
136368
- return true;
136370
+ return { deleted: true };
136369
136371
  }
136370
- return false;
136371
- } catch (_e2) {
136372
- return false;
136372
+ return { deleted: false };
136373
+ } catch (e) {
136374
+ return {
136375
+ deleted: false,
136376
+ error: e instanceof Error ? e.message : String(e)
136377
+ };
136373
136378
  }
136374
136379
  };
136375
136380
  var logoutSessions = async (sessionIds) => {
136376
136381
  let failed = 0;
136377
136382
  const failedIds = [];
136383
+ const errors = [];
136378
136384
  for (const sessionId of sessionIds) {
136379
136385
  if (isLocalOnlySession(sessionId)) {
136380
136386
  globalConfig2.removeSession(sessionId);
136381
136387
  continue;
136382
136388
  }
136383
136389
  globalConfig2.setCurrentSession(sessionId);
136384
- const serverDeleted = await deleteServerSession(sessionId);
136385
- if (serverDeleted) {
136390
+ const result = await deleteServerSession(sessionId);
136391
+ if (result.deleted) {
136386
136392
  globalConfig2.removeSession(sessionId);
136387
136393
  } else {
136388
136394
  failed++;
136389
136395
  failedIds.push(sessionId);
136396
+ if (result.error) {
136397
+ errors.push(result.error);
136398
+ }
136390
136399
  }
136391
136400
  }
136392
- return { failed, failedIds };
136401
+ return { failed, failedIds, errors };
136393
136402
  };
136394
136403
  var removeLegacySessionsExcept = async (sessionIdToKeep) => {
136395
136404
  let removed = 0;
@@ -136398,8 +136407,8 @@ var removeLegacySessionsExcept = async (sessionIdToKeep) => {
136398
136407
  if (sessionId === sessionIdToKeep || !isLegacySession(sessionId)) {
136399
136408
  continue;
136400
136409
  }
136401
- const serverDeleted = await deleteServerSession(sessionId);
136402
- if (serverDeleted) {
136410
+ const result = await deleteServerSession(sessionId);
136411
+ if (result.deleted) {
136403
136412
  globalConfig2.removeSession(sessionId);
136404
136413
  removed++;
136405
136414
  } else {
@@ -136759,6 +136768,16 @@ var loginCommand = async ({
136759
136768
  };
136760
136769
 
136761
136770
  // lib/commands/generic.ts
136771
+ var logMessages = {
136772
+ noActiveSessions: "No active sessions found.",
136773
+ logoutFailure: (errors = []) => {
136774
+ const uniqueErrors = [...new Set(errors)];
136775
+ const details = uniqueErrors.length ? `: ${uniqueErrors.join("; ")}` : "";
136776
+ return `Could not log out because the server session could not be revoked${details}. Kept local session data.`;
136777
+ },
136778
+ logoutSuccess: "Logged out successfully",
136779
+ clientConfigUpdated: "Client configuration updated"
136780
+ };
136762
136781
  var whoami = new Command("whoami").description(commandDescriptions["whoami"]).action(
136763
136782
  actionRunner(async () => {
136764
136783
  if (globalConfig2.getEndpoint() === "" || !hasAuthSession()) {
@@ -136808,33 +136827,32 @@ var logout = new Command("logout").description(commandDescriptions["logout"]).co
136808
136827
  const current = globalConfig2.getCurrentSession();
136809
136828
  const originalCurrent = current;
136810
136829
  if (current === "" || !sessions.length) {
136811
- log("No active sessions found.");
136830
+ log(logMessages.noActiveSessions);
136812
136831
  return;
136813
136832
  }
136814
136833
  if (sessions.length === 1) {
136815
- const { failed, failedIds } = await logoutSessions(
136834
+ const { failed, failedIds, errors } = await logoutSessions(
136816
136835
  planSessionLogout([current])
136817
136836
  );
136818
136837
  if (failed > 0) {
136819
136838
  restoreCurrentSessionFallback(originalCurrent, failedIds);
136820
- hint(
136821
- "Could not reach server for all sessions; kept local session data"
136822
- );
136839
+ error51(logMessages.logoutFailure(errors));
136840
+ return;
136823
136841
  } else {
136824
136842
  globalConfig2.setCurrentSession("");
136825
136843
  }
136826
- success2("Logged out successfully");
136844
+ success2(logMessages.logoutSuccess);
136827
136845
  return;
136828
136846
  }
136829
136847
  const answers = await import_inquirer2.default.prompt(questionsLogout);
136848
+ let logoutFailed = false;
136830
136849
  if (answers.accounts?.length) {
136831
- const { failed } = await logoutSessions(
136850
+ const { failed, errors } = await logoutSessions(
136832
136851
  planSessionLogout(answers.accounts)
136833
136852
  );
136834
136853
  if (failed > 0) {
136835
- hint(
136836
- "Could not reach server for all sessions; kept local session data"
136837
- );
136854
+ logoutFailed = true;
136855
+ error51(logMessages.logoutFailure(errors));
136838
136856
  }
136839
136857
  }
136840
136858
  const remainingSessions = globalConfig2.getSessions();
@@ -136846,13 +136864,17 @@ var logout = new Command("logout").description(commandDescriptions["logout"]).co
136846
136864
  } else if (remainingSessions.length > 0) {
136847
136865
  const nextSession = remainingSessions.find((session) => session.email) ?? remainingSessions[0];
136848
136866
  globalConfig2.setCurrentSession(nextSession.id);
136849
- success2(
136850
- nextSession.email ? `Switched to ${nextSession.email}` : `Switched to session at ${nextSession.endpoint}`
136851
- );
136867
+ if (!logoutFailed) {
136868
+ success2(
136869
+ nextSession.email ? `Switched to ${nextSession.email}` : `Switched to session at ${nextSession.endpoint}`
136870
+ );
136871
+ }
136852
136872
  } else if (remainingSessions.length === 0) {
136853
136873
  globalConfig2.setCurrentSession("");
136854
136874
  }
136855
- success2("Logged out successfully");
136875
+ if (!logoutFailed) {
136876
+ success2(logMessages.logoutSuccess);
136877
+ }
136856
136878
  })
136857
136879
  );
136858
136880
  var client = new Command("client").description(commandDescriptions["client"]).configureHelp({
@@ -136939,20 +136961,19 @@ var client = new Command("client").description(commandDescriptions["client"]).co
136939
136961
  }
136940
136962
  if (reset !== void 0) {
136941
136963
  const originalCurrent = globalConfig2.getCurrentSession();
136942
- const { failed, failedIds } = await logoutSessions(
136964
+ const { failed, failedIds, errors } = await logoutSessions(
136943
136965
  globalConfig2.getSessionIds()
136944
136966
  );
136945
136967
  if (failed > 0) {
136946
136968
  restoreCurrentSessionFallback(originalCurrent, failedIds);
136947
- hint(
136948
- "Could not reach server for all sessions; kept local session data"
136949
- );
136969
+ error51(logMessages.logoutFailure(errors));
136970
+ return;
136950
136971
  } else {
136951
136972
  globalConfig2.setCurrentSession("");
136952
136973
  }
136953
136974
  }
136954
136975
  if (!debug) {
136955
- success2("Setting client");
136976
+ success2(logMessages.clientConfigUpdated);
136956
136977
  }
136957
136978
  }
136958
136979
  )
package/dist/index.cjs CHANGED
@@ -65125,7 +65125,7 @@ var id_default = ID;
65125
65125
  // lib/constants.ts
65126
65126
  var SDK_TITLE = "Appwrite";
65127
65127
  var SDK_TITLE_LOWER = "appwrite";
65128
- var SDK_VERSION = "22.1.0";
65128
+ var SDK_VERSION = "22.1.2";
65129
65129
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
65130
65130
  var EXECUTABLE_NAME = "appwrite";
65131
65131
  var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
@@ -104431,7 +104431,7 @@ var package_default = {
104431
104431
  type: "module",
104432
104432
  homepage: "https://appwrite.io/support",
104433
104433
  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",
104434
- version: "22.1.0",
104434
+ version: "22.1.2",
104435
104435
  license: "BSD-3-Clause",
104436
104436
  main: "dist/index.cjs",
104437
104437
  module: "dist/index.js",
@@ -104471,12 +104471,12 @@ var package_default = {
104471
104471
  generate: "tsx scripts/generate-commands.ts",
104472
104472
  prepublishOnly: "npm run build",
104473
104473
  test: 'echo "Error: no test specified" && exit 1',
104474
- "linux-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
104475
- "linux-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
104476
- "mac-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
104477
- "mac-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
104478
- "windows-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
104479
- "windows-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
104474
+ "linux-x64": "bun build cli.ts --compile --minify --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
104475
+ "linux-arm64": "bun build cli.ts --compile --minify --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
104476
+ "mac-x64": "bun build cli.ts --compile --minify --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
104477
+ "mac-arm64": "bun build cli.ts --compile --minify --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
104478
+ "windows-x64": "bun build cli.ts --compile --minify --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
104479
+ "windows-arm64": "bun build cli.ts --compile --minify --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
104480
104480
  },
104481
104481
  dependencies: {
104482
104482
  "@appwrite.io/console": "^15.0.0",
package/dist/index.js CHANGED
@@ -65105,7 +65105,7 @@ var id_default = ID;
65105
65105
  // lib/constants.ts
65106
65106
  var SDK_TITLE = "Appwrite";
65107
65107
  var SDK_TITLE_LOWER = "appwrite";
65108
- var SDK_VERSION = "22.1.0";
65108
+ var SDK_VERSION = "22.1.2";
65109
65109
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
65110
65110
  var EXECUTABLE_NAME = "appwrite";
65111
65111
  var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
@@ -104411,7 +104411,7 @@ var package_default = {
104411
104411
  type: "module",
104412
104412
  homepage: "https://appwrite.io/support",
104413
104413
  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",
104414
- version: "22.1.0",
104414
+ version: "22.1.2",
104415
104415
  license: "BSD-3-Clause",
104416
104416
  main: "dist/index.cjs",
104417
104417
  module: "dist/index.js",
@@ -104451,12 +104451,12 @@ var package_default = {
104451
104451
  generate: "tsx scripts/generate-commands.ts",
104452
104452
  prepublishOnly: "npm run build",
104453
104453
  test: 'echo "Error: no test specified" && exit 1',
104454
- "linux-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
104455
- "linux-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
104456
- "mac-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
104457
- "mac-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
104458
- "windows-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
104459
- "windows-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
104454
+ "linux-x64": "bun build cli.ts --compile --minify --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
104455
+ "linux-arm64": "bun build cli.ts --compile --minify --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
104456
+ "mac-x64": "bun build cli.ts --compile --minify --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
104457
+ "mac-arm64": "bun build cli.ts --compile --minify --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
104458
+ "windows-x64": "bun build cli.ts --compile --minify --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
104459
+ "windows-arm64": "bun build cli.ts --compile --minify --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
104460
104460
  },
104461
104461
  dependencies: {
104462
104462
  "@appwrite.io/console": "^15.0.0",
@@ -24,7 +24,10 @@ export declare const removeCurrentSession: () => void;
24
24
  * legacy cookie sessions delete the current server session. Returns whether
25
25
  * the server-side cleanup succeeded.
26
26
  */
27
- export declare const deleteServerSession: (sessionId: string) => Promise<boolean>;
27
+ export declare const deleteServerSession: (sessionId: string) => Promise<{
28
+ deleted: boolean;
29
+ error?: string;
30
+ }>;
28
31
  /**
29
32
  * Log out a set of session IDs: local-only sessions are removed locally;
30
33
  * the rest are revoked server-side and removed locally on success. Returns
@@ -33,6 +36,7 @@ export declare const deleteServerSession: (sessionId: string) => Promise<boolean
33
36
  export declare const logoutSessions: (sessionIds: string[]) => Promise<{
34
37
  failed: number;
35
38
  failedIds: string[];
39
+ errors: string[];
36
40
  }>;
37
41
  export declare const removeLegacySessionsExcept: (sessionIdToKeep: string) => Promise<{
38
42
  removed: number;
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../lib/auth/session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,YAAY,MAAM,cAAc,CAAC;AAIxC;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,WAAW,MAAM,KAAG,WAAW,GAAG,SACL,CAAC;AAEzD,eAAO,MAAM,yBAAyB,GACpC,UAAU,MAAM,EAChB,aAAY,OAAsC,KACjD,YAQF,CAAC;AAEF,eAAO,MAAM,cAAc,QAAO,OACuC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,WAAW,MAAM,KAAG,OAGtD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,KAAG,OAGnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,WAAW,MAAM,KAAG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,eAAO,MAAM,KAAK,SAkBmB,CAAC;AAEtC,eAAO,MAAM,MAAM,SAuEhB,CAAC;AAWJ,eAAO,MAAM,MAAM,SAwIhB,CAAC;AAEJ,eAAO,MAAM,OAAO,QAAa,OAAO,CAAC,IAAI,CAmB5C,CAAC"}
1
+ {"version":3,"file":"generic.d.ts","sourceRoot":"","sources":["../../../lib/commands/generic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,OAAO,EAAqB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAQnE,OAAO,EAAE,YAAY,EAAE,CAAC;AAaxB,eAAO,MAAM,MAAM,SAgChB,CAAC;AAEJ,eAAO,MAAM,QAAQ,SAMlB,CAAC;AAEJ,eAAO,MAAM,KAAK,SAkBmB,CAAC;AAEtC,eAAO,MAAM,MAAM,SA0EhB,CAAC;AAWJ,eAAO,MAAM,MAAM,SAuIhB,CAAC;AAEJ,eAAO,MAAM,OAAO,QAAa,OAAO,CAAC,IAAI,CAmB5C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const SDK_TITLE = "Appwrite";
2
2
  export declare const SDK_TITLE_LOWER = "appwrite";
3
- export declare const SDK_VERSION = "22.1.0";
3
+ export declare const SDK_VERSION = "22.1.2";
4
4
  export declare const SDK_NAME = "Command Line";
5
5
  export declare const SDK_PLATFORM = "console";
6
6
  export declare const SDK_LANGUAGE = "cli";
@@ -15,7 +15,7 @@ export declare const GITHUB_REPO = "appwrite/sdk-for-cli";
15
15
  export declare const GITHUB_RELEASES_URL = "https://github.com/appwrite/sdk-for-cli/releases";
16
16
  export declare const DEFAULT_ENDPOINT = "https://cloud.appwrite.io/v1";
17
17
  export declare const OAUTH2_CLIENT_ID = "appwrite-cli";
18
- export declare const OAUTH2_SCOPES = "openid email profile";
18
+ export declare const OAUTH2_SCOPES = "openid email profile account.admin";
19
19
  export declare const CONFIG_RESOURCE_KEYS: readonly ["databases", "functions", "topics", "messages", "sites", "buckets", "tablesDB", "tables", "teams", "webhooks", "collections"];
20
20
  export declare const TOP_LEVEL_RESOURCE_ARRAY_KEYS: Set<string>;
21
21
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,YAAY,QAAQ,CAAC;AAClC,eAAO,MAAM,QAAQ,wXAA4Z,CAAC;AAGlb,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C,eAAO,MAAM,wBAAwB,QAAsB,CAAC;AAG5D,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAChD,eAAO,MAAM,gBAAgB,+BAA6B,CAAC;AAG3D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,gBAAgB,mDAA0D,CAAC;AAGxF,eAAO,MAAM,WAAW,yBAAyB,CAAC;AAClD,eAAO,MAAM,mBAAmB,qDAA+C,CAAC;AAGhF,eAAO,MAAM,gBAAgB,iCAAiC,CAAC;AAG/D,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,aAAa,yBAAyB,CAAC;AAGpD,eAAO,MAAM,oBAAoB,yIAYvB,CAAC;AAEX,eAAO,MAAM,6BAA6B,aAEzC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../lib/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MA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ACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAgEA;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,SAAS,EAAE,GAClB,SAAS,EAAE,CA6Bb;AAED,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EAAE,EAC1B,cAAc,EAAE,MAAM,EAAE,EACxB,WAAW,EAAE,OAAO,GACnB,IAAI,CAiEN;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAa3E;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,EACjE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,EAAE,CAAC,GACR,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAWZ"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "type": "module",
4
4
  "homepage": "https://appwrite.io/support",
5
5
  "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",
6
- "version": "22.1.0",
6
+ "version": "22.1.2",
7
7
  "license": "BSD-3-Clause",
8
8
  "main": "dist/index.cjs",
9
9
  "module": "dist/index.js",
@@ -43,12 +43,12 @@
43
43
  "generate": "tsx scripts/generate-commands.ts",
44
44
  "prepublishOnly": "npm run build",
45
45
  "test": "echo \"Error: no test specified\" && exit 1",
46
- "linux-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
47
- "linux-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
48
- "mac-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
49
- "mac-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
50
- "windows-x64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
51
- "windows-arm64": "bun build cli.ts --compile --sourcemap=inline --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
46
+ "linux-x64": "bun build cli.ts --compile --minify --target=bun-linux-x64 --outfile build/appwrite-cli-linux-x64",
47
+ "linux-arm64": "bun build cli.ts --compile --minify --target=bun-linux-arm64 --outfile build/appwrite-cli-linux-arm64",
48
+ "mac-x64": "bun build cli.ts --compile --minify --target=bun-darwin-x64 --outfile build/appwrite-cli-darwin-x64",
49
+ "mac-arm64": "bun build cli.ts --compile --minify --target=bun-darwin-arm64 --outfile build/appwrite-cli-darwin-arm64",
50
+ "windows-x64": "bun build cli.ts --compile --minify --target=bun-windows-x64 --outfile build/appwrite-cli-win-x64.exe",
51
+ "windows-arm64": "bun build cli.ts --compile --minify --target=bun-windows-arm64 --outfile build/appwrite-cli-win-arm64.exe"
52
52
  },
53
53
  "dependencies": {
54
54
  "@appwrite.io/console": "^15.0.0",