vaults-multichain-sdk 1.5.0 → 1.6.1
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +74 -8
- package/dist/index.d.ts +74 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet routing scope for share endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Personal vs organization wallets live on different backend route prefixes:
|
|
5
|
+
* personal → /sdk/wallets/...
|
|
6
|
+
* organization → /sdk/organization/wallets/...
|
|
7
|
+
*
|
|
8
|
+
* When the caller knows which kind of wallet they're touching, passing
|
|
9
|
+
* `walletScope` routes directly with a single round-trip. When omitted,
|
|
10
|
+
* the helpers fall back to try-personal-then-org and treat both 404 and
|
|
11
|
+
* 403 from the personal route as "wallet lives on the org route" — the
|
|
12
|
+
* personal route rejects org-owned wallets with 403 via RBAC, not 404.
|
|
13
|
+
*
|
|
14
|
+
* See `docs/SDK_ORGANIZATION_FRONTEND_CHANGES.md` §3.1.
|
|
15
|
+
*/
|
|
16
|
+
type WalletScope = 'personal' | 'organization';
|
|
17
|
+
|
|
1
18
|
declare const TransactionEstimatingType: {
|
|
2
19
|
readonly ExecOrder: "execOrder";
|
|
3
20
|
readonly Send: "send";
|
|
@@ -869,6 +886,28 @@ interface OrgLimitGroup {
|
|
|
869
886
|
interface OrgLimitGroupEnvelopeResponse {
|
|
870
887
|
limitGroup: OrgLimitGroup | null;
|
|
871
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* Response of `GET /sdk/organization/spending-limit` — the org's daily USD
|
|
891
|
+
* spending budget, how much has been used today, what remains, and when the
|
|
892
|
+
* counter resets.
|
|
893
|
+
*
|
|
894
|
+
* `dailyLimitUsd` and `remainingUsd` are `null` together when no daily limit
|
|
895
|
+
* is configured — UI should render an "unlimited" state, not 0.
|
|
896
|
+
*
|
|
897
|
+
* `resetAt` is the next UTC midnight as an ISO string.
|
|
898
|
+
*
|
|
899
|
+
* Master or Employee; API-key permission: `ViewBalances`.
|
|
900
|
+
*/
|
|
901
|
+
interface OrgSpendingLimitStatus {
|
|
902
|
+
/** Configured daily limit in USD. `null` when no limit is set. */
|
|
903
|
+
dailyLimitUsd: number | null;
|
|
904
|
+
/** Amount already spent today in USD. Always present. */
|
|
905
|
+
currentSpendingUsd: number;
|
|
906
|
+
/** Remaining available USD. `null` when no limit is set. */
|
|
907
|
+
remainingUsd: number | null;
|
|
908
|
+
/** UTC ISO timestamp when the daily counter resets (next UTC midnight). */
|
|
909
|
+
resetAt: string;
|
|
910
|
+
}
|
|
872
911
|
/**
|
|
873
912
|
* Response of `GET /sdk/organization/wallets/:walletAddress/utxos/:chainType/:chain`.
|
|
874
913
|
* UTXO shape is chain-specific (BTC: `BtcUtxo`-like; ADA: `{ txHash, outputIndex, ... }`).
|
|
@@ -1087,6 +1126,18 @@ interface EstimateFeeInput {
|
|
|
1087
1126
|
};
|
|
1088
1127
|
chainId?: ChainIdValue;
|
|
1089
1128
|
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Input for createMultisig
|
|
1131
|
+
*/
|
|
1132
|
+
interface CreateMultisigInput {
|
|
1133
|
+
chain: ChainType;
|
|
1134
|
+
owners: string[];
|
|
1135
|
+
threshold: number;
|
|
1136
|
+
chainIds?: ChainIdValue[];
|
|
1137
|
+
/** Route the create to personal `/sdk/multisig/...` or organization
|
|
1138
|
+
* `/sdk/organization/vaults/...` endpoints. Defaults to personal. */
|
|
1139
|
+
walletScope?: WalletScope;
|
|
1140
|
+
}
|
|
1090
1141
|
/**
|
|
1091
1142
|
* Input for GET /sdk/multisig (paginated vault list).
|
|
1092
1143
|
*/
|
|
@@ -1114,6 +1165,8 @@ interface ActivateMultisigInput {
|
|
|
1114
1165
|
gasPrice?: string;
|
|
1115
1166
|
/** Device share for wallet key reconstruction (required for SOL) */
|
|
1116
1167
|
deviceShare?: string;
|
|
1168
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1169
|
+
walletScope?: WalletScope;
|
|
1117
1170
|
}
|
|
1118
1171
|
/**
|
|
1119
1172
|
* SDK error codes
|
|
@@ -1283,6 +1336,8 @@ interface SendTransactionInput {
|
|
|
1283
1336
|
decimals: number;
|
|
1284
1337
|
isNativeToken?: boolean;
|
|
1285
1338
|
memo?: string;
|
|
1339
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1340
|
+
walletScope?: WalletScope;
|
|
1286
1341
|
}
|
|
1287
1342
|
interface SendTransactionOutput {
|
|
1288
1343
|
txHash: string;
|
|
@@ -1292,6 +1347,8 @@ interface ExportWalletInput {
|
|
|
1292
1347
|
chain: EChainType;
|
|
1293
1348
|
address: string;
|
|
1294
1349
|
format?: "hex" | "wif" | "bs58";
|
|
1350
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1351
|
+
walletScope?: WalletScope;
|
|
1295
1352
|
}
|
|
1296
1353
|
/** Output for exportWallet */
|
|
1297
1354
|
interface ExportWalletOutput {
|
|
@@ -1303,13 +1360,7 @@ interface UpdateWalletNameInput {
|
|
|
1303
1360
|
address: string;
|
|
1304
1361
|
name: string;
|
|
1305
1362
|
}
|
|
1306
|
-
|
|
1307
|
-
interface CreateMultisigInput {
|
|
1308
|
-
chain: EChainType;
|
|
1309
|
-
owners: string[];
|
|
1310
|
-
threshold: number;
|
|
1311
|
-
chainIds?: ChainIdValue[];
|
|
1312
|
-
}
|
|
1363
|
+
|
|
1313
1364
|
/** Input for getMultisigs */
|
|
1314
1365
|
interface GetMultisigsInput {
|
|
1315
1366
|
chain: EChainType;
|
|
@@ -1456,6 +1507,8 @@ interface ActivateXrpTrustLineInput {
|
|
|
1456
1507
|
issuer: string;
|
|
1457
1508
|
/** Max token amount to hold (default: "1000000000") */
|
|
1458
1509
|
limit?: string;
|
|
1510
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1511
|
+
walletScope?: WalletScope;
|
|
1459
1512
|
}
|
|
1460
1513
|
/** Output for activateXrpTrustLine */
|
|
1461
1514
|
interface ActivateXrpTrustLineOutput {
|
|
@@ -1894,6 +1947,19 @@ declare class AfridaxSDK {
|
|
|
1894
1947
|
* Server route: `GET /sdk/organization/limit-group`.
|
|
1895
1948
|
*/
|
|
1896
1949
|
getOrgLimitGroup(): Promise<OrgLimitGroupEnvelopeResponse>;
|
|
1950
|
+
/**
|
|
1951
|
+
* Daily USD spending status for the caller's organization — configured
|
|
1952
|
+
* limit, amount used today, remaining budget, and the next reset
|
|
1953
|
+
* timestamp. Mirrors the web app's `GET /organization/spending-limit`.
|
|
1954
|
+
* Available to Master or Employee accounts; requires the `ViewBalances`
|
|
1955
|
+
* API-key permission.
|
|
1956
|
+
*
|
|
1957
|
+
* `dailyLimitUsd` and `remainingUsd` are both `null` when no daily limit
|
|
1958
|
+
* is configured — render an "unlimited" state, not 0.
|
|
1959
|
+
*
|
|
1960
|
+
* Server route: `GET /sdk/organization/spending-limit`.
|
|
1961
|
+
*/
|
|
1962
|
+
getOrgSpendingLimit(): Promise<OrgSpendingLimitStatus>;
|
|
1897
1963
|
/**
|
|
1898
1964
|
* 7.8 Read the org's current security policy. Master-only.
|
|
1899
1965
|
*
|
|
@@ -2212,4 +2278,4 @@ declare class NotFoundError extends AfridaxBaseError {
|
|
|
2212
2278
|
*/
|
|
2213
2279
|
declare function isAfridaxError(error: unknown): error is AfridaxBaseError;
|
|
2214
2280
|
|
|
2215
|
-
export { type ActivateMultisigInput, type ActivateMultisigOutput, type ActivateXrpTrustLineInput, type ActivateXrpTrustLineOutput, type AdaNativeInstruction, type AdaTokenInstruction, type AddOrgAddressResponse, type AddressBookEntry, type AddressBookEntryType, type AddressTypeResponse, AfridaxBaseError, AfridaxSDK, ApiError, type AssignOrgWalletInput, type AssignOrgWalletResponse, type ChainIdValue, ChainNotSupportedError, type ChainType, type CreateAddressBookEntryInput, type CreateMultisigInput, type CreateOrderInput, type CreateOrderOutput, type CreateOrgAddressInput, type CreateOrgWalletInput, type CreateWalletInput, type CreateWalletOutput, type CreateWalletResponse, type DeleteAddressBookEntryInput, type DeleteMultisigInput, type DeleteOrderInput, type DeleteOrgAddressBookEntryInput, type DeleteOrgWalletInput, type DeleteResponse, type DeleteWalletInput, EAdaInstructionType, EAddressBookEntryType, EChainType, EOrgMemberRole, EOrgMemberStatus, EXrpOrderType, type EstimateActivationFeeInput, type EstimateFeeInput, type EstimateOrderExecutionFeeInput, type EstimatedFee, type ExecuteOrderInput, type ExecuteOrderOutput, type ExportOrgAuditLogsInput, type ExportWalletInput, type ExportWalletOutput, type GetAddressBookEntriesInput, type GetAddressTypeInput, type GetMultisigByIdInput, type GetMultisigTxHistoryInput, type GetMultisigsInput, type GetOrderByIdInput, type GetOrdersInput, type GetOrgAuditLogsInput, type GetOrgVaultByIdInput, type GetOrgWalletInput, type GetOrgWalletPortfolioInput, type GetOrgWalletUtxosInput, type GetPaginatedMultisigsInput, type GetPortfolioInput, type GetSupportedTokensInput, type GetWalletHistoryInput, type GetWalletInput, type GetWalletsInput, type GetXrpAccountReserveInput, type GetXrpTrustLinesInput, type GroupedMultisigResponseDTO, type HistoryResponse, type ImportWalletInput, InsufficientBalanceError, InvalidInputError, type InviteOrgMemberInput, type InviteOrgMemberResponse, KeyMismatchError, type ListOrgMemberWalletsInput, MEMO_MAX_LENGTH, MEMO_SUPPORTED_CHAINS, type MemoValidationResult, type MultisigBaseDTO, MultisigStatus, type MultisigsItem, NetworkError, NotFoundError, ORG_POLICY_CODES, type Order, type OrderInstruction, type OrderMethodType, type OrderParamsAda, type OrderParamsXrp, type OrderSigner, OrderStatus, type OrgAddressBookEntry, type OrgAddressRecipientType, type OrgAddressWalletType, type OrgAuditEventType, type OrgAuditLogItem, type OrgAuditLogsResponse, type OrgLimitGroup, type OrgLimitGroupChainLimit, type OrgLimitGroupEnvelopeResponse, type OrgMeResponse, type OrgMemberKycStatus, type OrgMyVaultsResponse, type OrgMyWalletsResponse, type OrgPolicy, type OrgPolicyCode, OrgPolicyRejectedError, type OrgTeamDirectoryResponse, type OrgTeamMember, type OrgVaultItem, type OrgVaultsResponse, type OrgWalletItem, type OrgWalletUtxosResponse, type OrgWalletsResponse, type PaginatedMultisigsWithTokensResponse, type PaginatedOrdersResponse, type PaginatedWalletsResponse, PermissionDeniedError, type RejectOrderInput, type RemoveOrgMemberInput, type RenameOrgWalletInput, type SDKConfig, type SendTransactionInput, type SendTransactionOutput, type SignOrderInput, type SignOrderOutput, type SingleWalletDetailsResponse, StatusFilterEnum, type SupportedTokensResponse, type TAdaCommandInstruction, type TWallet, type TXrpCommandInstruction, type TokenInfo, type TotalAssetValueResponse, TransactionEstimatingType, type TransactionHistoryItem, type TxHistoryCombinedResponse, type UnassignOrgWalletInput, UnauthorizedError, type UpdateAddressBookEntryInput, type UpdateMultisigNameInput, type UpdateOrgAddressBookEntryInput, type UpdateOrgAddressInput, type UpdateOrgPolicyInput, type UpdateWalletNameInput, type WalletPortfolioResponse, type WalletRenameResponse, XRP_MAX_DESTINATION_TAG, type XrpAccountReserveInfo, type XrpAssetInstruction, type XrpChangeThresholdInstruction, type XrpNativeInstruction, type XrpRemoveTrustLineInstruction, type XrpSetTrustLineInstruction, type TrustLineInfo as XrpTrustLineInfo, type XrpUpdateOwnerThresholdInstruction, type XrpUpdateOwnersInstruction, AfridaxSDK as default, getBtcChainType, getMemoPlaceholder, isAfridaxError, isMemoSupported, validateMemo };
|
|
2281
|
+
export { type ActivateMultisigInput, type ActivateMultisigOutput, type ActivateXrpTrustLineInput, type ActivateXrpTrustLineOutput, type AdaNativeInstruction, type AdaTokenInstruction, type AddOrgAddressResponse, type AddressBookEntry, type AddressBookEntryType, type AddressTypeResponse, AfridaxBaseError, AfridaxSDK, ApiError, type AssignOrgWalletInput, type AssignOrgWalletResponse, type ChainIdValue, ChainNotSupportedError, type ChainType, type CreateAddressBookEntryInput, type CreateMultisigInput, type CreateOrderInput, type CreateOrderOutput, type CreateOrgAddressInput, type CreateOrgWalletInput, type CreateWalletInput, type CreateWalletOutput, type CreateWalletResponse, type DeleteAddressBookEntryInput, type DeleteMultisigInput, type DeleteOrderInput, type DeleteOrgAddressBookEntryInput, type DeleteOrgWalletInput, type DeleteResponse, type DeleteWalletInput, EAdaInstructionType, EAddressBookEntryType, EChainType, EOrgMemberRole, EOrgMemberStatus, EXrpOrderType, type EstimateActivationFeeInput, type EstimateFeeInput, type EstimateOrderExecutionFeeInput, type EstimatedFee, type ExecuteOrderInput, type ExecuteOrderOutput, type ExportOrgAuditLogsInput, type ExportWalletInput, type ExportWalletOutput, type GetAddressBookEntriesInput, type GetAddressTypeInput, type GetMultisigByIdInput, type GetMultisigTxHistoryInput, type GetMultisigsInput, type GetOrderByIdInput, type GetOrdersInput, type GetOrgAuditLogsInput, type GetOrgVaultByIdInput, type GetOrgWalletInput, type GetOrgWalletPortfolioInput, type GetOrgWalletUtxosInput, type GetPaginatedMultisigsInput, type GetPortfolioInput, type GetSupportedTokensInput, type GetWalletHistoryInput, type GetWalletInput, type GetWalletsInput, type GetXrpAccountReserveInput, type GetXrpTrustLinesInput, type GroupedMultisigResponseDTO, type HistoryResponse, type ImportWalletInput, InsufficientBalanceError, InvalidInputError, type InviteOrgMemberInput, type InviteOrgMemberResponse, KeyMismatchError, type ListOrgMemberWalletsInput, MEMO_MAX_LENGTH, MEMO_SUPPORTED_CHAINS, type MemoValidationResult, type MultisigBaseDTO, MultisigStatus, type MultisigsItem, NetworkError, NotFoundError, ORG_POLICY_CODES, type Order, type OrderInstruction, type OrderMethodType, type OrderParamsAda, type OrderParamsXrp, type OrderSigner, OrderStatus, type OrgAddressBookEntry, type OrgAddressRecipientType, type OrgAddressWalletType, type OrgAuditEventType, type OrgAuditLogItem, type OrgAuditLogsResponse, type OrgLimitGroup, type OrgLimitGroupChainLimit, type OrgLimitGroupEnvelopeResponse, type OrgMeResponse, type OrgMemberKycStatus, type OrgMyVaultsResponse, type OrgMyWalletsResponse, type OrgPolicy, type OrgPolicyCode, OrgPolicyRejectedError, type OrgSpendingLimitStatus, type OrgTeamDirectoryResponse, type OrgTeamMember, type OrgVaultItem, type OrgVaultsResponse, type OrgWalletItem, type OrgWalletUtxosResponse, type OrgWalletsResponse, type PaginatedMultisigsWithTokensResponse, type PaginatedOrdersResponse, type PaginatedWalletsResponse, PermissionDeniedError, type RejectOrderInput, type RemoveOrgMemberInput, type RenameOrgWalletInput, type SDKConfig, type SendTransactionInput, type SendTransactionOutput, type SignOrderInput, type SignOrderOutput, type SingleWalletDetailsResponse, StatusFilterEnum, type SupportedTokensResponse, type TAdaCommandInstruction, type TWallet, type TXrpCommandInstruction, type TokenInfo, type TotalAssetValueResponse, TransactionEstimatingType, type TransactionHistoryItem, type TxHistoryCombinedResponse, type UnassignOrgWalletInput, UnauthorizedError, type UpdateAddressBookEntryInput, type UpdateMultisigNameInput, type UpdateOrgAddressBookEntryInput, type UpdateOrgAddressInput, type UpdateOrgPolicyInput, type UpdateWalletNameInput, type WalletPortfolioResponse, type WalletRenameResponse, type WalletScope, XRP_MAX_DESTINATION_TAG, type XrpAccountReserveInfo, type XrpAssetInstruction, type XrpChangeThresholdInstruction, type XrpNativeInstruction, type XrpRemoveTrustLineInstruction, type XrpSetTrustLineInstruction, type TrustLineInfo as XrpTrustLineInfo, type XrpUpdateOwnerThresholdInstruction, type XrpUpdateOwnersInstruction, AfridaxSDK as default, getBtcChainType, getMemoPlaceholder, isAfridaxError, isMemoSupported, validateMemo };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wallet routing scope for share endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Personal vs organization wallets live on different backend route prefixes:
|
|
5
|
+
* personal → /sdk/wallets/...
|
|
6
|
+
* organization → /sdk/organization/wallets/...
|
|
7
|
+
*
|
|
8
|
+
* When the caller knows which kind of wallet they're touching, passing
|
|
9
|
+
* `walletScope` routes directly with a single round-trip. When omitted,
|
|
10
|
+
* the helpers fall back to try-personal-then-org and treat both 404 and
|
|
11
|
+
* 403 from the personal route as "wallet lives on the org route" — the
|
|
12
|
+
* personal route rejects org-owned wallets with 403 via RBAC, not 404.
|
|
13
|
+
*
|
|
14
|
+
* See `docs/SDK_ORGANIZATION_FRONTEND_CHANGES.md` §3.1.
|
|
15
|
+
*/
|
|
16
|
+
type WalletScope = 'personal' | 'organization';
|
|
17
|
+
|
|
1
18
|
declare const TransactionEstimatingType: {
|
|
2
19
|
readonly ExecOrder: "execOrder";
|
|
3
20
|
readonly Send: "send";
|
|
@@ -869,6 +886,28 @@ interface OrgLimitGroup {
|
|
|
869
886
|
interface OrgLimitGroupEnvelopeResponse {
|
|
870
887
|
limitGroup: OrgLimitGroup | null;
|
|
871
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* Response of `GET /sdk/organization/spending-limit` — the org's daily USD
|
|
891
|
+
* spending budget, how much has been used today, what remains, and when the
|
|
892
|
+
* counter resets.
|
|
893
|
+
*
|
|
894
|
+
* `dailyLimitUsd` and `remainingUsd` are `null` together when no daily limit
|
|
895
|
+
* is configured — UI should render an "unlimited" state, not 0.
|
|
896
|
+
*
|
|
897
|
+
* `resetAt` is the next UTC midnight as an ISO string.
|
|
898
|
+
*
|
|
899
|
+
* Master or Employee; API-key permission: `ViewBalances`.
|
|
900
|
+
*/
|
|
901
|
+
interface OrgSpendingLimitStatus {
|
|
902
|
+
/** Configured daily limit in USD. `null` when no limit is set. */
|
|
903
|
+
dailyLimitUsd: number | null;
|
|
904
|
+
/** Amount already spent today in USD. Always present. */
|
|
905
|
+
currentSpendingUsd: number;
|
|
906
|
+
/** Remaining available USD. `null` when no limit is set. */
|
|
907
|
+
remainingUsd: number | null;
|
|
908
|
+
/** UTC ISO timestamp when the daily counter resets (next UTC midnight). */
|
|
909
|
+
resetAt: string;
|
|
910
|
+
}
|
|
872
911
|
/**
|
|
873
912
|
* Response of `GET /sdk/organization/wallets/:walletAddress/utxos/:chainType/:chain`.
|
|
874
913
|
* UTXO shape is chain-specific (BTC: `BtcUtxo`-like; ADA: `{ txHash, outputIndex, ... }`).
|
|
@@ -1087,6 +1126,18 @@ interface EstimateFeeInput {
|
|
|
1087
1126
|
};
|
|
1088
1127
|
chainId?: ChainIdValue;
|
|
1089
1128
|
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Input for createMultisig
|
|
1131
|
+
*/
|
|
1132
|
+
interface CreateMultisigInput {
|
|
1133
|
+
chain: ChainType;
|
|
1134
|
+
owners: string[];
|
|
1135
|
+
threshold: number;
|
|
1136
|
+
chainIds?: ChainIdValue[];
|
|
1137
|
+
/** Route the create to personal `/sdk/multisig/...` or organization
|
|
1138
|
+
* `/sdk/organization/vaults/...` endpoints. Defaults to personal. */
|
|
1139
|
+
walletScope?: WalletScope;
|
|
1140
|
+
}
|
|
1090
1141
|
/**
|
|
1091
1142
|
* Input for GET /sdk/multisig (paginated vault list).
|
|
1092
1143
|
*/
|
|
@@ -1114,6 +1165,8 @@ interface ActivateMultisigInput {
|
|
|
1114
1165
|
gasPrice?: string;
|
|
1115
1166
|
/** Device share for wallet key reconstruction (required for SOL) */
|
|
1116
1167
|
deviceShare?: string;
|
|
1168
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1169
|
+
walletScope?: WalletScope;
|
|
1117
1170
|
}
|
|
1118
1171
|
/**
|
|
1119
1172
|
* SDK error codes
|
|
@@ -1283,6 +1336,8 @@ interface SendTransactionInput {
|
|
|
1283
1336
|
decimals: number;
|
|
1284
1337
|
isNativeToken?: boolean;
|
|
1285
1338
|
memo?: string;
|
|
1339
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1340
|
+
walletScope?: WalletScope;
|
|
1286
1341
|
}
|
|
1287
1342
|
interface SendTransactionOutput {
|
|
1288
1343
|
txHash: string;
|
|
@@ -1292,6 +1347,8 @@ interface ExportWalletInput {
|
|
|
1292
1347
|
chain: EChainType;
|
|
1293
1348
|
address: string;
|
|
1294
1349
|
format?: "hex" | "wif" | "bs58";
|
|
1350
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1351
|
+
walletScope?: WalletScope;
|
|
1295
1352
|
}
|
|
1296
1353
|
/** Output for exportWallet */
|
|
1297
1354
|
interface ExportWalletOutput {
|
|
@@ -1303,13 +1360,7 @@ interface UpdateWalletNameInput {
|
|
|
1303
1360
|
address: string;
|
|
1304
1361
|
name: string;
|
|
1305
1362
|
}
|
|
1306
|
-
|
|
1307
|
-
interface CreateMultisigInput {
|
|
1308
|
-
chain: EChainType;
|
|
1309
|
-
owners: string[];
|
|
1310
|
-
threshold: number;
|
|
1311
|
-
chainIds?: ChainIdValue[];
|
|
1312
|
-
}
|
|
1363
|
+
|
|
1313
1364
|
/** Input for getMultisigs */
|
|
1314
1365
|
interface GetMultisigsInput {
|
|
1315
1366
|
chain: EChainType;
|
|
@@ -1456,6 +1507,8 @@ interface ActivateXrpTrustLineInput {
|
|
|
1456
1507
|
issuer: string;
|
|
1457
1508
|
/** Max token amount to hold (default: "1000000000") */
|
|
1458
1509
|
limit?: string;
|
|
1510
|
+
/** Route share lookups to personal or organization wallet endpoints. */
|
|
1511
|
+
walletScope?: WalletScope;
|
|
1459
1512
|
}
|
|
1460
1513
|
/** Output for activateXrpTrustLine */
|
|
1461
1514
|
interface ActivateXrpTrustLineOutput {
|
|
@@ -1894,6 +1947,19 @@ declare class AfridaxSDK {
|
|
|
1894
1947
|
* Server route: `GET /sdk/organization/limit-group`.
|
|
1895
1948
|
*/
|
|
1896
1949
|
getOrgLimitGroup(): Promise<OrgLimitGroupEnvelopeResponse>;
|
|
1950
|
+
/**
|
|
1951
|
+
* Daily USD spending status for the caller's organization — configured
|
|
1952
|
+
* limit, amount used today, remaining budget, and the next reset
|
|
1953
|
+
* timestamp. Mirrors the web app's `GET /organization/spending-limit`.
|
|
1954
|
+
* Available to Master or Employee accounts; requires the `ViewBalances`
|
|
1955
|
+
* API-key permission.
|
|
1956
|
+
*
|
|
1957
|
+
* `dailyLimitUsd` and `remainingUsd` are both `null` when no daily limit
|
|
1958
|
+
* is configured — render an "unlimited" state, not 0.
|
|
1959
|
+
*
|
|
1960
|
+
* Server route: `GET /sdk/organization/spending-limit`.
|
|
1961
|
+
*/
|
|
1962
|
+
getOrgSpendingLimit(): Promise<OrgSpendingLimitStatus>;
|
|
1897
1963
|
/**
|
|
1898
1964
|
* 7.8 Read the org's current security policy. Master-only.
|
|
1899
1965
|
*
|
|
@@ -2212,4 +2278,4 @@ declare class NotFoundError extends AfridaxBaseError {
|
|
|
2212
2278
|
*/
|
|
2213
2279
|
declare function isAfridaxError(error: unknown): error is AfridaxBaseError;
|
|
2214
2280
|
|
|
2215
|
-
export { type ActivateMultisigInput, type ActivateMultisigOutput, type ActivateXrpTrustLineInput, type ActivateXrpTrustLineOutput, type AdaNativeInstruction, type AdaTokenInstruction, type AddOrgAddressResponse, type AddressBookEntry, type AddressBookEntryType, type AddressTypeResponse, AfridaxBaseError, AfridaxSDK, ApiError, type AssignOrgWalletInput, type AssignOrgWalletResponse, type ChainIdValue, ChainNotSupportedError, type ChainType, type CreateAddressBookEntryInput, type CreateMultisigInput, type CreateOrderInput, type CreateOrderOutput, type CreateOrgAddressInput, type CreateOrgWalletInput, type CreateWalletInput, type CreateWalletOutput, type CreateWalletResponse, type DeleteAddressBookEntryInput, type DeleteMultisigInput, type DeleteOrderInput, type DeleteOrgAddressBookEntryInput, type DeleteOrgWalletInput, type DeleteResponse, type DeleteWalletInput, EAdaInstructionType, EAddressBookEntryType, EChainType, EOrgMemberRole, EOrgMemberStatus, EXrpOrderType, type EstimateActivationFeeInput, type EstimateFeeInput, type EstimateOrderExecutionFeeInput, type EstimatedFee, type ExecuteOrderInput, type ExecuteOrderOutput, type ExportOrgAuditLogsInput, type ExportWalletInput, type ExportWalletOutput, type GetAddressBookEntriesInput, type GetAddressTypeInput, type GetMultisigByIdInput, type GetMultisigTxHistoryInput, type GetMultisigsInput, type GetOrderByIdInput, type GetOrdersInput, type GetOrgAuditLogsInput, type GetOrgVaultByIdInput, type GetOrgWalletInput, type GetOrgWalletPortfolioInput, type GetOrgWalletUtxosInput, type GetPaginatedMultisigsInput, type GetPortfolioInput, type GetSupportedTokensInput, type GetWalletHistoryInput, type GetWalletInput, type GetWalletsInput, type GetXrpAccountReserveInput, type GetXrpTrustLinesInput, type GroupedMultisigResponseDTO, type HistoryResponse, type ImportWalletInput, InsufficientBalanceError, InvalidInputError, type InviteOrgMemberInput, type InviteOrgMemberResponse, KeyMismatchError, type ListOrgMemberWalletsInput, MEMO_MAX_LENGTH, MEMO_SUPPORTED_CHAINS, type MemoValidationResult, type MultisigBaseDTO, MultisigStatus, type MultisigsItem, NetworkError, NotFoundError, ORG_POLICY_CODES, type Order, type OrderInstruction, type OrderMethodType, type OrderParamsAda, type OrderParamsXrp, type OrderSigner, OrderStatus, type OrgAddressBookEntry, type OrgAddressRecipientType, type OrgAddressWalletType, type OrgAuditEventType, type OrgAuditLogItem, type OrgAuditLogsResponse, type OrgLimitGroup, type OrgLimitGroupChainLimit, type OrgLimitGroupEnvelopeResponse, type OrgMeResponse, type OrgMemberKycStatus, type OrgMyVaultsResponse, type OrgMyWalletsResponse, type OrgPolicy, type OrgPolicyCode, OrgPolicyRejectedError, type OrgTeamDirectoryResponse, type OrgTeamMember, type OrgVaultItem, type OrgVaultsResponse, type OrgWalletItem, type OrgWalletUtxosResponse, type OrgWalletsResponse, type PaginatedMultisigsWithTokensResponse, type PaginatedOrdersResponse, type PaginatedWalletsResponse, PermissionDeniedError, type RejectOrderInput, type RemoveOrgMemberInput, type RenameOrgWalletInput, type SDKConfig, type SendTransactionInput, type SendTransactionOutput, type SignOrderInput, type SignOrderOutput, type SingleWalletDetailsResponse, StatusFilterEnum, type SupportedTokensResponse, type TAdaCommandInstruction, type TWallet, type TXrpCommandInstruction, type TokenInfo, type TotalAssetValueResponse, TransactionEstimatingType, type TransactionHistoryItem, type TxHistoryCombinedResponse, type UnassignOrgWalletInput, UnauthorizedError, type UpdateAddressBookEntryInput, type UpdateMultisigNameInput, type UpdateOrgAddressBookEntryInput, type UpdateOrgAddressInput, type UpdateOrgPolicyInput, type UpdateWalletNameInput, type WalletPortfolioResponse, type WalletRenameResponse, XRP_MAX_DESTINATION_TAG, type XrpAccountReserveInfo, type XrpAssetInstruction, type XrpChangeThresholdInstruction, type XrpNativeInstruction, type XrpRemoveTrustLineInstruction, type XrpSetTrustLineInstruction, type TrustLineInfo as XrpTrustLineInfo, type XrpUpdateOwnerThresholdInstruction, type XrpUpdateOwnersInstruction, AfridaxSDK as default, getBtcChainType, getMemoPlaceholder, isAfridaxError, isMemoSupported, validateMemo };
|
|
2281
|
+
export { type ActivateMultisigInput, type ActivateMultisigOutput, type ActivateXrpTrustLineInput, type ActivateXrpTrustLineOutput, type AdaNativeInstruction, type AdaTokenInstruction, type AddOrgAddressResponse, type AddressBookEntry, type AddressBookEntryType, type AddressTypeResponse, AfridaxBaseError, AfridaxSDK, ApiError, type AssignOrgWalletInput, type AssignOrgWalletResponse, type ChainIdValue, ChainNotSupportedError, type ChainType, type CreateAddressBookEntryInput, type CreateMultisigInput, type CreateOrderInput, type CreateOrderOutput, type CreateOrgAddressInput, type CreateOrgWalletInput, type CreateWalletInput, type CreateWalletOutput, type CreateWalletResponse, type DeleteAddressBookEntryInput, type DeleteMultisigInput, type DeleteOrderInput, type DeleteOrgAddressBookEntryInput, type DeleteOrgWalletInput, type DeleteResponse, type DeleteWalletInput, EAdaInstructionType, EAddressBookEntryType, EChainType, EOrgMemberRole, EOrgMemberStatus, EXrpOrderType, type EstimateActivationFeeInput, type EstimateFeeInput, type EstimateOrderExecutionFeeInput, type EstimatedFee, type ExecuteOrderInput, type ExecuteOrderOutput, type ExportOrgAuditLogsInput, type ExportWalletInput, type ExportWalletOutput, type GetAddressBookEntriesInput, type GetAddressTypeInput, type GetMultisigByIdInput, type GetMultisigTxHistoryInput, type GetMultisigsInput, type GetOrderByIdInput, type GetOrdersInput, type GetOrgAuditLogsInput, type GetOrgVaultByIdInput, type GetOrgWalletInput, type GetOrgWalletPortfolioInput, type GetOrgWalletUtxosInput, type GetPaginatedMultisigsInput, type GetPortfolioInput, type GetSupportedTokensInput, type GetWalletHistoryInput, type GetWalletInput, type GetWalletsInput, type GetXrpAccountReserveInput, type GetXrpTrustLinesInput, type GroupedMultisigResponseDTO, type HistoryResponse, type ImportWalletInput, InsufficientBalanceError, InvalidInputError, type InviteOrgMemberInput, type InviteOrgMemberResponse, KeyMismatchError, type ListOrgMemberWalletsInput, MEMO_MAX_LENGTH, MEMO_SUPPORTED_CHAINS, type MemoValidationResult, type MultisigBaseDTO, MultisigStatus, type MultisigsItem, NetworkError, NotFoundError, ORG_POLICY_CODES, type Order, type OrderInstruction, type OrderMethodType, type OrderParamsAda, type OrderParamsXrp, type OrderSigner, OrderStatus, type OrgAddressBookEntry, type OrgAddressRecipientType, type OrgAddressWalletType, type OrgAuditEventType, type OrgAuditLogItem, type OrgAuditLogsResponse, type OrgLimitGroup, type OrgLimitGroupChainLimit, type OrgLimitGroupEnvelopeResponse, type OrgMeResponse, type OrgMemberKycStatus, type OrgMyVaultsResponse, type OrgMyWalletsResponse, type OrgPolicy, type OrgPolicyCode, OrgPolicyRejectedError, type OrgSpendingLimitStatus, type OrgTeamDirectoryResponse, type OrgTeamMember, type OrgVaultItem, type OrgVaultsResponse, type OrgWalletItem, type OrgWalletUtxosResponse, type OrgWalletsResponse, type PaginatedMultisigsWithTokensResponse, type PaginatedOrdersResponse, type PaginatedWalletsResponse, PermissionDeniedError, type RejectOrderInput, type RemoveOrgMemberInput, type RenameOrgWalletInput, type SDKConfig, type SendTransactionInput, type SendTransactionOutput, type SignOrderInput, type SignOrderOutput, type SingleWalletDetailsResponse, StatusFilterEnum, type SupportedTokensResponse, type TAdaCommandInstruction, type TWallet, type TXrpCommandInstruction, type TokenInfo, type TotalAssetValueResponse, TransactionEstimatingType, type TransactionHistoryItem, type TxHistoryCombinedResponse, type UnassignOrgWalletInput, UnauthorizedError, type UpdateAddressBookEntryInput, type UpdateMultisigNameInput, type UpdateOrgAddressBookEntryInput, type UpdateOrgAddressInput, type UpdateOrgPolicyInput, type UpdateWalletNameInput, type WalletPortfolioResponse, type WalletRenameResponse, type WalletScope, XRP_MAX_DESTINATION_TAG, type XrpAccountReserveInfo, type XrpAssetInstruction, type XrpChangeThresholdInstruction, type XrpNativeInstruction, type XrpRemoveTrustLineInstruction, type XrpSetTrustLineInstruction, type TrustLineInfo as XrpTrustLineInfo, type XrpUpdateOwnerThresholdInstruction, type XrpUpdateOwnersInstruction, AfridaxSDK as default, getBtcChainType, getMemoPlaceholder, isAfridaxError, isMemoSupported, validateMemo };
|