@adaptic/backend-legacy 0.0.1056 → 0.0.1058

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.
Files changed (292) hide show
  1. package/Account.cjs +14 -0
  2. package/AccountLinkingRequest.cjs +14 -0
  3. package/AccountRiskMetrics.cjs +11 -0
  4. package/AdaConversation.cjs +14 -0
  5. package/Alert.cjs +11 -0
  6. package/Allocation.cjs +11 -0
  7. package/AlpacaAccount.cjs +36 -0
  8. package/Authenticator.cjs +14 -0
  9. package/AutoFollowRule.cjs +14 -0
  10. package/BrokerageAccount.cjs +11 -0
  11. package/Customer.cjs +14 -0
  12. package/DeskDecision.cjs +11 -0
  13. package/FeatureFlagOverride.cjs +14 -0
  14. package/Follow.cjs +14 -0
  15. package/Fund.cjs +56 -0
  16. package/FundAssignment.cjs +14 -0
  17. package/Investor.cjs +14 -0
  18. package/LinkedProvider.cjs +14 -0
  19. package/LlmConfiguration.cjs +14 -0
  20. package/Mandate.cjs +14 -0
  21. package/MandateApproval.cjs +14 -0
  22. package/MandateVersion.cjs +14 -0
  23. package/NotificationDelivery.cjs +14 -0
  24. package/NotificationPreference.cjs +14 -0
  25. package/OrgMembership.cjs +14 -0
  26. package/PolicyOverlay.cjs +64 -0
  27. package/PushSubscription.cjs +14 -0
  28. package/RiskEscalationEvent.cjs +33 -0
  29. package/Session.cjs +14 -0
  30. package/Strategy.cjs +28 -0
  31. package/StrategyHealthSnapshot.cjs +11 -0
  32. package/StrategySubscription.cjs +11 -0
  33. package/TradingPolicy.cjs +6 -0
  34. package/User.cjs +11 -0
  35. package/UserTotp.cjs +14 -0
  36. package/WaitlistEntry.cjs +14 -0
  37. package/auth/authorization-map.cjs +306 -0
  38. package/auth/authorization-map.d.ts +143 -0
  39. package/auth/cortex-auth-checker.cjs +172 -0
  40. package/auth/cortex-auth-checker.d.ts +114 -0
  41. package/auth/credential-fields.cjs +51 -0
  42. package/auth/credential-fields.d.ts +19 -0
  43. package/auth/credential-redaction.cjs +134 -0
  44. package/auth/credential-redaction.d.ts +60 -0
  45. package/auth/graphql-auth-shadow.cjs +317 -0
  46. package/auth/graphql-auth-shadow.d.ts +194 -0
  47. package/auth/membership-write-authority.cjs +131 -0
  48. package/auth/membership-write-authority.d.ts +110 -0
  49. package/auth/mutation-authorization.cjs +376 -0
  50. package/auth/mutation-authorization.d.ts +261 -0
  51. package/auth/nested-write-inspector.cjs +189 -0
  52. package/auth/nested-write-inspector.d.ts +94 -0
  53. package/auth/nested-write-policy.cjs +189 -0
  54. package/auth/nested-write-policy.d.ts +99 -0
  55. package/auth/service-token.cjs +316 -0
  56. package/auth/service-token.d.ts +94 -0
  57. package/auth/tenancy-scope.cjs +736 -0
  58. package/auth/tenancy-scope.d.ts +347 -0
  59. package/auth/token-verifier.cjs +451 -0
  60. package/auth/token-verifier.d.ts +153 -0
  61. package/auth/totp.cjs +265 -0
  62. package/auth/totp.d.ts +111 -0
  63. package/auth/user-write-content.cjs +116 -0
  64. package/auth/user-write-content.d.ts +47 -0
  65. package/auth/ws-auth-context.cjs +75 -0
  66. package/auth/ws-auth-context.d.ts +69 -0
  67. package/config/jwtConfig.cjs +52 -0
  68. package/config/jwtConfig.d.ts +16 -0
  69. package/config/metrics.cjs +356 -0
  70. package/config/metrics.d.ts +128 -0
  71. package/config/persisted-queries.cjs +122 -0
  72. package/config/persisted-queries.d.ts +40 -0
  73. package/config/server-only-models.cjs +166 -0
  74. package/config/server-only-models.d.ts +89 -0
  75. package/config/tracing.d.ts +24 -0
  76. package/esm/Account.mjs +14 -0
  77. package/esm/AccountLinkingRequest.mjs +14 -0
  78. package/esm/AccountRiskMetrics.mjs +11 -0
  79. package/esm/AdaConversation.mjs +14 -0
  80. package/esm/Alert.mjs +11 -0
  81. package/esm/Allocation.mjs +11 -0
  82. package/esm/AlpacaAccount.mjs +36 -0
  83. package/esm/Authenticator.mjs +14 -0
  84. package/esm/AutoFollowRule.mjs +14 -0
  85. package/esm/BrokerageAccount.mjs +11 -0
  86. package/esm/Customer.mjs +14 -0
  87. package/esm/DeskDecision.mjs +11 -0
  88. package/esm/FeatureFlagOverride.mjs +14 -0
  89. package/esm/Follow.mjs +14 -0
  90. package/esm/Fund.mjs +56 -0
  91. package/esm/FundAssignment.mjs +14 -0
  92. package/esm/Investor.mjs +14 -0
  93. package/esm/LinkedProvider.mjs +14 -0
  94. package/esm/LlmConfiguration.mjs +14 -0
  95. package/esm/Mandate.mjs +14 -0
  96. package/esm/MandateApproval.mjs +14 -0
  97. package/esm/MandateVersion.mjs +14 -0
  98. package/esm/NotificationDelivery.mjs +14 -0
  99. package/esm/NotificationPreference.mjs +14 -0
  100. package/esm/OrgMembership.mjs +14 -0
  101. package/esm/PolicyOverlay.mjs +64 -0
  102. package/esm/PushSubscription.mjs +14 -0
  103. package/esm/RiskEscalationEvent.mjs +33 -0
  104. package/esm/Session.mjs +14 -0
  105. package/esm/Strategy.mjs +28 -0
  106. package/esm/StrategyHealthSnapshot.mjs +11 -0
  107. package/esm/StrategySubscription.mjs +11 -0
  108. package/esm/TradingPolicy.mjs +6 -0
  109. package/esm/User.mjs +11 -0
  110. package/esm/UserTotp.mjs +14 -0
  111. package/esm/WaitlistEntry.mjs +14 -0
  112. package/esm/generated/typeStrings/PolicyOverlay.d.ts +1 -1
  113. package/esm/generated/typeStrings/PolicyOverlay.mjs +18 -0
  114. package/esm/generated/typeStrings/TradingPolicy.d.ts +1 -1
  115. package/esm/generated/typeStrings/TradingPolicy.mjs +18 -0
  116. package/esm/generated/typeStrings/index.d.ts +2 -2
  117. package/esm/generated/typegraphql-prisma/enhance.mjs +18 -18
  118. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +1 -0
  119. package/esm/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.mjs +1 -0
  120. package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts +20 -0
  121. package/esm/generated/typegraphql-prisma/models/TradingPolicy.mjs +27 -0
  122. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
  123. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
  124. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
  125. package/esm/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
  126. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +1 -0
  127. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.mjs +7 -0
  128. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +1 -0
  129. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.mjs +7 -0
  130. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +1 -0
  131. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.mjs +7 -0
  132. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +1 -0
  133. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.mjs +7 -0
  134. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +1 -0
  135. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.mjs +7 -0
  136. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +1 -0
  137. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.mjs +7 -0
  138. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +1 -0
  139. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.mjs +7 -0
  140. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +1 -0
  141. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.mjs +7 -0
  142. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +1 -0
  143. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.mjs +7 -0
  144. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +1 -0
  145. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.mjs +7 -0
  146. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +1 -0
  147. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.mjs +7 -0
  148. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +1 -0
  149. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.mjs +7 -0
  150. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +1 -0
  151. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.mjs +7 -0
  152. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +1 -0
  153. package/esm/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.mjs +7 -0
  154. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +1 -0
  155. package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.mjs +7 -0
  156. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +1 -0
  157. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.mjs +7 -0
  158. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +1 -0
  159. package/esm/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.mjs +7 -0
  160. package/esm/index.d.ts +1 -0
  161. package/esm/index.mjs +2 -0
  162. package/esm/middleware/mutation-account-facts.d.ts +3 -0
  163. package/esm/middleware/mutation-account-facts.mjs +2 -0
  164. package/esm/middleware/trading-policy-audit.d.ts +16 -4
  165. package/esm/middleware/trading-policy-audit.mjs +40 -11
  166. package/esm/readers/index.d.ts +10 -0
  167. package/esm/readers/index.mjs +10 -0
  168. package/esm/readers/intraday-lane-prefs.d.ts +45 -0
  169. package/esm/readers/intraday-lane-prefs.mjs +71 -0
  170. package/esm/tests/trading-policy-lane-fields-roundtrip.harness.d.ts +14 -0
  171. package/esm/tests/trading-policy-lane-fields-roundtrip.harness.mjs +107 -0
  172. package/generated/typeStrings/PolicyOverlay.cjs +18 -0
  173. package/generated/typeStrings/PolicyOverlay.d.ts +1 -1
  174. package/generated/typeStrings/TradingPolicy.cjs +18 -0
  175. package/generated/typeStrings/TradingPolicy.d.ts +1 -1
  176. package/generated/typeStrings/index.d.ts +2 -2
  177. package/generated/typegraphql-prisma/enhance.cjs +21 -21
  178. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.cjs +1 -0
  179. package/generated/typegraphql-prisma/enums/TradingPolicyScalarFieldEnum.d.ts +1 -0
  180. package/generated/typegraphql-prisma/index.cjs +6 -6
  181. package/generated/typegraphql-prisma/models/TradingPolicy.cjs +7 -0
  182. package/generated/typegraphql-prisma/models/TradingPolicy.d.ts +20 -0
  183. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyArgs.d.ts +1 -1
  184. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindFirstTradingPolicyOrThrowArgs.d.ts +1 -1
  185. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/FindManyTradingPolicyArgs.d.ts +1 -1
  186. package/generated/typegraphql-prisma/resolvers/crud/TradingPolicy/args/GroupByTradingPolicyArgs.d.ts +1 -1
  187. package/generated/typegraphql-prisma/resolvers/crud/args.index.cjs +95 -95
  188. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.cjs +6 -0
  189. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCountOrderByAggregateInput.d.ts +1 -0
  190. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.cjs +6 -0
  191. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateInput.d.ts +1 -0
  192. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.cjs +6 -0
  193. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateManyInput.d.ts +1 -0
  194. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.cjs +6 -0
  195. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutAlpacaAccountInput.d.ts +1 -0
  196. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.cjs +6 -0
  197. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyCreateWithoutOverlaysInput.d.ts +1 -0
  198. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.cjs +6 -0
  199. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithAggregationInput.d.ts +1 -0
  200. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.cjs +6 -0
  201. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyOrderByWithRelationInput.d.ts +1 -0
  202. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.cjs +6 -0
  203. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyScalarWhereWithAggregatesInput.d.ts +1 -0
  204. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.cjs +6 -0
  205. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateInput.d.ts +1 -0
  206. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.cjs +6 -0
  207. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateManyMutationInput.d.ts +1 -0
  208. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.cjs +6 -0
  209. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutAlpacaAccountInput.d.ts +1 -0
  210. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.cjs +6 -0
  211. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyUpdateWithoutOverlaysInput.d.ts +1 -0
  212. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.cjs +6 -0
  213. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereInput.d.ts +1 -0
  214. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.cjs +6 -0
  215. package/generated/typegraphql-prisma/resolvers/inputs/TradingPolicyWhereUniqueInput.d.ts +1 -0
  216. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.cjs +6 -0
  217. package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnTradingPolicy.d.ts +1 -0
  218. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.cjs +6 -0
  219. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyCountAggregate.d.ts +1 -0
  220. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.cjs +6 -0
  221. package/generated/typegraphql-prisma/resolvers/outputs/TradingPolicyGroupBy.d.ts +1 -0
  222. package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +1 -1
  223. package/generated/typegraphql-prisma/resolvers/relations/args.index.cjs +32 -32
  224. package/index.cjs +2 -0
  225. package/index.d.ts +1 -0
  226. package/middleware/audit-log-write-redaction.cjs +143 -0
  227. package/middleware/audit-log-write-redaction.d.ts +82 -0
  228. package/middleware/audit-logger.cjs +378 -0
  229. package/middleware/audit-logger.d.ts +158 -0
  230. package/middleware/audit-payload-guard.cjs +107 -0
  231. package/middleware/audit-payload-guard.d.ts +85 -0
  232. package/middleware/auth.cjs +66 -0
  233. package/middleware/auth.d.ts +41 -0
  234. package/middleware/credential-field-guard.cjs +514 -0
  235. package/middleware/credential-field-guard.d.ts +173 -0
  236. package/middleware/generated-type-names.cjs +77 -0
  237. package/middleware/generated-type-names.d.ts +44 -0
  238. package/middleware/graphql-validation-plugin.cjs +310 -0
  239. package/middleware/graphql-validation-plugin.d.ts +98 -0
  240. package/middleware/guard-log-throttle.cjs +89 -0
  241. package/middleware/guard-log-throttle.d.ts +80 -0
  242. package/middleware/index.cjs +57 -0
  243. package/middleware/index.d.ts +14 -0
  244. package/middleware/input-validator.cjs +220 -0
  245. package/middleware/input-validator.d.ts +63 -0
  246. package/middleware/mandate-version-validation.cjs +131 -0
  247. package/middleware/mandate-version-validation.d.ts +41 -0
  248. package/middleware/mutation-account-facts.cjs +223 -0
  249. package/middleware/mutation-account-facts.d.ts +143 -0
  250. package/middleware/mutation-auth-guard.cjs +536 -0
  251. package/middleware/mutation-auth-guard.d.ts +100 -0
  252. package/middleware/mutation-membership-facts.cjs +276 -0
  253. package/middleware/mutation-membership-facts.d.ts +133 -0
  254. package/middleware/mutation-tenant-facts.cjs +132 -0
  255. package/middleware/mutation-tenant-facts.d.ts +81 -0
  256. package/middleware/query-complexity.cjs +182 -0
  257. package/middleware/query-complexity.d.ts +56 -0
  258. package/middleware/rate-limiter.cjs +223 -0
  259. package/middleware/rate-limiter.d.ts +93 -0
  260. package/middleware/rate-tier.cjs +111 -0
  261. package/middleware/rate-tier.d.ts +56 -0
  262. package/middleware/soft-delete.cjs +175 -0
  263. package/middleware/soft-delete.d.ts +146 -0
  264. package/middleware/tenancy-scoping.cjs +229 -0
  265. package/middleware/tenancy-scoping.d.ts +67 -0
  266. package/middleware/trading-policy-audit.cjs +353 -0
  267. package/middleware/trading-policy-audit.d.ts +184 -0
  268. package/middleware/types.cjs +17 -0
  269. package/middleware/types.d.ts +87 -0
  270. package/middleware/validation-examples.cjs +398 -0
  271. package/middleware/validation-examples.d.ts +76 -0
  272. package/package.json +10 -2
  273. package/readers/index.cjs +15 -0
  274. package/readers/index.d.ts +10 -0
  275. package/readers/intraday-lane-prefs.cjs +76 -0
  276. package/readers/intraday-lane-prefs.d.ts +45 -0
  277. package/esm/config/__tests__/server-only-surface.harness.d.ts +0 -12
  278. package/esm/config/__tests__/server-only-surface.harness.mjs +0 -41
  279. package/esm/middleware/__tests__/audit-log-write-redaction.harness.d.ts +0 -144
  280. package/esm/middleware/__tests__/audit-log-write-redaction.harness.mjs +0 -920
  281. package/esm/middleware/__tests__/credential-field-coverage.harness.d.ts +0 -55
  282. package/esm/middleware/__tests__/credential-field-coverage.harness.mjs +0 -440
  283. package/esm/middleware/__tests__/credential-field-guard.harness.d.ts +0 -34
  284. package/esm/middleware/__tests__/credential-field-guard.harness.mjs +0 -212
  285. package/esm/middleware/__tests__/mutation-auth-guard.harness.d.ts +0 -56
  286. package/esm/middleware/__tests__/mutation-auth-guard.harness.mjs +0 -570
  287. package/esm/middleware/__tests__/rate-limit-test-utils.d.ts +0 -60
  288. package/esm/middleware/__tests__/rate-limit-test-utils.mjs +0 -85
  289. package/esm/middleware/__tests__/ts-node-harness.d.ts +0 -10
  290. package/esm/middleware/__tests__/ts-node-harness.mjs +0 -71
  291. package/health.cjs +0 -274
  292. package/server.cjs +0 -607
@@ -56,8 +56,8 @@ export declare const typeStrings: {
56
56
  readonly waitlistEntry: "\n// Your response should adhere to the following type definition for the \"WaitlistEntry\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type WaitlistEntry = {\n // The email address of the person on the waitlist.\n email: string;\n // The full name of the person on the waitlist.\n fullName: string;\n // The company name of the person on the waitlist.\n companyName: string;\n // The company website URL (optional).\n companyWebsite?: string;\n // The job role/title of the person on the waitlist.\n jobRole: string;\n // Whether the person has confirmed they are a professional investor.\n professionalInvestorConfirmed: boolean;\n // The current status of the waitlist entry.\n status: WaitlistStatus;\n // The position in the waitlist queue.\n queuePosition: number;\n};\n\nenum WaitlistStatus {\n PENDING\n\n APPROVED\n\n REJECTED\n}\n\n";
57
57
  readonly inviteToken: "\n// Your response should adhere to the following type definition for the \"InviteToken\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type InviteToken = {\n // The unique token string used for invitation.\n token: string;\n // The email address the token was generated for.\n email: string;\n // Whether the token has been used.\n used: boolean;\n};\n\n";
58
58
  readonly auditLog: "\n// Your response should adhere to the following type definition for the \"AuditLog\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AuditLog = {\n // The type of mutation operation performed.\n operationType: AuditOperationType;\n // The name of the Prisma model that was mutated.\n modelName: string;\n // JSON snapshot of the fields that were changed. For creates: all fields. For updates: changed fields with before/after values. For deletes: all fields at time of deletion.\n changedFields: any;\n // The GraphQL operation name that triggered the mutation, if available.\n operationName?: string;\n // Ledger position, assigned by the database from the `audit_logs_ledger_seq`\nsequence on insert and never by a caller (omitted from the create and\nupdate inputs). Strictly increasing across all rows, so increasing within\nevery fund, with gaps. Rows written before the ledger existed hold null:\nnumbering them would invent an order their timestamps do not establish.\nThe desk ledger id is `L-<ledgerSeq>`; a page before a cursor is\n`where: { fundId: { equals }, ledgerSeq: { lt } }`, `orderBy: [{ ledgerSeq: { sort: desc } }]`.\n@TypeGraphQL.omit(input: [\"create\", \"update\"])\n ledgerSeq?: any;\n};\n\nenum AuditOperationType {\n CREATE\n\n UPDATE\n\n DELETE\n}\n\n";
59
- readonly tradingPolicy: "\n// Your response should adhere to the following type definition for the \"TradingPolicy\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type TradingPolicy = {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities — minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: {\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n }[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n\n DEEPINFRA\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\n";
60
- readonly policyOverlay: "\n// Your response should adhere to the following type definition for the \"PolicyOverlay\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type PolicyOverlay = {\n // Relation to TradingPolicy.\n tradingPolicy: {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities — minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: PolicyOverlay[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n };\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n\n DEEPINFRA\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\n";
59
+ readonly tradingPolicy: "\n// Your response should adhere to the following type definition for the \"TradingPolicy\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type TradingPolicy = {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities — minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n // Per-account multi-lane intraday preferences: the single carrier of the\naccount's lane opt-in (`armed`) and its per-lane caps, including the\ntrades-per-day cap (`perLaneTradesPerDay`). It is validated at the engine's\nread boundary by the strict IntradayLanePrefs schema in @adaptic/utils\n(trading-policy/schemas). NULL, a value that fails that schema, or an\nabsent cap means the lanes are disarmed for this account. One JSON carrier\ninstead of separate arming and cap columns keeps a single arming predicate,\nso there are no two homes for one setting that could disagree.\n\nIt is left out of every generated selection set (GQL.SKIP) on purpose. A\nGraphQL server that predates the column rejects any operation that\nselects it, and the TradingPolicy selection set feeds the engine's order\nchokepoint and broker-credential reads. Keeping the field out lets a\nconsumer of this package run against a server whether or not the\nmigration has been applied. It is read through `readIntradayLanePrefs`,\nwhose failure the lane path treats as disarmed, and written through the\ngenerated create and update inputs.\n intradayLanePrefs?: any;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: {\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n }[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n\n DEEPINFRA\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\n";
60
+ readonly policyOverlay: "\n// Your response should adhere to the following type definition for the \"PolicyOverlay\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type PolicyOverlay = {\n // Relation to TradingPolicy.\n tradingPolicy: {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities — minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n // Per-account multi-lane intraday preferences: the single carrier of the\naccount's lane opt-in (`armed`) and its per-lane caps, including the\ntrades-per-day cap (`perLaneTradesPerDay`). It is validated at the engine's\nread boundary by the strict IntradayLanePrefs schema in @adaptic/utils\n(trading-policy/schemas). NULL, a value that fails that schema, or an\nabsent cap means the lanes are disarmed for this account. One JSON carrier\ninstead of separate arming and cap columns keeps a single arming predicate,\nso there are no two homes for one setting that could disagree.\n\nIt is left out of every generated selection set (GQL.SKIP) on purpose. A\nGraphQL server that predates the column rejects any operation that\nselects it, and the TradingPolicy selection set feeds the engine's order\nchokepoint and broker-credential reads. Keeping the field out lets a\nconsumer of this package run against a server whether or not the\nmigration has been applied. It is read through `readIntradayLanePrefs`,\nwhose failure the lane path treats as disarmed, and written through the\ngenerated create and update inputs.\n intradayLanePrefs?: any;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: PolicyOverlay[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n };\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n\n DEEPINFRA\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\n";
61
61
  readonly accountDecisionRecord: "\n// Your response should adhere to the following type definition for the \"AccountDecisionRecord\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AccountDecisionRecord = {\n symbol: string;\n assetClass: string;\n signalAction: string;\n signalConfidence: number;\n decision: DecisionOutcome;\n decisionRationale?: string;\n decisionConfidence?: number;\n actionIntents?: any;\n validationResults?: any;\n executionResults?: any;\n effectivePolicySnapshot: any;\n positionsSnapshot?: any;\n openOrdersSnapshot?: any;\n exposureSnapshot?: any;\n overlaysSnapshot?: any;\n modelProvider: string;\n modelTier: string;\n routingReason?: string;\n tokenUsage?: any;\n sessionDurationMs?: number;\n gatingDurationMs?: number;\n validationDurationMs?: number;\n executionDurationMs?: number;\n status: DecisionRecordStatus;\n};\n\nenum DecisionOutcome {\n DO_NOTHING\n\n OPEN_POSITION\n\n ADD_TO_POSITION\n\n REDUCE_POSITION\n\n CLOSE_POSITION\n\n REVERSE_POSITION\n\n MODIFY_ORDERS\n\n CANCEL_ORDERS\n\n REBALANCE\n\n MUTATE_POLICY\n\n ESCALATE_FOR_APPROVAL\n\n SKIP_INELIGIBLE\n}\n\nenum DecisionRecordStatus {\n PENDING\n\n EXECUTING\n\n COMPLETED\n\n FAILED\n\n CANCELLED\n\n ESCALATED\n}\n\n";
62
62
  readonly decisionMemorySummary: "\n// Your response should adhere to the following type definition for the \"DecisionMemorySummary\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type DecisionMemorySummary = {\n symbol?: string;\n sector?: string;\n assetClass?: string;\n summary: string;\n keyFactors?: any;\n outcome: DecisionMemoryOutcome;\n outcomeDetails?: any;\n relevanceScore: number;\n expiresAt?: Date;\n};\n\nenum DecisionMemoryOutcome {\n PENDING\n\n PROFITABLE\n\n UNPROFITABLE\n\n STOPPED_OUT\n\n CANCELLED\n}\n\n";
63
63
  readonly equityBar: "\n// Your response should adhere to the following type definition for the \"EquityBar\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type EquityBar = {\n symbol: string;\n timeStamp: any;\n timespan: EquityBarTimespan;\n open: number;\n high: number;\n low: number;\n close: number;\n vol: number;\n vwap?: number;\n trades?: number;\n source: string;\n};\n\nenum EquityBarTimespan {\n second\n\n minute\n\n hour\n\n day\n}\n\n";
@@ -44,9 +44,9 @@ const crudResolvers = __importStar(require("./resolvers/crud/resolvers-crud.inde
44
44
  const argsTypes = __importStar(require("./resolvers/crud/args.index.cjs"));
45
45
  const actionResolvers = __importStar(require("./resolvers/crud/resolvers-actions.index.cjs"));
46
46
  const relationResolvers = __importStar(require("./resolvers/relations/resolvers.index.cjs"));
47
- const models = __importStar(require("./models.cjs"));
48
- const outputTypes = __importStar(require("./resolvers/outputs.cjs"));
49
- const inputTypes = __importStar(require("./resolvers/inputs.cjs"));
47
+ const models = __importStar(require("./models/index.cjs"));
48
+ const outputTypes = __importStar(require("./resolvers/outputs/index.cjs"));
49
+ const inputTypes = __importStar(require("./resolvers/inputs/index.cjs"));
50
50
  const crudResolversMap = {
51
51
  Configuration: crudResolvers.ConfigurationCrudResolver,
52
52
  MarketSentiment: crudResolvers.MarketSentimentCrudResolver,
@@ -3556,7 +3556,7 @@ const modelsInfo = {
3556
3556
  WaitlistEntry: ["id", "email", "fullName", "companyName", "companyWebsite", "jobRole", "professionalInvestorConfirmed", "status", "queuePosition", "createdAt", "updatedAt", "reviewedAt", "reviewedById"],
3557
3557
  InviteToken: ["id", "token", "email", "waitlistEntryId", "used", "usedAt", "expiresAt", "createdAt"],
3558
3558
  AuditLog: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
3559
- TradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
3559
+ TradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
3560
3560
  PolicyOverlay: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt"],
3561
3561
  AccountDecisionRecord: ["id", "alpacaAccountId", "correlationId", "opportunityId", "symbol", "assetClass", "signalAction", "signalConfidence", "decision", "decisionRationale", "decisionConfidence", "actionIntents", "validationResults", "executionResults", "effectivePolicySnapshot", "positionsSnapshot", "openOrdersSnapshot", "exposureSnapshot", "overlaysSnapshot", "modelProvider", "modelId", "modelTier", "routingReason", "tokenUsage", "sessionDurationMs", "gatingDurationMs", "validationDurationMs", "executionDurationMs", "status", "createdAt", "updatedAt"],
3562
3562
  DecisionMemorySummary: ["id", "alpacaAccountId", "symbol", "sector", "assetClass", "summary", "keyFactors", "outcome", "outcomeDetails", "decisionRecordId", "correlationId", "relevanceScore", "expiresAt", "createdAt", "updatedAt"],
@@ -3721,7 +3721,7 @@ const outputsInfo = {
3721
3721
  AggregateAuditLog: ["_count", "_avg", "_sum", "_min", "_max"],
3722
3722
  AuditLogGroupBy: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq", "_count", "_avg", "_sum", "_min", "_max"],
3723
3723
  AggregateTradingPolicy: ["_count", "_avg", "_sum", "_min", "_max"],
3724
- TradingPolicyGroupBy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
3724
+ TradingPolicyGroupBy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
3725
3725
  AggregatePolicyOverlay: ["_count", "_avg", "_sum", "_min", "_max"],
3726
3726
  PolicyOverlayGroupBy: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_sum", "_min", "_max"],
3727
3727
  AggregateAccountDecisionRecord: ["_count", "_avg", "_sum", "_min", "_max"],
@@ -4064,7 +4064,7 @@ const outputsInfo = {
4064
4064
  AuditLogMinAggregate: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "operationName", "ipAddress", "fundId", "ledgerSeq"],
4065
4065
  AuditLogMaxAggregate: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "operationName", "ipAddress", "fundId", "ledgerSeq"],
4066
4066
  TradingPolicyCount: ["overlays"],
4067
- TradingPolicyCountAggregate: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_all"],
4067
+ TradingPolicyCountAggregate: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_all"],
4068
4068
  TradingPolicyAvgAggregate: ["version", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds"],
4069
4069
  TradingPolicySumAggregate: ["version", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds"],
4070
4070
  TradingPolicyMinAggregate: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioAfternoonResetEt", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
@@ -4285,7 +4285,7 @@ const outputsInfo = {
4285
4285
  CreateManyAndReturnWaitlistEntry: ["id", "email", "fullName", "companyName", "companyWebsite", "jobRole", "professionalInvestorConfirmed", "status", "queuePosition", "createdAt", "updatedAt", "reviewedAt", "reviewedById", "reviewedBy"],
4286
4286
  CreateManyAndReturnInviteToken: ["id", "token", "email", "waitlistEntryId", "used", "usedAt", "expiresAt", "createdAt", "waitlistEntry"],
4287
4287
  CreateManyAndReturnAuditLog: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
4288
- CreateManyAndReturnTradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
4288
+ CreateManyAndReturnTradingPolicy: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
4289
4289
  CreateManyAndReturnPolicyOverlay: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent"],
4290
4290
  CreateManyAndReturnAccountDecisionRecord: ["id", "alpacaAccountId", "correlationId", "opportunityId", "symbol", "assetClass", "signalAction", "signalConfidence", "decision", "decisionRationale", "decisionConfidence", "actionIntents", "validationResults", "executionResults", "effectivePolicySnapshot", "positionsSnapshot", "openOrdersSnapshot", "exposureSnapshot", "overlaysSnapshot", "modelProvider", "modelId", "modelTier", "routingReason", "tokenUsage", "sessionDurationMs", "gatingDurationMs", "validationDurationMs", "executionDurationMs", "status", "createdAt", "updatedAt"],
4291
4291
  CreateManyAndReturnDecisionMemorySummary: ["id", "alpacaAccountId", "symbol", "sector", "assetClass", "summary", "keyFactors", "outcome", "outcomeDetails", "decisionRecordId", "correlationId", "relevanceScore", "expiresAt", "createdAt", "updatedAt"],
@@ -4623,11 +4623,11 @@ const inputsInfo = {
4623
4623
  AuditLogWhereUniqueInput: ["id", "ledgerSeq", "AND", "OR", "NOT", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId"],
4624
4624
  AuditLogOrderByWithAggregationInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq", "_count", "_avg", "_max", "_min", "_sum"],
4625
4625
  AuditLogScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
4626
- TradingPolicyWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
4627
- TradingPolicyOrderByWithRelationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
4628
- TradingPolicyWhereUniqueInput: ["id", "alpacaAccountId", "AND", "OR", "NOT", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
4629
- TradingPolicyOrderByWithAggregationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
4630
- TradingPolicyScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
4626
+ TradingPolicyWhereInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
4627
+ TradingPolicyOrderByWithRelationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
4628
+ TradingPolicyWhereUniqueInput: ["id", "alpacaAccountId", "AND", "OR", "NOT", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
4629
+ TradingPolicyOrderByWithAggregationInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "_count", "_avg", "_max", "_min", "_sum"],
4630
+ TradingPolicyScalarWhereWithAggregatesInput: ["AND", "OR", "NOT", "id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
4631
4631
  PolicyOverlayWhereInput: ["AND", "OR", "NOT", "id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
4632
4632
  PolicyOverlayOrderByWithRelationInput: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
4633
4633
  PolicyOverlayWhereUniqueInput: ["id", "riskEscalationEventId", "AND", "OR", "NOT", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
@@ -5040,10 +5040,10 @@ const inputsInfo = {
5040
5040
  AuditLogUpdateInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
5041
5041
  AuditLogCreateManyInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
5042
5042
  AuditLogUpdateManyMutationInput: ["id", "timestamp", "userId", "operationType", "modelName", "recordId", "changedFields", "operationName", "ipAddress", "metadata", "fundId", "ledgerSeq"],
5043
- TradingPolicyCreateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
5044
- TradingPolicyUpdateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
5045
- TradingPolicyCreateManyInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5046
- TradingPolicyUpdateManyMutationInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5043
+ TradingPolicyCreateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
5044
+ TradingPolicyUpdateInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount", "overlays"],
5045
+ TradingPolicyCreateManyInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5046
+ TradingPolicyUpdateManyMutationInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5047
5047
  PolicyOverlayCreateInput: ["id", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
5048
5048
  PolicyOverlayUpdateInput: ["id", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "createdAt", "updatedAt", "tradingPolicy", "riskEscalationEvent", "triggeredRiskEvents"],
5049
5049
  PolicyOverlayCreateManyInput: ["id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt"],
@@ -5737,7 +5737,7 @@ const inputsInfo = {
5737
5737
  EnumAccountRiskStateFilter: ["equals", "in", "notIn", "not"],
5738
5738
  PolicyOverlayListRelationFilter: ["every", "some", "none"],
5739
5739
  PolicyOverlayOrderByRelationAggregateInput: ["_count"],
5740
- TradingPolicyCountOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5740
+ TradingPolicyCountOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5741
5741
  TradingPolicyAvgOrderByAggregateInput: ["version", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds"],
5742
5742
  TradingPolicyMaxOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioAfternoonResetEt", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
5743
5743
  TradingPolicyMinOrderByAggregateInput: ["id", "alpacaAccountId", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioAfternoonResetEt", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt"],
@@ -6997,7 +6997,7 @@ const inputsInfo = {
6997
6997
  UserUpdateWithoutAccountLinkingRequestsInput: ["id", "name", "email", "emailVerified", "image", "avatarUrl", "onboardingComplete", "signupCategory", "createdAt", "updatedAt", "deletedAt", "role", "availability", "availabilityUntil", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators", "alpacaAccounts", "linkedProviders", "reviewedWaitlistEntries", "llmConfiguration", "orgMemberships", "fundAssignments", "managedFunds", "operatedFunds", "ownedMandates", "authoredMandateVersions", "mandateApprovalsDecided", "investorProfiles", "notificationDeliveries", "notificationPreferences", "ownedStrategies", "featureFlagOverrides", "follows", "autoFollowRules", "pushSubscriptions", "adaConversations", "totp"],
6998
6998
  AllocationCreateWithoutAlpacaAccountInput: ["id", "equities", "optionsContracts", "futures", "etfs", "forex", "crypto", "stocks", "options", "createdAt", "updatedAt"],
6999
6999
  AllocationCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
7000
- TradingPolicyCreateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
7000
+ TradingPolicyCreateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
7001
7001
  TradingPolicyCreateOrConnectWithoutAlpacaAccountInput: ["where", "create"],
7002
7002
  UserCreateWithoutAlpacaAccountsInput: ["id", "name", "email", "emailVerified", "image", "avatarUrl", "onboardingComplete", "signupCategory", "createdAt", "updatedAt", "deletedAt", "role", "availability", "availabilityUntil", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators", "linkedProviders", "accountLinkingRequests", "reviewedWaitlistEntries", "llmConfiguration", "orgMemberships", "fundAssignments", "managedFunds", "operatedFunds", "ownedMandates", "authoredMandateVersions", "mandateApprovalsDecided", "investorProfiles", "notificationDeliveries", "notificationPreferences", "ownedStrategies", "featureFlagOverrides", "follows", "autoFollowRules", "pushSubscriptions", "adaConversations", "totp"],
7003
7003
  UserCreateOrConnectWithoutAlpacaAccountsInput: ["where", "create"],
@@ -7025,7 +7025,7 @@ const inputsInfo = {
7025
7025
  AllocationUpdateWithoutAlpacaAccountInput: ["id", "equities", "optionsContracts", "futures", "etfs", "forex", "crypto", "stocks", "options", "createdAt", "updatedAt"],
7026
7026
  TradingPolicyUpsertWithoutAlpacaAccountInput: ["update", "create", "where"],
7027
7027
  TradingPolicyUpdateToOneWithWhereWithoutAlpacaAccountInput: ["where", "data"],
7028
- TradingPolicyUpdateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
7028
+ TradingPolicyUpdateWithoutAlpacaAccountInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "overlays"],
7029
7029
  UserUpsertWithoutAlpacaAccountsInput: ["update", "create", "where"],
7030
7030
  UserUpdateToOneWithWhereWithoutAlpacaAccountsInput: ["where", "data"],
7031
7031
  UserUpdateWithoutAlpacaAccountsInput: ["id", "name", "email", "emailVerified", "image", "avatarUrl", "onboardingComplete", "signupCategory", "createdAt", "updatedAt", "deletedAt", "role", "availability", "availabilityUntil", "bio", "jobTitle", "currentAccount", "plan", "openaiAPIKey", "openaiModel", "customer", "accounts", "sessions", "authenticators", "linkedProviders", "accountLinkingRequests", "reviewedWaitlistEntries", "llmConfiguration", "orgMemberships", "fundAssignments", "managedFunds", "operatedFunds", "ownedMandates", "authoredMandateVersions", "mandateApprovalsDecided", "investorProfiles", "notificationDeliveries", "notificationPreferences", "ownedStrategies", "featureFlagOverrides", "follows", "autoFollowRules", "pushSubscriptions", "adaConversations", "totp"],
@@ -7320,7 +7320,7 @@ const inputsInfo = {
7320
7320
  PolicyOverlayUpdateWithWhereUniqueWithoutTradingPolicyInput: ["where", "data"],
7321
7321
  PolicyOverlayUpdateManyWithWhereWithoutTradingPolicyInput: ["where", "data"],
7322
7322
  PolicyOverlayScalarWhereInput: ["AND", "OR", "NOT", "id", "tradingPolicyId", "overlayType", "source", "reason", "severity", "version", "mutations", "status", "activatedAt", "expiresAt", "deactivatedAt", "deactivatedBy", "correlationId", "triggerEventId", "riskEscalationEventId", "createdAt", "updatedAt"],
7323
- TradingPolicyCreateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
7323
+ TradingPolicyCreateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
7324
7324
  TradingPolicyCreateOrConnectWithoutOverlaysInput: ["where", "create"],
7325
7325
  RiskEscalationEventCreateWithoutActivatedPolicyOverlayInput: ["id", "scopeKind", "scopeValue", "fromState", "toState", "reason", "severity", "triggeringObserver", "observedValue", "breachedThreshold", "breachedThresholdKey", "correlationId", "triggeringEventId", "actor", "actorUserId", "rationale", "createdAt", "alpacaAccount", "triggeredByPolicyOverlay"],
7326
7326
  RiskEscalationEventCreateOrConnectWithoutActivatedPolicyOverlayInput: ["where", "create"],
@@ -7329,7 +7329,7 @@ const inputsInfo = {
7329
7329
  RiskEscalationEventCreateManyTriggeredByPolicyOverlayInputEnvelope: ["data", "skipDuplicates"],
7330
7330
  TradingPolicyUpsertWithoutOverlaysInput: ["update", "create", "where"],
7331
7331
  TradingPolicyUpdateToOneWithWhereWithoutOverlaysInput: ["where", "data"],
7332
- TradingPolicyUpdateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
7332
+ TradingPolicyUpdateWithoutOverlaysInput: ["id", "version", "lastModifiedBy", "lastModifiedAt", "autonomyMode", "realtimeTradingEnabled", "paperTradingOnly", "killSwitchEnabled", "autonomyPrefs", "equitiesEnabled", "etfsEnabled", "cryptoEnabled", "optionsEnabled", "futuresEnabled", "forexEnabled", "shortingEnabled", "marginEnabled", "fractionalSharesEnabled", "assetUniversePrefs", "maxBuyingPowerUtilPct", "cashFloorPct", "maxGrossExposurePct", "maxNetExposurePct", "maxLeverage", "maxSymbolConcentrationPct", "maxSectorConcentrationPct", "maxOpenPositions", "maxOpenOrders", "perTradeEquityAllocationPct", "perTradeCryptoAllocationPct", "enablePortfolioTrailingStop", "portfolioTrailPercent", "portfolioProfitThresholdPercent", "reducedPortfolioTrailPercent", "portfolioTrailRungs", "portfolioAfternoonResetEt", "portfolioAfternoonTrailRungs", "enablePortfolioTakeProfit", "portfolioTakeProfitThresholdPercent", "defaultTrailingStopPercentage100", "firstTrailReductionThreshold100", "secondTrailReductionThreshold100", "firstReducedTrailPercentage100", "secondReducedTrailPercentage100", "minimumPriceChangePercent100", "equityWashTradeCooldownMs", "minIntradayLiquidityShares", "maxEntrySpreadBps", "sameSideReentryDelayMs", "minAtrPercentage", "maxAtrPercentage", "minBookDepthShares", "maxAnomalousSlippageBps", "intradayTradingWindows", "hardPositionExitMinutes", "maxOrdersPerWindow", "orderWindowSeconds", "dayTradeOnly", "intradayLanePrefs", "riskBudgetPrefs", "signalConsumptionPrefs", "executionPrefs", "positionManagementPrefs", "portfolioConstructionPrefs", "macroOverlayEnabled", "sectorOverlayEnabled", "volatilityOverlayEnabled", "liquidityStressOverlayEnabled", "blackSwanProtectionEnabled", "drawdownGuardianEnabled", "correlationSpikeProtectionEnabled", "newsEventRiskOverlayEnabled", "exchangeHealthOverlayEnabled", "dataQualitySentinelEnabled", "overlayResponsePrefs", "miniModelProvider", "miniModelId", "normalModelProvider", "normalModelId", "advancedModelProvider", "advancedModelId", "modelPrefs", "auditNotificationPrefs", "escalationPolicyOverrides", "currentRiskState", "currentRiskStateAt", "lastRiskStateChangedBy", "lastRiskEscalationEventId", "createdAt", "updatedAt", "alpacaAccount"],
7333
7333
  RiskEscalationEventUpsertWithoutActivatedPolicyOverlayInput: ["update", "create", "where"],
7334
7334
  RiskEscalationEventUpdateToOneWithWhereWithoutActivatedPolicyOverlayInput: ["where", "data"],
7335
7335
  RiskEscalationEventUpdateWithoutActivatedPolicyOverlayInput: ["id", "scopeKind", "scopeValue", "fromState", "toState", "reason", "severity", "triggeringObserver", "observedValue", "breachedThreshold", "breachedThresholdKey", "correlationId", "triggeringEventId", "actor", "actorUserId", "rationale", "createdAt", "alpacaAccount", "triggeredByPolicyOverlay"],
@@ -96,6 +96,7 @@ var TradingPolicyScalarFieldEnum;
96
96
  TradingPolicyScalarFieldEnum["maxOrdersPerWindow"] = "maxOrdersPerWindow";
97
97
  TradingPolicyScalarFieldEnum["orderWindowSeconds"] = "orderWindowSeconds";
98
98
  TradingPolicyScalarFieldEnum["dayTradeOnly"] = "dayTradeOnly";
99
+ TradingPolicyScalarFieldEnum["intradayLanePrefs"] = "intradayLanePrefs";
99
100
  TradingPolicyScalarFieldEnum["riskBudgetPrefs"] = "riskBudgetPrefs";
100
101
  TradingPolicyScalarFieldEnum["signalConsumptionPrefs"] = "signalConsumptionPrefs";
101
102
  TradingPolicyScalarFieldEnum["executionPrefs"] = "executionPrefs";
@@ -58,6 +58,7 @@ export declare enum TradingPolicyScalarFieldEnum {
58
58
  maxOrdersPerWindow = "maxOrdersPerWindow",
59
59
  orderWindowSeconds = "orderWindowSeconds",
60
60
  dayTradeOnly = "dayTradeOnly",
61
+ intradayLanePrefs = "intradayLanePrefs",
61
62
  riskBudgetPrefs = "riskBudgetPrefs",
62
63
  signalConsumptionPrefs = "signalConsumptionPrefs",
63
64
  executionPrefs = "executionPrefs",