@funkit/api-base 1.12.1 → 1.12.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.
@@ -10,7 +10,6 @@ export * from './fw-operation';
10
10
  export * from './fw-paymaster';
11
11
  export * from './fw-user';
12
12
  export * from './meld';
13
- export * from './mesh';
14
13
  export * from './moonpay';
15
14
  export * from './organization';
16
15
  export * from './stripe';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/api-base",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Base API for Funkit",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@lifeomic/attempt": "^3.1.0",
13
13
  "big.js": "^6.2.1",
14
- "@funkit/utils": "1.1.9"
14
+ "@funkit/utils": "1.1.10"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "viem": "2.x"
@@ -1,84 +0,0 @@
1
- import { type BaseApiRequest } from '../../consts';
2
- import type { GetCryptocurrencyHoldingsRequest, GetCryptocurrencyHoldingsRequestProxy, GetCryptocurrencyHoldingsResponse, GetLinkTokenRequest, GetLinkTokenResponse, GetTransferIntegrationsRequest, GetTransferIntegrationsResponse, MeshConfigureTransferParams, MeshConfigureTransferParamsProxy, MeshConfigureTransferResponse, MeshExecuteTransferRequest, MeshExecuteTransferRequestProxy, MeshExecuteTransferResponse, PreviewTransferRequest, PreviewTransferRequestProxy, PreviewTransferResponse } from './types';
3
- /**
4
- * @param authToken The authentication token to send the asset from.
5
- * @param type The type of the integration to send the asset from.
6
- * @return https://docs.meshconnect.com/api-reference/portfolio/get-holdings
7
- */
8
- export declare function meshGetCryptocurrencyHoldings({ authToken, type, ...options }: GetCryptocurrencyHoldingsRequest): Promise<GetCryptocurrencyHoldingsResponse>;
9
- export declare function meshGetCryptocurrencyHoldingsProxy({ brokerType, deviceId, ...options }: GetCryptocurrencyHoldingsRequestProxy): Promise<GetCryptocurrencyHoldingsResponse>;
10
- /**
11
- * @return https://docs.meshconnect.com/api-reference/managed-transfers/get-integrations
12
- */
13
- export declare function meshGetTransferIntegrations(options: GetTransferIntegrationsRequest): Promise<GetTransferIntegrationsResponse>;
14
- /**
15
- * @param userId A unique Id representing the end user. Typically this will be a user Id from the
16
- client application. Personally identifiable information, such as an email address or phone number,
17
- should not be used. 50 characters length maximum.
18
- * @param integrationId A unique identifier representing a specific integration obtained from the list of available integrations.
19
- * @param restrictMultipleAccounts The final screen of Link allows users to “continue” back to your app or “Link another account.”
20
- If this param is present then this button will be hidden.
21
- * @param transferOptions Encapsulates transaction-related parameters, including destination addresses and the amount to transfer in fiat currency.
22
- * @return https://docs.meshconnect.com/api-reference/managed-account-authentication/get-link-token-with-parameters
23
- */
24
- export declare function meshGetLinkToken({ userId, integrationId, restrictMultipleAccounts, transferOptions, ...options }: GetLinkTokenRequest): Promise<GetLinkTokenResponse>;
25
- export declare function meshConfigureTransfer({ params, ...options }: BaseApiRequest & {
26
- params: MeshConfigureTransferParams;
27
- }): Promise<MeshConfigureTransferResponse>;
28
- export declare function meshConfigureTransferProxy({ params, ...options }: BaseApiRequest & {
29
- params: MeshConfigureTransferParamsProxy;
30
- }): Promise<MeshConfigureTransferResponse>;
31
- /**
32
- * @param fromAuthToken The authentication token to send the asset from.
33
- * @param fromType The type of the integration to send the asset from.
34
- * @param toAuthToken The authentication token of the target integration. Can be used alternatively to the address in the ToAddress field. If used, toType should also be provided.
35
- * @param toType The type of the target integration to send assets to. Used along with the toAuthToken alternatively to ToAddress.
36
- * @param networkId The network to send the asset over. This is generated by Mesh, it isn't a chainId or chain name.
37
- * @param symbol The symbol of the digital asset to send.
38
- * @param toAddress The target address to send the asset to.
39
- * @param amount The amount to send, in crypto.
40
- * @param amountInFiat The amount to send, in fiat currency. Can be used alternatively to Amount.
41
- * @param fiatCurrency Fiat currency that is to get corresponding converted fiat values of transfer and fee amounts. If not provided, defaults to USD.
42
- * @returns https://docs.meshconnect.com/api-reference/managed-transfers/preview-transfer
43
- */
44
- export declare function meshPreviewTransfer({ fromAuthToken, fromType, toAuthToken, toType, networkId, symbol, toAddress, amount, amountInFiat, fiatCurrency, ...options }: PreviewTransferRequest): Promise<PreviewTransferResponse>;
45
- export declare function meshPreviewTransferProxy({ apiKey, logger, signal, ...props }: PreviewTransferRequestProxy): Promise<PreviewTransferResponse>;
46
- /**
47
- *
48
- * @param fromAuthToken The authentication token to send the asset from.
49
- * @param fromType The type of the integration to send the asset from.
50
- * @param previewId The preview ID of the transfer to execute.
51
- * @param mfaCode Multi-factor auth code that should be provided if the status of the transfer was MfaRequired.
52
- * @returns https://docs.meshconnect.com/api-reference/managed-transfers/execute-transfer
53
- */
54
- export declare function meshExecuteTransfer({ fromAuthToken, fromType, previewId, mfaCode, ...options }: MeshExecuteTransferRequest): Promise<MeshExecuteTransferResponse>;
55
- export declare function meshExecuteTransferProxy({ apiKey, logger, signal, ...props }: MeshExecuteTransferRequestProxy): Promise<MeshExecuteTransferResponse>;
56
- interface SaveTokensToMeshProxyRequestBody extends BaseApiRequest {
57
- deviceId?: string | null;
58
- brokerType: string;
59
- accessToken: string;
60
- refreshToken: string | null;
61
- accessTokenExpiresIn: number;
62
- accessTokenExpiresAt: string;
63
- refreshTokenExpiresAt?: string | null;
64
- }
65
- interface SaveTokensToMeshProxyResponseBody {
66
- id: number;
67
- createdAt: Date;
68
- updatedAt: Date;
69
- deviceId: string;
70
- integrationId: string;
71
- accessToken: string;
72
- accessTokenExpiresAt: Date | null;
73
- accessTokenExpiresIn: number | null;
74
- refreshToken: string | null;
75
- refreshTokenExpiresAt: Date | null;
76
- }
77
- export declare function saveTokensToMeshProxy({ apiKey, logger, signal, ...props }: SaveTokensToMeshProxyRequestBody): Promise<SaveTokensToMeshProxyResponseBody>;
78
- interface RemoveTokensFromMeshProxyRequestBody extends BaseApiRequest {
79
- deviceId: string;
80
- brokerType: string;
81
- }
82
- export declare function removeTokensFromMeshProxy({ deviceId, brokerType, ...options }: RemoveTokensFromMeshProxyRequestBody): Promise<void>;
83
- export {};
84
- //# sourceMappingURL=endpoints.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../../src/services/mesh/endpoints.ts"],"names":[],"mappings":"AAA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AAI,CAAA;IACnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,qBAAqB,EAAE,IAAI,GAAG,IAAI,CAAA;CACnC;AAED,wBAAsB,qBAAqB,CAAC,EAC1C,MAAM,EACN,MAAM,EACN,MAAM,EACN,GAAG,KAAK,EACT,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAU/E;AAED,UAAU,oCAAqC,SAAQ,cAAc;IACnE,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wBAAsB,yBAAyB,CAAC,EAC9C,QAAQ,EACR,UAAU,EACV,GAAG,OAAO,EACX,EAAE,oCAAoC,GAAG,OAAO,CAAC,IAAI,CAAC,CAKtD"}
@@ -1,3 +0,0 @@
1
- export * from './endpoints';
2
- export * from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/mesh/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
@@ -1,294 +0,0 @@
1
- import type { BaseApiRequest } from '../../consts';
2
- export interface MeshError {
3
- displayMessage?: string | null;
4
- errorData?: unknown;
5
- errorType?: string | null;
6
- message?: string | null;
7
- status: string;
8
- }
9
- export interface GetCryptocurrencyHoldingsRequest extends BaseApiRequest {
10
- authToken: string;
11
- type: string;
12
- }
13
- export interface GetCryptocurrencyHoldingsRequestProxy extends BaseApiRequest {
14
- deviceId: string;
15
- brokerType: string;
16
- }
17
- export interface GetTransferIntegrationsRequest extends BaseApiRequest {
18
- }
19
- export interface IntegrationNetworkInfo {
20
- chainId: string;
21
- id: string;
22
- logoUrl: string;
23
- name: string;
24
- nativeSymbol: string;
25
- supportedTokens: string[];
26
- }
27
- export interface TransferIntegration {
28
- networks: IntegrationNetworkInfo[];
29
- supportsIncomingTransfers: boolean;
30
- supportsOutgoingTransfers: boolean;
31
- type: string;
32
- }
33
- export interface GetTransferIntegrationsResponse {
34
- integrations: TransferIntegration[];
35
- }
36
- export interface GetLinkTokenRequest extends BaseApiRequest {
37
- userId: string;
38
- integrationId?: string | null;
39
- restrictMultipleAccounts?: boolean;
40
- transferOptions?: Record<string, unknown> | null;
41
- }
42
- export interface GetLinkTokenResponse {
43
- linkToken: string;
44
- }
45
- export interface PreviewTransferRequest extends BaseApiRequest {
46
- fromAuthToken: string;
47
- fromType: string;
48
- toAuthToken?: string | null;
49
- toType?: string | null;
50
- networkId?: string;
51
- symbol?: string | null;
52
- toAddress?: string | null;
53
- amount?: string | null;
54
- amountInFiat?: string | null;
55
- fiatCurrency?: string | null;
56
- }
57
- export interface PreviewTransferRequestProxy extends Omit<PreviewTransferRequest, 'fromAuthToken' | 'fromType'> {
58
- deviceId: string;
59
- brokerType: string;
60
- }
61
- export interface MeshExecuteTransferRequest extends BaseApiRequest {
62
- fromAuthToken: string;
63
- fromType: string;
64
- previewId: string;
65
- mfaCode?: string | null;
66
- }
67
- export interface MeshExecuteTransferRequestProxy extends Omit<MeshExecuteTransferRequest, 'fromAuthToken' | 'fromType'> {
68
- deviceId: string;
69
- brokerType: string;
70
- }
71
- export declare enum MeshExecuteTransferStatus {
72
- succeeded = "succeeded",
73
- failed = "failed",
74
- mfaRequired = "mfaRequired",
75
- emailConfirmationRequired = "emailConfirmationRequired",
76
- emailConfirmationApprovalRequired = "emailConfirmationApprovalRequired",
77
- deviceConfirmationRequired = "deviceConfirmationRequired",
78
- mfaFailed = "mfaFailed",
79
- addressWhitelistRequired = "addressWhitelistRequired",
80
- secondMfaRequired = "secondMfaRequired"
81
- }
82
- export declare enum MeshExecuteTransferMfaType {
83
- unspecified = "unspecified",
84
- phone = "phone",
85
- email = "email",
86
- totp = "totp",
87
- face = "face",
88
- tradingPin = "tradingPin",
89
- mobile = "mobile"
90
- }
91
- export interface MeshExecuteTransferResponse {
92
- status: MeshExecuteTransferStatus;
93
- mfaType?: MeshExecuteTransferMfaType;
94
- verificationSteps?: MeshExecuteTransferMfaType[];
95
- errorMessage: string | null;
96
- executeTransferResult: object | null;
97
- }
98
- export interface MeshCryptoCurrencyPosition {
99
- symbol: string;
100
- amount: number;
101
- }
102
- export interface GetCryptocurrencyHoldingsResponse {
103
- cryptocurrencyPositions: MeshCryptoCurrencyPosition[];
104
- }
105
- export interface MeshProxyUnauthorizedResponse {
106
- error: string;
107
- }
108
- export interface PreviewTransferResponse {
109
- /** The status of the operation. */
110
- status: 'succeeded' | 'failed' | 'requiresFunding';
111
- /** Error message, if the operation did not complete successfully. */
112
- errorMessage: string | null;
113
- /** Result of the preview. */
114
- previewResult: PreviewTransferResult | null;
115
- transferBalanceFundingAvailability: TransferBalanceFundingAvailability | null;
116
- }
117
- export interface PreviewTransferResult {
118
- previewId: string;
119
- previewExpiresIn: number;
120
- fromAddress: string | null;
121
- toAddress: string | null;
122
- addressTag: string | null;
123
- symbol: string | null;
124
- amount: number;
125
- amountInFiat: number;
126
- totalEstimatedAmount: number;
127
- totalEstimatedAmountInFiat: number;
128
- networkId: string;
129
- networkName: string | null;
130
- contractAddress: string | null;
131
- institutionTransferFee: TransferFee | null;
132
- estimatedNetworkGasFee: TransferFee | null;
133
- decimalPlaces: number | null;
134
- unitPrice: number;
135
- clientTransactionId: string | null;
136
- clientFee: number | null;
137
- customClientFee: TransferFee | null;
138
- processingFeeRetainMethod: ProcessingFeeRetainMethod | null;
139
- transferType: TransferTypeEnum | null;
140
- isCustomClientFeeProvided: boolean;
141
- amountWithCustomClientFee: number;
142
- isFeeIncluded: boolean;
143
- amountToReceive: number;
144
- amountToReceiveInFiat: number;
145
- transferAmountToRequest: number;
146
- }
147
- export interface TransferFee {
148
- fee: number;
149
- feeCurrency: string | null;
150
- feeInFiat: number;
151
- }
152
- export interface ProcessingFeeRetainMethod {
153
- type: 'default' | 'smartDeposit';
154
- processingFeeAddress: string | null;
155
- }
156
- export type TransferTypeEnum = 'deposit' | 'payment' | 'onramp';
157
- export interface TransferBalanceFundingAvailability {
158
- status: 'disabled' | 'available' | 'requiresAmountLowering' | 'notApplicable' | 'unavailable';
159
- transferTotalAmount: number;
160
- unitPrice: number;
161
- gasFeeBuffer: TransferFee | null;
162
- symbol: string | null;
163
- transferTotalAmountInFiat: number;
164
- }
165
- export interface MeshConfigureTransferToAddressParams {
166
- /**
167
- * The address to send the asset to.
168
- */
169
- address: string;
170
- /**
171
- * Secondary address identifier for coins like XRP, XMR, etc.
172
- */
173
- addressTag?: string | null;
174
- /**
175
- * The ID of the network in Front system.
176
- */
177
- networkId: string;
178
- /**
179
- * The symbol of the digital asset.
180
- */
181
- symbol: string;
182
- }
183
- export interface MeshConfigureTransferParams {
184
- /**
185
- * The authentication token to send assets from.
186
- */
187
- fromAuthToken: string;
188
- /**
189
- * The type of the integration to send assets from.
190
- */
191
- fromType: string;
192
- /**
193
- * The authentication token of the target integration. Can be used alternatively to the list of requested address ({@link toAddresses}).
194
- *
195
- * If used, {@link toType} should also be provided.
196
- */
197
- toAuthToken?: string | null;
198
- /**
199
- * The type of the target integration to send assets to. Used along with the {@link toAuthToken} alternatively to {@link toAddresses}.
200
- */
201
- toType?: string | null;
202
- /**
203
- * A list of available addresses provided by the API client. The list can contain all supported addresses by the client.
204
- *
205
- * Front API validates the addresses and returns the list of supported tokens and networks as the result of the operation.
206
- */
207
- toAddresses?: MeshConfigureTransferToAddressParams[] | null;
208
- /**
209
- * If provided, Front API returns only networks that support transferring of this symbol.
210
- */
211
- symbol?: string | null;
212
- /**
213
- * If provided, Front API configures the response to only return holdings with enough amount of this crypto for the transfer.
214
- */
215
- amount?: number | null;
216
- /**
217
- * If provided, Front API configures the response to only contain holdings with enough value (converted to fiat) for the transfer. Can be used alternatively to {@link amount}.
218
- */
219
- amountInFiat?: number | null;
220
- /**
221
- * Fiat currency that is to get corresponding converted fiat values of transfer and fee amounts. If not provided, defaults to `"USD"`.
222
- */
223
- fiatCurrency?: string | null;
224
- /**
225
- * If provided, Front API configures the response to include the requested network only.
226
- */
227
- networkId?: string | null;
228
- /**
229
- * Specifies if all the fees are included in the amount to transfer.
230
- */
231
- isInclusiveFeeEnabled?: boolean;
232
- }
233
- export interface MeshConfigureTransferParamsProxy extends Omit<MeshConfigureTransferParams, 'fromAuthToken' | 'fromType'> {
234
- deviceId: string;
235
- brokerType: string;
236
- }
237
- export interface MeshConfigureTransferResponse {
238
- amountInFiat?: number | null;
239
- fiatCurrency?: string | null;
240
- holdings?: {
241
- availableBalance: number;
242
- availableBalanceInFiat: number;
243
- eligibleForTransfer: boolean;
244
- eligibleForTransferWithFunding: boolean;
245
- ineligibilityReason?: 'amountNotSufficient' | 'eligibleWithFunding' | 'noEligibleNetworks' | 'noPrice' | 'notSupportedForTransferBySource' | 'notSupportedForTransferByTarget' | 'symbolDoesNotMatch';
246
- logoUrl?: string | null;
247
- networks: {
248
- caipNetworkId?: string | null;
249
- eligibleForTransfer: boolean;
250
- eligibleForTransferWithFunding: boolean;
251
- estimatedNetworkGasFee?: {
252
- fee: number;
253
- feeCurrency?: string | null;
254
- feeInFiat: number;
255
- };
256
- id: string;
257
- ineligibilityReason?: 'amountNotSufficient' | 'balanceBelowMinimum' | 'balanceBelowRequestedAmount' | 'eligibleWithFunding' | 'gasFeeAssetBalanceNotEnough' | 'noPrice' | 'nyCoinbaseUserRestrictions' | 'refusedByInstitution' | 'requestedAmountAboveClientMaximum' | 'requestedAmountBelowFees' | 'requestedAmountBelowClientMinimum' | 'requestedAmountBelowMinimum';
258
- institutionTransferFee?: {
259
- fee: number;
260
- feeCurrency?: string | null;
261
- feeInFiat: number;
262
- };
263
- logoUrl?: string | null;
264
- maximumAmount?: number | null;
265
- maximumAmountInFiat?: number | null;
266
- minimumAmount?: number | null;
267
- minimumAmountInFiat?: number | null;
268
- minimumRequiredForTransferAmount?: number | null;
269
- name?: string | null;
270
- totalEstimatedTransferFeeInFiat?: number | null;
271
- toAddress?: string | null;
272
- transferAmount?: number | null;
273
- }[];
274
- symbol?: string | null;
275
- }[];
276
- maximumTransferAmountInFiat?: number | null;
277
- minimumTransferAmountInFiat?: number | null;
278
- status: MeshConfigureTransferStatus;
279
- supportedFiatCurrencies?: string[] | null;
280
- transferBalanceFundingAvailability?: {
281
- status: 'available' | 'disabled' | 'notApplicable' | 'requiresAmountLowering' | 'unavailable';
282
- };
283
- }
284
- export declare enum MeshConfigureTransferStatus {
285
- failed = "failed",
286
- fromIntegrationNotSupported = "fromIntegrationNotSupported",
287
- kycRequired = "kycRequired",
288
- notAuthorizedFrom = "notAuthorizedFrom",
289
- notAuthorizedTo = "notAuthorizedTo",
290
- succeeded = "succeeded",
291
- toIntegrationNotSupported = "toIntegrationNotSupported",
292
- validationFailed = "validationFailed"
293
- }
294
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/services/mesh/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,MAAM,WAAW,SAAS;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gCAAiC,SAAQ,cAAc;IACtE,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,qCAAsC,SAAQ,cAAc;IAC3E,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,8BAA+B,SAAQ,cAAc;CAAG;AAEzE,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAA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