@casual-simulation/aux-records 3.8.1 → 3.10.2

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 (239) hide show
  1. package/AIChatInterface.d.ts +7 -43
  2. package/AIChatInterface.js +8 -6
  3. package/AIChatInterface.js.map +1 -1
  4. package/AIController.js +44 -49
  5. package/AIController.js.map +1 -1
  6. package/AIOpenAIRealtimeInterface.d.ts +1 -1
  7. package/AnthropicAIChatInterface.js +4 -4
  8. package/AnthropicAIChatInterface.js.map +1 -1
  9. package/AuthController.d.ts +78 -10
  10. package/AuthController.js +230 -166
  11. package/AuthController.js.map +1 -1
  12. package/AuthStore.d.ts +317 -4
  13. package/BigIntPatch.d.ts +1 -0
  14. package/BigIntPatch.js +24 -0
  15. package/BigIntPatch.js.map +1 -0
  16. package/BlockadeLabsGenerateSkyboxInterface.js +4 -4
  17. package/BlockadeLabsGenerateSkyboxInterface.js.map +1 -1
  18. package/CachingConfigStore.d.ts +8 -1
  19. package/CachingConfigStore.js +50 -0
  20. package/CachingConfigStore.js.map +1 -1
  21. package/ComIdConfig.d.ts +132 -86
  22. package/ComIdConfig.js +5 -5
  23. package/ComIdConfig.js.map +1 -1
  24. package/ConfigurationStore.d.ts +1393 -3
  25. package/ConfigurationStore.js +49 -0
  26. package/ConfigurationStore.js.map +1 -1
  27. package/DataRecordsController.js +28 -28
  28. package/DataRecordsController.js.map +1 -1
  29. package/EventRecordsController.js +9 -9
  30. package/EventRecordsController.js.map +1 -1
  31. package/FileRecordsController.js +18 -17
  32. package/FileRecordsController.js.map +1 -1
  33. package/GoogleAIChatInterface.js +4 -4
  34. package/GoogleAIChatInterface.js.map +1 -1
  35. package/HttpTestUtils.d.ts +48 -0
  36. package/HttpTestUtils.js +256 -0
  37. package/HttpTestUtils.js.map +1 -0
  38. package/LivekitController.js +2 -2
  39. package/LivekitController.js.map +1 -1
  40. package/LoomController.js +3 -4
  41. package/LoomController.js.map +1 -1
  42. package/MemoryStore.d.ts +60 -7
  43. package/MemoryStore.js +427 -59
  44. package/MemoryStore.js.map +1 -1
  45. package/MetricsStore.d.ts +11 -0
  46. package/ModerationConfiguration.d.ts +11 -85
  47. package/ModerationConfiguration.js +17 -17
  48. package/ModerationConfiguration.js.map +1 -1
  49. package/ModerationController.js +9 -11
  50. package/ModerationController.js.map +1 -1
  51. package/OpenAIChatInterface.js +8 -13
  52. package/OpenAIChatInterface.js.map +1 -1
  53. package/OpenAIImageInterface.js +4 -5
  54. package/OpenAIImageInterface.js.map +1 -1
  55. package/PolicyController.js +66 -73
  56. package/PolicyController.js.map +1 -1
  57. package/PolicyStore.d.ts +59 -33
  58. package/PolicyStore.js +35 -1
  59. package/PolicyStore.js.map +1 -1
  60. package/PrivoClient.d.ts +3 -1
  61. package/PrivoClient.js +2 -4
  62. package/PrivoClient.js.map +1 -1
  63. package/PrivoConfiguration.d.ts +6 -72
  64. package/PrivoConfiguration.js +30 -31
  65. package/PrivoConfiguration.js.map +1 -1
  66. package/README.md +276 -2
  67. package/RateLimitController.js +2 -2
  68. package/RateLimitController.js.map +1 -1
  69. package/RecordsClient.d.ts +3 -1
  70. package/RecordsClient.js +6 -6
  71. package/RecordsClient.js.map +1 -1
  72. package/RecordsController.d.ts +145 -3
  73. package/RecordsController.js +399 -61
  74. package/RecordsController.js.map +1 -1
  75. package/RecordsServer.d.ts +1932 -1109
  76. package/RecordsStore.d.ts +99 -14
  77. package/RecordsStore.js +8 -10
  78. package/RecordsStore.js.map +1 -1
  79. package/ServerConfig.d.ts +698 -9867
  80. package/ServerConfig.js +457 -377
  81. package/ServerConfig.js.map +1 -1
  82. package/SloydInterface.js +1 -1
  83. package/SloydInterface.js.map +1 -1
  84. package/StabilityAIImageInterface.js +6 -9
  85. package/StabilityAIImageInterface.js.map +1 -1
  86. package/StripeInterface.d.ts +431 -287
  87. package/StripeInterface.js +21 -1
  88. package/StripeInterface.js.map +1 -1
  89. package/SubscriptionConfigBuilder.d.ts +10 -1
  90. package/SubscriptionConfigBuilder.js +72 -41
  91. package/SubscriptionConfigBuilder.js.map +1 -1
  92. package/SubscriptionConfiguration.d.ts +606 -6334
  93. package/SubscriptionConfiguration.js +460 -277
  94. package/SubscriptionConfiguration.js.map +1 -1
  95. package/SubscriptionController.d.ts +677 -4
  96. package/SubscriptionController.js +2986 -186
  97. package/SubscriptionController.js.map +1 -1
  98. package/SystemNotificationMessenger.d.ts +14 -70
  99. package/SystemNotificationMessenger.js +17 -20
  100. package/SystemNotificationMessenger.js.map +1 -1
  101. package/TestUtils.d.ts +18 -3
  102. package/TestUtils.js +84 -8
  103. package/TestUtils.js.map +1 -1
  104. package/TypeUtils.d.ts +991 -0
  105. package/TypeUtils.js +2 -0
  106. package/TypeUtils.js.map +1 -0
  107. package/Utils.d.ts +59 -0
  108. package/Utils.js +507 -3
  109. package/Utils.js.map +1 -1
  110. package/Validations.d.ts +24 -108
  111. package/Validations.js +62 -45
  112. package/Validations.js.map +1 -1
  113. package/ViewTemplateRenderer.d.ts +39 -0
  114. package/ViewTemplateRenderer.js +19 -0
  115. package/ViewTemplateRenderer.js.map +1 -0
  116. package/contracts/ContractRecordsController.d.ts +58 -0
  117. package/contracts/ContractRecordsController.js +144 -0
  118. package/contracts/ContractRecordsController.js.map +1 -0
  119. package/contracts/ContractRecordsStore.d.ts +285 -0
  120. package/contracts/ContractRecordsStore.js +19 -0
  121. package/contracts/ContractRecordsStore.js.map +1 -0
  122. package/contracts/MemoryContractRecordsStore.d.ts +27 -0
  123. package/contracts/MemoryContractRecordsStore.js +124 -0
  124. package/contracts/MemoryContractRecordsStore.js.map +1 -0
  125. package/contracts/index.d.ts +4 -0
  126. package/contracts/index.js +21 -0
  127. package/contracts/index.js.map +1 -0
  128. package/crud/CrudHelpers.d.ts +25 -26
  129. package/crud/CrudHelpers.js +1 -1
  130. package/crud/CrudHelpers.js.map +1 -1
  131. package/crud/CrudRecordsController.js +13 -16
  132. package/crud/CrudRecordsController.js.map +1 -1
  133. package/crud/CrudRecordsControllerTests.d.ts +2 -2
  134. package/crud/CrudRecordsControllerTests.js +605 -580
  135. package/crud/CrudRecordsControllerTests.js.map +1 -1
  136. package/crud/MemoryCrudRecordsStore.js +1 -2
  137. package/crud/MemoryCrudRecordsStore.js.map +1 -1
  138. package/crud/sub/MemorySubCrudRecordsStore.js +4 -6
  139. package/crud/sub/MemorySubCrudRecordsStore.js.map +1 -1
  140. package/crud/sub/SubCrudRecordsController.js +8 -8
  141. package/crud/sub/SubCrudRecordsController.js.map +1 -1
  142. package/database/DatabaseRecordsController.js +1 -2
  143. package/database/DatabaseRecordsController.js.map +1 -1
  144. package/database/SqliteDatabaseInterface.js +1 -2
  145. package/database/SqliteDatabaseInterface.js.map +1 -1
  146. package/dns/DNSDomainNameValidator.d.ts +11 -0
  147. package/dns/DNSDomainNameValidator.js +59 -0
  148. package/dns/DNSDomainNameValidator.js.map +1 -0
  149. package/dns/DomainNameValidator.d.ts +36 -0
  150. package/dns/DomainNameValidator.js +19 -0
  151. package/dns/DomainNameValidator.js.map +1 -0
  152. package/dns/index.d.ts +3 -0
  153. package/dns/index.js +20 -0
  154. package/dns/index.js.map +1 -0
  155. package/financial/FinancialController.d.ts +272 -0
  156. package/financial/FinancialController.js +762 -0
  157. package/financial/FinancialController.js.map +1 -0
  158. package/financial/FinancialInterface.d.ts +352 -0
  159. package/financial/FinancialInterface.js +642 -0
  160. package/financial/FinancialInterface.js.map +1 -0
  161. package/financial/FinancialStore.d.ts +186 -0
  162. package/financial/FinancialStore.js +19 -0
  163. package/financial/FinancialStore.js.map +1 -0
  164. package/financial/MemoryFinancialInterface.d.ts +23 -0
  165. package/financial/MemoryFinancialInterface.js +592 -0
  166. package/financial/MemoryFinancialInterface.js.map +1 -0
  167. package/financial/TigerBeetleFinancialInterface.d.ts +46 -0
  168. package/financial/TigerBeetleFinancialInterface.js +109 -0
  169. package/financial/TigerBeetleFinancialInterface.js.map +1 -0
  170. package/financial/TigerBeetleTestUtils.d.ts +40 -0
  171. package/financial/TigerBeetleTestUtils.js +185 -0
  172. package/financial/TigerBeetleTestUtils.js.map +1 -0
  173. package/financial/Types.d.ts +1 -0
  174. package/financial/Types.js +801 -0
  175. package/financial/Types.js.map +1 -0
  176. package/financial/index.d.ts +6 -0
  177. package/financial/index.js +24 -0
  178. package/financial/index.js.map +1 -0
  179. package/index.d.ts +4 -0
  180. package/index.js +3 -0
  181. package/index.js.map +1 -1
  182. package/notifications/NotificationRecordsController.js +14 -14
  183. package/notifications/NotificationRecordsController.js.map +1 -1
  184. package/notifications/WebPushInterface.d.ts +24 -155
  185. package/notifications/WebPushInterface.js +2 -2
  186. package/notifications/WebPushInterface.js.map +1 -1
  187. package/package.json +72 -70
  188. package/packages/version/MemoryPackageVersionRecordsStore.js +12 -15
  189. package/packages/version/MemoryPackageVersionRecordsStore.js.map +1 -1
  190. package/packages/version/PackageVersionRecordsController.d.ts +19 -0
  191. package/packages/version/PackageVersionRecordsController.js +102 -22
  192. package/packages/version/PackageVersionRecordsController.js.map +1 -1
  193. package/packages/version/PackageVersionRecordsStore.js +6 -8
  194. package/packages/version/PackageVersionRecordsStore.js.map +1 -1
  195. package/purchasable-items/MemoryPurchasableItemRecordsStore.d.ts +7 -0
  196. package/purchasable-items/MemoryPurchasableItemRecordsStore.js +33 -0
  197. package/purchasable-items/MemoryPurchasableItemRecordsStore.js.map +1 -0
  198. package/purchasable-items/PurchasableItemRecordsController.d.ts +16 -0
  199. package/purchasable-items/PurchasableItemRecordsController.js +72 -0
  200. package/purchasable-items/PurchasableItemRecordsController.js.map +1 -0
  201. package/purchasable-items/PurchasableItemRecordsStore.d.ts +66 -0
  202. package/purchasable-items/PurchasableItemRecordsStore.js +2 -0
  203. package/purchasable-items/PurchasableItemRecordsStore.js.map +1 -0
  204. package/purchasable-items/index.d.ts +4 -0
  205. package/purchasable-items/index.js +21 -0
  206. package/purchasable-items/index.js.map +1 -0
  207. package/queue/MemoryQueue.js +1 -1
  208. package/queue/MemoryQueue.js.map +1 -1
  209. package/search/MemorySearchInterface.js +1 -2
  210. package/search/MemorySearchInterface.js.map +1 -1
  211. package/search/SearchRecordsController.d.ts +66 -244
  212. package/search/SearchRecordsController.js +35 -36
  213. package/search/SearchRecordsController.js.map +1 -1
  214. package/search/SearchSyncProcessor.d.ts +7 -83
  215. package/search/TypesenseSearchInterface.js +8 -11
  216. package/search/TypesenseSearchInterface.js.map +1 -1
  217. package/tracing/TracingDecorators.js +5 -8
  218. package/tracing/TracingDecorators.js.map +1 -1
  219. package/webhooks/WebhookEnvironment.d.ts +36 -560
  220. package/webhooks/WebhookEnvironment.js +1 -1
  221. package/webhooks/WebhookEnvironment.js.map +1 -1
  222. package/webhooks/WebhookRecordsController.js +14 -16
  223. package/webhooks/WebhookRecordsController.js.map +1 -1
  224. package/websockets/MemoryLockStore.d.ts +18 -0
  225. package/websockets/MemoryLockStore.js +2 -0
  226. package/websockets/MemoryLockStore.js.map +1 -0
  227. package/websockets/MemoryTempInstRecordsStore.js +15 -27
  228. package/websockets/MemoryTempInstRecordsStore.js.map +1 -1
  229. package/websockets/MemoryWebsocketConnectionStore.js +6 -8
  230. package/websockets/MemoryWebsocketConnectionStore.js.map +1 -1
  231. package/websockets/MemoryWebsocketMessenger.js +1 -2
  232. package/websockets/MemoryWebsocketMessenger.js.map +1 -1
  233. package/websockets/SplitInstRecordsStore.js +2 -2
  234. package/websockets/SplitInstRecordsStore.js.map +1 -1
  235. package/websockets/WebsocketController.d.ts +5 -0
  236. package/websockets/WebsocketController.js +122 -83
  237. package/websockets/WebsocketController.js.map +1 -1
  238. package/RecordsServer.js +0 -6435
  239. package/RecordsServer.js.map +0 -1
@@ -0,0 +1,272 @@
1
+ import type { MultiError, Result, ServerError, SimpleError } from '@casual-simulation/aux-common';
2
+ import { AccountBalance } from '@casual-simulation/aux-common';
3
+ import type { InterfaceTransferError, TransferCodes } from './FinancialInterface';
4
+ import { AccountCodes, LEDGERS, type FinancialInterface } from './FinancialInterface';
5
+ import type { Account, Transfer } from 'tigerbeetle-node';
6
+ import { TransferFlags } from 'tigerbeetle-node';
7
+ import type { FinancialAccount, FinancialAccountFilter, FinancialStore, UniqueFinancialAccountFilter } from './FinancialStore';
8
+ export declare class FinancialController {
9
+ private _financialInterface;
10
+ private _idempotentKeyMaxAgeMS;
11
+ private _financialStore;
12
+ constructor(financialInterface: FinancialInterface, financialStore: FinancialStore);
13
+ init(): Promise<Result<void, SimpleError>>;
14
+ generateId(): bigint;
15
+ /**
16
+ * Creates a new account with the given code.
17
+ * For internal use only.
18
+ * @param code The code for the new account.
19
+ * @param ledger The ledger for the new account.
20
+ */
21
+ createAccount(code: AccountCodes, ledger: (typeof LEDGERS)[keyof typeof LEDGERS]): Promise<CreateFinancialAccountResult>;
22
+ /**
23
+ * Gets the account with the given ID.
24
+ * @param accountId The ID of the account to get.
25
+ * @returns
26
+ */
27
+ getAccount(accountId: bigint | string): Promise<Result<Account, SimpleError>>;
28
+ getTransfer(transferId: bigint | string): Promise<Result<Transfer, SimpleError>>;
29
+ /**
30
+ * Gets the details for the financial account with the given ID.
31
+ * @param accountId The ID of the account to get details for.
32
+ */
33
+ getAccountDetails(accountId: bigint | string): Promise<GetFinancialAccountResult>;
34
+ /**
35
+ * Attempts to get the financial account for the given filter.
36
+ * @param filter The filter to use.
37
+ */
38
+ getFinancialAccount(filter: UniqueFinancialAccountFilter): Promise<GetFinancialAccountResult>;
39
+ /**
40
+ * Gets or creates a financial account for the given filter.
41
+ * @param filter The filter to use.
42
+ */
43
+ getOrCreateFinancialAccount(filter: UniqueFinancialAccountFilter): Promise<GetFinancialAccountResult>;
44
+ /**
45
+ * Gets the list of accounts for the given filter.
46
+ * @param filter The filter to use.
47
+ */
48
+ listAccounts(filter: FinancialAccountFilter): Promise<GetAccountsResult>;
49
+ /**
50
+ * Gets the account balances for the given account filter.
51
+ * @param filter The filter to use.
52
+ */
53
+ getAccountBalances(filter: Omit<UniqueFinancialAccountFilter, 'ledger'>): Promise<Result<AccountBalances | undefined, SimpleError>>;
54
+ /**
55
+ * Gets the balance for the account matching the given filter.
56
+ * @param filter The filter to use.
57
+ */
58
+ getAccountBalance(filter: UniqueFinancialAccountFilter): Promise<Result<AccountBalance | undefined, SimpleError>>;
59
+ /**
60
+ * Converts the given account data to an account balance.
61
+ * @param account The account to convert.
62
+ */
63
+ convertToAccountBalance(account: Account): AccountBalance;
64
+ /**
65
+ * Transfers funds between two internal accounts.
66
+ * Suitable for moving money between user accounts and contracts.
67
+ * Not suitable for interfacing with external systems such as Stripe.
68
+ *
69
+ * Not for public use.
70
+ * @param request The request for the transfer.
71
+ */
72
+ internalTransaction(request: InternalTransferRequest): Promise<TransferResult>;
73
+ completePendingTransfers(request: PostTransfersRequest): Promise<TransferResult>;
74
+ listTransfers(accountId: bigint | string): Promise<Result<Transfer[], SimpleError>>;
75
+ queryTransfers(query: TransfersQuery): Promise<Result<Transfer[], SimpleError>>;
76
+ private _processTransferResult;
77
+ }
78
+ /**
79
+ * Gets the balance of the given account.
80
+ *
81
+ * For asset accounts, the balance is calculated as: debits_posted - credits_posted.
82
+ * For liability accounts, the balance is calculated as: credits_posted - debits_posted.
83
+ * For revenue accounts, the balance is calculated as: credits_posted - debits_posted.
84
+ *
85
+ * @param account The account to get the balance of.
86
+ * @returns
87
+ */
88
+ export declare function getAccountBalance(account: Account): number;
89
+ /**
90
+ * Gets the balance of the given liability account.
91
+ * For liability accounts, the balance is calculated as: credits_posted - debits_posted.
92
+ * @param account The account to get the balance of.
93
+ */
94
+ export declare function getLiabilityAccountBalance(account: Account): number;
95
+ /**
96
+ * Gets the balance of the given asset account.
97
+ * For asset accounts, the balance is calculated as: debits_posted - credits_posted.
98
+ * @param account The account to get the balance of.
99
+ */
100
+ export declare function getAssetAccountBalance(account: Account): number;
101
+ /**
102
+ * Gets the balance of the given liquidity pool account.
103
+ * For liquidity accounts, the balance is calculated as: debits_posted - credits_posted.
104
+ * @param account The account to get the balance of.
105
+ */
106
+ export declare function getLiquidityPoolBalance(account: Account): number;
107
+ export type CreateFinancialAccountResult = Result<{
108
+ /**
109
+ * The ID of the account that was created.
110
+ */
111
+ id: string;
112
+ }, SimpleError>;
113
+ export interface AccountWithDetails {
114
+ account: Account;
115
+ financialAccount: FinancialAccount;
116
+ }
117
+ export type GetFinancialAccountResult = Result<AccountWithDetails, SimpleError>;
118
+ export type GetAccountsResult = Result<{
119
+ accounts: Account[];
120
+ }, MultiError<SimpleError>>;
121
+ export type TransferError = {
122
+ errorCode: ServerError | 'debits_exceed_credits' | 'credits_exceed_debits' | 'invalid_transfer' | 'unsupported_currency' | 'transfer_already_exists' | 'transfer_already_completed';
123
+ errorMessage: string;
124
+ /**
125
+ * The ID of the account that had the issue.
126
+ */
127
+ accountId?: string;
128
+ /**
129
+ * The errors that occurred during the transfer.
130
+ */
131
+ errors: Omit<InterfaceTransferError, 'transfer'>[];
132
+ };
133
+ export type InternalTransfer = PendingTransfer | NonPendingTransfer;
134
+ export interface InternalTransferBase {
135
+ /**
136
+ * The ID of the transfer that should be created.
137
+ * If null, then a new transfer will be created.
138
+ */
139
+ transferId?: bigint | string | null;
140
+ /**
141
+ * The ID of the account that is being debited.
142
+ */
143
+ debitAccountId: bigint | string;
144
+ /**
145
+ * The ID of the account that is being credited.
146
+ */
147
+ creditAccountId: bigint | string;
148
+ /**
149
+ * The amount of the transfer.
150
+ */
151
+ amount: bigint | number;
152
+ /**
153
+ * The currency of the transfer.
154
+ */
155
+ currency: string;
156
+ /**
157
+ * The code of the transfer.
158
+ */
159
+ code: TransferCodes;
160
+ /**
161
+ * Whether the transfer is a balancing credit or not.
162
+ *
163
+ * Balancing credits are used to transfer at most amount — automatically transferring less than amount as necessary such that `credit_account.credits_pending + credit_account.credits_posted ≤ credit_account.debits_posted`.
164
+ *
165
+ * Defaults to false.
166
+ */
167
+ balancingCredit?: boolean;
168
+ /**
169
+ * Whether the transfer is a balancing debit or not.
170
+ *
171
+ * Transfer at most amount — automatically transferring less than amount as necessary such that `debit_account.debits_pending + debit_account.debits_posted ≤ debit_account.credits_posted`.
172
+ *
173
+ * Defaults to false.
174
+ */
175
+ balancingDebit?: boolean;
176
+ /**
177
+ * Wether to mark the debit account as closed after this transfer is processed.
178
+ * If set, then the transfer will automatically be marked as pending.
179
+ */
180
+ closingDebit?: boolean;
181
+ /**
182
+ * Wether to mark the credit account as closed after this transfer is processed.
183
+ * If set, then the transfer will automatically be marked as pending.
184
+ */
185
+ closingCredit?: boolean;
186
+ }
187
+ export interface NonPendingTransfer extends InternalTransferBase {
188
+ /**
189
+ * Non-pending transfers cannot have a pending state.
190
+ */
191
+ pending?: never;
192
+ timeoutSeconds?: never;
193
+ }
194
+ /**
195
+ * A transfer that is pending completion.
196
+ */
197
+ export interface PendingTransfer extends InternalTransferBase {
198
+ /**
199
+ * Wether the transfer is pending or not.
200
+ */
201
+ pending: true;
202
+ /**
203
+ * The number of seconds before the pending transfer times out.
204
+ *
205
+ * All pending transfers must have a timeout.
206
+ */
207
+ timeoutSeconds: number;
208
+ }
209
+ export interface InternalTransferRequest {
210
+ /**
211
+ * The transfers that should be performed in a transcation.
212
+ */
213
+ transfers: InternalTransfer[];
214
+ /**
215
+ * The ID of the transaction that should be created.
216
+ * If null, then a new transaction will be created.
217
+ */
218
+ transactionId?: bigint | string | null;
219
+ }
220
+ export interface PostTransfersRequest {
221
+ /**
222
+ * The transfers that should be performed in a transcation.
223
+ */
224
+ transfers: (string | bigint)[];
225
+ /**
226
+ * The ID of the transaction that should be created.
227
+ */
228
+ transactionId?: bigint | string | null;
229
+ /**
230
+ * The flags to set on the transfers.
231
+ * If not specified, then post_pending_transfer will be set.
232
+ */
233
+ flags?: TransferFlags;
234
+ }
235
+ export type TransferResult = Result<{
236
+ /**
237
+ * The IDs of the transfers that were created.
238
+ */
239
+ transferIds: string[];
240
+ /**
241
+ * The ID of the transaction that was created.
242
+ */
243
+ transactionId: string;
244
+ }, TransferError>;
245
+ export interface TransfersQuery {
246
+ /**
247
+ * The ID of the transaction to query transfers for.
248
+ */
249
+ transactionId?: bigint | string;
250
+ /**
251
+ * The code to fitler transfers by.
252
+ */
253
+ code?: TransferCodes;
254
+ }
255
+ /**
256
+ * Represents the balances of a user/studio/contract's financial accounts.
257
+ */
258
+ export interface AccountBalances {
259
+ /**
260
+ * The USD account balance.
261
+ *
262
+ * This will be undefined if the user does not have a USD account.
263
+ */
264
+ usd: AccountBalance | undefined;
265
+ /**
266
+ * The credits account balance.
267
+ *
268
+ * This will be undefined if the user does not have a credits account.
269
+ */
270
+ credits: AccountBalance | undefined;
271
+ }
272
+ //# sourceMappingURL=FinancialController.d.ts.map