@dfns/sdk 0.7.9-rc.2 → 0.7.9

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.
@@ -18,7 +18,6 @@ export type DfnsApiClientOptions = DfnsBaseApiOptions & {
18
18
  export declare class DfnsApiClient {
19
19
  private apiOptions;
20
20
  constructor(apiOptions: DfnsApiClientOptions);
21
- get signer(): CredentialSigner<import("./signer").FirstFactorAssertion> | undefined;
22
21
  get auth(): AuthClient;
23
22
  get exchanges(): ExchangesClient;
24
23
  get feeSponsors(): FeeSponsorsClient;
package/dfnsApiClient.js CHANGED
@@ -16,9 +16,6 @@ class DfnsApiClient {
16
16
  constructor(apiOptions) {
17
17
  this.apiOptions = apiOptions;
18
18
  }
19
- get signer() {
20
- return this.apiOptions.signer;
21
- }
22
19
  get auth() {
23
20
  return new auth_1.AuthClient(this.apiOptions);
24
21
  }
@@ -44,10 +44,12 @@ export declare class AuthClient {
44
44
  /** @deprecated, use delegatedLogin instead */
45
45
  createDelegatedUserLogin(request: T.DelegatedLoginRequest): Promise<T.DelegatedLoginResponse>;
46
46
  getApplication(request: T.GetApplicationRequest): Promise<T.GetApplicationResponse>;
47
+ getAuditLog(request: T.GetAuditLogRequest): Promise<T.GetAuditLogResponse>;
47
48
  getPersonalAccessToken(request: T.GetPersonalAccessTokenRequest): Promise<T.GetPersonalAccessTokenResponse>;
48
49
  getServiceAccount(request: T.GetServiceAccountRequest): Promise<T.GetServiceAccountResponse>;
49
50
  getUser(request: T.GetUserRequest): Promise<T.GetUserResponse>;
50
51
  listApplications(): Promise<T.ListApplicationsResponse>;
52
+ listAuditLogs(request?: T.ListAuditLogsRequest): Promise<T.ListAuditLogsResponse>;
51
53
  listCredentials(): Promise<T.ListCredentialsResponse>;
52
54
  /** @deprecated, use listCredentials instead */
53
55
  listUserCredentials(): Promise<T.ListCredentialsResponse>;
@@ -380,6 +380,17 @@ class AuthClient {
380
380
  });
381
381
  return response.json();
382
382
  }
383
+ async getAuditLog(request) {
384
+ const path = (0, url_1.buildPathAndQuery)('/auth/action/logs/:id', {
385
+ path: request ?? {},
386
+ query: {},
387
+ });
388
+ const response = await (0, fetch_1.simpleFetch)(path, {
389
+ method: 'GET',
390
+ apiOptions: this.apiOptions,
391
+ });
392
+ return response.json();
393
+ }
383
394
  async getPersonalAccessToken(request) {
384
395
  const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
385
396
  path: request ?? {},
@@ -424,6 +435,17 @@ class AuthClient {
424
435
  });
425
436
  return response.json();
426
437
  }
438
+ async listAuditLogs(request) {
439
+ const path = (0, url_1.buildPathAndQuery)('/auth/action/logs', {
440
+ path: request ?? {},
441
+ query: request?.query ?? {},
442
+ });
443
+ const response = await (0, fetch_1.simpleFetch)(path, {
444
+ method: 'GET',
445
+ apiOptions: this.apiOptions,
446
+ });
447
+ return response.json();
448
+ }
427
449
  async listCredentials() {
428
450
  const path = (0, url_1.buildPathAndQuery)('/auth/credentials', {
429
451
  path: {},
@@ -56,10 +56,12 @@ export declare class DelegatedAuthClient {
56
56
  delegatedLoginInit(request: T.DelegatedLoginRequest): Promise<UserActionChallengeResponse>;
57
57
  delegatedLoginComplete(request: T.DelegatedLoginRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DelegatedLoginResponse>;
58
58
  getApplication(request: T.GetApplicationRequest): Promise<T.GetApplicationResponse>;
59
+ getAuditLog(request: T.GetAuditLogRequest): Promise<T.GetAuditLogResponse>;
59
60
  getPersonalAccessToken(request: T.GetPersonalAccessTokenRequest): Promise<T.GetPersonalAccessTokenResponse>;
60
61
  getServiceAccount(request: T.GetServiceAccountRequest): Promise<T.GetServiceAccountResponse>;
61
62
  getUser(request: T.GetUserRequest): Promise<T.GetUserResponse>;
62
63
  listApplications(): Promise<T.ListApplicationsResponse>;
64
+ listAuditLogs(request?: T.ListAuditLogsRequest): Promise<T.ListAuditLogsResponse>;
63
65
  listCredentials(): Promise<T.ListCredentialsResponse>;
64
66
  /** @deprecated, use listCredentials instead */
65
67
  listUserCredentials(): Promise<T.ListCredentialsResponse>;
@@ -648,6 +648,17 @@ class DelegatedAuthClient {
648
648
  });
649
649
  return response.json();
650
650
  }
651
+ async getAuditLog(request) {
652
+ const path = (0, url_1.buildPathAndQuery)('/auth/action/logs/:id', {
653
+ path: request ?? {},
654
+ query: {},
655
+ });
656
+ const response = await (0, fetch_1.simpleFetch)(path, {
657
+ method: 'GET',
658
+ apiOptions: this.apiOptions,
659
+ });
660
+ return response.json();
661
+ }
651
662
  async getPersonalAccessToken(request) {
652
663
  const path = (0, url_1.buildPathAndQuery)('/auth/pats/:tokenId', {
653
664
  path: request ?? {},
@@ -692,6 +703,17 @@ class DelegatedAuthClient {
692
703
  });
693
704
  return response.json();
694
705
  }
706
+ async listAuditLogs(request) {
707
+ const path = (0, url_1.buildPathAndQuery)('/auth/action/logs', {
708
+ path: request ?? {},
709
+ query: request?.query ?? {},
710
+ });
711
+ const response = await (0, fetch_1.simpleFetch)(path, {
712
+ method: 'GET',
713
+ apiOptions: this.apiOptions,
714
+ });
715
+ return response.json();
716
+ }
695
717
  async listCredentials() {
696
718
  const path = (0, url_1.buildPathAndQuery)('/auth/credentials', {
697
719
  path: {},
@@ -1192,6 +1192,28 @@ export type GetApplicationResponse = {
1192
1192
  }[];
1193
1193
  };
1194
1194
  export type GetApplicationRequest = GetApplicationParams;
1195
+ export type GetAuditLogParams = {
1196
+ id: string;
1197
+ };
1198
+ export type GetAuditLogResponse = {
1199
+ id: string;
1200
+ action: string;
1201
+ actionToken: string;
1202
+ userId: string | null;
1203
+ username: string | null;
1204
+ datePerformed: string | null;
1205
+ firstFactorCredential: {
1206
+ id: string;
1207
+ kind: string;
1208
+ publicKey: string;
1209
+ assertion: {
1210
+ authenticatorData: string;
1211
+ clientData: string;
1212
+ signature: string;
1213
+ };
1214
+ };
1215
+ };
1216
+ export type GetAuditLogRequest = GetAuditLogParams;
1195
1217
  export type GetPersonalAccessTokenParams = {
1196
1218
  tokenId: string;
1197
1219
  };
@@ -1316,6 +1338,15 @@ export type ListApplicationsResponse = {
1316
1338
  }[];
1317
1339
  }[];
1318
1340
  };
1341
+ export type ListAuditLogsQuery = {
1342
+ startTime: string;
1343
+ endTime: string;
1344
+ userId?: string | undefined;
1345
+ };
1346
+ export type ListAuditLogsResponse = string;
1347
+ export type ListAuditLogsRequest = {
1348
+ query?: ListAuditLogsQuery;
1349
+ };
1319
1350
  export type ListCredentialsResponse = {
1320
1351
  items: {
1321
1352
  kind: "Fido2" | "Key" | "Password" | "Totp" | "RecoveryKey" | "PasswordProtectedKey";
@@ -3,6 +3,10 @@ export type CreateDepositBody = {
3
3
  amount: string;
4
4
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
5
5
  createDestinationAccount?: boolean | undefined;
6
+ /** Optional field for Canton, if true it will create a transfer offer */
7
+ offer?: boolean | undefined;
8
+ /** Optional field for Canton, especially useful in the context of offers */
9
+ expiresAt?: string | undefined;
6
10
  externalId?: string | undefined;
7
11
  travelRule?: ({
8
12
  kind: "Notabene";
@@ -200,6 +204,10 @@ export type CreateDepositResponse = {
200
204
  amount: string;
201
205
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
202
206
  createDestinationAccount?: boolean | undefined;
207
+ /** Optional field for Canton, if true it will create a transfer offer */
208
+ offer?: boolean | undefined;
209
+ /** Optional field for Canton, especially useful in the context of offers */
210
+ expiresAt?: string | undefined;
203
211
  externalId?: string | undefined;
204
212
  travelRule?: ({
205
213
  kind: "Notabene";
@@ -411,6 +419,10 @@ export type CreateWithdrawalBody = {
411
419
  amount: string;
412
420
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
413
421
  createDestinationAccount?: boolean | undefined;
422
+ /** Optional field for Canton, if true it will create a transfer offer */
423
+ offer?: boolean | undefined;
424
+ /** Optional field for Canton, especially useful in the context of offers */
425
+ expiresAt?: string | undefined;
414
426
  externalId?: string | undefined;
415
427
  travelRule?: ({
416
428
  kind: "Notabene";
@@ -608,6 +620,10 @@ export type CreateWithdrawalResponse = {
608
620
  amount: string;
609
621
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
610
622
  createDestinationAccount?: boolean | undefined;
623
+ /** Optional field for Canton, if true it will create a transfer offer */
624
+ offer?: boolean | undefined;
625
+ /** Optional field for Canton, especially useful in the context of offers */
626
+ expiresAt?: string | undefined;
611
627
  externalId?: string | undefined;
612
628
  travelRule?: ({
613
629
  kind: "Notabene";
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
36
36
  };
37
37
  export type CreatePermissionBody = {
38
38
  name: string;
39
- operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
39
+ operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
40
40
  };
41
41
  export type CreatePermissionResponse = {
42
42
  id: string;
@@ -183,7 +183,7 @@ export type ListPermissionsRequest = {
183
183
  };
184
184
  export type UpdatePermissionBody = {
185
185
  name?: string | undefined;
186
- operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
186
+ operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
187
187
  };
188
188
  export type UpdatePermissionParams = {
189
189
  permissionId: string;
@@ -277,6 +277,10 @@ export type CreateApprovalDecisionResponse = {
277
277
  memo?: string | undefined;
278
278
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
279
279
  createDestinationAccount?: boolean | undefined;
280
+ /** Optional field for Canton, if true it will create a transfer offer */
281
+ offer?: boolean | undefined;
282
+ /** Optional field for Canton, especially useful in the context of offers */
283
+ expiresAt?: string | undefined;
280
284
  externalId?: string | undefined;
281
285
  travelRule?: ({
282
286
  kind: "Notabene";
@@ -667,6 +671,11 @@ export type CreateApprovalDecisionResponse = {
667
671
  }[];
668
672
  feeSponsorId: string;
669
673
  externalId?: string | undefined;
674
+ } | {
675
+ kind: "SettleOffer";
676
+ txHash: string;
677
+ decision: "Accept" | "Reject";
678
+ externalId?: string | undefined;
670
679
  };
671
680
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
672
681
  reason?: string | undefined;
@@ -2288,6 +2297,10 @@ export type GetApprovalResponse = {
2288
2297
  memo?: string | undefined;
2289
2298
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
2290
2299
  createDestinationAccount?: boolean | undefined;
2300
+ /** Optional field for Canton, if true it will create a transfer offer */
2301
+ offer?: boolean | undefined;
2302
+ /** Optional field for Canton, especially useful in the context of offers */
2303
+ expiresAt?: string | undefined;
2291
2304
  externalId?: string | undefined;
2292
2305
  travelRule?: ({
2293
2306
  kind: "Notabene";
@@ -2678,6 +2691,11 @@ export type GetApprovalResponse = {
2678
2691
  }[];
2679
2692
  feeSponsorId: string;
2680
2693
  externalId?: string | undefined;
2694
+ } | {
2695
+ kind: "SettleOffer";
2696
+ txHash: string;
2697
+ decision: "Accept" | "Reject";
2698
+ externalId?: string | undefined;
2681
2699
  };
2682
2700
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
2683
2701
  reason?: string | undefined;
@@ -4343,6 +4361,10 @@ export type ListApprovalsResponse = {
4343
4361
  memo?: string | undefined;
4344
4362
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
4345
4363
  createDestinationAccount?: boolean | undefined;
4364
+ /** Optional field for Canton, if true it will create a transfer offer */
4365
+ offer?: boolean | undefined;
4366
+ /** Optional field for Canton, especially useful in the context of offers */
4367
+ expiresAt?: string | undefined;
4346
4368
  externalId?: string | undefined;
4347
4369
  travelRule?: ({
4348
4370
  kind: "Notabene";
@@ -4733,6 +4755,11 @@ export type ListApprovalsResponse = {
4733
4755
  }[];
4734
4756
  feeSponsorId: string;
4735
4757
  externalId?: string | undefined;
4758
+ } | {
4759
+ kind: "SettleOffer";
4760
+ txHash: string;
4761
+ decision: "Accept" | "Reject";
4762
+ externalId?: string | undefined;
4736
4763
  };
4737
4764
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
4738
4765
  reason?: string | undefined;
@@ -3,11 +3,13 @@ import * as T from './types';
3
3
  export declare class WalletsClient {
4
4
  private apiOptions;
5
5
  constructor(apiOptions: DfnsApiClientOptions);
6
+ acceptOffer(request: T.AcceptOfferRequest): Promise<T.AcceptOfferResponse>;
6
7
  broadcastTransaction(request: T.BroadcastTransactionRequest): Promise<T.BroadcastTransactionResponse>;
7
8
  createWallet(request: T.CreateWalletRequest): Promise<T.CreateWalletResponse>;
8
9
  delegateWallet(request: T.DelegateWalletRequest): Promise<T.DelegateWalletResponse>;
9
10
  exportWallet(request: T.ExportWalletRequest): Promise<T.ExportWalletResponse>;
10
11
  generateSignature(request: T.GenerateSignatureRequest): Promise<T.GenerateSignatureResponse>;
12
+ getOffer(request: T.GetOfferRequest): Promise<T.GetOfferResponse>;
11
13
  getSignature(request: T.GetSignatureRequest): Promise<T.GetSignatureResponse>;
12
14
  getTransaction(request: T.GetTransactionRequest): Promise<T.GetTransactionResponse>;
13
15
  getTransfer(request: T.GetTransferRequest): Promise<T.GetTransferResponse>;
@@ -16,11 +18,13 @@ export declare class WalletsClient {
16
18
  getWalletHistory(request: T.GetWalletHistoryRequest): Promise<T.GetWalletHistoryResponse>;
17
19
  getWalletNfts(request: T.GetWalletNftsRequest): Promise<T.GetWalletNftsResponse>;
18
20
  importWallet(request: T.ImportWalletRequest): Promise<T.ImportWalletResponse>;
21
+ listOffers(request: T.ListOffersRequest): Promise<T.ListOffersResponse>;
19
22
  listOrgWalletHistory(request?: T.ListOrgWalletHistoryRequest): Promise<T.ListOrgWalletHistoryResponse>;
20
23
  listSignatures(request: T.ListSignaturesRequest): Promise<T.ListSignaturesResponse>;
21
24
  listTransactions(request: T.ListTransactionsRequest): Promise<T.ListTransactionsResponse>;
22
25
  listTransfers(request: T.ListTransfersRequest): Promise<T.ListTransfersResponse>;
23
26
  listWallets(request?: T.ListWalletsRequest): Promise<T.ListWalletsResponse>;
27
+ rejectOffer(request: T.RejectOfferRequest): Promise<T.RejectOfferResponse>;
24
28
  tagWallet(request: T.TagWalletRequest): Promise<T.TagWalletResponse>;
25
29
  transferAsset(request: T.TransferAssetRequest): Promise<T.TransferAssetResponse>;
26
30
  untagWallet(request: T.UntagWalletRequest): Promise<T.UntagWalletResponse>;
@@ -9,6 +9,18 @@ class WalletsClient {
9
9
  constructor(apiOptions) {
10
10
  this.apiOptions = apiOptions;
11
11
  }
12
+ async acceptOffer(request) {
13
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId/accept', {
14
+ path: request ?? {},
15
+ query: {},
16
+ });
17
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
18
+ method: 'PUT',
19
+ body: {},
20
+ apiOptions: this.apiOptions,
21
+ });
22
+ return response.json();
23
+ }
12
24
  async broadcastTransaction(request) {
13
25
  const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/transactions', {
14
26
  path: request ?? {},
@@ -69,6 +81,17 @@ class WalletsClient {
69
81
  });
70
82
  return response.json();
71
83
  }
84
+ async getOffer(request) {
85
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId', {
86
+ path: request ?? {},
87
+ query: {},
88
+ });
89
+ const response = await (0, fetch_1.simpleFetch)(path, {
90
+ method: 'GET',
91
+ apiOptions: this.apiOptions,
92
+ });
93
+ return response.json();
94
+ }
72
95
  async getSignature(request) {
73
96
  const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/signatures/:signatureId', {
74
97
  path: request ?? {},
@@ -158,6 +181,17 @@ class WalletsClient {
158
181
  });
159
182
  return response.json();
160
183
  }
184
+ async listOffers(request) {
185
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers', {
186
+ path: request ?? {},
187
+ query: request.query ?? {},
188
+ });
189
+ const response = await (0, fetch_1.simpleFetch)(path, {
190
+ method: 'GET',
191
+ apiOptions: this.apiOptions,
192
+ });
193
+ return response.json();
194
+ }
161
195
  async listOrgWalletHistory(request) {
162
196
  const path = (0, url_1.buildPathAndQuery)('/wallets/all/history', {
163
197
  path: request ?? {},
@@ -213,6 +247,18 @@ class WalletsClient {
213
247
  });
214
248
  return response.json();
215
249
  }
250
+ async rejectOffer(request) {
251
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId/reject', {
252
+ path: request ?? {},
253
+ query: {},
254
+ });
255
+ const response = await (0, userActionFetch_1.userActionFetch)(path, {
256
+ method: 'PUT',
257
+ body: {},
258
+ apiOptions: this.apiOptions,
259
+ });
260
+ return response.json();
261
+ }
216
262
  async tagWallet(request) {
217
263
  const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/tags', {
218
264
  path: request ?? {},
@@ -4,6 +4,8 @@ import * as T from './types';
4
4
  export declare class DelegatedWalletsClient {
5
5
  private apiOptions;
6
6
  constructor(apiOptions: DfnsDelegatedApiClientOptions);
7
+ acceptOfferInit(request: T.AcceptOfferRequest): Promise<UserActionChallengeResponse>;
8
+ acceptOfferComplete(request: T.AcceptOfferRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.AcceptOfferResponse>;
7
9
  broadcastTransactionInit(request: T.BroadcastTransactionRequest): Promise<UserActionChallengeResponse>;
8
10
  broadcastTransactionComplete(request: T.BroadcastTransactionRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.BroadcastTransactionResponse>;
9
11
  createWalletInit(request: T.CreateWalletRequest): Promise<UserActionChallengeResponse>;
@@ -14,6 +16,7 @@ export declare class DelegatedWalletsClient {
14
16
  exportWalletComplete(request: T.ExportWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ExportWalletResponse>;
15
17
  generateSignatureInit(request: T.GenerateSignatureRequest): Promise<UserActionChallengeResponse>;
16
18
  generateSignatureComplete(request: T.GenerateSignatureRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.GenerateSignatureResponse>;
19
+ getOffer(request: T.GetOfferRequest): Promise<T.GetOfferResponse>;
17
20
  getSignature(request: T.GetSignatureRequest): Promise<T.GetSignatureResponse>;
18
21
  getTransaction(request: T.GetTransactionRequest): Promise<T.GetTransactionResponse>;
19
22
  getTransfer(request: T.GetTransferRequest): Promise<T.GetTransferResponse>;
@@ -23,11 +26,14 @@ export declare class DelegatedWalletsClient {
23
26
  getWalletNfts(request: T.GetWalletNftsRequest): Promise<T.GetWalletNftsResponse>;
24
27
  importWalletInit(request: T.ImportWalletRequest): Promise<UserActionChallengeResponse>;
25
28
  importWalletComplete(request: T.ImportWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ImportWalletResponse>;
29
+ listOffers(request: T.ListOffersRequest): Promise<T.ListOffersResponse>;
26
30
  listOrgWalletHistory(request?: T.ListOrgWalletHistoryRequest): Promise<T.ListOrgWalletHistoryResponse>;
27
31
  listSignatures(request: T.ListSignaturesRequest): Promise<T.ListSignaturesResponse>;
28
32
  listTransactions(request: T.ListTransactionsRequest): Promise<T.ListTransactionsResponse>;
29
33
  listTransfers(request: T.ListTransfersRequest): Promise<T.ListTransfersResponse>;
30
34
  listWallets(request?: T.ListWalletsRequest): Promise<T.ListWalletsResponse>;
35
+ rejectOfferInit(request: T.RejectOfferRequest): Promise<UserActionChallengeResponse>;
36
+ rejectOfferComplete(request: T.RejectOfferRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.RejectOfferResponse>;
31
37
  tagWalletInit(request: T.TagWalletRequest): Promise<UserActionChallengeResponse>;
32
38
  tagWalletComplete(request: T.TagWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.TagWalletResponse>;
33
39
  transferAssetInit(request: T.TransferAssetRequest): Promise<UserActionChallengeResponse>;
@@ -8,6 +8,33 @@ class DelegatedWalletsClient {
8
8
  constructor(apiOptions) {
9
9
  this.apiOptions = apiOptions;
10
10
  }
11
+ async acceptOfferInit(request) {
12
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId/accept', {
13
+ path: request ?? {},
14
+ query: {},
15
+ });
16
+ const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
17
+ userActionHttpMethod: 'PUT',
18
+ userActionHttpPath: path,
19
+ userActionPayload: JSON.stringify({}),
20
+ userActionServerKind: 'Api',
21
+ }, this.apiOptions);
22
+ return challenge;
23
+ }
24
+ async acceptOfferComplete(request, signedChallenge) {
25
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId/accept', {
26
+ path: request ?? {},
27
+ query: {},
28
+ });
29
+ const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
30
+ const response = await (0, fetch_1.simpleFetch)(path, {
31
+ method: 'PUT',
32
+ body: {},
33
+ headers: { 'x-dfns-useraction': userAction },
34
+ apiOptions: this.apiOptions,
35
+ });
36
+ return response.json();
37
+ }
11
38
  async broadcastTransactionInit(request) {
12
39
  const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/transactions', {
13
40
  path: request ?? {},
@@ -143,6 +170,17 @@ class DelegatedWalletsClient {
143
170
  });
144
171
  return response.json();
145
172
  }
173
+ async getOffer(request) {
174
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId', {
175
+ path: request ?? {},
176
+ query: {},
177
+ });
178
+ const response = await (0, fetch_1.simpleFetch)(path, {
179
+ method: 'GET',
180
+ apiOptions: this.apiOptions,
181
+ });
182
+ return response.json();
183
+ }
146
184
  async getSignature(request) {
147
185
  const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/signatures/:signatureId', {
148
186
  path: request ?? {},
@@ -247,6 +285,17 @@ class DelegatedWalletsClient {
247
285
  });
248
286
  return response.json();
249
287
  }
288
+ async listOffers(request) {
289
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers', {
290
+ path: request ?? {},
291
+ query: request.query ?? {},
292
+ });
293
+ const response = await (0, fetch_1.simpleFetch)(path, {
294
+ method: 'GET',
295
+ apiOptions: this.apiOptions,
296
+ });
297
+ return response.json();
298
+ }
250
299
  async listOrgWalletHistory(request) {
251
300
  const path = (0, url_1.buildPathAndQuery)('/wallets/all/history', {
252
301
  path: request ?? {},
@@ -302,6 +351,33 @@ class DelegatedWalletsClient {
302
351
  });
303
352
  return response.json();
304
353
  }
354
+ async rejectOfferInit(request) {
355
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId/reject', {
356
+ path: request ?? {},
357
+ query: {},
358
+ });
359
+ const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
360
+ userActionHttpMethod: 'PUT',
361
+ userActionHttpPath: path,
362
+ userActionPayload: JSON.stringify({}),
363
+ userActionServerKind: 'Api',
364
+ }, this.apiOptions);
365
+ return challenge;
366
+ }
367
+ async rejectOfferComplete(request, signedChallenge) {
368
+ const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/offers/:offerId/reject', {
369
+ path: request ?? {},
370
+ query: {},
371
+ });
372
+ const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
373
+ const response = await (0, fetch_1.simpleFetch)(path, {
374
+ method: 'PUT',
375
+ body: {},
376
+ headers: { 'x-dfns-useraction': userAction },
377
+ apiOptions: this.apiOptions,
378
+ });
379
+ return response.json();
380
+ }
305
381
  async tagWalletInit(request) {
306
382
  const path = (0, url_1.buildPathAndQuery)('/wallets/:walletId/tags', {
307
383
  path: request ?? {},
@@ -1,3 +1,32 @@
1
+ export type AcceptOfferParams = {
2
+ walletId: string;
3
+ offerId: string;
4
+ };
5
+ export type AcceptOfferResponse = {
6
+ id: string;
7
+ orgId: string;
8
+ walletId: string;
9
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
10
+ kind: "Native" | "Aip21" | "Asa" | "Coin" | "Erc20" | "Erc721" | "Asset" | "Hip17" | "Hts" | "Sep41" | "Spl" | "Spl2022" | "Tep74" | "Trc10" | "Trc20" | "Trc721";
11
+ metadata: {
12
+ asset: {
13
+ symbol?: string | undefined;
14
+ decimals?: number | undefined;
15
+ verified?: boolean | undefined;
16
+ quotes?: {
17
+ [x: string]: number;
18
+ } | undefined;
19
+ };
20
+ };
21
+ txHash: string;
22
+ status: "Pending" | "Accepted" | "Rejected" | "Expired";
23
+ from: string;
24
+ to: string;
25
+ value: string;
26
+ timestamp: string;
27
+ expiresAt?: string | undefined;
28
+ };
29
+ export type AcceptOfferRequest = AcceptOfferParams;
1
30
  export type BroadcastTransactionBody = {
2
31
  kind: "Transaction";
3
32
  transaction: string | {};
@@ -41,6 +70,11 @@ export type BroadcastTransactionBody = {
41
70
  }[];
42
71
  feeSponsorId: string;
43
72
  externalId?: string | undefined;
73
+ } | {
74
+ kind: "SettleOffer";
75
+ txHash: string;
76
+ decision: "Accept" | "Reject";
77
+ externalId?: string | undefined;
44
78
  };
45
79
  export type BroadcastTransactionParams = {
46
80
  walletId: string;
@@ -96,6 +130,11 @@ export type BroadcastTransactionResponse = {
96
130
  }[];
97
131
  feeSponsorId: string;
98
132
  externalId?: string | undefined;
133
+ } | {
134
+ kind: "SettleOffer";
135
+ txHash: string;
136
+ decision: "Accept" | "Reject";
137
+ externalId?: string | undefined;
99
138
  };
100
139
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
101
140
  reason?: string | undefined;
@@ -392,6 +431,35 @@ export type GenerateSignatureResponse = {
392
431
  export type GenerateSignatureRequest = GenerateSignatureParams & {
393
432
  body: GenerateSignatureBody;
394
433
  };
434
+ export type GetOfferParams = {
435
+ walletId: string;
436
+ offerId: string;
437
+ };
438
+ export type GetOfferResponse = {
439
+ id: string;
440
+ orgId: string;
441
+ walletId: string;
442
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
443
+ kind: "Native" | "Aip21" | "Asa" | "Coin" | "Erc20" | "Erc721" | "Asset" | "Hip17" | "Hts" | "Sep41" | "Spl" | "Spl2022" | "Tep74" | "Trc10" | "Trc20" | "Trc721";
444
+ metadata: {
445
+ asset: {
446
+ symbol?: string | undefined;
447
+ decimals?: number | undefined;
448
+ verified?: boolean | undefined;
449
+ quotes?: {
450
+ [x: string]: number;
451
+ } | undefined;
452
+ };
453
+ };
454
+ txHash: string;
455
+ status: "Pending" | "Accepted" | "Rejected" | "Expired";
456
+ from: string;
457
+ to: string;
458
+ value: string;
459
+ timestamp: string;
460
+ expiresAt?: string | undefined;
461
+ };
462
+ export type GetOfferRequest = GetOfferParams;
395
463
  export type GetSignatureParams = {
396
464
  walletId: string;
397
465
  signatureId: string;
@@ -566,6 +634,11 @@ export type GetTransactionResponse = {
566
634
  }[];
567
635
  feeSponsorId: string;
568
636
  externalId?: string | undefined;
637
+ } | {
638
+ kind: "SettleOffer";
639
+ txHash: string;
640
+ decision: "Accept" | "Reject";
641
+ externalId?: string | undefined;
569
642
  };
570
643
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
571
644
  reason?: string | undefined;
@@ -598,6 +671,10 @@ export type GetTransferResponse = {
598
671
  memo?: string | undefined;
599
672
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
600
673
  createDestinationAccount?: boolean | undefined;
674
+ /** Optional field for Canton, if true it will create a transfer offer */
675
+ offer?: boolean | undefined;
676
+ /** Optional field for Canton, especially useful in the context of offers */
677
+ expiresAt?: string | undefined;
601
678
  externalId?: string | undefined;
602
679
  travelRule?: ({
603
680
  kind: "Notabene";
@@ -1618,11 +1695,6 @@ export type GetWalletNftsResponse = {
1618
1695
  assetId: string;
1619
1696
  symbol?: string | undefined;
1620
1697
  tokenUri?: string | undefined;
1621
- } | {
1622
- kind: "Asset";
1623
- assetId: string;
1624
- symbol?: string | undefined;
1625
- tokenUri?: string | undefined;
1626
1698
  } | {
1627
1699
  kind: "Erc721" | "Trc721";
1628
1700
  contract: string;
@@ -1675,6 +1747,43 @@ export type ImportWalletResponse = {
1675
1747
  export type ImportWalletRequest = {
1676
1748
  body: ImportWalletBody;
1677
1749
  };
1750
+ export type ListOffersParams = {
1751
+ walletId: string;
1752
+ };
1753
+ export type ListOffersQuery = {
1754
+ limit?: number | undefined;
1755
+ paginationToken?: string | undefined;
1756
+ };
1757
+ export type ListOffersResponse = {
1758
+ items: {
1759
+ id: string;
1760
+ orgId: string;
1761
+ walletId: string;
1762
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
1763
+ kind: "Native" | "Aip21" | "Asa" | "Coin" | "Erc20" | "Erc721" | "Asset" | "Hip17" | "Hts" | "Sep41" | "Spl" | "Spl2022" | "Tep74" | "Trc10" | "Trc20" | "Trc721";
1764
+ metadata: {
1765
+ asset: {
1766
+ symbol?: string | undefined;
1767
+ decimals?: number | undefined;
1768
+ verified?: boolean | undefined;
1769
+ quotes?: {
1770
+ [x: string]: number;
1771
+ } | undefined;
1772
+ };
1773
+ };
1774
+ txHash: string;
1775
+ status: "Pending" | "Accepted" | "Rejected" | "Expired";
1776
+ from: string;
1777
+ to: string;
1778
+ value: string;
1779
+ timestamp: string;
1780
+ expiresAt?: string | undefined;
1781
+ }[];
1782
+ nextPageToken?: string | undefined;
1783
+ };
1784
+ export type ListOffersRequest = ListOffersParams & {
1785
+ query?: ListOffersQuery;
1786
+ };
1678
1787
  export type ListOrgWalletHistoryQuery = {
1679
1788
  startTime: string;
1680
1789
  endTime: string;
@@ -1893,6 +2002,11 @@ export type ListTransactionsResponse = {
1893
2002
  }[];
1894
2003
  feeSponsorId: string;
1895
2004
  externalId?: string | undefined;
2005
+ } | {
2006
+ kind: "SettleOffer";
2007
+ txHash: string;
2008
+ decision: "Accept" | "Reject";
2009
+ externalId?: string | undefined;
1896
2010
  };
1897
2011
  status: "Pending" | "Executing" | "Broadcasted" | "Confirmed" | "Failed" | "Rejected";
1898
2012
  reason?: string | undefined;
@@ -1934,6 +2048,10 @@ export type ListTransfersResponse = {
1934
2048
  memo?: string | undefined;
1935
2049
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
1936
2050
  createDestinationAccount?: boolean | undefined;
2051
+ /** Optional field for Canton, if true it will create a transfer offer */
2052
+ offer?: boolean | undefined;
2053
+ /** Optional field for Canton, especially useful in the context of offers */
2054
+ expiresAt?: string | undefined;
1937
2055
  externalId?: string | undefined;
1938
2056
  travelRule?: ({
1939
2057
  kind: "Notabene";
@@ -2313,6 +2431,35 @@ export type ListWalletsResponse = {
2313
2431
  export type ListWalletsRequest = {
2314
2432
  query?: ListWalletsQuery;
2315
2433
  };
2434
+ export type RejectOfferParams = {
2435
+ walletId: string;
2436
+ offerId: string;
2437
+ };
2438
+ export type RejectOfferResponse = {
2439
+ id: string;
2440
+ orgId: string;
2441
+ walletId: string;
2442
+ network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Adi" | "AdiTestnet" | "BabylonGenesis" | "BabylonTestnet5" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "BitcoinCash" | "BitcoinCashTestnet" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "CosmosHub4" | "CosmosIcsTestnet" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "FlareC" | "FlareCCoston2" | "Hedera" | "HederaTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "IotaZodianet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Near" | "NearTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Plume" | "PlumeSepolia" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Sui" | "SuiTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
2443
+ kind: "Native" | "Aip21" | "Asa" | "Coin" | "Erc20" | "Erc721" | "Asset" | "Hip17" | "Hts" | "Sep41" | "Spl" | "Spl2022" | "Tep74" | "Trc10" | "Trc20" | "Trc721";
2444
+ metadata: {
2445
+ asset: {
2446
+ symbol?: string | undefined;
2447
+ decimals?: number | undefined;
2448
+ verified?: boolean | undefined;
2449
+ quotes?: {
2450
+ [x: string]: number;
2451
+ } | undefined;
2452
+ };
2453
+ };
2454
+ txHash: string;
2455
+ status: "Pending" | "Accepted" | "Rejected" | "Expired";
2456
+ from: string;
2457
+ to: string;
2458
+ value: string;
2459
+ timestamp: string;
2460
+ expiresAt?: string | undefined;
2461
+ };
2462
+ export type RejectOfferRequest = RejectOfferParams;
2316
2463
  export type TagWalletBody = {
2317
2464
  tags: string[];
2318
2465
  };
@@ -2330,6 +2477,10 @@ export type TransferAssetBody = {
2330
2477
  memo?: string | undefined;
2331
2478
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
2332
2479
  createDestinationAccount?: boolean | undefined;
2480
+ /** Optional field for Canton, if true it will create a transfer offer */
2481
+ offer?: boolean | undefined;
2482
+ /** Optional field for Canton, especially useful in the context of offers */
2483
+ expiresAt?: string | undefined;
2333
2484
  externalId?: string | undefined;
2334
2485
  travelRule?: ({
2335
2486
  kind: "Notabene";
@@ -2665,6 +2816,10 @@ export type TransferAssetResponse = {
2665
2816
  memo?: string | undefined;
2666
2817
  priority?: ("Slow" | "Standard" | "Fast") | undefined;
2667
2818
  createDestinationAccount?: boolean | undefined;
2819
+ /** Optional field for Canton, if true it will create a transfer offer */
2820
+ offer?: boolean | undefined;
2821
+ /** Optional field for Canton, especially useful in the context of offers */
2822
+ expiresAt?: string | undefined;
2668
2823
  externalId?: string | undefined;
2669
2824
  travelRule?: ({
2670
2825
  kind: "Notabene";
@@ -3,7 +3,7 @@ export type CreateWebhookBody = {
3
3
  /** Webhook status */
4
4
  status?: ("Enabled" | "Disabled") | undefined;
5
5
  description?: string | undefined;
6
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | "*")[];
6
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | "*")[];
7
7
  };
8
8
  export type CreateWebhookResponse = {
9
9
  /** Webhook ID */
@@ -11,7 +11,7 @@ export type CreateWebhookResponse = {
11
11
  /** Webhook url */
12
12
  url: string;
13
13
  /** All events this webhook is subscribed to. */
14
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | "*")[];
14
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | "*")[];
15
15
  /** Webhook status */
16
16
  status: "Enabled" | "Disabled";
17
17
  /** Short description this webhook's purpose */
@@ -42,7 +42,7 @@ export type GetWebhookResponse = {
42
42
  /** Webhook url */
43
43
  url: string;
44
44
  /** All events this webhook is subscribed to. */
45
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | "*")[];
45
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | "*")[];
46
46
  /** Webhook status */
47
47
  status: "Enabled" | "Disabled";
48
48
  /** Short description this webhook's purpose */
@@ -63,7 +63,7 @@ export type GetWebhookEventResponse = {
63
63
  /** ISO date string when event was raised */
64
64
  date: string;
65
65
  /** Webhook event */
66
- kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified";
66
+ kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified";
67
67
  data: {
68
68
  [x: string]: any;
69
69
  };
@@ -79,7 +79,7 @@ export type ListWebhookEventsParams = {
79
79
  webhookId: string;
80
80
  };
81
81
  export type ListWebhookEventsQuery = {
82
- kind?: ("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | undefined;
82
+ kind?: ("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | undefined;
83
83
  deliveryFailed?: ("true" | "false") | undefined;
84
84
  limit?: number | undefined;
85
85
  paginationToken?: string | undefined;
@@ -91,7 +91,7 @@ export type ListWebhookEventsResponse = {
91
91
  /** ISO date string when event was raised */
92
92
  date: string;
93
93
  /** Webhook event */
94
- kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified";
94
+ kind: "policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified";
95
95
  data: {
96
96
  [x: string]: any;
97
97
  };
@@ -118,7 +118,7 @@ export type ListWebhooksResponse = {
118
118
  /** Webhook url */
119
119
  url: string;
120
120
  /** All events this webhook is subscribed to. */
121
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | "*")[];
121
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | "*")[];
122
122
  /** Webhook status */
123
123
  status: "Enabled" | "Disabled";
124
124
  /** Short description this webhook's purpose */
@@ -144,7 +144,7 @@ export type PingWebhookRequest = PingWebhookParams;
144
144
  export type UpdateWebhookBody = {
145
145
  url?: string | undefined;
146
146
  description?: (string | undefined) | undefined;
147
- events?: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | "*")[] | undefined;
147
+ events?: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | "*")[] | undefined;
148
148
  /** Webhook status */
149
149
  status?: (("Enabled" | "Disabled") | undefined) | undefined;
150
150
  };
@@ -157,7 +157,7 @@ export type UpdateWebhookResponse = {
157
157
  /** Webhook url */
158
158
  url: string;
159
159
  /** All events this webhook is subscribed to. */
160
- events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.tags.modified") | "*")[];
160
+ events: (("policy.triggered" | "policy.approval.pending" | "policy.approval.resolved" | "key.created" | "key.deleted" | "key.delegated" | "key.exported" | "wallet.blockchainevent.detected" | "wallet.created" | "wallet.delegated" | "wallet.exported" | "wallet.signature.failed" | "wallet.signature.rejected" | "wallet.signature.requested" | "wallet.signature.signed" | "wallet.transaction.broadcasted" | "wallet.transaction.confirmed" | "wallet.transaction.failed" | "wallet.transaction.rejected" | "wallet.transaction.requested" | "wallet.transfer.broadcasted" | "wallet.transfer.confirmed" | "wallet.transfer.failed" | "wallet.transfer.rejected" | "wallet.transfer.requested" | "wallet.offer.received" | "wallet.offer.accepted" | "wallet.offer.rejected" | "wallet.tags.modified") | "*")[];
161
161
  /** Webhook status */
162
162
  status: "Enabled" | "Disabled";
163
163
  /** Short description this webhook's purpose */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.7.9-rc.2",
3
+ "version": "0.7.9",
4
4
  "dependencies": {
5
5
  "buffer": "6.0.3",
6
6
  "cross-fetch": "3.1.6"