@soat/cli 0.13.4 → 0.13.6

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 +97 -31
  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.6";
15
15
 
16
16
  //#endregion
17
17
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -1882,19 +1882,19 @@ 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
  }, {
1890
- "name": "path",
1891
- "description": "Logical path within the project (e.g. /images/logo.png). Defaults to /filename if omitted.",
1890
+ "name": "prefix",
1891
+ "description": "Directory within the project (e.g. /images). Optional; defaults to / (root). Combined with filename to form the file's key (path).",
1892
1892
  "required": false,
1893
1893
  "type": "string",
1894
1894
  "in": "body"
1895
1895
  }, {
1896
1896
  "name": "filename",
1897
- "description": "Name of the file",
1897
+ "description": "Original / download name and the key's leaf segment (e.g. logo.png).",
1898
1898
  "required": false,
1899
1899
  "type": "string",
1900
1900
  "in": "body"
@@ -1910,18 +1910,6 @@ var routes = {
1910
1910
  "required": false,
1911
1911
  "type": "integer",
1912
1912
  "in": "body"
1913
- }, {
1914
- "name": "storage_type",
1915
- "description": "Storage backend type",
1916
- "required": true,
1917
- "type": "string",
1918
- "in": "body"
1919
- }, {
1920
- "name": "storage_path",
1921
- "description": "Path where the file is stored",
1922
- "required": true,
1923
- "type": "string",
1924
- "in": "body"
1925
1913
  }, {
1926
1914
  "name": "metadata",
1927
1915
  "description": "JSON string with additional metadata",
@@ -1959,14 +1947,14 @@ var routes = {
1959
1947
  "type": "string",
1960
1948
  "in": "body"
1961
1949
  }, {
1962
- "name": "filename",
1963
- "description": "Name of the file",
1950
+ "name": "prefix",
1951
+ "description": "Directory within the project (e.g. /documents). Optional; defaults to / (root).",
1964
1952
  "required": false,
1965
1953
  "type": "string",
1966
1954
  "in": "body"
1967
1955
  }, {
1968
- "name": "path",
1969
- "description": "Logical path within the project (e.g. /images/logo.png). Defaults to /filename if omitted.",
1956
+ "name": "filename",
1957
+ "description": "Original / download name and the key's leaf segment.",
1970
1958
  "required": false,
1971
1959
  "type": "string",
1972
1960
  "in": "body"
@@ -1984,6 +1972,78 @@ var routes = {
1984
1972
  "in": "body"
1985
1973
  }]
1986
1974
  },
1975
+ "create-presigned-url": {
1976
+ serviceClass: "Files",
1977
+ operationId: "createPresignedUrl",
1978
+ description: "Creates a short-lived, single-use presigned upload URL — 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. When the server is configured with `SERVER_BASE_URL`, `upload_url` is a fully-qualified absolute URL so MCP agents and other clients can POST to it without knowing the server base URL in advance.",
1979
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
1980
+ pathParams: [],
1981
+ queryParams: [],
1982
+ flags: [{
1983
+ "name": "project_id",
1984
+ "description": "Public ID of the project",
1985
+ "required": true,
1986
+ "type": "string",
1987
+ "in": "body"
1988
+ }, {
1989
+ "name": "prefix",
1990
+ "description": "Directory within the project (e.g. /documents). Optional; defaults to / (root).",
1991
+ "required": false,
1992
+ "type": "string",
1993
+ "in": "body"
1994
+ }, {
1995
+ "name": "filename",
1996
+ "description": "Original / download name and the key's leaf segment.",
1997
+ "required": false,
1998
+ "type": "string",
1999
+ "in": "body"
2000
+ }, {
2001
+ "name": "content_type",
2002
+ "description": "MIME type of the file to be uploaded",
2003
+ "required": false,
2004
+ "type": "string",
2005
+ "in": "body"
2006
+ }]
2007
+ },
2008
+ "upload-file-with-token": {
2009
+ serviceClass: "Files",
2010
+ operationId: "uploadFileWithToken",
2011
+ description: "Uploads file content authorized by a single-use token from `POST /api/v1/files/presigned-url`. 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.",
2012
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/files",
2013
+ pathParams: ["token"],
2014
+ queryParams: [],
2015
+ flags: [{
2016
+ "name": "token",
2017
+ "description": "The single-use upload token (e.g. upt_...)",
2018
+ "required": true,
2019
+ "type": "string",
2020
+ "in": "path"
2021
+ }, {
2022
+ "name": "content",
2023
+ "description": "Base64-encoded file content",
2024
+ "required": true,
2025
+ "type": "string",
2026
+ "in": "body"
2027
+ }, {
2028
+ "name": "filename",
2029
+ "description": "Original / download name (overrides the token's filename)",
2030
+ "required": false,
2031
+ "type": "string",
2032
+ "in": "body"
2033
+ }, {
2034
+ "name": "content_type",
2035
+ "description": "MIME type of the file (overrides the token's content type)",
2036
+ "required": false,
2037
+ "type": "string",
2038
+ "in": "body"
2039
+ }, {
2040
+ "name": "metadata",
2041
+ "description": "JSON string with additional metadata",
2042
+ "required": false,
2043
+ "type": "string",
2044
+ "in": "body"
2045
+ }]
2046
+ },
1987
2047
  "get-file": {
1988
2048
  serviceClass: "Files",
1989
2049
  operationId: "getFile",
@@ -2048,9 +2108,15 @@ var routes = {
2048
2108
  "required": false,
2049
2109
  "type": "string",
2050
2110
  "in": "body"
2111
+ }, {
2112
+ "name": "prefix",
2113
+ "description": "New directory — moves the file. The resulting path (prefix + filename) must be unique within the project.",
2114
+ "required": false,
2115
+ "type": "string",
2116
+ "in": "body"
2051
2117
  }, {
2052
2118
  "name": "filename",
2053
- "description": "New filename for the file",
2119
+ "description": "New filename renames the key's leaf and the download name.",
2054
2120
  "required": false,
2055
2121
  "type": "string",
2056
2122
  "in": "body"
@@ -2140,8 +2206,8 @@ var routes = {
2140
2206
  queryParams: [],
2141
2207
  flags: [{
2142
2208
  "name": "project_id",
2143
- "description": "Project ID",
2144
- "required": true,
2209
+ "description": "Project ID. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
2210
+ "required": false,
2145
2211
  "type": "string",
2146
2212
  "in": "body"
2147
2213
  }, {
@@ -2188,8 +2254,8 @@ var routes = {
2188
2254
  queryParams: [],
2189
2255
  flags: [{
2190
2256
  "name": "project_id",
2191
- "description": "Project ID",
2192
- "required": true,
2257
+ "description": "Project ID. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
2258
+ "required": false,
2193
2259
  "type": "string",
2194
2260
  "in": "body"
2195
2261
  }, {
@@ -2659,8 +2725,8 @@ var routes = {
2659
2725
  queryParams: [],
2660
2726
  flags: [{
2661
2727
  "name": "project_id",
2662
- "description": "Public ID of the project.",
2663
- "required": true,
2728
+ "description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
2729
+ "required": false,
2664
2730
  "type": "string",
2665
2731
  "in": "body"
2666
2732
  }, {
@@ -3937,8 +4003,8 @@ var routes = {
3937
4003
  queryParams: [],
3938
4004
  flags: [{
3939
4005
  "name": "project_id",
3940
- "description": "",
3941
- "required": true,
4006
+ "description": "Public ID of the project. Optional when authenticating with a project-scoped API key, which defaults to the key's project; required otherwise.",
4007
+ "required": false,
3942
4008
  "type": "string",
3943
4009
  "in": "body"
3944
4010
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.4",
3
+ "version": "0.13.6",
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.6"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",