@soat/cli 0.13.8 → 0.13.9

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 +70 -16
  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.8";
14
+ var version = "0.13.9";
15
15
 
16
16
  //#endregion
17
17
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -389,6 +389,12 @@ var routes = {
389
389
  "required": false,
390
390
  "type": "string",
391
391
  "in": "body"
392
+ }, {
393
+ "name": "instructions",
394
+ "description": "Persona-specific instructions composed into the effective system prompt during conversation generation.",
395
+ "required": false,
396
+ "type": "string",
397
+ "in": "body"
392
398
  }, {
393
399
  "name": "agent_id",
394
400
  "description": "Agent to link this actor to. Mutually exclusive with chat_id.",
@@ -449,12 +455,30 @@ var routes = {
449
455
  "required": false,
450
456
  "type": "string",
451
457
  "in": "body"
458
+ }, {
459
+ "name": "external_id",
460
+ "description": "External identifier (e.g. WhatsApp phone number)",
461
+ "required": false,
462
+ "type": "string",
463
+ "in": "body"
452
464
  }, {
453
465
  "name": "instructions",
454
466
  "description": "Persona-specific instructions",
455
467
  "required": false,
456
468
  "type": "string",
457
469
  "in": "body"
470
+ }, {
471
+ "name": "agent_id",
472
+ "description": "Agent to link this actor to. Mutually exclusive with chat_id.",
473
+ "required": false,
474
+ "type": "string",
475
+ "in": "body"
476
+ }, {
477
+ "name": "chat_id",
478
+ "description": "Chat to link this actor to. Mutually exclusive with agent_id.",
479
+ "required": false,
480
+ "type": "string",
481
+ "in": "body"
458
482
  }, {
459
483
  "name": "memory_id",
460
484
  "description": "Memory ID to link to this actor. Set to null to unlink.",
@@ -1109,6 +1133,12 @@ var routes = {
1109
1133
  "required": false,
1110
1134
  "type": "string",
1111
1135
  "in": "body"
1136
+ }, {
1137
+ "name": "provider",
1138
+ "description": "LLM provider",
1139
+ "required": false,
1140
+ "type": "string",
1141
+ "in": "body"
1112
1142
  }, {
1113
1143
  "name": "default_model",
1114
1144
  "description": "",
@@ -1153,7 +1183,7 @@ var routes = {
1153
1183
  "list-api-keys": {
1154
1184
  serviceClass: "APIKeys",
1155
1185
  operationId: "listApiKeys",
1156
- description: "Lists API keys accessible to the caller. - JWT admin: returns all API keys. - JWT regular user: returns only the user's own API keys. - API key scoped to a project: returns only API keys scoped to that project.",
1186
+ description: "Lists API keys accessible to the caller. - JWT admin: returns all API keys. - JWT regular user: returns only the user's own API keys. - API key: returns only API keys scoped to the key's project.",
1157
1187
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1158
1188
  pathParams: [],
1159
1189
  queryParams: [],
@@ -1162,7 +1192,7 @@ var routes = {
1162
1192
  "create-api-key": {
1163
1193
  serviceClass: "APIKeys",
1164
1194
  operationId: "createApiKey",
1165
- description: "Creates a new API key for the authenticated user. - If `project_id` is provided, the key is scoped to that project. - If `policy_ids` is provided, the key's effective permissions are the intersection of the user's policies and the key's policies. - If neither is provided, the key inherits the user's full permissions.",
1195
+ description: "Creates a new API key for the authenticated user. - `project_id` is required: every key is scoped to exactly one project. - If `policy_ids` is provided, the key's effective permissions are the intersection of the user's policies and the key's policies. - Otherwise the key inherits the user's permissions, confined to the key's project.",
1166
1196
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1167
1197
  pathParams: [],
1168
1198
  queryParams: [],
@@ -1174,8 +1204,8 @@ var routes = {
1174
1204
  "in": "body"
1175
1205
  }, {
1176
1206
  "name": "project_id",
1177
- "description": "Optional project ID to scope this key to a specific project",
1178
- "required": false,
1207
+ "description": "Project ID this key is scoped to. Required keys cannot span projects.",
1208
+ "required": true,
1179
1209
  "type": "string",
1180
1210
  "in": "body"
1181
1211
  }, {
@@ -1204,7 +1234,7 @@ var routes = {
1204
1234
  "update-api-key": {
1205
1235
  serviceClass: "APIKeys",
1206
1236
  operationId: "updateApiKey",
1207
- description: "Updates an API key's name, project scope, or policies. Only the owner or an admin can update it.",
1237
+ description: "Updates an API key's name, project scope, or policies. The project scope can be changed to another project but never cleared. Only the owner or an admin can update it.",
1208
1238
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1209
1239
  pathParams: ["api_key_id"],
1210
1240
  queryParams: [],
@@ -1222,7 +1252,7 @@ var routes = {
1222
1252
  "in": "body"
1223
1253
  }, {
1224
1254
  "name": "project_id",
1225
- "description": "Set to null to remove project scope",
1255
+ "description": "Re-scope the key to a different project. Cannot be null keys are always project-scoped.",
1226
1256
  "required": false,
1227
1257
  "type": "string",
1228
1258
  "in": "body"
@@ -1496,7 +1526,13 @@ var routes = {
1496
1526
  }, {
1497
1527
  "name": "status",
1498
1528
  "description": "New conversation status",
1499
- "required": true,
1529
+ "required": false,
1530
+ "type": "string",
1531
+ "in": "body"
1532
+ }, {
1533
+ "name": "name",
1534
+ "description": "New conversation name",
1535
+ "required": false,
1500
1536
  "type": "string",
1501
1537
  "in": "body"
1502
1538
  }]
@@ -1739,6 +1775,24 @@ var routes = {
1739
1775
  "required": false,
1740
1776
  "type": "string",
1741
1777
  "in": "body"
1778
+ }, {
1779
+ "name": "title",
1780
+ "description": "Document title",
1781
+ "required": false,
1782
+ "type": "string",
1783
+ "in": "body"
1784
+ }, {
1785
+ "name": "metadata",
1786
+ "description": "Arbitrary metadata object",
1787
+ "required": false,
1788
+ "type": "object",
1789
+ "in": "body"
1790
+ }, {
1791
+ "name": "tags",
1792
+ "description": "Key-value tags",
1793
+ "required": false,
1794
+ "type": "object",
1795
+ "in": "body"
1742
1796
  }, {
1743
1797
  "name": "chunk_strategy",
1744
1798
  "description": "How to split the content into embeddable chunks. `whole` (default) stores the content as a single chunk; `size` splits into fixed-size character windows with overlap. `page` is equivalent to `whole` for plain text.",
@@ -2102,7 +2156,7 @@ var routes = {
2102
2156
  flags: [{
2103
2157
  "name": "project_id",
2104
2158
  "description": "Public ID of the project",
2105
- "required": true,
2159
+ "required": false,
2106
2160
  "type": "string",
2107
2161
  "in": "body"
2108
2162
  }, {
@@ -2185,8 +2239,8 @@ var routes = {
2185
2239
  "in": "path"
2186
2240
  }, {
2187
2241
  "name": "content",
2188
- "description": "Base64-encoded file content",
2189
- "required": true,
2242
+ "description": "Base64-encoded file content (alternative to multipart `file`)",
2243
+ "required": false,
2190
2244
  "type": "string",
2191
2245
  "in": "body"
2192
2246
  }, {
@@ -2357,7 +2411,7 @@ var routes = {
2357
2411
  flags: [{
2358
2412
  "name": "template",
2359
2413
  "description": "",
2360
- "required": true,
2414
+ "required": false,
2361
2415
  "type": "string",
2362
2416
  "in": "body"
2363
2417
  }]
@@ -2389,7 +2443,7 @@ var routes = {
2389
2443
  "in": "body"
2390
2444
  }, {
2391
2445
  "name": "parameters",
2392
- "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`.\n",
2446
+ "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. A parameter declared with `use_previous_value: true` may be omitted to reuse its stored value.\n",
2393
2447
  "required": false,
2394
2448
  "type": "object",
2395
2449
  "in": "body"
@@ -2485,7 +2539,7 @@ var routes = {
2485
2539
  "in": "body"
2486
2540
  }, {
2487
2541
  "name": "parameters",
2488
- "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here.\n",
2542
+ "description": "Runtime parameter values that override or supply template parameter defaults. Keys must match parameter names declared in `template.parameters`. Required parameters (those without a default) must be provided here, unless the parameter is declared with `use_previous_value: true`, in which case omitting it reuses the previously stored value.\n",
2489
2543
  "required": false,
2490
2544
  "type": "object",
2491
2545
  "in": "body"
@@ -2942,13 +2996,13 @@ var routes = {
2942
2996
  flags: [{
2943
2997
  "name": "nodes",
2944
2998
  "description": "",
2945
- "required": true,
2999
+ "required": false,
2946
3000
  "type": "array",
2947
3001
  "in": "body"
2948
3002
  }, {
2949
3003
  "name": "edges",
2950
3004
  "description": "",
2951
- "required": true,
3005
+ "required": false,
2952
3006
  "type": "array",
2953
3007
  "in": "body"
2954
3008
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
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.8"
11
+ "@soat/sdk": "0.13.9"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",