vaults-multichain-sdk 1.6.2 → 1.7.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.d.cts CHANGED
@@ -184,6 +184,22 @@ interface PaginatedMultisigsWithTokensResponse {
184
184
  page: number;
185
185
  limit: number;
186
186
  }
187
+ /**
188
+ * Response of `GET /sdk/organization/vaults/id/:chainType/:address` — full
189
+ * vault detail for a single org vault. Read `multisig.data[0]` for the
190
+ * `MultisigsItem` with `factoryAddress` and `params.deployData`.
191
+ */
192
+ interface MultisigWithTokensResponse {
193
+ multisig: GroupedMultisigResponseDTO;
194
+ }
195
+ /**
196
+ * Response of `GET /sdk/organization/vaults/:chainType` — full-detail list
197
+ * of every org vault on a single chain. Each entry exposes the same shape
198
+ * as the personal paginated list (`GroupedMultisigResponseDTO`).
199
+ */
200
+ interface MultisigsWithTokensResponse {
201
+ multisigs: GroupedMultisigResponseDTO[];
202
+ }
187
203
  /**
188
204
  * Order status enum
189
205
  */
@@ -1406,6 +1422,8 @@ interface CreateOrderInput {
1406
1422
  threshold?: number;
1407
1423
  token?: TokenInfo;
1408
1424
  orderIdToActivate?: string;
1425
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1426
+ walletScope?: WalletScope;
1409
1427
  }
1410
1428
  /** Output for createOrder */
1411
1429
  interface CreateOrderOutput {
@@ -1418,6 +1436,8 @@ interface SignOrderInput {
1418
1436
  order: Order;
1419
1437
  walletAddress: string;
1420
1438
  multisigId?: string;
1439
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1440
+ walletScope?: WalletScope;
1421
1441
  }
1422
1442
  /** Output for signOrder */
1423
1443
  interface SignOrderOutput {
@@ -1430,6 +1450,8 @@ interface RejectOrderInput {
1430
1450
  order: Order;
1431
1451
  multisig: MultisigsItem;
1432
1452
  walletAddress: string;
1453
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1454
+ walletScope?: WalletScope;
1433
1455
  }
1434
1456
  /** Input for executeOrder */
1435
1457
  interface ExecuteOrderInput {
@@ -1438,6 +1460,30 @@ interface ExecuteOrderInput {
1438
1460
  multisig: MultisigsItem;
1439
1461
  walletAddress: string;
1440
1462
  feeQuote?: EstimatedFee;
1463
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1464
+ walletScope?: WalletScope;
1465
+ }
1466
+ /** Input for createSendOrder (simplified send API) */
1467
+ interface CreateSendOrderInput {
1468
+ multisigId: string;
1469
+ walletAddress: string;
1470
+ to: string;
1471
+ amount: string;
1472
+ token?: TokenInfo;
1473
+ chainId: string;
1474
+ memo?: string;
1475
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1476
+ walletScope?: WalletScope;
1477
+ }
1478
+ /** Input for createSettingsOrder (simplified config-change API) */
1479
+ interface CreateSettingsOrderInput {
1480
+ multisigId: string;
1481
+ multisig: MultisigsItem;
1482
+ walletAddress: string;
1483
+ newOwners: string[];
1484
+ newThreshold?: number;
1485
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1486
+ walletScope?: WalletScope;
1441
1487
  }
1442
1488
  /** Output for executeOrder */
1443
1489
  interface ExecuteOrderOutput {
@@ -1457,16 +1503,22 @@ interface GetOrdersInput {
1457
1503
  multisigId: string;
1458
1504
  page?: number;
1459
1505
  limit?: number;
1506
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1507
+ walletScope?: WalletScope;
1460
1508
  }
1461
1509
  /** Input for getOrderById */
1462
1510
  interface GetOrderByIdInput {
1463
1511
  chain: EChainType;
1464
1512
  orderId: string;
1513
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1514
+ walletScope?: WalletScope;
1465
1515
  }
1466
1516
  /** Input for deleteOrder */
1467
1517
  interface DeleteOrderInput {
1468
1518
  chain: EChainType;
1469
1519
  orderId: string;
1520
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1521
+ walletScope?: WalletScope;
1470
1522
  }
1471
1523
  /** Input for getSupportedTokens */
1472
1524
  interface GetSupportedTokensInput {
@@ -1597,11 +1649,15 @@ interface GetOrgWalletUtxosInput {
1597
1649
  chainType: EChainType;
1598
1650
  chain: string;
1599
1651
  }
1600
- /** Input for `GET /sdk/organization/vaults/:address`. */
1652
+ /** Input for `GET /sdk/organization/vaults/id/:chainType/:address`. */
1601
1653
  interface GetOrgVaultByIdInput {
1602
1654
  address: string;
1603
1655
  chainType: EChainType;
1604
1656
  }
1657
+ /** Input for `GET /sdk/organization/vaults/:chainType`. */
1658
+ interface ListOrgVaultsByChainInput {
1659
+ chainType: EChainType;
1660
+ }
1605
1661
  /** Input for `GET /sdk/organization/vaults/:address/history`. */
1606
1662
  interface GetOrgVaultHistoryInput {
1607
1663
  address: string;
@@ -1715,26 +1771,12 @@ declare class AfridaxSDK {
1715
1771
  * 2.8a Create a send order (token transfer) - Simplified API
1716
1772
  * Automatically detects method and builds instructions
1717
1773
  */
1718
- createSendOrder(input: {
1719
- multisigId: string;
1720
- walletAddress: string;
1721
- to: string;
1722
- amount: string;
1723
- token?: TokenInfo;
1724
- chainId: string;
1725
- memo?: string;
1726
- }): Promise<CreateOrderOutput>;
1774
+ createSendOrder(input: CreateSendOrderInput): Promise<CreateOrderOutput>;
1727
1775
  /**
1728
1776
  * 2.8b Create a settings order (multisig configuration change) - Simplified API
1729
1777
  * Automatically calculates changes and determines method
1730
1778
  */
1731
- createSettingsOrder(input: {
1732
- multisigId: string;
1733
- multisig: MultisigsItem;
1734
- walletAddress: string;
1735
- newOwners: string[];
1736
- newThreshold?: number;
1737
- }): Promise<CreateOrderOutput>;
1779
+ createSettingsOrder(input: CreateSettingsOrderInput): Promise<CreateOrderOutput>;
1738
1780
  /**
1739
1781
  * 2.9 Sign/approve a pending order
1740
1782
  * Uses blockchainAdapter to properly reconstruct key and sign order hash
@@ -1893,19 +1935,39 @@ declare class AfridaxSDK {
1893
1935
  */
1894
1936
  listOrgVaults(): Promise<OrgVaultsResponse>;
1895
1937
  /**
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.
1938
+ * Full-detail list of every org vault on a single chain. Each entry
1939
+ * exposes the same `MultisigsItem` shape as the personal paginated list,
1940
+ * including `factoryAddress`, `params.deployData`, and `tokens` — use
1941
+ * this when callers need the activation payload, vs. `listOrgVaults()`
1942
+ * which returns the flat `OrgVaultItem` shape. Likely **Master-only**;
1943
+ * confirm against the backend spec before relying on Employee access.
1944
+ *
1945
+ * Server route: `GET /sdk/organization/vaults/:chainType`.
1946
+ */
1947
+ listOrgVaultsByChain(input: ListOrgVaultsByChainInput): Promise<MultisigsWithTokensResponse>;
1948
+ /**
1949
+ * Get a single org vault by on-chain address, returned in full detail.
1950
+ * Master sees any org vault; Employees only see vaults whose owners
1951
+ * include one of their assigned wallets.
1952
+ *
1953
+ * Read `result.multisig.data[0]` for the full `MultisigsItem` with
1954
+ * `factoryAddress` and `params.deployData`.
1955
+ *
1956
+ * **Breaking (1.7.0):** return type changed from flat `OrgVaultItem` to
1957
+ * `MultisigWithTokensResponse`. Callers that previously read
1958
+ * `vault.address` / `vault.owners` must now read
1959
+ * `vault.multisig.data[0].address` /
1960
+ * `vault.multisig.data[0].owners.map(o => o.walletAddress)`.
1899
1961
  *
1900
- * Server route: `GET /sdk/organization/vaults/:address?chainType=...`.
1962
+ * Server route: `GET /sdk/organization/vaults/id/:chainType/:address`.
1901
1963
  */
1902
- getOrgVaultById(input: GetOrgVaultByIdInput): Promise<OrgVaultItem>;
1964
+ getOrgVaultById(input: GetOrgVaultByIdInput): Promise<MultisigWithTokensResponse>;
1903
1965
  /**
1904
1966
  * Transaction history for an org vault (orders + transfers). Master or
1905
1967
  * Employee; assignment-gated for Employees.
1906
1968
  *
1907
1969
  * Server route:
1908
- * `GET /sdk/organization/vaults/:address/history?chainType=...`.
1970
+ * `GET /sdk/organization/vaults/by-address/:chainType/:address/history`.
1909
1971
  */
1910
1972
  getOrgVaultHistory(input: GetOrgVaultHistoryInput): Promise<TxHistoryCombinedResponse>;
1911
1973
  /**
@@ -2311,4 +2373,4 @@ declare class NotFoundError extends AfridaxBaseError {
2311
2373
  */
2312
2374
  declare function isAfridaxError(error: unknown): error is AfridaxBaseError;
2313
2375
 
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 };
2376
+ 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 CreateSendOrderInput, type CreateSettingsOrderInput, 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, type ListOrgVaultsByChainInput, MEMO_MAX_LENGTH, MEMO_SUPPORTED_CHAINS, type MemoValidationResult, type MultisigBaseDTO, MultisigStatus, type MultisigWithTokensResponse, type MultisigsItem, type MultisigsWithTokensResponse, 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
@@ -184,6 +184,22 @@ interface PaginatedMultisigsWithTokensResponse {
184
184
  page: number;
185
185
  limit: number;
186
186
  }
187
+ /**
188
+ * Response of `GET /sdk/organization/vaults/id/:chainType/:address` — full
189
+ * vault detail for a single org vault. Read `multisig.data[0]` for the
190
+ * `MultisigsItem` with `factoryAddress` and `params.deployData`.
191
+ */
192
+ interface MultisigWithTokensResponse {
193
+ multisig: GroupedMultisigResponseDTO;
194
+ }
195
+ /**
196
+ * Response of `GET /sdk/organization/vaults/:chainType` — full-detail list
197
+ * of every org vault on a single chain. Each entry exposes the same shape
198
+ * as the personal paginated list (`GroupedMultisigResponseDTO`).
199
+ */
200
+ interface MultisigsWithTokensResponse {
201
+ multisigs: GroupedMultisigResponseDTO[];
202
+ }
187
203
  /**
188
204
  * Order status enum
189
205
  */
@@ -1406,6 +1422,8 @@ interface CreateOrderInput {
1406
1422
  threshold?: number;
1407
1423
  token?: TokenInfo;
1408
1424
  orderIdToActivate?: string;
1425
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1426
+ walletScope?: WalletScope;
1409
1427
  }
1410
1428
  /** Output for createOrder */
1411
1429
  interface CreateOrderOutput {
@@ -1418,6 +1436,8 @@ interface SignOrderInput {
1418
1436
  order: Order;
1419
1437
  walletAddress: string;
1420
1438
  multisigId?: string;
1439
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1440
+ walletScope?: WalletScope;
1421
1441
  }
1422
1442
  /** Output for signOrder */
1423
1443
  interface SignOrderOutput {
@@ -1430,6 +1450,8 @@ interface RejectOrderInput {
1430
1450
  order: Order;
1431
1451
  multisig: MultisigsItem;
1432
1452
  walletAddress: string;
1453
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1454
+ walletScope?: WalletScope;
1433
1455
  }
1434
1456
  /** Input for executeOrder */
1435
1457
  interface ExecuteOrderInput {
@@ -1438,6 +1460,30 @@ interface ExecuteOrderInput {
1438
1460
  multisig: MultisigsItem;
1439
1461
  walletAddress: string;
1440
1462
  feeQuote?: EstimatedFee;
1463
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1464
+ walletScope?: WalletScope;
1465
+ }
1466
+ /** Input for createSendOrder (simplified send API) */
1467
+ interface CreateSendOrderInput {
1468
+ multisigId: string;
1469
+ walletAddress: string;
1470
+ to: string;
1471
+ amount: string;
1472
+ token?: TokenInfo;
1473
+ chainId: string;
1474
+ memo?: string;
1475
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1476
+ walletScope?: WalletScope;
1477
+ }
1478
+ /** Input for createSettingsOrder (simplified config-change API) */
1479
+ interface CreateSettingsOrderInput {
1480
+ multisigId: string;
1481
+ multisig: MultisigsItem;
1482
+ walletAddress: string;
1483
+ newOwners: string[];
1484
+ newThreshold?: number;
1485
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1486
+ walletScope?: WalletScope;
1441
1487
  }
1442
1488
  /** Output for executeOrder */
1443
1489
  interface ExecuteOrderOutput {
@@ -1457,16 +1503,22 @@ interface GetOrdersInput {
1457
1503
  multisigId: string;
1458
1504
  page?: number;
1459
1505
  limit?: number;
1506
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1507
+ walletScope?: WalletScope;
1460
1508
  }
1461
1509
  /** Input for getOrderById */
1462
1510
  interface GetOrderByIdInput {
1463
1511
  chain: EChainType;
1464
1512
  orderId: string;
1513
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1514
+ walletScope?: WalletScope;
1465
1515
  }
1466
1516
  /** Input for deleteOrder */
1467
1517
  interface DeleteOrderInput {
1468
1518
  chain: EChainType;
1469
1519
  orderId: string;
1520
+ /** Route to personal `/sdk/order/...` or organization `/sdk/organization/orders/...`. */
1521
+ walletScope?: WalletScope;
1470
1522
  }
1471
1523
  /** Input for getSupportedTokens */
1472
1524
  interface GetSupportedTokensInput {
@@ -1597,11 +1649,15 @@ interface GetOrgWalletUtxosInput {
1597
1649
  chainType: EChainType;
1598
1650
  chain: string;
1599
1651
  }
1600
- /** Input for `GET /sdk/organization/vaults/:address`. */
1652
+ /** Input for `GET /sdk/organization/vaults/id/:chainType/:address`. */
1601
1653
  interface GetOrgVaultByIdInput {
1602
1654
  address: string;
1603
1655
  chainType: EChainType;
1604
1656
  }
1657
+ /** Input for `GET /sdk/organization/vaults/:chainType`. */
1658
+ interface ListOrgVaultsByChainInput {
1659
+ chainType: EChainType;
1660
+ }
1605
1661
  /** Input for `GET /sdk/organization/vaults/:address/history`. */
1606
1662
  interface GetOrgVaultHistoryInput {
1607
1663
  address: string;
@@ -1715,26 +1771,12 @@ declare class AfridaxSDK {
1715
1771
  * 2.8a Create a send order (token transfer) - Simplified API
1716
1772
  * Automatically detects method and builds instructions
1717
1773
  */
1718
- createSendOrder(input: {
1719
- multisigId: string;
1720
- walletAddress: string;
1721
- to: string;
1722
- amount: string;
1723
- token?: TokenInfo;
1724
- chainId: string;
1725
- memo?: string;
1726
- }): Promise<CreateOrderOutput>;
1774
+ createSendOrder(input: CreateSendOrderInput): Promise<CreateOrderOutput>;
1727
1775
  /**
1728
1776
  * 2.8b Create a settings order (multisig configuration change) - Simplified API
1729
1777
  * Automatically calculates changes and determines method
1730
1778
  */
1731
- createSettingsOrder(input: {
1732
- multisigId: string;
1733
- multisig: MultisigsItem;
1734
- walletAddress: string;
1735
- newOwners: string[];
1736
- newThreshold?: number;
1737
- }): Promise<CreateOrderOutput>;
1779
+ createSettingsOrder(input: CreateSettingsOrderInput): Promise<CreateOrderOutput>;
1738
1780
  /**
1739
1781
  * 2.9 Sign/approve a pending order
1740
1782
  * Uses blockchainAdapter to properly reconstruct key and sign order hash
@@ -1893,19 +1935,39 @@ declare class AfridaxSDK {
1893
1935
  */
1894
1936
  listOrgVaults(): Promise<OrgVaultsResponse>;
1895
1937
  /**
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.
1938
+ * Full-detail list of every org vault on a single chain. Each entry
1939
+ * exposes the same `MultisigsItem` shape as the personal paginated list,
1940
+ * including `factoryAddress`, `params.deployData`, and `tokens` — use
1941
+ * this when callers need the activation payload, vs. `listOrgVaults()`
1942
+ * which returns the flat `OrgVaultItem` shape. Likely **Master-only**;
1943
+ * confirm against the backend spec before relying on Employee access.
1944
+ *
1945
+ * Server route: `GET /sdk/organization/vaults/:chainType`.
1946
+ */
1947
+ listOrgVaultsByChain(input: ListOrgVaultsByChainInput): Promise<MultisigsWithTokensResponse>;
1948
+ /**
1949
+ * Get a single org vault by on-chain address, returned in full detail.
1950
+ * Master sees any org vault; Employees only see vaults whose owners
1951
+ * include one of their assigned wallets.
1952
+ *
1953
+ * Read `result.multisig.data[0]` for the full `MultisigsItem` with
1954
+ * `factoryAddress` and `params.deployData`.
1955
+ *
1956
+ * **Breaking (1.7.0):** return type changed from flat `OrgVaultItem` to
1957
+ * `MultisigWithTokensResponse`. Callers that previously read
1958
+ * `vault.address` / `vault.owners` must now read
1959
+ * `vault.multisig.data[0].address` /
1960
+ * `vault.multisig.data[0].owners.map(o => o.walletAddress)`.
1899
1961
  *
1900
- * Server route: `GET /sdk/organization/vaults/:address?chainType=...`.
1962
+ * Server route: `GET /sdk/organization/vaults/id/:chainType/:address`.
1901
1963
  */
1902
- getOrgVaultById(input: GetOrgVaultByIdInput): Promise<OrgVaultItem>;
1964
+ getOrgVaultById(input: GetOrgVaultByIdInput): Promise<MultisigWithTokensResponse>;
1903
1965
  /**
1904
1966
  * Transaction history for an org vault (orders + transfers). Master or
1905
1967
  * Employee; assignment-gated for Employees.
1906
1968
  *
1907
1969
  * Server route:
1908
- * `GET /sdk/organization/vaults/:address/history?chainType=...`.
1970
+ * `GET /sdk/organization/vaults/by-address/:chainType/:address/history`.
1909
1971
  */
1910
1972
  getOrgVaultHistory(input: GetOrgVaultHistoryInput): Promise<TxHistoryCombinedResponse>;
1911
1973
  /**
@@ -2311,4 +2373,4 @@ declare class NotFoundError extends AfridaxBaseError {
2311
2373
  */
2312
2374
  declare function isAfridaxError(error: unknown): error is AfridaxBaseError;
2313
2375
 
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 };
2376
+ 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 CreateSendOrderInput, type CreateSettingsOrderInput, 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, type ListOrgVaultsByChainInput, MEMO_MAX_LENGTH, MEMO_SUPPORTED_CHAINS, type MemoValidationResult, type MultisigBaseDTO, MultisigStatus, type MultisigWithTokensResponse, type MultisigsItem, type MultisigsWithTokensResponse, 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 };