@naturali/cli 0.171.1 → 0.172.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 +7 -7
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
17
17
  };
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "0.171.1";
20
+ var version = "0.172.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -5450,7 +5450,7 @@ var Users = class {
5450
5450
  /**
5451
5451
  * Top up credit
5452
5452
  *
5453
- * Buys model credit for the caller's account. Once the card is charged the full amount is added to `credit_balance_usd` as purchased credit, which never expires. The card fee is not deducted. Charged in US dollars.
5453
+ * Buys model credit for the caller's account. Once the card is charged the full amount is added to `credit_balance_usd` as purchased credit, which never expires. The card fee is not deducted. `amount_usd` is what is credited; a card issued in Brazil is charged its equivalent in Brazilian reais at the Banco Central's latest closing PTAX selling rate, and a checkout shows reais to a payer in Brazil.
5454
5454
  *
5455
5455
  * With `saved_card: true` the saved card is charged at once and the answer is `status: paid`. When the card needs authentication or is declined, nothing is charged and the answer falls back to a checkout.
5456
5456
  *
@@ -5481,7 +5481,7 @@ var Users = class {
5481
5481
  /**
5482
5482
  * Get the saved card
5483
5483
  *
5484
- * The card auto-recharge and monthly statements are charged to, as the payment provider reports it. Only the brand, last four digits and expiry are kept here.
5484
+ * The card auto-recharge and monthly statements are charged to, as the payment provider reports it. Only the brand, last four digits, expiry and issuing country are kept here. A card issued in Brazil is charged in Brazilian reais, every other card in US dollars.
5485
5485
  *
5486
5486
  */
5487
5487
  static getCurrentUserPaymentMethod(options) {
@@ -5547,7 +5547,7 @@ var Users = class {
5547
5547
  *
5548
5548
  * Choose `free`, `pro` or `business`. A paid plan needs a saved card.
5549
5549
  *
5550
- * An upgrade is charged at once on the saved card for the price difference over the rest of the month, then takes effect; the month's statement nets that payment out. A declined card leaves the plan unchanged. A downgrade takes effect when the month ends, and `next_plan` names it until then. A contract plan is changed by asking us.
5550
+ * An upgrade is charged at once on the saved card, in its currency, for the price difference over the rest of the month, then takes effect; the month's statement nets that payment out. A declined card leaves the plan unchanged. A downgrade takes effect when the month ends, and `next_plan` names it until then. A contract plan is changed by asking us.
5551
5551
  *
5552
5552
  */
5553
5553
  static setCurrentUserPlan(options) {
@@ -21114,7 +21114,7 @@ const routes = {
21114
21114
  "create-current-user-top-up": {
21115
21115
  serviceClass: "Users",
21116
21116
  operationId: "createCurrentUserTopUp",
21117
- description: "Buys model credit for the caller's account. Once the card is charged the full amount is added to `credit_balance_usd` as purchased credit, which never expires. The card fee is not deducted. Charged in US dollars. With `saved_card: true` the saved card is charged at once and the answer is `status: paid`. When the card needs authentication or is declined, nothing is charged and the answer falls back to a checkout. A checkout (`status: checkout`) is a hosted page: send the caller to `checkout_url`. Creating it charges nothing, and one left unpaid lapses at `expires_at`. After paying, the browser returns to the console's billing page.",
21117
+ description: "Buys model credit for the caller's account. Once the card is charged the full amount is added to `credit_balance_usd` as purchased credit, which never expires. The card fee is not deducted. `amount_usd` is what is credited; a card issued in Brazil is charged its equivalent in Brazilian reais at the Banco Central's latest closing PTAX selling rate, and a checkout shows reais to a payer in Brazil. With `saved_card: true` the saved card is charged at once and the answer is `status: paid`. When the card needs authentication or is declined, nothing is charged and the answer falls back to a checkout. A checkout (`status: checkout`) is a hosted page: send the caller to `checkout_url`. Creating it charges nothing, and one left unpaid lapses at `expires_at`. After paying, the browser returns to the console's billing page.",
21118
21118
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
21119
21119
  httpMethod: "post",
21120
21120
  pathParams: [],
@@ -21138,7 +21138,7 @@ const routes = {
21138
21138
  "get-current-user-payment-method": {
21139
21139
  serviceClass: "Users",
21140
21140
  operationId: "getCurrentUserPaymentMethod",
21141
- description: "The card auto-recharge and monthly statements are charged to, as the payment provider reports it. Only the brand, last four digits and expiry are kept here.",
21141
+ description: "The card auto-recharge and monthly statements are charged to, as the payment provider reports it. Only the brand, last four digits, expiry and issuing country are kept here. A card issued in Brazil is charged in Brazilian reais, every other card in US dollars.",
21142
21142
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
21143
21143
  httpMethod: "get",
21144
21144
  pathParams: [],
@@ -21222,7 +21222,7 @@ const routes = {
21222
21222
  "set-current-user-plan": {
21223
21223
  serviceClass: "Users",
21224
21224
  operationId: "setCurrentUserPlan",
21225
- description: "Choose `free`, `pro` or `business`. A paid plan needs a saved card. An upgrade is charged at once on the saved card for the price difference over the rest of the month, then takes effect; the month's statement nets that payment out. A declined card leaves the plan unchanged. A downgrade takes effect when the month ends, and `next_plan` names it until then. A contract plan is changed by asking us.",
21225
+ description: "Choose `free`, `pro` or `business`. A paid plan needs a saved card. An upgrade is charged at once on the saved card, in its currency, for the price difference over the rest of the month, then takes effect; the month's statement nets that payment out. A declined card leaves the plan unchanged. A downgrade takes effect when the month ends, and `next_plan` names it until then. A contract plan is changed by asking us.",
21226
21226
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
21227
21227
  httpMethod: "put",
21228
21228
  pathParams: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.171.1",
3
+ "version": "0.172.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,7 @@
25
25
  "yaml": "^2.9.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@naturali/sdk": "0.171.1",
28
+ "@naturali/sdk": "0.172.0",
29
29
  "@ttoss/openapi-codegen": "^0.5.0",
30
30
  "@types/node": "^26.5.1",
31
31
  "tsdown": "^0.23.0",