@owney/sdk 0.6.9-beta.3 → 0.6.9-beta.4

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.d.cts CHANGED
@@ -110,14 +110,37 @@ type DepositOptions = {
110
110
  onApproved?: () => void;
111
111
  };
112
112
 
113
+ /**
114
+ * One protocol's pool selection on one chain. `pools` holds Zyfai pool NAMES
115
+ * verbatim — matched case-sensitively by customizeBatch, and an unrecognised
116
+ * name makes Zyfai's rebalance engine skip the whole protocol, so these strings
117
+ * must not be normalised anywhere.
118
+ *
119
+ * An empty array means "no usable pools on this chain".
120
+ */
121
+ type OrgPoolSelection = {
122
+ protocolId: string;
123
+ chainId: number;
124
+ pools: string[];
125
+ };
126
+ /**
127
+ * The partner's protocol/pool policy (ROUT-224). Sparse — only protocols they
128
+ * narrowed appear. Optional so an older routing API, which does not return the
129
+ * field, still parses; undefined and null both mean "change nothing".
130
+ */
131
+ type OrgPoolPolicy = {
132
+ autoApproveProtocols: boolean;
133
+ autoApprovePools: boolean;
134
+ selections: OrgPoolSelection[];
135
+ };
113
136
  /**
114
137
  * The organization's agent execution policy, or null when the partner has never
115
138
  * configured one — in which case the agents leave the user's profile alone.
116
- * Currently capital splitting only (ROUT-229).
117
139
  */
118
140
  type OrgAgentConfig = {
119
141
  splittingMode: "none" | "automatic" | "force";
120
142
  minSplits: number | null;
143
+ poolPolicy?: OrgPoolPolicy | null;
121
144
  };
122
145
 
123
146
  interface OwneyDepositResult {
package/dist/index.d.ts CHANGED
@@ -110,14 +110,37 @@ type DepositOptions = {
110
110
  onApproved?: () => void;
111
111
  };
112
112
 
113
+ /**
114
+ * One protocol's pool selection on one chain. `pools` holds Zyfai pool NAMES
115
+ * verbatim — matched case-sensitively by customizeBatch, and an unrecognised
116
+ * name makes Zyfai's rebalance engine skip the whole protocol, so these strings
117
+ * must not be normalised anywhere.
118
+ *
119
+ * An empty array means "no usable pools on this chain".
120
+ */
121
+ type OrgPoolSelection = {
122
+ protocolId: string;
123
+ chainId: number;
124
+ pools: string[];
125
+ };
126
+ /**
127
+ * The partner's protocol/pool policy (ROUT-224). Sparse — only protocols they
128
+ * narrowed appear. Optional so an older routing API, which does not return the
129
+ * field, still parses; undefined and null both mean "change nothing".
130
+ */
131
+ type OrgPoolPolicy = {
132
+ autoApproveProtocols: boolean;
133
+ autoApprovePools: boolean;
134
+ selections: OrgPoolSelection[];
135
+ };
113
136
  /**
114
137
  * The organization's agent execution policy, or null when the partner has never
115
138
  * configured one — in which case the agents leave the user's profile alone.
116
- * Currently capital splitting only (ROUT-229).
117
139
  */
118
140
  type OrgAgentConfig = {
119
141
  splittingMode: "none" | "automatic" | "force";
120
142
  minSplits: number | null;
143
+ poolPolicy?: OrgPoolPolicy | null;
121
144
  };
122
145
 
123
146
  interface OwneyDepositResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owney/sdk",
3
- "version": "0.6.9-beta.3",
3
+ "version": "0.6.9-beta.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",