@soat/cli 0.13.4 → 0.13.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 +83 -11
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import yaml from "js-yaml";
11
11
  import * as os from "node:os";
12
12
 
13
13
  //#region package.json
14
- var version = "0.13.4";
14
+ var version = "0.13.5";
15
15
 
16
16
  //#endregion
17
17
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -1882,8 +1882,8 @@ var routes = {
1882
1882
  queryParams: [],
1883
1883
  flags: [{
1884
1884
  "name": "project_id",
1885
- "description": "Public ID of the project",
1886
- "required": true,
1885
+ "description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
1886
+ "required": false,
1887
1887
  "type": "string",
1888
1888
  "in": "body"
1889
1889
  }, {
@@ -1984,6 +1984,78 @@ var routes = {
1984
1984
  "in": "body"
1985
1985
  }]
1986
1986
  },
1987
+ "create-upload-token": {
1988
+ serviceClass: "Files",
1989
+ operationId: "createUploadToken",
1990
+ description: "Creates a short-lived, single-use upload token — the local-storage equivalent of an S3 presigned URL. The client then uploads the file content directly to the returned `upload_url` via `POST /api/v1/files/upload/{token}`, bypassing MCP payload size limits.",
1991
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
1992
+ pathParams: [],
1993
+ queryParams: [],
1994
+ flags: [{
1995
+ "name": "project_id",
1996
+ "description": "Public ID of the project",
1997
+ "required": true,
1998
+ "type": "string",
1999
+ "in": "body"
2000
+ }, {
2001
+ "name": "filename",
2002
+ "description": "Name of the file to be uploaded",
2003
+ "required": false,
2004
+ "type": "string",
2005
+ "in": "body"
2006
+ }, {
2007
+ "name": "content_type",
2008
+ "description": "MIME type of the file to be uploaded",
2009
+ "required": false,
2010
+ "type": "string",
2011
+ "in": "body"
2012
+ }, {
2013
+ "name": "path",
2014
+ "description": "Logical path within the project (e.g. /documents/report.pdf). Defaults to /filename if omitted.",
2015
+ "required": false,
2016
+ "type": "string",
2017
+ "in": "body"
2018
+ }]
2019
+ },
2020
+ "upload-file-with-token": {
2021
+ serviceClass: "Files",
2022
+ operationId: "uploadFileWithToken",
2023
+ description: "Uploads file content authorized by a single-use token from `POST /api/v1/files/upload-token`. No bearer credential is required — the token is the credential. Accepts either multipart/form-data (field `file`) or JSON with a base64-encoded `content` field. Excluded from the MCP tool surface; clients call it directly over HTTP.",
2024
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
2025
+ pathParams: ["token"],
2026
+ queryParams: [],
2027
+ flags: [{
2028
+ "name": "token",
2029
+ "description": "The single-use upload token (e.g. upt_...)",
2030
+ "required": true,
2031
+ "type": "string",
2032
+ "in": "path"
2033
+ }, {
2034
+ "name": "content",
2035
+ "description": "Base64-encoded file content",
2036
+ "required": true,
2037
+ "type": "string",
2038
+ "in": "body"
2039
+ }, {
2040
+ "name": "filename",
2041
+ "description": "Name of the file (overrides the token's filename)",
2042
+ "required": false,
2043
+ "type": "string",
2044
+ "in": "body"
2045
+ }, {
2046
+ "name": "content_type",
2047
+ "description": "MIME type of the file (overrides the token's content type)",
2048
+ "required": false,
2049
+ "type": "string",
2050
+ "in": "body"
2051
+ }, {
2052
+ "name": "metadata",
2053
+ "description": "JSON string with additional metadata",
2054
+ "required": false,
2055
+ "type": "string",
2056
+ "in": "body"
2057
+ }]
2058
+ },
1987
2059
  "get-file": {
1988
2060
  serviceClass: "Files",
1989
2061
  operationId: "getFile",
@@ -2140,8 +2212,8 @@ var routes = {
2140
2212
  queryParams: [],
2141
2213
  flags: [{
2142
2214
  "name": "project_id",
2143
- "description": "Project ID",
2144
- "required": true,
2215
+ "description": "Project ID. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
2216
+ "required": false,
2145
2217
  "type": "string",
2146
2218
  "in": "body"
2147
2219
  }, {
@@ -2188,8 +2260,8 @@ var routes = {
2188
2260
  queryParams: [],
2189
2261
  flags: [{
2190
2262
  "name": "project_id",
2191
- "description": "Project ID",
2192
- "required": true,
2263
+ "description": "Project ID. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
2264
+ "required": false,
2193
2265
  "type": "string",
2194
2266
  "in": "body"
2195
2267
  }, {
@@ -2659,8 +2731,8 @@ var routes = {
2659
2731
  queryParams: [],
2660
2732
  flags: [{
2661
2733
  "name": "project_id",
2662
- "description": "Public ID of the project.",
2663
- "required": true,
2734
+ "description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
2735
+ "required": false,
2664
2736
  "type": "string",
2665
2737
  "in": "body"
2666
2738
  }, {
@@ -3937,8 +4009,8 @@ var routes = {
3937
4009
  queryParams: [],
3938
4010
  flags: [{
3939
4011
  "name": "project_id",
3940
- "description": "",
3941
- "required": true,
4012
+ "description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
4013
+ "required": false,
3942
4014
  "type": "string",
3943
4015
  "in": "body"
3944
4016
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.4",
3
+ "version": "0.13.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.16",
9
9
  "commander": "^15.0.0",
10
10
  "js-yaml": "^4.2.0",
11
- "@soat/sdk": "0.13.4"
11
+ "@soat/sdk": "0.13.5"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",