@adaptic/backend-legacy 0.0.1053 → 0.0.1054
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/Account.cjs +97 -0
- package/AccountLinkingRequest.cjs +97 -0
- package/AccountRiskMetrics.cjs +40 -0
- package/Action.cjs +17 -0
- package/AdaConversation.cjs +137 -0
- package/AdaMessage.cjs +20 -0
- package/Alert.cjs +40 -0
- package/Allocation.cjs +40 -0
- package/AlpacaAccount.cjs +114 -0
- package/AuditLog.cjs +14 -0
- package/Authenticator.cjs +97 -0
- package/AutoFollowRule.cjs +137 -0
- package/BrokerageAccount.cjs +80 -0
- package/Customer.cjs +117 -0
- package/DeskDecision.cjs +80 -0
- package/FeatureFlagOverride.cjs +97 -0
- package/Follow.cjs +137 -0
- package/Fund.cjs +454 -0
- package/FundAssignment.cjs +137 -0
- package/Holding.cjs +60 -0
- package/Investor.cjs +117 -0
- package/InvestorDocument.cjs +60 -0
- package/InvestorTransaction.cjs +60 -0
- package/InviteToken.cjs +20 -0
- package/LinkedProvider.cjs +97 -0
- package/LlmConfiguration.cjs +97 -0
- package/Mandate.cjs +321 -0
- package/MandateApproval.cjs +185 -0
- package/MandateRule.cjs +72 -0
- package/MandateVersion.cjs +297 -0
- package/NotificationDelivery.cjs +97 -0
- package/NotificationEvent.cjs +60 -0
- package/NotificationPreference.cjs +97 -0
- package/OrgMembership.cjs +97 -0
- package/Organization.cjs +280 -0
- package/PushSubscription.cjs +97 -0
- package/RiskEscalationEvent.cjs +40 -0
- package/Session.cjs +97 -0
- package/Strategy.cjs +93 -0
- package/StrategyHealthSnapshot.cjs +40 -0
- package/StrategySubscription.cjs +35 -0
- package/TaxDocument.cjs +60 -0
- package/Trade.cjs +14 -0
- package/TradingPolicy.cjs +40 -0
- package/User.cjs +382 -0
- package/UserTotp.cjs +97 -0
- package/WaitlistEntry.cjs +97 -0
- package/esm/Account.mjs +97 -0
- package/esm/AccountLinkingRequest.mjs +97 -0
- package/esm/AccountRiskMetrics.mjs +40 -0
- package/esm/Action.mjs +17 -0
- package/esm/AdaConversation.mjs +137 -0
- package/esm/AdaMessage.mjs +20 -0
- package/esm/Alert.mjs +40 -0
- package/esm/Allocation.mjs +40 -0
- package/esm/AlpacaAccount.mjs +114 -0
- package/esm/AuditLog.mjs +14 -0
- package/esm/Authenticator.mjs +97 -0
- package/esm/AutoFollowRule.mjs +137 -0
- package/esm/BrokerageAccount.mjs +80 -0
- package/esm/Customer.mjs +117 -0
- package/esm/DeskDecision.mjs +80 -0
- package/esm/FeatureFlagOverride.mjs +97 -0
- package/esm/Follow.mjs +137 -0
- package/esm/Fund.mjs +454 -0
- package/esm/FundAssignment.mjs +137 -0
- package/esm/Holding.mjs +60 -0
- package/esm/Investor.mjs +117 -0
- package/esm/InvestorDocument.mjs +60 -0
- package/esm/InvestorTransaction.mjs +60 -0
- package/esm/InviteToken.mjs +20 -0
- package/esm/LinkedProvider.mjs +97 -0
- package/esm/LlmConfiguration.mjs +97 -0
- package/esm/Mandate.mjs +321 -0
- package/esm/MandateApproval.mjs +185 -0
- package/esm/MandateRule.mjs +72 -0
- package/esm/MandateVersion.mjs +297 -0
- package/esm/NotificationDelivery.mjs +97 -0
- package/esm/NotificationEvent.mjs +60 -0
- package/esm/NotificationPreference.mjs +97 -0
- package/esm/OrgMembership.mjs +97 -0
- package/esm/Organization.mjs +280 -0
- package/esm/PushSubscription.mjs +97 -0
- package/esm/RiskEscalationEvent.mjs +40 -0
- package/esm/Session.mjs +97 -0
- package/esm/Strategy.mjs +93 -0
- package/esm/StrategyHealthSnapshot.mjs +40 -0
- package/esm/StrategySubscription.mjs +35 -0
- package/esm/TaxDocument.mjs +60 -0
- package/esm/Trade.mjs +14 -0
- package/esm/TradingPolicy.mjs +40 -0
- package/esm/User.mjs +382 -0
- package/esm/UserTotp.mjs +97 -0
- package/esm/WaitlistEntry.mjs +97 -0
- package/esm/auth/mutation-authorization.d.ts +2 -2
- package/esm/auth/user-write-content.d.ts +9 -3
- package/esm/auth/user-write-content.mjs +12 -2
- package/esm/generated/selectionSets/AuditLog.d.ts +1 -1
- package/esm/generated/selectionSets/AuditLog.mjs +2 -0
- package/esm/generated/selectionSets/Mandate.d.ts +1 -1
- package/esm/generated/selectionSets/Mandate.mjs +8 -0
- package/esm/generated/selectionSets/MandateRule.d.ts +1 -1
- package/esm/generated/selectionSets/MandateRule.mjs +4 -0
- package/esm/generated/selectionSets/MandateVersion.d.ts +1 -1
- package/esm/generated/selectionSets/MandateVersion.mjs +4 -0
- package/esm/generated/selectionSets/Strategy.d.ts +1 -1
- package/esm/generated/selectionSets/Strategy.mjs +1 -0
- package/esm/generated/selectionSets/StrategySubscription.d.ts +1 -1
- package/esm/generated/selectionSets/StrategySubscription.mjs +1 -0
- package/esm/generated/typeStrings/AuditLog.d.ts +1 -1
- package/esm/generated/typeStrings/AuditLog.mjs +9 -0
- package/esm/generated/typeStrings/MandateRule.d.ts +1 -1
- package/esm/generated/typeStrings/MandateRule.mjs +58 -0
- package/esm/generated/typeStrings/Strategy.d.ts +1 -1
- package/esm/generated/typeStrings/Strategy.mjs +13 -0
- package/esm/generated/typeStrings/index.d.ts +3 -3
- package/esm/generated/typegraphql-prisma/enhance.mjs +92 -67
- package/esm/generated/typegraphql-prisma/enums/AuditLogScalarFieldEnum.d.ts +3 -1
- package/esm/generated/typegraphql-prisma/enums/AuditLogScalarFieldEnum.mjs +2 -0
- package/esm/generated/typegraphql-prisma/enums/DeskType.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/enums/DeskType.mjs +13 -0
- package/esm/generated/typegraphql-prisma/enums/MandateAction.d.ts +8 -0
- package/esm/generated/typegraphql-prisma/enums/MandateAction.mjs +14 -0
- package/esm/generated/typegraphql-prisma/enums/MandateMetric.d.ts +20 -0
- package/esm/generated/typegraphql-prisma/enums/MandateMetric.mjs +26 -0
- package/esm/generated/typegraphql-prisma/enums/MandateRuleGroup.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/enums/MandateRuleGroup.mjs +13 -0
- package/esm/generated/typegraphql-prisma/enums/MandateRuleScalarFieldEnum.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/enums/MandateRuleScalarFieldEnum.mjs +4 -0
- package/esm/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.mjs +1 -0
- package/esm/generated/typegraphql-prisma/enums/index.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/enums/index.mjs +4 -0
- package/esm/generated/typegraphql-prisma/models/AuditLog.d.ts +17 -0
- package/esm/generated/typegraphql-prisma/models/AuditLog.mjs +31 -0
- package/esm/generated/typegraphql-prisma/models/MandateRule.d.ts +24 -0
- package/esm/generated/typegraphql-prisma/models/MandateRule.mjs +55 -0
- package/esm/generated/typegraphql-prisma/models/Strategy.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/models/Strategy.mjs +15 -0
- package/esm/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/FindFirstAuditLogArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/FindFirstAuditLogOrThrowArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/FindManyAuditLogArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/GroupByAuditLogArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/FindFirstMandateRuleArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/FindFirstMandateRuleOrThrowArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/FindManyMandateRuleArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/GroupByMandateRuleArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyOrThrowArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindManyStrategyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/crud/Strategy/args/GroupByStrategyArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogAvgOrderByAggregateInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogAvgOrderByAggregateInput.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogCountOrderByAggregateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogCountOrderByAggregateInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateManyInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateManyInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogMaxOrderByAggregateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogMaxOrderByAggregateInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogMinOrderByAggregateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogMinOrderByAggregateInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithAggregationInput.d.ts +6 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithAggregationInput.mjs +30 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithRelationInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithRelationInput.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogScalarWhereWithAggregatesInput.d.ts +3 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogScalarWhereWithAggregatesInput.mjs +15 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogSumOrderByAggregateInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogSumOrderByAggregateInput.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateManyMutationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateManyMutationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereInput.d.ts +3 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereInput.mjs +15 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereUniqueInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereUniqueInput.mjs +15 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableFilter.d.ts +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableFilter.mjs +47 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableWithAggregatesFilter.d.ts +13 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableWithAggregatesFilter.mjs +70 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableFilter.d.ts +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableFilter.mjs +47 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableWithAggregatesFilter.d.ts +13 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableWithAggregatesFilter.mjs +70 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableFilter.d.ts +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableFilter.mjs +47 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableWithAggregatesFilter.d.ts +13 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableWithAggregatesFilter.mjs +70 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableFilter.d.ts +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableFilter.mjs +47 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableWithAggregatesFilter.d.ts +13 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableWithAggregatesFilter.mjs +70 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCountOrderByAggregateInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCountOrderByAggregateInput.mjs +28 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyMandateVersionInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyMandateVersionInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateWithoutMandateVersionInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateWithoutMandateVersionInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMandateVersionIdRuleCodeCompoundUniqueInput.d.ts +5 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMandateVersionIdRuleCodeCompoundUniqueInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMaxOrderByAggregateInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMaxOrderByAggregateInput.mjs +28 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMinOrderByAggregateInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMinOrderByAggregateInput.mjs +28 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithAggregationInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithAggregationInput.mjs +28 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithRelationInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithRelationInput.mjs +28 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereWithAggregatesInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereWithAggregatesInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateManyMutationInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateManyMutationInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateWithoutMandateVersionInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateWithoutMandateVersionInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereInput.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereInput.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereUniqueInput.d.ts +9 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereUniqueInput.mjs +39 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableFilter.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableFilter.mjs +46 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableWithAggregatesFilter.d.ts +12 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableWithAggregatesFilter.mjs +69 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableFilter.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableFilter.mjs +46 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableWithAggregatesFilter.d.ts +12 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableWithAggregatesFilter.mjs +69 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableFilter.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableFilter.mjs +46 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableWithAggregatesFilter.d.ts +12 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableWithAggregatesFilter.mjs +69 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableFilter.d.ts +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableFilter.mjs +46 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableWithAggregatesFilter.d.ts +12 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableWithAggregatesFilter.mjs +69 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumDeskTypeFieldUpdateOperationsInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumDeskTypeFieldUpdateOperationsInput.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateActionFieldUpdateOperationsInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateActionFieldUpdateOperationsInput.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateMetricFieldUpdateOperationsInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateMetricFieldUpdateOperationsInput.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateRuleGroupFieldUpdateOperationsInput.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateRuleGroupFieldUpdateOperationsInput.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +23 -0
- package/esm/generated/typegraphql-prisma/resolvers/inputs/index.mjs +23 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AggregateAuditLog.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AggregateAuditLog.mjs +16 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogAvgAggregate.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogAvgAggregate.mjs +24 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogCountAggregate.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogCountAggregate.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogGroupBy.d.ts +6 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogGroupBy.mjs +30 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogMaxAggregate.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogMaxAggregate.mjs +15 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogMinAggregate.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogMinAggregate.mjs +15 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogSumAggregate.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/AuditLogSumAggregate.mjs +25 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAuditLog.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAuditLog.mjs +14 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnMandateRule.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnMandateRule.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleCountAggregate.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleCountAggregate.mjs +28 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleGroupBy.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleGroupBy.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMaxAggregate.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMaxAggregate.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMinAggregate.d.ts +4 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMinAggregate.mjs +31 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.mjs +7 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.d.ts +1 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.mjs +8 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/index.d.ts +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/outputs/index.mjs +2 -0
- package/esm/generated/typegraphql-prisma/resolvers/relations/MandateVersion/args/MandateVersionRulesArgs.d.ts +1 -1
- package/esm/generated/typegraphql-prisma/resolvers/relations/User/args/UserOwnedStrategiesArgs.d.ts +1 -1
- package/esm/middleware/__tests__/mutation-auth-guard.harness.mjs +12 -0
- package/esm/middleware/mutation-auth-guard.mjs +7 -0
- package/esm/tests/desk-attribution-roundtrip.harness.d.ts +13 -0
- package/esm/tests/desk-attribution-roundtrip.harness.mjs +132 -0
- package/generated/typeStrings/AuditLog.cjs +9 -0
- package/generated/typeStrings/AuditLog.d.ts +1 -1
- package/generated/typeStrings/MandateRule.cjs +58 -0
- package/generated/typeStrings/MandateRule.d.ts +1 -1
- package/generated/typeStrings/Strategy.cjs +13 -0
- package/generated/typeStrings/Strategy.d.ts +1 -1
- package/generated/typeStrings/index.d.ts +3 -3
- package/generated/typegraphql-prisma/enhance.cjs +92 -67
- package/generated/typegraphql-prisma/enums/AuditLogScalarFieldEnum.cjs +2 -0
- package/generated/typegraphql-prisma/enums/AuditLogScalarFieldEnum.d.ts +3 -1
- package/generated/typegraphql-prisma/enums/DeskType.cjs +49 -0
- package/generated/typegraphql-prisma/enums/DeskType.d.ts +7 -0
- package/generated/typegraphql-prisma/enums/MandateAction.cjs +50 -0
- package/generated/typegraphql-prisma/enums/MandateAction.d.ts +8 -0
- package/generated/typegraphql-prisma/enums/MandateMetric.cjs +62 -0
- package/generated/typegraphql-prisma/enums/MandateMetric.d.ts +20 -0
- package/generated/typegraphql-prisma/enums/MandateRuleGroup.cjs +49 -0
- package/generated/typegraphql-prisma/enums/MandateRuleGroup.d.ts +7 -0
- package/generated/typegraphql-prisma/enums/MandateRuleScalarFieldEnum.cjs +4 -0
- package/generated/typegraphql-prisma/enums/MandateRuleScalarFieldEnum.d.ts +4 -0
- package/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.cjs +1 -0
- package/generated/typegraphql-prisma/enums/StrategyScalarFieldEnum.d.ts +1 -0
- package/generated/typegraphql-prisma/enums/index.cjs +12 -4
- package/generated/typegraphql-prisma/enums/index.d.ts +4 -0
- package/generated/typegraphql-prisma/models/AuditLog.cjs +14 -0
- package/generated/typegraphql-prisma/models/AuditLog.d.ts +17 -0
- package/generated/typegraphql-prisma/models/MandateRule.cjs +31 -0
- package/generated/typegraphql-prisma/models/MandateRule.d.ts +24 -0
- package/generated/typegraphql-prisma/models/Strategy.cjs +8 -0
- package/generated/typegraphql-prisma/models/Strategy.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/FindFirstAuditLogArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/FindFirstAuditLogOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/FindManyAuditLogArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/AuditLog/args/GroupByAuditLogArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/FindFirstMandateRuleArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/FindFirstMandateRuleOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/FindManyMandateRuleArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/MandateRule/args/GroupByMandateRuleArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindFirstStrategyOrThrowArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/FindManyStrategyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/crud/Strategy/args/GroupByStrategyArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogAvgOrderByAggregateInput.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogAvgOrderByAggregateInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogCountOrderByAggregateInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogCountOrderByAggregateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateManyInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogCreateManyInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogMaxOrderByAggregateInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogMaxOrderByAggregateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogMinOrderByAggregateInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogMinOrderByAggregateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithAggregationInput.cjs +26 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithAggregationInput.d.ts +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithRelationInput.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogOrderByWithRelationInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogScalarWhereWithAggregatesInput.cjs +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogScalarWhereWithAggregatesInput.d.ts +3 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogSumOrderByAggregateInput.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogSumOrderByAggregateInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateManyMutationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogUpdateManyMutationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereInput.cjs +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereInput.d.ts +3 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereUniqueInput.cjs +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/AuditLogWhereUniqueInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableFilter.cjs +79 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableFilter.d.ts +8 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableWithAggregatesFilter.cjs +99 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumDeskTypeNullableWithAggregatesFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableFilter.cjs +79 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableFilter.d.ts +8 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableWithAggregatesFilter.cjs +99 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateActionNullableWithAggregatesFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableFilter.cjs +79 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableFilter.d.ts +8 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableWithAggregatesFilter.cjs +99 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateMetricNullableWithAggregatesFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableFilter.cjs +79 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableFilter.d.ts +8 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableWithAggregatesFilter.cjs +99 -0
- package/generated/typegraphql-prisma/resolvers/inputs/EnumMandateRuleGroupNullableWithAggregatesFilter.d.ts +13 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCountOrderByAggregateInput.cjs +24 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCountOrderByAggregateInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyMandateVersionInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateManyMandateVersionInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateWithoutMandateVersionInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleCreateWithoutMandateVersionInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMandateVersionIdRuleCodeCompoundUniqueInput.cjs +65 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMandateVersionIdRuleCodeCompoundUniqueInput.d.ts +5 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMaxOrderByAggregateInput.cjs +24 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMaxOrderByAggregateInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMinOrderByAggregateInput.cjs +24 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleMinOrderByAggregateInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithAggregationInput.cjs +24 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithAggregationInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithRelationInput.cjs +24 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleOrderByWithRelationInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereWithAggregatesInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleScalarWhereWithAggregatesInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateManyMutationInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateManyMutationInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateWithoutMandateVersionInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleUpdateWithoutMandateVersionInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereInput.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereInput.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereUniqueInput.cjs +34 -0
- package/generated/typegraphql-prisma/resolvers/inputs/MandateRuleWhereUniqueInput.d.ts +9 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableFilter.cjs +78 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableFilter.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableWithAggregatesFilter.cjs +98 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumDeskTypeNullableWithAggregatesFilter.d.ts +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableFilter.cjs +78 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableFilter.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableWithAggregatesFilter.cjs +98 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateActionNullableWithAggregatesFilter.d.ts +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableFilter.cjs +78 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableFilter.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableWithAggregatesFilter.cjs +98 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateMetricNullableWithAggregatesFilter.d.ts +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableFilter.cjs +78 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableFilter.d.ts +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableWithAggregatesFilter.cjs +98 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NestedEnumMandateRuleGroupNullableWithAggregatesFilter.d.ts +12 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumDeskTypeFieldUpdateOperationsInput.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumDeskTypeFieldUpdateOperationsInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateActionFieldUpdateOperationsInput.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateActionFieldUpdateOperationsInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateMetricFieldUpdateOperationsInput.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateMetricFieldUpdateOperationsInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateRuleGroupFieldUpdateOperationsInput.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/inputs/NullableEnumMandateRuleGroupFieldUpdateOperationsInput.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCountOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateManyOwnerInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutOwnerInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutSubscriptionsInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyCreateWithoutTradesInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMaxOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyMinOrderByAggregateInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithAggregationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyOrderByWithRelationInput.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyScalarWhereWithAggregatesInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateManyMutationInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutOwnerInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutSubscriptionsInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyUpdateWithoutTradesInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/inputs/StrategyWhereUniqueInput.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/inputs/index.cjs +112 -65
- package/generated/typegraphql-prisma/resolvers/inputs/index.d.ts +23 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AggregateAuditLog.cjs +14 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AggregateAuditLog.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogAvgAggregate.cjs +59 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogAvgAggregate.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogCountAggregate.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogCountAggregate.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogGroupBy.cjs +26 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogGroupBy.d.ts +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogMaxAggregate.cjs +13 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogMaxAggregate.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogMinAggregate.cjs +13 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogMinAggregate.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogSumAggregate.cjs +60 -0
- package/generated/typegraphql-prisma/resolvers/outputs/AuditLogSumAggregate.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAuditLog.cjs +12 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnAuditLog.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnMandateRule.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnMandateRule.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/outputs/CreateManyAndReturnStrategy.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleCountAggregate.cjs +24 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleCountAggregate.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleGroupBy.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleGroupBy.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMaxAggregate.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMaxAggregate.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMinAggregate.cjs +27 -0
- package/generated/typegraphql-prisma/resolvers/outputs/MandateRuleMinAggregate.d.ts +4 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.cjs +6 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyCountAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyGroupBy.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMaxAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.cjs +7 -0
- package/generated/typegraphql-prisma/resolvers/outputs/StrategyMinAggregate.d.ts +1 -0
- package/generated/typegraphql-prisma/resolvers/outputs/index.cjs +16 -12
- package/generated/typegraphql-prisma/resolvers/outputs/index.d.ts +2 -0
- package/generated/typegraphql-prisma/resolvers/relations/MandateVersion/args/MandateVersionRulesArgs.d.ts +1 -1
- package/generated/typegraphql-prisma/resolvers/relations/User/args/UserOwnedStrategiesArgs.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exercises the desk attribution and ledger fields through the generated
|
|
3
|
+
* GraphQL resolvers against a real Postgres built from the migration history:
|
|
4
|
+
* `Strategy.desk`, the `MandateRule` machine keys and their CHECK and unique
|
|
5
|
+
* constraints, and the `AuditLog` ledger sequence with a `before` page.
|
|
6
|
+
*
|
|
7
|
+
* Assembled like `desk-models-roundtrip.harness.ts` (the schema src/server.ts
|
|
8
|
+
* serves, executed with `graphql()` and a Prisma client in the context). Needs
|
|
9
|
+
* `DESK_IT_DATABASE_URL` pointing at a disposable migrated database. Output is
|
|
10
|
+
* printed between `<<<RESULTS>>>` and `<<<END>>>`; seeded rows are removed.
|
|
11
|
+
*/
|
|
12
|
+
import 'reflect-metadata';
|
|
13
|
+
import { randomUUID } from 'node:crypto';
|
|
14
|
+
import { PrismaClient } from '@prisma/client';
|
|
15
|
+
import { buildSchema } from 'type-graphql';
|
|
16
|
+
import { graphql } from 'graphql';
|
|
17
|
+
import { resolvers } from '../generated/typegraphql-prisma/index.mjs';
|
|
18
|
+
import { withoutServerOnlyResolvers, withoutServerOnlySchemaSurface, } from '../config/server-only-models.mjs';
|
|
19
|
+
async function run(schema, prisma, source, variableValues = {}) {
|
|
20
|
+
const result = await graphql({ schema, source, variableValues, contextValue: { prisma } });
|
|
21
|
+
return {
|
|
22
|
+
data: result.data ?? null,
|
|
23
|
+
errors: (result.errors ?? []).map((error) => error.message),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** A MandateRule create payload on a version, with overrides. */
|
|
27
|
+
function rule(versionId, overrides) {
|
|
28
|
+
return {
|
|
29
|
+
mandateVersion: { connect: { id: versionId } },
|
|
30
|
+
label: 'Gross',
|
|
31
|
+
detail: 'Gross leverage stays at or under 2.0x.',
|
|
32
|
+
...overrides,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
const CREATE_RULE = `mutation ($data: MandateRuleCreateInput!) {
|
|
36
|
+
createOneMandateRule(data: $data) { id ruleCode metricKey action group threshold }
|
|
37
|
+
}`;
|
|
38
|
+
const CREATE_AUDIT = `mutation ($data: AuditLogCreateInput!) {
|
|
39
|
+
createOneAuditLog(data: $data) { id fundId ledgerSeq }
|
|
40
|
+
}`;
|
|
41
|
+
async function main() {
|
|
42
|
+
const url = process.env.DESK_IT_DATABASE_URL;
|
|
43
|
+
if (!url)
|
|
44
|
+
throw new Error('DESK_IT_DATABASE_URL is not set');
|
|
45
|
+
const prisma = new PrismaClient({ datasourceUrl: url });
|
|
46
|
+
const schema = withoutServerOnlySchemaSurface(await buildSchema({ resolvers: withoutServerOnlyResolvers(resolvers), validate: false }));
|
|
47
|
+
const tag = randomUUID().slice(0, 8);
|
|
48
|
+
const fundId = randomUUID();
|
|
49
|
+
const org = await prisma.organization.create({
|
|
50
|
+
data: { name: `Desk attr ${tag}`, slug: `desk-attr-${tag}` },
|
|
51
|
+
});
|
|
52
|
+
const mandate = await prisma.mandate.create({
|
|
53
|
+
data: { klass: 'STRATEGY_CHARTER', name: `Charter ${tag}`, organizationId: org.id },
|
|
54
|
+
});
|
|
55
|
+
const v1 = await prisma.mandateVersion.create({
|
|
56
|
+
data: { mandateId: mandate.id, versionLabel: 'v1', versionSeq: 1 },
|
|
57
|
+
});
|
|
58
|
+
const v2 = await prisma.mandateVersion.create({
|
|
59
|
+
data: { mandateId: mandate.id, versionLabel: 'v2', versionSeq: 2 },
|
|
60
|
+
});
|
|
61
|
+
const steps = {};
|
|
62
|
+
try {
|
|
63
|
+
steps.strategyAssigned = await run(schema, prisma, `mutation ($data: StrategyCreateInput!) { createOneStrategy(data: $data) { id key desk } }`, { data: { key: `desk-attr-${tag}-a`, displayName: 'Assigned', desk: 'THEMATIC' } });
|
|
64
|
+
steps.strategyUnassigned = await run(schema, prisma, `mutation ($data: StrategyCreateInput!) { createOneStrategy(data: $data) { id key desk } }`, { data: { key: `desk-attr-${tag}-u`, displayName: 'Unassigned' } });
|
|
65
|
+
steps.strategiesOnDesk = await run(schema, prisma, `query ($prefix: String!) {
|
|
66
|
+
strategies(where: { key: { startsWith: $prefix }, desk: { equals: THEMATIC } }) { key desk }
|
|
67
|
+
}`, { prefix: `desk-attr-${tag}` });
|
|
68
|
+
steps.ruleMeasured = await run(schema, prisma, CREATE_RULE, {
|
|
69
|
+
data: rule(v1.id, {
|
|
70
|
+
ruleCode: 'R-01',
|
|
71
|
+
metricKey: 'GROSS_LEVERAGE',
|
|
72
|
+
action: 'BLOCK',
|
|
73
|
+
group: 'EXPOSURE',
|
|
74
|
+
threshold: 2,
|
|
75
|
+
limitKind: 'MAX',
|
|
76
|
+
}),
|
|
77
|
+
});
|
|
78
|
+
steps.ruleQualitative = await run(schema, prisma, CREATE_RULE, {
|
|
79
|
+
data: rule(v1.id, { label: 'Conduct', detail: 'No trading on material non-public information.' }),
|
|
80
|
+
});
|
|
81
|
+
steps.ruleMetricWithoutThreshold = await run(schema, prisma, CREATE_RULE, {
|
|
82
|
+
data: rule(v1.id, { ruleCode: 'R-02', metricKey: 'DRAWDOWN', action: 'HALT', group: 'LOSS' }),
|
|
83
|
+
});
|
|
84
|
+
steps.ruleMetricWithoutCode = await run(schema, prisma, CREATE_RULE, {
|
|
85
|
+
data: rule(v1.id, { metricKey: 'VAR_95', action: 'ESCALATE', group: 'LOSS', threshold: 18000 }),
|
|
86
|
+
});
|
|
87
|
+
steps.ruleBlankCode = await run(schema, prisma, CREATE_RULE, {
|
|
88
|
+
data: rule(v1.id, { ruleCode: ' ' }),
|
|
89
|
+
});
|
|
90
|
+
steps.ruleDuplicateCode = await run(schema, prisma, CREATE_RULE, {
|
|
91
|
+
data: rule(v1.id, { ruleCode: 'R-01' }),
|
|
92
|
+
});
|
|
93
|
+
steps.ruleSameCodeOtherVersion = await run(schema, prisma, CREATE_RULE, {
|
|
94
|
+
data: rule(v2.id, {
|
|
95
|
+
ruleCode: 'R-01',
|
|
96
|
+
metricKey: 'GROSS_LEVERAGE',
|
|
97
|
+
action: 'BLOCK',
|
|
98
|
+
group: 'EXPOSURE',
|
|
99
|
+
threshold: 1.5,
|
|
100
|
+
}),
|
|
101
|
+
});
|
|
102
|
+
const audit = (recordId) => ({
|
|
103
|
+
data: { operationType: 'UPDATE', modelName: 'Order', recordId, changedFields: {}, fundId },
|
|
104
|
+
});
|
|
105
|
+
steps.ledgerFirst = await run(schema, prisma, CREATE_AUDIT, audit(`${tag}-1`));
|
|
106
|
+
steps.ledgerSecond = await run(schema, prisma, CREATE_AUDIT, audit(`${tag}-2`));
|
|
107
|
+
steps.ledgerThird = await run(schema, prisma, CREATE_AUDIT, audit(`${tag}-3`));
|
|
108
|
+
steps.ledgerCallerSuppliedSeq = await run(schema, prisma, `mutation { createOneAuditLog(data: { operationType: UPDATE, modelName: "Order", recordId: "${tag}-x", changedFields: {}, ledgerSeq: 1 }) { id } }`);
|
|
109
|
+
const third = steps.ledgerThird.data
|
|
110
|
+
?.createOneAuditLog?.ledgerSeq;
|
|
111
|
+
steps.ledgerPageBefore = await run(schema, prisma, `query ($fundId: String!, $before: BigInt!) {
|
|
112
|
+
auditLogs(
|
|
113
|
+
where: { fundId: { equals: $fundId }, ledgerSeq: { lt: $before } }
|
|
114
|
+
orderBy: [{ ledgerSeq: { sort: desc } }]
|
|
115
|
+
take: 1
|
|
116
|
+
) { recordId ledgerSeq }
|
|
117
|
+
}`, { fundId, before: third });
|
|
118
|
+
}
|
|
119
|
+
finally {
|
|
120
|
+
await prisma.auditLog.deleteMany({ where: { recordId: { startsWith: tag } } });
|
|
121
|
+
await prisma.strategy.deleteMany({ where: { key: { startsWith: `desk-attr-${tag}` } } });
|
|
122
|
+
await prisma.mandate.delete({ where: { id: mandate.id } });
|
|
123
|
+
await prisma.organization.delete({ where: { id: org.id } });
|
|
124
|
+
await prisma.$disconnect();
|
|
125
|
+
}
|
|
126
|
+
process.stdout.write(`<<<RESULTS>>>${JSON.stringify({ tag, steps })}<<<END>>>\n`);
|
|
127
|
+
}
|
|
128
|
+
main().catch((error) => {
|
|
129
|
+
process.stderr.write(`harness failed: ${String(error)}\n`);
|
|
130
|
+
process.exit(1);
|
|
131
|
+
});
|
|
132
|
+
//# sourceMappingURL=desk-attribution-roundtrip.harness.js.map
|
|
@@ -14,6 +14,15 @@ export type AuditLog = {
|
|
|
14
14
|
changedFields: any;
|
|
15
15
|
// The GraphQL operation name that triggered the mutation, if available.
|
|
16
16
|
operationName?: string;
|
|
17
|
+
// Ledger position, assigned by the database from the \`audit_logs_ledger_seq\`
|
|
18
|
+
sequence on insert and never by a caller (omitted from the create and
|
|
19
|
+
update inputs). Strictly increasing across all rows, so increasing within
|
|
20
|
+
every fund, with gaps. Rows written before the ledger existed hold null:
|
|
21
|
+
numbering them would invent an order their timestamps do not establish.
|
|
22
|
+
The desk ledger id is \`L-<ledgerSeq>\`; a page before a cursor is
|
|
23
|
+
\`where: { fundId: { equals }, ledgerSeq: { lt } }\`, \`orderBy: [{ ledgerSeq: { sort: desc } }]\`.
|
|
24
|
+
@TypeGraphQL.omit(input: ["create", "update"])
|
|
25
|
+
ledgerSeq?: any;
|
|
17
26
|
};
|
|
18
27
|
|
|
19
28
|
enum AuditOperationType {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const AuditLogTypeString = "\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";
|
|
1
|
+
export declare const AuditLogTypeString = "\n// Your response should adhere to the following type definition for the \"AuditLog\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AuditLog = {\n // The type of mutation operation performed.\n operationType: AuditOperationType;\n // The name of the Prisma model that was mutated.\n modelName: string;\n // JSON snapshot of the fields that were changed. For creates: all fields. For updates: changed fields with before/after values. For deletes: all fields at time of deletion.\n changedFields: any;\n // The GraphQL operation name that triggered the mutation, if available.\n operationName?: string;\n // Ledger position, assigned by the database from the `audit_logs_ledger_seq`\nsequence on insert and never by a caller (omitted from the create and\nupdate inputs). Strictly increasing across all rows, so increasing within\nevery fund, with gaps. Rows written before the ledger existed hold null:\nnumbering them would invent an order their timestamps do not establish.\nThe desk ledger id is `L-<ledgerSeq>`; a page before a cursor is\n`where: { fundId: { equals }, ledgerSeq: { lt } }`, `orderBy: [{ ledgerSeq: { sort: desc } }]`.\n@TypeGraphQL.omit(input: [\"create\", \"update\"])\n ledgerSeq?: any;\n};\n\nenum AuditOperationType {\n CREATE\n\n UPDATE\n\n DELETE\n}\n\n";
|
|
2
2
|
//# sourceMappingURL=AuditLog.d.ts.map
|
|
@@ -23,6 +23,22 @@ export type MandateRule = {
|
|
|
23
23
|
unit?: string;
|
|
24
24
|
// Direction/nature of the threshold (MAX/MIN/TARGET/TRIGGER); platform MandateRule.limitKind. Null for qualitative clauses.
|
|
25
25
|
limitKind?: MandateLimitKind;
|
|
26
|
+
// Stable code naming this rule within its version (e.g. \`R-01\`, \`R-01b\`); the
|
|
27
|
+
desk's limit gauges and the ledger cite it. Unique per mandate version.
|
|
28
|
+
Null for a clause no gauge or ledger entry cites.
|
|
29
|
+
ruleCode?: string;
|
|
30
|
+
// The quantity the engine measures against \`threshold\`. Null for a
|
|
31
|
+
qualitative clause, which no gauge can show. A rule naming a metric must
|
|
32
|
+
also carry \`threshold\`, \`action\`, \`group\` and \`ruleCode\` (database CHECK
|
|
33
|
+
\`mandate_rules_metric_complete_check\`), because a limit gauge needs every
|
|
34
|
+
one of them.
|
|
35
|
+
metricKey?: MandateMetric;
|
|
36
|
+
// What the engine does when the measured quantity crosses \`threshold\`. Null
|
|
37
|
+
for a qualitative clause.
|
|
38
|
+
action?: MandateAction;
|
|
39
|
+
// The gauge group this rule is shown under on the desk. Null for a
|
|
40
|
+
qualitative clause.
|
|
41
|
+
group?: MandateRuleGroup;
|
|
26
42
|
};
|
|
27
43
|
|
|
28
44
|
enum MandateControlGate {
|
|
@@ -47,5 +63,47 @@ enum MandateLimitKind {
|
|
|
47
63
|
TRIGGER
|
|
48
64
|
}
|
|
49
65
|
|
|
66
|
+
enum MandateMetric {
|
|
67
|
+
GROSS_LEVERAGE
|
|
68
|
+
|
|
69
|
+
NET_EXPOSURE_RATIO
|
|
70
|
+
|
|
71
|
+
SINGLE_NAME_CONCENTRATION
|
|
72
|
+
|
|
73
|
+
MAX_SECTOR_CONCENTRATION
|
|
74
|
+
|
|
75
|
+
DAILY_LOSS
|
|
76
|
+
|
|
77
|
+
DRAWDOWN
|
|
78
|
+
|
|
79
|
+
VAR_95
|
|
80
|
+
|
|
81
|
+
VAR_99
|
|
82
|
+
|
|
83
|
+
EXPECTED_SHORTFALL_95
|
|
84
|
+
|
|
85
|
+
MARGIN_UTILIZATION
|
|
86
|
+
|
|
87
|
+
OPEN_POSITIONS
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
enum MandateAction {
|
|
91
|
+
BLOCK
|
|
92
|
+
|
|
93
|
+
ESCALATE
|
|
94
|
+
|
|
95
|
+
HALT
|
|
96
|
+
|
|
97
|
+
DERISK
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
enum MandateRuleGroup {
|
|
101
|
+
EXPOSURE
|
|
102
|
+
|
|
103
|
+
LOSS
|
|
104
|
+
|
|
105
|
+
LIQUIDITY
|
|
106
|
+
}
|
|
107
|
+
|
|
50
108
|
`;
|
|
51
109
|
//# sourceMappingURL=MandateRule.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const MandateRuleTypeString = "\n// Your response should adhere to the following type definition for the \"MandateRule\" 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 MandateRule = {\n // Relation to the parent MandateVersion.\n mandateVersion: {\n // Human-readable version label (e.g. 'v1', 'v2.1', '2026-Q3').\n versionLabel: string;\n };\n // Short label identifying the clause (platform MandateRule.label).\n label: string;\n // Human-readable clause text (platform MandateRule.detail).\n detail: string;\n // Control gate this clause imposes (platform MandateRule.control / GovActType).\n control: MandateControlGate;\n // Numeric threshold for the clause, if quantitative (platform MandateRule.threshold). Null for qualitative clauses.\n threshold?: number;\n // Unit of the threshold (e.g. '%', 'bps', 'USD', 'positions'); platform MandateRule.unit.\n unit?: string;\n // Direction/nature of the threshold (MAX/MIN/TARGET/TRIGGER); platform MandateRule.limitKind. Null for qualitative clauses.\n limitKind?: MandateLimitKind;\n};\n\nenum MandateControlGate {\n AUTO\n\n NOTIFY\n\n APPROVAL\n\n PROPOSE\n\n HUMAN\n}\n\nenum MandateLimitKind {\n MAX\n\n MIN\n\n TARGET\n\n TRIGGER\n}\n\n";
|
|
1
|
+
export declare const MandateRuleTypeString = "\n// Your response should adhere to the following type definition for the \"MandateRule\" 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 MandateRule = {\n // Relation to the parent MandateVersion.\n mandateVersion: {\n // Human-readable version label (e.g. 'v1', 'v2.1', '2026-Q3').\n versionLabel: string;\n };\n // Short label identifying the clause (platform MandateRule.label).\n label: string;\n // Human-readable clause text (platform MandateRule.detail).\n detail: string;\n // Control gate this clause imposes (platform MandateRule.control / GovActType).\n control: MandateControlGate;\n // Numeric threshold for the clause, if quantitative (platform MandateRule.threshold). Null for qualitative clauses.\n threshold?: number;\n // Unit of the threshold (e.g. '%', 'bps', 'USD', 'positions'); platform MandateRule.unit.\n unit?: string;\n // Direction/nature of the threshold (MAX/MIN/TARGET/TRIGGER); platform MandateRule.limitKind. Null for qualitative clauses.\n limitKind?: MandateLimitKind;\n // Stable code naming this rule within its version (e.g. `R-01`, `R-01b`); the\ndesk's limit gauges and the ledger cite it. Unique per mandate version.\nNull for a clause no gauge or ledger entry cites.\n ruleCode?: string;\n // The quantity the engine measures against `threshold`. Null for a\nqualitative clause, which no gauge can show. A rule naming a metric must\nalso carry `threshold`, `action`, `group` and `ruleCode` (database CHECK\n`mandate_rules_metric_complete_check`), because a limit gauge needs every\none of them.\n metricKey?: MandateMetric;\n // What the engine does when the measured quantity crosses `threshold`. Null\nfor a qualitative clause.\n action?: MandateAction;\n // The gauge group this rule is shown under on the desk. Null for a\nqualitative clause.\n group?: MandateRuleGroup;\n};\n\nenum MandateControlGate {\n AUTO\n\n NOTIFY\n\n APPROVAL\n\n PROPOSE\n\n HUMAN\n}\n\nenum MandateLimitKind {\n MAX\n\n MIN\n\n TARGET\n\n TRIGGER\n}\n\nenum MandateMetric {\n GROSS_LEVERAGE\n\n NET_EXPOSURE_RATIO\n\n SINGLE_NAME_CONCENTRATION\n\n MAX_SECTOR_CONCENTRATION\n\n DAILY_LOSS\n\n DRAWDOWN\n\n VAR_95\n\n VAR_99\n\n EXPECTED_SHORTFALL_95\n\n MARGIN_UTILIZATION\n\n OPEN_POSITIONS\n}\n\nenum MandateAction {\n BLOCK\n\n ESCALATE\n\n HALT\n\n DERISK\n}\n\nenum MandateRuleGroup {\n EXPOSURE\n\n LOSS\n\n LIQUIDITY\n}\n\n";
|
|
2
2
|
//# sourceMappingURL=MandateRule.d.ts.map
|
|
@@ -31,6 +31,11 @@ signal: \`{ hypothesis, inputs[], formula, universe, neutralise { sector, beta,
|
|
|
31
31
|
size }, allocationPct, paperSessions, promotionGate }\`. NULL means no draft
|
|
32
32
|
has been authored.
|
|
33
33
|
spec?: any;
|
|
34
|
+
// The agent desk this strategy trades under. NULL means no operator has
|
|
35
|
+
assigned it yet: a strategy is never placed on a desk by default, because
|
|
36
|
+
the desk decides which autonomy matrix governs its orders and which desk's
|
|
37
|
+
metrics its fills count toward.
|
|
38
|
+
desk?: DeskType;
|
|
34
39
|
};
|
|
35
40
|
|
|
36
41
|
enum StrategyOrigin {
|
|
@@ -59,5 +64,13 @@ enum StrategyKind {
|
|
|
59
64
|
signal
|
|
60
65
|
}
|
|
61
66
|
|
|
67
|
+
enum DeskType {
|
|
68
|
+
EVENT
|
|
69
|
+
|
|
70
|
+
THEMATIC
|
|
71
|
+
|
|
72
|
+
SYSTEMATIC
|
|
73
|
+
}
|
|
74
|
+
|
|
62
75
|
`;
|
|
63
76
|
//# sourceMappingURL=Strategy.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StrategyTypeString = "\n// Your response should adhere to the following type definition for the \"Strategy\" 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 Strategy = {\n // Stable machine key, e.g. \"core-equity-llm-v1\". Matches the engine Tier A\n`StrategyRegistryEntry.key` column type exactly.\n key: string;\n // Operator/user-facing name.\n displayName: string;\n // Human-readable description of what the strategy does.\n description?: string;\n // Where the definition came from.\n origin: StrategyOrigin;\n // Lifecycle stage. New rows default to DRAFT so a strategy is never\nrecorded as live merely by virtue of existing.\n lifecycleState: StrategyLifecycleState;\n // SHA-256 (hex) of the canonical JSON manifest describing what this\nstrategy runs (prompt id, feature view, exit tiers). NULL means no\nmanifest is bound yet \u2014 it is genuinely unknown, never a placeholder.\n manifestHash?: string;\n // Authoring kind: a thematic basket or a signal strategy. NULL for strategies\nthat predate desk authoring.\n kind?: StrategyKind;\n // Authored specification (JSON). Thematic: `{ thesis, horizon, constituents[],\nweighting, allocationPct, maxNamePct, rebalance, exitRule, benchmark }`;\nsignal: `{ hypothesis, inputs[], formula, universe, neutralise { sector, beta,\nsize }, allocationPct, paperSessions, promotionGate }`. NULL means no draft\nhas been authored.\n spec?: any;\n};\n\nenum StrategyOrigin {\n SYSTEM\n\n USER\n\n AI_GENERATED\n}\n\nenum StrategyLifecycleState {\n DRAFT\n\n SHADOW\n\n ACTIVE\n\n PAUSED\n\n RETIRED\n}\n\nenum StrategyKind {\n thematic\n\n signal\n}\n\n";
|
|
1
|
+
export declare const StrategyTypeString = "\n// Your response should adhere to the following type definition for the \"Strategy\" 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 Strategy = {\n // Stable machine key, e.g. \"core-equity-llm-v1\". Matches the engine Tier A\n`StrategyRegistryEntry.key` column type exactly.\n key: string;\n // Operator/user-facing name.\n displayName: string;\n // Human-readable description of what the strategy does.\n description?: string;\n // Where the definition came from.\n origin: StrategyOrigin;\n // Lifecycle stage. New rows default to DRAFT so a strategy is never\nrecorded as live merely by virtue of existing.\n lifecycleState: StrategyLifecycleState;\n // SHA-256 (hex) of the canonical JSON manifest describing what this\nstrategy runs (prompt id, feature view, exit tiers). NULL means no\nmanifest is bound yet \u2014 it is genuinely unknown, never a placeholder.\n manifestHash?: string;\n // Authoring kind: a thematic basket or a signal strategy. NULL for strategies\nthat predate desk authoring.\n kind?: StrategyKind;\n // Authored specification (JSON). Thematic: `{ thesis, horizon, constituents[],\nweighting, allocationPct, maxNamePct, rebalance, exitRule, benchmark }`;\nsignal: `{ hypothesis, inputs[], formula, universe, neutralise { sector, beta,\nsize }, allocationPct, paperSessions, promotionGate }`. NULL means no draft\nhas been authored.\n spec?: any;\n // The agent desk this strategy trades under. NULL means no operator has\nassigned it yet: a strategy is never placed on a desk by default, because\nthe desk decides which autonomy matrix governs its orders and which desk's\nmetrics its fills count toward.\n desk?: DeskType;\n};\n\nenum StrategyOrigin {\n SYSTEM\n\n USER\n\n AI_GENERATED\n}\n\nenum StrategyLifecycleState {\n DRAFT\n\n SHADOW\n\n ACTIVE\n\n PAUSED\n\n RETIRED\n}\n\nenum StrategyKind {\n thematic\n\n signal\n}\n\nenum DeskType {\n EVENT\n\n THEMATIC\n\n SYSTEMATIC\n}\n\n";
|
|
2
2
|
//# sourceMappingURL=Strategy.d.ts.map
|
|
@@ -55,7 +55,7 @@ export declare const typeStrings: {
|
|
|
55
55
|
readonly tradeExecutionHistory: "\n// Your response should adhere to the following type definition for the \"TradeExecutionHistory\" 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 TradeExecutionHistory = {\n // Ticker symbol that was traded\n ticker: string;\n // Trade action (BUY, SELL, BUY_TO_OPEN, SELL_TO_CLOSE, etc.)\n action: ActionType;\n // Execution timestamp\n timestamp: Date;\n // JSON array of account IDs that executed this trade\n accounts: any;\n // Expiration timestamp for automatic cleanup (24h TTL)\n expiresAt: Date;\n};\n\nenum ActionType {\n BUY\n\n BUY_OPTION\n\n EXERCISE_OPTION\n\n SELL\n\n CANCEL\n\n ADJUST\n\n HEDGE\n}\n\n";
|
|
56
56
|
readonly waitlistEntry: "\n// Your response should adhere to the following type definition for the \"WaitlistEntry\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type WaitlistEntry = {\n // The email address of the person on the waitlist.\n email: string;\n // The full name of the person on the waitlist.\n fullName: string;\n // The company name of the person on the waitlist.\n companyName: string;\n // The company website URL (optional).\n companyWebsite?: string;\n // The job role/title of the person on the waitlist.\n jobRole: string;\n // Whether the person has confirmed they are a professional investor.\n professionalInvestorConfirmed: boolean;\n // The current status of the waitlist entry.\n status: WaitlistStatus;\n // The position in the waitlist queue.\n queuePosition: number;\n};\n\nenum WaitlistStatus {\n PENDING\n\n APPROVED\n\n REJECTED\n}\n\n";
|
|
57
57
|
readonly inviteToken: "\n// Your response should adhere to the following type definition for the \"InviteToken\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type InviteToken = {\n // The unique token string used for invitation.\n token: string;\n // The email address the token was generated for.\n email: string;\n // Whether the token has been used.\n used: boolean;\n};\n\n";
|
|
58
|
-
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 auditLog: "\n// Your response should adhere to the following type definition for the \"AuditLog\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AuditLog = {\n // The type of mutation operation performed.\n operationType: AuditOperationType;\n // The name of the Prisma model that was mutated.\n modelName: string;\n // JSON snapshot of the fields that were changed. For creates: all fields. For updates: changed fields with before/after values. For deletes: all fields at time of deletion.\n changedFields: any;\n // The GraphQL operation name that triggered the mutation, if available.\n operationName?: string;\n // Ledger position, assigned by the database from the `audit_logs_ledger_seq`\nsequence on insert and never by a caller (omitted from the create and\nupdate inputs). Strictly increasing across all rows, so increasing within\nevery fund, with gaps. Rows written before the ledger existed hold null:\nnumbering them would invent an order their timestamps do not establish.\nThe desk ledger id is `L-<ledgerSeq>`; a page before a cursor is\n`where: { fundId: { equals }, ledgerSeq: { lt } }`, `orderBy: [{ ledgerSeq: { sort: desc } }]`.\n@TypeGraphQL.omit(input: [\"create\", \"update\"])\n ledgerSeq?: any;\n};\n\nenum AuditOperationType {\n CREATE\n\n UPDATE\n\n DELETE\n}\n\n";
|
|
59
59
|
readonly tradingPolicy: "\n// Your response should adhere to the following type definition for the \"TradingPolicy\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type TradingPolicy = {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities — minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: {\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n }[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n\n DEEPINFRA\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\n";
|
|
60
60
|
readonly policyOverlay: "\n// Your response should adhere to the following type definition for the \"PolicyOverlay\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type PolicyOverlay = {\n // Relation to TradingPolicy.\n tradingPolicy: {\n // Relation to AlpacaAccount.\n alpacaAccount: {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n };\n version: number;\n lastModifiedBy?: string;\n lastModifiedAt: Date;\n autonomyMode: AutonomyMode;\n realtimeTradingEnabled: boolean;\n paperTradingOnly: boolean;\n killSwitchEnabled: boolean;\n autonomyPrefs?: any;\n equitiesEnabled: boolean;\n etfsEnabled: boolean;\n cryptoEnabled: boolean;\n optionsEnabled: boolean;\n futuresEnabled: boolean;\n forexEnabled: boolean;\n shortingEnabled: boolean;\n marginEnabled: boolean;\n fractionalSharesEnabled: boolean;\n assetUniversePrefs?: any;\n maxBuyingPowerUtilPct: number;\n cashFloorPct: number;\n maxGrossExposurePct: number;\n maxNetExposurePct: number;\n maxLeverage: number;\n maxSymbolConcentrationPct: number;\n maxSectorConcentrationPct: number;\n maxOpenPositions: number;\n maxOpenOrders: number;\n // Percentage of account equity (with leverage) allocated per equities trade. Canonical replacement for legacy AlpacaAccount.tradeAllocationPct.\n perTradeEquityAllocationPct: number;\n // Percentage of the crypto allocation slice of account equity allocated per crypto trade. Canonical replacement for legacy AlpacaAccount.cryptoTradeAllocationPct.\n perTradeCryptoAllocationPct: number;\n // Opt-in for enabling the portfolio-level trailing stop service within Adaptic's Realtime Trade Engine. Canonical replacement for legacy AlpacaAccount.enablePortfolioTrailingStop.\n enablePortfolioTrailingStop: boolean;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioTrailPercent.\n portfolioTrailPercent: number;\n // Portfolio-level profit threshold percentage used by the Realtime Trade Engine, if opted into the portfolio-level trailing stop service. Canonical replacement for legacy AlpacaAccount.portfolioProfitThresholdPercent.\n portfolioProfitThresholdPercent: number;\n // Portfolio-level trailing stop percentage used by the Realtime Trade Engine for reducing the trailing stop once the profit threshold is exceeded. Canonical replacement for legacy AlpacaAccount.reducedPortfolioTrailPercent.\n reducedPortfolioTrailPercent: number;\n // Ordered ladder of portfolio trailing-stop rungs, generalising the single\nportfolioProfitThresholdPercent/reducedPortfolioTrailPercent pair above.\nShape: [{ \"thresholdPercent\": 0.35, \"trailPercent\": 0.25 }, ...] in WHOLE\nPERCENT of the session's opening equity (0.35 = 35bp), ordered ascending by\nthreshold. The engine applies min() across every rung whose threshold the\nsession high-water mark has reached, so the trail tightens monotonically and\na mis-ordered or wider rung can never loosen a stop that has already\ntightened. NULL = use the single legacy rung, which reproduces today's\nbehaviour exactly.\n portfolioTrailRungs?: any;\n // Local ET time (\"HH:MM\", 24h) at which the portfolio trailing-stop state\nre-anchors for a SECOND intraday round: open equity re-seeds from that\ntick, the high-water mark resets to zero and the trail returns to base.\nIntended for an afternoon session traded with freshly entered positions.\nNULL = single round per day, which is today's behaviour.\n portfolioAfternoonResetEt?: string;\n // Rung ladder for the afternoon round, same shape as portfolioTrailRungs.\nThe afternoon window is materially shorter than the morning, so the\nthresholds that are reachable within it differ and must be set from the\nafternoon's own distribution rather than inherited. NULL = reuse\nportfolioTrailRungs for the second round.\n portfolioAfternoonTrailRungs?: any;\n // Whether the portfolio-level daily take-profit circuit breaker is enabled for this account.\n enablePortfolioTakeProfit?: boolean;\n // Daily gain target (whole percent, e.g. 1 = 1%) since the 09:30 open that trips the take-profit breaker.\n portfolioTakeProfitThresholdPercent?: number;\n // Initial trailing stop percentage used by the Position Trailing Stop Service. Canonical replacement for legacy AlpacaAccount.defaultTrailingStopPercentage100.\n defaultTrailingStopPercentage100: number;\n // First profit threshold at which the Position Trailing Stop Service reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.firstTrailReductionThreshold100.\n firstTrailReductionThreshold100: number;\n // Second profit threshold at which the Position Trailing Stop Service further reduces the trailing stop. Canonical replacement for legacy AlpacaAccount.secondTrailReductionThreshold100.\n secondTrailReductionThreshold100: number;\n // Trailing stop percentage to use when profit exceeds the first threshold. Canonical replacement for legacy AlpacaAccount.firstReducedTrailPercentage100.\n firstReducedTrailPercentage100: number;\n // Trailing stop percentage to use when profit exceeds the second threshold. Canonical replacement for legacy AlpacaAccount.secondReducedTrailPercentage100.\n secondReducedTrailPercentage100: number;\n // Minimum change in trailing stop percent to warrant an adjustment. Canonical replacement for legacy AlpacaAccount.minimumPriceChangePercent100.\n minimumPriceChangePercent100: number;\n // Wash-trade cooldown period in milliseconds for equities — minimum elapsed time between opposing-side fills on the same symbol per FINRA Rule 5210. Mirrors the 30s default already enforced for crypto. Default: 30000 (30 seconds).\n equityWashTradeCooldownMs: number;\n // Minimum intraday liquidity threshold (shares traded in last 5 min). Required for scalping. Default: 10000 (10k shares in last 5 min).\n minIntradayLiquidityShares: number;\n // Maximum spread in basis points (1/100ths of 1%) to allow entry. Scalping requires tight spreads; use 1-3 bps. Default: 5 (0.05%).\n maxEntrySpreadBps: number;\n // Minimum time between same-symbol same-side entries (ms). FINRA Rule 5210 requires 30s for opposite-side trades; this controls same-side rapid re-entry. Default: 5000 (5 seconds) for scalping; 30000 for normal trading.\n sameSideReentryDelayMs: number;\n // Volatility filter: only trade if ATR(14) >= minAtrPercentage. Scalping needs moderate volatility; too low = no edge. Default: 0.3 (0.3%).\n minAtrPercentage: number;\n // Volatility filter: only trade if ATR(14) <= maxAtrPercentage. Scalping needs moderate volatility; too high = whipsaws. Default: 2.0 (2.0%).\n maxAtrPercentage: number;\n // Order book depth requirement: minimum shares at best bid/ask to qualify for entry. Scalping needs guaranteed liquidity. Default: 5000 shares.\n minBookDepthShares: number;\n // Maximum market order slippage in basis points before flagging as anomaly. Helps detect liquidity crunches. Default: 10 bps.\n maxAnomalousSlippageBps: number;\n // Intraday session windows allowed (JSON array). Format: [{ startMinutesFromOpen, endMinutesFromOpen, active }]. Example: skip first 5 min and last 10 min of RTH.\n intradayTradingWindows?: any;\n // Hard position exit clock (minutes from entry). 0 = disabled. Forces liquidation regardless of signal. Useful for strict day-trading discipline. Default: 0.\n hardPositionExitMinutes: number;\n // Rapid-fire order-rate limit: max orders within orderWindowSeconds. Default: 10 orders per 5 seconds.\n maxOrdersPerWindow: number;\n // Window size for maxOrdersPerWindow rate limit (seconds). Default: 5.\n orderWindowSeconds: number;\n // Enforce intraday-only trading (auto-close all positions before EOD). Default: false.\n dayTradeOnly: boolean;\n riskBudgetPrefs?: any;\n signalConsumptionPrefs?: any;\n executionPrefs?: any;\n positionManagementPrefs?: any;\n portfolioConstructionPrefs?: any;\n macroOverlayEnabled: boolean;\n sectorOverlayEnabled: boolean;\n volatilityOverlayEnabled: boolean;\n liquidityStressOverlayEnabled: boolean;\n blackSwanProtectionEnabled: boolean;\n drawdownGuardianEnabled: boolean;\n correlationSpikeProtectionEnabled: boolean;\n newsEventRiskOverlayEnabled: boolean;\n exchangeHealthOverlayEnabled: boolean;\n dataQualitySentinelEnabled: boolean;\n overlayResponsePrefs?: any;\n miniModelProvider?: LlmProvider;\n normalModelProvider?: LlmProvider;\n advancedModelProvider?: LlmProvider;\n modelPrefs?: any;\n auditNotificationPrefs?: any;\n // List of policy overlays.\n overlays: PolicyOverlay[];\n escalationPolicyOverrides?: any;\n currentRiskState: AccountRiskState;\n currentRiskStateAt?: Date;\n lastRiskStateChangedBy?: string;\n };\n overlayType: OverlayType;\n source: string;\n reason: string;\n severity: OverlaySeverity;\n version: number;\n mutations: any;\n status: OverlayStatus;\n activatedAt: Date;\n expiresAt?: Date;\n deactivatedAt?: Date;\n deactivatedBy?: string;\n};\n\nenum AlpacaAccountType {\n PAPER\n\n LIVE\n}\n\nenum AutonomyMode {\n ADVISORY_ONLY\n\n EXECUTION_ON_APPROVAL\n\n SEMI_AUTONOMOUS\n\n FULLY_AUTONOMOUS\n\n EMERGENCY_SAFE_MODE\n}\n\nenum LlmProvider {\n OPENAI\n\n ANTHROPIC\n\n DEEPSEEK\n\n KIMI\n\n QWEN\n\n XAI\n\n GEMINI\n\n DEEPINFRA\n}\n\nenum AccountRiskState {\n NORMAL\n\n WARN\n\n THROTTLE\n\n PAUSED\n\n FLATTEN\n\n HALT\n}\n\nenum OverlayType {\n BLACK_SWAN\n\n VOLATILITY_REGIME\n\n SECTOR_DETERIORATION\n\n DRAWDOWN_BREACH\n\n CORRELATION_SPIKE\n\n LIQUIDITY_STRESS\n\n EXCHANGE_DEGRADATION\n\n DATA_QUALITY\n\n NEWS_EVENT_RISK\n\n RATES_BONDS_STRESS\n\n MANUAL_OVERRIDE\n\n INCIDENT_RESPONSE\n}\n\nenum OverlaySeverity {\n LOW\n\n MEDIUM\n\n HIGH\n\n CRITICAL\n}\n\nenum OverlayStatus {\n ACTIVE\n\n EXPIRED\n\n DEACTIVATED\n\n SUPERSEDED\n}\n\n";
|
|
61
61
|
readonly accountDecisionRecord: "\n// Your response should adhere to the following type definition for the \"AccountDecisionRecord\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AccountDecisionRecord = {\n symbol: string;\n assetClass: string;\n signalAction: string;\n signalConfidence: number;\n decision: DecisionOutcome;\n decisionRationale?: string;\n decisionConfidence?: number;\n actionIntents?: any;\n validationResults?: any;\n executionResults?: any;\n effectivePolicySnapshot: any;\n positionsSnapshot?: any;\n openOrdersSnapshot?: any;\n exposureSnapshot?: any;\n overlaysSnapshot?: any;\n modelProvider: string;\n modelTier: string;\n routingReason?: string;\n tokenUsage?: any;\n sessionDurationMs?: number;\n gatingDurationMs?: number;\n validationDurationMs?: number;\n executionDurationMs?: number;\n status: DecisionRecordStatus;\n};\n\nenum DecisionOutcome {\n DO_NOTHING\n\n OPEN_POSITION\n\n ADD_TO_POSITION\n\n REDUCE_POSITION\n\n CLOSE_POSITION\n\n REVERSE_POSITION\n\n MODIFY_ORDERS\n\n CANCEL_ORDERS\n\n REBALANCE\n\n MUTATE_POLICY\n\n ESCALATE_FOR_APPROVAL\n\n SKIP_INELIGIBLE\n}\n\nenum DecisionRecordStatus {\n PENDING\n\n EXECUTING\n\n COMPLETED\n\n FAILED\n\n CANCELLED\n\n ESCALATED\n}\n\n";
|
|
@@ -81,9 +81,9 @@ export declare const typeStrings: {
|
|
|
81
81
|
readonly taxDocument: "\n// Your response should adhere to the following type definition for the \"TaxDocument\" 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 TaxDocument = {\n // Relation to the Fund.\n fund?: {\n // Fund display name.\n name: string;\n };\n // Tax year the document covers.\n taxYear: number;\n // Category of the tax form.\n formType: TaxDocumentType;\n // Availability state of the tax document.\n status: TaxDocumentStatus;\n // Publicly resolvable URL for the document (may be a signed URL).\n url?: string;\n // Timestamp when the document was issued to the investor.\n issuedAt?: Date;\n};\n\nenum TaxDocumentType {\n K1\n\n FORM_1099\n\n FORM_1042S\n\n FORM_8949\n\n ANNUAL_SUMMARY\n\n OTHER\n}\n\nenum TaxDocumentStatus {\n PENDING\n\n AVAILABLE\n\n AMENDED\n\n SUPERSEDED\n}\n\n";
|
|
82
82
|
readonly mandate: "\n// Your response should adhere to the following type definition for the \"Mandate\" 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 Mandate = {\n // Whether this mandate is scoped to the whole organization or to a single fund.\n scopeKind: MandateScopeKind;\n // Category of the mandate (strategy charter, firm ethos, approval matrix, risk policy, SOP).\n klass: MandateClass;\n // Human-readable mandate name.\n name: string;\n // Persona this mandate primarily applies to ('portfolio_manager' | 'fund_operator' | 'compliance_officer' | …); lowercase String to match the platform contract. Null = firm-wide / all personas.\n personaScope?: string;\n // Relation to the owning Organization.\n organization: {\n // Organization display name.\n name: string;\n // URL-safe unique slug identifying the organization.\n slug: string;\n };\n // Relation to the scoped Fund (present only when scopeKind = FUND).\n fund?: {\n // Fund display name.\n name: string;\n // URL-safe slug, unique within the owning organization.\n slug: string;\n };\n // Relation to the owning User.\n owner?: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n };\n};\n\nenum MandateScopeKind {\n ORGANIZATION\n\n FUND\n}\n\nenum MandateClass {\n STRATEGY_CHARTER\n\n FIRM_ETHOS\n\n APPROVAL_MATRIX\n\n RISK_POLICY\n\n SOP\n}\n\n";
|
|
83
83
|
readonly mandateVersion: "\n// Your response should adhere to the following type definition for the \"MandateVersion\" 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 MandateVersion = {\n // Relation to the parent Mandate.\n mandate: {\n // Human-readable mandate name.\n name: string;\n // Category of the mandate (strategy charter, firm ethos, approval matrix, risk policy, SOP).\n klass: MandateClass;\n };\n // Human-readable version label (e.g. 'v1', 'v2.1', '2026-Q3').\n versionLabel: string;\n // Monotonic version sequence within the mandate (1, 2, 3, …); orders the version history.\n versionSeq: number;\n // Lifecycle state of this version.\n status: MandateStatus;\n // Short human summary of what this version establishes or changes.\n summary?: string;\n // Autonomy matrix: desk → action → size bucket (four buckets) → 'auto' | 'notify' | 'approve' | 'forbidden' (JSON). Null means the version sets none.\n autonomy?: any;\n // Escalation triggers: `{ id, label, condition, route, deadlineMinutes | null, defaultAction, enabled }[]` (JSON). Null means none are set.\n triggers?: any;\n // Instrument permissions: `{ id, label, enabled }[]` (JSON). Null means none are set.\n instruments?: any;\n // Excluded symbols, sectors or issuers named by this version. Empty means no exclusions.\n exclusions: string[];\n // Relation to the authoring User.\n authoredBy?: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n };\n};\n\nenum MandateClass {\n STRATEGY_CHARTER\n\n FIRM_ETHOS\n\n APPROVAL_MATRIX\n\n RISK_POLICY\n\n SOP\n}\n\nenum MandateStatus {\n DRAFTED\n\n PROPOSED\n\n APPROVED\n\n SUPERSEDED\n\n ARCHIVED\n}\n\n";
|
|
84
|
-
readonly mandateRule: "\n// Your response should adhere to the following type definition for the \"MandateRule\" 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 MandateRule = {\n // Relation to the parent MandateVersion.\n mandateVersion: {\n // Human-readable version label (e.g. 'v1', 'v2.1', '2026-Q3').\n versionLabel: string;\n };\n // Short label identifying the clause (platform MandateRule.label).\n label: string;\n // Human-readable clause text (platform MandateRule.detail).\n detail: string;\n // Control gate this clause imposes (platform MandateRule.control / GovActType).\n control: MandateControlGate;\n // Numeric threshold for the clause, if quantitative (platform MandateRule.threshold). Null for qualitative clauses.\n threshold?: number;\n // Unit of the threshold (e.g. '%', 'bps', 'USD', 'positions'); platform MandateRule.unit.\n unit?: string;\n // Direction/nature of the threshold (MAX/MIN/TARGET/TRIGGER); platform MandateRule.limitKind. Null for qualitative clauses.\n limitKind?: MandateLimitKind;\n};\n\nenum MandateControlGate {\n AUTO\n\n NOTIFY\n\n APPROVAL\n\n PROPOSE\n\n HUMAN\n}\n\nenum MandateLimitKind {\n MAX\n\n MIN\n\n TARGET\n\n TRIGGER\n}\n\n";
|
|
84
|
+
readonly mandateRule: "\n// Your response should adhere to the following type definition for the \"MandateRule\" 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 MandateRule = {\n // Relation to the parent MandateVersion.\n mandateVersion: {\n // Human-readable version label (e.g. 'v1', 'v2.1', '2026-Q3').\n versionLabel: string;\n };\n // Short label identifying the clause (platform MandateRule.label).\n label: string;\n // Human-readable clause text (platform MandateRule.detail).\n detail: string;\n // Control gate this clause imposes (platform MandateRule.control / GovActType).\n control: MandateControlGate;\n // Numeric threshold for the clause, if quantitative (platform MandateRule.threshold). Null for qualitative clauses.\n threshold?: number;\n // Unit of the threshold (e.g. '%', 'bps', 'USD', 'positions'); platform MandateRule.unit.\n unit?: string;\n // Direction/nature of the threshold (MAX/MIN/TARGET/TRIGGER); platform MandateRule.limitKind. Null for qualitative clauses.\n limitKind?: MandateLimitKind;\n // Stable code naming this rule within its version (e.g. `R-01`, `R-01b`); the\ndesk's limit gauges and the ledger cite it. Unique per mandate version.\nNull for a clause no gauge or ledger entry cites.\n ruleCode?: string;\n // The quantity the engine measures against `threshold`. Null for a\nqualitative clause, which no gauge can show. A rule naming a metric must\nalso carry `threshold`, `action`, `group` and `ruleCode` (database CHECK\n`mandate_rules_metric_complete_check`), because a limit gauge needs every\none of them.\n metricKey?: MandateMetric;\n // What the engine does when the measured quantity crosses `threshold`. Null\nfor a qualitative clause.\n action?: MandateAction;\n // The gauge group this rule is shown under on the desk. Null for a\nqualitative clause.\n group?: MandateRuleGroup;\n};\n\nenum MandateControlGate {\n AUTO\n\n NOTIFY\n\n APPROVAL\n\n PROPOSE\n\n HUMAN\n}\n\nenum MandateLimitKind {\n MAX\n\n MIN\n\n TARGET\n\n TRIGGER\n}\n\nenum MandateMetric {\n GROSS_LEVERAGE\n\n NET_EXPOSURE_RATIO\n\n SINGLE_NAME_CONCENTRATION\n\n MAX_SECTOR_CONCENTRATION\n\n DAILY_LOSS\n\n DRAWDOWN\n\n VAR_95\n\n VAR_99\n\n EXPECTED_SHORTFALL_95\n\n MARGIN_UTILIZATION\n\n OPEN_POSITIONS\n}\n\nenum MandateAction {\n BLOCK\n\n ESCALATE\n\n HALT\n\n DERISK\n}\n\nenum MandateRuleGroup {\n EXPOSURE\n\n LOSS\n\n LIQUIDITY\n}\n\n";
|
|
85
85
|
readonly mandateApproval: "\n// Your response should adhere to the following type definition for the \"MandateApproval\" 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 MandateApproval = {\n // Relation to the MandateVersion.\n mandateVersion: {\n // Human-readable version label (e.g. 'v1', 'v2.1', '2026-Q3').\n versionLabel: string;\n // Lifecycle state of this version.\n status: MandateStatus;\n };\n // Governance action taken ('propose' | 'approve' | 'reject' | 'escalate' | 'supersede' | 'archive'); lowercase String matching the platform/engine decision contract. Kept as String, not an enum, per the five-enum mandate-store spec.\n action: string;\n // Relation to the deciding User.\n decidedBy?: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n };\n // Role under which the decision was made ('compliance_officer' | 'fund_operator' | …); lowercase String to match the platform contract.\n decidedByRole?: string;\n // Free-text rationale for the decision.\n rationale?: string;\n};\n\nenum MandateStatus {\n DRAFTED\n\n PROPOSED\n\n APPROVED\n\n SUPERSEDED\n\n ARCHIVED\n}\n\n";
|
|
86
|
-
readonly strategy: "\n// Your response should adhere to the following type definition for the \"Strategy\" 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 Strategy = {\n // Stable machine key, e.g. \"core-equity-llm-v1\". Matches the engine Tier A\n`StrategyRegistryEntry.key` column type exactly.\n key: string;\n // Operator/user-facing name.\n displayName: string;\n // Human-readable description of what the strategy does.\n description?: string;\n // Where the definition came from.\n origin: StrategyOrigin;\n // Lifecycle stage. New rows default to DRAFT so a strategy is never\nrecorded as live merely by virtue of existing.\n lifecycleState: StrategyLifecycleState;\n // SHA-256 (hex) of the canonical JSON manifest describing what this\nstrategy runs (prompt id, feature view, exit tiers). NULL means no\nmanifest is bound yet — it is genuinely unknown, never a placeholder.\n manifestHash?: string;\n // Authoring kind: a thematic basket or a signal strategy. NULL for strategies\nthat predate desk authoring.\n kind?: StrategyKind;\n // Authored specification (JSON). Thematic: `{ thesis, horizon, constituents[],\nweighting, allocationPct, maxNamePct, rebalance, exitRule, benchmark }`;\nsignal: `{ hypothesis, inputs[], formula, universe, neutralise { sector, beta,\nsize }, allocationPct, paperSessions, promotionGate }`. NULL means no draft\nhas been authored.\n spec?: any;\n};\n\nenum StrategyOrigin {\n SYSTEM\n\n USER\n\n AI_GENERATED\n}\n\nenum StrategyLifecycleState {\n DRAFT\n\n SHADOW\n\n ACTIVE\n\n PAUSED\n\n RETIRED\n}\n\nenum StrategyKind {\n thematic\n\n signal\n}\n\n";
|
|
86
|
+
readonly strategy: "\n// Your response should adhere to the following type definition for the \"Strategy\" 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 Strategy = {\n // Stable machine key, e.g. \"core-equity-llm-v1\". Matches the engine Tier A\n`StrategyRegistryEntry.key` column type exactly.\n key: string;\n // Operator/user-facing name.\n displayName: string;\n // Human-readable description of what the strategy does.\n description?: string;\n // Where the definition came from.\n origin: StrategyOrigin;\n // Lifecycle stage. New rows default to DRAFT so a strategy is never\nrecorded as live merely by virtue of existing.\n lifecycleState: StrategyLifecycleState;\n // SHA-256 (hex) of the canonical JSON manifest describing what this\nstrategy runs (prompt id, feature view, exit tiers). NULL means no\nmanifest is bound yet — it is genuinely unknown, never a placeholder.\n manifestHash?: string;\n // Authoring kind: a thematic basket or a signal strategy. NULL for strategies\nthat predate desk authoring.\n kind?: StrategyKind;\n // Authored specification (JSON). Thematic: `{ thesis, horizon, constituents[],\nweighting, allocationPct, maxNamePct, rebalance, exitRule, benchmark }`;\nsignal: `{ hypothesis, inputs[], formula, universe, neutralise { sector, beta,\nsize }, allocationPct, paperSessions, promotionGate }`. NULL means no draft\nhas been authored.\n spec?: any;\n // The agent desk this strategy trades under. NULL means no operator has\nassigned it yet: a strategy is never placed on a desk by default, because\nthe desk decides which autonomy matrix governs its orders and which desk's\nmetrics its fills count toward.\n desk?: DeskType;\n};\n\nenum StrategyOrigin {\n SYSTEM\n\n USER\n\n AI_GENERATED\n}\n\nenum StrategyLifecycleState {\n DRAFT\n\n SHADOW\n\n ACTIVE\n\n PAUSED\n\n RETIRED\n}\n\nenum StrategyKind {\n thematic\n\n signal\n}\n\nenum DeskType {\n EVENT\n\n THEMATIC\n\n SYSTEMATIC\n}\n\n";
|
|
87
87
|
readonly strategySubscription: "\n// Your response should adhere to the following type definition for the \"StrategySubscription\" 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 StrategySubscription = {\n // Lifecycle status of the opt-in.\n status: StrategySubscriptionStatus;\n // Units (sleeve shares) currently held under this subscription. A fresh\nsubscription genuinely holds zero, so `0` here is a true measurement and\nnot a stand-in for \"unknown\".\n units: number;\n // Cumulative net capital contributed to this sleeve, net of withdrawals.\n costBasis: number;\n // Cumulative realized P/L booked out of this sleeve.\n realizedPL: number;\n // Target share of account equity allocated to this strategy, as a 0..1\nfraction. NULL means NO ALLOCATION HAS BEEN DECIDED — deliberately\nnullable with NO default so that \"unallocated\" can never be read as a\n0% target. Consumers must render absence as absence; the platform\nStrategies grid renders it as an em-dash.\n targetAllocationPct?: number;\n // Base currency of the capital columns (ISO 4217).\n currency: string;\n // When the account first opted in.\n subscribedAt?: Date;\n // When a rebalance toward `targetAllocationPct` was last recorded against\nthis sleeve. NULL means none has been.\n lastRebalancedAt?: Date;\n};\n\nenum StrategySubscriptionStatus {\n ACTIVE\n\n PAUSED\n\n CLOSED\n}\n\n";
|
|
88
88
|
readonly featureFlagOverride: "\n// Your response should adhere to the following type definition for the \"FeatureFlagOverride\" 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 FeatureFlagOverride = {\n // Flag key, e.g. 'desk_ia'.\n flag: string;\n // Whether the flag is on for this user or organization.\n enabled: boolean;\n // Principal that last set the override (user id or service name).\n updatedBy: string;\n};\n\n";
|
|
89
89
|
readonly follow: "\n// Your response should adhere to the following type definition for the \"Follow\" 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 Follow = {\n // Relation to the Fund.\n fund: {\n // Fund display name.\n name: string;\n // URL-safe slug, unique within the owning organization.\n slug: string;\n };\n // What the follow points at.\n targetKind: FollowTargetKind;\n // Follow level 0..2 (0 watch, 1 propose, 2 act within the risk budget). Enforced by a CHECK constraint.\n level: number;\n // Risk budget as a percentage of fund NAV. Null means no budget is set, never zero.\n riskBudgetPctNav?: number;\n};\n\nenum FollowTargetKind {\n asset\n\n event\n}\n\n";
|