vaults-multichain-sdk 1.5.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +88 -14
- package/dist/index.d.ts +88 -14
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -886,6 +886,28 @@ interface OrgLimitGroup {
|
|
|
886
886
|
interface OrgLimitGroupEnvelopeResponse {
|
|
887
887
|
limitGroup: OrgLimitGroup | null;
|
|
888
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
|
+
}
|
|
889
911
|
/**
|
|
890
912
|
* Response of `GET /sdk/organization/wallets/:walletAddress/utxos/:chainType/:chain`.
|
|
891
913
|
* UTXO shape is chain-specific (BTC: `BtcUtxo`-like; ADA: `{ txHash, outputIndex, ... }`).
|
|
@@ -1104,6 +1126,18 @@ interface EstimateFeeInput {
|
|
|
1104
1126
|
};
|
|
1105
1127
|
chainId?: ChainIdValue;
|
|
1106
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
|
+
}
|
|
1107
1141
|
/**
|
|
1108
1142
|
* Input for GET /sdk/multisig (paginated vault list).
|
|
1109
1143
|
*/
|
|
@@ -1326,13 +1360,7 @@ interface UpdateWalletNameInput {
|
|
|
1326
1360
|
address: string;
|
|
1327
1361
|
name: string;
|
|
1328
1362
|
}
|
|
1329
|
-
|
|
1330
|
-
interface CreateMultisigInput {
|
|
1331
|
-
chain: EChainType;
|
|
1332
|
-
owners: string[];
|
|
1333
|
-
threshold: number;
|
|
1334
|
-
chainIds?: ChainIdValue[];
|
|
1335
|
-
}
|
|
1363
|
+
|
|
1336
1364
|
/** Input for getMultisigs */
|
|
1337
1365
|
interface GetMultisigsInput {
|
|
1338
1366
|
chain: EChainType;
|
|
@@ -1569,10 +1597,26 @@ interface GetOrgWalletUtxosInput {
|
|
|
1569
1597
|
chainType: EChainType;
|
|
1570
1598
|
chain: string;
|
|
1571
1599
|
}
|
|
1572
|
-
/**
|
|
1600
|
+
/** Input for `GET /sdk/organization/vaults/:address`. */
|
|
1573
1601
|
interface GetOrgVaultByIdInput {
|
|
1574
|
-
|
|
1575
|
-
|
|
1602
|
+
address: string;
|
|
1603
|
+
chainType: EChainType;
|
|
1604
|
+
}
|
|
1605
|
+
/** Input for `GET /sdk/organization/vaults/:address/history`. */
|
|
1606
|
+
interface GetOrgVaultHistoryInput {
|
|
1607
|
+
address: string;
|
|
1608
|
+
chainType: EChainType;
|
|
1609
|
+
page?: number;
|
|
1610
|
+
limit?: number;
|
|
1611
|
+
hideDust?: boolean;
|
|
1612
|
+
}
|
|
1613
|
+
/** Input for `GET /sdk/organization/wallets/:walletAddress/history`. */
|
|
1614
|
+
interface GetOrgWalletHistoryInput {
|
|
1615
|
+
walletAddress: string;
|
|
1616
|
+
chainType: EChainType;
|
|
1617
|
+
page?: number;
|
|
1618
|
+
limit?: number;
|
|
1619
|
+
hideDust?: boolean;
|
|
1576
1620
|
}
|
|
1577
1621
|
declare class AfridaxSDK {
|
|
1578
1622
|
private readonly resolvedConfig;
|
|
@@ -1849,12 +1893,29 @@ declare class AfridaxSDK {
|
|
|
1849
1893
|
*/
|
|
1850
1894
|
listOrgVaults(): Promise<OrgVaultsResponse>;
|
|
1851
1895
|
/**
|
|
1852
|
-
* Get a single org vault by
|
|
1853
|
-
* only see vaults whose owners include one of their assigned
|
|
1896
|
+
* Get a single org vault by on-chain address. Master sees any org vault;
|
|
1897
|
+
* Employees only see vaults whose owners include one of their assigned
|
|
1898
|
+
* wallets.
|
|
1854
1899
|
*
|
|
1855
|
-
* Server route: `GET /sdk/organization/vaults/:
|
|
1900
|
+
* Server route: `GET /sdk/organization/vaults/:address?chainType=...`.
|
|
1856
1901
|
*/
|
|
1857
1902
|
getOrgVaultById(input: GetOrgVaultByIdInput): Promise<OrgVaultItem>;
|
|
1903
|
+
/**
|
|
1904
|
+
* Transaction history for an org vault (orders + transfers). Master or
|
|
1905
|
+
* Employee; assignment-gated for Employees.
|
|
1906
|
+
*
|
|
1907
|
+
* Server route:
|
|
1908
|
+
* `GET /sdk/organization/vaults/:address/history?chainType=...`.
|
|
1909
|
+
*/
|
|
1910
|
+
getOrgVaultHistory(input: GetOrgVaultHistoryInput): Promise<TxHistoryCombinedResponse>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Transaction history for a regular (non-vault) org wallet. Master or
|
|
1913
|
+
* Employee; assignment-gated for Employees.
|
|
1914
|
+
*
|
|
1915
|
+
* Server route:
|
|
1916
|
+
* `GET /sdk/organization/wallets/:walletAddress/history?chainType=...`.
|
|
1917
|
+
*/
|
|
1918
|
+
getOrgWalletHistory(input: GetOrgWalletHistoryInput): Promise<HistoryResponse>;
|
|
1858
1919
|
/**
|
|
1859
1920
|
* Create one or more org-owned wallets. Master-only.
|
|
1860
1921
|
*
|
|
@@ -1919,6 +1980,19 @@ declare class AfridaxSDK {
|
|
|
1919
1980
|
* Server route: `GET /sdk/organization/limit-group`.
|
|
1920
1981
|
*/
|
|
1921
1982
|
getOrgLimitGroup(): Promise<OrgLimitGroupEnvelopeResponse>;
|
|
1983
|
+
/**
|
|
1984
|
+
* Daily USD spending status for the caller's organization — configured
|
|
1985
|
+
* limit, amount used today, remaining budget, and the next reset
|
|
1986
|
+
* timestamp. Mirrors the web app's `GET /organization/spending-limit`.
|
|
1987
|
+
* Available to Master or Employee accounts; requires the `ViewBalances`
|
|
1988
|
+
* API-key permission.
|
|
1989
|
+
*
|
|
1990
|
+
* `dailyLimitUsd` and `remainingUsd` are both `null` when no daily limit
|
|
1991
|
+
* is configured — render an "unlimited" state, not 0.
|
|
1992
|
+
*
|
|
1993
|
+
* Server route: `GET /sdk/organization/spending-limit`.
|
|
1994
|
+
*/
|
|
1995
|
+
getOrgSpendingLimit(): Promise<OrgSpendingLimitStatus>;
|
|
1922
1996
|
/**
|
|
1923
1997
|
* 7.8 Read the org's current security policy. Master-only.
|
|
1924
1998
|
*
|
|
@@ -2237,4 +2311,4 @@ declare class NotFoundError extends AfridaxBaseError {
|
|
|
2237
2311
|
*/
|
|
2238
2312
|
declare function isAfridaxError(error: unknown): error is AfridaxBaseError;
|
|
2239
2313
|
|
|
2240
|
-
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, 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 };
|
|
2314
|
+
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 GetOrgVaultHistoryInput, type GetOrgWalletHistoryInput, 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
|
@@ -886,6 +886,28 @@ interface OrgLimitGroup {
|
|
|
886
886
|
interface OrgLimitGroupEnvelopeResponse {
|
|
887
887
|
limitGroup: OrgLimitGroup | null;
|
|
888
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
|
+
}
|
|
889
911
|
/**
|
|
890
912
|
* Response of `GET /sdk/organization/wallets/:walletAddress/utxos/:chainType/:chain`.
|
|
891
913
|
* UTXO shape is chain-specific (BTC: `BtcUtxo`-like; ADA: `{ txHash, outputIndex, ... }`).
|
|
@@ -1104,6 +1126,18 @@ interface EstimateFeeInput {
|
|
|
1104
1126
|
};
|
|
1105
1127
|
chainId?: ChainIdValue;
|
|
1106
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
|
+
}
|
|
1107
1141
|
/**
|
|
1108
1142
|
* Input for GET /sdk/multisig (paginated vault list).
|
|
1109
1143
|
*/
|
|
@@ -1326,13 +1360,7 @@ interface UpdateWalletNameInput {
|
|
|
1326
1360
|
address: string;
|
|
1327
1361
|
name: string;
|
|
1328
1362
|
}
|
|
1329
|
-
|
|
1330
|
-
interface CreateMultisigInput {
|
|
1331
|
-
chain: EChainType;
|
|
1332
|
-
owners: string[];
|
|
1333
|
-
threshold: number;
|
|
1334
|
-
chainIds?: ChainIdValue[];
|
|
1335
|
-
}
|
|
1363
|
+
|
|
1336
1364
|
/** Input for getMultisigs */
|
|
1337
1365
|
interface GetMultisigsInput {
|
|
1338
1366
|
chain: EChainType;
|
|
@@ -1569,10 +1597,26 @@ interface GetOrgWalletUtxosInput {
|
|
|
1569
1597
|
chainType: EChainType;
|
|
1570
1598
|
chain: string;
|
|
1571
1599
|
}
|
|
1572
|
-
/**
|
|
1600
|
+
/** Input for `GET /sdk/organization/vaults/:address`. */
|
|
1573
1601
|
interface GetOrgVaultByIdInput {
|
|
1574
|
-
|
|
1575
|
-
|
|
1602
|
+
address: string;
|
|
1603
|
+
chainType: EChainType;
|
|
1604
|
+
}
|
|
1605
|
+
/** Input for `GET /sdk/organization/vaults/:address/history`. */
|
|
1606
|
+
interface GetOrgVaultHistoryInput {
|
|
1607
|
+
address: string;
|
|
1608
|
+
chainType: EChainType;
|
|
1609
|
+
page?: number;
|
|
1610
|
+
limit?: number;
|
|
1611
|
+
hideDust?: boolean;
|
|
1612
|
+
}
|
|
1613
|
+
/** Input for `GET /sdk/organization/wallets/:walletAddress/history`. */
|
|
1614
|
+
interface GetOrgWalletHistoryInput {
|
|
1615
|
+
walletAddress: string;
|
|
1616
|
+
chainType: EChainType;
|
|
1617
|
+
page?: number;
|
|
1618
|
+
limit?: number;
|
|
1619
|
+
hideDust?: boolean;
|
|
1576
1620
|
}
|
|
1577
1621
|
declare class AfridaxSDK {
|
|
1578
1622
|
private readonly resolvedConfig;
|
|
@@ -1849,12 +1893,29 @@ declare class AfridaxSDK {
|
|
|
1849
1893
|
*/
|
|
1850
1894
|
listOrgVaults(): Promise<OrgVaultsResponse>;
|
|
1851
1895
|
/**
|
|
1852
|
-
* Get a single org vault by
|
|
1853
|
-
* only see vaults whose owners include one of their assigned
|
|
1896
|
+
* Get a single org vault by on-chain address. Master sees any org vault;
|
|
1897
|
+
* Employees only see vaults whose owners include one of their assigned
|
|
1898
|
+
* wallets.
|
|
1854
1899
|
*
|
|
1855
|
-
* Server route: `GET /sdk/organization/vaults/:
|
|
1900
|
+
* Server route: `GET /sdk/organization/vaults/:address?chainType=...`.
|
|
1856
1901
|
*/
|
|
1857
1902
|
getOrgVaultById(input: GetOrgVaultByIdInput): Promise<OrgVaultItem>;
|
|
1903
|
+
/**
|
|
1904
|
+
* Transaction history for an org vault (orders + transfers). Master or
|
|
1905
|
+
* Employee; assignment-gated for Employees.
|
|
1906
|
+
*
|
|
1907
|
+
* Server route:
|
|
1908
|
+
* `GET /sdk/organization/vaults/:address/history?chainType=...`.
|
|
1909
|
+
*/
|
|
1910
|
+
getOrgVaultHistory(input: GetOrgVaultHistoryInput): Promise<TxHistoryCombinedResponse>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Transaction history for a regular (non-vault) org wallet. Master or
|
|
1913
|
+
* Employee; assignment-gated for Employees.
|
|
1914
|
+
*
|
|
1915
|
+
* Server route:
|
|
1916
|
+
* `GET /sdk/organization/wallets/:walletAddress/history?chainType=...`.
|
|
1917
|
+
*/
|
|
1918
|
+
getOrgWalletHistory(input: GetOrgWalletHistoryInput): Promise<HistoryResponse>;
|
|
1858
1919
|
/**
|
|
1859
1920
|
* Create one or more org-owned wallets. Master-only.
|
|
1860
1921
|
*
|
|
@@ -1919,6 +1980,19 @@ declare class AfridaxSDK {
|
|
|
1919
1980
|
* Server route: `GET /sdk/organization/limit-group`.
|
|
1920
1981
|
*/
|
|
1921
1982
|
getOrgLimitGroup(): Promise<OrgLimitGroupEnvelopeResponse>;
|
|
1983
|
+
/**
|
|
1984
|
+
* Daily USD spending status for the caller's organization — configured
|
|
1985
|
+
* limit, amount used today, remaining budget, and the next reset
|
|
1986
|
+
* timestamp. Mirrors the web app's `GET /organization/spending-limit`.
|
|
1987
|
+
* Available to Master or Employee accounts; requires the `ViewBalances`
|
|
1988
|
+
* API-key permission.
|
|
1989
|
+
*
|
|
1990
|
+
* `dailyLimitUsd` and `remainingUsd` are both `null` when no daily limit
|
|
1991
|
+
* is configured — render an "unlimited" state, not 0.
|
|
1992
|
+
*
|
|
1993
|
+
* Server route: `GET /sdk/organization/spending-limit`.
|
|
1994
|
+
*/
|
|
1995
|
+
getOrgSpendingLimit(): Promise<OrgSpendingLimitStatus>;
|
|
1922
1996
|
/**
|
|
1923
1997
|
* 7.8 Read the org's current security policy. Master-only.
|
|
1924
1998
|
*
|
|
@@ -2237,4 +2311,4 @@ declare class NotFoundError extends AfridaxBaseError {
|
|
|
2237
2311
|
*/
|
|
2238
2312
|
declare function isAfridaxError(error: unknown): error is AfridaxBaseError;
|
|
2239
2313
|
|
|
2240
|
-
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, 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 };
|
|
2314
|
+
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 GetOrgVaultHistoryInput, type GetOrgWalletHistoryInput, 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 };
|