@naturali/cli 0.165.0 → 0.166.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.
- package/dist/index.mjs +37 -1
- 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.
|
|
20
|
+
var version = "0.166.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -5419,6 +5419,24 @@ var Users = class {
|
|
|
5419
5419
|
...options
|
|
5420
5420
|
});
|
|
5421
5421
|
}
|
|
5422
|
+
/**
|
|
5423
|
+
* Start a credit top-up
|
|
5424
|
+
*
|
|
5425
|
+
* A hosted card checkout that buys model credit for the caller's account. Send the caller to `checkout_url`; 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.
|
|
5426
|
+
*
|
|
5427
|
+
* Charged in US dollars. Creating a top-up charges nothing, and one left unpaid lapses at `expires_at`. After paying, the browser returns to the console's billing page.
|
|
5428
|
+
*
|
|
5429
|
+
*/
|
|
5430
|
+
static createCurrentUserTopUp(options) {
|
|
5431
|
+
return (options.client ?? client).post({
|
|
5432
|
+
url: "/v1/users/me/top-ups",
|
|
5433
|
+
...options,
|
|
5434
|
+
headers: {
|
|
5435
|
+
"Content-Type": "application/json",
|
|
5436
|
+
...options.headers
|
|
5437
|
+
}
|
|
5438
|
+
});
|
|
5439
|
+
}
|
|
5422
5440
|
};
|
|
5423
5441
|
var Webhooks = class {
|
|
5424
5442
|
/**
|
|
@@ -20926,6 +20944,24 @@ const routes = {
|
|
|
20926
20944
|
"in": "path"
|
|
20927
20945
|
}]
|
|
20928
20946
|
},
|
|
20947
|
+
"create-current-user-top-up": {
|
|
20948
|
+
serviceClass: "Users",
|
|
20949
|
+
operationId: "createCurrentUserTopUp",
|
|
20950
|
+
description: "A hosted card checkout that buys model credit for the caller's account. Send the caller to `checkout_url`; 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. Creating a top-up charges nothing, and one left unpaid lapses at `expires_at`. After paying, the browser returns to the console's billing page.",
|
|
20951
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
20952
|
+
httpMethod: "post",
|
|
20953
|
+
pathParams: [],
|
|
20954
|
+
queryParams: [],
|
|
20955
|
+
headerParams: [],
|
|
20956
|
+
cookieParams: [],
|
|
20957
|
+
flags: [{
|
|
20958
|
+
"name": "amount_usd",
|
|
20959
|
+
"description": "US dollars to buy, in whole cents.",
|
|
20960
|
+
"required": true,
|
|
20961
|
+
"type": "number",
|
|
20962
|
+
"in": "body"
|
|
20963
|
+
}]
|
|
20964
|
+
},
|
|
20929
20965
|
"list-webhooks": {
|
|
20930
20966
|
serviceClass: "Webhooks",
|
|
20931
20967
|
operationId: "listWebhooks",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.166.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.
|
|
28
|
+
"@naturali/sdk": "0.166.0",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.5.0",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|