@dfns/sdk 0.7.16 → 0.7.17

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.
@@ -2,6 +2,7 @@ export type CreateKeyBody = {
2
2
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
3
3
  curve: "ed25519" | "secp256k1" | "stark";
4
4
  name?: string | undefined;
5
+ masterKey?: boolean | undefined;
5
6
  storeId?: string | undefined;
6
7
  delegateTo?: string | undefined;
7
8
  delayDelegation?: boolean | undefined;
@@ -11,6 +12,7 @@ export type CreateKeyResponse = {
11
12
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
12
13
  curve: "ed25519" | "secp256k1" | "stark";
13
14
  publicKey: string;
15
+ masterKey?: boolean | undefined;
14
16
  name?: string | undefined;
15
17
  status: "Active" | "Archived";
16
18
  custodial: boolean;
@@ -44,6 +46,7 @@ export type DeleteKeyResponse = {
44
46
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
45
47
  curve: "ed25519" | "secp256k1" | "stark";
46
48
  publicKey: string;
49
+ masterKey?: boolean | undefined;
47
50
  name?: string | undefined;
48
51
  status: "Active" | "Archived";
49
52
  custodial: boolean;
@@ -70,7 +73,7 @@ export type DeriveKeyRequest = DeriveKeyParams & {
70
73
  export type ExportKeyBody = {
71
74
  encryptionKey: string;
72
75
  supportedSchemes: {
73
- protocol: "CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23";
76
+ protocol: ("CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23") | "CGGMP21";
74
77
  curve: "ed25519" | "secp256k1" | "stark";
75
78
  }[];
76
79
  };
@@ -79,7 +82,7 @@ export type ExportKeyParams = {
79
82
  };
80
83
  export type ExportKeyResponse = {
81
84
  publicKey: string;
82
- protocol: "CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23";
85
+ protocol: ("CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23") | "CGGMP21";
83
86
  curve: "ed25519" | "secp256k1" | "stark";
84
87
  /** The TSS threshold of the wallet private signing key shares */
85
88
  minSigners: number;
@@ -466,6 +469,7 @@ export type GetKeyResponse = {
466
469
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
467
470
  curve: "ed25519" | "secp256k1" | "stark";
468
471
  publicKey: string;
472
+ masterKey?: boolean | undefined;
469
473
  name?: string | undefined;
470
474
  status: "Active" | "Archived";
471
475
  custodial: boolean;
@@ -700,6 +704,7 @@ export type ImportKeyResponse = {
700
704
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
701
705
  curve: "ed25519" | "secp256k1" | "stark";
702
706
  publicKey: string;
707
+ masterKey?: boolean | undefined;
703
708
  name?: string | undefined;
704
709
  status: "Active" | "Archived";
705
710
  custodial: boolean;
@@ -723,6 +728,7 @@ export type ListKeysResponse = {
723
728
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
724
729
  curve: "ed25519" | "secp256k1" | "stark";
725
730
  publicKey: string;
731
+ masterKey?: boolean | undefined;
726
732
  name?: string | undefined;
727
733
  status: "Active" | "Archived";
728
734
  custodial: boolean;
@@ -957,6 +963,7 @@ export type UpdateKeyResponse = {
957
963
  scheme: "DH" | "ECDSA" | "EdDSA" | "Schnorr";
958
964
  curve: "ed25519" | "secp256k1" | "stark";
959
965
  publicKey: string;
966
+ masterKey?: boolean | undefined;
960
967
  name?: string | undefined;
961
968
  status: "Active" | "Archived";
962
969
  custodial: boolean;
@@ -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:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "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" | "FeeSponsors:Use" | "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" | "Yields:Create" | "Yields:Update" | "Yields: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" | "KeyStores: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" | "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:Update" | "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" | "FeeSponsors:Use" | "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" | "Allocations:Create" | "Allocations:Update" | "Allocations: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" | "KeyStores: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" | "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:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "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" | "FeeSponsors:Use" | "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" | "Yields:Create" | "Yields:Update" | "Yields: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" | "KeyStores: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" | "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:Update" | "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" | "FeeSponsors:Use" | "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" | "Allocations:Create" | "Allocations:Update" | "Allocations: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" | "KeyStores: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" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
187
187
  };
188
188
  export type UpdatePermissionParams = {
189
189
  permissionId: string;
@@ -792,13 +792,13 @@ export type CreateApprovalDecisionResponse = {
792
792
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
793
793
  externalId?: string | undefined;
794
794
  } | {
795
- kind: "SettleOffer";
796
- txHash: string;
797
- decision: "Accept" | "Reject";
795
+ kind: "TransferPreapproval";
798
796
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
799
797
  externalId?: string | undefined;
800
798
  } | {
801
- kind: "TransferPreapproval";
799
+ kind: "SettleOffer";
800
+ txHash: string;
801
+ decision: "Accept" | "Reject";
802
802
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
803
803
  externalId?: string | undefined;
804
804
  };
@@ -3137,13 +3137,13 @@ export type GetApprovalResponse = {
3137
3137
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
3138
3138
  externalId?: string | undefined;
3139
3139
  } | {
3140
- kind: "SettleOffer";
3141
- txHash: string;
3142
- decision: "Accept" | "Reject";
3140
+ kind: "TransferPreapproval";
3143
3141
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
3144
3142
  externalId?: string | undefined;
3145
3143
  } | {
3146
- kind: "TransferPreapproval";
3144
+ kind: "SettleOffer";
3145
+ txHash: string;
3146
+ decision: "Accept" | "Reject";
3147
3147
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
3148
3148
  externalId?: string | undefined;
3149
3149
  };
@@ -5526,13 +5526,13 @@ export type ListApprovalsResponse = {
5526
5526
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
5527
5527
  externalId?: string | undefined;
5528
5528
  } | {
5529
- kind: "SettleOffer";
5530
- txHash: string;
5531
- decision: "Accept" | "Reject";
5529
+ kind: "TransferPreapproval";
5532
5530
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
5533
5531
  externalId?: string | undefined;
5534
5532
  } | {
5535
- kind: "TransferPreapproval";
5533
+ kind: "SettleOffer";
5534
+ txHash: string;
5535
+ decision: "Accept" | "Reject";
5536
5536
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
5537
5537
  externalId?: string | undefined;
5538
5538
  };
@@ -89,12 +89,6 @@ export type BroadcastTransactionBody = {
89
89
  feeSponsorId: string;
90
90
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
91
91
  externalId?: string | undefined;
92
- } | {
93
- kind: "SettleOffer";
94
- txHash: string;
95
- decision: "Accept" | "Reject";
96
- /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
97
- externalId?: string | undefined;
98
92
  } | {
99
93
  kind: "TransferPreapproval";
100
94
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
@@ -169,13 +163,13 @@ export type BroadcastTransactionResponse = {
169
163
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
170
164
  externalId?: string | undefined;
171
165
  } | {
172
- kind: "SettleOffer";
173
- txHash: string;
174
- decision: "Accept" | "Reject";
166
+ kind: "TransferPreapproval";
175
167
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
176
168
  externalId?: string | undefined;
177
169
  } | {
178
- kind: "TransferPreapproval";
170
+ kind: "SettleOffer";
171
+ txHash: string;
172
+ decision: "Accept" | "Reject";
179
173
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
180
174
  externalId?: string | undefined;
181
175
  };
@@ -275,7 +269,7 @@ export type DelegateWalletRequest = DelegateWalletParams & {
275
269
  export type ExportWalletBody = {
276
270
  encryptionKey: string;
277
271
  supportedSchemes: {
278
- protocol: "CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23";
272
+ protocol: ("CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23") | "CGGMP21";
279
273
  curve: "ed25519" | "secp256k1" | "stark";
280
274
  }[];
281
275
  };
@@ -284,7 +278,7 @@ export type ExportWalletParams = {
284
278
  };
285
279
  export type ExportWalletResponse = {
286
280
  publicKey: string;
287
- protocol: "CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23";
281
+ protocol: ("CGGMP24" | "FROST" | "FROST_BITCOIN" | "GLOW20_DH" | "KU23") | "CGGMP21";
288
282
  curve: "ed25519" | "secp256k1" | "stark";
289
283
  /** The TSS threshold of the wallet private signing key shares */
290
284
  minSigners: number;
@@ -968,13 +962,13 @@ export type GetTransactionResponse = {
968
962
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
969
963
  externalId?: string | undefined;
970
964
  } | {
971
- kind: "SettleOffer";
972
- txHash: string;
973
- decision: "Accept" | "Reject";
965
+ kind: "TransferPreapproval";
974
966
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
975
967
  externalId?: string | undefined;
976
968
  } | {
977
- kind: "TransferPreapproval";
969
+ kind: "SettleOffer";
970
+ txHash: string;
971
+ decision: "Accept" | "Reject";
978
972
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
979
973
  externalId?: string | undefined;
980
974
  };
@@ -2605,13 +2599,13 @@ export type ListTransactionsResponse = {
2605
2599
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
2606
2600
  externalId?: string | undefined;
2607
2601
  } | {
2608
- kind: "SettleOffer";
2609
- txHash: string;
2610
- decision: "Accept" | "Reject";
2602
+ kind: "TransferPreapproval";
2611
2603
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
2612
2604
  externalId?: string | undefined;
2613
2605
  } | {
2614
- kind: "TransferPreapproval";
2606
+ kind: "SettleOffer";
2607
+ txHash: string;
2608
+ decision: "Accept" | "Reject";
2615
2609
  /** A unique ID from your system. It can be leveraged to be used as an idempotency key (read more [here](https://docs.dfns.co/api-reference/idempotency)). */
2616
2610
  externalId?: string | undefined;
2617
2611
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfns/sdk",
3
- "version": "0.7.16",
3
+ "version": "0.7.17",
4
4
  "dependencies": {
5
5
  "buffer": "^6.0.3",
6
6
  "cross-fetch": "^3.1.6"
@@ -1,11 +0,0 @@
1
- import { DfnsApiClientOptions } from '../../types/generic';
2
- import * as T from './types';
3
- export declare class YieldsClient {
4
- private apiOptions;
5
- constructor(apiOptions: DfnsApiClientOptions);
6
- createYield(request: T.CreateYieldRequest): Promise<T.CreateYieldResponse>;
7
- createYieldAction(request: T.CreateYieldActionRequest): Promise<T.CreateYieldActionResponse>;
8
- getYield(request: T.GetYieldRequest): Promise<T.GetYieldResponse>;
9
- listYieldActions(request: T.ListYieldActionsRequest): Promise<T.ListYieldActionsResponse>;
10
- listYields(request?: T.ListYieldsRequest): Promise<T.ListYieldsResponse>;
11
- }
@@ -1,14 +0,0 @@
1
- import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
2
- import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
3
- import * as T from './types';
4
- export declare class DelegatedYieldsClient {
5
- private apiOptions;
6
- constructor(apiOptions: DfnsDelegatedApiClientOptions);
7
- createYieldInit(request: T.CreateYieldRequest): Promise<UserActionChallengeResponse>;
8
- createYieldComplete(request: T.CreateYieldRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateYieldResponse>;
9
- createYieldActionInit(request: T.CreateYieldActionRequest): Promise<UserActionChallengeResponse>;
10
- createYieldActionComplete(request: T.CreateYieldActionRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateYieldActionResponse>;
11
- getYield(request: T.GetYieldRequest): Promise<T.GetYieldResponse>;
12
- listYieldActions(request: T.ListYieldActionsRequest): Promise<T.ListYieldActionsResponse>;
13
- listYields(request?: T.ListYieldsRequest): Promise<T.ListYieldsResponse>;
14
- }
File without changes
File without changes
File without changes