@naturali/cli 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -5
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
14
14
  };
15
15
  //#endregion
16
16
  //#region package.json
17
- var version = "0.30.0";
17
+ var version = "0.31.0";
18
18
  //#endregion
19
19
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
20
20
  const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
@@ -801,7 +801,7 @@ var Auth = class {
801
801
  /**
802
802
  * Refresh a session
803
803
  *
804
- * Exchanges a valid refresh token for a new access JWT and a rotated refresh token. Refresh tokens are single-use; presenting a previously-rotated token is treated as reuse and revokes the whole session family (createRefreshRotation reuse detection).
804
+ * Exchanges a valid refresh token for a new access JWT and a rotated refresh token, taken from the body or from the `refresh_token` cookie set at sign-in — a browser sends an empty body and the cookie carries the credential. Refresh tokens are single-use; presenting a previously-rotated token is treated as reuse and revokes the whole session family (createRefreshRotation reuse detection), except within a few seconds of the rotation, where it is treated as two tabs racing on one cookie and rotated again.
805
805
  *
806
806
  */
807
807
  static refreshSession(options) {
@@ -817,7 +817,7 @@ var Auth = class {
817
817
  /**
818
818
  * Log out
819
819
  *
820
- * Revokes the current refresh token (and its rotation family). Pass `all: true` to revoke every active session for the user.
820
+ * Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user.
821
821
  *
822
822
  */
823
823
  static logout(options) {
@@ -2569,7 +2569,7 @@ const routes = {
2569
2569
  "refresh-session": {
2570
2570
  serviceClass: "Auth",
2571
2571
  operationId: "refreshSession",
2572
- description: "Exchanges a valid refresh token for a new access JWT and a rotated refresh token. Refresh tokens are single-use; presenting a previously-rotated token is treated as reuse and revokes the whole session family (createRefreshRotation reuse detection).",
2572
+ description: "Exchanges a valid refresh token for a new access JWT and a rotated refresh token, taken from the body or from the `refresh_token` cookie set at sign-in — a browser sends an empty body and the cookie carries the credential. Refresh tokens are single-use; presenting a previously-rotated token is treated as reuse and revokes the whole session family (createRefreshRotation reuse detection), except within a few seconds of the rotation, where it is treated as two tabs racing on one cookie and rotated again.",
2573
2573
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/auth",
2574
2574
  httpMethod: "post",
2575
2575
  pathParams: [],
@@ -2585,7 +2585,7 @@ const routes = {
2585
2585
  "logout": {
2586
2586
  serviceClass: "Auth",
2587
2587
  operationId: "logout",
2588
- description: "Revokes the current refresh token (and its rotation family). Pass `all: true` to revoke every active session for the user.",
2588
+ description: "Revokes the current refresh token (and its rotation family) and clears the `refresh_token` cookie. Pass `all: true` to revoke every active session for the user.",
2589
2589
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/auth",
2590
2590
  httpMethod: "post",
2591
2591
  pathParams: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "tsx": "^4.23.1",
31
31
  "typescript": "~6.0.3",
32
32
  "vitest": "^4.1.10",
33
- "@naturali/sdk": "0.30.0"
33
+ "@naturali/sdk": "0.31.0"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",