@naturali/sdk 0.211.8 → 0.211.10

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/index.cjs CHANGED
@@ -1973,7 +1973,7 @@ var Auth = class {
1973
1973
  /**
1974
1974
  * Log out
1975
1975
  *
1976
- * 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.
1976
+ * 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; only a signed-in user's session may, not an API key or a connected app.
1977
1977
  *
1978
1978
  */
1979
1979
  static logout(options) {
@@ -6130,7 +6130,8 @@ var Users = class {
6130
6130
  /**
6131
6131
  * Remove the saved card
6132
6132
  *
6133
- * Forgets the saved card and turns auto-recharge off.
6133
+ * Forgets the saved card and turns auto-recharge off. Refused while a paid plan is in effect or is the next plan, or a statement is not yet settled: move to Free first, and remove the card once Free is in effect and its last statement is paid.
6134
+ *
6134
6135
  */
6135
6136
  static deleteCurrentUserPaymentMethod(options) {
6136
6137
  return (options?.client ?? client).delete({
package/dist/index.d.cts CHANGED
@@ -13959,6 +13959,10 @@ type LogoutErrors = {
13959
13959
  * Missing or invalid credentials.
13960
13960
  */
13961
13961
  401: ErrorResponse;
13962
+ /**
13963
+ * `all: true` sent with an API key or a connected app's token.
13964
+ */
13965
+ 403: ErrorResponse;
13962
13966
  };
13963
13967
  type LogoutError = LogoutErrors[keyof LogoutErrors];
13964
13968
  type LogoutResponses = {
@@ -31321,6 +31325,11 @@ type DeleteCurrentUserPaymentMethodErrors = {
31321
31325
  * The account has no saved card.
31322
31326
  */
31323
31327
  404: ErrorResponse;
31328
+ /**
31329
+ * A paid plan is in effect or next, or a statement is unsettled (`paid_plan_requires_card`); `details` carry `plan`, `next_plan` and `unpaid_statement`.
31330
+ *
31331
+ */
31332
+ 409: ErrorResponse;
31324
31333
  /**
31325
31334
  * Card payments are not available on this deployment (`payments_not_configured`).
31326
31335
  */
@@ -33217,7 +33226,7 @@ export declare class Auth {
33217
33226
  /**
33218
33227
  * Log out
33219
33228
  *
33220
- * 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.
33229
+ * 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; only a signed-in user's session may, not an API key or a connected app.
33221
33230
  *
33222
33231
  */
33223
33232
  static logout<ThrowOnError extends boolean = false>(options?: Options<LogoutData, ThrowOnError>): RequestResult<LogoutResponses, LogoutErrors, ThrowOnError>;
@@ -35392,7 +35401,8 @@ export declare class Users {
35392
35401
  /**
35393
35402
  * Remove the saved card
35394
35403
  *
35395
- * Forgets the saved card and turns auto-recharge off.
35404
+ * Forgets the saved card and turns auto-recharge off. Refused while a paid plan is in effect or is the next plan, or a statement is not yet settled: move to Free first, and remove the card once Free is in effect and its last statement is paid.
35405
+ *
35396
35406
  */
35397
35407
  static deleteCurrentUserPaymentMethod<ThrowOnError extends boolean = false>(options?: Options<DeleteCurrentUserPaymentMethodData, ThrowOnError>): RequestResult<DeleteCurrentUserPaymentMethodResponses, DeleteCurrentUserPaymentMethodErrors, ThrowOnError>;
35398
35408
  /**
package/dist/index.d.mts CHANGED
@@ -13959,6 +13959,10 @@ type LogoutErrors = {
13959
13959
  * Missing or invalid credentials.
13960
13960
  */
13961
13961
  401: ErrorResponse;
13962
+ /**
13963
+ * `all: true` sent with an API key or a connected app's token.
13964
+ */
13965
+ 403: ErrorResponse;
13962
13966
  };
13963
13967
  type LogoutError = LogoutErrors[keyof LogoutErrors];
13964
13968
  type LogoutResponses = {
@@ -31321,6 +31325,11 @@ type DeleteCurrentUserPaymentMethodErrors = {
31321
31325
  * The account has no saved card.
31322
31326
  */
31323
31327
  404: ErrorResponse;
31328
+ /**
31329
+ * A paid plan is in effect or next, or a statement is unsettled (`paid_plan_requires_card`); `details` carry `plan`, `next_plan` and `unpaid_statement`.
31330
+ *
31331
+ */
31332
+ 409: ErrorResponse;
31324
31333
  /**
31325
31334
  * Card payments are not available on this deployment (`payments_not_configured`).
31326
31335
  */
@@ -33217,7 +33226,7 @@ export declare class Auth {
33217
33226
  /**
33218
33227
  * Log out
33219
33228
  *
33220
- * 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.
33229
+ * 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; only a signed-in user's session may, not an API key or a connected app.
33221
33230
  *
33222
33231
  */
33223
33232
  static logout<ThrowOnError extends boolean = false>(options?: Options<LogoutData, ThrowOnError>): RequestResult<LogoutResponses, LogoutErrors, ThrowOnError>;
@@ -35392,7 +35401,8 @@ export declare class Users {
35392
35401
  /**
35393
35402
  * Remove the saved card
35394
35403
  *
35395
- * Forgets the saved card and turns auto-recharge off.
35404
+ * Forgets the saved card and turns auto-recharge off. Refused while a paid plan is in effect or is the next plan, or a statement is not yet settled: move to Free first, and remove the card once Free is in effect and its last statement is paid.
35405
+ *
35396
35406
  */
35397
35407
  static deleteCurrentUserPaymentMethod<ThrowOnError extends boolean = false>(options?: Options<DeleteCurrentUserPaymentMethodData, ThrowOnError>): RequestResult<DeleteCurrentUserPaymentMethodResponses, DeleteCurrentUserPaymentMethodErrors, ThrowOnError>;
35398
35408
  /**
package/dist/index.mjs CHANGED
@@ -1972,7 +1972,7 @@ var Auth = class {
1972
1972
  /**
1973
1973
  * Log out
1974
1974
  *
1975
- * 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.
1975
+ * 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; only a signed-in user's session may, not an API key or a connected app.
1976
1976
  *
1977
1977
  */
1978
1978
  static logout(options) {
@@ -6129,7 +6129,8 @@ var Users = class {
6129
6129
  /**
6130
6130
  * Remove the saved card
6131
6131
  *
6132
- * Forgets the saved card and turns auto-recharge off.
6132
+ * Forgets the saved card and turns auto-recharge off. Refused while a paid plan is in effect or is the next plan, or a statement is not yet settled: move to Free first, and remove the card once Free is in effect and its last statement is paid.
6133
+ *
6133
6134
  */
6134
6135
  static deleteCurrentUserPaymentMethod(options) {
6135
6136
  return (options?.client ?? client).delete({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.211.8",
3
+ "version": "0.211.10",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.211.8",
41
+ "@naturali/api": "0.211.10",
42
42
  "@ttoss/openapi-codegen": "^0.10.0",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",