@soat/cli 0.15.6 → 0.15.8

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 +327 -9
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import { load } from "js-yaml";
13
13
  import * as os from "node:os";
14
14
 
15
15
  //#region package.json
16
- var version = "0.15.6";
16
+ var version = "0.15.8";
17
17
 
18
18
  //#endregion
19
19
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -1313,7 +1313,7 @@ var routes = {
1313
1313
  "create-api-key": {
1314
1314
  serviceClass: "APIKeys",
1315
1315
  operationId: "createApiKey",
1316
- 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.",
1316
+ description: "Creates a new API key for the authenticated user. - `project_id` is optional. When set, the key is scoped to that single project. When omitted or null, the key is **unscoped** and spans every project its owner can reach. - 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 when scoped).",
1317
1317
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1318
1318
  pathParams: [],
1319
1319
  queryParams: [],
@@ -1325,8 +1325,8 @@ var routes = {
1325
1325
  "in": "body"
1326
1326
  }, {
1327
1327
  "name": "project_id",
1328
- "description": "Project ID this key is scoped to. Required keys cannot span projects.",
1329
- "required": true,
1328
+ "description": "Optional project ID to scope the key to. Omit or set null to create an unscoped key that spans projects.",
1329
+ "required": false,
1330
1330
  "type": "string",
1331
1331
  "in": "body"
1332
1332
  }, {
@@ -1355,7 +1355,7 @@ var routes = {
1355
1355
  "update-api-key": {
1356
1356
  serviceClass: "APIKeys",
1357
1357
  operationId: "updateApiKey",
1358
- 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.",
1358
+ description: "Updates an API key's name, project scope, or policies. The project scope can be changed to another project, set (scoping a previously unscoped key), or cleared with null (unscoping the key). Only the owner or an admin can update it.",
1359
1359
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/api-keys",
1360
1360
  pathParams: ["api_key_id"],
1361
1361
  queryParams: [],
@@ -1373,7 +1373,7 @@ var routes = {
1373
1373
  "in": "body"
1374
1374
  }, {
1375
1375
  "name": "project_id",
1376
- "description": "Re-scope the key to a different project. Cannot be null keys are always project-scoped.",
1376
+ "description": "Re-scope the key to a different project, or set null to clear the scope (unscoped key). Omit to leave the scope unchanged.",
1377
1377
  "required": false,
1378
1378
  "type": "string",
1379
1379
  "in": "body"
@@ -3005,7 +3005,7 @@ var routes = {
3005
3005
  "in": "body"
3006
3006
  }, {
3007
3007
  "name": "metadata",
3008
- "description": "",
3008
+ "description": "Static annotations stored on the formation record. This field is NOT a substitution site: `sub`/`param`/`ref` expressions are rejected with 400 (`FORMATION_INVALID_METADATA`). For deploy-time substitution use the template's top-level `metadata` block, which is resolved into `resolved_metadata`.\n",
3009
3009
  "required": false,
3010
3010
  "type": "object",
3011
3011
  "in": "body"
@@ -3053,7 +3053,7 @@ var routes = {
3053
3053
  "in": "body"
3054
3054
  }, {
3055
3055
  "name": "metadata",
3056
- "description": "",
3056
+ "description": "Static annotations stored on the formation record. This field is NOT a substitution site: `sub`/`param`/`ref` expressions are rejected with 400 (`FORMATION_INVALID_METADATA`). For deploy-time substitution use the template's top-level `metadata` block, which is resolved into `resolved_metadata`.\n",
3057
3057
  "required": false,
3058
3058
  "type": "object",
3059
3059
  "in": "body"
@@ -3710,7 +3710,7 @@ var routes = {
3710
3710
  "create-orchestration": {
3711
3711
  serviceClass: "Orchestrations",
3712
3712
  operationId: "createOrchestration",
3713
- description: "Creates a new orchestration workflow definition in the project.",
3713
+ description: "Creates a new orchestration (pipeline) definition in the project.",
3714
3714
  moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/orchestrations",
3715
3715
  pathParams: [],
3716
3716
  queryParams: [],
@@ -4628,6 +4628,189 @@ var routes = {
4628
4628
  "in": "path"
4629
4629
  }]
4630
4630
  },
4631
+ "list-tasks": {
4632
+ serviceClass: "Tasks",
4633
+ operationId: "listTasks",
4634
+ description: "Lists tasks (the board query). Filter by workflow, state, status, or assignee — `GET /tasks?workflow_id=...&state=...` is one board column.",
4635
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4636
+ pathParams: [],
4637
+ queryParams: ["project_id", "workflow_id", "state", "status", "assignee"],
4638
+ flags: [{
4639
+ "name": "project_id",
4640
+ "description": "",
4641
+ "required": false,
4642
+ "type": "string",
4643
+ "in": "query"
4644
+ }, {
4645
+ "name": "workflow_id",
4646
+ "description": "",
4647
+ "required": false,
4648
+ "type": "string",
4649
+ "in": "query"
4650
+ }, {
4651
+ "name": "state",
4652
+ "description": "",
4653
+ "required": false,
4654
+ "type": "string",
4655
+ "in": "query"
4656
+ }, {
4657
+ "name": "status",
4658
+ "description": "",
4659
+ "required": false,
4660
+ "type": "string",
4661
+ "in": "query"
4662
+ }, {
4663
+ "name": "assignee",
4664
+ "description": "",
4665
+ "required": false,
4666
+ "type": "string",
4667
+ "in": "query"
4668
+ }]
4669
+ },
4670
+ "create-task": {
4671
+ serviceClass: "Tasks",
4672
+ operationId: "createTask",
4673
+ description: "Creates a task bound to a workflow. The task is placed in the workflow's initial state and that state's `on_enter` automation fires.",
4674
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4675
+ pathParams: [],
4676
+ queryParams: [],
4677
+ flags: [{
4678
+ "name": "project_id",
4679
+ "description": "",
4680
+ "required": false,
4681
+ "type": "string",
4682
+ "in": "body"
4683
+ }, {
4684
+ "name": "workflow_id",
4685
+ "description": "",
4686
+ "required": true,
4687
+ "type": "string",
4688
+ "in": "body"
4689
+ }, {
4690
+ "name": "title",
4691
+ "description": "",
4692
+ "required": true,
4693
+ "type": "string",
4694
+ "in": "body"
4695
+ }, {
4696
+ "name": "payload",
4697
+ "description": "",
4698
+ "required": false,
4699
+ "type": "object",
4700
+ "in": "body"
4701
+ }, {
4702
+ "name": "assignee",
4703
+ "description": "",
4704
+ "required": false,
4705
+ "type": "string",
4706
+ "in": "body"
4707
+ }]
4708
+ },
4709
+ "get-task": {
4710
+ serviceClass: "Tasks",
4711
+ operationId: "getTask",
4712
+ description: "Retrieves a task, including its active dispatch and automation status.",
4713
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4714
+ pathParams: ["task_id"],
4715
+ queryParams: [],
4716
+ flags: [{
4717
+ "name": "task_id",
4718
+ "description": "",
4719
+ "required": true,
4720
+ "type": "string",
4721
+ "in": "path"
4722
+ }]
4723
+ },
4724
+ "update-task": {
4725
+ serviceClass: "Tasks",
4726
+ operationId: "updateTask",
4727
+ description: "Updates a task's payload, title, or assignee. `state` is never directly writable — move it with a transition.",
4728
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4729
+ pathParams: ["task_id"],
4730
+ queryParams: [],
4731
+ flags: [{
4732
+ "name": "task_id",
4733
+ "description": "",
4734
+ "required": true,
4735
+ "type": "string",
4736
+ "in": "path"
4737
+ }, {
4738
+ "name": "title",
4739
+ "description": "",
4740
+ "required": false,
4741
+ "type": "string",
4742
+ "in": "body"
4743
+ }, {
4744
+ "name": "payload",
4745
+ "description": "",
4746
+ "required": false,
4747
+ "type": "object",
4748
+ "in": "body"
4749
+ }, {
4750
+ "name": "assignee",
4751
+ "description": "",
4752
+ "required": false,
4753
+ "type": "string",
4754
+ "in": "body"
4755
+ }]
4756
+ },
4757
+ "delete-task": {
4758
+ serviceClass: "Tasks",
4759
+ operationId: "deleteTask",
4760
+ description: "Deletes a task. Its transition history cascades.",
4761
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4762
+ pathParams: ["task_id"],
4763
+ queryParams: [],
4764
+ flags: [{
4765
+ "name": "task_id",
4766
+ "description": "",
4767
+ "required": true,
4768
+ "type": "string",
4769
+ "in": "path"
4770
+ }]
4771
+ },
4772
+ "transition-task": {
4773
+ serviceClass: "Tasks",
4774
+ operationId: "transitionTask",
4775
+ description: "Fires a named transition on a task. The transition must exist in the workflow and be valid from the task's current state; its guard must pass. This is the single path every state change routes through.",
4776
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4777
+ pathParams: ["task_id"],
4778
+ queryParams: [],
4779
+ flags: [{
4780
+ "name": "task_id",
4781
+ "description": "",
4782
+ "required": true,
4783
+ "type": "string",
4784
+ "in": "path"
4785
+ }, {
4786
+ "name": "transition",
4787
+ "description": "",
4788
+ "required": true,
4789
+ "type": "string",
4790
+ "in": "body"
4791
+ }, {
4792
+ "name": "note",
4793
+ "description": "",
4794
+ "required": false,
4795
+ "type": "string",
4796
+ "in": "body"
4797
+ }]
4798
+ },
4799
+ "get-task-history": {
4800
+ serviceClass: "Tasks",
4801
+ operationId: "getTaskHistory",
4802
+ description: "Returns the append-only transition history of a task.",
4803
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/tasks",
4804
+ pathParams: ["task_id"],
4805
+ queryParams: [],
4806
+ flags: [{
4807
+ "name": "task_id",
4808
+ "description": "",
4809
+ "required": true,
4810
+ "type": "string",
4811
+ "in": "path"
4812
+ }]
4813
+ },
4631
4814
  "list-tools": {
4632
4815
  serviceClass: "Tools",
4633
4816
  operationId: "listTools",
@@ -5779,6 +5962,141 @@ var routes = {
5779
5962
  "type": "string",
5780
5963
  "in": "path"
5781
5964
  }]
5965
+ },
5966
+ "list-workflows": {
5967
+ serviceClass: "Workflows",
5968
+ operationId: "listWorkflows",
5969
+ description: "Lists workflow definitions in a project.",
5970
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/workflows",
5971
+ pathParams: [],
5972
+ queryParams: ["project_id"],
5973
+ flags: [{
5974
+ "name": "project_id",
5975
+ "description": "",
5976
+ "required": false,
5977
+ "type": "string",
5978
+ "in": "query"
5979
+ }]
5980
+ },
5981
+ "create-workflow": {
5982
+ serviceClass: "Workflows",
5983
+ operationId: "createWorkflow",
5984
+ description: "Creates a new workflow definition. The definition is statically validated.",
5985
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/workflows",
5986
+ pathParams: [],
5987
+ queryParams: [],
5988
+ flags: [{
5989
+ "name": "project_id",
5990
+ "description": "",
5991
+ "required": false,
5992
+ "type": "string",
5993
+ "in": "body"
5994
+ }, {
5995
+ "name": "name",
5996
+ "description": "",
5997
+ "required": true,
5998
+ "type": "string",
5999
+ "in": "body"
6000
+ }, {
6001
+ "name": "description",
6002
+ "description": "",
6003
+ "required": false,
6004
+ "type": "string",
6005
+ "in": "body"
6006
+ }, {
6007
+ "name": "states",
6008
+ "description": "",
6009
+ "required": true,
6010
+ "type": "array",
6011
+ "in": "body"
6012
+ }, {
6013
+ "name": "transitions",
6014
+ "description": "",
6015
+ "required": true,
6016
+ "type": "array",
6017
+ "in": "body"
6018
+ }, {
6019
+ "name": "payload_schema",
6020
+ "description": "",
6021
+ "required": false,
6022
+ "type": "object",
6023
+ "in": "body"
6024
+ }]
6025
+ },
6026
+ "get-workflow": {
6027
+ serviceClass: "Workflows",
6028
+ operationId: "getWorkflow",
6029
+ description: "Retrieves a workflow definition.",
6030
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/workflows",
6031
+ pathParams: ["workflow_id"],
6032
+ queryParams: [],
6033
+ flags: [{
6034
+ "name": "workflow_id",
6035
+ "description": "",
6036
+ "required": true,
6037
+ "type": "string",
6038
+ "in": "path"
6039
+ }]
6040
+ },
6041
+ "update-workflow": {
6042
+ serviceClass: "Workflows",
6043
+ operationId: "updateWorkflow",
6044
+ description: "Updates a workflow definition. Structural changes (states/transitions) are re-validated. Existing tasks in a removed state stay put but can only leave via transitions valid in the new definition.",
6045
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/workflows",
6046
+ pathParams: ["workflow_id"],
6047
+ queryParams: [],
6048
+ flags: [{
6049
+ "name": "workflow_id",
6050
+ "description": "",
6051
+ "required": true,
6052
+ "type": "string",
6053
+ "in": "path"
6054
+ }, {
6055
+ "name": "name",
6056
+ "description": "",
6057
+ "required": false,
6058
+ "type": "string",
6059
+ "in": "body"
6060
+ }, {
6061
+ "name": "description",
6062
+ "description": "",
6063
+ "required": false,
6064
+ "type": "string",
6065
+ "in": "body"
6066
+ }, {
6067
+ "name": "states",
6068
+ "description": "",
6069
+ "required": false,
6070
+ "type": "array",
6071
+ "in": "body"
6072
+ }, {
6073
+ "name": "transitions",
6074
+ "description": "",
6075
+ "required": false,
6076
+ "type": "array",
6077
+ "in": "body"
6078
+ }, {
6079
+ "name": "payload_schema",
6080
+ "description": "",
6081
+ "required": false,
6082
+ "type": "object",
6083
+ "in": "body"
6084
+ }]
6085
+ },
6086
+ "delete-workflow": {
6087
+ serviceClass: "Workflows",
6088
+ operationId: "deleteWorkflow",
6089
+ description: "Deletes a workflow. Rejected while open tasks exist.",
6090
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/workflows",
6091
+ pathParams: ["workflow_id"],
6092
+ queryParams: [],
6093
+ flags: [{
6094
+ "name": "workflow_id",
6095
+ "description": "",
6096
+ "required": true,
6097
+ "type": "string",
6098
+ "in": "path"
6099
+ }]
5782
6100
  }
5783
6101
  };
5784
6102
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.15.6",
3
+ "version": "0.15.8",
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.15.6"
11
+ "@soat/sdk": "0.15.8"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.17",