@dfns/sdk 0.7.11-rc.1 → 0.7.12-rc.0
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/client.d.ts +2 -0
- package/generated/auth/client.js +24 -0
- package/generated/auth/delegatedClient.d.ts +3 -0
- package/generated/auth/delegatedClient.js +39 -0
- package/generated/auth/types.d.ts +51 -2
- package/generated/exchanges/types.d.ts +1 -1
- package/generated/feeSponsors/types.d.ts +6 -6
- package/generated/keys/types.d.ts +48 -48
- package/generated/networks/client.d.ts +1 -0
- package/generated/networks/client.js +11 -0
- package/generated/networks/delegatedClient.d.ts +1 -0
- package/generated/networks/delegatedClient.js +11 -0
- package/generated/networks/types.d.ts +34 -3
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +123 -123
- package/generated/swaps/client.js +1 -1
- package/generated/swaps/delegatedClient.d.ts +1 -2
- package/generated/swaps/delegatedClient.js +1 -16
- package/generated/swaps/types.d.ts +30 -30
- package/generated/wallets/types.d.ts +104 -85
- package/package.json +3 -3
|
@@ -5,6 +5,7 @@ export declare class NetworksClient {
|
|
|
5
5
|
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
6
|
createCantonValidator(request: T.CreateCantonValidatorRequest): Promise<T.CreateCantonValidatorResponse>;
|
|
7
7
|
deleteCantonValidator(request: T.DeleteCantonValidatorRequest): Promise<T.DeleteCantonValidatorResponse>;
|
|
8
|
+
getCantonValidator(request: T.GetCantonValidatorRequest): Promise<T.GetCantonValidatorResponse>;
|
|
8
9
|
getFees(request?: T.GetFeesRequest): Promise<T.GetFeesResponse>;
|
|
9
10
|
listCantonValidators(request: T.ListCantonValidatorsRequest): Promise<T.ListCantonValidatorsResponse>;
|
|
10
11
|
readContract(request: T.ReadContractRequest): Promise<T.ReadContractResponse>;
|
|
@@ -33,6 +33,17 @@ class NetworksClient {
|
|
|
33
33
|
});
|
|
34
34
|
return response.json();
|
|
35
35
|
}
|
|
36
|
+
async getCantonValidator(request) {
|
|
37
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
38
|
+
path: request ?? {},
|
|
39
|
+
query: {},
|
|
40
|
+
});
|
|
41
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
42
|
+
method: 'GET',
|
|
43
|
+
apiOptions: this.apiOptions,
|
|
44
|
+
});
|
|
45
|
+
return response.json();
|
|
46
|
+
}
|
|
36
47
|
async getFees(request) {
|
|
37
48
|
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
38
49
|
path: request ?? {},
|
|
@@ -8,6 +8,7 @@ export declare class DelegatedNetworksClient {
|
|
|
8
8
|
createCantonValidatorComplete(request: T.CreateCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateCantonValidatorResponse>;
|
|
9
9
|
deleteCantonValidatorInit(request: T.DeleteCantonValidatorRequest): Promise<UserActionChallengeResponse>;
|
|
10
10
|
deleteCantonValidatorComplete(request: T.DeleteCantonValidatorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeleteCantonValidatorResponse>;
|
|
11
|
+
getCantonValidator(request: T.GetCantonValidatorRequest): Promise<T.GetCantonValidatorResponse>;
|
|
11
12
|
getFees(request?: T.GetFeesRequest): Promise<T.GetFeesResponse>;
|
|
12
13
|
listCantonValidators(request: T.ListCantonValidatorsRequest): Promise<T.ListCantonValidatorsResponse>;
|
|
13
14
|
readContract(request: T.ReadContractRequest): Promise<T.ReadContractResponse>;
|
|
@@ -62,6 +62,17 @@ class DelegatedNetworksClient {
|
|
|
62
62
|
});
|
|
63
63
|
return response.json();
|
|
64
64
|
}
|
|
65
|
+
async getCantonValidator(request) {
|
|
66
|
+
const path = (0, url_1.buildPathAndQuery)('/networks/:network/validators/:validatorId', {
|
|
67
|
+
path: request ?? {},
|
|
68
|
+
query: {},
|
|
69
|
+
});
|
|
70
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
71
|
+
method: 'GET',
|
|
72
|
+
apiOptions: this.apiOptions,
|
|
73
|
+
});
|
|
74
|
+
return response.json();
|
|
75
|
+
}
|
|
65
76
|
async getFees(request) {
|
|
66
77
|
const path = (0, url_1.buildPathAndQuery)('/networks/fees', {
|
|
67
78
|
path: request ?? {},
|
|
@@ -29,7 +29,10 @@ export type CreateCantonValidatorParams = {
|
|
|
29
29
|
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
30
30
|
};
|
|
31
31
|
export type CreateCantonValidatorResponse = {
|
|
32
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
32
33
|
id: string;
|
|
34
|
+
/** e.g. 'or-30tnh-itmjs-s235s5ontr3r23h2' */
|
|
35
|
+
orgId: string;
|
|
33
36
|
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
34
37
|
name?: string | undefined;
|
|
35
38
|
kind: "Shared" | "Custom";
|
|
@@ -41,10 +44,14 @@ export type CreateCantonValidatorRequest = CreateCantonValidatorParams & {
|
|
|
41
44
|
};
|
|
42
45
|
export type DeleteCantonValidatorParams = {
|
|
43
46
|
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
47
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
44
48
|
validatorId: string;
|
|
45
49
|
};
|
|
46
50
|
export type DeleteCantonValidatorResponse = {
|
|
51
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
47
52
|
id: string;
|
|
53
|
+
/** e.g. 'or-30tnh-itmjs-s235s5ontr3r23h2' */
|
|
54
|
+
orgId: string;
|
|
48
55
|
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
49
56
|
name?: string | undefined;
|
|
50
57
|
kind: "Shared" | "Custom";
|
|
@@ -52,8 +59,25 @@ export type DeleteCantonValidatorResponse = {
|
|
|
52
59
|
partyHint: string;
|
|
53
60
|
};
|
|
54
61
|
export type DeleteCantonValidatorRequest = DeleteCantonValidatorParams;
|
|
62
|
+
export type GetCantonValidatorParams = {
|
|
63
|
+
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
64
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
65
|
+
validatorId: string;
|
|
66
|
+
};
|
|
67
|
+
export type GetCantonValidatorResponse = {
|
|
68
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
69
|
+
id: string;
|
|
70
|
+
/** e.g. 'or-30tnh-itmjs-s235s5ontr3r23h2' */
|
|
71
|
+
orgId: string;
|
|
72
|
+
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
kind: "Shared" | "Custom";
|
|
75
|
+
dateCreated: string;
|
|
76
|
+
partyHint: string;
|
|
77
|
+
};
|
|
78
|
+
export type GetCantonValidatorRequest = GetCantonValidatorParams;
|
|
55
79
|
export type GetFeesQuery = {
|
|
56
|
-
network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Adi" | "AdiTestnet" | "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" | "FlareC" | "FlareCCoston2" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
80
|
+
network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Adi" | "AdiTestnet" | "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" | "FlareC" | "FlareCCoston2" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Sonic" | "SonicTestnet" | "Tsc" | "TscTestnet1";
|
|
57
81
|
};
|
|
58
82
|
export type GetFeesResponse = {
|
|
59
83
|
kind: "Bitcoin";
|
|
@@ -73,7 +97,7 @@ export type GetFeesResponse = {
|
|
|
73
97
|
};
|
|
74
98
|
} | {
|
|
75
99
|
kind: "Eip1559";
|
|
76
|
-
network: "Adi" | "AdiTestnet" | "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" | "FlareC" | "FlareCCoston2" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
100
|
+
network: "Adi" | "AdiTestnet" | "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" | "FlareC" | "FlareCCoston2" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Sonic" | "SonicTestnet" | "Tsc" | "TscTestnet1";
|
|
77
101
|
blockNumber: number;
|
|
78
102
|
slow: {
|
|
79
103
|
maxPriorityFeePerGas: string;
|
|
@@ -101,7 +125,10 @@ export type ListCantonValidatorsQuery = {
|
|
|
101
125
|
};
|
|
102
126
|
export type ListCantonValidatorsResponse = {
|
|
103
127
|
items: {
|
|
128
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
104
129
|
id: string;
|
|
130
|
+
/** e.g. 'or-30tnh-itmjs-s235s5ontr3r23h2' */
|
|
131
|
+
orgId: string;
|
|
105
132
|
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
106
133
|
name?: string | undefined;
|
|
107
134
|
kind: "Shared" | "Custom";
|
|
@@ -115,7 +142,7 @@ export type ListCantonValidatorsRequest = ListCantonValidatorsParams & {
|
|
|
115
142
|
};
|
|
116
143
|
export type ReadContractBody = {
|
|
117
144
|
kind: "Evm";
|
|
118
|
-
network: "Adi" | "AdiTestnet" | "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" | "FlareC" | "FlareCCoston2" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
145
|
+
network: "Adi" | "AdiTestnet" | "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" | "FlareC" | "FlareCCoston2" | "Ink" | "InkSepolia" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Plume" | "PlumeSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "Sonic" | "SonicTestnet" | "Tsc" | "TscTestnet1";
|
|
119
146
|
contract: string;
|
|
120
147
|
data: string;
|
|
121
148
|
};
|
|
@@ -151,10 +178,14 @@ export type UpdateCantonValidatorBody = {
|
|
|
151
178
|
};
|
|
152
179
|
export type UpdateCantonValidatorParams = {
|
|
153
180
|
network: "canton" | "canton-devnet" | "canton-testnet";
|
|
181
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
154
182
|
validatorId: string;
|
|
155
183
|
};
|
|
156
184
|
export type UpdateCantonValidatorResponse = {
|
|
185
|
+
/** e.g. 'cv-7jeof-m584r-p35ucm37ko3cqgts' */
|
|
157
186
|
id: string;
|
|
187
|
+
/** e.g. 'or-30tnh-itmjs-s235s5ontr3r23h2' */
|
|
188
|
+
orgId: string;
|
|
158
189
|
network: "Canton" | "CantonDevnet" | "CantonTestnet";
|
|
159
190
|
name?: string | undefined;
|
|
160
191
|
kind: "Shared" | "Custom";
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "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" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "
|
|
39
|
+
operations: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "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" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -183,7 +183,7 @@ export type ListPermissionsRequest = {
|
|
|
183
183
|
};
|
|
184
184
|
export type UpdatePermissionBody = {
|
|
185
185
|
name?: string | undefined;
|
|
186
|
-
operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "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" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "
|
|
186
|
+
operations?: (("Alias:Create" | "Alias:Delete" | "Alias:Read" | "Alias:Update" | "Auth:Logs:Read" | "Auth:Users:Create" | "Auth:Users:Read" | "Auth:Users:Update" | "Auth:Users:Activate" | "Auth:Users:Deactivate" | "Auth:Users:Delete" | "Auth:ServiceAccounts:Create" | "Auth:ServiceAccounts:Read" | "Auth:ServiceAccounts:Update" | "Auth:ServiceAccounts:Deactivate" | "Auth:ServiceAccounts:Activate" | "Auth:ServiceAccounts:Delete" | "Auth:Pats:Create" | "Auth:Register:Delegated" | "Auth:Login:Delegated" | "Auth:Recover:Delegated" | "Agreements:Acceptance:Create" | "Agreements:Acceptance:Read" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "FeeSponsors:Create" | "FeeSponsors:Read" | "FeeSponsors:Update" | "FeeSponsors:Delete" | "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" | "Wallets:Offers:Read" | "Wallets:Offers:Settle" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write" | "Analytics:Read") | ("Wallets:GenerateSignature" | "Wallets:BroadcastTransaction" | "Auth:Action:Sign" | "Auth:Apps:Read" | "Auth:Apps:Create" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Internal:Auth:Types:Staff" | "Auth:Users:Delegate" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke"))[] | undefined;
|
|
187
187
|
};
|
|
188
188
|
export type UpdatePermissionParams = {
|
|
189
189
|
permissionId: string;
|