@dfns/sdk 0.8.11 → 0.8.12
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/dfnsApiClient.d.ts +10 -8
- package/dfnsApiClient.js +16 -12
- package/dfnsDelegatedApiClient.d.ts +12 -2
- package/dfnsDelegatedApiClient.js +23 -3
- package/generated/keys/types.d.ts +4 -4
- package/generated/payouts/client.d.ts +10 -0
- package/generated/payouts/client.js +60 -0
- package/generated/payouts/delegatedClient.d.ts +13 -0
- package/generated/payouts/delegatedClient.js +89 -0
- package/generated/payouts/index.d.ts +3 -0
- package/generated/payouts/index.js +19 -0
- package/generated/payouts/types.d.ts +324 -0
- package/generated/payouts/types.js +2 -0
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +36 -30
- package/generated/wallets/types.d.ts +53 -45
- package/generated/webhooks/types.d.ts +9 -9
- package/package.json +1 -1
- package/types/agreements.d.ts +1 -0
- package/types/agreements.js +17 -0
- package/types/allocations.d.ts +1 -0
- package/types/allocations.js +17 -0
- package/types/payouts.d.ts +1 -0
- package/types/payouts.js +17 -0
- package/types/staking.d.ts +1 -0
- package/types/staking.js +17 -0
- package/types/swaps.d.ts +1 -0
- package/types/swaps.js +17 -0
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
export type CreatePayoutBody = {
|
|
2
|
+
/** The wallet ID to remit funds from. */
|
|
3
|
+
walletId: string;
|
|
4
|
+
/** Optional idempotency key to ensure only one payout is created. */
|
|
5
|
+
externalId?: string | undefined;
|
|
6
|
+
/** The asset to be paid out. */
|
|
7
|
+
asset: {
|
|
8
|
+
kind: "Erc20";
|
|
9
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
10
|
+
amount: string;
|
|
11
|
+
/** The ERC-20 contract address. */
|
|
12
|
+
contract: string;
|
|
13
|
+
} | {
|
|
14
|
+
kind: "Spl" | "Spl2022";
|
|
15
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
16
|
+
amount: string;
|
|
17
|
+
/** The token mint address. */
|
|
18
|
+
mint: string;
|
|
19
|
+
};
|
|
20
|
+
/** ISO-4217 fiat currency code for the payout. */
|
|
21
|
+
fiatCurrency: string;
|
|
22
|
+
provider: "Borderless";
|
|
23
|
+
/** ISO-3166 Alpha-2 country code for the payout destination. */
|
|
24
|
+
country: string;
|
|
25
|
+
/** Borderless account ID specifying who is paying out funds. */
|
|
26
|
+
borderlessAccountId: string;
|
|
27
|
+
/** Borderless payment instructions ID specifying fiat settlement instructions. */
|
|
28
|
+
paymentInstructionsId: string;
|
|
29
|
+
/** Borderless reason/purpose for the payment. */
|
|
30
|
+
paymentPurpose: "salary payment" | "personal remittance" | "rent payment" | "property purchase" | "owned account abroad" | "advertising expenses" | "advisory fees" | "business insurance" | "construction" | "delivery fees" | "education" | "exports" | "donation" | "hotel" | "loan payment" | "maintenance expenses" | "medical expense" | "office expenses" | "royalty fees" | "service charge" | "shares investment" | "tax payment" | "transportation fees" | "travel" | "utility bills" | "other";
|
|
31
|
+
};
|
|
32
|
+
export type CreatePayoutResponse = {
|
|
33
|
+
/** Payout id. */
|
|
34
|
+
id: string;
|
|
35
|
+
/** The wallet ID used for the payout. */
|
|
36
|
+
walletId: string;
|
|
37
|
+
/** ISO-4217 fiat currency code for the payout. */
|
|
38
|
+
fiatCurrency: string;
|
|
39
|
+
/** The asset being paid out, including token descriptor and metadata. */
|
|
40
|
+
asset: {
|
|
41
|
+
kind: "Erc20";
|
|
42
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
43
|
+
amount: string;
|
|
44
|
+
/** The ERC-20 contract address. */
|
|
45
|
+
contract: string;
|
|
46
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
47
|
+
metadata?: {
|
|
48
|
+
/** The display name of the token. */
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
/** The ticker symbol of the token. */
|
|
51
|
+
symbol?: string | undefined;
|
|
52
|
+
/** Number of decimals used by the token. */
|
|
53
|
+
decimals: number;
|
|
54
|
+
/** Whether the token is verified by DFNS as legitimate. */
|
|
55
|
+
verified?: boolean | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
} | {
|
|
58
|
+
kind: "Spl" | "Spl2022";
|
|
59
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
60
|
+
amount: string;
|
|
61
|
+
/** The token mint address. */
|
|
62
|
+
mint: string;
|
|
63
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
64
|
+
metadata?: {
|
|
65
|
+
/** The display name of the token. */
|
|
66
|
+
name?: string | undefined;
|
|
67
|
+
/** The ticker symbol of the token. */
|
|
68
|
+
symbol?: string | undefined;
|
|
69
|
+
/** Number of decimals used by the token. */
|
|
70
|
+
decimals: number;
|
|
71
|
+
/** Whether the token is verified by DFNS as legitimate. */
|
|
72
|
+
verified?: boolean | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
};
|
|
75
|
+
/** Optional external identifier for idempotency. */
|
|
76
|
+
externalId?: string | undefined;
|
|
77
|
+
/** The current status of the payout. */
|
|
78
|
+
status: "Processing" | "Completed" | "Failed" | "Rejected" | "Expired" | "Canceled";
|
|
79
|
+
/** The user/token that initiated the payout. */
|
|
80
|
+
requester: {
|
|
81
|
+
/** User id. */
|
|
82
|
+
userId: string;
|
|
83
|
+
/** Token id. */
|
|
84
|
+
tokenId?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
dateCreated: string;
|
|
87
|
+
dateFinalized?: string | undefined;
|
|
88
|
+
provider: "Borderless";
|
|
89
|
+
/** Borderless provider-specific payout data. */
|
|
90
|
+
data: {
|
|
91
|
+
/** The Borderless account ID associated with the payout. */
|
|
92
|
+
borderlessAccountId: string;
|
|
93
|
+
/** The Borderless payment instructions ID linked to the destination bank account. */
|
|
94
|
+
paymentInstructionsId: string;
|
|
95
|
+
/** The purpose of the withdrawal payment. */
|
|
96
|
+
paymentPurpose: "salary payment" | "personal remittance" | "rent payment" | "property purchase" | "owned account abroad" | "advertising expenses" | "advisory fees" | "business insurance" | "construction" | "delivery fees" | "education" | "exports" | "donation" | "hotel" | "loan payment" | "maintenance expenses" | "medical expense" | "office expenses" | "royalty fees" | "service charge" | "shares investment" | "tax payment" | "transportation fees" | "travel" | "utility bills" | "other";
|
|
97
|
+
dateConfirmed?: string | undefined;
|
|
98
|
+
dateCanceled?: string | undefined;
|
|
99
|
+
/** The Borderless execution status. */
|
|
100
|
+
executionStatus: "Initializing" | "AwaitingPayoutInstructions" | "AwaitingPayoutConfirmation" | "SubmittingPayoutTransfer" | "PendingPolicyApproval" | "DepositProcessing" | "DisbursementPending" | "Completed" | "Rejected" | "Failed" | "Expired" | "Canceled";
|
|
101
|
+
/** Reason for the current status, primarily for failure cases. */
|
|
102
|
+
statusReason?: string | undefined;
|
|
103
|
+
/** ISO-3166 Alpha-2 country code for the payout destination. */
|
|
104
|
+
country: string;
|
|
105
|
+
/** The ID assigned by Borderless when the payout is created. */
|
|
106
|
+
borderlessPayoutId?: string | undefined;
|
|
107
|
+
/** The on-chain address to remit funds to. */
|
|
108
|
+
depositAddress?: string | undefined;
|
|
109
|
+
/** The Dfns transfer ID used to settle the payout. */
|
|
110
|
+
transferId?: string | undefined;
|
|
111
|
+
/** The blockchain transaction hash once the transfer is confirmed. */
|
|
112
|
+
transactionHash?: string | undefined;
|
|
113
|
+
dateDepositConfirmed?: string | undefined;
|
|
114
|
+
datePayoutConfirmed?: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
export type CreatePayoutRequest = {
|
|
118
|
+
body: CreatePayoutBody;
|
|
119
|
+
};
|
|
120
|
+
export type CreatePayoutActionBody = {
|
|
121
|
+
action: "Confirm";
|
|
122
|
+
/** The wallet ID to use for the transfer. */
|
|
123
|
+
walletId: string;
|
|
124
|
+
/** The transfer details for the payout settlement. */
|
|
125
|
+
transfer: {
|
|
126
|
+
kind: "Erc20";
|
|
127
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
128
|
+
amount: string;
|
|
129
|
+
/** The ERC-20 contract address. */
|
|
130
|
+
contract: string;
|
|
131
|
+
/** The counterparty address for the payout. */
|
|
132
|
+
to: string;
|
|
133
|
+
} | {
|
|
134
|
+
kind: "Spl" | "Spl2022";
|
|
135
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
136
|
+
amount: string;
|
|
137
|
+
/** The token mint address. */
|
|
138
|
+
mint: string;
|
|
139
|
+
/** The counterparty address for the payout. */
|
|
140
|
+
to: string;
|
|
141
|
+
};
|
|
142
|
+
} | {
|
|
143
|
+
action: "Cancel";
|
|
144
|
+
};
|
|
145
|
+
export type CreatePayoutActionParams = {
|
|
146
|
+
/** Payout id. */
|
|
147
|
+
payoutId: string;
|
|
148
|
+
};
|
|
149
|
+
export type CreatePayoutActionResponse = {};
|
|
150
|
+
export type CreatePayoutActionRequest = CreatePayoutActionParams & {
|
|
151
|
+
body: CreatePayoutActionBody;
|
|
152
|
+
};
|
|
153
|
+
export type CreatePayoutQuoteBody = {
|
|
154
|
+
/** The wallet ID to use for determining the network. */
|
|
155
|
+
walletId: string;
|
|
156
|
+
/** The asset to be paid out. */
|
|
157
|
+
asset: {
|
|
158
|
+
kind: "Erc20";
|
|
159
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
160
|
+
amount: string;
|
|
161
|
+
/** The ERC-20 contract address. */
|
|
162
|
+
contract: string;
|
|
163
|
+
} | {
|
|
164
|
+
kind: "Spl" | "Spl2022";
|
|
165
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
166
|
+
amount: string;
|
|
167
|
+
/** The token mint address. */
|
|
168
|
+
mint: string;
|
|
169
|
+
};
|
|
170
|
+
/** ISO-4217 fiat currency code for the payout quote. */
|
|
171
|
+
fiatCurrency: string;
|
|
172
|
+
provider: "Borderless";
|
|
173
|
+
/** ISO-3166 Alpha-2 country code for the payout destination. */
|
|
174
|
+
country: string;
|
|
175
|
+
};
|
|
176
|
+
export type CreatePayoutQuoteResponse = {
|
|
177
|
+
/** Payout provider. */
|
|
178
|
+
provider: "Borderless";
|
|
179
|
+
/** The asset being quoted, enriched with network and metadata. */
|
|
180
|
+
asset: {
|
|
181
|
+
kind: "Erc20";
|
|
182
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
183
|
+
amount: string;
|
|
184
|
+
/** The ERC-20 contract address. */
|
|
185
|
+
contract: string;
|
|
186
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
187
|
+
metadata?: {
|
|
188
|
+
/** The display name of the token. */
|
|
189
|
+
name?: string | undefined;
|
|
190
|
+
/** The ticker symbol of the token. */
|
|
191
|
+
symbol?: string | undefined;
|
|
192
|
+
/** Number of decimals used by the token. */
|
|
193
|
+
decimals: number;
|
|
194
|
+
/** Whether the token is verified by DFNS as legitimate. */
|
|
195
|
+
verified?: boolean | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
} | {
|
|
198
|
+
kind: "Spl" | "Spl2022";
|
|
199
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
200
|
+
amount: string;
|
|
201
|
+
/** The token mint address. */
|
|
202
|
+
mint: string;
|
|
203
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
204
|
+
metadata?: {
|
|
205
|
+
/** The display name of the token. */
|
|
206
|
+
name?: string | undefined;
|
|
207
|
+
/** The ticker symbol of the token. */
|
|
208
|
+
symbol?: string | undefined;
|
|
209
|
+
/** Number of decimals used by the token. */
|
|
210
|
+
decimals: number;
|
|
211
|
+
/** Whether the token is verified by DFNS as legitimate. */
|
|
212
|
+
verified?: boolean | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
};
|
|
215
|
+
/** ISO 8601 timestamp when the quote was generated. */
|
|
216
|
+
timestamp: string;
|
|
217
|
+
/** Array of quotes from the provider(s). */
|
|
218
|
+
quotes: {
|
|
219
|
+
/** Quote ID from the provider, if applicable. */
|
|
220
|
+
quoteId?: string | undefined;
|
|
221
|
+
/** The offer from the provider. */
|
|
222
|
+
offer: {
|
|
223
|
+
/** ISO-4217 fiat currency code. */
|
|
224
|
+
fiatCurrency: string;
|
|
225
|
+
/** Amount of fiat currency to be received net of fees. */
|
|
226
|
+
amount: number;
|
|
227
|
+
/** Total fees associated with the transfer. */
|
|
228
|
+
fees: number;
|
|
229
|
+
};
|
|
230
|
+
}[];
|
|
231
|
+
};
|
|
232
|
+
export type CreatePayoutQuoteRequest = {
|
|
233
|
+
body: CreatePayoutQuoteBody;
|
|
234
|
+
};
|
|
235
|
+
export type GetPayoutParams = {
|
|
236
|
+
/** Payout id. */
|
|
237
|
+
payoutId: string;
|
|
238
|
+
};
|
|
239
|
+
export type GetPayoutResponse = {
|
|
240
|
+
/** Payout id. */
|
|
241
|
+
id: string;
|
|
242
|
+
/** The wallet ID used for the payout. */
|
|
243
|
+
walletId: string;
|
|
244
|
+
/** ISO-4217 fiat currency code for the payout. */
|
|
245
|
+
fiatCurrency: string;
|
|
246
|
+
/** The asset being paid out, including token descriptor and metadata. */
|
|
247
|
+
asset: {
|
|
248
|
+
kind: "Erc20";
|
|
249
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
250
|
+
amount: string;
|
|
251
|
+
/** The ERC-20 contract address. */
|
|
252
|
+
contract: string;
|
|
253
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
254
|
+
metadata?: {
|
|
255
|
+
/** The display name of the token. */
|
|
256
|
+
name?: string | undefined;
|
|
257
|
+
/** The ticker symbol of the token. */
|
|
258
|
+
symbol?: string | undefined;
|
|
259
|
+
/** Number of decimals used by the token. */
|
|
260
|
+
decimals: number;
|
|
261
|
+
/** Whether the token is verified by DFNS as legitimate. */
|
|
262
|
+
verified?: boolean | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
} | {
|
|
265
|
+
kind: "Spl" | "Spl2022";
|
|
266
|
+
/** The amount of the asset to be paid out in minimum denomination. */
|
|
267
|
+
amount: string;
|
|
268
|
+
/** The token mint address. */
|
|
269
|
+
mint: string;
|
|
270
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "ArcTestnet" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "AdiTestnetAb" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Concordium" | "ConcordiumTestnet" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumClassic" | "EthereumClassicMordor" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "FlowEvm" | "FlowEvmTestnet" | "Hedera" | "HederaTestnet" | "Ink" | "InkSepolia" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "KusamaAssetHub" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plasma" | "PlasmaTestnet" | "Plume" | "PlumeSepolia" | "Paseo" | "PaseoAssetHub" | "Polkadot" | "PolkadotAssetHub" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Sonic" | "SonicTestnet" | "Starknet" | "StarknetSepolia" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Tempo" | "TempoAndantino" | "TempoModerato" | "Tsc" | "TscTestnet1" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "WestendAssetHub" | "XrpLedger" | "XrpLedgerTestnet";
|
|
271
|
+
metadata?: {
|
|
272
|
+
/** The display name of the token. */
|
|
273
|
+
name?: string | undefined;
|
|
274
|
+
/** The ticker symbol of the token. */
|
|
275
|
+
symbol?: string | undefined;
|
|
276
|
+
/** Number of decimals used by the token. */
|
|
277
|
+
decimals: number;
|
|
278
|
+
/** Whether the token is verified by DFNS as legitimate. */
|
|
279
|
+
verified?: boolean | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
};
|
|
282
|
+
/** Optional external identifier for idempotency. */
|
|
283
|
+
externalId?: string | undefined;
|
|
284
|
+
/** The current status of the payout. */
|
|
285
|
+
status: "Processing" | "Completed" | "Failed" | "Rejected" | "Expired" | "Canceled";
|
|
286
|
+
/** The user/token that initiated the payout. */
|
|
287
|
+
requester: {
|
|
288
|
+
/** User id. */
|
|
289
|
+
userId: string;
|
|
290
|
+
/** Token id. */
|
|
291
|
+
tokenId?: string | undefined;
|
|
292
|
+
};
|
|
293
|
+
dateCreated: string;
|
|
294
|
+
dateFinalized?: string | undefined;
|
|
295
|
+
provider: "Borderless";
|
|
296
|
+
/** Borderless provider-specific payout data. */
|
|
297
|
+
data: {
|
|
298
|
+
/** The Borderless account ID associated with the payout. */
|
|
299
|
+
borderlessAccountId: string;
|
|
300
|
+
/** The Borderless payment instructions ID linked to the destination bank account. */
|
|
301
|
+
paymentInstructionsId: string;
|
|
302
|
+
/** The purpose of the withdrawal payment. */
|
|
303
|
+
paymentPurpose: "salary payment" | "personal remittance" | "rent payment" | "property purchase" | "owned account abroad" | "advertising expenses" | "advisory fees" | "business insurance" | "construction" | "delivery fees" | "education" | "exports" | "donation" | "hotel" | "loan payment" | "maintenance expenses" | "medical expense" | "office expenses" | "royalty fees" | "service charge" | "shares investment" | "tax payment" | "transportation fees" | "travel" | "utility bills" | "other";
|
|
304
|
+
dateConfirmed?: string | undefined;
|
|
305
|
+
dateCanceled?: string | undefined;
|
|
306
|
+
/** The Borderless execution status. */
|
|
307
|
+
executionStatus: "Initializing" | "AwaitingPayoutInstructions" | "AwaitingPayoutConfirmation" | "SubmittingPayoutTransfer" | "PendingPolicyApproval" | "DepositProcessing" | "DisbursementPending" | "Completed" | "Rejected" | "Failed" | "Expired" | "Canceled";
|
|
308
|
+
/** Reason for the current status, primarily for failure cases. */
|
|
309
|
+
statusReason?: string | undefined;
|
|
310
|
+
/** ISO-3166 Alpha-2 country code for the payout destination. */
|
|
311
|
+
country: string;
|
|
312
|
+
/** The ID assigned by Borderless when the payout is created. */
|
|
313
|
+
borderlessPayoutId?: string | undefined;
|
|
314
|
+
/** The on-chain address to remit funds to. */
|
|
315
|
+
depositAddress?: string | undefined;
|
|
316
|
+
/** The Dfns transfer ID used to settle the payout. */
|
|
317
|
+
transferId?: string | undefined;
|
|
318
|
+
/** The blockchain transaction hash once the transfer is confirmed. */
|
|
319
|
+
transactionHash?: string | undefined;
|
|
320
|
+
dateDepositConfirmed?: string | undefined;
|
|
321
|
+
datePayoutConfirmed?: string | undefined;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
export type GetPayoutRequest = GetPayoutParams;
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: (("Registry:Addresses:Create" | "Registry:Addresses:Delete" | "Registry:Addresses:Read" | "Registry:Addresses:Update" | "Registry:ContractSchemas:Create" | "Registry:ContractSchemas:Delete" | "Registry:ContractSchemas:Read" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Events:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "FeeSponsors:Use" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Payouts:Create" | "Payouts:Read" | "Payouts:Write" | "Allocations:Create" | "Allocations:Update" | "Allocations:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:ChildKeys:Create" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "KeyStores:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
39
|
+
operations: (("Registry:Addresses:Create" | "Registry:Addresses:Delete" | "Registry:Addresses:Read" | "Registry:Addresses:Update" | "Registry:ContractSchemas:Create" | "Registry:ContractSchemas:Delete" | "Registry:ContractSchemas:Read" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Events:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "FeeSponsors:Use" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Payouts:Create" | "Payouts:Read" | "Payouts:Write" | "Allocations:Create" | "Allocations:Update" | "Allocations:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:ChildKeys:Create" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "KeyStores:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Vaults:Create" | "Vaults:Read" | "Vaults:Update" | "Vaults:Tags:Add" | "Vaults:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -186,7 +186,7 @@ export type ListPermissionsRequest = {
|
|
|
186
186
|
};
|
|
187
187
|
export type UpdatePermissionBody = {
|
|
188
188
|
name?: string | undefined;
|
|
189
|
-
operations?: (("Registry:Addresses:Create" | "Registry:Addresses:Delete" | "Registry:Addresses:Read" | "Registry:Addresses:Update" | "Registry:ContractSchemas:Create" | "Registry:ContractSchemas:Delete" | "Registry:ContractSchemas:Read" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Events:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "FeeSponsors:Use" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Payouts:Create" | "Payouts:Read" | "Payouts:Write" | "Allocations:Create" | "Allocations:Update" | "Allocations:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:ChildKeys:Create" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "KeyStores:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
189
|
+
operations?: (("Registry:Addresses:Create" | "Registry:Addresses:Delete" | "Registry:Addresses:Read" | "Registry:Addresses:Update" | "Registry:ContractSchemas:Create" | "Registry:ContractSchemas:Delete" | "Registry:ContractSchemas:Read" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Events:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "FeeSponsors:Use" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Payouts:Create" | "Payouts:Read" | "Payouts:Write" | "Allocations:Create" | "Allocations:Update" | "Allocations:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:ChildKeys:Create" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "KeyStores:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Vaults:Create" | "Vaults:Read" | "Vaults:Update" | "Vaults:Tags:Add" | "Vaults:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
190
190
|
};
|
|
191
191
|
export type UpdatePermissionParams = {
|
|
192
192
|
permissionId: string;
|