@dfns/sdk 0.8.20 → 0.8.23

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.
@@ -10,6 +10,7 @@ export declare class WalletsClient {
10
10
  broadcastTransaction(request: T.BroadcastTransactionRequest): Promise<T.BroadcastTransactionResponse>;
11
11
  cancelTransaction(request: T.CancelTransactionRequest): Promise<T.CancelTransactionResponse>;
12
12
  cancelTransfer(request: T.CancelTransferRequest): Promise<T.CancelTransferResponse>;
13
+ cantonLedgerApiProxy(request: T.CantonLedgerApiProxyRequest): Promise<T.CantonLedgerApiProxyResponse>;
13
14
  createWallet(request: T.CreateWalletRequest): Promise<T.CreateWalletResponse>;
14
15
  delegateWallet(request: T.DelegateWalletRequest): Promise<T.DelegateWalletResponse>;
15
16
  exportWallet(request: T.ExportWalletRequest): Promise<T.ExportWalletResponse>;
@@ -93,6 +93,18 @@ class WalletsClient {
93
93
  });
94
94
  return response.json();
95
95
  }
96
+ async cantonLedgerApiProxy(request) {
97
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/canton/ledger-api', {
98
+ path: request ?? {},
99
+ query: {},
100
+ });
101
+ const response = await (0, fetch_1.simpleFetch)(path, {
102
+ method: 'POST',
103
+ body: request.body,
104
+ apiOptions: this.apiOptions,
105
+ });
106
+ return response.json();
107
+ }
96
108
  async createWallet(request) {
97
109
  const path = (0, url_1.buildPathAndQuery)('/wallets', {
98
110
  path: request ?? {},
@@ -18,6 +18,7 @@ export declare class DelegatedWalletsClient {
18
18
  cancelTransactionComplete(request: T.CancelTransactionRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CancelTransactionResponse>;
19
19
  cancelTransferInit(request: T.CancelTransferRequest): Promise<UserActionChallengeResponse>;
20
20
  cancelTransferComplete(request: T.CancelTransferRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CancelTransferResponse>;
21
+ cantonLedgerApiProxy(request: T.CantonLedgerApiProxyRequest): Promise<T.CantonLedgerApiProxyResponse>;
21
22
  createWalletInit(request: T.CreateWalletRequest): Promise<UserActionChallengeResponse>;
22
23
  createWalletComplete(request: T.CreateWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateWalletResponse>;
23
24
  delegateWalletInit(request: T.DelegateWalletRequest): Promise<UserActionChallengeResponse>;
@@ -197,6 +197,18 @@ class DelegatedWalletsClient {
197
197
  });
198
198
  return response.json();
199
199
  }
200
+ async cantonLedgerApiProxy(request) {
201
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/canton/ledger-api', {
202
+ path: request ?? {},
203
+ query: {},
204
+ });
205
+ const response = await (0, fetch_1.simpleFetch)(path, {
206
+ method: 'POST',
207
+ body: request.body,
208
+ apiOptions: this.apiOptions,
209
+ });
210
+ return response.json();
211
+ }
200
212
  async createWalletInit(request) {
201
213
  const path = (0, url_1.buildPathAndQuery)('/wallets', {
202
214
  path: request ?? {},