@paxosglobal/sdk 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +268 -0
- package/CHANGELOG.md +35 -0
- package/LICENSE +191 -0
- package/README.md +445 -2
- package/dist/auth.d.ts +60 -0
- package/dist/auth.js +248 -0
- package/dist/auth.js.map +1 -0
- package/dist/client.d.ts +353 -0
- package/dist/client.js +967 -0
- package/dist/client.js.map +1 -0
- package/dist/constants.d.ts +16 -0
- package/dist/constants.js +17 -0
- package/dist/constants.js.map +1 -0
- package/dist/decimal-fields.d.ts +16 -0
- package/dist/decimal-fields.js +570 -0
- package/dist/decimal-fields.js.map +1 -0
- package/dist/decimal.d.ts +25 -0
- package/dist/decimal.js +93 -0
- package/dist/decimal.js.map +1 -0
- package/dist/decode.d.ts +34 -0
- package/dist/decode.js +118 -0
- package/dist/decode.js.map +1 -0
- package/dist/enums.d.ts +1080 -0
- package/dist/enums.js +1031 -0
- package/dist/enums.js.map +1 -0
- package/dist/errors.d.ts +142 -0
- package/dist/errors.js +261 -0
- package/dist/errors.js.map +1 -0
- package/dist/generated-types.d.ts +13629 -0
- package/dist/generated-types.js +3 -0
- package/dist/generated-types.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/models.d.ts +299 -0
- package/dist/models.js +3 -0
- package/dist/models.js.map +1 -0
- package/dist/paxos-client.d.ts +107 -0
- package/dist/paxos-client.js +157 -0
- package/dist/paxos-client.js.map +1 -0
- package/dist/query-keys.d.ts +1 -0
- package/dist/query-keys.js +31 -0
- package/dist/query-keys.js.map +1 -0
- package/dist/response-defaults.d.ts +2 -0
- package/dist/response-defaults.js +109 -0
- package/dist/response-defaults.js.map +1 -0
- package/dist/services/account-members.d.ts +32 -0
- package/dist/services/account-members.js +46 -0
- package/dist/services/account-members.js.map +1 -0
- package/dist/services/accounts.d.ts +74 -0
- package/dist/services/accounts.js +71 -0
- package/dist/services/accounts.js.map +1 -0
- package/dist/services/address-verification.d.ts +72 -0
- package/dist/services/address-verification.js +64 -0
- package/dist/services/address-verification.js.map +1 -0
- package/dist/services/api-credentials.d.ts +44 -0
- package/dist/services/api-credentials.js +42 -0
- package/dist/services/api-credentials.js.map +1 -0
- package/dist/services/claims.d.ts +68 -0
- package/dist/services/claims.js +67 -0
- package/dist/services/claims.js.map +1 -0
- package/dist/services/cross-chain-transfer.d.ts +71 -0
- package/dist/services/cross-chain-transfer.js +68 -0
- package/dist/services/cross-chain-transfer.js.map +1 -0
- package/dist/services/crypto-deposits.d.ts +30 -0
- package/dist/services/crypto-deposits.js +39 -0
- package/dist/services/crypto-deposits.js.map +1 -0
- package/dist/services/crypto-withdrawals.d.ts +60 -0
- package/dist/services/crypto-withdrawals.js +42 -0
- package/dist/services/crypto-withdrawals.js.map +1 -0
- package/dist/services/deposit-addresses.d.ts +54 -0
- package/dist/services/deposit-addresses.js +36 -0
- package/dist/services/deposit-addresses.js.map +1 -0
- package/dist/services/events.d.ts +53 -0
- package/dist/services/events.js +39 -0
- package/dist/services/events.js.map +1 -0
- package/dist/services/exchange.d.ts +52 -0
- package/dist/services/exchange.js +30 -0
- package/dist/services/exchange.js.map +1 -0
- package/dist/services/fees.d.ts +15 -0
- package/dist/services/fees.js +24 -0
- package/dist/services/fees.js.map +1 -0
- package/dist/services/fiat-transfers.d.ts +133 -0
- package/dist/services/fiat-transfers.js +127 -0
- package/dist/services/fiat-transfers.js.map +1 -0
- package/dist/services/identity-controls.d.ts +43 -0
- package/dist/services/identity-controls.js +42 -0
- package/dist/services/identity-controls.js.map +1 -0
- package/dist/services/identity-documents.d.ts +45 -0
- package/dist/services/identity-documents.js +50 -0
- package/dist/services/identity-documents.js.map +1 -0
- package/dist/services/identity.d.ts +122 -0
- package/dist/services/identity.js +66 -0
- package/dist/services/identity.js.map +1 -0
- package/dist/services/index.d.ts +89 -0
- package/dist/services/index.js +55 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/institution-members.d.ts +30 -0
- package/dist/services/institution-members.js +44 -0
- package/dist/services/institution-members.js.map +1 -0
- package/dist/services/internal-transfers.d.ts +15 -0
- package/dist/services/internal-transfers.js +26 -0
- package/dist/services/internal-transfers.js.map +1 -0
- package/dist/services/issuer-quotes.d.ts +72 -0
- package/dist/services/issuer-quotes.js +66 -0
- package/dist/services/issuer-quotes.js.map +1 -0
- package/dist/services/limits.d.ts +20 -0
- package/dist/services/limits.js +23 -0
- package/dist/services/limits.js.map +1 -0
- package/dist/services/market-data.d.ts +15 -0
- package/dist/services/market-data.js +23 -0
- package/dist/services/market-data.js.map +1 -0
- package/dist/services/monitoring-addresses.d.ts +64 -0
- package/dist/services/monitoring-addresses.js +68 -0
- package/dist/services/monitoring-addresses.js.map +1 -0
- package/dist/services/orchestration-rules.d.ts +53 -0
- package/dist/services/orchestration-rules.js +47 -0
- package/dist/services/orchestration-rules.js.map +1 -0
- package/dist/services/orchestrations.d.ts +70 -0
- package/dist/services/orchestrations.js +45 -0
- package/dist/services/orchestrations.js.map +1 -0
- package/dist/services/orders.d.ts +86 -0
- package/dist/services/orders.js +67 -0
- package/dist/services/orders.js.map +1 -0
- package/dist/services/paxos-transfers.d.ts +24 -0
- package/dist/services/paxos-transfers.js +35 -0
- package/dist/services/paxos-transfers.js.map +1 -0
- package/dist/services/payments.d.ts +46 -0
- package/dist/services/payments.js +35 -0
- package/dist/services/payments.js.map +1 -0
- package/dist/services/payout-groups.d.ts +59 -0
- package/dist/services/payout-groups.js +59 -0
- package/dist/services/payout-groups.js.map +1 -0
- package/dist/services/pricing.d.ts +67 -0
- package/dist/services/pricing.js +42 -0
- package/dist/services/pricing.js.map +1 -0
- package/dist/services/profiles.d.ts +106 -0
- package/dist/services/profiles.js +84 -0
- package/dist/services/profiles.js.map +1 -0
- package/dist/services/quote-executions.d.ts +51 -0
- package/dist/services/quote-executions.js +41 -0
- package/dist/services/quote-executions.js.map +1 -0
- package/dist/services/quotes.d.ts +44 -0
- package/dist/services/quotes.js +48 -0
- package/dist/services/quotes.js.map +1 -0
- package/dist/services/reward-addresses.d.ts +80 -0
- package/dist/services/reward-addresses.js +79 -0
- package/dist/services/reward-addresses.js.map +1 -0
- package/dist/services/rewards-statements.d.ts +35 -0
- package/dist/services/rewards-statements.js +32 -0
- package/dist/services/rewards-statements.js.map +1 -0
- package/dist/services/rewards.d.ts +34 -0
- package/dist/services/rewards.js +37 -0
- package/dist/services/rewards.js.map +1 -0
- package/dist/services/sandbox-deposits.d.ts +15 -0
- package/dist/services/sandbox-deposits.js +22 -0
- package/dist/services/sandbox-deposits.js.map +1 -0
- package/dist/services/sandbox-fiat-transfers.d.ts +15 -0
- package/dist/services/sandbox-fiat-transfers.js +24 -0
- package/dist/services/sandbox-fiat-transfers.js.map +1 -0
- package/dist/services/sandbox-identity.d.ts +39 -0
- package/dist/services/sandbox-identity.js +60 -0
- package/dist/services/sandbox-identity.js.map +1 -0
- package/dist/services/settlement.d.ts +76 -0
- package/dist/services/settlement.js +79 -0
- package/dist/services/settlement.js.map +1 -0
- package/dist/services/stablecoin-conversion.d.ts +70 -0
- package/dist/services/stablecoin-conversion.js +65 -0
- package/dist/services/stablecoin-conversion.js.map +1 -0
- package/dist/services/statements.d.ts +44 -0
- package/dist/services/statements.js +35 -0
- package/dist/services/statements.js.map +1 -0
- package/dist/services/tax-documentation.d.ts +21 -0
- package/dist/services/tax-documentation.js +33 -0
- package/dist/services/tax-documentation.js.map +1 -0
- package/dist/services/tax-forms.d.ts +45 -0
- package/dist/services/tax-forms.js +38 -0
- package/dist/services/tax-forms.js.map +1 -0
- package/dist/services/transfers.d.ts +96 -0
- package/dist/services/transfers.js +37 -0
- package/dist/services/transfers.js.map +1 -0
- package/dist/services/travel-rule.d.ts +32 -0
- package/dist/services/travel-rule.js +30 -0
- package/dist/services/travel-rule.js.map +1 -0
- package/dist/services/user-audit-logs.d.ts +45 -0
- package/dist/services/user-audit-logs.js +27 -0
- package/dist/services/user-audit-logs.js.map +1 -0
- package/dist/services/webhooks.d.ts +58 -0
- package/dist/services/webhooks.js +42 -0
- package/dist/services/webhooks.js.map +1 -0
- package/dist/signing.d.ts +33 -0
- package/dist/signing.js +186 -0
- package/dist/signing.js.map +1 -0
- package/dist/testing/fixtures.d.ts +40 -0
- package/dist/testing/fixtures.js +131 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/index.d.ts +28 -0
- package/dist/testing/index.js +28 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/mock-server.d.ts +121 -0
- package/dist/testing/mock-server.js +276 -0
- package/dist/testing/mock-server.js.map +1 -0
- package/dist/timeouts.d.ts +13 -0
- package/dist/timeouts.js +71 -0
- package/dist/timeouts.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +67 -4
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
|
|
2
|
+
/**
|
|
3
|
+
* Per-schema map of field names that represent monetary/decimal values in
|
|
4
|
+
* the API. These fields are transmitted as strings on the wire but should
|
|
5
|
+
* be treated as decimal values for precision.
|
|
6
|
+
*/
|
|
7
|
+
export const DECIMAL_FIELDS_BY_SCHEMA = {
|
|
8
|
+
AssetRewardDetails: new Set(["est_next_accrual_amount", "lifetime_earned", "total_available_rewards"]),
|
|
9
|
+
AttributionAddress: new Set(["balance"]),
|
|
10
|
+
BalanceTypeAmount: new Set(["amount"]),
|
|
11
|
+
CandlestickPrice: new Set(["close", "high", "low", "open", "volume"]),
|
|
12
|
+
Claim: new Set(["amount"]),
|
|
13
|
+
CreateCryptoWithdrawalFeeRequest: new Set(["amount", "total"]),
|
|
14
|
+
CreateCryptoWithdrawalRequest: new Set(["amount", "total"]),
|
|
15
|
+
CreateFiatWithdrawalRequest: new Set(["amount", "total"]),
|
|
16
|
+
CreateInternalTransferRequest: new Set(["amount"]),
|
|
17
|
+
CreateIssuerQuoteRequest: new Set(["base_amount"]),
|
|
18
|
+
CreateIssuerQuoteResponse: new Set(["fee", "price", "quantity", "quote_amount"]),
|
|
19
|
+
CreateObligationRequest: new Set(["amount"]),
|
|
20
|
+
CreateOrchestrationRequest: new Set(["source_amount"]),
|
|
21
|
+
CreateOrderRequest: new Set(["base_amount", "price", "quote_amount", "stop_price"]),
|
|
22
|
+
CreatePaxosTransferRequest: new Set(["amount"]),
|
|
23
|
+
CreateQuoteExecutionRequest: new Set(["base_amount", "quote_amount"]),
|
|
24
|
+
CreateSandboxDepositRequest: new Set(["amount"]),
|
|
25
|
+
CreateStablecoinConversionRequest: new Set(["amount"]),
|
|
26
|
+
CrossChainAttestation: new Set(["burn_amount", "minted_amount"]),
|
|
27
|
+
CrossChainFees: new Set(["forwarding_fee", "transfer_fee"]),
|
|
28
|
+
CrossChainMintAuthorization: new Set(["mint_amount"]),
|
|
29
|
+
CrossChainTransfer: new Set(["burn_amount", "minted_amount"]),
|
|
30
|
+
CrossChainTransferForwarding: new Set(["fee"]),
|
|
31
|
+
CryptoWithdrawalFee: new Set(["amount", "fee", "total"]),
|
|
32
|
+
Execution: new Set(["amount", "commission", "gross_trade_amount", "price", "rebate"]),
|
|
33
|
+
GetIssuerQuoteSettlementAvailabilityResponse: new Set(["buy_quantity", "sell_quantity"]),
|
|
34
|
+
GetRewardDetailsResponse: new Set(["est_next_accrual_amount", "lifetime_earned", "total_available_rewards"]),
|
|
35
|
+
HistoricalPrice: new Set(["average_price"]),
|
|
36
|
+
InitiateSandboxFiatDepositRequest: new Set(["amount"]),
|
|
37
|
+
InstitutionMember: new Set(["ownership"]),
|
|
38
|
+
IssuerQuoteExecution: new Set(["fee", "principal", "token_fee", "token_price", "token_principal"]),
|
|
39
|
+
MarketDetails: new Set(["max_base_amount", "max_quote_amount", "min_base_amount", "min_quote_amount", "tick_rate"]),
|
|
40
|
+
Obligation: new Set(["amount"]),
|
|
41
|
+
Orchestration: new Set(["source_amount"]),
|
|
42
|
+
Order: new Set([
|
|
43
|
+
"amount_filled",
|
|
44
|
+
"base_amount",
|
|
45
|
+
"price",
|
|
46
|
+
"quote_amount",
|
|
47
|
+
"stop_price",
|
|
48
|
+
"volume_weighted_average_price",
|
|
49
|
+
]),
|
|
50
|
+
Payment: new Set(["payment_amount"]),
|
|
51
|
+
PayoutGroup: new Set(["balance"]),
|
|
52
|
+
Pricing: new Set(["current_price", "yesterday_price"]),
|
|
53
|
+
ProfileBalance: new Set(["available", "trading"]),
|
|
54
|
+
Quote: new Set(["price"]),
|
|
55
|
+
QuoteExecution: new Set(["base_amount", "price", "quote_amount"]),
|
|
56
|
+
RewardRate: new Set(["rate"]),
|
|
57
|
+
RewardsStatement: new Set(["avg_daily_balance", "total_accrued"]),
|
|
58
|
+
SmallDepositVerification: new Set(["amount"]),
|
|
59
|
+
StablecoinConversion: new Set(["amount"]),
|
|
60
|
+
StatementBalance: new Set(["amount_paid", "total_amount_owed"]),
|
|
61
|
+
Transfer: new Set(["amount", "fee", "notional_value", "total"]),
|
|
62
|
+
TransferLimit: new Set(["limit", "remaining"]),
|
|
63
|
+
W8BenETaxDocumentation: new Set(["withholding_rate"]),
|
|
64
|
+
W8BenTaxDocumentation: new Set(["withholding_rate"]),
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Per-schema map of fields that reference another schema, directly or via
|
|
68
|
+
* an array, used to resolve the schema of a nested object/array when
|
|
69
|
+
* recursing during decimal conversion.
|
|
70
|
+
*/
|
|
71
|
+
export const NESTED_SCHEMA_REFS = {
|
|
72
|
+
Account: { members: "AccountMember" },
|
|
73
|
+
AddAccountMembersRequest: { members: "AccountMember" },
|
|
74
|
+
AddAccountMembersResponse: { members: "AccountMember" },
|
|
75
|
+
AddInstitutionMembersRequest: { members: "InstitutionMember" },
|
|
76
|
+
AddInstitutionMembersResponse: { members: "InstitutionMember" },
|
|
77
|
+
AddressInfo: { individual_info: "IndividualInfo", institution_info: "InstitutionInfo" },
|
|
78
|
+
AttributionAddressError: { address: "BatchCreateAttributionAddressOutput" },
|
|
79
|
+
BatchCreateAttributionAddressesRequest: { addresses: "BatchCreateAttributionAddressInput" },
|
|
80
|
+
BatchCreateAttributionAddressesResponse: {
|
|
81
|
+
failed_addresses: "AttributionAddressError",
|
|
82
|
+
successful_addresses: "BatchCreateAttributionAddressOutput",
|
|
83
|
+
},
|
|
84
|
+
Beneficiary: { institution_details: "BeneficiaryInstitution", person_details: "BeneficiaryPerson" },
|
|
85
|
+
BeneficiaryInstitution: { physical_address: "GeographicAddress" },
|
|
86
|
+
BeneficiaryPerson: { physical_address: "GeographicAddress" },
|
|
87
|
+
CreateAccountRequest: { account: "Account" },
|
|
88
|
+
CreateAttributionAddressRequest: { address: "AttributionAddress" },
|
|
89
|
+
CreateAttributionAddressResponse: { address: "AttributionAddress" },
|
|
90
|
+
CreateClaimScheduleResponse: { claim_schedule: "ClaimSchedule" },
|
|
91
|
+
CreateCryptoWithdrawalRequest: { beneficiary: "CryptoWithdrawalBeneficiary" },
|
|
92
|
+
CreateFiatAccountRequest: {
|
|
93
|
+
fiat_account_owner: "FiatAccountOwner",
|
|
94
|
+
fiat_network_instructions: "FiatNetworkInstructions",
|
|
95
|
+
},
|
|
96
|
+
CreateIdentityRequest: {
|
|
97
|
+
customer_due_diligence: "CustomerDueDiligence",
|
|
98
|
+
institution_details: "InstitutionDetails",
|
|
99
|
+
institution_members: "InstitutionMember",
|
|
100
|
+
person_details: "PersonDetails",
|
|
101
|
+
tax_details: "TaxDetail",
|
|
102
|
+
},
|
|
103
|
+
CreateMonitoringAddressResponse: { address: "MonitoringAddress" },
|
|
104
|
+
CreateOrchestrationRequest: {
|
|
105
|
+
destination: "CreateOrchestrationRequestDestination",
|
|
106
|
+
source: "CreateOrchestrationRequestSource",
|
|
107
|
+
},
|
|
108
|
+
CreateOrchestrationRequestDestination: {
|
|
109
|
+
crypto: "CreateOrchestrationRequestCryptoDestination",
|
|
110
|
+
fiat: "CreateOrchestrationRequestFiatDestination",
|
|
111
|
+
profile: "CreateOrchestrationRequestProfileDestination",
|
|
112
|
+
},
|
|
113
|
+
CreateOrchestrationRequestSource: { profile: "CreateOrchestrationRequestProfileSource" },
|
|
114
|
+
CreateOrchestrationRuleRequest: {
|
|
115
|
+
destination: "CreateOrchestrationRuleRequestDestination",
|
|
116
|
+
source: "CreateOrchestrationRuleRequestSource",
|
|
117
|
+
},
|
|
118
|
+
CreateOrchestrationRuleRequestDestination: {
|
|
119
|
+
crypto: "CreateOrchestrationRuleRequestCryptoDestination",
|
|
120
|
+
fiat: "CreateOrchestrationRuleRequestFiatDestination",
|
|
121
|
+
profile: "CreateOrchestrationRuleRequestProfileDestination",
|
|
122
|
+
},
|
|
123
|
+
CreateOrchestrationRuleRequestSource: {
|
|
124
|
+
crypto: "CreateOrchestrationRuleRequestCryptoSource",
|
|
125
|
+
fiat: "CreateOrchestrationRuleRequestFiatSource",
|
|
126
|
+
},
|
|
127
|
+
CreateOrchestrationRuleResponse: { rule: "OrchestrationRule" },
|
|
128
|
+
CreatePayoutGroupRequest: { schedule: "ClaimScheduleConfig" },
|
|
129
|
+
CreatePayoutGroupResponse: { group: "PayoutGroup" },
|
|
130
|
+
CreateTaxDocumentationRequest: { tax_documentation: "TaxDocumentationPayload" },
|
|
131
|
+
CreateTransactionRequest: { legs: "CreateObligationRequest" },
|
|
132
|
+
CrossChainAttestation: {
|
|
133
|
+
authorization: "CrossChainMintAuthorization",
|
|
134
|
+
status_details: "CrossChainAttestationStatusDetails",
|
|
135
|
+
},
|
|
136
|
+
CrossChainTransfer: {
|
|
137
|
+
forwarding: "CrossChainTransferForwarding",
|
|
138
|
+
status_details: "CrossChainAttestationStatusDetails",
|
|
139
|
+
},
|
|
140
|
+
CryptoDestinationAddress: { travelrule_metadata: "CryptoDestinationAddressTravelruleMetadata" },
|
|
141
|
+
CryptoDestinationAddressTravelruleMetadata: { beneficiary: "Beneficiary", vasp: "CryptoDestinationAddressVasp" },
|
|
142
|
+
CryptoWithdrawalBeneficiary: {
|
|
143
|
+
institution_details: "CryptoWithdrawalBeneficiaryInstitution",
|
|
144
|
+
person_details: "CryptoWithdrawalBeneficiaryPerson",
|
|
145
|
+
},
|
|
146
|
+
DeleteApiCredentialsResponse: { credentials: "FirstPartyClient" },
|
|
147
|
+
DeleteOrchestrationRuleResponse: { rule: "OrchestrationRule" },
|
|
148
|
+
DeliveryHistorySummary: { attempts: "DeliveryAttempt" },
|
|
149
|
+
FiatAccount: { fiat_account_owner: "FiatAccountOwner", fiat_network_instructions: "FiatNetworkInstructions" },
|
|
150
|
+
FiatAccountOwner: {
|
|
151
|
+
institution_details: "FiatAccountOwnerInstitutionDetails",
|
|
152
|
+
person_details: "FiatAccountOwnerPersonDetails",
|
|
153
|
+
},
|
|
154
|
+
FiatDepositInstructions: {
|
|
155
|
+
fiat_account_owner: "FiatAccountOwner",
|
|
156
|
+
fiat_network_instructions: "FiatNetworkInstructions",
|
|
157
|
+
},
|
|
158
|
+
FiatNetworkInstructions: {
|
|
159
|
+
cbit: "FiatNetworkInstructionsCbit",
|
|
160
|
+
cubix: "FiatNetworkInstructionsCubix",
|
|
161
|
+
dbs_act: "FiatNetworkInstructionsDbsAct",
|
|
162
|
+
rtp: "FiatNetworkInstructionsRtp",
|
|
163
|
+
scb: "FiatNetworkInstructionsScb",
|
|
164
|
+
wire: "FiatNetworkInstructionsWire",
|
|
165
|
+
},
|
|
166
|
+
FiatNetworkInstructionsRtp: {
|
|
167
|
+
fiat_account_owner_address: "MailingAddress",
|
|
168
|
+
routing_details: "FiatNetworkInstructionsRtpRoutingDetails",
|
|
169
|
+
},
|
|
170
|
+
FiatNetworkInstructionsRtpRoutingDetails: { bank_address: "MailingAddress" },
|
|
171
|
+
FiatNetworkInstructionsWire: {
|
|
172
|
+
fiat_account_owner_address: "MailingAddress",
|
|
173
|
+
intermediary_routing_details: "FiatNetworkInstructionsWireRoutingDetails",
|
|
174
|
+
routing_details: "FiatNetworkInstructionsWireRoutingDetails",
|
|
175
|
+
},
|
|
176
|
+
FiatNetworkInstructionsWireRoutingDetails: { bank_address: "MailingAddress" },
|
|
177
|
+
FirstPartyClient: { client_public_keys: "ClientPublicKey" },
|
|
178
|
+
GetMonitoringAddressResponse: { address: "MonitoringAddress" },
|
|
179
|
+
GetRewardDetailsResponse: { asset_details: "AssetRewardDetails", rates: "RewardRate" },
|
|
180
|
+
GetRewardsRatesResponse: { rates: "RewardRate" },
|
|
181
|
+
GetRewardsStatementResponse: { statement: "RewardsStatement" },
|
|
182
|
+
GetVaspResponse: { vasp: "Vasp" },
|
|
183
|
+
Identity: {
|
|
184
|
+
customer_due_diligence: "CustomerDueDiligence",
|
|
185
|
+
institution_details: "InstitutionDetails",
|
|
186
|
+
institution_members: "InstitutionMember",
|
|
187
|
+
person_details: "PersonDetails",
|
|
188
|
+
status_details: "IdentityStatusDetails",
|
|
189
|
+
tax_details: "TaxDetail",
|
|
190
|
+
},
|
|
191
|
+
IdentityRequirement: { errors: "IdentityRequirementError" },
|
|
192
|
+
IdentityStatusDetails: { active_controls: "IdentityControl", requirements: "IdentityRequirement" },
|
|
193
|
+
InitiateSandboxFiatDepositRequest: {
|
|
194
|
+
fiat_account_owner: "FiatAccountOwner",
|
|
195
|
+
fiat_network_instructions: "FiatNetworkInstructions",
|
|
196
|
+
},
|
|
197
|
+
InstitutionDetails: { business_address: "IdentityMailingAddress", incorporation_address: "IdentityMailingAddress" },
|
|
198
|
+
ListAccountsResponse: { items: "Account" },
|
|
199
|
+
ListApiCredentialsResponse: { items: "FirstPartyClient" },
|
|
200
|
+
ListAttributionAddressesResponse: { items: "AttributionAddress" },
|
|
201
|
+
ListClaimSchedulesResponse: { items: "ClaimSchedule" },
|
|
202
|
+
ListClaimsResponse: { items: "Claim" },
|
|
203
|
+
ListCrossChainAttestationsResponse: { items: "CrossChainAttestation" },
|
|
204
|
+
ListCrossChainTransfersResponse: { items: "CrossChainTransfer" },
|
|
205
|
+
ListCryptoDestinationAddressesResponse: { addresses: "CryptoDestinationAddress" },
|
|
206
|
+
ListDeliveryHistoriesResponse: { items: "DeliveryHistorySummary" },
|
|
207
|
+
ListDepositAddressesResponse: { items: "DepositAddress" },
|
|
208
|
+
ListEventsResponse: { events: "Event" },
|
|
209
|
+
ListExecutionsResponse: { items: "Execution" },
|
|
210
|
+
ListFiatAccountsResponse: { items: "FiatAccount" },
|
|
211
|
+
ListFiatDepositInstructionsResponse: { items: "FiatDepositInstructions" },
|
|
212
|
+
ListHistoricalCandlesResponse: { items: "CandlestickPrice" },
|
|
213
|
+
ListHistoricalPricesResponse: { items: "HistoricalPrice" },
|
|
214
|
+
ListIdentitiesResponse: { items: "Identity" },
|
|
215
|
+
ListIdentityControlsResponse: { items: "IdentityControl" },
|
|
216
|
+
ListIdentityDocumentsResponse: { documents: "DocumentDescription" },
|
|
217
|
+
ListIssuerQuoteExecutionsResponse: { issuer_quote_executions: "IssuerQuoteExecution" },
|
|
218
|
+
ListMarketsResponse: { markets: "MarketDetails" },
|
|
219
|
+
ListMonitoringAddressResponse: { addresses: "MonitoringAddress" },
|
|
220
|
+
ListOrchestrationRulesResponse: { items: "OrchestrationRule", rules: "OrchestrationRule" },
|
|
221
|
+
ListOrchestrationsResponse: { items: "Orchestration", orchestrations: "Orchestration" },
|
|
222
|
+
ListOrdersResponse: { items: "Order" },
|
|
223
|
+
ListPaymentsResponse: { payments: "Payment" },
|
|
224
|
+
ListPayoutGroupsResponse: { items: "PayoutGroup" },
|
|
225
|
+
ListPricesResponse: { items: "Pricing" },
|
|
226
|
+
ListProfileBalancesResponse: { items: "ProfileBalance" },
|
|
227
|
+
ListProfilesResponse: { items: "Profile" },
|
|
228
|
+
ListQuoteExecutionsResponse: { items: "QuoteExecution" },
|
|
229
|
+
ListQuotesResponse: { items: "Quote" },
|
|
230
|
+
ListRewardsStatementsResponse: { items: "RewardsStatement" },
|
|
231
|
+
ListStablecoinConversionsResponse: { items: "StablecoinConversion" },
|
|
232
|
+
ListStatementsResponse: { statements: "Statement" },
|
|
233
|
+
ListTaxFormRevisionsResponse: { tax_form_urls: "TaxFormURL" },
|
|
234
|
+
ListTaxFormsResponse: { tax_form_urls: "TaxFormURL" },
|
|
235
|
+
ListTransactionsResponse: { items: "Transaction" },
|
|
236
|
+
ListTransferLimitsResponse: { items: "TransferLimit" },
|
|
237
|
+
ListTransfersResponse: { items: "Transfer" },
|
|
238
|
+
ListUserAuditLogsResponse: { items: "UserAuditLog" },
|
|
239
|
+
ListVaspsResponse: { items: "Vasp" },
|
|
240
|
+
ListVerificationsResponse: { items: "Verification" },
|
|
241
|
+
ListWebhooksResponse: { items: "Webhook" },
|
|
242
|
+
MarketDetails: { market_status: "MarketStatus" },
|
|
243
|
+
MarketStatus: { scheduled_maintenance: "ScheduledMaintenance" },
|
|
244
|
+
Orchestration: {
|
|
245
|
+
destination: "OrchestrationDestination",
|
|
246
|
+
destination_transfer: "TransferDetails",
|
|
247
|
+
fail_reason: "FailReason",
|
|
248
|
+
source: "OrchestrationSource",
|
|
249
|
+
source_transfer: "TransferDetails",
|
|
250
|
+
status_details: "OrchestrationStatusDetails",
|
|
251
|
+
},
|
|
252
|
+
OrchestrationDestination: {
|
|
253
|
+
crypto: "OrchestrationCryptoDestination",
|
|
254
|
+
fiat: "OrchestrationFiatDestination",
|
|
255
|
+
profile: "OrchestrationProfileDestination",
|
|
256
|
+
},
|
|
257
|
+
OrchestrationRule: { destination: "OrchestrationRuleDestination", source: "OrchestrationRuleSource" },
|
|
258
|
+
OrchestrationRuleDestination: {
|
|
259
|
+
crypto: "OrchestrationRuleCryptoDestination",
|
|
260
|
+
fiat: "OrchestrationRuleFiatDestination",
|
|
261
|
+
profile: "OrchestrationRuleProfileDestination",
|
|
262
|
+
},
|
|
263
|
+
OrchestrationRuleSource: {
|
|
264
|
+
crypto: "OrchestrationRuleCryptoSource",
|
|
265
|
+
fiat: "OrchestrationRuleFiatSource",
|
|
266
|
+
profile: "OrchestrationRuleProfileSource",
|
|
267
|
+
},
|
|
268
|
+
OrchestrationSource: {
|
|
269
|
+
crypto: "OrchestrationCryptoSource",
|
|
270
|
+
fiat: "OrchestrationFiatSource",
|
|
271
|
+
profile: "OrchestrationProfileSource",
|
|
272
|
+
},
|
|
273
|
+
OrchestrationStatusDetails: {
|
|
274
|
+
conversion_failed: "ConversionFailed",
|
|
275
|
+
conversion_in_progress: "ConversionInProgress",
|
|
276
|
+
destination_transfer_failed: "DestinationTransferFailed",
|
|
277
|
+
destination_transfer_in_progress: "DestinationTransferInProgress",
|
|
278
|
+
pending_customer_approval: "PendingCustomerApproval",
|
|
279
|
+
policy_rejected: "PolicyRejected",
|
|
280
|
+
travel_rule_info_required: "TravelRuleInfoRequired",
|
|
281
|
+
},
|
|
282
|
+
PersonDetails: { address: "IdentityMailingAddress" },
|
|
283
|
+
ProfileBalance: { balances: "BalanceTypeAmount" },
|
|
284
|
+
PutCryptoDestinationAddressRequest: { travelrule_metadata: "PutCryptoDestinationAddressRequestTravelruleMetadata" },
|
|
285
|
+
PutCryptoDestinationAddressRequestTravelruleMetadata: {
|
|
286
|
+
beneficiary: "Beneficiary",
|
|
287
|
+
vasp: "PutCryptoDestinationAddressRequestVasp",
|
|
288
|
+
},
|
|
289
|
+
PutCryptoDestinationAddressResponse: { address: "CryptoDestinationAddress" },
|
|
290
|
+
RewardsStatement: { files: "RewardsStatementFile" },
|
|
291
|
+
SandboxSetIdentityStatusRequest: { admin_disabled: "SetDisable", user_disabled: "SetDisable" },
|
|
292
|
+
Statement: { files: "StatementFile", statement_balances: "StatementBalance" },
|
|
293
|
+
TaxDocumentation: { tax_documentation: "TaxDocumentationPayload" },
|
|
294
|
+
TaxDocumentationPayload: {
|
|
295
|
+
w_8ben: "W8BenTaxDocumentation",
|
|
296
|
+
w_8ben_e: "W8BenETaxDocumentation",
|
|
297
|
+
w_9: "W9TaxDocumentation",
|
|
298
|
+
},
|
|
299
|
+
Transaction: { legs: "Obligation" },
|
|
300
|
+
Transfer: {
|
|
301
|
+
auto_conversion: "AutoConversion",
|
|
302
|
+
secondary_status: "SecondaryStatus",
|
|
303
|
+
status_details: "TransferStatusDetails",
|
|
304
|
+
},
|
|
305
|
+
TransferStatusDetails: {
|
|
306
|
+
invalid_destination_address: "InvalidDestinationAddress",
|
|
307
|
+
max_rent_exceeded: "MaxRentExceeded",
|
|
308
|
+
missing_trustline: "MissingTrustline",
|
|
309
|
+
pending_customer_approval: "PendingCustomerApproval",
|
|
310
|
+
policy_rejected: "PolicyRejected",
|
|
311
|
+
stale_fee_quote: "StaleFeeQuote",
|
|
312
|
+
},
|
|
313
|
+
UpdateAccountRequest: { account: "Account" },
|
|
314
|
+
UpdateAttributionAddressResponse: { address: "AttributionAddress" },
|
|
315
|
+
UpdateClaimScheduleResponse: { claim_schedule: "ClaimSchedule" },
|
|
316
|
+
UpdateCryptoDepositRequest: { originator_address_info: "AddressInfo" },
|
|
317
|
+
UpdateFiatAccountRequest: {
|
|
318
|
+
fiat_account_owner: "FiatAccountOwner",
|
|
319
|
+
fiat_network_instructions: "UpdateFiatAccountRequestUpdateFiatNetworkInstructions",
|
|
320
|
+
},
|
|
321
|
+
UpdateFiatAccountRequestUpdateFiatNetworkInstructions: { wire: "UpdateFiatNetworkInstructionsUpdateWire" },
|
|
322
|
+
UpdateFiatNetworkInstructionsUpdateWire: {
|
|
323
|
+
fiat_account_owner_address: "MailingAddress",
|
|
324
|
+
intermediary_routing_details: "UpdateWireUpdateRoutingDetails",
|
|
325
|
+
routing_details: "UpdateWireUpdateRoutingDetails",
|
|
326
|
+
},
|
|
327
|
+
UpdateIdentityRequest: {
|
|
328
|
+
customer_due_diligence: "CustomerDueDiligence",
|
|
329
|
+
institution_details: "InstitutionDetails",
|
|
330
|
+
person_details: "PersonDetails",
|
|
331
|
+
tax_details: "TaxDetail",
|
|
332
|
+
},
|
|
333
|
+
UpdateMonitoringAddressResponse: { address: "MonitoringAddress" },
|
|
334
|
+
UpdatePayoutGroupResponse: { group: "PayoutGroup" },
|
|
335
|
+
UpdateWireUpdateRoutingDetails: { bank_address: "MailingAddress" },
|
|
336
|
+
UserAuditLog: { user: "User" },
|
|
337
|
+
Verification: {
|
|
338
|
+
manual_verification: "ManualVerification",
|
|
339
|
+
signature_verification: "SignatureVerification",
|
|
340
|
+
small_deposit_verification: "SmallDepositVerification",
|
|
341
|
+
},
|
|
342
|
+
W8BenETaxDocumentation: { mailing_address: "IdentityMailingAddress", permanent_address: "IdentityMailingAddress" },
|
|
343
|
+
W8BenTaxDocumentation: { mailing_address: "IdentityMailingAddress", permanent_address: "IdentityMailingAddress" },
|
|
344
|
+
W9TaxDocumentation: { address: "IdentityMailingAddress" },
|
|
345
|
+
};
|
|
346
|
+
export const ARRAY_FIELDS_BY_SCHEMA = {
|
|
347
|
+
Account: new Set(["members"]),
|
|
348
|
+
AccountMember: new Set(["roles"]),
|
|
349
|
+
AddAccountMembersResponse: new Set(["members"]),
|
|
350
|
+
AddInstitutionMembersResponse: new Set(["members"]),
|
|
351
|
+
BatchCreateAttributionAddressesResponse: new Set(["failed_addresses", "successful_addresses"]),
|
|
352
|
+
Claim: new Set(["addresses"]),
|
|
353
|
+
ClaimSchedule: new Set(["days_of_month", "days_of_week"]),
|
|
354
|
+
CustomerDueDiligence: new Set(["aliases", "customer_regions"]),
|
|
355
|
+
DeliveryHistorySummary: new Set(["attempts"]),
|
|
356
|
+
DepositAddress: new Set(["compatible_crypto_networks"]),
|
|
357
|
+
DocumentDescription: new Set(["document_types"]),
|
|
358
|
+
FirstPartyClient: new Set(["client_public_keys", "client_scopes", "ip_allowlist"]),
|
|
359
|
+
GetRewardDetailsResponse: new Set(["asset_details", "rates"]),
|
|
360
|
+
GetRewardsRatesResponse: new Set(["rates"]),
|
|
361
|
+
Identity: new Set(["institution_members", "tax_details"]),
|
|
362
|
+
IdentityRequirement: new Set(["errors"]),
|
|
363
|
+
IdentityStatusDetails: new Set(["active_controls", "requirements"]),
|
|
364
|
+
InstitutionMember: new Set(["roles"]),
|
|
365
|
+
ListAccountsResponse: new Set(["items"]),
|
|
366
|
+
ListApiCredentialsResponse: new Set(["items"]),
|
|
367
|
+
ListAttributionAddressesResponse: new Set(["items"]),
|
|
368
|
+
ListClaimSchedulesResponse: new Set(["items"]),
|
|
369
|
+
ListClaimsResponse: new Set(["items"]),
|
|
370
|
+
ListCrossChainAttestationsResponse: new Set(["items"]),
|
|
371
|
+
ListCrossChainTransfersResponse: new Set(["items"]),
|
|
372
|
+
ListCryptoDestinationAddressesResponse: new Set(["addresses"]),
|
|
373
|
+
ListDeliveryHistoriesResponse: new Set(["items"]),
|
|
374
|
+
ListDepositAddressesResponse: new Set(["items"]),
|
|
375
|
+
ListEventsResponse: new Set(["events"]),
|
|
376
|
+
ListExecutionsResponse: new Set(["items"]),
|
|
377
|
+
ListFiatAccountsResponse: new Set(["items"]),
|
|
378
|
+
ListFiatDepositInstructionsResponse: new Set(["items"]),
|
|
379
|
+
ListHistoricalCandlesResponse: new Set(["items"]),
|
|
380
|
+
ListHistoricalPricesResponse: new Set(["items"]),
|
|
381
|
+
ListIdentitiesResponse: new Set(["items"]),
|
|
382
|
+
ListIdentityControlsResponse: new Set(["items"]),
|
|
383
|
+
ListIdentityDocumentsResponse: new Set(["documents", "pending_documents"]),
|
|
384
|
+
ListIssuerQuoteExecutionsResponse: new Set(["issuer_quote_executions"]),
|
|
385
|
+
ListMarketsResponse: new Set(["markets"]),
|
|
386
|
+
ListMonitoringAddressResponse: new Set(["addresses"]),
|
|
387
|
+
ListOrchestrationRulesResponse: new Set(["items", "rules"]),
|
|
388
|
+
ListOrchestrationsResponse: new Set(["items", "orchestrations"]),
|
|
389
|
+
ListOrdersResponse: new Set(["items"]),
|
|
390
|
+
ListPaymentsResponse: new Set(["payments"]),
|
|
391
|
+
ListPayoutGroupsResponse: new Set(["items"]),
|
|
392
|
+
ListPricesResponse: new Set(["items"]),
|
|
393
|
+
ListProfileBalancesResponse: new Set(["items"]),
|
|
394
|
+
ListProfilesResponse: new Set(["items"]),
|
|
395
|
+
ListQuoteExecutionsResponse: new Set(["items"]),
|
|
396
|
+
ListQuotesResponse: new Set(["items"]),
|
|
397
|
+
ListRewardsStatementsResponse: new Set(["items"]),
|
|
398
|
+
ListStablecoinConversionsResponse: new Set(["items"]),
|
|
399
|
+
ListStatementsResponse: new Set(["statements"]),
|
|
400
|
+
ListTaxFormRevisionsResponse: new Set(["tax_form_urls"]),
|
|
401
|
+
ListTaxFormsResponse: new Set(["tax_form_urls"]),
|
|
402
|
+
ListTransactionsResponse: new Set(["items"]),
|
|
403
|
+
ListTransferLimitsResponse: new Set(["items"]),
|
|
404
|
+
ListTransfersResponse: new Set(["items"]),
|
|
405
|
+
ListUserAuditLogsResponse: new Set(["items"]),
|
|
406
|
+
ListVaspsResponse: new Set(["items"]),
|
|
407
|
+
ListVerificationsResponse: new Set(["items"]),
|
|
408
|
+
ListWebhooksResponse: new Set(["items"]),
|
|
409
|
+
MarketStatus: new Set(["scheduled_maintenance"]),
|
|
410
|
+
PersonDetails: new Set(["passthrough_verification_fields"]),
|
|
411
|
+
ProfileBalance: new Set(["balances"]),
|
|
412
|
+
RewardRate: new Set(["networks"]),
|
|
413
|
+
RewardsStatement: new Set(["files"]),
|
|
414
|
+
Statement: new Set(["files", "statement_balances"]),
|
|
415
|
+
Transaction: new Set(["legs"]),
|
|
416
|
+
TransferLimit: new Set(["transfer_types"]),
|
|
417
|
+
Webhook: new Set(["event_types"]),
|
|
418
|
+
};
|
|
419
|
+
export const MAP_FIELDS_BY_SCHEMA = {
|
|
420
|
+
Account: new Set(["metadata"]),
|
|
421
|
+
DepositAddress: new Set(["metadata"]),
|
|
422
|
+
Event: new Set(["object"]),
|
|
423
|
+
FiatAccount: new Set(["metadata"]),
|
|
424
|
+
FiatDepositInstructions: new Set(["metadata"]),
|
|
425
|
+
Identity: new Set(["metadata"]),
|
|
426
|
+
Orchestration: new Set(["metadata"]),
|
|
427
|
+
Order: new Set(["metadata"]),
|
|
428
|
+
QuoteExecution: new Set(["metadata"]),
|
|
429
|
+
StablecoinConversion: new Set(["metadata"]),
|
|
430
|
+
Statement: new Set(["data", "metadata"]),
|
|
431
|
+
Transfer: new Set(["metadata"]),
|
|
432
|
+
UserAuditLog: new Set(["request_payload", "response_payload"]),
|
|
433
|
+
};
|
|
434
|
+
export const ENUM_FIELDS_BY_SCHEMA = {
|
|
435
|
+
Account: { summary_status: "scalar", type: "scalar" },
|
|
436
|
+
AccountMember: { roles: "list", type: "scalar" },
|
|
437
|
+
AttributionAddress: { ledger: "scalar" },
|
|
438
|
+
BatchCreateAttributionAddressOutput: { ledger: "scalar" },
|
|
439
|
+
Claim: { claim_type: "scalar", onchain_status: "scalar" },
|
|
440
|
+
ClaimSchedule: { schedule_type: "scalar" },
|
|
441
|
+
ConversionInProgress: { awaiting_action_from: "scalar" },
|
|
442
|
+
CreateIssuerQuoteResponse: { side: "scalar" },
|
|
443
|
+
CrossChainAttestation: { destination_network: "scalar", source_network: "scalar", status: "scalar" },
|
|
444
|
+
CrossChainAttestationStatusDetails: { code: "scalar" },
|
|
445
|
+
CrossChainTransfer: { destination_network: "scalar", source_network: "scalar", status: "scalar" },
|
|
446
|
+
CryptoDestinationAddress: { crypto_network: "scalar", status: "scalar" },
|
|
447
|
+
CryptoDestinationAddressTravelruleMetadata: { custodian_type: "scalar" },
|
|
448
|
+
CryptoWithdrawalFee: { crypto_network: "scalar" },
|
|
449
|
+
CustomerDueDiligence: {
|
|
450
|
+
customer_regions: "list",
|
|
451
|
+
employment_industry_sector: "scalar",
|
|
452
|
+
employment_status: "scalar",
|
|
453
|
+
estimated_net_worth: "scalar",
|
|
454
|
+
estimated_yearly_income: "scalar",
|
|
455
|
+
expected_transfer_value: "scalar",
|
|
456
|
+
industry_sector: "scalar",
|
|
457
|
+
merchant_funding_source: "scalar",
|
|
458
|
+
purpose_of_account: "scalar",
|
|
459
|
+
source_of_funds: "scalar",
|
|
460
|
+
source_of_wealth: "scalar",
|
|
461
|
+
},
|
|
462
|
+
DeliveryAttempt: { status: "scalar" },
|
|
463
|
+
DeliveryHistorySummary: { delivery_status: "scalar" },
|
|
464
|
+
DepositAddress: { compatible_crypto_networks: "list", conversion_target_asset: "scalar", crypto_network: "scalar" },
|
|
465
|
+
DestinationTransferInProgress: { awaiting_action_from: "scalar" },
|
|
466
|
+
DocumentDescription: { document_types: "list", status: "scalar" },
|
|
467
|
+
Execution: { market: "scalar", side: "scalar" },
|
|
468
|
+
FiatAccount: { status: "scalar" },
|
|
469
|
+
FiatDepositInstructions: { status: "scalar" },
|
|
470
|
+
FiatNetworkInstructionsWireRoutingDetails: { routing_number_type: "scalar" },
|
|
471
|
+
FirstPartyClient: { status: "scalar" },
|
|
472
|
+
Identity: { status: "scalar", summary_status: "scalar", summary_tin_verification_status: "scalar", type: "scalar" },
|
|
473
|
+
IdentityControl: { reason_code: "scalar", set_by: "scalar", type: "scalar" },
|
|
474
|
+
IdentityRequirement: { awaiting_action_from: "scalar", status: "scalar", type: "scalar" },
|
|
475
|
+
IdentityRequirementError: { code: "scalar" },
|
|
476
|
+
InstitutionDetails: {
|
|
477
|
+
additional_screening_status: "scalar",
|
|
478
|
+
cip_id_type: "scalar",
|
|
479
|
+
document_verification_status: "scalar",
|
|
480
|
+
institution_sub_type: "scalar",
|
|
481
|
+
institution_type: "scalar",
|
|
482
|
+
regulation_status: "scalar",
|
|
483
|
+
sanctions_verification_status: "scalar",
|
|
484
|
+
trading_type: "scalar",
|
|
485
|
+
},
|
|
486
|
+
InstitutionMember: { roles: "list", summary_status: "scalar" },
|
|
487
|
+
IssuerQuoteExecution: { status: "scalar" },
|
|
488
|
+
ListHistoricalCandlesResponse: { increment: "scalar", market: "scalar" },
|
|
489
|
+
ListIdentityDocumentsResponse: { pending_documents: "list" },
|
|
490
|
+
MarketDetails: { market: "scalar" },
|
|
491
|
+
MarketStatus: { buy_reason: "scalar", buy_status: "scalar", sell_reason: "scalar", sell_status: "scalar" },
|
|
492
|
+
MonitoringAddress: { crypto_network: "scalar" },
|
|
493
|
+
Obligation: { direction: "scalar" },
|
|
494
|
+
Orchestration: { status: "scalar" },
|
|
495
|
+
OrchestrationRule: { status: "scalar" },
|
|
496
|
+
Order: { market: "scalar", side: "scalar", status: "scalar", time_in_force: "scalar", type: "scalar" },
|
|
497
|
+
Payment: { payment_status: "scalar", payment_type: "scalar", product: "scalar" },
|
|
498
|
+
PayoutGroup: { onchain_status: "scalar" },
|
|
499
|
+
PendingCustomerApproval: { awaiting_action_from: "scalar" },
|
|
500
|
+
PersonDetails: {
|
|
501
|
+
additional_screening_status: "scalar",
|
|
502
|
+
cip_id_type: "scalar",
|
|
503
|
+
govt_id_type: "scalar",
|
|
504
|
+
id_verification_status: "scalar",
|
|
505
|
+
passthrough_verification_fields: "list",
|
|
506
|
+
passthrough_verification_status: "scalar",
|
|
507
|
+
passthrough_verifier_type: "scalar",
|
|
508
|
+
sanctions_verification_status: "scalar",
|
|
509
|
+
verifier_type: "scalar",
|
|
510
|
+
},
|
|
511
|
+
Pricing: { market: "scalar" },
|
|
512
|
+
Profile: { type: "scalar" },
|
|
513
|
+
Quote: { market: "scalar", side: "scalar" },
|
|
514
|
+
QuoteExecution: { market: "scalar", side: "scalar", status: "scalar" },
|
|
515
|
+
RewardRate: { jurisdiction: "scalar", tier: "scalar" },
|
|
516
|
+
RewardsStatement: { status: "scalar", type: "scalar" },
|
|
517
|
+
RewardsStatementFile: { format: "scalar" },
|
|
518
|
+
ScheduledMaintenance: { recurrence: "scalar" },
|
|
519
|
+
SecondaryStatus: { name: "scalar" },
|
|
520
|
+
Statement: { product: "scalar", status: "scalar", type: "scalar" },
|
|
521
|
+
TaxDetail: { tin_verification_status: "scalar" },
|
|
522
|
+
TaxDocumentation: { form_type: "scalar" },
|
|
523
|
+
TaxFormURL: { type: "scalar" },
|
|
524
|
+
Transaction: { status: "scalar" },
|
|
525
|
+
Transfer: { crypto_network: "scalar", direction: "scalar", status: "scalar", type: "scalar" },
|
|
526
|
+
TransferDetails: { status: "scalar" },
|
|
527
|
+
TransferLimit: { transfer_types: "list" },
|
|
528
|
+
TravelRuleInfoRequired: { awaiting_action_from: "scalar" },
|
|
529
|
+
Verification: { status: "scalar", verification_method: "scalar" },
|
|
530
|
+
W8BenETaxDocumentation: {
|
|
531
|
+
completed_for: "scalar",
|
|
532
|
+
income_type: "scalar",
|
|
533
|
+
limitation_on_benefits: "scalar",
|
|
534
|
+
tax_classification: "scalar",
|
|
535
|
+
},
|
|
536
|
+
W8BenTaxDocumentation: { completed_for: "scalar", income_type: "scalar" },
|
|
537
|
+
W9TaxDocumentation: { completed_for: "scalar", tax_classification: "scalar", tin_type: "scalar" },
|
|
538
|
+
Webhook: { auth_type: "scalar", status: "scalar" },
|
|
539
|
+
};
|
|
540
|
+
export const REQUEST_MAP_FIELDS_BY_SCHEMA = {
|
|
541
|
+
Account: new Set(["metadata"]),
|
|
542
|
+
CreateCryptoWithdrawalRequest: new Set(["metadata"]),
|
|
543
|
+
CreateDepositAddressRequest: new Set(["metadata"]),
|
|
544
|
+
CreateFiatAccountRequest: new Set(["metadata"]),
|
|
545
|
+
CreateFiatDepositInstructionsRequest: new Set(["metadata"]),
|
|
546
|
+
CreateFiatWithdrawalRequest: new Set(["metadata"]),
|
|
547
|
+
CreateIdentityRequest: new Set(["metadata"]),
|
|
548
|
+
CreateInternalTransferRequest: new Set(["metadata", "recipient_metadata"]),
|
|
549
|
+
CreateOrchestrationRequest: new Set(["metadata"]),
|
|
550
|
+
CreateOrderRequest: new Set(["metadata"]),
|
|
551
|
+
CreatePaxosTransferRequest: new Set(["metadata", "recipient_metadata"]),
|
|
552
|
+
CreateQuoteExecutionRequest: new Set(["metadata"]),
|
|
553
|
+
CreateStablecoinConversionRequest: new Set(["metadata"]),
|
|
554
|
+
DepositAddress: new Set(["metadata"]),
|
|
555
|
+
Event: new Set(["object"]),
|
|
556
|
+
FiatAccount: new Set(["metadata"]),
|
|
557
|
+
FiatDepositInstructions: new Set(["metadata"]),
|
|
558
|
+
Identity: new Set(["metadata"]),
|
|
559
|
+
Orchestration: new Set(["metadata"]),
|
|
560
|
+
Order: new Set(["metadata"]),
|
|
561
|
+
Problem: new Set(["meta"]),
|
|
562
|
+
QuoteExecution: new Set(["metadata"]),
|
|
563
|
+
StablecoinConversion: new Set(["metadata"]),
|
|
564
|
+
Statement: new Set(["data", "metadata"]),
|
|
565
|
+
Transfer: new Set(["metadata"]),
|
|
566
|
+
UpdateFiatAccountRequest: new Set(["metadata"]),
|
|
567
|
+
UpdateIdentityRequest: new Set(["metadata"]),
|
|
568
|
+
UserAuditLog: new Set(["request_payload", "response_payload"]),
|
|
569
|
+
};
|
|
570
|
+
//# sourceMappingURL=decimal-fields.js.map
|