@soat/cli 0.13.11 → 0.13.13

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 +255 -3
  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.11";
14
+ var version = "0.13.13";
15
15
 
16
16
  //#endregion
17
17
  //#region src/cli-wrappers/wrappers/formations.ts
@@ -2017,6 +2017,39 @@ var routes = {
2017
2017
  "in": "body"
2018
2018
  }]
2019
2019
  },
2020
+ "complete-ingestion-callback": {
2021
+ serviceClass: "Documents",
2022
+ operationId: "completeIngestionCallback",
2023
+ description: "Token-authed callback for a tool converter that deferred conversion by returning `{ \"status\": \"pending\" }` (see the Ingestion Rules module docs). Not IAM-gated — the external converter is not a SOAT principal, so it authenticates with the single-use token minted for this document and ingestion attempt (delivered as `callback.token` / embedded in `callback.url` in the original converter invocation). Accepted only while the document is still awaiting that exact attempt; rejected with `409` if the attempt already completed, timed out, or was superseded by a re-ingest.",
2024
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/documents",
2025
+ pathParams: ["document_id"],
2026
+ queryParams: ["token"],
2027
+ flags: [{
2028
+ "name": "document_id",
2029
+ "description": "Document ID",
2030
+ "required": true,
2031
+ "type": "string",
2032
+ "in": "path"
2033
+ }, {
2034
+ "name": "token",
2035
+ "description": "Single-use signed token from the original `callback.token`",
2036
+ "required": true,
2037
+ "type": "string",
2038
+ "in": "query"
2039
+ }, {
2040
+ "name": "text",
2041
+ "description": "",
2042
+ "required": false,
2043
+ "type": "string",
2044
+ "in": "body"
2045
+ }, {
2046
+ "name": "pages",
2047
+ "description": "",
2048
+ "required": false,
2049
+ "type": "array",
2050
+ "in": "body"
2051
+ }]
2052
+ },
2020
2053
  "get-document-tags": {
2021
2054
  serviceClass: "Documents",
2022
2055
  operationId: "getDocumentTags",
@@ -2659,6 +2692,225 @@ var routes = {
2659
2692
  "in": "path"
2660
2693
  }]
2661
2694
  },
2695
+ "list-ingestion-rules": {
2696
+ serviceClass: "IngestionRules",
2697
+ operationId: "listIngestionRules",
2698
+ description: "Returns the ingestion rules for a project",
2699
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ingestion-rules",
2700
+ pathParams: [],
2701
+ queryParams: ["project_id", "limit", "offset"],
2702
+ flags: [{
2703
+ "name": "project_id",
2704
+ "description": "Project ID (required if not using project key auth)",
2705
+ "required": false,
2706
+ "type": "string",
2707
+ "in": "query"
2708
+ }, {
2709
+ "name": "limit",
2710
+ "description": "Number of results per page",
2711
+ "required": false,
2712
+ "type": "integer",
2713
+ "in": "query"
2714
+ }, {
2715
+ "name": "offset",
2716
+ "description": "Number of results to skip",
2717
+ "required": false,
2718
+ "type": "integer",
2719
+ "in": "query"
2720
+ }]
2721
+ },
2722
+ "create-ingestion-rule": {
2723
+ serviceClass: "IngestionRules",
2724
+ operationId: "createIngestionRule",
2725
+ description: "Creates a rule mapping a content_type glob to a converter. Exactly one of tool_id or agent_id must be set.",
2726
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ingestion-rules",
2727
+ pathParams: [],
2728
+ queryParams: [],
2729
+ flags: [{
2730
+ "name": "project_id",
2731
+ "description": "Project ID (required if not using project key auth)",
2732
+ "required": false,
2733
+ "type": "string",
2734
+ "in": "body"
2735
+ }, {
2736
+ "name": "content_type_glob",
2737
+ "description": "MIME type glob matched against a file's content_type",
2738
+ "required": true,
2739
+ "type": "string",
2740
+ "in": "body"
2741
+ }, {
2742
+ "name": "tool_id",
2743
+ "description": "Converter tool id (mutually exclusive with agent_id)",
2744
+ "required": false,
2745
+ "type": "string",
2746
+ "in": "body"
2747
+ }, {
2748
+ "name": "agent_id",
2749
+ "description": "Converter agent id (mutually exclusive with tool_id)",
2750
+ "required": false,
2751
+ "type": "string",
2752
+ "in": "body"
2753
+ }, {
2754
+ "name": "action",
2755
+ "description": "Operation id, required for soat/mcp tool converters",
2756
+ "required": false,
2757
+ "type": "string",
2758
+ "in": "body"
2759
+ }, {
2760
+ "name": "preset_parameters",
2761
+ "description": "Merged into the tool input before invocation (tool converters only)",
2762
+ "required": false,
2763
+ "type": "object",
2764
+ "in": "body"
2765
+ }, {
2766
+ "name": "native_extraction",
2767
+ "description": "For native types (PDF/text): `first` (default) converts only when native extraction yields no text; `skip` always converts.",
2768
+ "required": false,
2769
+ "type": "string",
2770
+ "in": "body"
2771
+ }, {
2772
+ "name": "file_delivery",
2773
+ "description": "How the file reaches a tool converter (default base64)",
2774
+ "required": false,
2775
+ "type": "string",
2776
+ "in": "body"
2777
+ }, {
2778
+ "name": "chunk_strategy",
2779
+ "description": "Default chunk strategy, overridable per ingest request",
2780
+ "required": false,
2781
+ "type": "string",
2782
+ "in": "body"
2783
+ }, {
2784
+ "name": "chunk_size",
2785
+ "description": "Default window size in characters for the size strategy",
2786
+ "required": false,
2787
+ "type": "integer",
2788
+ "in": "body"
2789
+ }, {
2790
+ "name": "chunk_overlap",
2791
+ "description": "Default overlap in characters for the size strategy",
2792
+ "required": false,
2793
+ "type": "integer",
2794
+ "in": "body"
2795
+ }, {
2796
+ "name": "metadata",
2797
+ "description": "Arbitrary JSON metadata",
2798
+ "required": false,
2799
+ "type": "object",
2800
+ "in": "body"
2801
+ }]
2802
+ },
2803
+ "get-ingestion-rule": {
2804
+ serviceClass: "IngestionRules",
2805
+ operationId: "getIngestionRule",
2806
+ description: "Returns a specific ingestion rule",
2807
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ingestion-rules",
2808
+ pathParams: ["ingestion_rule_id"],
2809
+ queryParams: [],
2810
+ flags: [{
2811
+ "name": "ingestion_rule_id",
2812
+ "description": "Ingestion rule ID",
2813
+ "required": true,
2814
+ "type": "string",
2815
+ "in": "path"
2816
+ }]
2817
+ },
2818
+ "update-ingestion-rule": {
2819
+ serviceClass: "IngestionRules",
2820
+ operationId: "updateIngestionRule",
2821
+ description: "Updates fields of an ingestion rule",
2822
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ingestion-rules",
2823
+ pathParams: ["ingestion_rule_id"],
2824
+ queryParams: [],
2825
+ flags: [{
2826
+ "name": "ingestion_rule_id",
2827
+ "description": "Ingestion rule ID",
2828
+ "required": true,
2829
+ "type": "string",
2830
+ "in": "path"
2831
+ }, {
2832
+ "name": "content_type_glob",
2833
+ "description": "",
2834
+ "required": false,
2835
+ "type": "string",
2836
+ "in": "body"
2837
+ }, {
2838
+ "name": "tool_id",
2839
+ "description": "",
2840
+ "required": false,
2841
+ "type": "string",
2842
+ "in": "body"
2843
+ }, {
2844
+ "name": "agent_id",
2845
+ "description": "",
2846
+ "required": false,
2847
+ "type": "string",
2848
+ "in": "body"
2849
+ }, {
2850
+ "name": "action",
2851
+ "description": "",
2852
+ "required": false,
2853
+ "type": "string",
2854
+ "in": "body"
2855
+ }, {
2856
+ "name": "preset_parameters",
2857
+ "description": "",
2858
+ "required": false,
2859
+ "type": "object",
2860
+ "in": "body"
2861
+ }, {
2862
+ "name": "native_extraction",
2863
+ "description": "",
2864
+ "required": false,
2865
+ "type": "string",
2866
+ "in": "body"
2867
+ }, {
2868
+ "name": "file_delivery",
2869
+ "description": "",
2870
+ "required": false,
2871
+ "type": "string",
2872
+ "in": "body"
2873
+ }, {
2874
+ "name": "chunk_strategy",
2875
+ "description": "",
2876
+ "required": false,
2877
+ "type": "string",
2878
+ "in": "body"
2879
+ }, {
2880
+ "name": "chunk_size",
2881
+ "description": "",
2882
+ "required": false,
2883
+ "type": "integer",
2884
+ "in": "body"
2885
+ }, {
2886
+ "name": "chunk_overlap",
2887
+ "description": "",
2888
+ "required": false,
2889
+ "type": "integer",
2890
+ "in": "body"
2891
+ }, {
2892
+ "name": "metadata",
2893
+ "description": "",
2894
+ "required": false,
2895
+ "type": "object",
2896
+ "in": "body"
2897
+ }]
2898
+ },
2899
+ "delete-ingestion-rule": {
2900
+ serviceClass: "IngestionRules",
2901
+ operationId: "deleteIngestionRule",
2902
+ description: "Deletes an ingestion rule",
2903
+ moduleDocsUrl: "https://soat.ttoss.dev/docs/modules/ingestion-rules",
2904
+ pathParams: ["ingestion_rule_id"],
2905
+ queryParams: [],
2906
+ flags: [{
2907
+ "name": "ingestion_rule_id",
2908
+ "description": "Ingestion rule ID",
2909
+ "required": true,
2910
+ "type": "string",
2911
+ "in": "path"
2912
+ }]
2913
+ },
2662
2914
  "search-knowledge": {
2663
2915
  serviceClass: "Knowledge",
2664
2916
  operationId: "searchKnowledge",
@@ -3880,7 +4132,7 @@ var routes = {
3880
4132
  "in": "body"
3881
4133
  }, {
3882
4134
  "name": "execute",
3883
- "description": "Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), and `headers`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body.\n",
4135
+ "description": "Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `body_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself).\n",
3884
4136
  "required": false,
3885
4137
  "type": "object",
3886
4138
  "in": "body"
@@ -3964,7 +4216,7 @@ var routes = {
3964
4216
  "in": "body"
3965
4217
  }, {
3966
4218
  "name": "execute",
3967
- "description": "Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), and `headers`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body.\n",
4219
+ "description": "Execution config for http tools. Supported fields: `url` (required), `method` (default `POST`), `headers`, and `body_mode`. The `url` may contain `{paramName}` placeholders (e.g. `/users/{userId}`) that are replaced at call time with the corresponding tool argument value (URL-encoded). Arguments consumed as path parameters are excluded from the query string and request body. `body_mode` is `json` (default) or `multipart`. In `multipart` mode the merged tool arguments are sent as a `multipart/form-data` body: scalar fields become plain form fields and a field shaped like `{ content_type, filename, data_base64 }` is decoded from base64 and attached as a file part (the hardcoded `Content-Type: application/json` is dropped so `fetch` sets the multipart boundary itself).\n",
3968
4220
  "required": false,
3969
4221
  "type": "object",
3970
4222
  "in": "body"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/cli",
3
- "version": "0.13.11",
3
+ "version": "0.13.13",
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.11"
11
+ "@soat/sdk": "0.13.13"
12
12
  },
13
13
  "devDependencies": {
14
14
  "@ttoss/config": "^1.37.15",