adaptic-backend 1.0.198 → 1.0.199

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/generated/typeStrings/Account.cjs +2 -3
  2. package/generated/typeStrings/Account.d.ts +1 -1
  3. package/generated/typeStrings/Account.d.ts.map +1 -1
  4. package/generated/typeStrings/Account.js.map +1 -1
  5. package/generated/typeStrings/Action.cjs +13 -138
  6. package/generated/typeStrings/Action.d.ts +1 -1
  7. package/generated/typeStrings/Action.d.ts.map +1 -1
  8. package/generated/typeStrings/Action.js.map +1 -1
  9. package/generated/typeStrings/Alert.cjs +2 -3
  10. package/generated/typeStrings/Alert.d.ts +1 -1
  11. package/generated/typeStrings/Alert.d.ts.map +1 -1
  12. package/generated/typeStrings/Alert.js.map +1 -1
  13. package/generated/typeStrings/AlpacaAccount.cjs +77 -5
  14. package/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  15. package/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  16. package/generated/typeStrings/AlpacaAccount.js.map +1 -1
  17. package/generated/typeStrings/Asset.cjs +2 -3
  18. package/generated/typeStrings/Asset.d.ts +1 -1
  19. package/generated/typeStrings/Asset.d.ts.map +1 -1
  20. package/generated/typeStrings/Asset.js.map +1 -1
  21. package/generated/typeStrings/Authenticator.cjs +2 -3
  22. package/generated/typeStrings/Authenticator.d.ts +1 -1
  23. package/generated/typeStrings/Authenticator.d.ts.map +1 -1
  24. package/generated/typeStrings/Authenticator.js.map +1 -1
  25. package/generated/typeStrings/Customer.cjs +4 -4
  26. package/generated/typeStrings/Customer.d.ts +1 -1
  27. package/generated/typeStrings/Customer.d.ts.map +1 -1
  28. package/generated/typeStrings/EconomicEvent.cjs +2 -3
  29. package/generated/typeStrings/EconomicEvent.d.ts +1 -1
  30. package/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  31. package/generated/typeStrings/EconomicEvent.js.map +1 -1
  32. package/generated/typeStrings/MarketSentiment.cjs +2 -3
  33. package/generated/typeStrings/MarketSentiment.d.ts +1 -1
  34. package/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  35. package/generated/typeStrings/MarketSentiment.js.map +1 -1
  36. package/generated/typeStrings/NewsArticle.cjs +2 -3
  37. package/generated/typeStrings/NewsArticle.d.ts +1 -1
  38. package/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  39. package/generated/typeStrings/NewsArticle.js.map +1 -1
  40. package/generated/typeStrings/NewsArticleAssetSentiment.cjs +5 -3
  41. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  42. package/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  43. package/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  44. package/generated/typeStrings/Order.cjs +5 -3
  45. package/generated/typeStrings/Order.d.ts +1 -1
  46. package/generated/typeStrings/Order.d.ts.map +1 -1
  47. package/generated/typeStrings/Order.js.map +1 -1
  48. package/generated/typeStrings/Position.cjs +5 -68
  49. package/generated/typeStrings/Position.d.ts +1 -1
  50. package/generated/typeStrings/Position.d.ts.map +1 -1
  51. package/generated/typeStrings/Position.js.map +1 -1
  52. package/generated/typeStrings/ScheduledOptionOrder.cjs +2 -3
  53. package/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  54. package/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  55. package/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  56. package/generated/typeStrings/Session.cjs +4 -4
  57. package/generated/typeStrings/Session.d.ts +1 -1
  58. package/generated/typeStrings/Session.d.ts.map +1 -1
  59. package/generated/typeStrings/StopLoss.cjs +2 -3
  60. package/generated/typeStrings/StopLoss.d.ts +1 -1
  61. package/generated/typeStrings/StopLoss.d.ts.map +1 -1
  62. package/generated/typeStrings/StopLoss.js.map +1 -1
  63. package/generated/typeStrings/TakeProfit.cjs +2 -3
  64. package/generated/typeStrings/TakeProfit.d.ts +1 -1
  65. package/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  66. package/generated/typeStrings/TakeProfit.js.map +1 -1
  67. package/generated/typeStrings/Trade.cjs +153 -4
  68. package/generated/typeStrings/Trade.d.ts +1 -1
  69. package/generated/typeStrings/Trade.d.ts.map +1 -1
  70. package/generated/typeStrings/Trade.js.map +1 -1
  71. package/generated/typeStrings/User.cjs +5 -5
  72. package/generated/typeStrings/User.d.ts +1 -1
  73. package/generated/typeStrings/User.d.ts.map +1 -1
  74. package/generated/typeStrings/VerificationToken.cjs +2 -3
  75. package/generated/typeStrings/VerificationToken.d.ts +1 -1
  76. package/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  77. package/generated/typeStrings/VerificationToken.js.map +1 -1
  78. package/generated/typeStrings/index.d.ts +20 -20
  79. package/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  80. package/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  81. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.cjs +1 -1
  82. package/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  83. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.cjs +1 -1
  84. package/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  85. package/package.json +1 -1
  86. package/server/generated/typeStrings/Account.d.ts +1 -1
  87. package/server/generated/typeStrings/Account.d.ts.map +1 -1
  88. package/server/generated/typeStrings/Account.js.map +1 -1
  89. package/server/generated/typeStrings/Account.mjs +2 -3
  90. package/server/generated/typeStrings/Action.d.ts +1 -1
  91. package/server/generated/typeStrings/Action.d.ts.map +1 -1
  92. package/server/generated/typeStrings/Action.js.map +1 -1
  93. package/server/generated/typeStrings/Action.mjs +13 -138
  94. package/server/generated/typeStrings/Alert.d.ts +1 -1
  95. package/server/generated/typeStrings/Alert.d.ts.map +1 -1
  96. package/server/generated/typeStrings/Alert.js.map +1 -1
  97. package/server/generated/typeStrings/Alert.mjs +2 -3
  98. package/server/generated/typeStrings/AlpacaAccount.d.ts +1 -1
  99. package/server/generated/typeStrings/AlpacaAccount.d.ts.map +1 -1
  100. package/server/generated/typeStrings/AlpacaAccount.js.map +1 -1
  101. package/server/generated/typeStrings/AlpacaAccount.mjs +77 -5
  102. package/server/generated/typeStrings/Asset.d.ts +1 -1
  103. package/server/generated/typeStrings/Asset.d.ts.map +1 -1
  104. package/server/generated/typeStrings/Asset.js.map +1 -1
  105. package/server/generated/typeStrings/Asset.mjs +2 -3
  106. package/server/generated/typeStrings/Authenticator.d.ts +1 -1
  107. package/server/generated/typeStrings/Authenticator.d.ts.map +1 -1
  108. package/server/generated/typeStrings/Authenticator.js.map +1 -1
  109. package/server/generated/typeStrings/Authenticator.mjs +2 -3
  110. package/server/generated/typeStrings/Customer.d.ts +1 -1
  111. package/server/generated/typeStrings/Customer.d.ts.map +1 -1
  112. package/server/generated/typeStrings/Customer.mjs +4 -4
  113. package/server/generated/typeStrings/EconomicEvent.d.ts +1 -1
  114. package/server/generated/typeStrings/EconomicEvent.d.ts.map +1 -1
  115. package/server/generated/typeStrings/EconomicEvent.js.map +1 -1
  116. package/server/generated/typeStrings/EconomicEvent.mjs +2 -3
  117. package/server/generated/typeStrings/MarketSentiment.d.ts +1 -1
  118. package/server/generated/typeStrings/MarketSentiment.d.ts.map +1 -1
  119. package/server/generated/typeStrings/MarketSentiment.js.map +1 -1
  120. package/server/generated/typeStrings/MarketSentiment.mjs +2 -3
  121. package/server/generated/typeStrings/NewsArticle.d.ts +1 -1
  122. package/server/generated/typeStrings/NewsArticle.d.ts.map +1 -1
  123. package/server/generated/typeStrings/NewsArticle.js.map +1 -1
  124. package/server/generated/typeStrings/NewsArticle.mjs +2 -3
  125. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts +1 -1
  126. package/server/generated/typeStrings/NewsArticleAssetSentiment.d.ts.map +1 -1
  127. package/server/generated/typeStrings/NewsArticleAssetSentiment.js.map +1 -1
  128. package/server/generated/typeStrings/NewsArticleAssetSentiment.mjs +5 -3
  129. package/server/generated/typeStrings/Order.d.ts +1 -1
  130. package/server/generated/typeStrings/Order.d.ts.map +1 -1
  131. package/server/generated/typeStrings/Order.js.map +1 -1
  132. package/server/generated/typeStrings/Order.mjs +5 -3
  133. package/server/generated/typeStrings/Position.d.ts +1 -1
  134. package/server/generated/typeStrings/Position.d.ts.map +1 -1
  135. package/server/generated/typeStrings/Position.js.map +1 -1
  136. package/server/generated/typeStrings/Position.mjs +5 -68
  137. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts +1 -1
  138. package/server/generated/typeStrings/ScheduledOptionOrder.d.ts.map +1 -1
  139. package/server/generated/typeStrings/ScheduledOptionOrder.js.map +1 -1
  140. package/server/generated/typeStrings/ScheduledOptionOrder.mjs +2 -3
  141. package/server/generated/typeStrings/Session.d.ts +1 -1
  142. package/server/generated/typeStrings/Session.d.ts.map +1 -1
  143. package/server/generated/typeStrings/Session.mjs +4 -4
  144. package/server/generated/typeStrings/StopLoss.d.ts +1 -1
  145. package/server/generated/typeStrings/StopLoss.d.ts.map +1 -1
  146. package/server/generated/typeStrings/StopLoss.js.map +1 -1
  147. package/server/generated/typeStrings/StopLoss.mjs +2 -3
  148. package/server/generated/typeStrings/TakeProfit.d.ts +1 -1
  149. package/server/generated/typeStrings/TakeProfit.d.ts.map +1 -1
  150. package/server/generated/typeStrings/TakeProfit.js.map +1 -1
  151. package/server/generated/typeStrings/TakeProfit.mjs +2 -3
  152. package/server/generated/typeStrings/Trade.d.ts +1 -1
  153. package/server/generated/typeStrings/Trade.d.ts.map +1 -1
  154. package/server/generated/typeStrings/Trade.js.map +1 -1
  155. package/server/generated/typeStrings/Trade.mjs +153 -4
  156. package/server/generated/typeStrings/User.d.ts +1 -1
  157. package/server/generated/typeStrings/User.d.ts.map +1 -1
  158. package/server/generated/typeStrings/User.mjs +5 -5
  159. package/server/generated/typeStrings/VerificationToken.d.ts +1 -1
  160. package/server/generated/typeStrings/VerificationToken.d.ts.map +1 -1
  161. package/server/generated/typeStrings/VerificationToken.js.map +1 -1
  162. package/server/generated/typeStrings/VerificationToken.mjs +2 -3
  163. package/server/generated/typeStrings/index.d.ts +20 -20
  164. package/server/generated/typegraphql-prisma/models/Action.d.ts +1 -1
  165. package/server/generated/typegraphql-prisma/models/Action.mjs +1 -1
  166. package/server/generated/typegraphql-prisma/models/Trade.d.ts +1 -1
  167. package/server/generated/typegraphql-prisma/models/Trade.mjs +1 -1
  168. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.js.map +1 -1
  169. package/server/generated/typegraphql-prisma/resolvers/relations/Action/ActionRelationsResolver.mjs +1 -1
  170. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.js.map +1 -1
  171. package/server/generated/typegraphql-prisma/resolvers/relations/Trade/TradeRelationsResolver.mjs +1 -1
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AccountTypeString = void 0;
4
4
  exports.AccountTypeString = `
5
- Your response should adhere to the following type definition for the "Account" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Account" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Account = {
10
9
  // Type of the account (e.g., OAuth provider).
@@ -1,2 +1,2 @@
1
- export declare const AccountTypeString = "\nYour response should adhere to the following type definition for the \"Account\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n\n";
1
+ export declare const AccountTypeString = "\n// Your response should adhere to the following type definition for the \"Account\" 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 Account = {\n // Type of the account (e.g., OAuth provider).\n type: string;\n // Provider of the account (e.g., Google, GitHub).\n provider: string;\n // Expiration time of the access token.\n expires_at?: number;\n // Type of the token (e.g., Bearer).\n token_type?: string;\n // Scope of access granted by the token.\n scope?: string;\n // State of the session associated with the account.\n session_state?: string;\n};\n\n";
2
2
  //# sourceMappingURL=Account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,sqBAoB7B,CAAC"}
1
+ {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,0qBAmB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC"}
1
+ {"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Account.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;CAmBhC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ActionTypeString = void 0;
4
4
  exports.ActionTypeString = `
5
- Your response should adhere to the following type definition for the "Action" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Action" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Action = {
10
9
  // Sequence number of the action within the trade.
@@ -19,154 +18,30 @@ export type Action = {
19
18
  fee?: number;
20
19
  // The order associated with this action.
21
20
  order?: {
21
+ // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.
22
22
  qty?: number;
23
- notional?: number;
23
+ // Side of the order ('BUY' or 'SELL').
24
24
  side: OrderSide;
25
+ // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').
25
26
  type: OrderType;
27
+ // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.
26
28
  orderClass: OrderClass;
29
+ // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').
27
30
  timeInForce: TimeInForce;
28
- limitPrice?: number;
29
- stopPrice?: number;
30
- stopLoss?: {
31
- // Must be a positive number. Price must be at a threshold to limit losses when the asset’s market price moves unfavourably beyond a specified point. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
32
- stopPrice?: number;
33
- // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≥ basePrice + 0.01, and should always be greater than stopPrice.
34
- limitPrice?: number;
35
- };
36
- takeProfit?: {
37
- // Must be a positive number and ≥ base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset’s market price moves favourably beyond a specified point.
38
- limitPrice?: number;
39
- // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be ≤ basePrice - 0.01, and should always be less than limitPrice.
40
- stopPrice?: number;
41
- };
42
- trailPrice?: number;
31
+ // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.
43
32
  trailPercent?: number;
33
+ // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.
44
34
  extendedHours?: boolean;
35
+ // Current status of the order.
45
36
  status: OrderStatus;
37
+ // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.
46
38
  strikePrice?: number;
39
+ // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.
47
40
  expirationDate?: Date;
41
+ // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.
48
42
  optionType?: OptionType;
49
43
  };
50
44
  };
51
45
 
52
- enum OrderSide {
53
- /// Represents the buying side of a trade action.
54
- BUY
55
-
56
- /// Represents the selling side of a trade action.
57
- SELL
58
- }
59
-
60
- enum OrderType {
61
- /// Executes immediately at the best available current market price.
62
- MARKET
63
-
64
- /// Executes only at the specified limit price or better.
65
- LIMIT
66
-
67
- /// Becomes a market order once the stop price is triggered.
68
- STOP
69
-
70
- /// Becomes a limit order once the stop price is triggered.
71
- STOP_LIMIT
72
-
73
- /// Adjusts the stop price based on a specified trail amount or percentage.
74
- TRAILING_STOP
75
- }
76
-
77
- enum OrderClass {
78
- /// A single standalone order without additional conditions.
79
- SIMPLE
80
-
81
- /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.
82
- BRACKET
83
-
84
- /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.
85
- OCO
86
-
87
- /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.
88
- OSO
89
-
90
- /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.
91
- OTO
92
- }
93
-
94
- // Time in force enum (day, gtc, opg, cls, etc.).
95
- enum TimeInForce {
96
- /// The order is valid for the day and expires at market close.
97
- DAY
98
-
99
- /// The order is valid until canceled by the user.
100
- GTC
101
-
102
- /// The order is valid for the opening of the market.
103
- OPG
104
-
105
- /// The order is valid until the close of the market.
106
- CLS
107
-
108
- /// The order must be executed immediately or canceled.
109
- IOC
110
-
111
- /// The order must be executed immediately or canceled.
112
- FOK
113
- }
114
-
115
- enum OrderStatus {
116
- /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.
117
- STAGED
118
-
119
- /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.
120
- NEW
121
-
122
- /// The order has been partially filled.
123
- PARTIALLY_FILLED
124
-
125
- /// The order has been filled, and no further updates will occur for the order.
126
- FILLED
127
-
128
- /// The order is done executing for the day, and will not receive further updates until the next trading day.
129
- DONE_FOR_DAY
130
-
131
- /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.
132
- CANCELED
133
-
134
- /// The order has expired, and no further updates will occur for the order.
135
- EXPIRED
136
-
137
- /// The order is waiting to be triggered, usually for stop or stop-limit orders.
138
- HELD
139
-
140
- /// The order was replaced by another order, or was updated due to a market event such as corporate action.
141
- REPLACED
142
-
143
- /// The order is waiting to be canceled.
144
- PENDING_CANCEL
145
-
146
- /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.
147
- PENDING_REPLACE
148
-
149
- /// The order has been received by Alpaca, but hasn’t yet been routed to the execution venue. This could be seen often outside of trading session hours.
150
- ACCEPTED
151
-
152
- /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.
153
- PENDING_NEW
154
-
155
- /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.
156
- ACCEPTED_FOR_BIDDING
157
-
158
- /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.
159
- STOPPED
160
-
161
- /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.
162
- REJECTED
163
-
164
- /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.
165
- SUSPENDED
166
-
167
- /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.
168
- CALCULATED
169
- }
170
-
171
46
  `;
172
47
  //# sourceMappingURL=Action.js.map
@@ -1,2 +1,2 @@
1
- export declare const ActionTypeString = "\nYour response should adhere to the following type definition for the \"Action\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n qty?: number;\n notional?: number;\n side: OrderSide;\n type: OrderType;\n orderClass: OrderClass;\n timeInForce: TimeInForce;\n limitPrice?: number;\n stopPrice?: number;\n stopLoss?: {\n // Must be a positive number. Price must be at a threshold to limit losses when the asset\u2019s market price moves unfavourably beyond a specified point. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2265 basePrice + 0.01, and should always be greater than stopPrice.\n limitPrice?: number;\n };\n takeProfit?: {\n // Must be a positive number and \u2265 base_price + 0.01, and is always greater than stopPrice. Price must be at a threshold to lock in profits when the asset\u2019s market price moves favourably beyond a specified point.\n limitPrice?: number;\n // Must be a positive number and required if parent Order's type is STOP_LIMIT. It must be \u2264 basePrice - 0.01, and should always be less than limitPrice.\n stopPrice?: number;\n };\n trailPrice?: number;\n trailPercent?: number;\n extendedHours?: boolean;\n status: OrderStatus;\n strikePrice?: number;\n expirationDate?: Date;\n optionType?: OptionType;\n };\n};\n\nenum OrderSide {\n /// Represents the buying side of a trade action.\n BUY\n\n /// Represents the selling side of a trade action.\n SELL\n}\n\nenum OrderType {\n /// Executes immediately at the best available current market price.\n MARKET\n\n /// Executes only at the specified limit price or better.\n LIMIT\n\n /// Becomes a market order once the stop price is triggered.\n STOP\n\n /// Becomes a limit order once the stop price is triggered.\n STOP_LIMIT\n\n /// Adjusts the stop price based on a specified trail amount or percentage.\n TRAILING_STOP\n}\n\nenum OrderClass {\n /// A single standalone order without additional conditions.\n SIMPLE\n\n /// A primary order with attached take-profit and stop-loss orders to automatically manage the trade.\n BRACKET\n\n /// OCO (One-Cancels-Other): A pair of orders where the execution of one cancels the other.\n OCO\n\n /// OSO (One Sends Other): A chain of orders where the execution of one order triggers the placement of another.\n OSO\n\n /// OTO (One-Triggers-Other): Similar to BRACKET, where the execution of one order triggers the placement of another.\n OTO\n}\n\n// Time in force enum (day, gtc, opg, cls, etc.).\nenum TimeInForce {\n /// The order is valid for the day and expires at market close.\n DAY\n\n /// The order is valid until canceled by the user.\n GTC\n\n /// The order is valid for the opening of the market.\n OPG\n\n /// The order is valid until the close of the market.\n CLS\n\n /// The order must be executed immediately or canceled.\n IOC\n\n /// The order must be executed immediately or canceled.\n FOK\n}\n\nenum OrderStatus {\n /// The order has been staged in Adaptic to be sent to Alpaca. This is the initial status.\n STAGED\n\n /// The order has been received by Alpaca, and routed to exchanges for execution. This is the usual initial state of an order after being received.\n NEW\n\n /// The order has been partially filled.\n PARTIALLY_FILLED\n\n /// The order has been filled, and no further updates will occur for the order.\n FILLED\n\n /// The order is done executing for the day, and will not receive further updates until the next trading day.\n DONE_FOR_DAY\n\n /// The order has been canceled, and no further updates will occur for the order. This can be either due to a cancel request by the user, or the order has been canceled by the exchanges due to its time-in-force.\n CANCELED\n\n /// The order has expired, and no further updates will occur for the order.\n EXPIRED\n\n /// The order is waiting to be triggered, usually for stop or stop-limit orders.\n HELD\n\n /// The order was replaced by another order, or was updated due to a market event such as corporate action.\n REPLACED\n\n /// The order is waiting to be canceled.\n PENDING_CANCEL\n\n /// The order is waiting to be replaced by another order. The order will reject cancel request while in this state.\n PENDING_REPLACE\n\n /// The order has been received by Alpaca, but hasn\u2019t yet been routed to the execution venue. This could be seen often outside of trading session hours.\n ACCEPTED\n\n /// The order has been received by Alpaca, and routed to the exchanges, but has not yet been accepted for execution. This state only occurs on rare occasions.\n PENDING_NEW\n\n /// The order has been received by exchanges, and is evaluated for pricing. This state only occurs on rare occasions.\n ACCEPTED_FOR_BIDDING\n\n /// The order has been stopped, and a trade is guaranteed for the order, usually at a stated price or better, but has not yet occurred. This state only occurs on rare occasions.\n STOPPED\n\n /// The order has been rejected, and no further updates will occur for the order. This state occurs on rare occasions and may occur based on various conditions decided by the exchanges.\n REJECTED\n\n /// The order has been suspended, and is not eligible for trading. This state only occurs on rare occasions.\n SUSPENDED\n\n /// The order has been completed for the day (either filled or done for day), but remaining settlement calculations are still pending. This state only occurs on rare occasions.\n CALCULATED\n}\n\n";
1
+ export declare const ActionTypeString = "\n// Your response should adhere to the following type definition for the \"Action\" 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 Action = {\n // Sequence number of the action within the trade.\n sequence: number;\n // Type of trade action, defined by ActionType enum.\n type: ActionType;\n // Additional notes or comments about the action.\n note: string;\n // Current status of the trade action.\n status: ActionStatus;\n // Fees associated with the action.\n fee?: number;\n // The order associated with this action.\n order?: {\n // Quantity of the asset to be ordered. Required if 'notional' is not provided. For 'MARKET' orders with 'timeInForce' set to 'DAY', 'qty' can be fractional.\n qty?: number;\n // Side of the order ('BUY' or 'SELL').\n side: OrderSide;\n // Type of order ('MARKET', 'LIMIT', 'STOP', 'STOP_LIMIT', 'TRAILING_STOP').\n type: OrderType;\n // Order class for advanced order types. Options are 'SIMPLE', 'BRACKET', 'OCO', 'OTO'. Default is 'SIMPLE'. For 'BRACKET' orders, 'takeProfit' and 'stopLoss' are required.\n orderClass: OrderClass;\n // Time in force for the order ('DAY', 'GTC', 'OPG', 'CLS', 'IOC', 'FOK').\n timeInForce: TimeInForce;\n // Trail percent for 'TRAILING_STOP' orders. Must be a positive number. Either 'trailPrice' or 'trailPercent' is required when 'type' is 'TRAILING_STOP'.\n trailPercent?: number;\n // Whether the order is eligible for execution outside regular trading hours. Only valid for 'LIMIT' orders with 'timeInForce' set to 'DAY'. Defaults to false.\n extendedHours?: boolean;\n // Current status of the order.\n status: OrderStatus;\n // Strike price for option orders. Required when 'asset.type' is 'OPTION'. Must be a positive number.\n strikePrice?: number;\n // Expiration date for option orders. Required when 'asset.type' is 'OPTION'. Must be a valid date in the future.\n expirationDate?: Date;\n // Type of option contract ('CALL' or 'PUT'). Required when 'asset.type' is 'OPTION'.\n optionType?: OptionType;\n };\n};\n\n";
2
2
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,6jMAuK5B,CAAC"}
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,4oEA0C5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuK/B,CAAC"}
1
+ {"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Action.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C/B,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AlertTypeString = void 0;
4
4
  exports.AlertTypeString = `
5
- Your response should adhere to the following type definition for the "Alert" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Alert" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Alert = {
10
9
  // Message content of the alert.
@@ -1,2 +1,2 @@
1
- export declare const AlertTypeString = "\nYour response should adhere to the following type definition for the \"Alert\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n /// Indicates a successful operation or event.\n SUCCESS\n\n /// Represents a warning that requires attention.\n WARNING\n\n /// Signifies an error that needs to be addressed.\n ERROR\n\n /// Provides informational messages to the user.\n INFO\n}\n\n";
1
+ export declare const AlertTypeString = "\n// Your response should adhere to the following type definition for the \"Alert\" 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 Alert = {\n // Message content of the alert.\n message: string;\n // Type of the alert, defined by AlertType enum.\n type: AlertType;\n // Indicates whether the alert has been read by the user.\n isRead: boolean;\n};\n\nenum AlertType {\n /// Indicates a successful operation or event.\n SUCCESS\n\n /// Represents a warning that requires attention.\n WARNING\n\n /// Signifies an error that needs to be addressed.\n ERROR\n\n /// Provides informational messages to the user.\n INFO\n}\n\n";
2
2
  //# sourceMappingURL=Alert.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,quBA4B3B,CAAC"}
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yuBA2B3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B9B,CAAC"}
1
+ {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Alert.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B9B,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AlpacaAccountTypeString = void 0;
4
4
  exports.AlpacaAccountTypeString = `
5
- Your response should adhere to the following type definition for the "AlpacaAccount" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "AlpacaAccount" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type AlpacaAccount = {
10
9
  // The type of Alpaca account (PAPER or LIVE).
@@ -15,11 +14,84 @@ export type AlpacaAccount = {
15
14
  marketOpen: boolean;
16
15
  // List of positions held in this Alpaca account.
17
16
  positions: {
18
- id: string;
17
+ // Total quantity of the asset held.
19
18
  qty: number;
20
- asset: Asset;
19
+ // Relation to the Asset model.
20
+ asset: {
21
+ // Ticker symbol of the asset
22
+ symbol: string;
23
+ // Full name of the asset
24
+ name: string;
25
+ // Type of the asset, defined by AssetType enum.
26
+ type: AssetType;
27
+ };
21
28
  }[];
22
29
  };
23
30
 
31
+ enum AssetType {
32
+ /// Represents a share of ownership in a corporation.
33
+ STOCK
34
+
35
+ /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.
36
+ ETF
37
+
38
+ /// A mutual fund that pools money from many investors to purchase securities.
39
+ MUTUAL_FUND
40
+
41
+ /// Digital or virtual currencies using cryptography for security.
42
+ CRYPTOCURRENCY
43
+
44
+ /// A market index representing a collection of stocks.
45
+ INDEX
46
+
47
+ /// Physical goods such as gold, oil, or agricultural products.
48
+ COMMODITY
49
+
50
+ /// Traditional currencies used in international trade.
51
+ CURRENCY
52
+
53
+ /// Contracts that give the holder the right to buy or sell an asset at a set price.
54
+ OPTION
55
+
56
+ /// Financial contracts obligating the buyer to purchase an asset at a future date.
57
+ FUTURE
58
+
59
+ /// Debt securities issued by entities to raise capital.
60
+ BOND
61
+
62
+ /// Securities that give the holder the right to purchase stock at a specific price.
63
+ WARRANT
64
+
65
+ /// American Depositary Receipts representing shares in foreign companies.
66
+ ADR
67
+
68
+ /// Global Depositary Receipts representing shares in foreign companies.
69
+ GDR
70
+
71
+ /// Units of ownership in investment funds or trusts.
72
+ UNIT
73
+
74
+ /// Rights granted to shareholders, such as voting or dividend rights.
75
+ RIGHT
76
+
77
+ /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.
78
+ REIT
79
+
80
+ /// Investment products structured to meet specific needs.
81
+ STRUCTURED_PRODUCT
82
+
83
+ /// Financial contracts to exchange cash flows between parties.
84
+ SWAP
85
+
86
+ /// Immediate exchange of financial instruments.
87
+ SPOT
88
+
89
+ /// Agreements to buy or sell an asset at a future date.
90
+ FORWARD
91
+
92
+ /// Any other type of asset not classified above.
93
+ OTHER
94
+ }
95
+
24
96
  `;
25
97
  //# sourceMappingURL=AlpacaAccount.js.map
@@ -1,2 +1,2 @@
1
- export declare const AlpacaAccountTypeString = "\nYour response should adhere to the following type definition for the \"AlpacaAccount\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n id: string;\n qty: number;\n asset: Asset;\n }[];\n};\n\n";
1
+ export declare const AlpacaAccountTypeString = "\n// Your response should adhere to the following type definition for the \"AlpacaAccount\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type AlpacaAccount = {\n // The type of Alpaca account (PAPER or LIVE).\n type: AlpacaAccountType;\n // JSON configuration settings for the Alpaca account.\n configuration?: any;\n // Indicates whether the market is currently open for trading.\n marketOpen: boolean;\n // List of positions held in this Alpaca account.\n positions: {\n // Total quantity of the asset held.\n qty: number;\n // Relation to the Asset model.\n asset: {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n };\n }[];\n};\n\nenum AssetType {\n /// Represents a share of ownership in a corporation.\n STOCK\n\n /// Exchange-Traded Fund, a type of investment fund traded on stock exchanges.\n ETF\n\n /// A mutual fund that pools money from many investors to purchase securities.\n MUTUAL_FUND\n\n /// Digital or virtual currencies using cryptography for security.\n CRYPTOCURRENCY\n\n /// A market index representing a collection of stocks.\n INDEX\n\n /// Physical goods such as gold, oil, or agricultural products.\n COMMODITY\n\n /// Traditional currencies used in international trade.\n CURRENCY\n\n /// Contracts that give the holder the right to buy or sell an asset at a set price.\n OPTION\n\n /// Financial contracts obligating the buyer to purchase an asset at a future date.\n FUTURE\n\n /// Debt securities issued by entities to raise capital.\n BOND\n\n /// Securities that give the holder the right to purchase stock at a specific price.\n WARRANT\n\n /// American Depositary Receipts representing shares in foreign companies.\n ADR\n\n /// Global Depositary Receipts representing shares in foreign companies.\n GDR\n\n /// Units of ownership in investment funds or trusts.\n UNIT\n\n /// Rights granted to shareholders, such as voting or dividend rights.\n RIGHT\n\n /// Real Estate Investment Trusts, companies that own or finance income-producing real estate.\n REIT\n\n /// Investment products structured to meet specific needs.\n STRUCTURED_PRODUCT\n\n /// Financial contracts to exchange cash flows between parties.\n SWAP\n\n /// Immediate exchange of financial instruments.\n SPOT\n\n /// Agreements to buy or sell an asset at a future date.\n FORWARD\n\n /// Any other type of asset not classified above.\n OTHER\n}\n\n";
2
2
  //# sourceMappingURL=AlpacaAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,4oBAoBnC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,+nFA4FnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBtC,CAAC"}
1
+ {"version":3,"file":"AlpacaAccount.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/AlpacaAccount.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4FtC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AssetTypeString = void 0;
4
4
  exports.AssetTypeString = `
5
- Your response should adhere to the following type definition for the "Asset" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Asset" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Asset = {
10
9
  // Ticker symbol of the asset
@@ -1,2 +1,2 @@
1
- export declare const AssetTypeString = "\nYour response should adhere to the following type definition for the \"Asset\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\n\n";
1
+ export declare const AssetTypeString = "\n// Your response should adhere to the following type definition for the \"Asset\" 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 Asset = {\n // Ticker symbol of the asset\n symbol: string;\n // Full name of the asset\n name: string;\n // Type of the asset, defined by AssetType enum.\n type: AssetType;\n};\n\n";
2
2
  //# sourceMappingURL=Asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,yaAc3B,CAAC"}
1
+ {"version":3,"file":"Asset.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,6aAa3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;;CAc9B,CAAC"}
1
+ {"version":3,"file":"Asset.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Asset.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG;;;;;;;;;;;;;CAa9B,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuthenticatorTypeString = void 0;
4
4
  exports.AuthenticatorTypeString = `
5
- Your response should adhere to the following type definition for the "Authenticator" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Authenticator" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Authenticator = {
10
9
 
@@ -1,2 +1,2 @@
1
- export declare const AuthenticatorTypeString = "\nYour response should adhere to the following type definition for the \"Authenticator\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Authenticator = {\n\n};\n\n";
1
+ export declare const AuthenticatorTypeString = "\n// Your response should adhere to the following type definition for the \"Authenticator\" 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 Authenticator = {\n\n};\n\n";
2
2
  //# sourceMappingURL=Authenticator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,iRASnC,CAAC"}
1
+ {"version":3,"file":"Authenticator.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qRAQnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;CAStC,CAAC"}
1
+ {"version":3,"file":"Authenticator.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/Authenticator.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;CAQtC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CustomerTypeString = void 0;
4
4
  exports.CustomerTypeString = `
5
- Your response should adhere to the following type definition for the "Customer" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "Customer" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type Customer = {
10
9
  // Name of the customer.
@@ -15,8 +14,9 @@ export type Customer = {
15
14
  stripeCurrentPeriodEnd?: Date;
16
15
  // List of users associated with the customer.
17
16
  users: {
18
- id: string;
17
+ // The user's full name.
19
18
  name?: string;
19
+ // The user's email address, must be unique.
20
20
  email?: string;
21
21
  }[];
22
22
  };
@@ -1,2 +1,2 @@
1
- export declare const CustomerTypeString = "\nYour response should adhere to the following type definition for the \"Customer\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n id: string;\n name?: string;\n email?: string;\n }[];\n};\n\n";
1
+ export declare const CustomerTypeString = "\n// Your response should adhere to the following type definition for the \"Customer\" 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 Customer = {\n // Name of the customer.\n name?: string;\n // Subscription plan the customer is enrolled in.\n plan?: SubscriptionPlan;\n // End date of the current billing period in Stripe.\n stripeCurrentPeriodEnd?: Date;\n // List of users associated with the customer.\n users: {\n // The user's full name.\n name?: string;\n // The user's email address, must be unique.\n email?: string;\n }[];\n};\n\n";
2
2
  //# sourceMappingURL=Customer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,8lBAoB9B,CAAC"}
1
+ {"version":3,"file":"Customer.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/Customer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,iqBAoB9B,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EconomicEventTypeString = void 0;
4
4
  exports.EconomicEventTypeString = `
5
- Your response should adhere to the following type definition for the "EconomicEvent" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "EconomicEvent" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type EconomicEvent = {
10
9
  // Title or name of the economic event.
@@ -1,2 +1,2 @@
1
- export declare const EconomicEventTypeString = "\nYour response should adhere to the following type definition for the \"EconomicEvent\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n};\n\nenum EventImportance {\n /// Low importance events with minimal impact.\n LOW\n\n /// Medium importance events with noticeable impact.\n MEDIUM\n\n /// High importance events with significant impact.\n HIGH\n}\n\n";
1
+ export declare const EconomicEventTypeString = "\n// Your response should adhere to the following type definition for the \"EconomicEvent\" 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 EconomicEvent = {\n // Title or name of the economic event.\n title: string;\n // Detailed description of the economic event.\n description?: string;\n // Date and time when the economic event is scheduled to occur.\n date: Date;\n // Importance level of the event, defined by EventImportance enum.\n importance: EventImportance;\n};\n\nenum EventImportance {\n /// Low importance events with minimal impact.\n LOW\n\n /// Medium importance events with noticeable impact.\n MEDIUM\n\n /// High importance events with significant impact.\n HIGH\n}\n\n";
2
2
  //# sourceMappingURL=EconomicEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,0yBA2BnC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,8yBA0BnC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BtC,CAAC"}
1
+ {"version":3,"file":"EconomicEvent.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/EconomicEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MarketSentimentTypeString = void 0;
4
4
  exports.MarketSentimentTypeString = `
5
- Your response should adhere to the following type definition for the "MarketSentiment" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "MarketSentiment" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type MarketSentiment = {
10
9
  // The current level of market sentiment.
@@ -1,2 +1,2 @@
1
- export declare const MarketSentimentTypeString = "\nYour response should adhere to the following type definition for the \"MarketSentiment\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n /// Extremely negative outlook on the market.\n VERY_BEARISH\n\n /// Moderately negative outlook on the market.\n SOMEWHAT_BEARISH\n\n /// Negative outlook on the market.\n BEARISH\n\n /// Neutral outlook on the market.\n NEUTRAL\n\n /// Positive outlook on the market.\n SOMEWHAT_BULLISH\n\n /// Moderately positive outlook on the market.\n BULLISH\n\n /// Extremely positive outlook on the market.\n VERY_BULLISH\n}\n\n";
1
+ export declare const MarketSentimentTypeString = "\n// Your response should adhere to the following type definition for the \"MarketSentiment\" type.\n// Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type MarketSentiment = {\n // The current level of market sentiment.\n sentiment: MarketSentimentLevel;\n // A one-sentence description of the market sentiment, including specific references to stock market index values, recent changes, trends, and technical indicators, as well as quotes from major news sources.\n description: string;\n // A detailed, multi-paragraph description of the market sentiment, including extensive analyses, references, quotes from major news sources, and links to articles.\n longDescription: string;\n};\n\nenum MarketSentimentLevel {\n /// Extremely negative outlook on the market.\n VERY_BEARISH\n\n /// Moderately negative outlook on the market.\n SOMEWHAT_BEARISH\n\n /// Negative outlook on the market.\n BEARISH\n\n /// Neutral outlook on the market.\n NEUTRAL\n\n /// Positive outlook on the market.\n SOMEWHAT_BULLISH\n\n /// Moderately positive outlook on the market.\n BULLISH\n\n /// Extremely positive outlook on the market.\n VERY_BULLISH\n}\n\n";
2
2
  //# sourceMappingURL=MarketSentiment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,ouCAqCrC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,wuCAoCrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC"}
1
+ {"version":3,"file":"MarketSentiment.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/MarketSentiment.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCxC,CAAC"}
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NewsArticleTypeString = void 0;
4
4
  exports.NewsArticleTypeString = `
5
- Your response should adhere to the following type definition for the "NewsArticle" type.
6
-
7
- Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
5
+ // Your response should adhere to the following type definition for the "NewsArticle" type.
6
+ // Importantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).
8
7
 
9
8
  export type NewsArticle = {
10
9
  // Title of the news article.
@@ -1,2 +1,2 @@
1
- export declare const NewsArticleTypeString = "\nYour response should adhere to the following type definition for the \"NewsArticle\" type.\n\nImportantly, DO NOT include any annotations in your response (i.e., remove the ones we have provided for your reference below).\n\nexport type NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n};\n\n";
1
+ export declare const NewsArticleTypeString = "\n// Your response should adhere to the following type definition for the \"NewsArticle\" 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 NewsArticle = {\n // Title of the news article.\n title: string;\n // Full content of the news article.\n content?: string;\n // Source of the news article (e.g., Bloomberg, Reuters).\n source: string;\n // Domain of the source website.\n sourceDomain?: string;\n // URL to the original news article, must be unique.\n url: string;\n // Sentiment analysis result of the article.\n sentiment: string;\n // List of authors who wrote the article.\n authors: string[];\n // Summary or abstract of the news article.\n summary?: string;\n // URL to the banner image of the article.\n bannerImage?: string;\n // Publication time of the article.\n timePublished: string;\n // Category or genre of the news article.\n category?: string;\n // Topics covered in the news article.\n topics: string[];\n // URL to the logo image of the news source.\n logo?: string;\n};\n\n";
2
2
  //# sourceMappingURL=NewsArticle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0mCAkCjC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.d.ts","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,8mCAiCjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpC,CAAC"}
1
+ {"version":3,"file":"NewsArticle.js","sourceRoot":"","sources":["../../../src/generated/typeStrings/NewsArticle.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpC,CAAC"}