@soat/cli 0.14.3 → 0.14.5

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 +88 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import { load } from "js-yaml";
11
11
  import * as os from "node:os";
12
12
 
13
13
  //#region package.json
14
- var version = "0.14.3";
14
+ var version = "0.14.5";
15
15
 
16
16
  //#endregion
17
17
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -1209,6 +1209,42 @@ var routes = {
1209
1209
  "in": "path"
1210
1210
  }]
1211
1211
  },
1212
+ "get-ai-provider-prices": {
1213
+ serviceClass: "AIProviders",
1214
+ operationId: "getAiProviderPrices",
1215
+ description: "Returns the per-provider price overrides for this AI provider instance. An override prices this specific provider (e.g. an enterprise-negotiated rate or a gateway with markup) and wins over the global default at cost time. Authorized by the caller's access to the provider's project — so, unlike the global price book, a project's own overrides are visible here.",
1216
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ai-providers",
1217
+ pathParams: ["ai_provider_id"],
1218
+ queryParams: [],
1219
+ flags: [{
1220
+ "name": "ai_provider_id",
1221
+ "description": "AI Provider ID",
1222
+ "required": true,
1223
+ "type": "string",
1224
+ "in": "path"
1225
+ }]
1226
+ },
1227
+ "update-ai-provider-prices": {
1228
+ serviceClass: "AIProviders",
1229
+ operationId: "updateAiProviderPrices",
1230
+ description: "Upserts price overrides for this AI provider instance, keyed on (model, effective_from). The provider slug is taken from the AI provider itself, so only the model, rates, and effective_from are supplied. Authorized by the caller's access to the provider's project. `effective_from` must be in the future — past prices are immutable, so ship corrections as new future-dated rows.",
1231
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ai-providers",
1232
+ pathParams: ["ai_provider_id"],
1233
+ queryParams: [],
1234
+ flags: [{
1235
+ "name": "ai_provider_id",
1236
+ "description": "AI Provider ID",
1237
+ "required": true,
1238
+ "type": "string",
1239
+ "in": "path"
1240
+ }, {
1241
+ "name": "prices",
1242
+ "description": "",
1243
+ "required": true,
1244
+ "type": "array",
1245
+ "in": "body"
1246
+ }]
1247
+ },
1212
1248
  "list-api-keys": {
1213
1249
  serviceClass: "APIKeys",
1214
1250
  operationId: "listApiKeys",
@@ -3927,6 +3963,42 @@ var routes = {
3927
3963
  "in": "query"
3928
3964
  }]
3929
3965
  },
3966
+ "get-project-prices": {
3967
+ serviceClass: "Projects",
3968
+ operationId: "getProjectPrices",
3969
+ description: "Returns the project's per-provider-slug price rows — the middle pricing tier that covers every one of the project's instances of a given provider slug. At cost time a per-provider-instance override wins over these, and these win over the global default. Authorized by the caller's access to the project.",
3970
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/projects",
3971
+ pathParams: ["project_id"],
3972
+ queryParams: [],
3973
+ flags: [{
3974
+ "name": "project_id",
3975
+ "description": "Project public ID (proj_ prefix)",
3976
+ "required": true,
3977
+ "type": "string",
3978
+ "in": "path"
3979
+ }]
3980
+ },
3981
+ "update-project-prices": {
3982
+ serviceClass: "Projects",
3983
+ operationId: "updateProjectPrices",
3984
+ description: "Upserts project + provider-slug price rows, keyed on (provider, model, effective_from). A row covers all of the project's instances of that provider slug. Authorized by the caller's access to the project. `effective_from` must be in the future — past prices are immutable, so ship corrections as new future-dated rows.",
3985
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/projects",
3986
+ pathParams: ["project_id"],
3987
+ queryParams: [],
3988
+ flags: [{
3989
+ "name": "project_id",
3990
+ "description": "Project public ID (proj_ prefix)",
3991
+ "required": true,
3992
+ "type": "string",
3993
+ "in": "path"
3994
+ }, {
3995
+ "name": "prices",
3996
+ "description": "",
3997
+ "required": true,
3998
+ "type": "array",
3999
+ "in": "body"
4000
+ }]
4001
+ },
3930
4002
  "list-secrets": {
3931
4003
  serviceClass: "Secrets",
3932
4004
  operationId: "listSecrets",
@@ -4995,6 +5067,21 @@ var routes = {
4995
5067
  "in": "query"
4996
5068
  }]
4997
5069
  },
5070
+ "get-usage-receipt": {
5071
+ serviceClass: "Usage",
5072
+ operationId: "getUsageReceipt",
5073
+ description: "Returns a billing receipt for a completed generation: per-model line items (tokens, the price-book version that priced them, and cost) plus totals.",
5074
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/usage",
5075
+ pathParams: [],
5076
+ queryParams: ["generation_id"],
5077
+ flags: [{
5078
+ "name": "generation_id",
5079
+ "description": "Generation public ID",
5080
+ "required": true,
5081
+ "type": "string",
5082
+ "in": "query"
5083
+ }]
5084
+ },
4998
5085
  "get-price-book": {
4999
5086
  serviceClass: "Usage",
5000
5087
  operationId: "getPriceBook",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@inquirer/input": "^5.1.2",
@@ -8,7 +8,7 @@
8
8
  "@ttoss/logger": "^0.8.19",
9
9
  "commander": "^15.0.0",
10
10
  "js-yaml": "^5.2.1",
11
- "@soat/sdk": "0.14.3"
11
+ "@soat/sdk": "0.14.5"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.17",