@dfns/sdk 0.4.3-alpha.1 → 0.4.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1773,7 +1773,7 @@ export type RegisterEndUserBody = {
|
|
|
1773
1773
|
encryptedPrivateKey?: string | undefined;
|
|
1774
1774
|
} | undefined;
|
|
1775
1775
|
wallets: {
|
|
1776
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "
|
|
1776
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Stellar" | "StellarTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
1777
1777
|
name?: string | undefined;
|
|
1778
1778
|
}[];
|
|
1779
1779
|
};
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: ("
|
|
39
|
+
operations: ("AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "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" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -74,13 +74,13 @@ export type GetPermissionResponse = {
|
|
|
74
74
|
id: string;
|
|
75
75
|
requester: {
|
|
76
76
|
userId: string;
|
|
77
|
-
tokenId
|
|
78
|
-
appId
|
|
77
|
+
tokenId?: string | undefined;
|
|
78
|
+
appId?: string | undefined;
|
|
79
79
|
};
|
|
80
80
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
81
81
|
entityId: string;
|
|
82
|
-
dateCreated:
|
|
83
|
-
dateResolved?:
|
|
82
|
+
dateCreated: string;
|
|
83
|
+
dateResolved?: string | undefined;
|
|
84
84
|
approvalId?: string | undefined;
|
|
85
85
|
kind: "Permission";
|
|
86
86
|
operationKind: "Update";
|
|
@@ -111,13 +111,13 @@ export type ListAssignmentsResponse = {
|
|
|
111
111
|
id: string;
|
|
112
112
|
requester: {
|
|
113
113
|
userId: string;
|
|
114
|
-
tokenId
|
|
115
|
-
appId
|
|
114
|
+
tokenId?: string | undefined;
|
|
115
|
+
appId?: string | undefined;
|
|
116
116
|
};
|
|
117
117
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
118
118
|
entityId: string;
|
|
119
|
-
dateCreated:
|
|
120
|
-
dateResolved?:
|
|
119
|
+
dateCreated: string;
|
|
120
|
+
dateResolved?: string | undefined;
|
|
121
121
|
approvalId?: string | undefined;
|
|
122
122
|
kind: "Assignment";
|
|
123
123
|
operationKind: "Create" | "Delete";
|
|
@@ -151,13 +151,13 @@ export type ListPermissionsResponse = {
|
|
|
151
151
|
id: string;
|
|
152
152
|
requester: {
|
|
153
153
|
userId: string;
|
|
154
|
-
tokenId
|
|
155
|
-
appId
|
|
154
|
+
tokenId?: string | undefined;
|
|
155
|
+
appId?: string | undefined;
|
|
156
156
|
};
|
|
157
157
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
158
158
|
entityId: string;
|
|
159
|
-
dateCreated:
|
|
160
|
-
dateResolved?:
|
|
159
|
+
dateCreated: string;
|
|
160
|
+
dateResolved?: string | undefined;
|
|
161
161
|
approvalId?: string | undefined;
|
|
162
162
|
kind: "Permission";
|
|
163
163
|
operationKind: "Update";
|
|
@@ -178,7 +178,7 @@ export type ListPermissionsRequest = {
|
|
|
178
178
|
};
|
|
179
179
|
export type UpdatePermissionBody = {
|
|
180
180
|
name?: string | undefined;
|
|
181
|
-
operations?: ("
|
|
181
|
+
operations?: ("AssetAccounts:Archive" | "AssetAccounts:Create" | "AssetAccounts:Read" | "Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "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" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Balances:Read" | "CallbackEvents:Read" | "CallbackSubscriptions:Archive" | "CallbackSubscriptions:Create" | "CallbackSubscriptions:Read" | "Payments:Create" | "Payments:Read" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "PolicyControlExecutions:Read" | "PolicyControlExecutions:Update" | "PolicyControls:Archive" | "PolicyControls:Create" | "PolicyControls:Read" | "PolicyControls:Update" | "PolicyRules:Archive" | "PolicyRules:Create" | "PolicyRules:Read" | "PolicyRules:Update" | "PublicKeyAddresses:Read" | "PublicKeys:Create" | "PublicKeys:Read" | "Signatures:Create" | "Signatures:Read" | "Signers:ListSigners" | "Transactions:Create" | "Transactions:Read" | "Wallets:BroadcastTransaction" | "Wallets:Create" | "Wallets:Delegate" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:Import" | "Wallets:Read" | "Wallets:ReadSignature" | "Wallets:ReadTransaction" | "Wallets:ReadTransfer" | "Wallets:TransferAsset" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read")[] | undefined;
|
|
182
182
|
};
|
|
183
183
|
export type UpdatePermissionParams = {
|
|
184
184
|
permissionId: string;
|
|
@@ -212,6 +212,13 @@ export type CreateApprovalDecisionResponse = {
|
|
|
212
212
|
assetId: string;
|
|
213
213
|
to: string;
|
|
214
214
|
amount: string;
|
|
215
|
+
} | {
|
|
216
|
+
kind: "Sep41";
|
|
217
|
+
issuer: string;
|
|
218
|
+
assetCode: string;
|
|
219
|
+
to: string;
|
|
220
|
+
amount: string;
|
|
221
|
+
memo?: string | undefined;
|
|
215
222
|
};
|
|
216
223
|
metadata: {
|
|
217
224
|
asset: {
|
|
@@ -352,15 +359,16 @@ export type CreateApprovalDecisionResponse = {
|
|
|
352
359
|
id: string;
|
|
353
360
|
requester: {
|
|
354
361
|
userId: string;
|
|
355
|
-
tokenId
|
|
356
|
-
appId
|
|
362
|
+
tokenId?: string | undefined;
|
|
363
|
+
appId?: string | undefined;
|
|
357
364
|
};
|
|
358
365
|
kind: "Policy";
|
|
359
366
|
operationKind: "Update";
|
|
360
367
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
361
368
|
entityId: string;
|
|
362
|
-
dateCreated:
|
|
363
|
-
dateResolved?:
|
|
369
|
+
dateCreated: string;
|
|
370
|
+
dateResolved?: string | undefined;
|
|
371
|
+
approvalId?: string | undefined;
|
|
364
372
|
body: {
|
|
365
373
|
id: string;
|
|
366
374
|
name: string;
|
|
@@ -512,7 +520,6 @@ export type CreateApprovalDecisionResponse = {
|
|
|
512
520
|
} | undefined;
|
|
513
521
|
} | undefined;
|
|
514
522
|
};
|
|
515
|
-
approvalId?: string | undefined;
|
|
516
523
|
};
|
|
517
524
|
} | {
|
|
518
525
|
kind: "Permissions:Modify";
|
|
@@ -520,13 +527,13 @@ export type CreateApprovalDecisionResponse = {
|
|
|
520
527
|
id: string;
|
|
521
528
|
requester: {
|
|
522
529
|
userId: string;
|
|
523
|
-
tokenId
|
|
524
|
-
appId
|
|
530
|
+
tokenId?: string | undefined;
|
|
531
|
+
appId?: string | undefined;
|
|
525
532
|
};
|
|
526
533
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
527
534
|
entityId: string;
|
|
528
|
-
dateCreated:
|
|
529
|
-
dateResolved?:
|
|
535
|
+
dateCreated: string;
|
|
536
|
+
dateResolved?: string | undefined;
|
|
530
537
|
approvalId?: string | undefined;
|
|
531
538
|
kind: "Permission";
|
|
532
539
|
operationKind: "Update";
|
|
@@ -545,13 +552,13 @@ export type CreateApprovalDecisionResponse = {
|
|
|
545
552
|
id: string;
|
|
546
553
|
requester: {
|
|
547
554
|
userId: string;
|
|
548
|
-
tokenId
|
|
549
|
-
appId
|
|
555
|
+
tokenId?: string | undefined;
|
|
556
|
+
appId?: string | undefined;
|
|
550
557
|
};
|
|
551
558
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
552
559
|
entityId: string;
|
|
553
|
-
dateCreated:
|
|
554
|
-
dateResolved?:
|
|
560
|
+
dateCreated: string;
|
|
561
|
+
dateResolved?: string | undefined;
|
|
555
562
|
approvalId?: string | undefined;
|
|
556
563
|
kind: "Assignment";
|
|
557
564
|
operationKind: "Create" | "Delete";
|
|
@@ -575,7 +582,7 @@ export type CreateApprovalDecisionResponse = {
|
|
|
575
582
|
}[];
|
|
576
583
|
decisions: {
|
|
577
584
|
userId: string;
|
|
578
|
-
|
|
585
|
+
date: string;
|
|
579
586
|
reason: string | null;
|
|
580
587
|
value: "Approved" | "Denied";
|
|
581
588
|
}[];
|
|
@@ -927,6 +934,13 @@ export type GetApprovalResponse = {
|
|
|
927
934
|
assetId: string;
|
|
928
935
|
to: string;
|
|
929
936
|
amount: string;
|
|
937
|
+
} | {
|
|
938
|
+
kind: "Sep41";
|
|
939
|
+
issuer: string;
|
|
940
|
+
assetCode: string;
|
|
941
|
+
to: string;
|
|
942
|
+
amount: string;
|
|
943
|
+
memo?: string | undefined;
|
|
930
944
|
};
|
|
931
945
|
metadata: {
|
|
932
946
|
asset: {
|
|
@@ -1067,15 +1081,16 @@ export type GetApprovalResponse = {
|
|
|
1067
1081
|
id: string;
|
|
1068
1082
|
requester: {
|
|
1069
1083
|
userId: string;
|
|
1070
|
-
tokenId
|
|
1071
|
-
appId
|
|
1084
|
+
tokenId?: string | undefined;
|
|
1085
|
+
appId?: string | undefined;
|
|
1072
1086
|
};
|
|
1073
1087
|
kind: "Policy";
|
|
1074
1088
|
operationKind: "Update";
|
|
1075
1089
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
1076
1090
|
entityId: string;
|
|
1077
|
-
dateCreated:
|
|
1078
|
-
dateResolved?:
|
|
1091
|
+
dateCreated: string;
|
|
1092
|
+
dateResolved?: string | undefined;
|
|
1093
|
+
approvalId?: string | undefined;
|
|
1079
1094
|
body: {
|
|
1080
1095
|
id: string;
|
|
1081
1096
|
name: string;
|
|
@@ -1227,7 +1242,6 @@ export type GetApprovalResponse = {
|
|
|
1227
1242
|
} | undefined;
|
|
1228
1243
|
} | undefined;
|
|
1229
1244
|
};
|
|
1230
|
-
approvalId?: string | undefined;
|
|
1231
1245
|
};
|
|
1232
1246
|
} | {
|
|
1233
1247
|
kind: "Permissions:Modify";
|
|
@@ -1235,13 +1249,13 @@ export type GetApprovalResponse = {
|
|
|
1235
1249
|
id: string;
|
|
1236
1250
|
requester: {
|
|
1237
1251
|
userId: string;
|
|
1238
|
-
tokenId
|
|
1239
|
-
appId
|
|
1252
|
+
tokenId?: string | undefined;
|
|
1253
|
+
appId?: string | undefined;
|
|
1240
1254
|
};
|
|
1241
1255
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
1242
1256
|
entityId: string;
|
|
1243
|
-
dateCreated:
|
|
1244
|
-
dateResolved?:
|
|
1257
|
+
dateCreated: string;
|
|
1258
|
+
dateResolved?: string | undefined;
|
|
1245
1259
|
approvalId?: string | undefined;
|
|
1246
1260
|
kind: "Permission";
|
|
1247
1261
|
operationKind: "Update";
|
|
@@ -1260,13 +1274,13 @@ export type GetApprovalResponse = {
|
|
|
1260
1274
|
id: string;
|
|
1261
1275
|
requester: {
|
|
1262
1276
|
userId: string;
|
|
1263
|
-
tokenId
|
|
1264
|
-
appId
|
|
1277
|
+
tokenId?: string | undefined;
|
|
1278
|
+
appId?: string | undefined;
|
|
1265
1279
|
};
|
|
1266
1280
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
1267
1281
|
entityId: string;
|
|
1268
|
-
dateCreated:
|
|
1269
|
-
dateResolved?:
|
|
1282
|
+
dateCreated: string;
|
|
1283
|
+
dateResolved?: string | undefined;
|
|
1270
1284
|
approvalId?: string | undefined;
|
|
1271
1285
|
kind: "Assignment";
|
|
1272
1286
|
operationKind: "Create" | "Delete";
|
|
@@ -1290,7 +1304,7 @@ export type GetApprovalResponse = {
|
|
|
1290
1304
|
}[];
|
|
1291
1305
|
decisions: {
|
|
1292
1306
|
userId: string;
|
|
1293
|
-
|
|
1307
|
+
date: string;
|
|
1294
1308
|
reason: string | null;
|
|
1295
1309
|
value: "Approved" | "Denied";
|
|
1296
1310
|
}[];
|
|
@@ -1454,15 +1468,16 @@ export type GetPolicyResponse = ({
|
|
|
1454
1468
|
id: string;
|
|
1455
1469
|
requester: {
|
|
1456
1470
|
userId: string;
|
|
1457
|
-
tokenId
|
|
1458
|
-
appId
|
|
1471
|
+
tokenId?: string | undefined;
|
|
1472
|
+
appId?: string | undefined;
|
|
1459
1473
|
};
|
|
1460
1474
|
kind: "Policy";
|
|
1461
1475
|
operationKind: "Update";
|
|
1462
1476
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
1463
1477
|
entityId: string;
|
|
1464
|
-
dateCreated:
|
|
1465
|
-
dateResolved?:
|
|
1478
|
+
dateCreated: string;
|
|
1479
|
+
dateResolved?: string | undefined;
|
|
1480
|
+
approvalId?: string | undefined;
|
|
1466
1481
|
body: {
|
|
1467
1482
|
id: string;
|
|
1468
1483
|
name: string;
|
|
@@ -1614,7 +1629,6 @@ export type GetPolicyResponse = ({
|
|
|
1614
1629
|
} | undefined;
|
|
1615
1630
|
} | undefined;
|
|
1616
1631
|
};
|
|
1617
|
-
approvalId?: string | undefined;
|
|
1618
1632
|
} | undefined;
|
|
1619
1633
|
};
|
|
1620
1634
|
export type GetPolicyRequest = GetPolicyParams;
|
|
@@ -1679,6 +1693,13 @@ export type ListApprovalsResponse = {
|
|
|
1679
1693
|
assetId: string;
|
|
1680
1694
|
to: string;
|
|
1681
1695
|
amount: string;
|
|
1696
|
+
} | {
|
|
1697
|
+
kind: "Sep41";
|
|
1698
|
+
issuer: string;
|
|
1699
|
+
assetCode: string;
|
|
1700
|
+
to: string;
|
|
1701
|
+
amount: string;
|
|
1702
|
+
memo?: string | undefined;
|
|
1682
1703
|
};
|
|
1683
1704
|
metadata: {
|
|
1684
1705
|
asset: {
|
|
@@ -1819,15 +1840,16 @@ export type ListApprovalsResponse = {
|
|
|
1819
1840
|
id: string;
|
|
1820
1841
|
requester: {
|
|
1821
1842
|
userId: string;
|
|
1822
|
-
tokenId
|
|
1823
|
-
appId
|
|
1843
|
+
tokenId?: string | undefined;
|
|
1844
|
+
appId?: string | undefined;
|
|
1824
1845
|
};
|
|
1825
1846
|
kind: "Policy";
|
|
1826
1847
|
operationKind: "Update";
|
|
1827
1848
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
1828
1849
|
entityId: string;
|
|
1829
|
-
dateCreated:
|
|
1830
|
-
dateResolved?:
|
|
1850
|
+
dateCreated: string;
|
|
1851
|
+
dateResolved?: string | undefined;
|
|
1852
|
+
approvalId?: string | undefined;
|
|
1831
1853
|
body: {
|
|
1832
1854
|
id: string;
|
|
1833
1855
|
name: string;
|
|
@@ -1979,7 +2001,6 @@ export type ListApprovalsResponse = {
|
|
|
1979
2001
|
} | undefined;
|
|
1980
2002
|
} | undefined;
|
|
1981
2003
|
};
|
|
1982
|
-
approvalId?: string | undefined;
|
|
1983
2004
|
};
|
|
1984
2005
|
} | {
|
|
1985
2006
|
kind: "Permissions:Modify";
|
|
@@ -1987,13 +2008,13 @@ export type ListApprovalsResponse = {
|
|
|
1987
2008
|
id: string;
|
|
1988
2009
|
requester: {
|
|
1989
2010
|
userId: string;
|
|
1990
|
-
tokenId
|
|
1991
|
-
appId
|
|
2011
|
+
tokenId?: string | undefined;
|
|
2012
|
+
appId?: string | undefined;
|
|
1992
2013
|
};
|
|
1993
2014
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
1994
2015
|
entityId: string;
|
|
1995
|
-
dateCreated:
|
|
1996
|
-
dateResolved?:
|
|
2016
|
+
dateCreated: string;
|
|
2017
|
+
dateResolved?: string | undefined;
|
|
1997
2018
|
approvalId?: string | undefined;
|
|
1998
2019
|
kind: "Permission";
|
|
1999
2020
|
operationKind: "Update";
|
|
@@ -2012,13 +2033,13 @@ export type ListApprovalsResponse = {
|
|
|
2012
2033
|
id: string;
|
|
2013
2034
|
requester: {
|
|
2014
2035
|
userId: string;
|
|
2015
|
-
tokenId
|
|
2016
|
-
appId
|
|
2036
|
+
tokenId?: string | undefined;
|
|
2037
|
+
appId?: string | undefined;
|
|
2017
2038
|
};
|
|
2018
2039
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
2019
2040
|
entityId: string;
|
|
2020
|
-
dateCreated:
|
|
2021
|
-
dateResolved?:
|
|
2041
|
+
dateCreated: string;
|
|
2042
|
+
dateResolved?: string | undefined;
|
|
2022
2043
|
approvalId?: string | undefined;
|
|
2023
2044
|
kind: "Assignment";
|
|
2024
2045
|
operationKind: "Create" | "Delete";
|
|
@@ -2042,7 +2063,7 @@ export type ListApprovalsResponse = {
|
|
|
2042
2063
|
}[];
|
|
2043
2064
|
decisions: {
|
|
2044
2065
|
userId: string;
|
|
2045
|
-
|
|
2066
|
+
date: string;
|
|
2046
2067
|
reason: string | null;
|
|
2047
2068
|
value: "Approved" | "Denied";
|
|
2048
2069
|
}[];
|
|
@@ -2213,15 +2234,16 @@ export type ListPoliciesResponse = {
|
|
|
2213
2234
|
id: string;
|
|
2214
2235
|
requester: {
|
|
2215
2236
|
userId: string;
|
|
2216
|
-
tokenId
|
|
2217
|
-
appId
|
|
2237
|
+
tokenId?: string | undefined;
|
|
2238
|
+
appId?: string | undefined;
|
|
2218
2239
|
};
|
|
2219
2240
|
kind: "Policy";
|
|
2220
2241
|
operationKind: "Update";
|
|
2221
2242
|
status: "Applied" | "Failed" | "Pending" | "Rejected";
|
|
2222
2243
|
entityId: string;
|
|
2223
|
-
dateCreated:
|
|
2224
|
-
dateResolved?:
|
|
2244
|
+
dateCreated: string;
|
|
2245
|
+
dateResolved?: string | undefined;
|
|
2246
|
+
approvalId?: string | undefined;
|
|
2225
2247
|
body: {
|
|
2226
2248
|
id: string;
|
|
2227
2249
|
name: string;
|
|
@@ -2373,7 +2395,6 @@ export type ListPoliciesResponse = {
|
|
|
2373
2395
|
} | undefined;
|
|
2374
2396
|
} | undefined;
|
|
2375
2397
|
};
|
|
2376
|
-
approvalId?: string | undefined;
|
|
2377
2398
|
} | undefined;
|
|
2378
2399
|
})[];
|
|
2379
2400
|
nextPageToken?: string | undefined;
|
|
@@ -86,7 +86,7 @@ export type BroadcastTransactionRequest = BroadcastTransactionParams & {
|
|
|
86
86
|
body: BroadcastTransactionBody;
|
|
87
87
|
};
|
|
88
88
|
export type CreateWalletBody = {
|
|
89
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "
|
|
89
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Stellar" | "StellarTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
90
90
|
name?: string | undefined;
|
|
91
91
|
delegateTo?: string | undefined;
|
|
92
92
|
delayDelegation?: boolean | undefined;
|
|
@@ -429,6 +429,13 @@ export type GetTransferResponse = {
|
|
|
429
429
|
assetId: string;
|
|
430
430
|
to: string;
|
|
431
431
|
amount: string;
|
|
432
|
+
} | {
|
|
433
|
+
kind: "Sep41";
|
|
434
|
+
issuer: string;
|
|
435
|
+
assetCode: string;
|
|
436
|
+
to: string;
|
|
437
|
+
amount: string;
|
|
438
|
+
memo?: string | undefined;
|
|
432
439
|
};
|
|
433
440
|
metadata: {
|
|
434
441
|
asset: {
|
|
@@ -481,7 +488,7 @@ export type GetWalletAssetsResponse = {
|
|
|
481
488
|
walletId: string;
|
|
482
489
|
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
483
490
|
assets: {
|
|
484
|
-
kind: "Native" | "Asa" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
491
|
+
kind: "Native" | "Asa" | "Erc20" | "Erc721" | "Sep41" | "Trc10" | "Trc20" | "Trc721";
|
|
485
492
|
assetId?: string | undefined;
|
|
486
493
|
contract?: string | undefined;
|
|
487
494
|
tokenId?: string | undefined;
|
|
@@ -791,7 +798,7 @@ export type GetWalletNftsResponse = {
|
|
|
791
798
|
walletId: string;
|
|
792
799
|
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Cardano" | "CardanoPreprod" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polkadot" | "Westend" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Tron" | "TronNile" | "XrpLedger" | "XrpLedgerTestnet" | "KeyECDSA" | "KeyECDSAStark" | "KeyEdDSA";
|
|
793
800
|
nfts: {
|
|
794
|
-
kind: "Native" | "Asa" | "Erc20" | "Erc721" | "Trc10" | "Trc20" | "Trc721";
|
|
801
|
+
kind: "Native" | "Asa" | "Erc20" | "Erc721" | "Sep41" | "Trc10" | "Trc20" | "Trc721";
|
|
795
802
|
contract?: string | undefined;
|
|
796
803
|
symbol?: string | undefined;
|
|
797
804
|
verified?: boolean | undefined;
|
|
@@ -801,7 +808,7 @@ export type GetWalletNftsResponse = {
|
|
|
801
808
|
};
|
|
802
809
|
export type GetWalletNftsRequest = GetWalletNftsParams;
|
|
803
810
|
export type ImportWalletBody = {
|
|
804
|
-
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "
|
|
811
|
+
network: "Algorand" | "AlgorandTestnet" | "ArbitrumOne" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseSepolia" | "Bitcoin" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "FantomOpera" | "FantomTestnet" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Stellar" | "StellarTestnet" | "Tron" | "TronNile" | "ArbitrumGoerli" | "BaseGoerli" | "Cardano" | "CardanoPreprod" | "Kusama" | "OptimismGoerli" | "Polkadot" | "Westend" | "Solana" | "SolanaDevnet" | "Tezos" | "TezosGhostnet" | "XrpLedger" | "XrpLedgerTestnet" | "KeyEdDSA" | "KeyECDSA" | "KeyECDSAStark";
|
|
805
812
|
name?: string | undefined;
|
|
806
813
|
externalId?: string | undefined;
|
|
807
814
|
curve: "secp256k1";
|
|
@@ -1031,6 +1038,13 @@ export type ListTransfersResponse = {
|
|
|
1031
1038
|
assetId: string;
|
|
1032
1039
|
to: string;
|
|
1033
1040
|
amount: string;
|
|
1041
|
+
} | {
|
|
1042
|
+
kind: "Sep41";
|
|
1043
|
+
issuer: string;
|
|
1044
|
+
assetCode: string;
|
|
1045
|
+
to: string;
|
|
1046
|
+
amount: string;
|
|
1047
|
+
memo?: string | undefined;
|
|
1034
1048
|
};
|
|
1035
1049
|
metadata: {
|
|
1036
1050
|
asset: {
|
|
@@ -1134,6 +1148,13 @@ export type TransferAssetBody = {
|
|
|
1134
1148
|
assetId: string;
|
|
1135
1149
|
to: string;
|
|
1136
1150
|
amount: string;
|
|
1151
|
+
} | {
|
|
1152
|
+
kind: "Sep41";
|
|
1153
|
+
issuer: string;
|
|
1154
|
+
assetCode: string;
|
|
1155
|
+
to: string;
|
|
1156
|
+
amount: string;
|
|
1157
|
+
memo?: string | undefined;
|
|
1137
1158
|
};
|
|
1138
1159
|
export type TransferAssetParams = {
|
|
1139
1160
|
walletId: string;
|
|
@@ -1185,6 +1206,13 @@ export type TransferAssetResponse = {
|
|
|
1185
1206
|
assetId: string;
|
|
1186
1207
|
to: string;
|
|
1187
1208
|
amount: string;
|
|
1209
|
+
} | {
|
|
1210
|
+
kind: "Sep41";
|
|
1211
|
+
issuer: string;
|
|
1212
|
+
assetCode: string;
|
|
1213
|
+
to: string;
|
|
1214
|
+
amount: string;
|
|
1215
|
+
memo?: string | undefined;
|
|
1188
1216
|
};
|
|
1189
1217
|
metadata: {
|
|
1190
1218
|
asset: {
|