@dfns/sdk
Advanced tools
Comparing version 0.3.4 to 0.4.0-alpha.1
@@ -6,12 +6,17 @@ export type ArchivePolicyParams = { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -29,12 +34,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -52,12 +62,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -75,12 +90,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -91,2 +111,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -138,3 +163,3 @@ configuration: { | ||
}; | ||
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "Expired"; | ||
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired"; | ||
expirationDate?: string | undefined; | ||
@@ -161,12 +186,17 @@ dateCreated?: string | undefined; | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -184,12 +214,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -207,12 +242,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -230,12 +270,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -246,2 +291,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -274,12 +324,17 @@ configuration: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -297,12 +352,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -320,12 +380,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -343,12 +408,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -359,2 +429,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -398,12 +473,17 @@ configuration: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -421,12 +501,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -444,12 +529,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -467,12 +557,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -483,2 +578,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -527,12 +627,17 @@ configuration: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -550,12 +655,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -573,12 +683,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -596,12 +711,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -612,2 +732,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -651,3 +776,3 @@ configuration: { | ||
paginationToken?: string | undefined; | ||
status?: ("Pending" | "Approved" | "Denied" | "AutoApproved" | "Expired") | undefined; | ||
status?: ("Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired") | undefined; | ||
triggerStatus?: ("Triggered" | "Skipped") | undefined; | ||
@@ -666,3 +791,3 @@ initiatorId?: string | undefined; | ||
}; | ||
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "Expired"; | ||
status: "Pending" | "Approved" | "Denied" | "AutoApproved" | "AutoDenied" | "Expired"; | ||
expirationDate?: string | undefined; | ||
@@ -697,12 +822,17 @@ dateCreated?: string | undefined; | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -720,12 +850,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -743,12 +878,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -766,12 +906,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -782,2 +927,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -826,12 +976,17 @@ configuration: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -849,12 +1004,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -872,12 +1032,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -895,12 +1060,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -911,2 +1081,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -953,12 +1128,17 @@ configuration: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -976,12 +1156,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -999,12 +1184,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -1022,12 +1212,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -1038,2 +1233,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -1069,12 +1269,17 @@ configuration: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Assign"; | ||
@@ -1092,12 +1297,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Permissions:Modify"; | ||
@@ -1115,12 +1325,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Policies:Modify"; | ||
@@ -1138,12 +1353,17 @@ rule: { | ||
name: string; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
action: { | ||
kind: "RequestApproval"; | ||
approvalGroups: { | ||
name?: string | undefined; | ||
quorum: number; | ||
approvers: { | ||
[x: string]: { | ||
[x: string]: string[]; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
}[]; | ||
autoRejectTimeout?: (number | undefined) | null; | ||
} | { | ||
kind: "Block"; | ||
}; | ||
activityKind: "Wallets:Sign"; | ||
@@ -1154,2 +1374,7 @@ rule: { | ||
} | { | ||
kind: "TransactionRecipientWhitelist"; | ||
configuration: { | ||
addresses: string[]; | ||
}; | ||
} | { | ||
kind: "TransactionAmountLimit"; | ||
@@ -1156,0 +1381,0 @@ configuration: { |
{ | ||
"name": "@dfns/sdk", | ||
"version": "0.3.4", | ||
"version": "0.4.0-alpha.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "buffer": "6.0.3", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.rawSignatureToAns1 = exports.exportPublicKeyInPemFormatBrowser = void 0; | ||
const buffer_1 = require("buffer"); | ||
const base64_1 = require("./base64"); | ||
@@ -11,3 +12,3 @@ const string_1 = require("./string"); | ||
const exported = await crypto.subtle.exportKey('spki', key.publicKey); | ||
const b64Exported = (0, base64_1.toBase64)(Buffer.from(exported)); | ||
const b64Exported = (0, base64_1.toBase64)(buffer_1.Buffer.from(exported)); | ||
const pem = `-----BEGIN PUBLIC KEY-----\n${(0, string_1.splitString)(b64Exported).join("\n")}\n-----END PUBLIC KEY-----`; | ||
@@ -14,0 +15,0 @@ return pem; |
2338580
80461