@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,157 @@
|
|
|
1
|
+
// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
|
|
2
|
+
import { HttpClient } from "./client.js";
|
|
3
|
+
import { AccountMembersService, AccountsService, AddressVerificationService, ApiCredentialsService, ClaimsService, CrossChainTransferService, CryptoDepositsService, CryptoWithdrawalsService, DepositAddressesService, EventsService, ExchangeService, FeesService, FiatTransfersService, IdentityService, IdentityControlsService, IdentityDocumentsService, InstitutionMembersService, InternalTransfersService, IssuerQuotesService, LimitsService, MarketDataService, MonitoringAddressesService, OrchestrationRulesService, OrchestrationsService, OrdersService, PaxosTransfersService, PaymentsService, PayoutGroupsService, PricingService, ProfilesService, QuoteExecutionsService, QuotesService, RewardAddressesService, RewardsService, RewardsStatementsService, SandboxDepositsService, SandboxFiatTransfersService, SandboxIdentityService, SettlementService, StablecoinConversionService, StatementsService, TaxDocumentationService, TaxFormsService, TransfersService, TravelRuleService, UserAuditLogsService, WebhooksService, } from "./services/index.js";
|
|
4
|
+
/**
|
|
5
|
+
* PaxosClient is the primary entry point for the Paxos TypeScript SDK.
|
|
6
|
+
*
|
|
7
|
+
* Construct once and reuse across your application. It is safe to share
|
|
8
|
+
* across concurrent async operations.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import { PaxosClient, Scope } from "@paxosglobal/sdk";
|
|
13
|
+
*
|
|
14
|
+
* const client = new PaxosClient({
|
|
15
|
+
* clientId: process.env.PAXOS_CLIENT_ID!,
|
|
16
|
+
* clientSecret: process.env.PAXOS_CLIENT_SECRET!,
|
|
17
|
+
* scopes: [Scope.TRANSFER_READ_TRANSFER],
|
|
18
|
+
* sandbox: true,
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* const transfer = await client.transfers.getTransfer("txn_123");
|
|
22
|
+
*
|
|
23
|
+
* for await (const t of client.transfers.listTransfers({ profile_ids: ["p_123"] })) {
|
|
24
|
+
* console.log(t.id, t.status);
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export class PaxosClient {
|
|
29
|
+
/** Account Members allow you to associate an Identity with an Account on our Platform. */
|
|
30
|
+
accountMembers;
|
|
31
|
+
/** Accounts connect Identities (persons or institutions) to Profiles (asset balances). */
|
|
32
|
+
accounts;
|
|
33
|
+
addressVerification;
|
|
34
|
+
/** API credentials allow programmatic access to Paxos APIs. */
|
|
35
|
+
apiCredentials;
|
|
36
|
+
/** Claims represent rewards paid out on-chain. */
|
|
37
|
+
claims;
|
|
38
|
+
/** Look up the status of a cross-chain transfer after burning on the source network, and the fees that apply to a destination network and asset. */
|
|
39
|
+
crossChainTransfer;
|
|
40
|
+
/** For Paxos Global PTE Ltd users, update or reject a crypto deposit that does not contain the required travel rule information. */
|
|
41
|
+
cryptoDeposits;
|
|
42
|
+
cryptoWithdrawals;
|
|
43
|
+
depositAddresses;
|
|
44
|
+
/** The Events API allows you to fetch events that occurred on the Paxos platform with the full event payload. */
|
|
45
|
+
events;
|
|
46
|
+
exchange;
|
|
47
|
+
fees;
|
|
48
|
+
/** The Fiat Transfers API allows clients to deposit and withdraw fiat via the following Fiat Networks: Wire (Fedwire and SWIFT) and CUBIX. */
|
|
49
|
+
fiatTransfers;
|
|
50
|
+
/** An Identity represents a person or institution who is able to take actions on the Paxos Platform. */
|
|
51
|
+
identity;
|
|
52
|
+
identityControls;
|
|
53
|
+
/** The Identity Documents API allows clients to send documents to Paxos to validate identities during the KYC process. */
|
|
54
|
+
identityDocuments;
|
|
55
|
+
/** Institution Members allow you to associate persons with an institution on our Platform. */
|
|
56
|
+
institutionMembers;
|
|
57
|
+
internalTransfers;
|
|
58
|
+
/** Issuer Quotes are "held rates" offered by Paxos to mint or redeem Paxos-issued assets at a specific price within a period of time - for example, the option to buy PAXG within the next 5 seconds for $3,000. */
|
|
59
|
+
issuerQuotes;
|
|
60
|
+
limits;
|
|
61
|
+
/** Market data provides various parameters of the order book and historical order data. */
|
|
62
|
+
marketData;
|
|
63
|
+
/** A Monitoring Address is a blockchain address that Paxos monitors daily for eligible stablecoin activity and determines the amount of rewards your organization will earn. */
|
|
64
|
+
monitoringAddresses;
|
|
65
|
+
orchestrationRules;
|
|
66
|
+
orchestrations;
|
|
67
|
+
/** There are four types of orders: market, limit, stop market, and stop limit. */
|
|
68
|
+
orders;
|
|
69
|
+
/** Move assets between two Entities belonging to the same Organization or to a different Organization on the Paxos platform. */
|
|
70
|
+
paxosTransfers;
|
|
71
|
+
/** Payments represent actual transfers of rewards to the payout address associated with a given statement. */
|
|
72
|
+
payments;
|
|
73
|
+
/** Payout groups encapsulate common rewards characteristics. */
|
|
74
|
+
payoutGroups;
|
|
75
|
+
/** Pricing provides historical data related to charting of asset prices. */
|
|
76
|
+
pricing;
|
|
77
|
+
/** Profiles hold asset balances, and every Paxos transaction is on a particular profile. */
|
|
78
|
+
profiles;
|
|
79
|
+
/** Quote Executions buy or sell assets using a Quote obtained from the Quotes flow. */
|
|
80
|
+
quoteExecutions;
|
|
81
|
+
/** Quotes are "held rates" offered by Paxos to buy or sell assets at a specific price within a period of time - for example, the option to buy BTC within the next 30 seconds for $8,000. */
|
|
82
|
+
quotes;
|
|
83
|
+
/** Reward addresses are blockchain addresses registered for reward attribution. */
|
|
84
|
+
rewardAddresses;
|
|
85
|
+
/** Rewards details including current reward rates, next accrual time, lifetime earned amounts, and estimated next accrual. */
|
|
86
|
+
rewards;
|
|
87
|
+
rewardsStatements;
|
|
88
|
+
sandboxDeposits;
|
|
89
|
+
sandboxFiatTransfers;
|
|
90
|
+
sandboxIdentity;
|
|
91
|
+
/** Use the Settlements API to facilitate simultaneous exchange of pre-funded assets. */
|
|
92
|
+
settlement;
|
|
93
|
+
/** Convert between fiat and stablecoin using Create Stablecoin Conversion and check the status of a single conversion or retrieve a list of conversions. */
|
|
94
|
+
stablecoinConversion;
|
|
95
|
+
/** A Statement summarizes all eligible stablecoin rewards for a given organization over a fixed time period. */
|
|
96
|
+
statements;
|
|
97
|
+
taxDocumentation;
|
|
98
|
+
/** All tax forms are associated to a single account_id. */
|
|
99
|
+
taxForms;
|
|
100
|
+
/** Each deposit to and withdrawal from a Paxos account is a Transfer. */
|
|
101
|
+
transfers;
|
|
102
|
+
travelRule;
|
|
103
|
+
/** The User Audit Logs API provides a paginated audit trail of actions performed by human users in the Paxos dashboard, with optional filtering by HTTP method, path, domain, time range, and status code. */
|
|
104
|
+
userAuditLogs;
|
|
105
|
+
webhooks;
|
|
106
|
+
constructor(options) {
|
|
107
|
+
const http = new HttpClient(options);
|
|
108
|
+
this.accountMembers = new AccountMembersService(http);
|
|
109
|
+
this.accounts = new AccountsService(http);
|
|
110
|
+
this.addressVerification = new AddressVerificationService(http);
|
|
111
|
+
this.apiCredentials = new ApiCredentialsService(http);
|
|
112
|
+
this.claims = new ClaimsService(http);
|
|
113
|
+
this.crossChainTransfer = new CrossChainTransferService(http);
|
|
114
|
+
this.cryptoDeposits = new CryptoDepositsService(http);
|
|
115
|
+
this.cryptoWithdrawals = new CryptoWithdrawalsService(http);
|
|
116
|
+
this.depositAddresses = new DepositAddressesService(http);
|
|
117
|
+
this.events = new EventsService(http);
|
|
118
|
+
this.exchange = new ExchangeService(http);
|
|
119
|
+
this.fees = new FeesService(http);
|
|
120
|
+
this.fiatTransfers = new FiatTransfersService(http);
|
|
121
|
+
this.identity = new IdentityService(http);
|
|
122
|
+
this.identityControls = new IdentityControlsService(http);
|
|
123
|
+
this.identityDocuments = new IdentityDocumentsService(http);
|
|
124
|
+
this.institutionMembers = new InstitutionMembersService(http);
|
|
125
|
+
this.internalTransfers = new InternalTransfersService(http);
|
|
126
|
+
this.issuerQuotes = new IssuerQuotesService(http);
|
|
127
|
+
this.limits = new LimitsService(http);
|
|
128
|
+
this.marketData = new MarketDataService(http);
|
|
129
|
+
this.monitoringAddresses = new MonitoringAddressesService(http);
|
|
130
|
+
this.orchestrationRules = new OrchestrationRulesService(http);
|
|
131
|
+
this.orchestrations = new OrchestrationsService(http);
|
|
132
|
+
this.orders = new OrdersService(http);
|
|
133
|
+
this.paxosTransfers = new PaxosTransfersService(http);
|
|
134
|
+
this.payments = new PaymentsService(http);
|
|
135
|
+
this.payoutGroups = new PayoutGroupsService(http);
|
|
136
|
+
this.pricing = new PricingService(http);
|
|
137
|
+
this.profiles = new ProfilesService(http);
|
|
138
|
+
this.quoteExecutions = new QuoteExecutionsService(http);
|
|
139
|
+
this.quotes = new QuotesService(http);
|
|
140
|
+
this.rewardAddresses = new RewardAddressesService(http);
|
|
141
|
+
this.rewards = new RewardsService(http);
|
|
142
|
+
this.rewardsStatements = new RewardsStatementsService(http);
|
|
143
|
+
this.sandboxDeposits = new SandboxDepositsService(http);
|
|
144
|
+
this.sandboxFiatTransfers = new SandboxFiatTransfersService(http);
|
|
145
|
+
this.sandboxIdentity = new SandboxIdentityService(http);
|
|
146
|
+
this.settlement = new SettlementService(http);
|
|
147
|
+
this.stablecoinConversion = new StablecoinConversionService(http);
|
|
148
|
+
this.statements = new StatementsService(http);
|
|
149
|
+
this.taxDocumentation = new TaxDocumentationService(http);
|
|
150
|
+
this.taxForms = new TaxFormsService(http);
|
|
151
|
+
this.transfers = new TransfersService(http);
|
|
152
|
+
this.travelRule = new TravelRuleService(http);
|
|
153
|
+
this.userAuditLogs = new UserAuditLogsService(http);
|
|
154
|
+
this.webhooks = new WebhooksService(http);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=paxos-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paxos-client.js","sourceRoot":"","sources":["../src/paxos-client.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,UAAU,EAA2B,MAAM,aAAa,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EACrB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,aAAa,EACb,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAI7B;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAO,WAAW;IACtB,0FAA0F;IACjF,cAAc,CAAwB;IAC/C,0FAA0F;IACjF,QAAQ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,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,iBAAiB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC5D,IAAI,CAAC,eAAe,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,oBAAoB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,CAAC,eAAe,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,oBAAoB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,gBAAgB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,aAAa,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { HttpClient, type PaxosClientOptions } from \"./client.js\";\nimport {\n AccountMembersService,\n AccountsService,\n AddressVerificationService,\n ApiCredentialsService,\n ClaimsService,\n CrossChainTransferService,\n CryptoDepositsService,\n CryptoWithdrawalsService,\n DepositAddressesService,\n EventsService,\n ExchangeService,\n FeesService,\n FiatTransfersService,\n IdentityService,\n IdentityControlsService,\n IdentityDocumentsService,\n InstitutionMembersService,\n InternalTransfersService,\n IssuerQuotesService,\n LimitsService,\n MarketDataService,\n MonitoringAddressesService,\n OrchestrationRulesService,\n OrchestrationsService,\n OrdersService,\n PaxosTransfersService,\n PaymentsService,\n PayoutGroupsService,\n PricingService,\n ProfilesService,\n QuoteExecutionsService,\n QuotesService,\n RewardAddressesService,\n RewardsService,\n RewardsStatementsService,\n SandboxDepositsService,\n SandboxFiatTransfersService,\n SandboxIdentityService,\n SettlementService,\n StablecoinConversionService,\n StatementsService,\n TaxDocumentationService,\n TaxFormsService,\n TransfersService,\n TravelRuleService,\n UserAuditLogsService,\n WebhooksService,\n} from \"./services/index.js\";\n\nexport type { PaxosClientOptions };\n\n/**\n * PaxosClient is the primary entry point for the Paxos TypeScript SDK.\n *\n * Construct once and reuse across your application. It is safe to share\n * across concurrent async operations.\n *\n * @example\n * ```typescript\n * import { PaxosClient, Scope } from \"@paxosglobal/sdk\";\n *\n * const client = new PaxosClient({\n * clientId: process.env.PAXOS_CLIENT_ID!,\n * clientSecret: process.env.PAXOS_CLIENT_SECRET!,\n * scopes: [Scope.TRANSFER_READ_TRANSFER],\n * sandbox: true,\n * });\n *\n * const transfer = await client.transfers.getTransfer(\"txn_123\");\n *\n * for await (const t of client.transfers.listTransfers({ profile_ids: [\"p_123\"] })) {\n * console.log(t.id, t.status);\n * }\n * ```\n */\nexport class PaxosClient {\n /** Account Members allow you to associate an Identity with an Account on our Platform. */\n readonly accountMembers: AccountMembersService;\n /** Accounts connect Identities (persons or institutions) to Profiles (asset balances). */\n readonly accounts: AccountsService;\n readonly addressVerification: AddressVerificationService;\n /** API credentials allow programmatic access to Paxos APIs. */\n readonly apiCredentials: ApiCredentialsService;\n /** Claims represent rewards paid out on-chain. */\n readonly claims: ClaimsService;\n /** Look up the status of a cross-chain transfer after burning on the source network, and the fees that apply to a destination network and asset. */\n readonly crossChainTransfer: CrossChainTransferService;\n /** For Paxos Global PTE Ltd users, update or reject a crypto deposit that does not contain the required travel rule information. */\n readonly cryptoDeposits: CryptoDepositsService;\n readonly cryptoWithdrawals: CryptoWithdrawalsService;\n readonly depositAddresses: DepositAddressesService;\n /** The Events API allows you to fetch events that occurred on the Paxos platform with the full event payload. */\n readonly events: EventsService;\n readonly exchange: ExchangeService;\n readonly fees: FeesService;\n /** The Fiat Transfers API allows clients to deposit and withdraw fiat via the following Fiat Networks: Wire (Fedwire and SWIFT) and CUBIX. */\n readonly fiatTransfers: FiatTransfersService;\n /** An Identity represents a person or institution who is able to take actions on the Paxos Platform. */\n readonly identity: IdentityService;\n readonly identityControls: IdentityControlsService;\n /** The Identity Documents API allows clients to send documents to Paxos to validate identities during the KYC process. */\n readonly identityDocuments: IdentityDocumentsService;\n /** Institution Members allow you to associate persons with an institution on our Platform. */\n readonly institutionMembers: InstitutionMembersService;\n readonly internalTransfers: InternalTransfersService;\n /** Issuer Quotes are \"held rates\" offered by Paxos to mint or redeem Paxos-issued assets at a specific price within a period of time - for example, the option to buy PAXG within the next 5 seconds for $3,000. */\n readonly issuerQuotes: IssuerQuotesService;\n readonly limits: LimitsService;\n /** Market data provides various parameters of the order book and historical order data. */\n readonly marketData: MarketDataService;\n /** A Monitoring Address is a blockchain address that Paxos monitors daily for eligible stablecoin activity and determines the amount of rewards your organization will earn. */\n readonly monitoringAddresses: MonitoringAddressesService;\n readonly orchestrationRules: OrchestrationRulesService;\n readonly orchestrations: OrchestrationsService;\n /** There are four types of orders: market, limit, stop market, and stop limit. */\n readonly orders: OrdersService;\n /** Move assets between two Entities belonging to the same Organization or to a different Organization on the Paxos platform. */\n readonly paxosTransfers: PaxosTransfersService;\n /** Payments represent actual transfers of rewards to the payout address associated with a given statement. */\n readonly payments: PaymentsService;\n /** Payout groups encapsulate common rewards characteristics. */\n readonly payoutGroups: PayoutGroupsService;\n /** Pricing provides historical data related to charting of asset prices. */\n readonly pricing: PricingService;\n /** Profiles hold asset balances, and every Paxos transaction is on a particular profile. */\n readonly profiles: ProfilesService;\n /** Quote Executions buy or sell assets using a Quote obtained from the Quotes flow. */\n readonly quoteExecutions: QuoteExecutionsService;\n /** Quotes are \"held rates\" offered by Paxos to buy or sell assets at a specific price within a period of time - for example, the option to buy BTC within the next 30 seconds for $8,000. */\n readonly quotes: QuotesService;\n /** Reward addresses are blockchain addresses registered for reward attribution. */\n readonly rewardAddresses: RewardAddressesService;\n /** Rewards details including current reward rates, next accrual time, lifetime earned amounts, and estimated next accrual. */\n readonly rewards: RewardsService;\n readonly rewardsStatements: RewardsStatementsService;\n readonly sandboxDeposits: SandboxDepositsService;\n readonly sandboxFiatTransfers: SandboxFiatTransfersService;\n readonly sandboxIdentity: SandboxIdentityService;\n /** Use the Settlements API to facilitate simultaneous exchange of pre-funded assets. */\n readonly settlement: SettlementService;\n /** Convert between fiat and stablecoin using Create Stablecoin Conversion and check the status of a single conversion or retrieve a list of conversions. */\n readonly stablecoinConversion: StablecoinConversionService;\n /** A Statement summarizes all eligible stablecoin rewards for a given organization over a fixed time period. */\n readonly statements: StatementsService;\n readonly taxDocumentation: TaxDocumentationService;\n /** All tax forms are associated to a single account_id. */\n readonly taxForms: TaxFormsService;\n /** Each deposit to and withdrawal from a Paxos account is a Transfer. */\n readonly transfers: TransfersService;\n readonly travelRule: TravelRuleService;\n /** The User Audit Logs API provides a paginated audit trail of actions performed by human users in the Paxos dashboard, with optional filtering by HTTP method, path, domain, time range, and status code. */\n readonly userAuditLogs: UserAuditLogsService;\n readonly webhooks: WebhooksService;\n\n constructor(options: PaxosClientOptions) {\n const http = new HttpClient(options);\n this.accountMembers = new AccountMembersService(http);\n this.accounts = new AccountsService(http);\n this.addressVerification = new AddressVerificationService(http);\n this.apiCredentials = new ApiCredentialsService(http);\n this.claims = new ClaimsService(http);\n this.crossChainTransfer = new CrossChainTransferService(http);\n this.cryptoDeposits = new CryptoDepositsService(http);\n this.cryptoWithdrawals = new CryptoWithdrawalsService(http);\n this.depositAddresses = new DepositAddressesService(http);\n this.events = new EventsService(http);\n this.exchange = new ExchangeService(http);\n this.fees = new FeesService(http);\n this.fiatTransfers = new FiatTransfersService(http);\n this.identity = new IdentityService(http);\n this.identityControls = new IdentityControlsService(http);\n this.identityDocuments = new IdentityDocumentsService(http);\n this.institutionMembers = new InstitutionMembersService(http);\n this.internalTransfers = new InternalTransfersService(http);\n this.issuerQuotes = new IssuerQuotesService(http);\n this.limits = new LimitsService(http);\n this.marketData = new MarketDataService(http);\n this.monitoringAddresses = new MonitoringAddressesService(http);\n this.orchestrationRules = new OrchestrationRulesService(http);\n this.orchestrations = new OrchestrationsService(http);\n this.orders = new OrdersService(http);\n this.paxosTransfers = new PaxosTransfersService(http);\n this.payments = new PaymentsService(http);\n this.payoutGroups = new PayoutGroupsService(http);\n this.pricing = new PricingService(http);\n this.profiles = new ProfilesService(http);\n this.quoteExecutions = new QuoteExecutionsService(http);\n this.quotes = new QuotesService(http);\n this.rewardAddresses = new RewardAddressesService(http);\n this.rewards = new RewardsService(http);\n this.rewardsStatements = new RewardsStatementsService(http);\n this.sandboxDeposits = new SandboxDepositsService(http);\n this.sandboxFiatTransfers = new SandboxFiatTransfersService(http);\n this.sandboxIdentity = new SandboxIdentityService(http);\n this.settlement = new SettlementService(http);\n this.stablecoinConversion = new StablecoinConversionService(http);\n this.statements = new StatementsService(http);\n this.taxDocumentation = new TaxDocumentationService(http);\n this.taxForms = new TaxFormsService(http);\n this.transfers = new TransfersService(http);\n this.travelRule = new TravelRuleService(http);\n this.userAuditLogs = new UserAuditLogsService(http);\n this.webhooks = new WebhooksService(http);\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const QUERY_WIRE_NAMES: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
|
|
2
|
+
export const QUERY_WIRE_NAMES = {
|
|
3
|
+
attempt_at_eq: "attempt_at.eq",
|
|
4
|
+
attempt_at_gt: "attempt_at.gt",
|
|
5
|
+
attempt_at_gte: "attempt_at.gte",
|
|
6
|
+
attempt_at_lt: "attempt_at.lt",
|
|
7
|
+
attempt_at_lte: "attempt_at.lte",
|
|
8
|
+
created_at_begin: "created_at.begin",
|
|
9
|
+
created_at_end: "created_at.end",
|
|
10
|
+
created_at_eq: "created_at.eq",
|
|
11
|
+
created_at_gt: "created_at.gt",
|
|
12
|
+
created_at_gte: "created_at.gte",
|
|
13
|
+
created_at_lt: "created_at.lt",
|
|
14
|
+
created_at_lte: "created_at.lte",
|
|
15
|
+
created_range_begin: "created_range.begin",
|
|
16
|
+
created_range_end: "created_range.end",
|
|
17
|
+
order_time_begin: "order_time.begin",
|
|
18
|
+
order_time_end: "order_time.end",
|
|
19
|
+
pagination_limit: "pagination.limit",
|
|
20
|
+
pagination_offset: "pagination.offset",
|
|
21
|
+
range_begin: "range.begin",
|
|
22
|
+
range_end: "range.end",
|
|
23
|
+
updated_at_begin: "updated_at.begin",
|
|
24
|
+
updated_at_end: "updated_at.end",
|
|
25
|
+
updated_at_eq: "updated_at.eq",
|
|
26
|
+
updated_at_gt: "updated_at.gt",
|
|
27
|
+
updated_at_gte: "updated_at.gte",
|
|
28
|
+
updated_at_lt: "updated_at.lt",
|
|
29
|
+
updated_at_lte: "updated_at.lte",
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=query-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.js","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,MAAM,CAAC,MAAM,gBAAgB,GAAqC;IAChE,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,gBAAgB;CACjC,CAAC","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nexport const QUERY_WIRE_NAMES: Readonly<Record<string, string>> = {\n attempt_at_eq: \"attempt_at.eq\",\n attempt_at_gt: \"attempt_at.gt\",\n attempt_at_gte: \"attempt_at.gte\",\n attempt_at_lt: \"attempt_at.lt\",\n attempt_at_lte: \"attempt_at.lte\",\n created_at_begin: \"created_at.begin\",\n created_at_end: \"created_at.end\",\n created_at_eq: \"created_at.eq\",\n created_at_gt: \"created_at.gt\",\n created_at_gte: \"created_at.gte\",\n created_at_lt: \"created_at.lt\",\n created_at_lte: \"created_at.lte\",\n created_range_begin: \"created_range.begin\",\n created_range_end: \"created_range.end\",\n order_time_begin: \"order_time.begin\",\n order_time_end: \"order_time.end\",\n pagination_limit: \"pagination.limit\",\n pagination_offset: \"pagination.offset\",\n range_begin: \"range.begin\",\n range_end: \"range.end\",\n updated_at_begin: \"updated_at.begin\",\n updated_at_end: \"updated_at.end\",\n updated_at_eq: \"updated_at.eq\",\n updated_at_gt: \"updated_at.gt\",\n updated_at_gte: \"updated_at.gte\",\n updated_at_lt: \"updated_at.lt\",\n updated_at_lte: \"updated_at.lte\",\n};\n"]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
|
|
2
|
+
export const RESPONSE_DEFAULTS = {
|
|
3
|
+
AccountMember: { identity_id: "string" },
|
|
4
|
+
AddAccountMembersResponse: { account_id: "string" },
|
|
5
|
+
AddInstitutionMembersResponse: { institution_id: "string" },
|
|
6
|
+
BalanceTypeAmount: { amount: "decimal", balance_type: "string" },
|
|
7
|
+
BeneficiaryInstitution: { name: "string" },
|
|
8
|
+
BeneficiaryPerson: { first_name: "string", last_name: "string" },
|
|
9
|
+
ClientPublicKey: { algorithm: "string", nickname: "string", public_key: "string" },
|
|
10
|
+
CreateIssuerQuoteExecutionResponse: { id: "string" },
|
|
11
|
+
CreateIssuerQuoteResponse: {
|
|
12
|
+
fee: "decimal",
|
|
13
|
+
market: "string",
|
|
14
|
+
price: "decimal",
|
|
15
|
+
quantity: "decimal",
|
|
16
|
+
quote_amount: "decimal",
|
|
17
|
+
quote_id: "string",
|
|
18
|
+
},
|
|
19
|
+
CrossChainAttestation: { receipt: "string", source_tx_hash: "string", witness_payload: "string" },
|
|
20
|
+
CrossChainAttestationStatusDetails: { message: "string" },
|
|
21
|
+
CrossChainFees: { forwarding_fee: "decimal", transfer_fee: "decimal" },
|
|
22
|
+
CrossChainMintAuthorization: { authorizer_signature: "string", mint_amount: "decimal" },
|
|
23
|
+
CrossChainTransfer: { receipt: "string", source_tx_hash: "string" },
|
|
24
|
+
CryptoDestinationAddress: { address: "string", id: "string" },
|
|
25
|
+
CryptoWithdrawalFee: { asset: "string", destination_address: "string", fee: "decimal", id: "string" },
|
|
26
|
+
DepositAddress: { address: "string", customer_id: "string", id: "string", profile_id: "string" },
|
|
27
|
+
FiatAccount: { id: "string" },
|
|
28
|
+
FiatAccountOwnerInstitutionDetails: { name: "string" },
|
|
29
|
+
FiatAccountOwnerPersonDetails: { first_name: "string", last_name: "string" },
|
|
30
|
+
FiatDepositInstructions: { id: "string", identity_id: "string", memo_id: "string", profile_id: "string" },
|
|
31
|
+
FiatNetworkInstructionsCbit: { wallet_address: "string" },
|
|
32
|
+
FiatNetworkInstructionsCubix: { account_id: "string" },
|
|
33
|
+
FiatNetworkInstructionsDbsAct: { account_number: "string" },
|
|
34
|
+
FiatNetworkInstructionsRtp: { account_number: "string" },
|
|
35
|
+
FiatNetworkInstructionsRtpRoutingDetails: { routing_number: "string" },
|
|
36
|
+
FiatNetworkInstructionsScb: { account_number: "string" },
|
|
37
|
+
FiatNetworkInstructionsWire: { account_number: "string" },
|
|
38
|
+
FiatNetworkInstructionsWireRoutingDetails: { bank_name: "string", routing_number: "string" },
|
|
39
|
+
GeographicAddress: { country: "string" },
|
|
40
|
+
GetIssuerQuoteSettlementAvailabilityResponse: { buy_quantity: "decimal", market: "string", sell_quantity: "decimal" },
|
|
41
|
+
Identity: { id: "string" },
|
|
42
|
+
IdentityControl: { id: "string" },
|
|
43
|
+
IdentityMailingAddress: { address1: "string", city: "string", country: "string", province: "string" },
|
|
44
|
+
IdentityRequirementError: { description: "string" },
|
|
45
|
+
InstitutionMember: { identity_id: "string" },
|
|
46
|
+
IssuerQuoteExecution: {
|
|
47
|
+
asset_type: "string",
|
|
48
|
+
fee: "decimal",
|
|
49
|
+
id: "string",
|
|
50
|
+
principal: "decimal",
|
|
51
|
+
profile_id: "string",
|
|
52
|
+
token_fee: "decimal",
|
|
53
|
+
token_price: "decimal",
|
|
54
|
+
token_principal: "decimal",
|
|
55
|
+
},
|
|
56
|
+
MailingAddress: { country: "string" },
|
|
57
|
+
MonitoringAddress: { address: "string", id: "string" },
|
|
58
|
+
Obligation: { amount: "decimal", asset: "string", id: "string" },
|
|
59
|
+
PayoutGroup: {
|
|
60
|
+
asset_type: "string",
|
|
61
|
+
balance: "decimal",
|
|
62
|
+
claimer_address: "string",
|
|
63
|
+
id: "string",
|
|
64
|
+
jurisdiction: "string",
|
|
65
|
+
ledger: "string",
|
|
66
|
+
rate_id: "string",
|
|
67
|
+
},
|
|
68
|
+
Profile: { id: "string", nickname: "string" },
|
|
69
|
+
ProfileBalance: { asset: "string", available: "decimal", trading: "decimal" },
|
|
70
|
+
Quote: { base_asset: "string", id: "string", price: "decimal", quote_asset: "string" },
|
|
71
|
+
QuoteExecution: {
|
|
72
|
+
base_amount: "decimal",
|
|
73
|
+
base_asset: "string",
|
|
74
|
+
id: "string",
|
|
75
|
+
price: "decimal",
|
|
76
|
+
profile_id: "string",
|
|
77
|
+
quote_amount: "decimal",
|
|
78
|
+
quote_asset: "string",
|
|
79
|
+
quote_id: "string",
|
|
80
|
+
},
|
|
81
|
+
Transaction: { id: "string", ref_id: "string", source_profile_id: "string", target_profile_id: "string" },
|
|
82
|
+
Transfer: {
|
|
83
|
+
amount: "decimal",
|
|
84
|
+
asset: "string",
|
|
85
|
+
customer_id: "string",
|
|
86
|
+
fee: "decimal",
|
|
87
|
+
id: "string",
|
|
88
|
+
profile_id: "string",
|
|
89
|
+
total: "decimal",
|
|
90
|
+
},
|
|
91
|
+
UserAuditLog: { http_method: "string", http_status_code: "number", id: "string", path: "string" },
|
|
92
|
+
Vasp: { id: "string", name: "string" },
|
|
93
|
+
W8BenETaxDocumentation: {
|
|
94
|
+
country_of_organization: "string",
|
|
95
|
+
has_signed_and_certified: "boolean",
|
|
96
|
+
name: "string",
|
|
97
|
+
signature: "string",
|
|
98
|
+
},
|
|
99
|
+
W8BenTaxDocumentation: {
|
|
100
|
+
date_of_birth: "string",
|
|
101
|
+
has_signed_and_certified: "boolean",
|
|
102
|
+
name: "string",
|
|
103
|
+
nationality: "string",
|
|
104
|
+
signature: "string",
|
|
105
|
+
},
|
|
106
|
+
W9TaxDocumentation: { has_signed_and_certified: "boolean", name: "string", signature: "string", tin: "string" },
|
|
107
|
+
Webhook: { endpoint_url: "string", id: "string", name: "string", rps_limit: "number" },
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=response-defaults.js.map
|
|
@@ -0,0 +1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AAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;CACvF,CAAC","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nexport type DefaultKind = \"decimal\" | \"string\" | \"number\" | \"boolean\";\n\nexport const RESPONSE_DEFAULTS: Readonly<Record<string, Readonly<Record<string, DefaultKind>>>> = {\n AccountMember: { identity_id: \"string\" },\n AddAccountMembersResponse: { account_id: \"string\" },\n AddInstitutionMembersResponse: { institution_id: \"string\" },\n BalanceTypeAmount: { amount: \"decimal\", balance_type: \"string\" },\n BeneficiaryInstitution: { name: \"string\" },\n BeneficiaryPerson: { first_name: \"string\", last_name: \"string\" },\n ClientPublicKey: { algorithm: \"string\", nickname: \"string\", public_key: \"string\" },\n CreateIssuerQuoteExecutionResponse: { id: \"string\" },\n CreateIssuerQuoteResponse: {\n fee: \"decimal\",\n market: \"string\",\n price: \"decimal\",\n quantity: \"decimal\",\n quote_amount: \"decimal\",\n quote_id: \"string\",\n },\n CrossChainAttestation: { receipt: \"string\", source_tx_hash: \"string\", witness_payload: \"string\" },\n CrossChainAttestationStatusDetails: { message: \"string\" },\n CrossChainFees: { forwarding_fee: \"decimal\", transfer_fee: \"decimal\" },\n CrossChainMintAuthorization: { authorizer_signature: \"string\", mint_amount: \"decimal\" },\n CrossChainTransfer: { receipt: \"string\", source_tx_hash: \"string\" },\n CryptoDestinationAddress: { address: \"string\", id: \"string\" },\n CryptoWithdrawalFee: { asset: \"string\", destination_address: \"string\", fee: \"decimal\", id: \"string\" },\n DepositAddress: { address: \"string\", customer_id: \"string\", id: \"string\", profile_id: \"string\" },\n FiatAccount: { id: \"string\" },\n FiatAccountOwnerInstitutionDetails: { name: \"string\" },\n FiatAccountOwnerPersonDetails: { first_name: \"string\", last_name: \"string\" },\n FiatDepositInstructions: { id: \"string\", identity_id: \"string\", memo_id: \"string\", profile_id: \"string\" },\n FiatNetworkInstructionsCbit: { wallet_address: \"string\" },\n FiatNetworkInstructionsCubix: { account_id: \"string\" },\n FiatNetworkInstructionsDbsAct: { account_number: \"string\" },\n FiatNetworkInstructionsRtp: { account_number: \"string\" },\n FiatNetworkInstructionsRtpRoutingDetails: { routing_number: \"string\" },\n FiatNetworkInstructionsScb: { account_number: \"string\" },\n FiatNetworkInstructionsWire: { account_number: \"string\" },\n FiatNetworkInstructionsWireRoutingDetails: { bank_name: \"string\", routing_number: \"string\" },\n GeographicAddress: { country: \"string\" },\n GetIssuerQuoteSettlementAvailabilityResponse: { buy_quantity: \"decimal\", market: \"string\", sell_quantity: \"decimal\" },\n Identity: { id: \"string\" },\n IdentityControl: { id: \"string\" },\n IdentityMailingAddress: { address1: \"string\", city: \"string\", country: \"string\", province: \"string\" },\n IdentityRequirementError: { description: \"string\" },\n InstitutionMember: { identity_id: \"string\" },\n IssuerQuoteExecution: {\n asset_type: \"string\",\n fee: \"decimal\",\n id: \"string\",\n principal: \"decimal\",\n profile_id: \"string\",\n token_fee: \"decimal\",\n token_price: \"decimal\",\n token_principal: \"decimal\",\n },\n MailingAddress: { country: \"string\" },\n MonitoringAddress: { address: \"string\", id: \"string\" },\n Obligation: { amount: \"decimal\", asset: \"string\", id: \"string\" },\n PayoutGroup: {\n asset_type: \"string\",\n balance: \"decimal\",\n claimer_address: \"string\",\n id: \"string\",\n jurisdiction: \"string\",\n ledger: \"string\",\n rate_id: \"string\",\n },\n Profile: { id: \"string\", nickname: \"string\" },\n ProfileBalance: { asset: \"string\", available: \"decimal\", trading: \"decimal\" },\n Quote: { base_asset: \"string\", id: \"string\", price: \"decimal\", quote_asset: \"string\" },\n QuoteExecution: {\n base_amount: \"decimal\",\n base_asset: \"string\",\n id: \"string\",\n price: \"decimal\",\n profile_id: \"string\",\n quote_amount: \"decimal\",\n quote_asset: \"string\",\n quote_id: \"string\",\n },\n Transaction: { id: \"string\", ref_id: \"string\", source_profile_id: \"string\", target_profile_id: \"string\" },\n Transfer: {\n amount: \"decimal\",\n asset: \"string\",\n customer_id: \"string\",\n fee: \"decimal\",\n id: \"string\",\n profile_id: \"string\",\n total: \"decimal\",\n },\n UserAuditLog: { http_method: \"string\", http_status_code: \"number\", id: \"string\", path: \"string\" },\n Vasp: { id: \"string\", name: \"string\" },\n W8BenETaxDocumentation: {\n country_of_organization: \"string\",\n has_signed_and_certified: \"boolean\",\n name: \"string\",\n signature: \"string\",\n },\n W8BenTaxDocumentation: {\n date_of_birth: \"string\",\n has_signed_and_certified: \"boolean\",\n name: \"string\",\n nationality: \"string\",\n signature: \"string\",\n },\n W9TaxDocumentation: { has_signed_and_certified: \"boolean\", name: \"string\", signature: \"string\", tin: \"string\" },\n Webhook: { endpoint_url: \"string\", id: \"string\", name: \"string\", rps_limit: \"number\" },\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { RequestOptions, WithRaw } from "../client.js";
|
|
2
|
+
import type { AddAccountMembersRequest, AddAccountMembersResponse, DeleteAccountMemberResponse } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* AccountMembersService — Account Members allow you to associate an Identity
|
|
5
|
+
* with an Account on our Platform. Each Account can be linked to multiple
|
|
6
|
+
* Identities, which supports Joint Accounts (where two Identities have the
|
|
7
|
+
* ability to transact against a single Profile)
|
|
8
|
+
*
|
|
9
|
+
* Account members are effectively immutable. In order to update an account
|
|
10
|
+
* member, clients should remove then re-add the account member with the
|
|
11
|
+
* desired state.
|
|
12
|
+
*
|
|
13
|
+
* The API requires clients to have write access on the account and all
|
|
14
|
+
* identities associated with the account.
|
|
15
|
+
*
|
|
16
|
+
* Access via `client.accountMembers`.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AccountMembersService {
|
|
19
|
+
private readonly client;
|
|
20
|
+
/**
|
|
21
|
+
* Add Account Members
|
|
22
|
+
*
|
|
23
|
+
* Requires scope: identity:write_account
|
|
24
|
+
*/
|
|
25
|
+
addAccountMembers(request: AddAccountMembersRequest, opts?: RequestOptions): Promise<WithRaw<AddAccountMembersResponse>>;
|
|
26
|
+
/**
|
|
27
|
+
* Remove Account Member
|
|
28
|
+
*
|
|
29
|
+
* Requires scope: identity:write_account
|
|
30
|
+
*/
|
|
31
|
+
deleteAccountMember(id: string, opts?: RequestOptions): Promise<WithRaw<DeleteAccountMemberResponse>>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
|
|
2
|
+
import { buildPath } from "../client.js";
|
|
3
|
+
/**
|
|
4
|
+
* AccountMembersService — Account Members allow you to associate an Identity
|
|
5
|
+
* with an Account on our Platform. Each Account can be linked to multiple
|
|
6
|
+
* Identities, which supports Joint Accounts (where two Identities have the
|
|
7
|
+
* ability to transact against a single Profile)
|
|
8
|
+
*
|
|
9
|
+
* Account members are effectively immutable. In order to update an account
|
|
10
|
+
* member, clients should remove then re-add the account member with the
|
|
11
|
+
* desired state.
|
|
12
|
+
*
|
|
13
|
+
* The API requires clients to have write access on the account and all
|
|
14
|
+
* identities associated with the account.
|
|
15
|
+
*
|
|
16
|
+
* Access via `client.accountMembers`.
|
|
17
|
+
*/
|
|
18
|
+
export class AccountMembersService {
|
|
19
|
+
client;
|
|
20
|
+
/** @internal */
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Add Account Members
|
|
26
|
+
*
|
|
27
|
+
* Requires scope: identity:write_account
|
|
28
|
+
*/
|
|
29
|
+
async addAccountMembers(request, opts) {
|
|
30
|
+
return this.client.post("/identity/account-members", request, opts, {
|
|
31
|
+
responseSchema: "AddAccountMembersResponse",
|
|
32
|
+
requestSchema: "AddAccountMembersRequest",
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Remove Account Member
|
|
37
|
+
*
|
|
38
|
+
* Requires scope: identity:write_account
|
|
39
|
+
*/
|
|
40
|
+
async deleteAccountMember(id, opts) {
|
|
41
|
+
return this.client.delete(buildPath("/identity/account-members/{id}", { id: id }), undefined, opts, {
|
|
42
|
+
responseSchema: "DeleteAccountMemberResponse",
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=account-members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-members.js","sourceRoot":"","sources":["../../src/services/account-members.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,qBAAqB;IAEH;IAD7B,gBAAgB;IAChB,YAA6B,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;IAAG,CAAC;IAEnD;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAiC,EACjC,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAqC,2BAA2B,EAAE,OAAO,EAAE,IAAI,EAAE;YACtG,cAAc,EAAE,2BAA2B;YAC3C,aAAa,EAAE,0BAA0B;SAC1C,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,mBAAmB,CAAC,EAAU,EAAE,IAAqB;QACzD,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,gCAAgC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;YAClG,cAAc,EAAE,6BAA6B;SAC9C,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { buildPath } from \"../client.js\";\nimport type { HttpClient, RequestOptions, WithRaw } from \"../client.js\";\nimport type { AddAccountMembersRequest, AddAccountMembersResponse, DeleteAccountMemberResponse } from \"../models.js\";\n\n/**\n * AccountMembersService — Account Members allow you to associate an Identity\n * with an Account on our Platform. Each Account can be linked to multiple\n * Identities, which supports Joint Accounts (where two Identities have the\n * ability to transact against a single Profile)\n *\n * Account members are effectively immutable. In order to update an account\n * member, clients should remove then re-add the account member with the\n * desired state.\n *\n * The API requires clients to have write access on the account and all\n * identities associated with the account.\n *\n * Access via `client.accountMembers`.\n */\nexport class AccountMembersService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * Add Account Members\n *\n * Requires scope: identity:write_account\n */\n async addAccountMembers(\n request: AddAccountMembersRequest,\n opts?: RequestOptions,\n ): Promise<WithRaw<AddAccountMembersResponse>> {\n return this.client.post<WithRaw<AddAccountMembersResponse>>(\"/identity/account-members\", request, opts, {\n responseSchema: \"AddAccountMembersResponse\",\n requestSchema: \"AddAccountMembersRequest\",\n });\n }\n\n /**\n * Remove Account Member\n *\n * Requires scope: identity:write_account\n */\n async deleteAccountMember(id: string, opts?: RequestOptions): Promise<WithRaw<DeleteAccountMemberResponse>> {\n return this.client.delete(buildPath(\"/identity/account-members/{id}\", { id: id }), undefined, opts, {\n responseSchema: \"DeleteAccountMemberResponse\",\n });\n }\n}\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { RequestOptions, PageIterator, WithRaw } from "../client.js";
|
|
2
|
+
import type { KnownOrderBy, KnownSortOrder } from "../enums.js";
|
|
3
|
+
import type { Account, CreateAccountRequest, UpdateAccountRequest } from "../models.js";
|
|
4
|
+
export interface ListAccountsParams {
|
|
5
|
+
/** Return items in ascending (ASC) or descending (DESC) order. Defaults to DESC. */
|
|
6
|
+
order?: KnownSortOrder | (string & {});
|
|
7
|
+
/** The specific method by which the returned results will be ordered. */
|
|
8
|
+
order_by?: KnownOrderBy | (string & {});
|
|
9
|
+
/** Number of results to return. */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Include timestamps strictly less than lt. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
12
|
+
created_at_lt?: string;
|
|
13
|
+
/** Include timestamps less than or equal to lte. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
14
|
+
created_at_lte?: string;
|
|
15
|
+
/** Include timestamps exactly equal to eq. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
16
|
+
created_at_eq?: string;
|
|
17
|
+
/** Include timestamps greater than or equal to gte. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
18
|
+
created_at_gte?: string;
|
|
19
|
+
/** Include timestamps strictly greater than gt. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
20
|
+
created_at_gt?: string;
|
|
21
|
+
/** Optionally filter by primary identity identity. */
|
|
22
|
+
identity_id?: string;
|
|
23
|
+
/** Include timestamps strictly less than lt. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
24
|
+
updated_at_lt?: string;
|
|
25
|
+
/** Include timestamps less than or equal to lte. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
26
|
+
updated_at_lte?: string;
|
|
27
|
+
/** Include timestamps exactly equal to eq. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
28
|
+
updated_at_eq?: string;
|
|
29
|
+
/** Include timestamps greater than or equal to gte. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
30
|
+
updated_at_gte?: string;
|
|
31
|
+
/** Include timestamps strictly greater than gt. RFC3339 format, like `2006-01-02T15:04:05Z`. */
|
|
32
|
+
updated_at_gt?: string;
|
|
33
|
+
/** Resume from a cursor previously returned as a page's `nextCursor`. */
|
|
34
|
+
page_cursor?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* AccountsService — Accounts connect Identities (persons or institutions) to
|
|
38
|
+
* Profiles (asset balances). Key features include:
|
|
39
|
+
*
|
|
40
|
+
* - Balance Management: Track and manage profile balances via Subledgering
|
|
41
|
+
* - Joint Account Support: Link multiple Identities to a single Account for
|
|
42
|
+
* shared on platform balance
|
|
43
|
+
*
|
|
44
|
+
* Accounts are required for all Identity API integrations.
|
|
45
|
+
*
|
|
46
|
+
* Access via `client.accounts`.
|
|
47
|
+
*/
|
|
48
|
+
export declare class AccountsService {
|
|
49
|
+
private readonly client;
|
|
50
|
+
/**
|
|
51
|
+
* List Accounts
|
|
52
|
+
*
|
|
53
|
+
* Requires scope: identity:read_account
|
|
54
|
+
*/
|
|
55
|
+
listAccounts(params?: ListAccountsParams, opts?: RequestOptions): PageIterator<WithRaw<Account>>;
|
|
56
|
+
/**
|
|
57
|
+
* Create Account
|
|
58
|
+
*
|
|
59
|
+
* Requires scope: identity:write_account
|
|
60
|
+
*/
|
|
61
|
+
createAccount(request: CreateAccountRequest, opts?: RequestOptions): Promise<WithRaw<Account>>;
|
|
62
|
+
/**
|
|
63
|
+
* Update Account
|
|
64
|
+
*
|
|
65
|
+
* Requires scope: identity:write_account
|
|
66
|
+
*/
|
|
67
|
+
updateAccount(request: UpdateAccountRequest, opts?: RequestOptions): Promise<WithRaw<Account>>;
|
|
68
|
+
/**
|
|
69
|
+
* GetAccount
|
|
70
|
+
*
|
|
71
|
+
* Requires scope: identity:read_account
|
|
72
|
+
*/
|
|
73
|
+
getAccount(id: string, opts?: RequestOptions): Promise<WithRaw<Account>>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.
|
|
2
|
+
import { buildPath } from "../client.js";
|
|
3
|
+
/**
|
|
4
|
+
* AccountsService — Accounts connect Identities (persons or institutions) to
|
|
5
|
+
* Profiles (asset balances). Key features include:
|
|
6
|
+
*
|
|
7
|
+
* - Balance Management: Track and manage profile balances via Subledgering
|
|
8
|
+
* - Joint Account Support: Link multiple Identities to a single Account for
|
|
9
|
+
* shared on platform balance
|
|
10
|
+
*
|
|
11
|
+
* Accounts are required for all Identity API integrations.
|
|
12
|
+
*
|
|
13
|
+
* Access via `client.accounts`.
|
|
14
|
+
*/
|
|
15
|
+
export class AccountsService {
|
|
16
|
+
client;
|
|
17
|
+
/** @internal */
|
|
18
|
+
constructor(client) {
|
|
19
|
+
this.client = client;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* List Accounts
|
|
23
|
+
*
|
|
24
|
+
* Requires scope: identity:read_account
|
|
25
|
+
*/
|
|
26
|
+
listAccounts(params, opts) {
|
|
27
|
+
return this.client.paginate("/identity/accounts", "items", params, opts, {
|
|
28
|
+
responseSchema: "ListAccountsResponse",
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Create Account
|
|
33
|
+
*
|
|
34
|
+
* Requires scope: identity:write_account
|
|
35
|
+
*/
|
|
36
|
+
async createAccount(request, opts) {
|
|
37
|
+
const body = request.account == null
|
|
38
|
+
? request
|
|
39
|
+
: {
|
|
40
|
+
...request,
|
|
41
|
+
account: { ...request.account, ref_id: request.account.ref_id || globalThis.crypto.randomUUID() },
|
|
42
|
+
};
|
|
43
|
+
return this.client.post("/identity/accounts", body, opts, {
|
|
44
|
+
responseSchema: "Account",
|
|
45
|
+
requestSchema: "CreateAccountRequest",
|
|
46
|
+
replayProtected: true,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Update Account
|
|
51
|
+
*
|
|
52
|
+
* Requires scope: identity:write_account
|
|
53
|
+
*/
|
|
54
|
+
async updateAccount(request, opts) {
|
|
55
|
+
return this.client.put("/identity/accounts", request, opts, {
|
|
56
|
+
responseSchema: "Account",
|
|
57
|
+
requestSchema: "UpdateAccountRequest",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* GetAccount
|
|
62
|
+
*
|
|
63
|
+
* Requires scope: identity:read_account
|
|
64
|
+
*/
|
|
65
|
+
async getAccount(id, opts) {
|
|
66
|
+
return this.client.get(buildPath("/identity/accounts/{id}", { id: id }), undefined, opts, {
|
|
67
|
+
responseSchema: "Account",
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src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AC,EAAU,EAAE,IAAqB;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmB,SAAS,CAAC,yBAAyB,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;YAC1G,cAAc,EAAE,SAAS;SAC1B,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["// Code generated from the Paxos OpenAPI specification. DO NOT EDIT.\n\nimport { buildPath } from \"../client.js\";\nimport type { HttpClient, RequestOptions, PageIterator, WithRaw } from \"../client.js\";\nimport type { KnownOrderBy, KnownSortOrder } from \"../enums.js\";\nimport type { Account, CreateAccountRequest, UpdateAccountRequest } from \"../models.js\";\n\nexport interface ListAccountsParams {\n /** Return items in ascending (ASC) or descending (DESC) order. Defaults to DESC. */\n order?: KnownSortOrder | (string & {});\n /** The specific method by which the returned results will be ordered. */\n order_by?: KnownOrderBy | (string & {});\n /** Number of results to return. */\n limit?: number;\n /** Include timestamps strictly less than lt. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n created_at_lt?: string;\n /** Include timestamps less than or equal to lte. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n created_at_lte?: string;\n /** Include timestamps exactly equal to eq. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n created_at_eq?: string;\n /** Include timestamps greater than or equal to gte. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n created_at_gte?: string;\n /** Include timestamps strictly greater than gt. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n created_at_gt?: string;\n /** Optionally filter by primary identity identity. */\n identity_id?: string;\n /** Include timestamps strictly less than lt. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n updated_at_lt?: string;\n /** Include timestamps less than or equal to lte. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n updated_at_lte?: string;\n /** Include timestamps exactly equal to eq. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n updated_at_eq?: string;\n /** Include timestamps greater than or equal to gte. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n updated_at_gte?: string;\n /** Include timestamps strictly greater than gt. RFC3339 format, like `2006-01-02T15:04:05Z`. */\n updated_at_gt?: string;\n /** Resume from a cursor previously returned as a page's `nextCursor`. */\n page_cursor?: string;\n}\n\n/**\n * AccountsService — Accounts connect Identities (persons or institutions) to\n * Profiles (asset balances). Key features include:\n *\n * - Balance Management: Track and manage profile balances via Subledgering\n * - Joint Account Support: Link multiple Identities to a single Account for\n * shared on platform balance\n *\n * Accounts are required for all Identity API integrations.\n *\n * Access via `client.accounts`.\n */\nexport class AccountsService {\n /** @internal */\n constructor(private readonly client: HttpClient) {}\n\n /**\n * List Accounts\n *\n * Requires scope: identity:read_account\n */\n listAccounts(params?: ListAccountsParams, opts?: RequestOptions): PageIterator<WithRaw<Account>> {\n return this.client.paginate<WithRaw<Account>>(\"/identity/accounts\", \"items\", params, opts, {\n responseSchema: \"ListAccountsResponse\",\n });\n }\n\n /**\n * Create Account\n *\n * Requires scope: identity:write_account\n */\n async createAccount(request: CreateAccountRequest, opts?: RequestOptions): Promise<WithRaw<Account>> {\n const body =\n request.account == null\n ? request\n : {\n ...request,\n account: { ...request.account, ref_id: request.account.ref_id || globalThis.crypto.randomUUID() },\n };\n return this.client.post<WithRaw<Account>>(\"/identity/accounts\", body, opts, {\n responseSchema: \"Account\",\n requestSchema: \"CreateAccountRequest\",\n replayProtected: true,\n });\n }\n\n /**\n * Update Account\n *\n * Requires scope: identity:write_account\n */\n async updateAccount(request: UpdateAccountRequest, opts?: RequestOptions): Promise<WithRaw<Account>> {\n return this.client.put<WithRaw<Account>>(\"/identity/accounts\", request, opts, {\n responseSchema: \"Account\",\n requestSchema: \"UpdateAccountRequest\",\n });\n }\n\n /**\n * GetAccount\n *\n * Requires scope: identity:read_account\n */\n async getAccount(id: string, opts?: RequestOptions): Promise<WithRaw<Account>> {\n return this.client.get<WithRaw<Account>>(buildPath(\"/identity/accounts/{id}\", { id: id }), undefined, opts, {\n responseSchema: \"Account\",\n });\n }\n}\n"]}
|