@dfns/sdk 0.6.4 → 0.6.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/dfnsError.d.ts +1 -0
- package/dfnsError.js +1 -0
- package/generated/auth/client.js +1 -0
- package/generated/auth/types.d.ts +3 -3
- package/generated/exchanges/client.js +1 -0
- package/generated/exchanges/types.d.ts +4 -1
- package/generated/feeSponsors/client.d.ts +12 -0
- package/generated/feeSponsors/client.js +83 -0
- package/generated/feeSponsors/delegatedClient.d.ts +17 -0
- package/generated/feeSponsors/delegatedClient.js +142 -0
- package/generated/feeSponsors/index.d.ts +3 -0
- package/generated/feeSponsors/index.js +19 -0
- package/generated/feeSponsors/types.d.ts +80 -0
- package/generated/feeSponsors/types.js +2 -0
- package/generated/networks/client.js +1 -0
- package/generated/networks/types.d.ts +3 -3
- package/generated/permissions/client.js +1 -1
- package/generated/permissions/delegatedClient.js +0 -1
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/client.js +1 -0
- package/generated/policies/types.d.ts +312 -72
- package/generated/signers/client.js +1 -0
- package/generated/staking/client.js +1 -0
- package/generated/wallets/client.js +1 -0
- package/generated/wallets/types.d.ts +205 -73
- package/generated/webhooks/client.js +1 -0
- package/package.json +1 -1
package/dfnsError.d.ts
CHANGED
package/dfnsError.js
CHANGED
package/generated/auth/client.js
CHANGED
|
@@ -1975,7 +1975,7 @@ export type RegisterEndUserBody = {
|
|
|
1975
1975
|
credentialName?: string | undefined;
|
|
1976
1976
|
} | undefined;
|
|
1977
1977
|
wallets: {
|
|
1978
|
-
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "
|
|
1978
|
+
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
1979
1979
|
name?: string | undefined;
|
|
1980
1980
|
}[];
|
|
1981
1981
|
};
|
|
@@ -1995,10 +1995,10 @@ export type RegisterEndUserResponse = {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
wallets: {
|
|
1997
1997
|
id: string;
|
|
1998
|
-
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "
|
|
1998
|
+
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
1999
1999
|
address?: string | undefined;
|
|
2000
2000
|
signingKey: {
|
|
2001
|
-
id
|
|
2001
|
+
id: string;
|
|
2002
2002
|
scheme: "ECDSA" | "EdDSA" | "Schnorr";
|
|
2003
2003
|
curve: "ed25519" | "secp256k1" | "stark";
|
|
2004
2004
|
publicKey: string;
|
|
@@ -381,6 +381,9 @@ export type ListAssetWithdrawalNetworksResponse = (({
|
|
|
381
381
|
} | {
|
|
382
382
|
kind: "Erc20" | "Trc20";
|
|
383
383
|
contract: string;
|
|
384
|
+
} | {
|
|
385
|
+
kind: "LockedCoin";
|
|
386
|
+
coin: string;
|
|
384
387
|
} | {
|
|
385
388
|
kind: "Sep41";
|
|
386
389
|
issuer: string;
|
|
@@ -395,7 +398,7 @@ export type ListAssetWithdrawalNetworksResponse = (({
|
|
|
395
398
|
kind: "Tep74";
|
|
396
399
|
master: string;
|
|
397
400
|
}) & {
|
|
398
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "
|
|
401
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
399
402
|
decimals: number;
|
|
400
403
|
})[];
|
|
401
404
|
export type ListAssetWithdrawalNetworksRequest = ListAssetWithdrawalNetworksParams;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DfnsApiClientOptions } from '../../types/generic';
|
|
2
|
+
import * as T from './types';
|
|
3
|
+
export declare class FeeSponsorsClient {
|
|
4
|
+
private apiOptions;
|
|
5
|
+
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
|
+
activateFeeSponsor(request: T.ActivateFeeSponsorRequest): Promise<T.ActivateFeeSponsorResponse>;
|
|
7
|
+
createFeeSponsor(request: T.CreateFeeSponsorRequest): Promise<T.CreateFeeSponsorResponse>;
|
|
8
|
+
deactivateFeeSponsor(request: T.DeactivateFeeSponsorRequest): Promise<T.DeactivateFeeSponsorResponse>;
|
|
9
|
+
deleteFeeSponsor(request: T.DeleteFeeSponsorRequest): Promise<T.DeleteFeeSponsorResponse>;
|
|
10
|
+
getFeeSponsor(request: T.GetFeeSponsorRequest): Promise<T.GetFeeSponsorResponse>;
|
|
11
|
+
listFeeSponsors(request?: T.ListFeeSponsorsRequest): Promise<T.ListFeeSponsorsResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint @typescript-eslint/no-unused-vars: 0 */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FeeSponsorsClient = void 0;
|
|
5
|
+
const fetch_1 = require("../../utils/fetch");
|
|
6
|
+
const userActionFetch_1 = require("../../utils/userActionFetch");
|
|
7
|
+
const url_1 = require("../../utils/url");
|
|
8
|
+
class FeeSponsorsClient {
|
|
9
|
+
constructor(apiOptions) {
|
|
10
|
+
this.apiOptions = apiOptions;
|
|
11
|
+
}
|
|
12
|
+
async activateFeeSponsor(request) {
|
|
13
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId/activate', {
|
|
14
|
+
path: request ?? {},
|
|
15
|
+
query: {},
|
|
16
|
+
});
|
|
17
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
18
|
+
method: 'PUT',
|
|
19
|
+
body: {},
|
|
20
|
+
apiOptions: this.apiOptions,
|
|
21
|
+
});
|
|
22
|
+
return response.json();
|
|
23
|
+
}
|
|
24
|
+
async createFeeSponsor(request) {
|
|
25
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors', {
|
|
26
|
+
path: request ?? {},
|
|
27
|
+
query: {},
|
|
28
|
+
});
|
|
29
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
30
|
+
method: 'POST',
|
|
31
|
+
body: request.body,
|
|
32
|
+
apiOptions: this.apiOptions,
|
|
33
|
+
});
|
|
34
|
+
return response.json();
|
|
35
|
+
}
|
|
36
|
+
async deactivateFeeSponsor(request) {
|
|
37
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId/deactivate', {
|
|
38
|
+
path: request ?? {},
|
|
39
|
+
query: {},
|
|
40
|
+
});
|
|
41
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
42
|
+
method: 'PUT',
|
|
43
|
+
body: {},
|
|
44
|
+
apiOptions: this.apiOptions,
|
|
45
|
+
});
|
|
46
|
+
return response.json();
|
|
47
|
+
}
|
|
48
|
+
async deleteFeeSponsor(request) {
|
|
49
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId', {
|
|
50
|
+
path: request ?? {},
|
|
51
|
+
query: {},
|
|
52
|
+
});
|
|
53
|
+
const response = await (0, userActionFetch_1.userActionFetch)(path, {
|
|
54
|
+
method: 'DELETE',
|
|
55
|
+
body: {},
|
|
56
|
+
apiOptions: this.apiOptions,
|
|
57
|
+
});
|
|
58
|
+
return response.json();
|
|
59
|
+
}
|
|
60
|
+
async getFeeSponsor(request) {
|
|
61
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId', {
|
|
62
|
+
path: request ?? {},
|
|
63
|
+
query: {},
|
|
64
|
+
});
|
|
65
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
66
|
+
method: 'GET',
|
|
67
|
+
apiOptions: this.apiOptions,
|
|
68
|
+
});
|
|
69
|
+
return response.json();
|
|
70
|
+
}
|
|
71
|
+
async listFeeSponsors(request) {
|
|
72
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors', {
|
|
73
|
+
path: request ?? {},
|
|
74
|
+
query: request?.query ?? {},
|
|
75
|
+
});
|
|
76
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
77
|
+
method: 'GET',
|
|
78
|
+
apiOptions: this.apiOptions,
|
|
79
|
+
});
|
|
80
|
+
return response.json();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.FeeSponsorsClient = FeeSponsorsClient;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
|
|
2
|
+
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
3
|
+
import * as T from './types';
|
|
4
|
+
export declare class DelegatedFeeSponsorsClient {
|
|
5
|
+
private apiOptions;
|
|
6
|
+
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
|
+
activateFeeSponsorInit(request: T.ActivateFeeSponsorRequest): Promise<UserActionChallengeResponse>;
|
|
8
|
+
activateFeeSponsorComplete(request: T.ActivateFeeSponsorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ActivateFeeSponsorResponse>;
|
|
9
|
+
createFeeSponsorInit(request: T.CreateFeeSponsorRequest): Promise<UserActionChallengeResponse>;
|
|
10
|
+
createFeeSponsorComplete(request: T.CreateFeeSponsorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateFeeSponsorResponse>;
|
|
11
|
+
deactivateFeeSponsorInit(request: T.DeactivateFeeSponsorRequest): Promise<UserActionChallengeResponse>;
|
|
12
|
+
deactivateFeeSponsorComplete(request: T.DeactivateFeeSponsorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeactivateFeeSponsorResponse>;
|
|
13
|
+
deleteFeeSponsorInit(request: T.DeleteFeeSponsorRequest): Promise<UserActionChallengeResponse>;
|
|
14
|
+
deleteFeeSponsorComplete(request: T.DeleteFeeSponsorRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DeleteFeeSponsorResponse>;
|
|
15
|
+
getFeeSponsor(request: T.GetFeeSponsorRequest): Promise<T.GetFeeSponsorResponse>;
|
|
16
|
+
listFeeSponsors(request?: T.ListFeeSponsorsRequest): Promise<T.ListFeeSponsorsResponse>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DelegatedFeeSponsorsClient = void 0;
|
|
4
|
+
const baseAuthApi_1 = require("../../baseAuthApi");
|
|
5
|
+
const fetch_1 = require("../../utils/fetch");
|
|
6
|
+
const url_1 = require("../../utils/url");
|
|
7
|
+
class DelegatedFeeSponsorsClient {
|
|
8
|
+
constructor(apiOptions) {
|
|
9
|
+
this.apiOptions = apiOptions;
|
|
10
|
+
}
|
|
11
|
+
async activateFeeSponsorInit(request) {
|
|
12
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId/activate', {
|
|
13
|
+
path: request ?? {},
|
|
14
|
+
query: {},
|
|
15
|
+
});
|
|
16
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
17
|
+
userActionHttpMethod: 'PUT',
|
|
18
|
+
userActionHttpPath: path,
|
|
19
|
+
userActionPayload: JSON.stringify({}),
|
|
20
|
+
userActionServerKind: 'Api',
|
|
21
|
+
}, this.apiOptions);
|
|
22
|
+
return challenge;
|
|
23
|
+
}
|
|
24
|
+
async activateFeeSponsorComplete(request, signedChallenge) {
|
|
25
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId/activate', {
|
|
26
|
+
path: request ?? {},
|
|
27
|
+
query: {},
|
|
28
|
+
});
|
|
29
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
30
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
31
|
+
method: 'PUT',
|
|
32
|
+
body: {},
|
|
33
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
34
|
+
apiOptions: this.apiOptions,
|
|
35
|
+
});
|
|
36
|
+
return response.json();
|
|
37
|
+
}
|
|
38
|
+
async createFeeSponsorInit(request) {
|
|
39
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors', {
|
|
40
|
+
path: request ?? {},
|
|
41
|
+
query: {},
|
|
42
|
+
});
|
|
43
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
44
|
+
userActionHttpMethod: 'POST',
|
|
45
|
+
userActionHttpPath: path,
|
|
46
|
+
userActionPayload: JSON.stringify(request.body),
|
|
47
|
+
userActionServerKind: 'Api',
|
|
48
|
+
}, this.apiOptions);
|
|
49
|
+
return challenge;
|
|
50
|
+
}
|
|
51
|
+
async createFeeSponsorComplete(request, signedChallenge) {
|
|
52
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors', {
|
|
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: 'POST',
|
|
59
|
+
body: request.body,
|
|
60
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
61
|
+
apiOptions: this.apiOptions,
|
|
62
|
+
});
|
|
63
|
+
return response.json();
|
|
64
|
+
}
|
|
65
|
+
async deactivateFeeSponsorInit(request) {
|
|
66
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId/deactivate', {
|
|
67
|
+
path: request ?? {},
|
|
68
|
+
query: {},
|
|
69
|
+
});
|
|
70
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
71
|
+
userActionHttpMethod: 'PUT',
|
|
72
|
+
userActionHttpPath: path,
|
|
73
|
+
userActionPayload: JSON.stringify({}),
|
|
74
|
+
userActionServerKind: 'Api',
|
|
75
|
+
}, this.apiOptions);
|
|
76
|
+
return challenge;
|
|
77
|
+
}
|
|
78
|
+
async deactivateFeeSponsorComplete(request, signedChallenge) {
|
|
79
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId/deactivate', {
|
|
80
|
+
path: request ?? {},
|
|
81
|
+
query: {},
|
|
82
|
+
});
|
|
83
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
84
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
85
|
+
method: 'PUT',
|
|
86
|
+
body: {},
|
|
87
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
88
|
+
apiOptions: this.apiOptions,
|
|
89
|
+
});
|
|
90
|
+
return response.json();
|
|
91
|
+
}
|
|
92
|
+
async deleteFeeSponsorInit(request) {
|
|
93
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId', {
|
|
94
|
+
path: request ?? {},
|
|
95
|
+
query: {},
|
|
96
|
+
});
|
|
97
|
+
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
98
|
+
userActionHttpMethod: 'DELETE',
|
|
99
|
+
userActionHttpPath: path,
|
|
100
|
+
userActionPayload: JSON.stringify({}),
|
|
101
|
+
userActionServerKind: 'Api',
|
|
102
|
+
}, this.apiOptions);
|
|
103
|
+
return challenge;
|
|
104
|
+
}
|
|
105
|
+
async deleteFeeSponsorComplete(request, signedChallenge) {
|
|
106
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId', {
|
|
107
|
+
path: request ?? {},
|
|
108
|
+
query: {},
|
|
109
|
+
});
|
|
110
|
+
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
111
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
112
|
+
method: 'DELETE',
|
|
113
|
+
body: {},
|
|
114
|
+
headers: { 'x-dfns-useraction': userAction },
|
|
115
|
+
apiOptions: this.apiOptions,
|
|
116
|
+
});
|
|
117
|
+
return response.json();
|
|
118
|
+
}
|
|
119
|
+
async getFeeSponsor(request) {
|
|
120
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors/:feeSponsorId', {
|
|
121
|
+
path: request ?? {},
|
|
122
|
+
query: {},
|
|
123
|
+
});
|
|
124
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
125
|
+
method: 'GET',
|
|
126
|
+
apiOptions: this.apiOptions,
|
|
127
|
+
});
|
|
128
|
+
return response.json();
|
|
129
|
+
}
|
|
130
|
+
async listFeeSponsors(request) {
|
|
131
|
+
const path = (0, url_1.buildPathAndQuery)('/fee-sponsors', {
|
|
132
|
+
path: request ?? {},
|
|
133
|
+
query: request?.query ?? {},
|
|
134
|
+
});
|
|
135
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
136
|
+
method: 'GET',
|
|
137
|
+
apiOptions: this.apiOptions,
|
|
138
|
+
});
|
|
139
|
+
return response.json();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.DelegatedFeeSponsorsClient = DelegatedFeeSponsorsClient;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
19
|
+
__exportStar(require("./delegatedClient"), exports);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export type ActivateFeeSponsorParams = {
|
|
2
|
+
feeSponsorId: string;
|
|
3
|
+
};
|
|
4
|
+
export type ActivateFeeSponsorResponse = {
|
|
5
|
+
id: string;
|
|
6
|
+
walletId: string;
|
|
7
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
8
|
+
status: "Active" | "Deactivated" | "Archived";
|
|
9
|
+
dateCreated: string;
|
|
10
|
+
dateUpdated: string;
|
|
11
|
+
};
|
|
12
|
+
export type ActivateFeeSponsorRequest = ActivateFeeSponsorParams;
|
|
13
|
+
export type CreateFeeSponsorBody = {
|
|
14
|
+
walletId: string;
|
|
15
|
+
};
|
|
16
|
+
export type CreateFeeSponsorResponse = {
|
|
17
|
+
id: string;
|
|
18
|
+
walletId: string;
|
|
19
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
20
|
+
status: "Active" | "Deactivated" | "Archived";
|
|
21
|
+
dateCreated: string;
|
|
22
|
+
dateUpdated: string;
|
|
23
|
+
};
|
|
24
|
+
export type CreateFeeSponsorRequest = {
|
|
25
|
+
body: CreateFeeSponsorBody;
|
|
26
|
+
};
|
|
27
|
+
export type DeactivateFeeSponsorParams = {
|
|
28
|
+
feeSponsorId: string;
|
|
29
|
+
};
|
|
30
|
+
export type DeactivateFeeSponsorResponse = {
|
|
31
|
+
id: string;
|
|
32
|
+
walletId: string;
|
|
33
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
34
|
+
status: "Active" | "Deactivated" | "Archived";
|
|
35
|
+
dateCreated: string;
|
|
36
|
+
dateUpdated: string;
|
|
37
|
+
};
|
|
38
|
+
export type DeactivateFeeSponsorRequest = DeactivateFeeSponsorParams;
|
|
39
|
+
export type DeleteFeeSponsorParams = {
|
|
40
|
+
feeSponsorId: string;
|
|
41
|
+
};
|
|
42
|
+
export type DeleteFeeSponsorResponse = {
|
|
43
|
+
id: string;
|
|
44
|
+
walletId: string;
|
|
45
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
46
|
+
status: "Active" | "Deactivated" | "Archived";
|
|
47
|
+
dateCreated: string;
|
|
48
|
+
dateUpdated: string;
|
|
49
|
+
};
|
|
50
|
+
export type DeleteFeeSponsorRequest = DeleteFeeSponsorParams;
|
|
51
|
+
export type GetFeeSponsorParams = {
|
|
52
|
+
feeSponsorId: string;
|
|
53
|
+
};
|
|
54
|
+
export type GetFeeSponsorResponse = {
|
|
55
|
+
id: string;
|
|
56
|
+
walletId: string;
|
|
57
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
58
|
+
status: "Active" | "Deactivated" | "Archived";
|
|
59
|
+
dateCreated: string;
|
|
60
|
+
dateUpdated: string;
|
|
61
|
+
};
|
|
62
|
+
export type GetFeeSponsorRequest = GetFeeSponsorParams;
|
|
63
|
+
export type ListFeeSponsorsQuery = {
|
|
64
|
+
limit?: string | undefined;
|
|
65
|
+
paginationToken?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
export type ListFeeSponsorsResponse = {
|
|
68
|
+
items: {
|
|
69
|
+
id: string;
|
|
70
|
+
walletId: string;
|
|
71
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "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";
|
|
72
|
+
status: "Active" | "Deactivated" | "Archived";
|
|
73
|
+
dateCreated: string;
|
|
74
|
+
dateUpdated: string;
|
|
75
|
+
}[];
|
|
76
|
+
nextPageToken?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
export type ListFeeSponsorsRequest = {
|
|
79
|
+
query?: ListFeeSponsorsQuery;
|
|
80
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type GetFeesQuery = {
|
|
2
|
-
network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
2
|
+
network: "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
3
3
|
};
|
|
4
4
|
export type GetFeesResponse = {
|
|
5
5
|
kind: "Bitcoin";
|
|
@@ -19,7 +19,7 @@ export type GetFeesResponse = {
|
|
|
19
19
|
};
|
|
20
20
|
} | {
|
|
21
21
|
kind: "Eip1559";
|
|
22
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
22
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
23
23
|
blockNumber: number;
|
|
24
24
|
slow: {
|
|
25
25
|
maxPriorityFeePerGas: string;
|
|
@@ -40,7 +40,7 @@ export type GetFeesRequest = {
|
|
|
40
40
|
};
|
|
41
41
|
export type ReadContractBody = {
|
|
42
42
|
kind: "Evm";
|
|
43
|
-
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
43
|
+
network: "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "Bsc" | "BscTestnet" | "Berachain" | "BerachainBArtio" | "BerachainBepolia" | "Celo" | "CeloAlfajores" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia";
|
|
44
44
|
contract: string;
|
|
45
45
|
data: string;
|
|
46
46
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint @typescript-eslint/no-unused-vars: 0 */
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.PermissionsClient = void 0;
|
|
4
5
|
const fetch_1 = require("../../utils/fetch");
|
|
@@ -54,7 +55,6 @@ class PermissionsClient {
|
|
|
54
55
|
body: {},
|
|
55
56
|
apiOptions: this.apiOptions,
|
|
56
57
|
});
|
|
57
|
-
return response.json();
|
|
58
58
|
}
|
|
59
59
|
async getPermission(request) {
|
|
60
60
|
const path = (0, url_1.buildPathAndQuery)('/permissions/:permissionId', {
|
|
@@ -114,7 +114,6 @@ class DelegatedPermissionsClient {
|
|
|
114
114
|
headers: { 'x-dfns-useraction': userAction },
|
|
115
115
|
apiOptions: this.apiOptions,
|
|
116
116
|
});
|
|
117
|
-
return response.json();
|
|
118
117
|
}
|
|
119
118
|
async getPermission(request) {
|
|
120
119
|
const path = (0, url_1.buildPathAndQuery)('/permissions/:permissionId', {
|
|
@@ -36,7 +36,7 @@ export type CreateAssignmentRequest = CreateAssignmentParams & {
|
|
|
36
36
|
};
|
|
37
37
|
export type CreatePermissionBody = {
|
|
38
38
|
name: string;
|
|
39
|
-
operations: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "
|
|
39
|
+
operations: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "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" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Keys:Create" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Signatures:Create" | "Keys:Signatures: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" | "Wallets:Delegate" | "Wallets:Import" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:ReadSignature" | "Wallets:BroadcastTransaction" | "Wallets:ReadTransaction" | "Wallets:TransferAsset" | "Wallets:ReadTransfer" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write")[];
|
|
40
40
|
};
|
|
41
41
|
export type CreatePermissionResponse = {
|
|
42
42
|
id: string;
|
|
@@ -178,7 +178,7 @@ export type ListPermissionsRequest = {
|
|
|
178
178
|
};
|
|
179
179
|
export type UpdatePermissionBody = {
|
|
180
180
|
name?: string | undefined;
|
|
181
|
-
operations?: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "Exchanges:Create" | "Exchanges:Read" | "Exchanges:Delete" | "Exchanges:Deposits:Create" | "Exchanges:Withdrawals:Create" | "Orgs:Read" | "Orgs:Update" | "Orgs:Settings:Read" | "Orgs:Settings:Update" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "
|
|
181
|
+
operations?: ("Auth:Action:Sign" | "Auth:Apps:Create" | "Auth:Apps:Read" | "Auth:Apps:Update" | "Auth:Creds:Create" | "Auth:Creds:Read" | "Auth:Creds:Update" | "Auth:Creds:Code:Create" | "Auth:Types:Application" | "Auth:Types:Employee" | "Auth:Types:EndUser" | "Auth:Types:Pat" | "Auth:Types:ServiceAccount" | "Auth:Users:Create" | "Auth:Users:Delegate" | "Auth:Users:Read" | "Auth:Users:Update" | "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" | "PermissionAssignments:Create" | "PermissionAssignments:Read" | "PermissionAssignments:Revoke" | "PermissionPredicates:Archive" | "PermissionPredicates:Create" | "PermissionPredicates:Read" | "PermissionPredicates:Update" | "Permissions:Archive" | "Permissions:Create" | "Permissions:Read" | "Permissions:Update" | "Policies:Archive" | "Policies:Create" | "Policies:Read" | "Policies:Update" | "Policies:Approvals:Read" | "Policies:Approvals:Approve" | "Signers:ListSigners" | "Stakes:Create" | "Stakes:Read" | "Stakes:Update" | "Keys:Create" | "Keys:Read" | "Keys:Update" | "Keys:Reuse" | "Keys:Delegate" | "Keys:Import" | "Keys:Export" | "Keys:Signatures:Create" | "Keys:Signatures: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" | "Wallets:Delegate" | "Wallets:Import" | "Wallets:Export" | "Wallets:GenerateSignature" | "Wallets:ReadSignature" | "Wallets:BroadcastTransaction" | "Wallets:ReadTransaction" | "Wallets:TransferAsset" | "Wallets:ReadTransfer" | "Webhooks:Create" | "Webhooks:Read" | "Webhooks:Update" | "Webhooks:Delete" | "Webhooks:Ping" | "Webhooks:Events:Read" | "Billing:Read" | "Billing:Write")[] | undefined;
|
|
182
182
|
};
|
|
183
183
|
export type UpdatePermissionParams = {
|
|
184
184
|
permissionId: string;
|