@soat/sdk 0.5.5 → 0.5.7
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.
- package/dist/esm/index.js +116 -116
- package/dist/index.d.cts +1915 -1425
- package/dist/index.d.ts +1915 -1425
- package/dist/index.js +117 -117
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,6 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
32
32
|
var index_exports = {};
|
|
33
33
|
__export(index_exports, {
|
|
34
34
|
Actors: () => Actors,
|
|
35
|
-
AgentFormations: () => AgentFormations,
|
|
36
35
|
AgentTools: () => AgentTools,
|
|
37
36
|
Agents: () => Agents,
|
|
38
37
|
AiProviders: () => AiProviders,
|
|
@@ -41,6 +40,7 @@ __export(index_exports, {
|
|
|
41
40
|
Conversations: () => Conversations,
|
|
42
41
|
Documents: () => Documents,
|
|
43
42
|
Files: () => Files,
|
|
43
|
+
Formations: () => Formations,
|
|
44
44
|
Knowledge: () => Knowledge,
|
|
45
45
|
Memories: () => Memories,
|
|
46
46
|
MemoryEntries: () => MemoryEntries,
|
|
@@ -1023,121 +1023,6 @@ var Actors = class {
|
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
var AgentFormations = class {
|
|
1027
|
-
static {
|
|
1028
|
-
__name(this, "AgentFormations");
|
|
1029
|
-
}
|
|
1030
|
-
/**
|
|
1031
|
-
* Validate a formation template
|
|
1032
|
-
*
|
|
1033
|
-
* Validates a formation template without creating any resources. Returns a list of errors and warnings. Accepts the template as a JSON object or as a YAML/JSON string.
|
|
1034
|
-
*
|
|
1035
|
-
*/
|
|
1036
|
-
static validateAgentFormation(options) {
|
|
1037
|
-
return (options.client ?? client).post({
|
|
1038
|
-
url: "/api/v1/agent-formations/validate",
|
|
1039
|
-
...options,
|
|
1040
|
-
headers: {
|
|
1041
|
-
"Content-Type": "application/json",
|
|
1042
|
-
...options.headers
|
|
1043
|
-
}
|
|
1044
|
-
});
|
|
1045
|
-
}
|
|
1046
|
-
/**
|
|
1047
|
-
* Plan a formation deployment
|
|
1048
|
-
*
|
|
1049
|
-
* Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.
|
|
1050
|
-
*
|
|
1051
|
-
*/
|
|
1052
|
-
static planAgentFormation(options) {
|
|
1053
|
-
return (options.client ?? client).post({
|
|
1054
|
-
url: "/api/v1/agent-formations/plan",
|
|
1055
|
-
...options,
|
|
1056
|
-
headers: {
|
|
1057
|
-
"Content-Type": "application/json",
|
|
1058
|
-
...options.headers
|
|
1059
|
-
}
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
/**
|
|
1063
|
-
* List agent formations
|
|
1064
|
-
*
|
|
1065
|
-
* Returns all formation stacks for a project
|
|
1066
|
-
*/
|
|
1067
|
-
static listAgentFormations(options) {
|
|
1068
|
-
return (options?.client ?? client).get({
|
|
1069
|
-
url: "/api/v1/agent-formations",
|
|
1070
|
-
...options
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
/**
|
|
1074
|
-
* Create a new agent formation
|
|
1075
|
-
*
|
|
1076
|
-
* Validates the template, creates the formation record, then provisions all declared resources in dependency order.
|
|
1077
|
-
*
|
|
1078
|
-
*/
|
|
1079
|
-
static createAgentFormation(options) {
|
|
1080
|
-
return (options.client ?? client).post({
|
|
1081
|
-
url: "/api/v1/agent-formations",
|
|
1082
|
-
...options,
|
|
1083
|
-
headers: {
|
|
1084
|
-
"Content-Type": "application/json",
|
|
1085
|
-
...options.headers
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
/**
|
|
1090
|
-
* Delete an agent formation
|
|
1091
|
-
*
|
|
1092
|
-
* Deletes the formation stack and all its managed resources in reverse dependency order.
|
|
1093
|
-
*
|
|
1094
|
-
*/
|
|
1095
|
-
static deleteAgentFormation(options) {
|
|
1096
|
-
return (options.client ?? client).delete({
|
|
1097
|
-
url: "/api/v1/agent-formations/{formation_id}",
|
|
1098
|
-
...options
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
/**
|
|
1102
|
-
* Get a specific agent formation
|
|
1103
|
-
*
|
|
1104
|
-
* Returns the formation stack including its current resources.
|
|
1105
|
-
*/
|
|
1106
|
-
static getAgentFormation(options) {
|
|
1107
|
-
return (options.client ?? client).get({
|
|
1108
|
-
url: "/api/v1/agent-formations/{formation_id}",
|
|
1109
|
-
...options
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
/**
|
|
1113
|
-
* Update an agent formation
|
|
1114
|
-
*
|
|
1115
|
-
* Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.
|
|
1116
|
-
*
|
|
1117
|
-
*/
|
|
1118
|
-
static updateAgentFormation(options) {
|
|
1119
|
-
return (options.client ?? client).put({
|
|
1120
|
-
url: "/api/v1/agent-formations/{formation_id}",
|
|
1121
|
-
...options,
|
|
1122
|
-
headers: {
|
|
1123
|
-
"Content-Type": "application/json",
|
|
1124
|
-
...options.headers
|
|
1125
|
-
}
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
/**
|
|
1129
|
-
* List formation operation events
|
|
1130
|
-
*
|
|
1131
|
-
* Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.
|
|
1132
|
-
*
|
|
1133
|
-
*/
|
|
1134
|
-
static listAgentFormationEvents(options) {
|
|
1135
|
-
return (options.client ?? client).get({
|
|
1136
|
-
url: "/api/v1/agent-formations/{formation_id}/events",
|
|
1137
|
-
...options
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
1026
|
var AgentTools = class {
|
|
1142
1027
|
static {
|
|
1143
1028
|
__name(this, "AgentTools");
|
|
@@ -2010,6 +1895,121 @@ var Files = class {
|
|
|
2010
1895
|
});
|
|
2011
1896
|
}
|
|
2012
1897
|
};
|
|
1898
|
+
var Formations = class {
|
|
1899
|
+
static {
|
|
1900
|
+
__name(this, "Formations");
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Validate a formation template
|
|
1904
|
+
*
|
|
1905
|
+
* Validates a formation template without creating any resources. Returns a list of errors and warnings. Accepts the template as a JSON object or as a YAML/JSON string.
|
|
1906
|
+
*
|
|
1907
|
+
*/
|
|
1908
|
+
static validateFormation(options) {
|
|
1909
|
+
return (options.client ?? client).post({
|
|
1910
|
+
url: "/api/v1/formations/validate",
|
|
1911
|
+
...options,
|
|
1912
|
+
headers: {
|
|
1913
|
+
"Content-Type": "application/json",
|
|
1914
|
+
...options.headers
|
|
1915
|
+
}
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* Plan a formation deployment
|
|
1920
|
+
*
|
|
1921
|
+
* Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.
|
|
1922
|
+
*
|
|
1923
|
+
*/
|
|
1924
|
+
static planFormation(options) {
|
|
1925
|
+
return (options.client ?? client).post({
|
|
1926
|
+
url: "/api/v1/formations/plan",
|
|
1927
|
+
...options,
|
|
1928
|
+
headers: {
|
|
1929
|
+
"Content-Type": "application/json",
|
|
1930
|
+
...options.headers
|
|
1931
|
+
}
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* List formations
|
|
1936
|
+
*
|
|
1937
|
+
* Returns all formation stacks for a project
|
|
1938
|
+
*/
|
|
1939
|
+
static listFormations(options) {
|
|
1940
|
+
return (options?.client ?? client).get({
|
|
1941
|
+
url: "/api/v1/formations",
|
|
1942
|
+
...options
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* Create a new formation
|
|
1947
|
+
*
|
|
1948
|
+
* Validates the template, creates the formation record, then provisions all declared resources in dependency order.
|
|
1949
|
+
*
|
|
1950
|
+
*/
|
|
1951
|
+
static createFormation(options) {
|
|
1952
|
+
return (options.client ?? client).post({
|
|
1953
|
+
url: "/api/v1/formations",
|
|
1954
|
+
...options,
|
|
1955
|
+
headers: {
|
|
1956
|
+
"Content-Type": "application/json",
|
|
1957
|
+
...options.headers
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
/**
|
|
1962
|
+
* Delete an formation
|
|
1963
|
+
*
|
|
1964
|
+
* Deletes the formation stack and all its managed resources in reverse dependency order.
|
|
1965
|
+
*
|
|
1966
|
+
*/
|
|
1967
|
+
static deleteFormation(options) {
|
|
1968
|
+
return (options.client ?? client).delete({
|
|
1969
|
+
url: "/api/v1/formations/{formation_id}",
|
|
1970
|
+
...options
|
|
1971
|
+
});
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* Get a specific formation
|
|
1975
|
+
*
|
|
1976
|
+
* Returns the formation stack including its current resources.
|
|
1977
|
+
*/
|
|
1978
|
+
static getFormation(options) {
|
|
1979
|
+
return (options.client ?? client).get({
|
|
1980
|
+
url: "/api/v1/formations/{formation_id}",
|
|
1981
|
+
...options
|
|
1982
|
+
});
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Update an formation
|
|
1986
|
+
*
|
|
1987
|
+
* Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.
|
|
1988
|
+
*
|
|
1989
|
+
*/
|
|
1990
|
+
static updateFormation(options) {
|
|
1991
|
+
return (options.client ?? client).put({
|
|
1992
|
+
url: "/api/v1/formations/{formation_id}",
|
|
1993
|
+
...options,
|
|
1994
|
+
headers: {
|
|
1995
|
+
"Content-Type": "application/json",
|
|
1996
|
+
...options.headers
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* List formation operation events
|
|
2002
|
+
*
|
|
2003
|
+
* Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.
|
|
2004
|
+
*
|
|
2005
|
+
*/
|
|
2006
|
+
static listFormationEvents(options) {
|
|
2007
|
+
return (options.client ?? client).get({
|
|
2008
|
+
url: "/api/v1/formations/{formation_id}/events",
|
|
2009
|
+
...options
|
|
2010
|
+
});
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
2013
|
var Knowledge = class {
|
|
2014
2014
|
static {
|
|
2015
2015
|
__name(this, "Knowledge");
|
|
@@ -2837,7 +2837,6 @@ var SoatClient = class {
|
|
|
2837
2837
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2838
2838
|
0 && (module.exports = {
|
|
2839
2839
|
Actors,
|
|
2840
|
-
AgentFormations,
|
|
2841
2840
|
AgentTools,
|
|
2842
2841
|
Agents,
|
|
2843
2842
|
AiProviders,
|
|
@@ -2846,6 +2845,7 @@ var SoatClient = class {
|
|
|
2846
2845
|
Conversations,
|
|
2847
2846
|
Documents,
|
|
2848
2847
|
Files,
|
|
2848
|
+
Formations,
|
|
2849
2849
|
Knowledge,
|
|
2850
2850
|
Memories,
|
|
2851
2851
|
MemoryEntries,
|