@adaptic/backend-legacy 0.0.916 → 0.0.918
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ABTest.cjs +0 -46
- package/Account.cjs +0 -250
- package/AccountLinkingRequest.cjs +0 -250
- package/Alert.cjs +0 -2
- package/Allocation.cjs +0 -213
- package/AlpacaAccount.cjs +0 -162
- package/Asset.cjs +0 -26
- package/Authenticator.cjs +0 -257
- package/Configuration.cjs +0 -4
- package/ConflictEvent.cjs +0 -7
- package/Customer.cjs +0 -148
- package/DecisionMemorySummary.cjs +0 -8
- package/EquityBar.cjs +0 -3
- package/FeatureImportanceAnalysis.cjs +0 -68
- package/InstitutionalFlowSignal.cjs +0 -18
- package/InstitutionalHolding.cjs +0 -14
- package/InviteToken.cjs +0 -167
- package/LinkedProvider.cjs +0 -254
- package/LlmConfiguration.cjs +0 -256
- package/ModelArtifact.cjs +0 -88
- package/ModelVersion.cjs +0 -88
- package/ModelVersionArtifact.cjs +0 -88
- package/NewsArticle.cjs +0 -95
- package/NewsArticleAssetSentiment.cjs +0 -104
- package/OptionsContract.cjs +0 -70
- package/OptionsGreeksHistory.cjs +0 -134
- package/OptionsPosition.cjs +0 -112
- package/OptionsTradeExecution.cjs +0 -116
- package/PolicyOverlay.cjs +0 -158
- package/PortfolioGreeksHistory.cjs +0 -12
- package/Session.cjs +0 -133
- package/TradingPolicy.cjs +0 -173
- package/User.cjs +0 -167
- package/WaitlistEntry.cjs +0 -241
- package/client.cjs +19 -6
- package/esm/ABTest.d.ts.map +1 -1
- package/esm/ABTest.js.map +1 -1
- package/esm/ABTest.mjs +0 -46
- package/esm/Account.d.ts.map +1 -1
- package/esm/Account.js.map +1 -1
- package/esm/Account.mjs +0 -250
- package/esm/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/AccountLinkingRequest.js.map +1 -1
- package/esm/AccountLinkingRequest.mjs +0 -250
- package/esm/Alert.d.ts.map +1 -1
- package/esm/Alert.js.map +1 -1
- package/esm/Alert.mjs +0 -2
- package/esm/Allocation.d.ts.map +1 -1
- package/esm/Allocation.js.map +1 -1
- package/esm/Allocation.mjs +0 -213
- package/esm/AlpacaAccount.d.ts.map +1 -1
- package/esm/AlpacaAccount.js.map +1 -1
- package/esm/AlpacaAccount.mjs +0 -162
- package/esm/Asset.d.ts.map +1 -1
- package/esm/Asset.js.map +1 -1
- package/esm/Asset.mjs +0 -26
- package/esm/Authenticator.d.ts.map +1 -1
- package/esm/Authenticator.js.map +1 -1
- package/esm/Authenticator.mjs +0 -257
- package/esm/Configuration.d.ts.map +1 -1
- package/esm/Configuration.js.map +1 -1
- package/esm/Configuration.mjs +0 -4
- package/esm/ConflictEvent.d.ts.map +1 -1
- package/esm/ConflictEvent.js.map +1 -1
- package/esm/ConflictEvent.mjs +0 -7
- package/esm/Customer.d.ts.map +1 -1
- package/esm/Customer.js.map +1 -1
- package/esm/Customer.mjs +0 -148
- package/esm/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/DecisionMemorySummary.js.map +1 -1
- package/esm/DecisionMemorySummary.mjs +0 -8
- package/esm/EquityBar.d.ts.map +1 -1
- package/esm/EquityBar.js.map +1 -1
- package/esm/EquityBar.mjs +0 -3
- package/esm/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/FeatureImportanceAnalysis.mjs +0 -68
- package/esm/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/InstitutionalFlowSignal.js.map +1 -1
- package/esm/InstitutionalFlowSignal.mjs +0 -18
- package/esm/InstitutionalHolding.d.ts.map +1 -1
- package/esm/InstitutionalHolding.js.map +1 -1
- package/esm/InstitutionalHolding.mjs +0 -14
- package/esm/InviteToken.d.ts.map +1 -1
- package/esm/InviteToken.js.map +1 -1
- package/esm/InviteToken.mjs +0 -167
- package/esm/LinkedProvider.d.ts.map +1 -1
- package/esm/LinkedProvider.js.map +1 -1
- package/esm/LinkedProvider.mjs +0 -254
- package/esm/LlmConfiguration.d.ts.map +1 -1
- package/esm/LlmConfiguration.js.map +1 -1
- package/esm/LlmConfiguration.mjs +0 -256
- package/esm/ModelArtifact.d.ts.map +1 -1
- package/esm/ModelArtifact.js.map +1 -1
- package/esm/ModelArtifact.mjs +0 -88
- package/esm/ModelVersion.d.ts.map +1 -1
- package/esm/ModelVersion.js.map +1 -1
- package/esm/ModelVersion.mjs +0 -88
- package/esm/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/ModelVersionArtifact.js.map +1 -1
- package/esm/ModelVersionArtifact.mjs +0 -88
- package/esm/NewsArticle.d.ts.map +1 -1
- package/esm/NewsArticle.js.map +1 -1
- package/esm/NewsArticle.mjs +0 -95
- package/esm/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/NewsArticleAssetSentiment.mjs +0 -104
- package/esm/OptionsContract.d.ts.map +1 -1
- package/esm/OptionsContract.js.map +1 -1
- package/esm/OptionsContract.mjs +0 -70
- package/esm/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/OptionsGreeksHistory.js.map +1 -1
- package/esm/OptionsGreeksHistory.mjs +0 -134
- package/esm/OptionsPosition.d.ts.map +1 -1
- package/esm/OptionsPosition.js.map +1 -1
- package/esm/OptionsPosition.mjs +0 -112
- package/esm/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/OptionsTradeExecution.js.map +1 -1
- package/esm/OptionsTradeExecution.mjs +0 -116
- package/esm/PolicyOverlay.d.ts.map +1 -1
- package/esm/PolicyOverlay.js.map +1 -1
- package/esm/PolicyOverlay.mjs +0 -158
- package/esm/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/PortfolioGreeksHistory.js.map +1 -1
- package/esm/PortfolioGreeksHistory.mjs +0 -12
- package/esm/Session.d.ts.map +1 -1
- package/esm/Session.js.map +1 -1
- package/esm/Session.mjs +0 -133
- package/esm/TradingPolicy.d.ts.map +1 -1
- package/esm/TradingPolicy.js.map +1 -1
- package/esm/TradingPolicy.mjs +0 -173
- package/esm/User.d.ts.map +1 -1
- package/esm/User.js.map +1 -1
- package/esm/User.mjs +0 -167
- package/esm/WaitlistEntry.d.ts.map +1 -1
- package/esm/WaitlistEntry.js.map +1 -1
- package/esm/WaitlistEntry.mjs +0 -241
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js.map +1 -1
- package/esm/client.mjs +19 -6
- package/esm/generated/selectionSets/ABTest.d.ts +1 -1
- package/esm/generated/selectionSets/ABTest.d.ts.map +1 -1
- package/esm/generated/selectionSets/ABTest.js.map +1 -1
- package/esm/generated/selectionSets/ABTest.mjs +0 -46
- package/esm/generated/selectionSets/Account.d.ts +1 -1
- package/esm/generated/selectionSets/Account.d.ts.map +1 -1
- package/esm/generated/selectionSets/Account.js.map +1 -1
- package/esm/generated/selectionSets/Account.mjs +0 -250
- package/esm/generated/selectionSets/AccountLinkingRequest.d.ts +1 -1
- package/esm/generated/selectionSets/AccountLinkingRequest.d.ts.map +1 -1
- package/esm/generated/selectionSets/AccountLinkingRequest.js.map +1 -1
- package/esm/generated/selectionSets/AccountLinkingRequest.mjs +0 -250
- package/esm/generated/selectionSets/Alert.d.ts +1 -1
- package/esm/generated/selectionSets/Alert.d.ts.map +1 -1
- package/esm/generated/selectionSets/Alert.js.map +1 -1
- package/esm/generated/selectionSets/Alert.mjs +0 -2
- package/esm/generated/selectionSets/Allocation.d.ts +1 -1
- package/esm/generated/selectionSets/Allocation.d.ts.map +1 -1
- package/esm/generated/selectionSets/Allocation.js.map +1 -1
- package/esm/generated/selectionSets/Allocation.mjs +0 -213
- package/esm/generated/selectionSets/AlpacaAccount.d.ts +1 -1
- package/esm/generated/selectionSets/AlpacaAccount.d.ts.map +1 -1
- package/esm/generated/selectionSets/AlpacaAccount.js.map +1 -1
- package/esm/generated/selectionSets/AlpacaAccount.mjs +0 -162
- package/esm/generated/selectionSets/Asset.d.ts +1 -1
- package/esm/generated/selectionSets/Asset.d.ts.map +1 -1
- package/esm/generated/selectionSets/Asset.js.map +1 -1
- package/esm/generated/selectionSets/Asset.mjs +0 -26
- package/esm/generated/selectionSets/Authenticator.d.ts +1 -1
- package/esm/generated/selectionSets/Authenticator.d.ts.map +1 -1
- package/esm/generated/selectionSets/Authenticator.js.map +1 -1
- package/esm/generated/selectionSets/Authenticator.mjs +0 -257
- package/esm/generated/selectionSets/Configuration.d.ts +1 -1
- package/esm/generated/selectionSets/Configuration.d.ts.map +1 -1
- package/esm/generated/selectionSets/Configuration.js.map +1 -1
- package/esm/generated/selectionSets/Configuration.mjs +0 -4
- package/esm/generated/selectionSets/ConflictEvent.d.ts +1 -1
- package/esm/generated/selectionSets/ConflictEvent.d.ts.map +1 -1
- package/esm/generated/selectionSets/ConflictEvent.js.map +1 -1
- package/esm/generated/selectionSets/ConflictEvent.mjs +0 -7
- package/esm/generated/selectionSets/Customer.d.ts +1 -1
- package/esm/generated/selectionSets/Customer.d.ts.map +1 -1
- package/esm/generated/selectionSets/Customer.js.map +1 -1
- package/esm/generated/selectionSets/Customer.mjs +0 -148
- package/esm/generated/selectionSets/DecisionMemorySummary.d.ts +1 -1
- package/esm/generated/selectionSets/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/generated/selectionSets/DecisionMemorySummary.js.map +1 -1
- package/esm/generated/selectionSets/DecisionMemorySummary.mjs +0 -8
- package/esm/generated/selectionSets/EquityBar.d.ts +1 -1
- package/esm/generated/selectionSets/EquityBar.d.ts.map +1 -1
- package/esm/generated/selectionSets/EquityBar.js.map +1 -1
- package/esm/generated/selectionSets/EquityBar.mjs +0 -3
- package/esm/generated/selectionSets/FeatureImportanceAnalysis.d.ts +1 -1
- package/esm/generated/selectionSets/FeatureImportanceAnalysis.d.ts.map +1 -1
- package/esm/generated/selectionSets/FeatureImportanceAnalysis.js.map +1 -1
- package/esm/generated/selectionSets/FeatureImportanceAnalysis.mjs +0 -68
- package/esm/generated/selectionSets/InstitutionalFlowSignal.d.ts +1 -1
- package/esm/generated/selectionSets/InstitutionalFlowSignal.d.ts.map +1 -1
- package/esm/generated/selectionSets/InstitutionalFlowSignal.js.map +1 -1
- package/esm/generated/selectionSets/InstitutionalFlowSignal.mjs +0 -18
- package/esm/generated/selectionSets/InstitutionalHolding.d.ts +1 -1
- package/esm/generated/selectionSets/InstitutionalHolding.d.ts.map +1 -1
- package/esm/generated/selectionSets/InstitutionalHolding.js.map +1 -1
- package/esm/generated/selectionSets/InstitutionalHolding.mjs +0 -14
- package/esm/generated/selectionSets/InviteToken.d.ts +1 -1
- package/esm/generated/selectionSets/InviteToken.d.ts.map +1 -1
- package/esm/generated/selectionSets/InviteToken.js.map +1 -1
- package/esm/generated/selectionSets/InviteToken.mjs +0 -167
- package/esm/generated/selectionSets/LinkedProvider.d.ts +1 -1
- package/esm/generated/selectionSets/LinkedProvider.d.ts.map +1 -1
- package/esm/generated/selectionSets/LinkedProvider.js.map +1 -1
- package/esm/generated/selectionSets/LinkedProvider.mjs +0 -254
- package/esm/generated/selectionSets/LlmConfiguration.d.ts +1 -1
- package/esm/generated/selectionSets/LlmConfiguration.d.ts.map +1 -1
- package/esm/generated/selectionSets/LlmConfiguration.js.map +1 -1
- package/esm/generated/selectionSets/LlmConfiguration.mjs +0 -256
- package/esm/generated/selectionSets/ModelArtifact.d.ts +1 -1
- package/esm/generated/selectionSets/ModelArtifact.d.ts.map +1 -1
- package/esm/generated/selectionSets/ModelArtifact.js.map +1 -1
- package/esm/generated/selectionSets/ModelArtifact.mjs +0 -88
- package/esm/generated/selectionSets/ModelVersion.d.ts +1 -1
- package/esm/generated/selectionSets/ModelVersion.d.ts.map +1 -1
- package/esm/generated/selectionSets/ModelVersion.js.map +1 -1
- package/esm/generated/selectionSets/ModelVersion.mjs +0 -88
- package/esm/generated/selectionSets/ModelVersionArtifact.d.ts +1 -1
- package/esm/generated/selectionSets/ModelVersionArtifact.d.ts.map +1 -1
- package/esm/generated/selectionSets/ModelVersionArtifact.js.map +1 -1
- package/esm/generated/selectionSets/ModelVersionArtifact.mjs +0 -88
- package/esm/generated/selectionSets/NewsArticle.d.ts +1 -1
- package/esm/generated/selectionSets/NewsArticle.d.ts.map +1 -1
- package/esm/generated/selectionSets/NewsArticle.js.map +1 -1
- package/esm/generated/selectionSets/NewsArticle.mjs +0 -95
- package/esm/generated/selectionSets/NewsArticleAssetSentiment.d.ts +1 -1
- package/esm/generated/selectionSets/NewsArticleAssetSentiment.d.ts.map +1 -1
- package/esm/generated/selectionSets/NewsArticleAssetSentiment.js.map +1 -1
- package/esm/generated/selectionSets/NewsArticleAssetSentiment.mjs +0 -104
- package/esm/generated/selectionSets/OptionsContract.d.ts +1 -1
- package/esm/generated/selectionSets/OptionsContract.d.ts.map +1 -1
- package/esm/generated/selectionSets/OptionsContract.js.map +1 -1
- package/esm/generated/selectionSets/OptionsContract.mjs +0 -70
- package/esm/generated/selectionSets/OptionsGreeksHistory.d.ts +1 -1
- package/esm/generated/selectionSets/OptionsGreeksHistory.d.ts.map +1 -1
- package/esm/generated/selectionSets/OptionsGreeksHistory.js.map +1 -1
- package/esm/generated/selectionSets/OptionsGreeksHistory.mjs +0 -134
- package/esm/generated/selectionSets/OptionsPosition.d.ts +1 -1
- package/esm/generated/selectionSets/OptionsPosition.d.ts.map +1 -1
- package/esm/generated/selectionSets/OptionsPosition.js.map +1 -1
- package/esm/generated/selectionSets/OptionsPosition.mjs +0 -112
- package/esm/generated/selectionSets/OptionsTradeExecution.d.ts +1 -1
- package/esm/generated/selectionSets/OptionsTradeExecution.d.ts.map +1 -1
- package/esm/generated/selectionSets/OptionsTradeExecution.js.map +1 -1
- package/esm/generated/selectionSets/OptionsTradeExecution.mjs +0 -116
- package/esm/generated/selectionSets/PolicyOverlay.d.ts +1 -1
- package/esm/generated/selectionSets/PolicyOverlay.d.ts.map +1 -1
- package/esm/generated/selectionSets/PolicyOverlay.js.map +1 -1
- package/esm/generated/selectionSets/PolicyOverlay.mjs +0 -158
- package/esm/generated/selectionSets/PortfolioGreeksHistory.d.ts +1 -1
- package/esm/generated/selectionSets/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/generated/selectionSets/PortfolioGreeksHistory.js.map +1 -1
- package/esm/generated/selectionSets/PortfolioGreeksHistory.mjs +0 -12
- package/esm/generated/selectionSets/Session.d.ts +1 -1
- package/esm/generated/selectionSets/Session.d.ts.map +1 -1
- package/esm/generated/selectionSets/Session.js.map +1 -1
- package/esm/generated/selectionSets/Session.mjs +0 -133
- package/esm/generated/selectionSets/TradingPolicy.d.ts +1 -1
- package/esm/generated/selectionSets/TradingPolicy.d.ts.map +1 -1
- package/esm/generated/selectionSets/TradingPolicy.js.map +1 -1
- package/esm/generated/selectionSets/TradingPolicy.mjs +0 -173
- package/esm/generated/selectionSets/User.d.ts +1 -1
- package/esm/generated/selectionSets/User.d.ts.map +1 -1
- package/esm/generated/selectionSets/User.js.map +1 -1
- package/esm/generated/selectionSets/User.mjs +0 -167
- package/esm/generated/selectionSets/WaitlistEntry.d.ts +1 -1
- package/esm/generated/selectionSets/WaitlistEntry.d.ts.map +1 -1
- package/esm/generated/selectionSets/WaitlistEntry.js.map +1 -1
- package/esm/generated/selectionSets/WaitlistEntry.mjs +0 -241
- package/esm/generated/typeStrings/ConflictEvent.d.ts +1 -1
- package/esm/generated/typeStrings/ConflictEvent.d.ts.map +1 -1
- package/esm/generated/typeStrings/ConflictEvent.mjs +6 -6
- package/esm/generated/typeStrings/LlmConfiguration.d.ts +1 -1
- package/esm/generated/typeStrings/LlmConfiguration.d.ts.map +1 -1
- package/esm/generated/typeStrings/LlmConfiguration.js.map +1 -1
- package/esm/generated/typeStrings/LlmConfiguration.mjs +1 -6
- package/esm/generated/typeStrings/PolicyOverlay.d.ts +1 -1
- package/esm/generated/typeStrings/PolicyOverlay.d.ts.map +1 -1
- package/esm/generated/typeStrings/PolicyOverlay.js.map +1 -1
- package/esm/generated/typeStrings/PolicyOverlay.mjs +3 -0
- package/esm/generated/typeStrings/PortfolioGreeksHistory.d.ts +1 -1
- package/esm/generated/typeStrings/PortfolioGreeksHistory.d.ts.map +1 -1
- package/esm/generated/typeStrings/PortfolioGreeksHistory.mjs +11 -11
- package/esm/generated/typeStrings/TradingPolicy.d.ts +1 -1
- package/esm/generated/typeStrings/TradingPolicy.d.ts.map +1 -1
- package/esm/generated/typeStrings/TradingPolicy.js.map +1 -1
- package/esm/generated/typeStrings/TradingPolicy.mjs +2 -0
- package/esm/generated/typeStrings/index.d.ts +5 -5
- package/esm/generated/typegraphql-prisma/models/Account.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/Account.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/AccountLinkingRequest.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/AccountLinkingRequest.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/Alert.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/models/Alert.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/Alert.mjs +4 -4
- package/esm/generated/typegraphql-prisma/models/Allocation.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/Allocation.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/AlpacaAccount.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/models/AlpacaAccount.mjs +2 -2
- package/esm/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/models/Asset.mjs +2 -2
- package/esm/generated/typegraphql-prisma/models/Authenticator.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/Authenticator.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/Configuration.d.ts +4 -4
- package/esm/generated/typegraphql-prisma/models/Configuration.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/Configuration.mjs +8 -8
- package/esm/generated/typegraphql-prisma/models/ConflictEvent.d.ts +7 -7
- package/esm/generated/typegraphql-prisma/models/ConflictEvent.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/ConflictEvent.mjs +14 -14
- package/esm/generated/typegraphql-prisma/models/DecisionMemorySummary.d.ts +24 -0
- package/esm/generated/typegraphql-prisma/models/DecisionMemorySummary.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/models/DecisionMemorySummary.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/DecisionMemorySummary.mjs +40 -8
- package/esm/generated/typegraphql-prisma/models/EquityBar.d.ts +9 -0
- package/esm/generated/typegraphql-prisma/models/EquityBar.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/models/EquityBar.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/EquityBar.mjs +15 -3
- package/esm/generated/typegraphql-prisma/models/InstitutionalFlowSignal.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/InstitutionalFlowSignal.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/InstitutionalHolding.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/InstitutionalHolding.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/InviteToken.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/InviteToken.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/LinkedProvider.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/LinkedProvider.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/LlmConfiguration.d.ts +22 -3
- package/esm/generated/typegraphql-prisma/models/LlmConfiguration.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/models/LlmConfiguration.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/LlmConfiguration.mjs +35 -10
- package/esm/generated/typegraphql-prisma/models/ModelVersion.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/models/ModelVersion.mjs +3 -3
- package/esm/generated/typegraphql-prisma/models/NewsArticle.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/NewsArticle.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.mjs +2 -2
- package/esm/generated/typegraphql-prisma/models/OptionsContract.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/models/OptionsContract.mjs +3 -3
- package/esm/generated/typegraphql-prisma/models/OptionsGreeksHistory.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/OptionsGreeksHistory.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/OptionsPosition.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/models/OptionsPosition.mjs +2 -2
- package/esm/generated/typegraphql-prisma/models/OptionsTradeExecution.d.ts +2 -2
- package/esm/generated/typegraphql-prisma/models/OptionsTradeExecution.mjs +2 -2
- package/esm/generated/typegraphql-prisma/models/PolicyOverlay.d.ts +3 -0
- package/esm/generated/typegraphql-prisma/models/PolicyOverlay.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/models/PolicyOverlay.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/PolicyOverlay.mjs +3 -0
- package/esm/generated/typegraphql-prisma/models/PortfolioGreeksHistory.d.ts +12 -12
- package/esm/generated/typegraphql-prisma/models/PortfolioGreeksHistory.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/PortfolioGreeksHistory.mjs +24 -24
- package/esm/generated/typegraphql-prisma/models/Session.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/Session.mjs +1 -1
- package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts +6 -0
- package/esm/generated/typegraphql-prisma/models/TradingPolicy.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/models/TradingPolicy.js.map +1 -1
- package/esm/generated/typegraphql-prisma/models/TradingPolicy.mjs +6 -0
- package/esm/generated/typegraphql-prisma/models/User.d.ts +5 -5
- package/esm/generated/typegraphql-prisma/models/User.mjs +5 -5
- package/esm/generated/typegraphql-prisma/models/WaitlistEntry.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/models/WaitlistEntry.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/AccountLinkingRequest/AccountLinkingRequestRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/AccountLinkingRequest/AccountLinkingRequestRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Allocation/AllocationRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Allocation/AllocationRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.mjs +2 -2
- package/esm/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.mjs +2 -2
- package/esm/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/InstitutionalFlowSignal/InstitutionalFlowSignalRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/InstitutionalFlowSignal/InstitutionalFlowSignalRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/InstitutionalHolding/InstitutionalHoldingRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/InstitutionalHolding/InstitutionalHoldingRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/InviteToken/InviteTokenRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/InviteToken/InviteTokenRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/LinkedProvider/LinkedProviderRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/LinkedProvider/LinkedProviderRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/LlmConfiguration/LlmConfigurationRelationsResolver.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/LlmConfiguration/LlmConfigurationRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/LlmConfiguration/LlmConfigurationRelationsResolver.mjs +2 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/ModelVersion/ModelVersionRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/ModelVersion/ModelVersionRelationsResolver.mjs +3 -3
- package/esm/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.mjs +2 -2
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsContract/OptionsContractRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsContract/OptionsContractRelationsResolver.mjs +3 -3
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsGreeksHistory/OptionsGreeksHistoryRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsGreeksHistory/OptionsGreeksHistoryRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsPosition/OptionsPositionRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsPosition/OptionsPositionRelationsResolver.mjs +2 -2
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsTradeExecution/OptionsTradeExecutionRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/OptionsTradeExecution/OptionsTradeExecutionRelationsResolver.mjs +2 -2
- package/esm/generated/typegraphql-prisma/resolvers/relations/PolicyOverlay/PolicyOverlayRelationsResolver.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/PolicyOverlay/PolicyOverlayRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/PolicyOverlay/PolicyOverlayRelationsResolver.mjs +2 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.mjs +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/TradingPolicy/TradingPolicyRelationsResolver.d.ts.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/TradingPolicy/TradingPolicyRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/TradingPolicy/TradingPolicyRelationsResolver.mjs +4 -2
- package/esm/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.mjs +5 -5
- package/esm/generated/typegraphql-prisma/resolvers/relations/WaitlistEntry/WaitlistEntryRelationsResolver.js.map +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/WaitlistEntry/WaitlistEntryRelationsResolver.mjs +1 -1
- package/esm/prismaClient.d.ts +15 -0
- package/esm/prismaClient.d.ts.map +1 -1
- package/esm/prismaClient.js.map +1 -1
- package/esm/prismaClient.mjs +146 -1
- package/generated/typeStrings/ConflictEvent.cjs +6 -6
- package/generated/typeStrings/ConflictEvent.d.ts +1 -1
- package/generated/typeStrings/ConflictEvent.d.ts.map +1 -1
- package/generated/typeStrings/LlmConfiguration.cjs +1 -6
- package/generated/typeStrings/LlmConfiguration.d.ts +1 -1
- package/generated/typeStrings/LlmConfiguration.d.ts.map +1 -1
- package/generated/typeStrings/LlmConfiguration.js.map +1 -1
- package/generated/typeStrings/PolicyOverlay.cjs +3 -0
- package/generated/typeStrings/PolicyOverlay.d.ts +1 -1
- package/generated/typeStrings/PolicyOverlay.d.ts.map +1 -1
- package/generated/typeStrings/PolicyOverlay.js.map +1 -1
- package/generated/typeStrings/PortfolioGreeksHistory.cjs +11 -11
- package/generated/typeStrings/PortfolioGreeksHistory.d.ts +1 -1
- package/generated/typeStrings/PortfolioGreeksHistory.d.ts.map +1 -1
- package/generated/typeStrings/TradingPolicy.cjs +2 -0
- package/generated/typeStrings/TradingPolicy.d.ts +1 -1
- package/generated/typeStrings/TradingPolicy.d.ts.map +1 -1
- package/generated/typeStrings/TradingPolicy.js.map +1 -1
- package/generated/typeStrings/index.d.ts +5 -5
- package/generated/typegraphql-prisma/models/Account.d.ts +1 -1
- package/generated/typegraphql-prisma/models/AccountLinkingRequest.d.ts +1 -1
- package/generated/typegraphql-prisma/models/Alert.cjs +2 -2
- package/generated/typegraphql-prisma/models/Alert.d.ts +2 -2
- package/generated/typegraphql-prisma/models/Alert.js.map +1 -1
- package/generated/typegraphql-prisma/models/Allocation.d.ts +1 -1
- package/generated/typegraphql-prisma/models/AlpacaAccount.d.ts +2 -2
- package/generated/typegraphql-prisma/models/Asset.d.ts +2 -2
- package/generated/typegraphql-prisma/models/Authenticator.d.ts +1 -1
- package/generated/typegraphql-prisma/models/Configuration.cjs +4 -4
- package/generated/typegraphql-prisma/models/Configuration.d.ts +4 -4
- package/generated/typegraphql-prisma/models/Configuration.js.map +1 -1
- package/generated/typegraphql-prisma/models/ConflictEvent.cjs +7 -7
- package/generated/typegraphql-prisma/models/ConflictEvent.d.ts +7 -7
- package/generated/typegraphql-prisma/models/ConflictEvent.js.map +1 -1
- package/generated/typegraphql-prisma/models/DecisionMemorySummary.cjs +16 -8
- package/generated/typegraphql-prisma/models/DecisionMemorySummary.d.ts +24 -0
- package/generated/typegraphql-prisma/models/DecisionMemorySummary.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/DecisionMemorySummary.js.map +1 -1
- package/generated/typegraphql-prisma/models/EquityBar.cjs +6 -3
- package/generated/typegraphql-prisma/models/EquityBar.d.ts +9 -0
- package/generated/typegraphql-prisma/models/EquityBar.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/EquityBar.js.map +1 -1
- package/generated/typegraphql-prisma/models/InstitutionalFlowSignal.d.ts +1 -1
- package/generated/typegraphql-prisma/models/InstitutionalHolding.d.ts +1 -1
- package/generated/typegraphql-prisma/models/InviteToken.d.ts +1 -1
- package/generated/typegraphql-prisma/models/LinkedProvider.d.ts +1 -1
- package/generated/typegraphql-prisma/models/LlmConfiguration.cjs +13 -7
- package/generated/typegraphql-prisma/models/LlmConfiguration.d.ts +22 -3
- package/generated/typegraphql-prisma/models/LlmConfiguration.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/LlmConfiguration.js.map +1 -1
- package/generated/typegraphql-prisma/models/ModelVersion.d.ts +3 -3
- package/generated/typegraphql-prisma/models/NewsArticle.d.ts +1 -1
- package/generated/typegraphql-prisma/models/NewsArticleAssetSentiment.d.ts +2 -2
- package/generated/typegraphql-prisma/models/OptionsContract.d.ts +3 -3
- package/generated/typegraphql-prisma/models/OptionsGreeksHistory.d.ts +1 -1
- package/generated/typegraphql-prisma/models/OptionsPosition.d.ts +2 -2
- package/generated/typegraphql-prisma/models/OptionsTradeExecution.d.ts +2 -2
- package/generated/typegraphql-prisma/models/PolicyOverlay.d.ts +3 -0
- package/generated/typegraphql-prisma/models/PolicyOverlay.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/PolicyOverlay.js.map +1 -1
- package/generated/typegraphql-prisma/models/PortfolioGreeksHistory.cjs +12 -12
- package/generated/typegraphql-prisma/models/PortfolioGreeksHistory.d.ts +12 -12
- package/generated/typegraphql-prisma/models/PortfolioGreeksHistory.js.map +1 -1
- package/generated/typegraphql-prisma/models/Session.d.ts +1 -1
- package/generated/typegraphql-prisma/models/TradingPolicy.d.ts +6 -0
- package/generated/typegraphql-prisma/models/TradingPolicy.d.ts.map +1 -1
- package/generated/typegraphql-prisma/models/TradingPolicy.js.map +1 -1
- package/generated/typegraphql-prisma/models/User.d.ts +5 -5
- package/generated/typegraphql-prisma/models/WaitlistEntry.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Account/AccountRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AccountLinkingRequest/AccountLinkingRequestRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AccountLinkingRequest/AccountLinkingRequestRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Allocation/AllocationRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Allocation/AllocationRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.cjs +2 -2
- package/generated/typegraphql-prisma/resolvers/relations/AlpacaAccount/AlpacaAccountRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.cjs +2 -2
- package/generated/typegraphql-prisma/resolvers/relations/Asset/AssetRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Authenticator/AuthenticatorRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/InstitutionalFlowSignal/InstitutionalFlowSignalRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/InstitutionalFlowSignal/InstitutionalFlowSignalRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/InstitutionalHolding/InstitutionalHoldingRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/InstitutionalHolding/InstitutionalHoldingRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/InviteToken/InviteTokenRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/InviteToken/InviteTokenRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/LinkedProvider/LinkedProviderRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/LinkedProvider/LinkedProviderRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/LlmConfiguration/LlmConfigurationRelationsResolver.cjs +2 -1
- package/generated/typegraphql-prisma/resolvers/relations/LlmConfiguration/LlmConfigurationRelationsResolver.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/LlmConfiguration/LlmConfigurationRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/ModelVersion/ModelVersionRelationsResolver.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/relations/ModelVersion/ModelVersionRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/NewsArticle/NewsArticleRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.cjs +2 -2
- package/generated/typegraphql-prisma/resolvers/relations/NewsArticleAssetSentiment/NewsArticleAssetSentimentRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/OptionsContract/OptionsContractRelationsResolver.cjs +3 -3
- package/generated/typegraphql-prisma/resolvers/relations/OptionsContract/OptionsContractRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/OptionsGreeksHistory/OptionsGreeksHistoryRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/OptionsGreeksHistory/OptionsGreeksHistoryRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/OptionsPosition/OptionsPositionRelationsResolver.cjs +2 -2
- package/generated/typegraphql-prisma/resolvers/relations/OptionsPosition/OptionsPositionRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/OptionsTradeExecution/OptionsTradeExecutionRelationsResolver.cjs +2 -2
- package/generated/typegraphql-prisma/resolvers/relations/OptionsTradeExecution/OptionsTradeExecutionRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/PolicyOverlay/PolicyOverlayRelationsResolver.cjs +2 -1
- package/generated/typegraphql-prisma/resolvers/relations/PolicyOverlay/PolicyOverlayRelationsResolver.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/PolicyOverlay/PolicyOverlayRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/Session/SessionRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/TradingPolicy/TradingPolicyRelationsResolver.cjs +4 -2
- package/generated/typegraphql-prisma/resolvers/relations/TradingPolicy/TradingPolicyRelationsResolver.d.ts.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/TradingPolicy/TradingPolicyRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.cjs +5 -5
- package/generated/typegraphql-prisma/resolvers/relations/User/UserRelationsResolver.js.map +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/WaitlistEntry/WaitlistEntryRelationsResolver.cjs +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/WaitlistEntry/WaitlistEntryRelationsResolver.js.map +1 -1
- package/package.json +1 -1
- package/prismaClient.cjs +150 -1
- package/prismaClient.d.ts +15 -0
- package/server.cjs +90 -57
package/esm/prismaClient.mjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { PrismaClient } from '@prisma/client';
|
|
2
2
|
import { logger } from './utils/logger.mjs';
|
|
3
|
+
/** Default statement timeout (30s) prevents hung queries from blocking pool slots indefinitely */
|
|
4
|
+
const DEFAULT_STATEMENT_TIMEOUT_MS = 30000;
|
|
5
|
+
/** Heartbeat interval: how often we verify the DB connection is alive */
|
|
6
|
+
const HEARTBEAT_INTERVAL_MS = 30000;
|
|
7
|
+
/** Consecutive heartbeat failures before triggering client reconnection */
|
|
8
|
+
const MAX_HEARTBEAT_FAILURES = 3;
|
|
9
|
+
/** Heartbeat query timeout (5s) — shorter than pool timeout to detect issues early */
|
|
10
|
+
const HEARTBEAT_TIMEOUT_MS = 5000;
|
|
3
11
|
/**
|
|
4
12
|
* Connection pool size defaults per deployment tier.
|
|
5
13
|
* Can be overridden via the DATABASE_POOL_SIZE environment variable.
|
|
@@ -76,7 +84,8 @@ function buildDatabaseUrl() {
|
|
|
76
84
|
poolTimeoutMs: poolTimeout,
|
|
77
85
|
environment: process.env.NODE_ENV || 'development',
|
|
78
86
|
});
|
|
79
|
-
|
|
87
|
+
const statementTimeoutMs = parseInt(process.env.DATABASE_STATEMENT_TIMEOUT_MS || String(DEFAULT_STATEMENT_TIMEOUT_MS), 10);
|
|
88
|
+
return `${baseUrl}${separator}connection_limit=${poolSize}&pool_timeout=${Math.floor(poolTimeout / 1000)}&statement_timeout=${statementTimeoutMs}&idle_in_transaction_session_timeout=${statementTimeoutMs}`;
|
|
80
89
|
}
|
|
81
90
|
// Create a singleton that works in all environments
|
|
82
91
|
if (!global.prisma) {
|
|
@@ -146,5 +155,141 @@ if (!global.prisma) {
|
|
|
146
155
|
}
|
|
147
156
|
// Initialize a singleton PrismaClient with a connection pool that persists across requests
|
|
148
157
|
const prisma = global.prisma;
|
|
158
|
+
// ---------------------------------------------------------------------------
|
|
159
|
+
// Connection health monitor — detects stale connections before they cause
|
|
160
|
+
// query hangs by periodically running a lightweight heartbeat query.
|
|
161
|
+
// After MAX_HEARTBEAT_FAILURES consecutive failures, the client is
|
|
162
|
+
// disconnected and reconnected to force Prisma to establish fresh connections.
|
|
163
|
+
// ---------------------------------------------------------------------------
|
|
164
|
+
let heartbeatFailures = 0;
|
|
165
|
+
let heartbeatTimer;
|
|
166
|
+
let isReconnecting = false;
|
|
167
|
+
async function heartbeat() {
|
|
168
|
+
if (isReconnecting || !global.prisma)
|
|
169
|
+
return;
|
|
170
|
+
try {
|
|
171
|
+
const start = Date.now();
|
|
172
|
+
await Promise.race([
|
|
173
|
+
global.prisma.$queryRaw `SELECT 1`,
|
|
174
|
+
new Promise((_, reject) => setTimeout(() => reject(new Error('Heartbeat timeout')), HEARTBEAT_TIMEOUT_MS)),
|
|
175
|
+
]);
|
|
176
|
+
const latencyMs = Date.now() - start;
|
|
177
|
+
if (heartbeatFailures > 0) {
|
|
178
|
+
logger.info('Database heartbeat recovered', { latencyMs, previousFailures: heartbeatFailures });
|
|
179
|
+
}
|
|
180
|
+
heartbeatFailures = 0;
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
heartbeatFailures++;
|
|
184
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
185
|
+
logger.warn('Database heartbeat failed', {
|
|
186
|
+
consecutiveFailures: heartbeatFailures,
|
|
187
|
+
error: errorMessage,
|
|
188
|
+
});
|
|
189
|
+
if (heartbeatFailures >= MAX_HEARTBEAT_FAILURES) {
|
|
190
|
+
logger.error('Database heartbeat exceeded failure threshold, reconnecting Prisma client', {
|
|
191
|
+
consecutiveFailures: heartbeatFailures,
|
|
192
|
+
});
|
|
193
|
+
await reconnectPrisma();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
async function reconnectPrisma() {
|
|
198
|
+
if (isReconnecting)
|
|
199
|
+
return;
|
|
200
|
+
isReconnecting = true;
|
|
201
|
+
try {
|
|
202
|
+
// Disconnect existing client — this drops all pooled connections
|
|
203
|
+
try {
|
|
204
|
+
await Promise.race([
|
|
205
|
+
global.prisma?.$disconnect(),
|
|
206
|
+
new Promise((resolve) => setTimeout(resolve, 5000)),
|
|
207
|
+
]);
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
// Disconnect may fail if DB is unreachable — that's expected
|
|
211
|
+
}
|
|
212
|
+
// Create a fresh client with the same configuration
|
|
213
|
+
const newClient = new PrismaClient({
|
|
214
|
+
log: [
|
|
215
|
+
{ level: 'error', emit: 'event' },
|
|
216
|
+
{ level: 'warn', emit: 'event' },
|
|
217
|
+
],
|
|
218
|
+
datasources: {
|
|
219
|
+
db: {
|
|
220
|
+
url: buildDatabaseUrl(),
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
});
|
|
224
|
+
// Re-register error/warn handlers
|
|
225
|
+
newClient.$on('error', (e) => {
|
|
226
|
+
logger.error('Prisma client error (reconnected)', { message: e.message, timestamp: e.timestamp });
|
|
227
|
+
});
|
|
228
|
+
newClient.$on('warn', (e) => {
|
|
229
|
+
logger.warn('Prisma client warning (reconnected)', { message: e.message });
|
|
230
|
+
});
|
|
231
|
+
global.prisma = newClient;
|
|
232
|
+
heartbeatFailures = 0;
|
|
233
|
+
logger.info('Prisma client reconnected successfully');
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
logger.error('Failed to reconnect Prisma client', {
|
|
237
|
+
error: error instanceof Error ? error.message : String(error),
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
finally {
|
|
241
|
+
isReconnecting = false;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Starts the periodic database heartbeat monitor.
|
|
246
|
+
* Call once during server startup. The returned cleanup function
|
|
247
|
+
* must be called during graceful shutdown.
|
|
248
|
+
*/
|
|
249
|
+
export function startConnectionHealthMonitor() {
|
|
250
|
+
if (heartbeatTimer)
|
|
251
|
+
return () => stopConnectionHealthMonitor();
|
|
252
|
+
logger.info('Starting database connection health monitor', {
|
|
253
|
+
intervalMs: HEARTBEAT_INTERVAL_MS,
|
|
254
|
+
failureThreshold: MAX_HEARTBEAT_FAILURES,
|
|
255
|
+
});
|
|
256
|
+
heartbeatTimer = setInterval(() => {
|
|
257
|
+
void heartbeat();
|
|
258
|
+
}, HEARTBEAT_INTERVAL_MS);
|
|
259
|
+
// Run an initial heartbeat immediately
|
|
260
|
+
void heartbeat();
|
|
261
|
+
return () => stopConnectionHealthMonitor();
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Stops the periodic heartbeat monitor. Safe to call multiple times.
|
|
265
|
+
*/
|
|
266
|
+
export function stopConnectionHealthMonitor() {
|
|
267
|
+
if (heartbeatTimer) {
|
|
268
|
+
clearInterval(heartbeatTimer);
|
|
269
|
+
heartbeatTimer = undefined;
|
|
270
|
+
logger.info('Database connection health monitor stopped');
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Disconnects the Prisma client with a timeout to prevent hanging during shutdown.
|
|
275
|
+
* @param timeoutMs - Maximum time to wait for disconnect (default: 5000ms)
|
|
276
|
+
*/
|
|
277
|
+
export async function disconnectWithTimeout(timeoutMs = 5000) {
|
|
278
|
+
stopConnectionHealthMonitor();
|
|
279
|
+
if (!global.prisma)
|
|
280
|
+
return;
|
|
281
|
+
try {
|
|
282
|
+
await Promise.race([
|
|
283
|
+
global.prisma.$disconnect(),
|
|
284
|
+
new Promise((_, reject) => setTimeout(() => reject(new Error(`Prisma disconnect timed out after ${timeoutMs}ms`)), timeoutMs)),
|
|
285
|
+
]);
|
|
286
|
+
logger.info('Database connections closed successfully');
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
logger.warn('Database disconnect did not complete cleanly', {
|
|
290
|
+
error: error instanceof Error ? error.message : String(error),
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
149
294
|
export default prisma;
|
|
150
295
|
//# sourceMappingURL=prismaClient.js.map
|
|
@@ -8,19 +8,19 @@ exports.ConflictEventTypeString = `
|
|
|
8
8
|
export type ConflictEvent = {
|
|
9
9
|
// Timestamp when conflict occurred
|
|
10
10
|
timestamp: Date;
|
|
11
|
-
// Type of entity with conflict
|
|
11
|
+
// Type of entity with conflict.
|
|
12
12
|
entityType: string;
|
|
13
|
-
// Server version of the entity
|
|
13
|
+
// Server version of the entity.
|
|
14
14
|
serverVersion: any;
|
|
15
|
-
// Client version of the entity
|
|
15
|
+
// Client version of the entity.
|
|
16
16
|
clientVersion: any;
|
|
17
|
-
// Resolution strategy used
|
|
17
|
+
// Resolution strategy used.
|
|
18
18
|
strategy: ConflictResolutionStrategy;
|
|
19
19
|
// Whether conflict was resolved
|
|
20
20
|
resolved: boolean;
|
|
21
|
-
// Resolved version of the entity (optional)
|
|
21
|
+
// Resolved version of the entity (optional).
|
|
22
22
|
resolution?: any;
|
|
23
|
-
// Time taken to resolve in milliseconds (optional)
|
|
23
|
+
// Time taken to resolve in milliseconds (optional).
|
|
24
24
|
resolutionTime?: number;
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ConflictEventTypeString = "\n// Your response should adhere to the following type definition for the \"ConflictEvent\" 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 ConflictEvent = {\n // Timestamp when conflict occurred\n timestamp: Date;\n // Type of entity with conflict
|
|
1
|
+
export declare const ConflictEventTypeString = "\n// Your response should adhere to the following type definition for the \"ConflictEvent\" 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 ConflictEvent = {\n // Timestamp when conflict occurred\n timestamp: Date;\n // Type of entity with conflict.\n entityType: string;\n // Server version of the entity.\n serverVersion: any;\n // Client version of the entity.\n clientVersion: any;\n // Resolution strategy used.\n strategy: ConflictResolutionStrategy;\n // Whether conflict was resolved\n resolved: boolean;\n // Resolved version of the entity (optional).\n resolution?: any;\n // Time taken to resolve in milliseconds (optional).\n resolutionTime?: number;\n};\n\nenum ConflictResolutionStrategy {\n SERVER_WINS\n\n CLIENT_WINS\n\n MERGE\n\n MANUAL\n\n TIMESTAMP_BASED\n}\n\n";
|
|
2
2
|
//# sourceMappingURL=ConflictEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConflictEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/ConflictEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"ConflictEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/ConflictEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,g5BAmCnC,CAAC"}
|
|
@@ -6,6 +6,7 @@ exports.LlmConfigurationTypeString = `
|
|
|
6
6
|
// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
|
|
7
7
|
|
|
8
8
|
export type LlmConfiguration = {
|
|
9
|
+
// Relation to the User model.
|
|
9
10
|
user: {
|
|
10
11
|
// The user's full name.
|
|
11
12
|
name?: string;
|
|
@@ -67,12 +68,6 @@ These are model ID strings like "gpt-5.4-mini", "claude-sonnet-4-6", etc.
|
|
|
67
68
|
miniModel?: string;
|
|
68
69
|
normalModel?: string;
|
|
69
70
|
advancedModel?: string;
|
|
70
|
-
anthropicApiKey?: string;
|
|
71
|
-
deepseekApiKey?: string;
|
|
72
|
-
kimiApiKey?: string;
|
|
73
|
-
qwenApiKey?: string;
|
|
74
|
-
xaiApiKey?: string;
|
|
75
|
-
geminiApiKey?: string;
|
|
76
71
|
};
|
|
77
72
|
|
|
78
73
|
enum UserRole {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LlmConfigurationTypeString = "\n// Your response should adhere to the following type definition for the \"LlmConfiguration\" 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 LlmConfiguration = {\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n // List of linked authentication providers.\n linkedProviders: {\n // The authentication provider type.\n provider: AuthProvider;\n // Email associated with this provider (optional).\n email?: string;\n }[];\n // List of account linking requests.\n accountLinkingRequests: {\n // Current status of the linking request.\n status: AccountLinkingStatus;\n // Provider being linked.\n provider: AuthProvider;\n // Email to verify for the linking request.\n email: string;\n }[];\n };\n // Default provider used for all tiers unless overridden\n defaultProvider: LlmProvider;\n // Per-tier provider overrides (null = inherit from defaultProvider)\n miniProvider?: LlmProvider;\n normalProvider?: LlmProvider;\n advancedProvider?: LlmProvider;\n // Per-tier model overrides (null = use provider's default for that tier)\nThese are model ID strings like \"gpt-5.4-mini\", \"claude-sonnet-4-6\", etc.\n miniModel?: string;\n normalModel?: string;\n advancedModel?: string;\n
|
|
1
|
+
export declare const LlmConfigurationTypeString = "\n// Your response should adhere to the following type definition for the \"LlmConfiguration\" 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 LlmConfiguration = {\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n // List of linked authentication providers.\n linkedProviders: {\n // The authentication provider type.\n provider: AuthProvider;\n // Email associated with this provider (optional).\n email?: string;\n }[];\n // List of account linking requests.\n accountLinkingRequests: {\n // Current status of the linking request.\n status: AccountLinkingStatus;\n // Provider being linked.\n provider: AuthProvider;\n // Email to verify for the linking request.\n email: string;\n }[];\n };\n // Default provider used for all tiers unless overridden\n defaultProvider: LlmProvider;\n // Per-tier provider overrides (null = inherit from defaultProvider)\n miniProvider?: LlmProvider;\n normalProvider?: LlmProvider;\n advancedProvider?: LlmProvider;\n // Per-tier model overrides (null = use provider's default for that tier)\nThese are model ID strings like \"gpt-5.4-mini\", \"claude-sonnet-4-6\", etc.\n miniModel?: string;\n normalModel?: string;\n advancedModel?: string;\n};\n\nenum UserRole {\n OWNER\n\n ADMIN\n\n SUPERADMIN\n\n USER\n}\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum SubscriptionPlan {\n FREE\n\n PRO\n\n INSTITUTION\n}\n\nenum OpenaiModel {\n GPT_5\n\n GPT_5_MINI\n\n GPT_5_NANO\n\n GPT_4_1\n\n GPT_4_1_MINI\n\n GPT_4_1_NANO\n}\n\nenum AuthProvider {\n CREDENTIALS\n\n GOOGLE\n\n GITHUB\n}\n\nenum AccountLinkingStatus {\n PENDING\n\n EMAIL_SENT\n\n VERIFIED\n\n APPROVED\n\n REJECTED\n\n EXPIRED\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\n";
|
|
2
2
|
//# sourceMappingURL=LlmConfiguration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmConfiguration.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/LlmConfiguration.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"LlmConfiguration.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/LlmConfiguration.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,wgGAiJtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmConfiguration.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/LlmConfiguration.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG
|
|
1
|
+
{"version":3,"file":"LlmConfiguration.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/LlmConfiguration.ts"],"names":[],"mappings":";;;AAAa,QAAA,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJzC,CAAC"}
|
|
@@ -6,7 +6,9 @@ exports.PolicyOverlayTypeString = `
|
|
|
6
6
|
// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
|
|
7
7
|
|
|
8
8
|
export type PolicyOverlay = {
|
|
9
|
+
// Relation to TradingPolicy.
|
|
9
10
|
tradingPolicy: {
|
|
11
|
+
// Relation to AlpacaAccount.
|
|
10
12
|
alpacaAccount: {
|
|
11
13
|
// The type of Alpaca account (PAPER or LIVE).
|
|
12
14
|
type: AlpacaAccountType;
|
|
@@ -61,6 +63,7 @@ export type PolicyOverlay = {
|
|
|
61
63
|
advancedModelProvider?: LlmProvider;
|
|
62
64
|
modelPrefs?: any;
|
|
63
65
|
auditNotificationPrefs?: any;
|
|
66
|
+
// List of policy overlays.
|
|
64
67
|
overlays: PolicyOverlay[];
|
|
65
68
|
};
|
|
66
69
|
overlayType: OverlayType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PolicyOverlayTypeString = "\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 tradingPolicy: {\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 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 overlays: PolicyOverlay[];\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\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";
|
|
1
|
+
export declare const PolicyOverlayTypeString = "\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 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 };\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\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";
|
|
2
2
|
//# sourceMappingURL=PolicyOverlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolicyOverlay.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"PolicyOverlay.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,+rGA8JnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolicyOverlay.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG
|
|
1
|
+
{"version":3,"file":"PolicyOverlay.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/PolicyOverlay.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JtC,CAAC"}
|
|
@@ -18,27 +18,27 @@ export type PortfolioGreeksHistory = {
|
|
|
18
18
|
theta: number;
|
|
19
19
|
vega: number;
|
|
20
20
|
rho: number;
|
|
21
|
-
// Total portfolio delta exposure
|
|
21
|
+
// Total portfolio delta exposure.
|
|
22
22
|
totalDelta?: number;
|
|
23
|
-
// Total portfolio gamma exposure
|
|
23
|
+
// Total portfolio gamma exposure.
|
|
24
24
|
totalGamma?: number;
|
|
25
|
-
// Total portfolio theta exposure
|
|
25
|
+
// Total portfolio theta exposure.
|
|
26
26
|
totalTheta?: number;
|
|
27
|
-
// Total portfolio vega exposure
|
|
27
|
+
// Total portfolio vega exposure.
|
|
28
28
|
totalVega?: number;
|
|
29
|
-
// Total portfolio rho exposure
|
|
29
|
+
// Total portfolio rho exposure.
|
|
30
30
|
totalRho?: number;
|
|
31
|
-
// Number of positions in portfolio
|
|
31
|
+
// Number of positions in portfolio.
|
|
32
32
|
positionCount?: number;
|
|
33
|
-
// List of underlying symbols in portfolio
|
|
33
|
+
// List of underlying symbols in portfolio.
|
|
34
34
|
underlyingSymbols?: any;
|
|
35
|
-
// List of expiration dates in portfolio
|
|
35
|
+
// List of expiration dates in portfolio.
|
|
36
36
|
expirationDates?: any;
|
|
37
|
-
// Whether recorded during market hours
|
|
37
|
+
// Whether recorded during market hours.
|
|
38
38
|
marketHours?: boolean;
|
|
39
|
-
// VIX level at timestamp
|
|
39
|
+
// VIX level at timestamp.
|
|
40
40
|
vix?: number;
|
|
41
|
-
// SPY price at timestamp
|
|
41
|
+
// SPY price at timestamp.
|
|
42
42
|
spyPrice?: number;
|
|
43
43
|
// Data source identifier
|
|
44
44
|
source?: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PortfolioGreeksHistoryTypeString = "\n// Your response should adhere to the following type definition for the \"PortfolioGreeksHistory\" 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 PortfolioGreeksHistory = {\n // Timestamp of the Greeks snapshot\n timestamp: Date;\n // Option contract symbol (if contract-specific)\n symbol?: string;\n // Underlying asset symbol\n underlying: string;\n // Individual Greeks for contract or position\n delta: number;\n gamma: number;\n theta: number;\n vega: number;\n rho: number;\n // Total portfolio delta exposure
|
|
1
|
+
export declare const PortfolioGreeksHistoryTypeString = "\n// Your response should adhere to the following type definition for the \"PortfolioGreeksHistory\" 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 PortfolioGreeksHistory = {\n // Timestamp of the Greeks snapshot\n timestamp: Date;\n // Option contract symbol (if contract-specific)\n symbol?: string;\n // Underlying asset symbol\n underlying: string;\n // Individual Greeks for contract or position\n delta: number;\n gamma: number;\n theta: number;\n vega: number;\n rho: number;\n // Total portfolio delta exposure.\n totalDelta?: number;\n // Total portfolio gamma exposure.\n totalGamma?: number;\n // Total portfolio theta exposure.\n totalTheta?: number;\n // Total portfolio vega exposure.\n totalVega?: number;\n // Total portfolio rho exposure.\n totalRho?: number;\n // Number of positions in portfolio.\n positionCount?: number;\n // List of underlying symbols in portfolio.\n underlyingSymbols?: any;\n // List of expiration dates in portfolio.\n expirationDates?: any;\n // Whether recorded during market hours.\n marketHours?: boolean;\n // VIX level at timestamp.\n vix?: number;\n // SPY price at timestamp.\n spyPrice?: number;\n // Data source identifier\n source?: string;\n};\n\n";
|
|
2
2
|
//# sourceMappingURL=PortfolioGreeksHistory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PortfolioGreeksHistory.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/PortfolioGreeksHistory.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"PortfolioGreeksHistory.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/PortfolioGreeksHistory.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,o0CA2C5C,CAAC"}
|
|
@@ -6,6 +6,7 @@ exports.TradingPolicyTypeString = `
|
|
|
6
6
|
// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
|
|
7
7
|
|
|
8
8
|
export type TradingPolicy = {
|
|
9
|
+
// Relation to AlpacaAccount.
|
|
9
10
|
alpacaAccount: {
|
|
10
11
|
// The type of Alpaca account (PAPER or LIVE).
|
|
11
12
|
type: AlpacaAccountType;
|
|
@@ -60,6 +61,7 @@ export type TradingPolicy = {
|
|
|
60
61
|
advancedModelProvider?: LlmProvider;
|
|
61
62
|
modelPrefs?: any;
|
|
62
63
|
auditNotificationPrefs?: any;
|
|
64
|
+
// List of policy overlays.
|
|
63
65
|
overlays: {
|
|
64
66
|
overlayType: OverlayType;
|
|
65
67
|
source: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TradingPolicyTypeString = "\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 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 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 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};\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\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";
|
|
1
|
+
export declare const TradingPolicyTypeString = "\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 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};\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\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";
|
|
2
2
|
//# sourceMappingURL=TradingPolicy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingPolicy.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"TradingPolicy.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,iiGA4JnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TradingPolicy.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG
|
|
1
|
+
{"version":3,"file":"TradingPolicy.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/TradingPolicy.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4JtC,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const typeStrings: {
|
|
|
3
3
|
readonly marketSentiment: "\n// Your response should adhere to the following type definition for the \"MarketSentiment\" 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 MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n VERY_BEARISH\n\n SOMEWHAT_BEARISH\n\n BEARISH\n\n NEUTRAL\n\n SOMEWHAT_BULLISH\n\n BULLISH\n\n VERY_BULLISH\n}\n\n";
|
|
4
4
|
readonly session: "\n// Your response should adhere to the following type definition for the \"Session\" 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 Session = {\n // Expiration date and time of the session.\n expires: Date;\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n };\n};\n\n";
|
|
5
5
|
readonly user: "\n// Your response should adhere to the following type definition for the \"User\" 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 User = {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n // List of linked authentication providers.\n linkedProviders: {\n // The authentication provider type.\n provider: AuthProvider;\n // Email associated with this provider (optional).\n email?: string;\n }[];\n // List of account linking requests.\n accountLinkingRequests: {\n // Current status of the linking request.\n status: AccountLinkingStatus;\n // Provider being linked.\n provider: AuthProvider;\n // Email to verify for the linking request.\n email: string;\n }[];\n};\n\nenum UserRole {\n OWNER\n\n ADMIN\n\n SUPERADMIN\n\n USER\n}\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum SubscriptionPlan {\n FREE\n\n PRO\n\n INSTITUTION\n}\n\nenum OpenaiModel {\n GPT_5\n\n GPT_5_MINI\n\n GPT_5_NANO\n\n GPT_4_1\n\n GPT_4_1_MINI\n\n GPT_4_1_NANO\n}\n\nenum AuthProvider {\n CREDENTIALS\n\n GOOGLE\n\n GITHUB\n}\n\nenum AccountLinkingStatus {\n PENDING\n\n EMAIL_SENT\n\n VERIFIED\n\n APPROVED\n\n REJECTED\n\n EXPIRED\n}\n\n";
|
|
6
|
-
readonly llmConfiguration: "\n// Your response should adhere to the following type definition for the \"LlmConfiguration\" 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 LlmConfiguration = {\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n // List of linked authentication providers.\n linkedProviders: {\n // The authentication provider type.\n provider: AuthProvider;\n // Email associated with this provider (optional).\n email?: string;\n }[];\n // List of account linking requests.\n accountLinkingRequests: {\n // Current status of the linking request.\n status: AccountLinkingStatus;\n // Provider being linked.\n provider: AuthProvider;\n // Email to verify for the linking request.\n email: string;\n }[];\n };\n // Default provider used for all tiers unless overridden\n defaultProvider: LlmProvider;\n // Per-tier provider overrides (null = inherit from defaultProvider)\n miniProvider?: LlmProvider;\n normalProvider?: LlmProvider;\n advancedProvider?: LlmProvider;\n // Per-tier model overrides (null = use provider's default for that tier)\nThese are model ID strings like \"gpt-5.4-mini\", \"claude-sonnet-4-6\", etc.\n miniModel?: string;\n normalModel?: string;\n advancedModel?: string;\n
|
|
6
|
+
readonly llmConfiguration: "\n// Your response should adhere to the following type definition for the \"LlmConfiguration\" 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 LlmConfiguration = {\n // Relation to the User model.\n user: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n // URL to the user's profile image.\n image?: string;\n // The role assigned to the user, determining permissions.\n role: UserRole;\n // A short biography or description of the user.\n bio?: string;\n // The user's job title or position.\n jobTitle?: string;\n // The type of Alpaca account the user currently holds.\n currentAccount: AlpacaAccountType;\n // Relation to the Customer model.\n customer?: {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n };\n // The subscription plan the user is enrolled in.\n plan?: SubscriptionPlan;\n // List of Alpaca accounts linked to the user.\n alpacaAccounts: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n }[];\n // OpenAI API key for the user.\n openaiAPIKey?: string;\n // OpenAI API Language model selected by the user\n openaiModel?: OpenaiModel;\n // List of linked authentication providers.\n linkedProviders: {\n // The authentication provider type.\n provider: AuthProvider;\n // Email associated with this provider (optional).\n email?: string;\n }[];\n // List of account linking requests.\n accountLinkingRequests: {\n // Current status of the linking request.\n status: AccountLinkingStatus;\n // Provider being linked.\n provider: AuthProvider;\n // Email to verify for the linking request.\n email: string;\n }[];\n };\n // Default provider used for all tiers unless overridden\n defaultProvider: LlmProvider;\n // Per-tier provider overrides (null = inherit from defaultProvider)\n miniProvider?: LlmProvider;\n normalProvider?: LlmProvider;\n advancedProvider?: LlmProvider;\n // Per-tier model overrides (null = use provider's default for that tier)\nThese are model ID strings like \"gpt-5.4-mini\", \"claude-sonnet-4-6\", etc.\n miniModel?: string;\n normalModel?: string;\n advancedModel?: string;\n};\n\nenum UserRole {\n OWNER\n\n ADMIN\n\n SUPERADMIN\n\n USER\n}\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum SubscriptionPlan {\n FREE\n\n PRO\n\n INSTITUTION\n}\n\nenum OpenaiModel {\n GPT_5\n\n GPT_5_MINI\n\n GPT_5_NANO\n\n GPT_4_1\n\n GPT_4_1_MINI\n\n GPT_4_1_NANO\n}\n\nenum AuthProvider {\n CREDENTIALS\n\n GOOGLE\n\n GITHUB\n}\n\nenum AccountLinkingStatus {\n PENDING\n\n EMAIL_SENT\n\n VERIFIED\n\n APPROVED\n\n REJECTED\n\n EXPIRED\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\n";
|
|
7
7
|
readonly linkedProvider: "\n// Your response should adhere to the following type definition for the \"LinkedProvider\" 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 LinkedProvider = {\n // The authentication provider type.\n provider: AuthProvider;\n // Email associated with this provider (optional).\n email?: string;\n // Token expiration date and time (optional).\n expiresAt?: Date;\n};\n\nenum AuthProvider {\n CREDENTIALS\n\n GOOGLE\n\n GITHUB\n}\n\n";
|
|
8
8
|
readonly accountLinkingRequest: "\n// Your response should adhere to the following type definition for the \"AccountLinkingRequest\" 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 AccountLinkingRequest = {\n // Email to verify for the linking request.\n email: string;\n // Provider being linked.\n provider: AuthProvider;\n // Current status of the linking request.\n status: AccountLinkingStatus;\n // User agent for security tracking (optional).\n userAgent?: string;\n // IP address for rate limiting (optional).\n ipAddress?: string;\n // When this request expires.\n expiresAt: Date;\n // When email was verified (optional).\n verifiedAt?: Date;\n // When user gave consent (optional).\n approvedAt?: Date;\n // When user rejected (optional).\n rejectedAt?: Date;\n};\n\nenum AuthProvider {\n CREDENTIALS\n\n GOOGLE\n\n GITHUB\n}\n\nenum AccountLinkingStatus {\n PENDING\n\n EMAIL_SENT\n\n VERIFIED\n\n APPROVED\n\n REJECTED\n\n EXPIRED\n}\n\n";
|
|
9
9
|
readonly alpacaAccount: "\n// Your response should adhere to the following type definition for the \"AlpacaAccount\" 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 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\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\n";
|
|
@@ -39,11 +39,11 @@ export declare const typeStrings: {
|
|
|
39
39
|
readonly optionsContract: "\n// Your response should adhere to the following type definition for the \"OptionsContract\" 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 OptionsContract = {\n // Underlying asset symbol\n symbol: string;\n // Contract symbol (OCC format)\n contractSymbol: string;\n // Option type (CALL or PUT)\n optionType: OptionType;\n // Strike price of the option\n strikePrice: number;\n // Expiration date of the option\n expirationDate: Date;\n // Days to expiration\n daysToExpiration?: number;\n // Last traded price\n lastPrice?: number;\n // Bid price\n bidPrice?: number;\n // Ask price\n askPrice?: number;\n // Mid price (average of bid and ask)\n midPrice?: number;\n // Bid size\n bidSize?: number;\n // Ask size\n askSize?: number;\n // Trading volume for the contract\n volume?: number;\n // Open interest\n openInterest?: number;\n // Implied volatility\n impliedVolatility?: number;\n // Delta Greek\n delta?: number;\n // Gamma Greek\n gamma?: number;\n // Theta Greek\n theta?: number;\n // Vega Greek\n vega?: number;\n // Rho Greek\n rho?: number;\n // Whether the option is in the money\n inTheMoney?: boolean;\n // Intrinsic value of the option\n intrinsicValue?: number;\n // Extrinsic (time) value of the option\n extrinsicValue?: number;\n // Theoretical price from pricing model\n theoreticalPrice?: number;\n // Underlying asset price at time of data capture\n underlyingPrice?: number;\n // Additional metadata as JSON\n metadata?: any;\n // Timestamp when the contract data was captured\n dataTimestamp: Date;\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\n";
|
|
40
40
|
readonly optionsPosition: "\n// Your response should adhere to the following type definition for the \"OptionsPosition\" 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 OptionsPosition = {\n // Relation to OptionsContract.\n contract: {\n // Contract symbol (OCC format)\n contractSymbol: string;\n // Underlying asset symbol\n symbol: string;\n // Option type (CALL or PUT)\n optionType: OptionType;\n // Strike price of the option\n strikePrice: number;\n // Expiration date of the option\n expirationDate: Date;\n };\n // Position status\n status: OptionPositionStatus;\n // Execution side for opening the position\n openingSide: OptionExecutionSide;\n // Number of contracts in the position\n quantity: number;\n // Average entry price per contract\n entryPrice: number;\n // Total entry cost (quantity * entryPrice * 100)\n entryCost: number;\n // Timestamp when position was opened\n entryTime: Date;\n // Exit price per contract (null if still open)\n exitPrice?: number;\n // Total exit value (quantity * exitPrice * 100)\n exitValue?: number;\n // Timestamp when position was closed (null if still open)\n exitTime?: Date;\n // Current market price (for open positions)\n currentPrice?: number;\n // Current position value\n currentValue?: number;\n // Unrealized P&L (for open positions)\n unrealizedPnL?: number;\n // Unrealized P&L percentage\n unrealizedPnLPercent?: number;\n // Realized P&L (for closed positions)\n realizedPnL?: number;\n // Realized P&L percentage\n realizedPnLPercent?: number;\n // Total fees and commissions paid\n totalFees: number;\n // Current Greeks for the position (snapshot)\n currentDelta?: number;\n currentGamma?: number;\n currentTheta?: number;\n currentVega?: number;\n currentRho?: number;\n // Current implied volatility\n currentImpliedVolatility?: number;\n // Days held (calculated)\n daysHeld?: number;\n // Exit reason or notes\n exitReason?: string;\n // Strategy type (e.g., \"covered_call\", \"protective_put\", \"vertical_spread\")\n strategyType?: string;\n // Additional metadata as JSON\n metadata?: any;\n};\n\nenum OptionType {\n CALL\n\n PUT\n}\n\nenum OptionPositionStatus {\n OPEN\n\n CLOSED\n\n EXPIRED\n\n ASSIGNED\n}\n\nenum OptionExecutionSide {\n BUY_TO_OPEN\n\n SELL_TO_CLOSE\n\n SELL_TO_OPEN\n\n BUY_TO_CLOSE\n}\n\n";
|
|
41
41
|
readonly optionsGreeksHistory: "\n// Your response should adhere to the following type definition for the \"OptionsGreeksHistory\" 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 OptionsGreeksHistory = {\n // Timestamp of the Greeks snapshot\n timestamp: Date;\n // Underlying asset price at this timestamp\n underlyingPrice: number;\n // Option price at this timestamp\n optionPrice: number;\n // Bid price\n bidPrice?: number;\n // Ask price\n askPrice?: number;\n // Implied volatility\n impliedVolatility: number;\n // Delta Greek\n delta: number;\n // Gamma Greek\n gamma: number;\n // Theta Greek\n theta: number;\n // Vega Greek\n vega: number;\n // Rho Greek\n rho: number;\n // Trading volume\n volume?: number;\n // Open interest\n openInterest?: number;\n // Days to expiration at this timestamp\n daysToExpiration: number;\n // Intrinsic value\n intrinsicValue: number;\n // Extrinsic value\n extrinsicValue: number;\n // Additional metadata as JSON\n metadata?: any;\n};\n\n";
|
|
42
|
-
readonly portfolioGreeksHistory: "\n// Your response should adhere to the following type definition for the \"PortfolioGreeksHistory\" 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 PortfolioGreeksHistory = {\n // Timestamp of the Greeks snapshot\n timestamp: Date;\n // Option contract symbol (if contract-specific)\n symbol?: string;\n // Underlying asset symbol\n underlying: string;\n // Individual Greeks for contract or position\n delta: number;\n gamma: number;\n theta: number;\n vega: number;\n rho: number;\n // Total portfolio delta exposure
|
|
42
|
+
readonly portfolioGreeksHistory: "\n// Your response should adhere to the following type definition for the \"PortfolioGreeksHistory\" 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 PortfolioGreeksHistory = {\n // Timestamp of the Greeks snapshot\n timestamp: Date;\n // Option contract symbol (if contract-specific)\n symbol?: string;\n // Underlying asset symbol\n underlying: string;\n // Individual Greeks for contract or position\n delta: number;\n gamma: number;\n theta: number;\n vega: number;\n rho: number;\n // Total portfolio delta exposure.\n totalDelta?: number;\n // Total portfolio gamma exposure.\n totalGamma?: number;\n // Total portfolio theta exposure.\n totalTheta?: number;\n // Total portfolio vega exposure.\n totalVega?: number;\n // Total portfolio rho exposure.\n totalRho?: number;\n // Number of positions in portfolio.\n positionCount?: number;\n // List of underlying symbols in portfolio.\n underlyingSymbols?: any;\n // List of expiration dates in portfolio.\n expirationDates?: any;\n // Whether recorded during market hours.\n marketHours?: boolean;\n // VIX level at timestamp.\n vix?: number;\n // SPY price at timestamp.\n spyPrice?: number;\n // Data source identifier\n source?: string;\n};\n\n";
|
|
43
43
|
readonly optionsTradeExecution: "\n// Your response should adhere to the following type definition for the \"OptionsTradeExecution\" 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 OptionsTradeExecution = {\n // Execution side (BUY_TO_OPEN, SELL_TO_CLOSE, etc.)\n executionSide: OptionExecutionSide;\n // Number of contracts executed\n quantity: number;\n // Execution price per contract\n executionPrice: number;\n // Total execution value (quantity * executionPrice * 100)\n executionValue: number;\n // Fees and commissions for this execution\n fees: number;\n // Timestamp of the execution\n executionTime: Date;\n // Underlying price at execution time\n underlyingPriceAtExecution?: number;\n // Greeks at execution time\n deltaAtExecution?: number;\n gammaAtExecution?: number;\n thetaAtExecution?: number;\n vegaAtExecution?: number;\n rhoAtExecution?: number;\n // Implied volatility at execution\n impliedVolatilityAtExecution?: number;\n // Order type (MARKET, LIMIT, STOP, etc.)\n orderType?: string;\n // Limit price if limit order\n limitPrice?: number;\n // Stop price if stop order\n stopPrice?: number;\n // Time in force (DAY, GTC, etc.)\n timeInForce?: string;\n // Execution venue\n venue?: string;\n // Slippage amount (difference from expected price)\n slippage?: number;\n // Execution notes or comments\n notes?: string;\n // Additional metadata as JSON\n metadata?: any;\n};\n\nenum OptionExecutionSide {\n BUY_TO_OPEN\n\n SELL_TO_CLOSE\n\n SELL_TO_OPEN\n\n BUY_TO_CLOSE\n}\n\n";
|
|
44
44
|
readonly deadLetterMessage: "\n// Your response should adhere to the following type definition for the \"DeadLetterMessage\" 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 DeadLetterMessage = {\n // Timestamp when the failure occurred\n timestamp: Date;\n // Ticker symbol of the trade\n ticker: string;\n // Trade action (buy, sell, buy_to_open, etc.)\n action: string;\n // Number of contracts/shares\n quantity: number;\n // Strike price for options (optional)\n strikePrice?: number;\n // Expiration date for options (optional)\n expirationDate?: string;\n // Option type (call, put) (optional)\n optionType?: string;\n // Trading strategy (optional)\n strategy?: string;\n // Order type (market, limit, stop, etc.) (optional)\n orderType?: string;\n // Limit price (optional)\n limitPrice?: number;\n // Error message describing the failure\n errorMessage: string;\n // Error code (optional)\n errorCode?: string;\n // Error stack trace (optional)\n errorStack?: string;\n // Number of retry attempts\n retryCount: number;\n // Maximum retry attempts allowed\n maxRetries: number;\n // Timestamp of last retry attempt (optional)\n lastRetryAt?: Date;\n // Timestamp for next retry attempt (optional)\n nextRetryAt?: Date;\n // Current backoff delay in milliseconds\n backoffMs: number;\n // Current status of the message\n status: DeadLetterStatus;\n // Timestamp when resolved (optional)\n resolvedAt?: Date;\n // How it was resolved (auto-retry, manual, user ID) (optional)\n resolvedBy?: string;\n // Description of resolution (optional)\n resolution?: string;\n // Original trade attempt data as JSON\n tradeContext: any;\n // Account state at time of failure (optional)\n accountState?: any;\n // Market conditions at time of failure (optional)\n marketContext?: any;\n // Detailed validation failures (optional)\n validationErrors?: any;\n // Failure category for analytics (optional)\n failureCategory?: string;\n // Severity level of the failure\n severity: DeadLetterSeverity;\n // Tags for flexible categorization (optional)\n tags?: any;\n // User who created the entry (optional)\n createdBy?: string;\n // Admin notes for manual interventions (optional)\n notes?: string;\n};\n\nenum DeadLetterStatus {\n PENDING\n\n RETRYING\n\n FAILED\n\n RESOLVED\n\n ARCHIVED\n}\n\nenum DeadLetterSeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\n";
|
|
45
45
|
readonly syncEvent: "\n// Your response should adhere to the following type definition for the \"SyncEvent\" 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 SyncEvent = {\n // Timestamp of the sync event\n timestamp: Date;\n // Type of sync event (SYNC_STARTED, SYNC_COMPLETED, SYNC_FAILED, etc.)\n type: string;\n // Direction of sync\n direction: SyncDirection;\n // Type of entity being synced\n entityType: string;\n // Duration in milliseconds (optional)\n duration?: number;\n // Whether the sync was successful\n success: boolean;\n // Error message if sync failed (optional)\n error?: string;\n // Additional context metadata (optional)\n metadata?: any;\n};\n\nenum SyncDirection {\n ENGINE_TO_BACKEND\n\n BACKEND_TO_ENGINE\n\n BIDIRECTIONAL\n}\n\n";
|
|
46
|
-
readonly conflictEvent: "\n// Your response should adhere to the following type definition for the \"ConflictEvent\" 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 ConflictEvent = {\n // Timestamp when conflict occurred\n timestamp: Date;\n // Type of entity with conflict
|
|
46
|
+
readonly conflictEvent: "\n// Your response should adhere to the following type definition for the \"ConflictEvent\" 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 ConflictEvent = {\n // Timestamp when conflict occurred\n timestamp: Date;\n // Type of entity with conflict.\n entityType: string;\n // Server version of the entity.\n serverVersion: any;\n // Client version of the entity.\n clientVersion: any;\n // Resolution strategy used.\n strategy: ConflictResolutionStrategy;\n // Whether conflict was resolved\n resolved: boolean;\n // Resolved version of the entity (optional).\n resolution?: any;\n // Time taken to resolve in milliseconds (optional).\n resolutionTime?: number;\n};\n\nenum ConflictResolutionStrategy {\n SERVER_WINS\n\n CLIENT_WINS\n\n MERGE\n\n MANUAL\n\n TIMESTAMP_BASED\n}\n\n";
|
|
47
47
|
readonly signalLineage: "\n// Your response should adhere to the following type definition for the \"SignalLineage\" 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 SignalLineage = {\n // Timestamp of the lineage record\n timestamp: Date;\n // Symbol for the signal\n symbol: string;\n // Type of signal\n signalType: string;\n // Source of the signal generator\n generatorSource: string;\n // Version of the signal generator (optional)\n generatorVersion?: string;\n // Array of DataSource objects\n inputSources: any;\n // Array of IndicatorContribution objects\n technicalIndicators: any;\n // LLMAnalysisResult object (optional)\n llmAnalysis?: any;\n // Array of PreAnalysisValidation objects\n preAnalysisValidations: any;\n // FilterResult object (optional)\n filterResult?: any;\n // CoordinationDecision object\n coordinationDecision: any;\n // ExecutionOutcome object (optional)\n executionOutcome?: any;\n // Original SignalMonitoringSignal object\n originalSignal: any;\n // Modified signal (optional)\n finalSignal?: any;\n // Array of lifecycle events\n lifecycleEvents: any;\n // Performance attribution data (optional)\n performanceAttribution?: any;\n // Unix timestamp in milliseconds of last update\n lastUpdated: any;\n // Storage location path (optional)\n storageLocation?: string;\n // Number of days to retain\n retentionDays: number;\n // Array of compliance tags (optional)\n complianceTags?: any;\n // Array of custom tags (optional)\n customTags?: any;\n // Current execution status\n executionStatus?: SignalExecutionStatus;\n // Decision type made for signal\n decisionType: SignalDecisionType;\n // Profit/loss percentage (optional)\n pnlPercentage?: number;\n // Average input data quality score (0-1)\n dataQuality: number;\n};\n\nenum SignalExecutionStatus {\n PENDING\n\n EXECUTED\n\n PARTIAL\n\n FAILED\n\n CANCELLED\n}\n\nenum SignalDecisionType {\n ACCEPT\n\n REJECT\n\n DEFER\n\n MODIFY\n}\n\n";
|
|
48
48
|
readonly tradeAuditEvent: "\n// Your response should adhere to the following type definition for the \"TradeAuditEvent\" 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 TradeAuditEvent = {\n // Timestamp of the audit event\n timestamp: Date;\n // Type of audit event\n eventType: string;\n // Symbol being traded\n symbol: string;\n // Cryptographic signature for integrity (AuditRecordSignature object)\n signatureJson: any;\n // Chain of custody information (ChainOfCustody object)\n custodyJson: any;\n // Whether the record is immutable\n immutable: boolean;\n // Whether the record is encrypted\n encrypted: boolean;\n // Array of compliance tags\n complianceTags: any;\n // Array of custom tags (optional)\n customTags?: any;\n // Complete event data\n eventData: any;\n // Event category for filtering\n eventCategory?: EventCategory;\n // Severity level\n severity?: EventSeverity;\n // For compliance checks - whether passed (optional)\n passed?: boolean;\n // Auto-deletion/archival date (optional)\n retentionDate?: Date;\n};\n\nenum EventCategory {\n TRADE\n\n SIGNAL\n\n ALERT\n\n RISK_BREACH\n\n SYSTEM\n\n COMPLIANCE\n\n EXECUTION\n\n SYNC\n}\n\nenum EventSeverity {\n INFO\n\n WARN\n\n ERROR\n\n CRITICAL\n}\n\n";
|
|
49
49
|
readonly signalGeneratorMetrics: "\n// Your response should adhere to the following type definition for the \"SignalGeneratorMetrics\" 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 SignalGeneratorMetrics = {\n // Timestamp of the metrics snapshot\n timestamp: Date;\n // Signal generator source\n generatorSource: SignalGeneratorSource;\n // Symbol-specific metrics (null for global metrics)\n symbol?: string;\n // Total number of signals generated\n totalSignals: number;\n // Number of successful signals\n successfulSignals: number;\n // Number of failed signals\n failedSignals: number;\n // Win rate percentage (0-1)\n winRate: number;\n // Sharpe ratio\n sharpeRatio: number;\n // Profit factor\n profitFactor: number;\n // Average return percentage\n averageReturn: number;\n // Maximum drawdown percentage\n maxDrawdown: number;\n // Average time to profit in minutes\n averageTimeToProfit: number;\n // Calibration accuracy (0-1)\n calibrationAccuracy: number;\n // Performance trend (-1 to 1)\n performanceTrend: number;\n // Lookback period in days\n lookbackPeriodDays: number;\n // Health score (0-100)\n healthScore: number;\n // Health status\n healthStatus: string;\n // Array of health issue strings (optional)\n healthIssues?: any;\n};\n\nenum SignalGeneratorSource {\n ENHANCED\n\n PRODUCTION\n\n LLM\n\n HYBRID\n\n EVENT_DRIVEN\n\n ML_PREDICTION\n\n OPTIONS_SCREENER\n\n TECHNICAL_ANALYSIS\n\n FUNDAMENTAL\n\n SENTIMENT\n\n CUSTOM\n}\n\n";
|
|
@@ -55,8 +55,8 @@ export declare const typeStrings: {
|
|
|
55
55
|
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";
|
|
56
56
|
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";
|
|
57
57
|
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};\n\nenum AuditOperationType {\n CREATE\n\n UPDATE\n\n DELETE\n}\n\n";
|
|
58
|
-
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 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 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 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};\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\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 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 tradingPolicy: {\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 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 overlays: PolicyOverlay[];\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\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";
|
|
58
|
+
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 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};\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\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 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 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 };\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\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";
|
|
60
60
|
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";
|
|
61
61
|
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";
|
|
62
62
|
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";
|
|
@@ -57,7 +57,7 @@ export declare class AccountLinkingRequest {
|
|
|
57
57
|
*/
|
|
58
58
|
rejectedAt?: Date | null;
|
|
59
59
|
/**
|
|
60
|
-
* Relation to the User model. TYPESTRING.SKIP=true GQL.
|
|
60
|
+
* Relation to the User model. TYPESTRING.SKIP=true GQL.INCLUDE=['id']
|
|
61
61
|
*/
|
|
62
62
|
user?: User;
|
|
63
63
|
}
|
|
@@ -132,14 +132,14 @@ __decorate([
|
|
|
132
132
|
__decorate([
|
|
133
133
|
TypeGraphQL.Field(_type => Date, {
|
|
134
134
|
nullable: true,
|
|
135
|
-
description: "Timestamp until which the alert is suppressed. TYPESTRING.SKIP=true"
|
|
135
|
+
description: "Timestamp until which the alert is suppressed. TYPESTRING.SKIP=true GQL.SKIP=true"
|
|
136
136
|
}),
|
|
137
137
|
__metadata("design:type", Object)
|
|
138
138
|
], Alert.prototype, "suppressedUntil", void 0);
|
|
139
139
|
__decorate([
|
|
140
140
|
TypeGraphQL.Field(_type => TypeGraphQL.Int, {
|
|
141
141
|
nullable: false,
|
|
142
|
-
description: "Number of retry attempts for alert-related operations."
|
|
142
|
+
description: "Number of retry attempts for alert-related operations. GQL.SKIP=true"
|
|
143
143
|
}),
|
|
144
144
|
__metadata("design:type", Number)
|
|
145
145
|
], Alert.prototype, "retryCount", void 0);
|
|
@@ -46,11 +46,11 @@ export declare class Alert {
|
|
|
46
46
|
*/
|
|
47
47
|
resolvedAt?: Date | null;
|
|
48
48
|
/**
|
|
49
|
-
* Timestamp until which the alert is suppressed. TYPESTRING.SKIP=true
|
|
49
|
+
* Timestamp until which the alert is suppressed. TYPESTRING.SKIP=true GQL.SKIP=true
|
|
50
50
|
*/
|
|
51
51
|
suppressedUntil?: Date | null;
|
|
52
52
|
/**
|
|
53
|
-
* Number of retry attempts for alert-related operations.
|
|
53
|
+
* Number of retry attempts for alert-related operations. GQL.SKIP=true
|
|
54
54
|
*/
|
|
55
55
|
retryCount: number;
|
|
56
56
|
/**
|