@soat/sdk 0.5.6 → 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 CHANGED
@@ -971,121 +971,6 @@ 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
- };
1089
974
  var AgentTools = class {
1090
975
  static {
1091
976
  __name(this, "AgentTools");
@@ -1958,6 +1843,121 @@ var Files = class {
1958
1843
  });
1959
1844
  }
1960
1845
  };
1846
+ var Formations = class {
1847
+ static {
1848
+ __name(this, "Formations");
1849
+ }
1850
+ /**
1851
+ * Validate a formation template
1852
+ *
1853
+ * 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.
1854
+ *
1855
+ */
1856
+ static validateFormation(options) {
1857
+ return (options.client ?? client).post({
1858
+ url: "/api/v1/formations/validate",
1859
+ ...options,
1860
+ headers: {
1861
+ "Content-Type": "application/json",
1862
+ ...options.headers
1863
+ }
1864
+ });
1865
+ }
1866
+ /**
1867
+ * Plan a formation deployment
1868
+ *
1869
+ * Computes a diff between the desired template and the current stack state without making any changes. Returns the list of planned actions.
1870
+ *
1871
+ */
1872
+ static planFormation(options) {
1873
+ return (options.client ?? client).post({
1874
+ url: "/api/v1/formations/plan",
1875
+ ...options,
1876
+ headers: {
1877
+ "Content-Type": "application/json",
1878
+ ...options.headers
1879
+ }
1880
+ });
1881
+ }
1882
+ /**
1883
+ * List formations
1884
+ *
1885
+ * Returns all formation stacks for a project
1886
+ */
1887
+ static listFormations(options) {
1888
+ return (options?.client ?? client).get({
1889
+ url: "/api/v1/formations",
1890
+ ...options
1891
+ });
1892
+ }
1893
+ /**
1894
+ * Create a new formation
1895
+ *
1896
+ * Validates the template, creates the formation record, then provisions all declared resources in dependency order.
1897
+ *
1898
+ */
1899
+ static createFormation(options) {
1900
+ return (options.client ?? client).post({
1901
+ url: "/api/v1/formations",
1902
+ ...options,
1903
+ headers: {
1904
+ "Content-Type": "application/json",
1905
+ ...options.headers
1906
+ }
1907
+ });
1908
+ }
1909
+ /**
1910
+ * Delete an formation
1911
+ *
1912
+ * Deletes the formation stack and all its managed resources in reverse dependency order.
1913
+ *
1914
+ */
1915
+ static deleteFormation(options) {
1916
+ return (options.client ?? client).delete({
1917
+ url: "/api/v1/formations/{formation_id}",
1918
+ ...options
1919
+ });
1920
+ }
1921
+ /**
1922
+ * Get a specific formation
1923
+ *
1924
+ * Returns the formation stack including its current resources.
1925
+ */
1926
+ static getFormation(options) {
1927
+ return (options.client ?? client).get({
1928
+ url: "/api/v1/formations/{formation_id}",
1929
+ ...options
1930
+ });
1931
+ }
1932
+ /**
1933
+ * Update an formation
1934
+ *
1935
+ * Applies a new template to the formation. Resources are created, updated, or deleted to reconcile the current state with the desired state.
1936
+ *
1937
+ */
1938
+ static updateFormation(options) {
1939
+ return (options.client ?? client).put({
1940
+ url: "/api/v1/formations/{formation_id}",
1941
+ ...options,
1942
+ headers: {
1943
+ "Content-Type": "application/json",
1944
+ ...options.headers
1945
+ }
1946
+ });
1947
+ }
1948
+ /**
1949
+ * List formation operation events
1950
+ *
1951
+ * Returns all operations (create, update, delete) with their event logs for the formation, ordered chronologically.
1952
+ *
1953
+ */
1954
+ static listFormationEvents(options) {
1955
+ return (options.client ?? client).get({
1956
+ url: "/api/v1/formations/{formation_id}/events",
1957
+ ...options
1958
+ });
1959
+ }
1960
+ };
1961
1961
  var Knowledge = class {
1962
1962
  static {
1963
1963
  __name(this, "Knowledge");
@@ -2782,4 +2782,4 @@ var SoatClient = class {
2782
2782
  this.webhooks = bindResource(Webhooks, httpClient);
2783
2783
  }
2784
2784
  };
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 };
2785
+ export { Actors, AgentTools, Agents, AiProviders, ApiKeys, Chats, Conversations, Documents, Files, Formations, Knowledge, Memories, MemoryEntries, Policies, Projects, Secrets, Sessions, SoatClient, Traces, Users, Webhooks, createClient, createConfig };