appwrite-cli 22.6.0 → 22.6.1

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.6.0
32
+ 22.6.1
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.6.0
86
+ 22.6.1
87
87
  ```
88
88
 
89
89
  ## Getting Started
package/dist/cli.cjs CHANGED
@@ -86545,7 +86545,7 @@ var package_default = {
86545
86545
  type: "module",
86546
86546
  homepage: "https://appwrite.io/support",
86547
86547
  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",
86548
- version: "22.6.0",
86548
+ version: "22.6.1",
86549
86549
  license: "BSD-3-Clause",
86550
86550
  main: "dist/index.cjs",
86551
86551
  module: "dist/index.js",
@@ -86621,21 +86621,21 @@ var package_default = {
86621
86621
  esbuild: "^0.28.1"
86622
86622
  },
86623
86623
  devDependencies: {
86624
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
86625
+ "@typescript-eslint/parser": "^8.0.0",
86624
86626
  "@types/bun": "^1.3.5",
86627
+ eslint: "^9.0.0",
86628
+ "eslint-plugin-unused-imports": "^4.0.0",
86629
+ "typescript-eslint": "^8.0.0",
86625
86630
  "@types/cli-progress": "^3.11.5",
86626
86631
  "@types/inquirer": "^8.2.10",
86627
86632
  "@types/json-bigint": "^1.0.4",
86628
86633
  "@types/node": "^18.19.0",
86629
86634
  "@types/tar": "^6.1.13",
86630
- "@typescript-eslint/eslint-plugin": "^8.0.0",
86631
- "@typescript-eslint/parser": "^8.0.0",
86632
86635
  esbuild: "^0.28.1",
86633
- eslint: "^9.0.0",
86634
- "eslint-plugin-unused-imports": "^4.0.0",
86635
86636
  prettier: "^3.7.4",
86636
86637
  tsx: "^4.21.0",
86637
- typescript: "^5.3.3",
86638
- "typescript-eslint": "^8.0.0"
86638
+ typescript: "^5.3.3"
86639
86639
  }
86640
86640
  };
86641
86641
 
@@ -101277,7 +101277,7 @@ var validateCrossDatabase = (data, ctx) => {
101277
101277
  // lib/constants.ts
101278
101278
  var SDK_TITLE = "Appwrite";
101279
101279
  var SDK_TITLE_LOWER = "appwrite";
101280
- var SDK_VERSION = "22.6.0";
101280
+ var SDK_VERSION = "22.6.1";
101281
101281
  var SDK_NAME = "Command Line";
101282
101282
  var SDK_PLATFORM = "console";
101283
101283
  var SDK_LANGUAGE = "cli";
@@ -154048,29 +154048,29 @@ var getOauth2Client = async () => {
154048
154048
  var oauth2 = new Command("oauth-2").description(commandDescriptions["oauth2"] ?? "").configureHelp({
154049
154049
  helpWidth: process.stdout.columns || 80
154050
154050
  });
154051
- var oauth2AuthorizeCommand = oauth2.command(`authorize`).description(`Begin the OAuth2 authorization flow. When called without a session, the user is redirected to the consent screen without grant ID. When called with a session, the redirect URL includes param for grant ID. You can pass Accept header of \`application/json\` to receive a JSON response instead of a redirect.`).option(`--client-_id <client-_id>`, `OAuth2 client ID.`).option(`--redirect-_uri <redirect-_uri>`, `Redirect URI where visitor will be redirected after authorization, whether successful or not.`).option(`--response-_type <response-_type>`, `OAuth2 / OIDC response type. One of \`code\` (Authorization Code Flow), \`id_token\` (Implicit Flow, OIDC login only), or \`code id_token\` (Hybrid Flow).`).option(`--scope <scope>`, `Space-separated OAuth2 scopes. Can include project scopes, and built-in scopes: \`openid\`, \`email\`, \`profile\`, \`phone\`.`).option(`--state <state>`, `OAuth2 state. You receive this back in the redirect URI.`).option(`--nonce <nonce>`, `OIDC nonce parameter to prevent replay attacks. Required when response_type includes \`id_token\`.`).option(`--code-_challenge <code-_challenge>`, `PKCE code challenge. Required when OAuth2 app is public.`).option(`--code-_challenge-_method <code-_challenge-_method>`, `PKCE code challenge method. Required when OAuth2 app is public.`).option(`--prompt <prompt>`, `OIDC prompt parameter for customization of consent screen. Space-separated list of: none, login, consent, select_account.`).option(`--max-_age <max-_age>`, `OIDC max_age paraleter for customization of consent screen. Maximum allowable elapsed time in seconds since the user last authenticated. If exceeded, re-authentication is required.`, parseInteger).option(`--authorization-_details <authorization-_details>`, `Rich authorization request. JSON array of objects, each with a \`type\` and project-defined fields`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).option(`--request-_uri <request-_uri>`, `OAuth2 authorization request handle returned by the pushed authorization request endpoint.`).action(
154051
+ var oauth2AuthorizeCommand = oauth2.command(`authorize`).description(`Begin the OAuth2 authorization flow. When called without a session, the user is redirected to the consent screen without grant ID. When called with a session, the redirect URL includes param for grant ID. You can pass Accept header of \`application/json\` to receive a JSON response instead of a redirect.`).option(`--client-id <client-id>`, `OAuth2 client ID.`).option(`--redirect-uri <redirect-uri>`, `Redirect URI where visitor will be redirected after authorization, whether successful or not.`).option(`--response-type <response-type>`, `OAuth2 / OIDC response type. One of \`code\` (Authorization Code Flow), \`id_token\` (Implicit Flow, OIDC login only), or \`code id_token\` (Hybrid Flow).`).option(`--scope <scope>`, `Space-separated OAuth2 scopes. Can include project scopes, and built-in scopes: \`openid\`, \`email\`, \`profile\`, \`phone\`.`).option(`--state <state>`, `OAuth2 state. You receive this back in the redirect URI.`).option(`--nonce <nonce>`, `OIDC nonce parameter to prevent replay attacks. Required when response_type includes \`id_token\`.`).option(`--code-challenge <code-challenge>`, `PKCE code challenge. Required when OAuth2 app is public.`).option(`--code-challenge-method <code-challenge-method>`, `PKCE code challenge method. Required when OAuth2 app is public.`).option(`--prompt <prompt>`, `OIDC prompt parameter for customization of consent screen. Space-separated list of: none, login, consent, select_account.`).option(`--max-age <max-age>`, `OIDC max_age paraleter for customization of consent screen. Maximum allowable elapsed time in seconds since the user last authenticated. If exceeded, re-authentication is required.`, parseInteger).option(`--authorization-details <authorization-details>`, `Rich authorization request. JSON array of objects, each with a \`type\` and project-defined fields`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).option(`--request-uri <request-uri>`, `OAuth2 authorization request handle returned by the pushed authorization request endpoint.`).action(
154052
154052
  actionRunner(
154053
- async ({ client_id, redirect_uri, response_type, scope, state, nonce, code_challenge, code_challenge_method, prompt, max_age, authorization_details, resource, request_uri }) => parse3(await (await getOauth2Client()).authorize(client_id, redirect_uri, response_type, scope, state, nonce, code_challenge, code_challenge_method, prompt, max_age, authorization_details, resource, request_uri))
154053
+ async ({ clientId, redirectUri, responseType, scope, state, nonce, codeChallenge, codeChallengeMethod, prompt, maxAge, authorizationDetails, resource, requestUri }) => parse3(await (await getOauth2Client()).authorize(clientId, redirectUri, responseType, scope, state, nonce, codeChallenge, codeChallengeMethod, prompt, maxAge, authorizationDetails, resource, requestUri))
154054
154054
  )
154055
154055
  );
154056
- var oauth2CreateDeviceAuthorizationCommand = oauth2.command(`create-device-authorization`).description(`Start the OAuth2 Device Authorization Grant. Returns the device code, user code, verification URL, expiration, and polling interval.`).option(`--client-_id <client-_id>`, `OAuth2 client ID.`).option(`--scope <scope>`, `Space-separated OAuth2 scopes. Can include project scopes, and built-in scopes: \`openid\`, \`email\`, \`profile\`.`).option(`--authorization-_details <authorization-_details>`, `Rich authorization request. JSON array of objects, each with a \`type\` and project-defined fields`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).action(
154056
+ var oauth2CreateDeviceAuthorizationCommand = oauth2.command(`create-device-authorization`).description(`Start the OAuth2 Device Authorization Grant. Returns the device code, user code, verification URL, expiration, and polling interval.`).option(`--client-id <client-id>`, `OAuth2 client ID.`).option(`--scope <scope>`, `Space-separated OAuth2 scopes. Can include project scopes, and built-in scopes: \`openid\`, \`email\`, \`profile\`.`).option(`--authorization-details <authorization-details>`, `Rich authorization request. JSON array of objects, each with a \`type\` and project-defined fields`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).action(
154057
154057
  actionRunner(
154058
- async ({ client_id, scope, authorization_details, resource }) => parse3(await (await getOauth2Client()).createDeviceAuthorization(client_id, scope, authorization_details, resource))
154058
+ async ({ clientId, scope, authorizationDetails, resource }) => parse3(await (await getOauth2Client()).createDeviceAuthorization(clientId, scope, authorizationDetails, resource))
154059
154059
  )
154060
154060
  );
154061
- var oauth2CreateGrantCommand = oauth2.command(`create-grant`).description(`Exchange a device flow user code for an OAuth2 grant. The authenticated user is bound to the pending grant. Pass the returned grant ID to the get grant endpoint to render the consent screen, then to the approve or reject endpoint to complete the flow.`).requiredOption(`--user-_code <user-_code>`, `User code displayed on the device.`).action(
154061
+ var oauth2CreateGrantCommand = oauth2.command(`create-grant`).description(`Exchange a device flow user code for an OAuth2 grant. The authenticated user is bound to the pending grant. Pass the returned grant ID to the get grant endpoint to render the consent screen, then to the approve or reject endpoint to complete the flow.`).requiredOption(`--user-code <user-code>`, `User code displayed on the device.`).action(
154062
154062
  actionRunner(
154063
- async ({ user_code }) => parse3(await (await getOauth2Client()).createGrant(user_code))
154063
+ async ({ userCode }) => parse3(await (await getOauth2Client()).createGrant(userCode))
154064
154064
  )
154065
154065
  );
154066
- var oauth2GetGrantCommand = oauth2.command(`get-grant`).description(`Get an OAuth2 grant by its ID. Used by the consent screen to display the details of the authorization the user is being asked to approve. A grant can only be read by the user it belongs to, or by server SDK.`).requiredOption(`--grant-_id <grant-_id>`, `Grant ID made during authorization, provided to consent screen in URL search params.`).action(
154066
+ var oauth2GetGrantCommand = oauth2.command(`get-grant`).description(`Get an OAuth2 grant by its ID. Used by the consent screen to display the details of the authorization the user is being asked to approve. A grant can only be read by the user it belongs to, or by server SDK.`).requiredOption(`--grant-id <grant-id>`, `Grant ID made during authorization, provided to consent screen in URL search params.`).action(
154067
154067
  actionRunner(
154068
- async ({ grant_id }) => parse3(await (await getOauth2Client()).getGrant(grant_id))
154068
+ async ({ grantId }) => parse3(await (await getOauth2Client()).getGrant(grantId))
154069
154069
  )
154070
154070
  );
154071
- var oauth2LogoutCommand = oauth2.command(`logout`).description(`OpenID Connect RP-Initiated Logout. Ends the user session and revokes the tokens issued to the app identified by the \`id_token_hint\`, then redirects the user to \`post_logout_redirect_uri\` when it matches a URI registered on the app.`).option(`--id-_token-_hint <id-_token-_hint>`, `ID Token previously issued to the app, used as proof of the logout request. Required to end the session; signature and issuer are validated while expiry is ignored.`).option(`--logout-_hint <logout-_hint>`, `Hint about the user that is logging out. Accepted for OIDC compatibility.`).option(`--client-_id <client-_id>`, `OAuth2 client ID. When both \`client_id\` and \`id_token_hint\` are provided, they must identify the same app.`).option(`--post-_logout-_redirect-_uri <post-_logout-_redirect-_uri>`, `URI to redirect the user to after logout. Must exactly match a URI registered in the app's \`postLogoutRedirectUris\`.`).option(`--state <state>`, `Opaque value passed back unchanged in the \`state\` query param of the post-logout redirect.`).option(`--ui-_locales <ui-_locales>`, `Preferred languages for any logout UI, as space-separated BCP47 tags. Accepted for OIDC compatibility.`).action(
154071
+ var oauth2LogoutCommand = oauth2.command(`logout`).description(`OpenID Connect RP-Initiated Logout. Ends the user session and revokes the tokens issued to the app identified by the \`id_token_hint\`, then redirects the user to \`post_logout_redirect_uri\` when it matches a URI registered on the app.`).option(`--id-token-hint <id-token-hint>`, `ID Token previously issued to the app, used as proof of the logout request. Required to end the session; signature and issuer are validated while expiry is ignored.`).option(`--logout-hint <logout-hint>`, `Hint about the user that is logging out. Accepted for OIDC compatibility.`).option(`--client-id <client-id>`, `OAuth2 client ID. When both \`client_id\` and \`id_token_hint\` are provided, they must identify the same app.`).option(`--post-logout-redirect-uri <post-logout-redirect-uri>`, `URI to redirect the user to after logout. Must exactly match a URI registered in the app's \`postLogoutRedirectUris\`.`).option(`--state <state>`, `Opaque value passed back unchanged in the \`state\` query param of the post-logout redirect.`).option(`--ui-locales <ui-locales>`, `Preferred languages for any logout UI, as space-separated BCP47 tags. Accepted for OIDC compatibility.`).action(
154072
154072
  actionRunner(
154073
- async ({ id_token_hint, logout_hint, client_id, post_logout_redirect_uri, state, ui_locales }) => parse3(await (await getOauth2Client()).logout(id_token_hint, logout_hint, client_id, post_logout_redirect_uri, state, ui_locales))
154073
+ async ({ idTokenHint, logoutHint, clientId, postLogoutRedirectUri, state, uiLocales }) => parse3(await (await getOauth2Client()).logout(idTokenHint, logoutHint, clientId, postLogoutRedirectUri, state, uiLocales))
154074
154074
  )
154075
154075
  );
154076
154076
  var oauth2ListOrganizationsCommand = oauth2.command(`list-organizations`).description(`List the organizations the OAuth2 access token can access. Resolves the token's \`organization\` authorization details, expanding the \`*\` wildcard into the concrete set of organizations the user can see.`).option(`--limit <limit>`, `Maximum number of organizations to return. Between 1 and 5000.`, parseInteger).option(`--offset <offset>`, `Number of organizations to skip before returning results. Used for pagination.`, parseInteger).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).action(
@@ -154078,9 +154078,9 @@ var oauth2ListOrganizationsCommand = oauth2.command(`list-organizations`).descri
154078
154078
  async ({ limit, offset, search }) => parse3(await (await getOauth2Client()).listOrganizations(limit, offset, search))
154079
154079
  )
154080
154080
  );
154081
- var oauth2CreatePARCommand = oauth2.command(`create-par`).description(`Store an OAuth2 authorization request server-side and receive a short-lived request_uri handle for the authorize endpoint.`).requiredOption(`--client-_id <client-_id>`, `OAuth2 client ID.`).requiredOption(`--redirect-_uri <redirect-_uri>`, `Redirect URI where visitor will be redirected after authorization, whether successful or not.`).requiredOption(`--response-_type <response-_type>`, `OAuth2 / OIDC response type.`).requiredOption(`--scope <scope>`, `Space-separated OAuth2 scopes. Can include project scopes, and built-in scopes: \`openid\`, \`email\`, \`profile\`, \`phone\`.`).option(`--state <state>`, `OAuth2 state. You receive this back in the redirect URI.`).option(`--nonce <nonce>`, `OIDC nonce parameter to prevent replay attacks. Required when response_type includes \`id_token\`.`).option(`--code-_challenge <code-_challenge>`, `PKCE code challenge. Required when OAuth2 app is public.`).option(`--code-_challenge-_method <code-_challenge-_method>`, `PKCE code challenge method. Required when OAuth2 app is public.`).option(`--prompt <prompt>`, `OIDC prompt parameter for customization of consent screen. Space-separated list of: none, login, consent, select_account.`).option(`--max-_age <max-_age>`, `OIDC max_age parameter for customization of consent screen.`, parseInteger).option(`--authorization-_details <authorization-_details>`, `Rich authorization request. JSON array of objects, each with a \`type\` and project-defined fields`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).action(
154081
+ var oauth2CreatePARCommand = oauth2.command(`create-par`).description(`Store an OAuth2 authorization request server-side and receive a short-lived request_uri handle for the authorize endpoint.`).requiredOption(`--client-id <client-id>`, `OAuth2 client ID.`).requiredOption(`--redirect-uri <redirect-uri>`, `Redirect URI where visitor will be redirected after authorization, whether successful or not.`).requiredOption(`--response-type <response-type>`, `OAuth2 / OIDC response type.`).requiredOption(`--scope <scope>`, `Space-separated OAuth2 scopes. Can include project scopes, and built-in scopes: \`openid\`, \`email\`, \`profile\`, \`phone\`.`).option(`--state <state>`, `OAuth2 state. You receive this back in the redirect URI.`).option(`--nonce <nonce>`, `OIDC nonce parameter to prevent replay attacks. Required when response_type includes \`id_token\`.`).option(`--code-challenge <code-challenge>`, `PKCE code challenge. Required when OAuth2 app is public.`).option(`--code-challenge-method <code-challenge-method>`, `PKCE code challenge method. Required when OAuth2 app is public.`).option(`--prompt <prompt>`, `OIDC prompt parameter for customization of consent screen. Space-separated list of: none, login, consent, select_account.`).option(`--max-age <max-age>`, `OIDC max_age parameter for customization of consent screen.`, parseInteger).option(`--authorization-details <authorization-details>`, `Rich authorization request. JSON array of objects, each with a \`type\` and project-defined fields`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).action(
154082
154082
  actionRunner(
154083
- async ({ client_id, redirect_uri, response_type, scope, state, nonce, code_challenge, code_challenge_method, prompt, max_age, authorization_details, resource }) => parse3(await (await getOauth2Client()).createPAR(client_id, redirect_uri, response_type, scope, state, nonce, code_challenge, code_challenge_method, prompt, max_age, authorization_details, resource))
154083
+ async ({ clientId, redirectUri, responseType, scope, state, nonce, codeChallenge, codeChallengeMethod, prompt, maxAge, authorizationDetails, resource }) => parse3(await (await getOauth2Client()).createPAR(clientId, redirectUri, responseType, scope, state, nonce, codeChallenge, codeChallengeMethod, prompt, maxAge, authorizationDetails, resource))
154084
154084
  )
154085
154085
  );
154086
154086
  var oauth2ListProjectsCommand = oauth2.command(`list-projects`).description(`List the projects the OAuth2 access token can access. Resolves the token's \`project\` authorization details, expanding the \`*\` wildcard into the concrete set of projects the user can see.`).option(`--limit <limit>`, `Maximum number of projects to return. Between 1 and 5000.`, parseInteger).option(`--offset <offset>`, `Number of projects to skip before returning results. Used for pagination.`, parseInteger).option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`).action(
@@ -154088,19 +154088,19 @@ var oauth2ListProjectsCommand = oauth2.command(`list-projects`).description(`Lis
154088
154088
  async ({ limit, offset, search }) => parse3(await (await getOauth2Client()).listProjects(limit, offset, search))
154089
154089
  )
154090
154090
  );
154091
- var oauth2RejectCommand = oauth2.command(`reject`).description(`Reject an OAuth2 grant when the user denies consent. Returns the \`redirectUrl\` the end user should be sent to with an \`access_denied\` error. You can pass Accept header of \`application/json\` to receive a JSON response instead of a redirect.`).requiredOption(`--grant-_id <grant-_id>`, `Grant ID made during authorization, provided to consent screen in URL search params.`).action(
154091
+ var oauth2RejectCommand = oauth2.command(`reject`).description(`Reject an OAuth2 grant when the user denies consent. Returns the \`redirectUrl\` the end user should be sent to with an \`access_denied\` error. You can pass Accept header of \`application/json\` to receive a JSON response instead of a redirect.`).requiredOption(`--grant-id <grant-id>`, `Grant ID made during authorization, provided to consent screen in URL search params.`).action(
154092
154092
  actionRunner(
154093
- async ({ grant_id }) => parse3(await (await getOauth2Client()).reject(grant_id))
154093
+ async ({ grantId }) => parse3(await (await getOauth2Client()).reject(grantId))
154094
154094
  )
154095
154095
  );
154096
- var oauth2RevokeCommand = oauth2.command(`revoke`).description(`Revoke an OAuth2 access token or refresh token.`).requiredOption(`--token <token>`, `The access or refresh token to revoke.`).option(`--token-_type-_hint <token-_type-_hint>`, `Type of token to revoke (access_token or refresh_token).`).option(`--client-_id <client-_id>`, `OAuth2 client ID.`).option(`--client-_secret <client-_secret>`, `OAuth2 client secret. Required for confidential apps; omitted for public apps.`).action(
154096
+ var oauth2RevokeCommand = oauth2.command(`revoke`).description(`Revoke an OAuth2 access token or refresh token.`).requiredOption(`--token <token>`, `The access or refresh token to revoke.`).option(`--token-type-hint <token-type-hint>`, `Type of token to revoke (access_token or refresh_token).`).option(`--client-id <client-id>`, `OAuth2 client ID.`).option(`--client-secret <client-secret>`, `OAuth2 client secret. Required for confidential apps; omitted for public apps.`).action(
154097
154097
  actionRunner(
154098
- async ({ token, token_type_hint, client_id, client_secret }) => parse3(await (await getOauth2Client()).revoke(token, token_type_hint, client_id, client_secret))
154098
+ async ({ token, tokenTypeHint, clientId, clientSecret }) => parse3(await (await getOauth2Client()).revoke(token, tokenTypeHint, clientId, clientSecret))
154099
154099
  )
154100
154100
  );
154101
- var oauth2CreateTokenCommand = oauth2.command(`create-token`).description(`Exchange an OAuth2 authorization code, refresh token, or device code for access and refresh tokens.`).requiredOption(`--grant-_type <grant-_type>`, `OAuth2 grant type. Can be one of: \`authorization_code\`, \`refresh_token\`, \`urn:ietf:params:oauth:grant-type:device_code\`.`).option(`--code <code>`, `Authorization code to be exchanged for access and refresh tokens. Required for \`authorization_code\` grant type.`).option(`--refresh-_token <refresh-_token>`, `Refresh token to be exchanged for a new access and refresh tokens. Required for \`refresh_token\` grant type.`).option(`--device-_code <device-_code>`, `Device code obtained from the device authorization endpoint. Required for \`urn:ietf:params:oauth:grant-type:device_code\` grant type.`).option(`--client-_id <client-_id>`, `OAuth2 client ID.`).option(`--client-_secret <client-_secret>`, `OAuth2 client secret. Required for confidential apps.`).option(`--code-_verifier <code-_verifier>`, `PKCE code verifier. Required for public apps.`).option(`--redirect-_uri <redirect-_uri>`, `Redirect URI. Required for \`authorization_code\` grant type.`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).action(
154101
+ var oauth2CreateTokenCommand = oauth2.command(`create-token`).description(`Exchange an OAuth2 authorization code, refresh token, or device code for access and refresh tokens.`).requiredOption(`--grant-type <grant-type>`, `OAuth2 grant type. Can be one of: \`authorization_code\`, \`refresh_token\`, \`urn:ietf:params:oauth:grant-type:device_code\`.`).option(`--code <code>`, `Authorization code to be exchanged for access and refresh tokens. Required for \`authorization_code\` grant type.`).option(`--refresh-token <refresh-token>`, `Refresh token to be exchanged for a new access and refresh tokens. Required for \`refresh_token\` grant type.`).option(`--device-code <device-code>`, `Device code obtained from the device authorization endpoint. Required for \`urn:ietf:params:oauth:grant-type:device_code\` grant type.`).option(`--client-id <client-id>`, `OAuth2 client ID.`).option(`--client-secret <client-secret>`, `OAuth2 client secret. Required for confidential apps.`).option(`--code-verifier <code-verifier>`, `PKCE code verifier. Required for public apps.`).option(`--redirect-uri <redirect-uri>`, `Redirect URI. Required for \`authorization_code\` grant type.`).option(`--resource <resource>`, `RFC 8707 resource indicator URI or URI list. Each value must be an absolute URI without a fragment.`).action(
154102
154102
  actionRunner(
154103
- async ({ grant_type, code, refresh_token, device_code, client_id, client_secret, code_verifier, redirect_uri, resource }) => parse3(await (await getOauth2Client()).createToken(grant_type, code, refresh_token, device_code, client_id, client_secret, code_verifier, redirect_uri, resource))
154103
+ async ({ grantType, code, refreshToken, deviceCode, clientId, clientSecret, codeVerifier, redirectUri, resource }) => parse3(await (await getOauth2Client()).createToken(grantType, code, refreshToken, deviceCode, clientId, clientSecret, codeVerifier, redirectUri, resource))
154104
154104
  )
154105
154105
  );
154106
154106
 
package/dist/index.cjs CHANGED
@@ -65571,7 +65571,7 @@ var id_default = ID;
65571
65571
  // lib/constants.ts
65572
65572
  var SDK_TITLE = "Appwrite";
65573
65573
  var SDK_TITLE_LOWER = "appwrite";
65574
- var SDK_VERSION = "22.6.0";
65574
+ var SDK_VERSION = "22.6.1";
65575
65575
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
65576
65576
  var EXECUTABLE_NAME = "appwrite";
65577
65577
  var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
@@ -105287,7 +105287,7 @@ var package_default = {
105287
105287
  type: "module",
105288
105288
  homepage: "https://appwrite.io/support",
105289
105289
  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",
105290
- version: "22.6.0",
105290
+ version: "22.6.1",
105291
105291
  license: "BSD-3-Clause",
105292
105292
  main: "dist/index.cjs",
105293
105293
  module: "dist/index.js",
@@ -105363,21 +105363,21 @@ var package_default = {
105363
105363
  esbuild: "^0.28.1"
105364
105364
  },
105365
105365
  devDependencies: {
105366
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
105367
+ "@typescript-eslint/parser": "^8.0.0",
105366
105368
  "@types/bun": "^1.3.5",
105369
+ eslint: "^9.0.0",
105370
+ "eslint-plugin-unused-imports": "^4.0.0",
105371
+ "typescript-eslint": "^8.0.0",
105367
105372
  "@types/cli-progress": "^3.11.5",
105368
105373
  "@types/inquirer": "^8.2.10",
105369
105374
  "@types/json-bigint": "^1.0.4",
105370
105375
  "@types/node": "^18.19.0",
105371
105376
  "@types/tar": "^6.1.13",
105372
- "@typescript-eslint/eslint-plugin": "^8.0.0",
105373
- "@typescript-eslint/parser": "^8.0.0",
105374
105377
  esbuild: "^0.28.1",
105375
- eslint: "^9.0.0",
105376
- "eslint-plugin-unused-imports": "^4.0.0",
105377
105378
  prettier: "^3.7.4",
105378
105379
  tsx: "^4.21.0",
105379
- typescript: "^5.3.3",
105380
- "typescript-eslint": "^8.0.0"
105380
+ typescript: "^5.3.3"
105381
105381
  }
105382
105382
  };
105383
105383
 
package/dist/index.js CHANGED
@@ -65551,7 +65551,7 @@ var id_default = ID;
65551
65551
  // lib/constants.ts
65552
65552
  var SDK_TITLE = "Appwrite";
65553
65553
  var SDK_TITLE_LOWER = "appwrite";
65554
- var SDK_VERSION = "22.6.0";
65554
+ var SDK_VERSION = "22.6.1";
65555
65555
  var SDK_LOGO = "\n _ _ _ ___ __ _____\n /_\\ _ __ _ ____ ___ __(_) |_ ___ / __\\ / / \\_ \\\n //_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\ / / / / / /\\/\n / _ \\ |_) | |_) \\ V V /| | | | || __/ / /___/ /___/\\/ /_\n \\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___| \\____/\\____/\\____/\n |_| |_|\n\n";
65556
65556
  var EXECUTABLE_NAME = "appwrite";
65557
65557
  var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
@@ -105267,7 +105267,7 @@ var package_default = {
105267
105267
  type: "module",
105268
105268
  homepage: "https://appwrite.io/support",
105269
105269
  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",
105270
- version: "22.6.0",
105270
+ version: "22.6.1",
105271
105271
  license: "BSD-3-Clause",
105272
105272
  main: "dist/index.cjs",
105273
105273
  module: "dist/index.js",
@@ -105343,21 +105343,21 @@ var package_default = {
105343
105343
  esbuild: "^0.28.1"
105344
105344
  },
105345
105345
  devDependencies: {
105346
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
105347
+ "@typescript-eslint/parser": "^8.0.0",
105346
105348
  "@types/bun": "^1.3.5",
105349
+ eslint: "^9.0.0",
105350
+ "eslint-plugin-unused-imports": "^4.0.0",
105351
+ "typescript-eslint": "^8.0.0",
105347
105352
  "@types/cli-progress": "^3.11.5",
105348
105353
  "@types/inquirer": "^8.2.10",
105349
105354
  "@types/json-bigint": "^1.0.4",
105350
105355
  "@types/node": "^18.19.0",
105351
105356
  "@types/tar": "^6.1.13",
105352
- "@typescript-eslint/eslint-plugin": "^8.0.0",
105353
- "@typescript-eslint/parser": "^8.0.0",
105354
105357
  esbuild: "^0.28.1",
105355
- eslint: "^9.0.0",
105356
- "eslint-plugin-unused-imports": "^4.0.0",
105357
105358
  prettier: "^3.7.4",
105358
105359
  tsx: "^4.21.0",
105359
- typescript: "^5.3.3",
105360
- "typescript-eslint": "^8.0.0"
105360
+ typescript: "^5.3.3"
105361
105361
  }
105362
105362
  };
105363
105363
 
@@ -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.6.0";
3
+ export declare const SDK_VERSION = "22.6.1";
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";
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.6.0",
6
+ "version": "22.6.1",
7
7
  "license": "BSD-3-Clause",
8
8
  "main": "dist/index.cjs",
9
9
  "module": "dist/index.js",
@@ -79,20 +79,20 @@
79
79
  "esbuild": "^0.28.1"
80
80
  },
81
81
  "devDependencies": {
82
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
83
+ "@typescript-eslint/parser": "^8.0.0",
82
84
  "@types/bun": "^1.3.5",
85
+ "eslint": "^9.0.0",
86
+ "eslint-plugin-unused-imports": "^4.0.0",
87
+ "typescript-eslint": "^8.0.0",
83
88
  "@types/cli-progress": "^3.11.5",
84
89
  "@types/inquirer": "^8.2.10",
85
90
  "@types/json-bigint": "^1.0.4",
86
91
  "@types/node": "^18.19.0",
87
92
  "@types/tar": "^6.1.13",
88
- "@typescript-eslint/eslint-plugin": "^8.0.0",
89
- "@typescript-eslint/parser": "^8.0.0",
90
93
  "esbuild": "^0.28.1",
91
- "eslint": "^9.0.0",
92
- "eslint-plugin-unused-imports": "^4.0.0",
93
94
  "prettier": "^3.7.4",
94
95
  "tsx": "^4.21.0",
95
- "typescript": "^5.3.3",
96
- "typescript-eslint": "^8.0.0"
96
+ "typescript": "^5.3.3"
97
97
  }
98
98
  }