@naturali/cli 0.155.0 → 0.156.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/dist/index.mjs +115 -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.156.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1175,6 +1175,18 @@ var Admin = class {
|
|
|
1175
1175
|
...options
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
|
+
/**
|
|
1179
|
+
* List a user's monthly statements
|
|
1180
|
+
*
|
|
1181
|
+
* The same statements the account reads at `GET /v1/users/me/statements`, for an operator to bill from. Needs the `admin` role.
|
|
1182
|
+
*
|
|
1183
|
+
*/
|
|
1184
|
+
static listUserStatements(options) {
|
|
1185
|
+
return (options.client ?? client).get({
|
|
1186
|
+
url: "/v1/admin/users/{user_id}/statements",
|
|
1187
|
+
...options
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1178
1190
|
};
|
|
1179
1191
|
var Agents = class {
|
|
1180
1192
|
/**
|
|
@@ -5175,6 +5187,32 @@ var Users = class {
|
|
|
5175
5187
|
...options
|
|
5176
5188
|
});
|
|
5177
5189
|
}
|
|
5190
|
+
/**
|
|
5191
|
+
* List the account's monthly statements
|
|
5192
|
+
*
|
|
5193
|
+
* What the account owes for each closed billing month, newest first: the subscription fee, prorated by the share of the month each plan was held, and runs past the allowance at the plan's overage rate. Overage is measured against the highest plan held that month.
|
|
5194
|
+
*
|
|
5195
|
+
* A statement is written within an hour of the month closing, once, and never changes. It is a record to bill from, not a charge and not a tax invoice. Months on the Free plan alone, contract plans and storage are not stated.
|
|
5196
|
+
*
|
|
5197
|
+
*/
|
|
5198
|
+
static listCurrentUserStatements(options) {
|
|
5199
|
+
return (options?.client ?? client).get({
|
|
5200
|
+
url: "/v1/users/me/statements",
|
|
5201
|
+
...options
|
|
5202
|
+
});
|
|
5203
|
+
}
|
|
5204
|
+
/**
|
|
5205
|
+
* Get a monthly statement
|
|
5206
|
+
*
|
|
5207
|
+
* One of this account's monthly statements, with its lines and total. Another account's statement answers `404`.
|
|
5208
|
+
*
|
|
5209
|
+
*/
|
|
5210
|
+
static getCurrentUserStatement(options) {
|
|
5211
|
+
return (options.client ?? client).get({
|
|
5212
|
+
url: "/v1/users/me/statements/{statement_id}",
|
|
5213
|
+
...options
|
|
5214
|
+
});
|
|
5215
|
+
}
|
|
5178
5216
|
};
|
|
5179
5217
|
var Webhooks = class {
|
|
5180
5218
|
/**
|
|
@@ -7083,6 +7121,40 @@ const routes = {
|
|
|
7083
7121
|
cookieParams: [],
|
|
7084
7122
|
flags: []
|
|
7085
7123
|
},
|
|
7124
|
+
"list-user-statements": {
|
|
7125
|
+
serviceClass: "Admin",
|
|
7126
|
+
operationId: "listUserStatements",
|
|
7127
|
+
description: "The same statements the account reads at `GET /v1/users/me/statements`, for an operator to bill from. Needs the `admin` role.",
|
|
7128
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/admin",
|
|
7129
|
+
httpMethod: "get",
|
|
7130
|
+
pathParams: ["user_id"],
|
|
7131
|
+
queryParams: ["limit", "cursor"],
|
|
7132
|
+
headerParams: [],
|
|
7133
|
+
cookieParams: [],
|
|
7134
|
+
flags: [
|
|
7135
|
+
{
|
|
7136
|
+
"name": "user_id",
|
|
7137
|
+
"description": "",
|
|
7138
|
+
"required": true,
|
|
7139
|
+
"type": "string",
|
|
7140
|
+
"in": "path"
|
|
7141
|
+
},
|
|
7142
|
+
{
|
|
7143
|
+
"name": "limit",
|
|
7144
|
+
"description": "Maximum items per page — an integer from 1 to 100 (default 20).",
|
|
7145
|
+
"required": false,
|
|
7146
|
+
"type": "integer",
|
|
7147
|
+
"in": "query"
|
|
7148
|
+
},
|
|
7149
|
+
{
|
|
7150
|
+
"name": "cursor",
|
|
7151
|
+
"description": "The `next_cursor` of the previous page.",
|
|
7152
|
+
"required": false,
|
|
7153
|
+
"type": "string",
|
|
7154
|
+
"in": "query"
|
|
7155
|
+
}
|
|
7156
|
+
]
|
|
7157
|
+
},
|
|
7086
7158
|
"list-agents": {
|
|
7087
7159
|
serviceClass: "Agents",
|
|
7088
7160
|
operationId: "listAgents",
|
|
@@ -19912,6 +19984,48 @@ const routes = {
|
|
|
19912
19984
|
"in": "path"
|
|
19913
19985
|
}]
|
|
19914
19986
|
},
|
|
19987
|
+
"list-current-user-statements": {
|
|
19988
|
+
serviceClass: "Users",
|
|
19989
|
+
operationId: "listCurrentUserStatements",
|
|
19990
|
+
description: "What the account owes for each closed billing month, newest first: the subscription fee, prorated by the share of the month each plan was held, and runs past the allowance at the plan's overage rate. Overage is measured against the highest plan held that month. A statement is written within an hour of the month closing, once, and never changes. It is a record to bill from, not a charge and not a tax invoice. Months on the Free plan alone, contract plans and storage are not stated.",
|
|
19991
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
19992
|
+
httpMethod: "get",
|
|
19993
|
+
pathParams: [],
|
|
19994
|
+
queryParams: ["limit", "cursor"],
|
|
19995
|
+
headerParams: [],
|
|
19996
|
+
cookieParams: [],
|
|
19997
|
+
flags: [{
|
|
19998
|
+
"name": "limit",
|
|
19999
|
+
"description": "Maximum items per page — an integer from 1 to 100 (default 20).",
|
|
20000
|
+
"required": false,
|
|
20001
|
+
"type": "integer",
|
|
20002
|
+
"in": "query"
|
|
20003
|
+
}, {
|
|
20004
|
+
"name": "cursor",
|
|
20005
|
+
"description": "The `next_cursor` of the previous page.",
|
|
20006
|
+
"required": false,
|
|
20007
|
+
"type": "string",
|
|
20008
|
+
"in": "query"
|
|
20009
|
+
}]
|
|
20010
|
+
},
|
|
20011
|
+
"get-current-user-statement": {
|
|
20012
|
+
serviceClass: "Users",
|
|
20013
|
+
operationId: "getCurrentUserStatement",
|
|
20014
|
+
description: "One of this account's monthly statements, with its lines and total. Another account's statement answers `404`.",
|
|
20015
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/users",
|
|
20016
|
+
httpMethod: "get",
|
|
20017
|
+
pathParams: ["statement_id"],
|
|
20018
|
+
queryParams: [],
|
|
20019
|
+
headerParams: [],
|
|
20020
|
+
cookieParams: [],
|
|
20021
|
+
flags: [{
|
|
20022
|
+
"name": "statement_id",
|
|
20023
|
+
"description": "The statement's ID (stm_ prefix).",
|
|
20024
|
+
"required": true,
|
|
20025
|
+
"type": "string",
|
|
20026
|
+
"in": "path"
|
|
20027
|
+
}]
|
|
20028
|
+
},
|
|
19915
20029
|
"list-webhooks": {
|
|
19916
20030
|
serviceClass: "Webhooks",
|
|
19917
20031
|
operationId: "listWebhooks",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.156.1",
|
|
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.156.1",
|
|
29
29
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
30
30
|
"@types/node": "^26.5.1",
|
|
31
31
|
"tsdown": "^0.23.0",
|