@dfns/sdk 0.7.3 → 0.7.5
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/auth/types.d.ts +2 -2
- package/generated/exchanges/types.d.ts +1 -1
- package/generated/feeSponsors/types.d.ts +6 -6
- package/generated/keys/types.d.ts +80 -140
- package/generated/networks/client.d.ts +2 -0
- package/generated/networks/client.js +24 -0
- package/generated/networks/delegatedClient.d.ts +4 -0
- package/generated/networks/delegatedClient.js +54 -0
- package/generated/networks/types.d.ts +39 -0
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +216 -189
- package/generated/wallets/types.d.ts +118 -214
- package/package.json +1 -1
|
@@ -4,7 +4,9 @@ export declare class NetworksClient {
|
|
|
4
4
|
private apiOptions;
|
|
5
5
|
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
6
|
createCantonValidator(request: T.CreateCantonValidatorRequest): Promise<T.CreateCantonValidatorResponse>;
|
|
7
|
+
deleteCantonValidator(request: T.DeleteCantonValidatorRequest): Promise<T.DeleteCantonValidatorResponse>;
|
|
7
8
|
getFees(request?: T.GetFeesRequest): Promise<T.GetFeesResponse>;
|
|
8
9
|
listCantonValidators(request: T.ListCantonValidatorsRequest): Promise<T.ListCantonValidatorsResponse>;
|
|
9
10
|
readContract(request: T.ReadContractRequest): Promise<T.ReadContractResponse>;
|
|
11
|
+
updateCantonValidator(request: T.UpdateCantonValidatorRequest): Promise<T.UpdateCantonValidatorResponse>;
|
|
10
12
|
}
|
|
@@ -21,6 +21,18 @@ class NetworksClient {
|
|
|
21
21
|
});
|
|
22
22
|
return response.json();
|
|
23
23
|
}
|
|
24
|
+
async deleteCantonValidator(request) {
|
|
25
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
26
|
+
path: request ?? {},
|
|
27
|
+
query: {},
|
|
28
|
+
});
|
|
29
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
30
|
+
method: 'DELETE',
|
|
31
|
+
body: {},
|
|
32
|
+
apiOptions: this.apiOptions,
|
|
33
|
+
});
|
|
34
|
+
return response.json();
|
|
35
|
+
}
|
|
24
36
|
async getFees(request) {
|
|
25
37
|
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
26
38
|
path: request ?? {},
|
|
@@ -55,5 +67,17 @@ class NetworksClient {
|
|
|
55
67
|
});
|
|
56
68
|
return response.json();
|
|
57
69
|
}
|
|
70
|
+
async updateCantonValidator(request) {
|
|
71
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
72
|
+
path: request ?? {},
|
|
73
|
+
query: {},
|
|
74
|
+
});
|
|
75
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
76
|
+
method: 'PUT',
|
|
77
|
+
body: request.body,
|
|
78
|
+
apiOptions: this.apiOptions,
|
|
79
|
+
});
|
|
80
|
+
return response.json();
|
|
81
|
+
}
|
|
58
82
|
}
|
|
59
83
|
exports.NetworksClient = NetworksClient;
|
|
@@ -6,7 +6,11 @@ export declare class DelegatedNetworksClient {
|
|
|
6
6
|
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
7
|
createCantonValidatorInit(request: T.CreateCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
8
8
|
createCantonValidatorComplete(request: T.CreateCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateCantonValidatorResponse>;
|
|
9
|
+
deleteCantonValidatorInit(request: T.DeleteCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
10
|
+
deleteCantonValidatorComplete(request: T.DeleteCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeleteCantonValidatorResponse>;
|
|
9
11
|
getFees(request?: T.GetFeesRequest): Promise<T.GetFeesResponse>;
|
|
10
12
|
listCantonValidators(request: T.ListCantonValidatorsRequest): Promise<T.ListCantonValidatorsResponse>;
|
|
11
13
|
readContract(request: T.ReadContractRequest): Promise<T.ReadContractResponse>;
|
|
14
|
+
updateCantonValidatorInit(request: T.UpdateCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
15
|
+
updateCantonValidatorComplete(request: T.UpdateCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.UpdateCantonValidatorResponse>;
|
|
12
16
|
}
|
|
@@ -35,6 +35,33 @@ class DelegatedNetworksClient {
|
|
|
35
35
|
});
|
|
36
36
|
return response.json();
|
|
37
37
|
}
|
|
38
|
+
async deleteCantonValidatorInit(request) {
|
|
39
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
40
|
+
path: request ?? {},
|
|
41
|
+
query: {},
|
|
42
|
+
});
|
|
43
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
44
|
+
userActionHttpMethod: 'DELETE',
|
|
45
|
+
userActionHttpPath: path,
|
|
46
|
+
userActionPayload: JSON.stringify({}),
|
|
47
|
+
userActionServerKind: 'Api',
|
|
48
|
+
}, this.apiOptions);
|
|
49
|
+
return challenge;
|
|
50
|
+
}
|
|
51
|
+
async deleteCantonValidatorComplete(request, signedChallenge) {
|
|
52
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
53
|
+
path: request ?? {},
|
|
54
|
+
query: {},
|
|
55
|
+
});
|
|
56
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
57
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
58
|
+
method: 'DELETE',
|
|
59
|
+
body: {},
|
|
60
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
61
|
+
apiOptions: this.apiOptions,
|
|
62
|
+
});
|
|
63
|
+
return response.json();
|
|
64
|
+
}
|
|
38
65
|
async getFees(request) {
|
|
39
66
|
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
40
67
|
path: request ?? {},
|
|
@@ -69,5 +96,32 @@ class DelegatedNetworksClient {
|
|
|
69
96
|
});
|
|
70
97
|
return response.json();
|
|
71
98
|
}
|
|
99
|
+
async updateCantonValidatorInit(request) {
|
|
100
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
101
|
+
path: request ?? {},
|
|
102
|
+
query: {},
|
|
103
|
+
});
|
|
104
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
105
|
+
userActionHttpMethod: 'PUT',
|
|
106
|
+
userActionHttpPath: path,
|
|
107
|
+
userActionPayload: JSON.stringify(request.body),
|
|
108
|
+
userActionServerKind: 'Api',
|
|
109
|
+
}, this.apiOptions);
|
|
110
|
+
return challenge;
|
|
111
|
+
}
|
|
112
|
+
async updateCantonValidatorComplete(request, signedChallenge) {
|
|
113
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
114
|
+
path: request ?? {},
|
|
115
|
+
query: {},
|
|
116
|
+
});
|
|
117
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
118
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
119
|
+
method: 'PUT',
|
|
120
|
+
body: request.body,
|
|
121
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
122
|
+
apiOptions: this.apiOptions,
|
|
123
|
+
});
|
|
124
|
+
return response.json();
|
|
125
|
+
}
|
|
72
126
|
}
|
|
73
127
|
exports.DelegatedNetworksClient = DelegatedNetworksClient;
|
|
@@ -27,6 +27,19 @@ export type CreateCantonValidatorResponse = {
|
|
|
27
27
|
export type CreateCantonValidatorRequest = CreateCantonValidatorParams & {
|
|
28
28
|
body: CreateCantonValidatorBody;
|
|
29
29
|
};
|
|
30
|
+
export type DeleteCantonValidatorParams = {
|
|
31
|
+
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
32
|
+
validatorId: string;
|
|
33
|
+
};
|
|
34
|
+
export type DeleteCantonValidatorResponse = {
|
|
35
|
+
id: string;
|
|
36
|
+
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
kind: "Shared" | "Custom";
|
|
39
|
+
dateCreated: string;
|
|
40
|
+
partyHint: string;
|
|
41
|
+
};
|
|
42
|
+
export type DeleteCantonValidatorRequest = DeleteCantonValidatorParams;
|
|
30
43
|
export type GetFeesQuery = {
|
|
31
44
|
network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bob" | "BobSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Codex" | "CodexSepolia" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "EthereumHoodi" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
32
45
|
};
|
|
@@ -101,3 +114,29 @@ export type ReadContractResponse = {
|
|
|
101
114
|
export type ReadContractRequest = {
|
|
102
115
|
body: ReadContractBody;
|
|
103
116
|
};
|
|
117
|
+
export type UpdateCantonValidatorBody = {
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
url?: string | undefined;
|
|
120
|
+
oauth2?: {
|
|
121
|
+
domain: string;
|
|
122
|
+
clientId: string;
|
|
123
|
+
clientSecret: string;
|
|
124
|
+
audience: string;
|
|
125
|
+
tokenPath?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
};
|
|
128
|
+
export type UpdateCantonValidatorParams = {
|
|
129
|
+
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
130
|
+
validatorId: string;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateCantonValidatorResponse = {
|
|
133
|
+
id: string;
|
|
134
|
+
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
kind: "Shared" | "Custom";
|
|
137
|
+
dateCreated: string;
|
|
138
|
+
partyHint: string;
|
|
139
|
+
};
|
|
140
|
+
export type UpdateCantonValidatorRequest = UpdateCantonValidatorParams & {
|
|
141
|
+
body: UpdateCantonValidatorBody;
|
|
142
|
+
};
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
39
|
+
operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -183,7 +183,7 @@ export type ListPermissionsRequest = {
|
|
|
183
183
|
};
|
|
184
184
|
export type UpdatePermissionBody = {
|
|
185
185
|
name?: string | undefined;
|
|
186
|
-
operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
186
|
+
operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Permissions:Assign" | "Permissions:Revoke" | "Permissions:Assignments:Read" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Swaps:Create" | "Swaps:Read" | "Keys:Create" | "Keys:Delete" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Derive" | "Keys:Signatures:Create" | "Keys:Signatures:Read" | "Networks:CantonValidators:Create" | "Networks:CantonValidators:Read" | "Networks:CantonValidators:Update" | "Networks:CantonValidators:Delete" | "Wallets:Create" | "Wallets:Read" | "Wallets:Update" | "Wallets:Tags:Add" | "Wallets:Tags:Delete" | "Wallets:Transactions:Create" | "Wallets:Transactions:Read" | "Wallets:Transfers:Create" | "Wallets:Transfers:Read" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "Auth:Users:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
187
187
|
};
|
|
188
188
|
export type UpdatePermissionParams = {
|
|
189
189
|
permissionId: string;
|