@soat/sdk 0.5.1 → 0.5.3
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 -1
- package/dist/index.d.cts +479 -1
- package/dist/index.d.ts +479 -1
- package/dist/index.js +117 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -971,6 +971,121 @@ var Actors = class {
|
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
+
var AgentFormations = class {
|
|
975
|
+
static {
|
|
976
|
+
__name(this, "AgentFormations");
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Validate a formation template
|
|
980
|
+
*
|
|
981
|
+
* 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.
|
|
982
|
+
*
|
|
983
|
+
*/
|
|
984
|
+
static validateAgentFormation(options) {
|
|
985
|
+
return (options.client ?? client).post({
|
|
986
|
+
url: "/api/v1/agent-formations/validate",
|
|
987
|
+
...options,
|
|
988
|
+
headers: {
|
|
989
|
+
"Content-Type": "application/json",
|
|
990
|
+
...options.headers
|
|
991
|
+
}
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* Plan a formation deployment
|
|
996
|
+
*
|
|
997
|
+
* Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.
|
|
998
|
+
*
|
|
999
|
+
*/
|
|
1000
|
+
static planAgentFormation(options) {
|
|
1001
|
+
return (options.client ?? client).post({
|
|
1002
|
+
url: "/api/v1/agent-formations/plan",
|
|
1003
|
+
...options,
|
|
1004
|
+
headers: {
|
|
1005
|
+
"Content-Type": "application/json",
|
|
1006
|
+
...options.headers
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* List agent formations
|
|
1012
|
+
*
|
|
1013
|
+
* Returns all formation stacks for a project
|
|
1014
|
+
*/
|
|
1015
|
+
static listAgentFormations(options) {
|
|
1016
|
+
return (options?.client ?? client).get({
|
|
1017
|
+
url: "/api/v1/agent-formations",
|
|
1018
|
+
...options
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Create a new agent formation
|
|
1023
|
+
*
|
|
1024
|
+
* Validates the template, creates the formation record, then provisions all declared resources in dependency order.
|
|
1025
|
+
*
|
|
1026
|
+
*/
|
|
1027
|
+
static createAgentFormation(options) {
|
|
1028
|
+
return (options.client ?? client).post({
|
|
1029
|
+
url: "/api/v1/agent-formations",
|
|
1030
|
+
...options,
|
|
1031
|
+
headers: {
|
|
1032
|
+
"Content-Type": "application/json",
|
|
1033
|
+
...options.headers
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Delete an agent formation
|
|
1039
|
+
*
|
|
1040
|
+
* Deletes the formation stack and all its managed resources in reverse dependency order.
|
|
1041
|
+
*
|
|
1042
|
+
*/
|
|
1043
|
+
static deleteAgentFormation(options) {
|
|
1044
|
+
return (options.client ?? client).delete({
|
|
1045
|
+
url: "/api/v1/agent-formations/{formation_id}",
|
|
1046
|
+
...options
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* Get a specific agent formation
|
|
1051
|
+
*
|
|
1052
|
+
* Returns the formation stack including its current resources.
|
|
1053
|
+
*/
|
|
1054
|
+
static getAgentFormation(options) {
|
|
1055
|
+
return (options.client ?? client).get({
|
|
1056
|
+
url: "/api/v1/agent-formations/{formation_id}",
|
|
1057
|
+
...options
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Update an agent formation
|
|
1062
|
+
*
|
|
1063
|
+
* Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.
|
|
1064
|
+
*
|
|
1065
|
+
*/
|
|
1066
|
+
static updateAgentFormation(options) {
|
|
1067
|
+
return (options.client ?? client).put({
|
|
1068
|
+
url: "/api/v1/agent-formations/{formation_id}",
|
|
1069
|
+
...options,
|
|
1070
|
+
headers: {
|
|
1071
|
+
"Content-Type": "application/json",
|
|
1072
|
+
...options.headers
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* List formation operation events
|
|
1078
|
+
*
|
|
1079
|
+
* Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.
|
|
1080
|
+
*
|
|
1081
|
+
*/
|
|
1082
|
+
static listAgentFormationEvents(options) {
|
|
1083
|
+
return (options.client ?? client).get({
|
|
1084
|
+
url: "/api/v1/agent-formations/{formation_id}/events",
|
|
1085
|
+
...options
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
};
|
|
974
1089
|
var AgentTools = class {
|
|
975
1090
|
static {
|
|
976
1091
|
__name(this, "AgentTools");
|
|
@@ -2667,4 +2782,4 @@ var SoatClient = class {
|
|
|
2667
2782
|
this.webhooks = bindResource(Webhooks, httpClient);
|
|
2668
2783
|
}
|
|
2669
2784
|
};
|
|
2670
|
-
export { Actors, AgentTools, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Knowledge, Memories, MemoryEntries, Policies, Projects, Secrets, Sessions, SoatClient, Traces, Users, Webhooks, createClient, createConfig };
|
|
2785
|
+
export { Actors, AgentFormations, AgentTools, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Knowledge, Memories, MemoryEntries, Policies, Projects, Secrets, Sessions, SoatClient, Traces, Users, Webhooks, createClient, createConfig };
|