@soat/sdk 0.5.1 → 0.5.2

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/index.js CHANGED
@@ -32,6 +32,7 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
32
  var index_exports = {};
33
33
  __export(index_exports, {
34
34
  Actors: () => Actors,
35
+ AgentFormations: () => AgentFormations,
35
36
  AgentTools: () => AgentTools,
36
37
  Agents: () => Agents,
37
38
  AiProviders: () => AiProviders,
@@ -1022,6 +1023,121 @@ var Actors = class {
1022
1023
  });
1023
1024
  }
1024
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.
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
+ };
1025
1141
  var AgentTools = class {
1026
1142
  static {
1027
1143
  __name(this, "AgentTools");
@@ -2721,6 +2837,7 @@ var SoatClient = class {
2721
2837
  // Annotate the CommonJS export names for ESM import in node:
2722
2838
  0 && (module.exports = {
2723
2839
  Actors,
2840
+ AgentFormations,
2724
2841
  AgentTools,
2725
2842
  Agents,
2726
2843
  AiProviders,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soat/sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "TypeScript SDK for the SOAT API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",