@dfns/sdk 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/policies/types.d.ts +436 -0
- package/package.json +1 -1
|
@@ -2,6 +2,33 @@ export type ArchivePolicyParams = {
|
|
|
2
2
|
policyId: string;
|
|
3
3
|
};
|
|
4
4
|
export type ArchivePolicyResponse = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
status: "Active" | "Archived";
|
|
8
|
+
dateCreated?: string | undefined;
|
|
9
|
+
dateUpdated?: string | undefined;
|
|
10
|
+
activityKind: "Alias:Modify";
|
|
11
|
+
rule: {
|
|
12
|
+
kind: "AlwaysTrigger";
|
|
13
|
+
configuration?: {} | undefined;
|
|
14
|
+
};
|
|
15
|
+
action: {
|
|
16
|
+
kind: "RequestApproval";
|
|
17
|
+
approvalGroups: {
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
quorum: number;
|
|
20
|
+
approvers: {
|
|
21
|
+
userId?: {
|
|
22
|
+
in: string[];
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
27
|
+
} | {
|
|
28
|
+
kind: "Block";
|
|
29
|
+
};
|
|
30
|
+
filters?: {} | undefined;
|
|
31
|
+
} | {
|
|
5
32
|
id: string;
|
|
6
33
|
name: string;
|
|
7
34
|
status: "Active" | "Archived";
|
|
@@ -1248,6 +1275,33 @@ export type CreateApprovalDecisionResponse = {
|
|
|
1248
1275
|
dateResolved?: string | undefined;
|
|
1249
1276
|
approvalId?: string | undefined;
|
|
1250
1277
|
body: {
|
|
1278
|
+
id: string;
|
|
1279
|
+
name: string;
|
|
1280
|
+
status: "Active" | "Archived";
|
|
1281
|
+
dateCreated?: string | undefined;
|
|
1282
|
+
dateUpdated?: string | undefined;
|
|
1283
|
+
activityKind: "Alias:Modify";
|
|
1284
|
+
rule: {
|
|
1285
|
+
kind: "AlwaysTrigger";
|
|
1286
|
+
configuration?: {} | undefined;
|
|
1287
|
+
};
|
|
1288
|
+
action: {
|
|
1289
|
+
kind: "RequestApproval";
|
|
1290
|
+
approvalGroups: {
|
|
1291
|
+
name?: string | undefined;
|
|
1292
|
+
quorum: number;
|
|
1293
|
+
approvers: {
|
|
1294
|
+
userId?: {
|
|
1295
|
+
in: string[];
|
|
1296
|
+
} | undefined;
|
|
1297
|
+
};
|
|
1298
|
+
}[];
|
|
1299
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1300
|
+
} | {
|
|
1301
|
+
kind: "Block";
|
|
1302
|
+
};
|
|
1303
|
+
filters?: {} | undefined;
|
|
1304
|
+
} | {
|
|
1251
1305
|
id: string;
|
|
1252
1306
|
name: string;
|
|
1253
1307
|
status: "Active" | "Archived";
|
|
@@ -1517,6 +1571,46 @@ export type CreateApprovalDecisionResponse = {
|
|
|
1517
1571
|
isImmutable: boolean;
|
|
1518
1572
|
};
|
|
1519
1573
|
};
|
|
1574
|
+
} | {
|
|
1575
|
+
kind: "Alias:Modify";
|
|
1576
|
+
changeRequest: {
|
|
1577
|
+
id: string;
|
|
1578
|
+
kind: "Alias";
|
|
1579
|
+
body: {
|
|
1580
|
+
entityId: string;
|
|
1581
|
+
alias: string;
|
|
1582
|
+
operationKind: "Create";
|
|
1583
|
+
description?: string | undefined;
|
|
1584
|
+
values: {
|
|
1585
|
+
add: {
|
|
1586
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
1587
|
+
value: string;
|
|
1588
|
+
kind: "Eoa";
|
|
1589
|
+
}[];
|
|
1590
|
+
};
|
|
1591
|
+
} | {
|
|
1592
|
+
entityId: string;
|
|
1593
|
+
alias: string;
|
|
1594
|
+
operationKind: "Update";
|
|
1595
|
+
description?: ((string | undefined) | null) | undefined;
|
|
1596
|
+
values: {
|
|
1597
|
+
add: {
|
|
1598
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
1599
|
+
value: string;
|
|
1600
|
+
kind: "Eoa";
|
|
1601
|
+
}[];
|
|
1602
|
+
remove: {
|
|
1603
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
1604
|
+
value: string;
|
|
1605
|
+
kind: "Eoa";
|
|
1606
|
+
}[];
|
|
1607
|
+
};
|
|
1608
|
+
} | {
|
|
1609
|
+
entityId: string;
|
|
1610
|
+
alias: string;
|
|
1611
|
+
operationKind: "Delete";
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1520
1614
|
};
|
|
1521
1615
|
status: "Pending" | "Approved" | "Denied" | "Expired";
|
|
1522
1616
|
expirationDate?: string | undefined;
|
|
@@ -1539,6 +1633,29 @@ export type CreateApprovalDecisionRequest = CreateApprovalDecisionParams & {
|
|
|
1539
1633
|
body: CreateApprovalDecisionBody;
|
|
1540
1634
|
};
|
|
1541
1635
|
export type CreatePolicyBody = {
|
|
1636
|
+
name: string;
|
|
1637
|
+
activityKind: "Alias:Modify";
|
|
1638
|
+
rule: {
|
|
1639
|
+
kind: "AlwaysTrigger";
|
|
1640
|
+
configuration?: {} | undefined;
|
|
1641
|
+
};
|
|
1642
|
+
action: {
|
|
1643
|
+
kind: "RequestApproval";
|
|
1644
|
+
approvalGroups: {
|
|
1645
|
+
name?: string | undefined;
|
|
1646
|
+
quorum: number;
|
|
1647
|
+
approvers: {
|
|
1648
|
+
userId?: {
|
|
1649
|
+
in: string[];
|
|
1650
|
+
} | undefined;
|
|
1651
|
+
};
|
|
1652
|
+
}[];
|
|
1653
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1654
|
+
} | {
|
|
1655
|
+
kind: "Block";
|
|
1656
|
+
};
|
|
1657
|
+
filters?: {} | undefined;
|
|
1658
|
+
} | {
|
|
1542
1659
|
name: string;
|
|
1543
1660
|
activityKind: "Permissions:Assign";
|
|
1544
1661
|
rule: {
|
|
@@ -1740,6 +1857,33 @@ export type CreatePolicyBody = {
|
|
|
1740
1857
|
} | undefined;
|
|
1741
1858
|
};
|
|
1742
1859
|
export type CreatePolicyResponse = {
|
|
1860
|
+
id: string;
|
|
1861
|
+
name: string;
|
|
1862
|
+
status: "Active" | "Archived";
|
|
1863
|
+
dateCreated?: string | undefined;
|
|
1864
|
+
dateUpdated?: string | undefined;
|
|
1865
|
+
activityKind: "Alias:Modify";
|
|
1866
|
+
rule: {
|
|
1867
|
+
kind: "AlwaysTrigger";
|
|
1868
|
+
configuration?: {} | undefined;
|
|
1869
|
+
};
|
|
1870
|
+
action: {
|
|
1871
|
+
kind: "RequestApproval";
|
|
1872
|
+
approvalGroups: {
|
|
1873
|
+
name?: string | undefined;
|
|
1874
|
+
quorum: number;
|
|
1875
|
+
approvers: {
|
|
1876
|
+
userId?: {
|
|
1877
|
+
in: string[];
|
|
1878
|
+
} | undefined;
|
|
1879
|
+
};
|
|
1880
|
+
}[];
|
|
1881
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
1882
|
+
} | {
|
|
1883
|
+
kind: "Block";
|
|
1884
|
+
};
|
|
1885
|
+
filters?: {} | undefined;
|
|
1886
|
+
} | {
|
|
1743
1887
|
id: string;
|
|
1744
1888
|
name: string;
|
|
1745
1889
|
status: "Active" | "Archived";
|
|
@@ -2984,6 +3128,33 @@ export type GetApprovalResponse = {
|
|
|
2984
3128
|
dateResolved?: string | undefined;
|
|
2985
3129
|
approvalId?: string | undefined;
|
|
2986
3130
|
body: {
|
|
3131
|
+
id: string;
|
|
3132
|
+
name: string;
|
|
3133
|
+
status: "Active" | "Archived";
|
|
3134
|
+
dateCreated?: string | undefined;
|
|
3135
|
+
dateUpdated?: string | undefined;
|
|
3136
|
+
activityKind: "Alias:Modify";
|
|
3137
|
+
rule: {
|
|
3138
|
+
kind: "AlwaysTrigger";
|
|
3139
|
+
configuration?: {} | undefined;
|
|
3140
|
+
};
|
|
3141
|
+
action: {
|
|
3142
|
+
kind: "RequestApproval";
|
|
3143
|
+
approvalGroups: {
|
|
3144
|
+
name?: string | undefined;
|
|
3145
|
+
quorum: number;
|
|
3146
|
+
approvers: {
|
|
3147
|
+
userId?: {
|
|
3148
|
+
in: string[];
|
|
3149
|
+
} | undefined;
|
|
3150
|
+
};
|
|
3151
|
+
}[];
|
|
3152
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
3153
|
+
} | {
|
|
3154
|
+
kind: "Block";
|
|
3155
|
+
};
|
|
3156
|
+
filters?: {} | undefined;
|
|
3157
|
+
} | {
|
|
2987
3158
|
id: string;
|
|
2988
3159
|
name: string;
|
|
2989
3160
|
status: "Active" | "Archived";
|
|
@@ -3253,6 +3424,46 @@ export type GetApprovalResponse = {
|
|
|
3253
3424
|
isImmutable: boolean;
|
|
3254
3425
|
};
|
|
3255
3426
|
};
|
|
3427
|
+
} | {
|
|
3428
|
+
kind: "Alias:Modify";
|
|
3429
|
+
changeRequest: {
|
|
3430
|
+
id: string;
|
|
3431
|
+
kind: "Alias";
|
|
3432
|
+
body: {
|
|
3433
|
+
entityId: string;
|
|
3434
|
+
alias: string;
|
|
3435
|
+
operationKind: "Create";
|
|
3436
|
+
description?: string | undefined;
|
|
3437
|
+
values: {
|
|
3438
|
+
add: {
|
|
3439
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
3440
|
+
value: string;
|
|
3441
|
+
kind: "Eoa";
|
|
3442
|
+
}[];
|
|
3443
|
+
};
|
|
3444
|
+
} | {
|
|
3445
|
+
entityId: string;
|
|
3446
|
+
alias: string;
|
|
3447
|
+
operationKind: "Update";
|
|
3448
|
+
description?: ((string | undefined) | null) | undefined;
|
|
3449
|
+
values: {
|
|
3450
|
+
add: {
|
|
3451
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
3452
|
+
value: string;
|
|
3453
|
+
kind: "Eoa";
|
|
3454
|
+
}[];
|
|
3455
|
+
remove: {
|
|
3456
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
3457
|
+
value: string;
|
|
3458
|
+
kind: "Eoa";
|
|
3459
|
+
}[];
|
|
3460
|
+
};
|
|
3461
|
+
} | {
|
|
3462
|
+
entityId: string;
|
|
3463
|
+
alias: string;
|
|
3464
|
+
operationKind: "Delete";
|
|
3465
|
+
};
|
|
3466
|
+
};
|
|
3256
3467
|
};
|
|
3257
3468
|
status: "Pending" | "Approved" | "Denied" | "Expired";
|
|
3258
3469
|
expirationDate?: string | undefined;
|
|
@@ -3276,6 +3487,33 @@ export type GetPolicyParams = {
|
|
|
3276
3487
|
policyId: string;
|
|
3277
3488
|
};
|
|
3278
3489
|
export type GetPolicyResponse = ({
|
|
3490
|
+
id: string;
|
|
3491
|
+
name: string;
|
|
3492
|
+
status: "Active" | "Archived";
|
|
3493
|
+
dateCreated?: string | undefined;
|
|
3494
|
+
dateUpdated?: string | undefined;
|
|
3495
|
+
activityKind: "Alias:Modify";
|
|
3496
|
+
rule: {
|
|
3497
|
+
kind: "AlwaysTrigger";
|
|
3498
|
+
configuration?: {} | undefined;
|
|
3499
|
+
};
|
|
3500
|
+
action: {
|
|
3501
|
+
kind: "RequestApproval";
|
|
3502
|
+
approvalGroups: {
|
|
3503
|
+
name?: string | undefined;
|
|
3504
|
+
quorum: number;
|
|
3505
|
+
approvers: {
|
|
3506
|
+
userId?: {
|
|
3507
|
+
in: string[];
|
|
3508
|
+
} | undefined;
|
|
3509
|
+
};
|
|
3510
|
+
}[];
|
|
3511
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
3512
|
+
} | {
|
|
3513
|
+
kind: "Block";
|
|
3514
|
+
};
|
|
3515
|
+
filters?: {} | undefined;
|
|
3516
|
+
} | {
|
|
3279
3517
|
id: string;
|
|
3280
3518
|
name: string;
|
|
3281
3519
|
status: "Active" | "Archived";
|
|
@@ -3511,6 +3749,33 @@ export type GetPolicyResponse = ({
|
|
|
3511
3749
|
dateResolved?: string | undefined;
|
|
3512
3750
|
approvalId?: string | undefined;
|
|
3513
3751
|
body: {
|
|
3752
|
+
id: string;
|
|
3753
|
+
name: string;
|
|
3754
|
+
status: "Active" | "Archived";
|
|
3755
|
+
dateCreated?: string | undefined;
|
|
3756
|
+
dateUpdated?: string | undefined;
|
|
3757
|
+
activityKind: "Alias:Modify";
|
|
3758
|
+
rule: {
|
|
3759
|
+
kind: "AlwaysTrigger";
|
|
3760
|
+
configuration?: {} | undefined;
|
|
3761
|
+
};
|
|
3762
|
+
action: {
|
|
3763
|
+
kind: "RequestApproval";
|
|
3764
|
+
approvalGroups: {
|
|
3765
|
+
name?: string | undefined;
|
|
3766
|
+
quorum: number;
|
|
3767
|
+
approvers: {
|
|
3768
|
+
userId?: {
|
|
3769
|
+
in: string[];
|
|
3770
|
+
} | undefined;
|
|
3771
|
+
};
|
|
3772
|
+
}[];
|
|
3773
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
3774
|
+
} | {
|
|
3775
|
+
kind: "Block";
|
|
3776
|
+
};
|
|
3777
|
+
filters?: {} | undefined;
|
|
3778
|
+
} | {
|
|
3514
3779
|
id: string;
|
|
3515
3780
|
name: string;
|
|
3516
3781
|
status: "Active" | "Archived";
|
|
@@ -4760,6 +5025,33 @@ export type ListApprovalsResponse = {
|
|
|
4760
5025
|
dateResolved?: string | undefined;
|
|
4761
5026
|
approvalId?: string | undefined;
|
|
4762
5027
|
body: {
|
|
5028
|
+
id: string;
|
|
5029
|
+
name: string;
|
|
5030
|
+
status: "Active" | "Archived";
|
|
5031
|
+
dateCreated?: string | undefined;
|
|
5032
|
+
dateUpdated?: string | undefined;
|
|
5033
|
+
activityKind: "Alias:Modify";
|
|
5034
|
+
rule: {
|
|
5035
|
+
kind: "AlwaysTrigger";
|
|
5036
|
+
configuration?: {} | undefined;
|
|
5037
|
+
};
|
|
5038
|
+
action: {
|
|
5039
|
+
kind: "RequestApproval";
|
|
5040
|
+
approvalGroups: {
|
|
5041
|
+
name?: string | undefined;
|
|
5042
|
+
quorum: number;
|
|
5043
|
+
approvers: {
|
|
5044
|
+
userId?: {
|
|
5045
|
+
in: string[];
|
|
5046
|
+
} | undefined;
|
|
5047
|
+
};
|
|
5048
|
+
}[];
|
|
5049
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
5050
|
+
} | {
|
|
5051
|
+
kind: "Block";
|
|
5052
|
+
};
|
|
5053
|
+
filters?: {} | undefined;
|
|
5054
|
+
} | {
|
|
4763
5055
|
id: string;
|
|
4764
5056
|
name: string;
|
|
4765
5057
|
status: "Active" | "Archived";
|
|
@@ -5029,6 +5321,46 @@ export type ListApprovalsResponse = {
|
|
|
5029
5321
|
isImmutable: boolean;
|
|
5030
5322
|
};
|
|
5031
5323
|
};
|
|
5324
|
+
} | {
|
|
5325
|
+
kind: "Alias:Modify";
|
|
5326
|
+
changeRequest: {
|
|
5327
|
+
id: string;
|
|
5328
|
+
kind: "Alias";
|
|
5329
|
+
body: {
|
|
5330
|
+
entityId: string;
|
|
5331
|
+
alias: string;
|
|
5332
|
+
operationKind: "Create";
|
|
5333
|
+
description?: string | undefined;
|
|
5334
|
+
values: {
|
|
5335
|
+
add: {
|
|
5336
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
5337
|
+
value: string;
|
|
5338
|
+
kind: "Eoa";
|
|
5339
|
+
}[];
|
|
5340
|
+
};
|
|
5341
|
+
} | {
|
|
5342
|
+
entityId: string;
|
|
5343
|
+
alias: string;
|
|
5344
|
+
operationKind: "Update";
|
|
5345
|
+
description?: ((string | undefined) | null) | undefined;
|
|
5346
|
+
values: {
|
|
5347
|
+
add: {
|
|
5348
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
5349
|
+
value: string;
|
|
5350
|
+
kind: "Eoa";
|
|
5351
|
+
}[];
|
|
5352
|
+
remove: {
|
|
5353
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "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" | "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";
|
|
5354
|
+
value: string;
|
|
5355
|
+
kind: "Eoa";
|
|
5356
|
+
}[];
|
|
5357
|
+
};
|
|
5358
|
+
} | {
|
|
5359
|
+
entityId: string;
|
|
5360
|
+
alias: string;
|
|
5361
|
+
operationKind: "Delete";
|
|
5362
|
+
};
|
|
5363
|
+
};
|
|
5032
5364
|
};
|
|
5033
5365
|
status: "Pending" | "Approved" | "Denied" | "Expired";
|
|
5034
5366
|
expirationDate?: string | undefined;
|
|
@@ -5059,6 +5391,33 @@ export type ListPoliciesQuery = {
|
|
|
5059
5391
|
};
|
|
5060
5392
|
export type ListPoliciesResponse = {
|
|
5061
5393
|
items: (({
|
|
5394
|
+
id: string;
|
|
5395
|
+
name: string;
|
|
5396
|
+
status: "Active" | "Archived";
|
|
5397
|
+
dateCreated?: string | undefined;
|
|
5398
|
+
dateUpdated?: string | undefined;
|
|
5399
|
+
activityKind: "Alias:Modify";
|
|
5400
|
+
rule: {
|
|
5401
|
+
kind: "AlwaysTrigger";
|
|
5402
|
+
configuration?: {} | undefined;
|
|
5403
|
+
};
|
|
5404
|
+
action: {
|
|
5405
|
+
kind: "RequestApproval";
|
|
5406
|
+
approvalGroups: {
|
|
5407
|
+
name?: string | undefined;
|
|
5408
|
+
quorum: number;
|
|
5409
|
+
approvers: {
|
|
5410
|
+
userId?: {
|
|
5411
|
+
in: string[];
|
|
5412
|
+
} | undefined;
|
|
5413
|
+
};
|
|
5414
|
+
}[];
|
|
5415
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
5416
|
+
} | {
|
|
5417
|
+
kind: "Block";
|
|
5418
|
+
};
|
|
5419
|
+
filters?: {} | undefined;
|
|
5420
|
+
} | {
|
|
5062
5421
|
id: string;
|
|
5063
5422
|
name: string;
|
|
5064
5423
|
status: "Active" | "Archived";
|
|
@@ -5294,6 +5653,33 @@ export type ListPoliciesResponse = {
|
|
|
5294
5653
|
dateResolved?: string | undefined;
|
|
5295
5654
|
approvalId?: string | undefined;
|
|
5296
5655
|
body: {
|
|
5656
|
+
id: string;
|
|
5657
|
+
name: string;
|
|
5658
|
+
status: "Active" | "Archived";
|
|
5659
|
+
dateCreated?: string | undefined;
|
|
5660
|
+
dateUpdated?: string | undefined;
|
|
5661
|
+
activityKind: "Alias:Modify";
|
|
5662
|
+
rule: {
|
|
5663
|
+
kind: "AlwaysTrigger";
|
|
5664
|
+
configuration?: {} | undefined;
|
|
5665
|
+
};
|
|
5666
|
+
action: {
|
|
5667
|
+
kind: "RequestApproval";
|
|
5668
|
+
approvalGroups: {
|
|
5669
|
+
name?: string | undefined;
|
|
5670
|
+
quorum: number;
|
|
5671
|
+
approvers: {
|
|
5672
|
+
userId?: {
|
|
5673
|
+
in: string[];
|
|
5674
|
+
} | undefined;
|
|
5675
|
+
};
|
|
5676
|
+
}[];
|
|
5677
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
5678
|
+
} | {
|
|
5679
|
+
kind: "Block";
|
|
5680
|
+
};
|
|
5681
|
+
filters?: {} | undefined;
|
|
5682
|
+
} | {
|
|
5297
5683
|
id: string;
|
|
5298
5684
|
name: string;
|
|
5299
5685
|
status: "Active" | "Archived";
|
|
@@ -5522,6 +5908,29 @@ export type ListPoliciesRequest = {
|
|
|
5522
5908
|
query?: ListPoliciesQuery;
|
|
5523
5909
|
};
|
|
5524
5910
|
export type UpdatePolicyBody = {
|
|
5911
|
+
name: string;
|
|
5912
|
+
activityKind: "Alias:Modify";
|
|
5913
|
+
rule: {
|
|
5914
|
+
kind: "AlwaysTrigger";
|
|
5915
|
+
configuration?: {} | undefined;
|
|
5916
|
+
};
|
|
5917
|
+
action: {
|
|
5918
|
+
kind: "RequestApproval";
|
|
5919
|
+
approvalGroups: {
|
|
5920
|
+
name?: string | undefined;
|
|
5921
|
+
quorum: number;
|
|
5922
|
+
approvers: {
|
|
5923
|
+
userId?: {
|
|
5924
|
+
in: string[];
|
|
5925
|
+
} | undefined;
|
|
5926
|
+
};
|
|
5927
|
+
}[];
|
|
5928
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
5929
|
+
} | {
|
|
5930
|
+
kind: "Block";
|
|
5931
|
+
};
|
|
5932
|
+
filters?: {} | undefined;
|
|
5933
|
+
} | {
|
|
5525
5934
|
name: string;
|
|
5526
5935
|
activityKind: "Permissions:Assign";
|
|
5527
5936
|
rule: {
|
|
@@ -5726,6 +6135,33 @@ export type UpdatePolicyParams = {
|
|
|
5726
6135
|
policyId: string;
|
|
5727
6136
|
};
|
|
5728
6137
|
export type UpdatePolicyResponse = {
|
|
6138
|
+
id: string;
|
|
6139
|
+
name: string;
|
|
6140
|
+
status: "Active" | "Archived";
|
|
6141
|
+
dateCreated?: string | undefined;
|
|
6142
|
+
dateUpdated?: string | undefined;
|
|
6143
|
+
activityKind: "Alias:Modify";
|
|
6144
|
+
rule: {
|
|
6145
|
+
kind: "AlwaysTrigger";
|
|
6146
|
+
configuration?: {} | undefined;
|
|
6147
|
+
};
|
|
6148
|
+
action: {
|
|
6149
|
+
kind: "RequestApproval";
|
|
6150
|
+
approvalGroups: {
|
|
6151
|
+
name?: string | undefined;
|
|
6152
|
+
quorum: number;
|
|
6153
|
+
approvers: {
|
|
6154
|
+
userId?: {
|
|
6155
|
+
in: string[];
|
|
6156
|
+
} | undefined;
|
|
6157
|
+
};
|
|
6158
|
+
}[];
|
|
6159
|
+
autoRejectTimeout?: (number | undefined) | null;
|
|
6160
|
+
} | {
|
|
6161
|
+
kind: "Block";
|
|
6162
|
+
};
|
|
6163
|
+
filters?: {} | undefined;
|
|
6164
|
+
} | {
|
|
5729
6165
|
id: string;
|
|
5730
6166
|
name: string;
|
|
5731
6167
|
status: "Active" | "Archived";
|