@cubist-labs/cubesigner-sdk 0.1.77 → 0.2.2
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/dist/src/client.d.ts +434 -7
- package/dist/src/client.js +1022 -18
- package/dist/src/ethers/index.d.ts +2 -4
- package/dist/src/ethers/index.js +5 -8
- package/dist/src/index.d.ts +41 -65
- package/dist/src/index.js +58 -231
- package/dist/src/key.d.ts +9 -45
- package/dist/src/key.js +18 -89
- package/dist/src/mfa.d.ts +85 -14
- package/dist/src/mfa.js +158 -40
- package/dist/src/org.d.ts +217 -127
- package/dist/src/org.js +94 -232
- package/dist/src/role.d.ts +76 -74
- package/dist/src/role.js +79 -136
- package/dist/src/schema.d.ts +345 -13
- package/dist/src/schema.js +1 -1
- package/dist/src/schema_types.d.ts +103 -0
- package/dist/src/schema_types.js +3 -0
- package/dist/src/session/session_manager.js +1 -1
- package/dist/src/session/signer_session_manager.d.ts +14 -29
- package/dist/src/session/signer_session_manager.js +26 -79
- package/dist/src/signer_session.d.ts +212 -191
- package/dist/src/signer_session.js +120 -313
- package/package.json +6 -6
- package/src/client.ts +1217 -7
- package/src/ethers/index.ts +5 -17
- package/src/index.ts +69 -262
- package/src/key.ts +19 -121
- package/src/{fido.ts → mfa.ts} +62 -26
- package/src/org.ts +96 -292
- package/src/role.ts +108 -181
- package/src/schema.ts +345 -13
- package/src/schema_types.ts +103 -0
- package/src/session/session_manager.ts +1 -1
- package/src/session/signer_session_manager.ts +35 -109
- package/src/signer_session.ts +115 -442
|
@@ -1,61 +1,19 @@
|
|
|
1
|
-
import { CubeSigner,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
export type Eth2UnstakeResponse = components["responses"]["UnstakeResponse"]["content"]["application/json"];
|
|
18
|
-
export type BlobSignResponse = components["responses"]["BlobSignResponse"]["content"]["application/json"];
|
|
19
|
-
export type BtcSignResponse = components["responses"]["BtcSignResponse"]["content"]["application/json"];
|
|
20
|
-
export type SolanaSignResponse = components["responses"]["SolanaSignResponse"]["content"]["application/json"];
|
|
21
|
-
export type MfaRequestInfo = components["responses"]["MfaRequestInfo"]["content"]["application/json"];
|
|
22
|
-
export type AvaSignResponse = components["responses"]["AvaSignResponse"]["content"]["application/json"];
|
|
23
|
-
export type AcceptedResponse = components["schemas"]["AcceptedResponse"];
|
|
24
|
-
export type ErrorResponse = components["schemas"]["ErrorResponse"];
|
|
25
|
-
export type BtcSignatureKind = components["schemas"]["BtcSignatureKind"];
|
|
26
|
-
/** MFA request kind */
|
|
27
|
-
export type MfaType = components["schemas"]["MfaType"];
|
|
28
|
-
/** Ava P- or X-chain transaction */
|
|
29
|
-
export type AvaTx = {
|
|
30
|
-
P: AvaPChainTx;
|
|
31
|
-
} | {
|
|
32
|
-
X: AvaXChainTx;
|
|
33
|
-
};
|
|
34
|
-
/** Ava P-chain transaction */
|
|
35
|
-
export type AvaPChainTx = {
|
|
36
|
-
AddPermissionlessValidator: JsonMap;
|
|
37
|
-
} | {
|
|
38
|
-
AddSubnetValidator: JsonMap;
|
|
39
|
-
} | {
|
|
40
|
-
AddValidator: JsonMap;
|
|
41
|
-
} | {
|
|
42
|
-
CreateChain: JsonMap;
|
|
43
|
-
} | {
|
|
44
|
-
CreateSubnet: JsonMap;
|
|
45
|
-
} | {
|
|
46
|
-
Export: JsonMap;
|
|
47
|
-
} | {
|
|
48
|
-
Import: JsonMap;
|
|
49
|
-
};
|
|
50
|
-
/** Ava X-chain transaction */
|
|
51
|
-
export type AvaXChainTx = {
|
|
52
|
-
Base: JsonMap;
|
|
53
|
-
} | {
|
|
54
|
-
Export: JsonMap;
|
|
55
|
-
} | {
|
|
56
|
-
Import: JsonMap;
|
|
57
|
-
};
|
|
58
|
-
type SignFn<U> = (headers?: HeadersInit) => Promise<U | AcceptedResponse>;
|
|
1
|
+
import { CubeSigner, MfaReceipt, KeyInfo } from ".";
|
|
2
|
+
import { CubeSignerClient } from "./client";
|
|
3
|
+
import { AcceptedResponse, NewSessionResponse } from "./schema_types";
|
|
4
|
+
import { SignerSessionManager, SignerSessionStorage } from "./session/signer_session_manager";
|
|
5
|
+
type Response<U> = U | AcceptedResponse;
|
|
6
|
+
type RequestFn<U> = (headers?: HeadersInit) => Promise<Response<U>>;
|
|
7
|
+
type MapFn<U, V> = (u: U) => V;
|
|
8
|
+
/**
|
|
9
|
+
* Takes a {@link Response<U>} and a {@link MapFn<U, V>} function and returns
|
|
10
|
+
* a {@link Response<V>} that maps the value of the original response when its status code is 200.
|
|
11
|
+
*
|
|
12
|
+
* @param {Response<U>} resp Original response
|
|
13
|
+
* @param {Map<U, V>} mapFn Map to apply to the response value when its status code is 200.
|
|
14
|
+
* @return {Response<V>} Response whose value for status code 200 is mapped from U to V
|
|
15
|
+
*/
|
|
16
|
+
export declare function mapResponse<U, V>(resp: Response<U>, mapFn: MapFn<U, V>): Response<V>;
|
|
59
17
|
export interface MfaRequired {
|
|
60
18
|
/** Org id */
|
|
61
19
|
org_id: string;
|
|
@@ -67,7 +25,7 @@ export interface MfaRequired {
|
|
|
67
25
|
/**
|
|
68
26
|
* A response of a CubeSigner request.
|
|
69
27
|
*/
|
|
70
|
-
export declare class
|
|
28
|
+
export declare class CubeSignerResponse<U> {
|
|
71
29
|
#private;
|
|
72
30
|
/** @return {string} The MFA id associated with this request */
|
|
73
31
|
mfaId(): string;
|
|
@@ -78,47 +36,46 @@ export declare class SignResponse<U> {
|
|
|
78
36
|
* @return {ClientSessionInfo | undefined}
|
|
79
37
|
*/
|
|
80
38
|
mfaSessionInfo(): NewSessionResponse | undefined;
|
|
81
|
-
/** @return {U} The
|
|
39
|
+
/** @return {U} The response data, if no MFA is required */
|
|
82
40
|
data(): U;
|
|
83
41
|
/**
|
|
84
42
|
* Approves the MFA request using a given session and a TOTP code.
|
|
85
43
|
*
|
|
86
44
|
* @param {SignerSession} session Signer session to use
|
|
87
45
|
* @param {string} code 6-digit TOTP code
|
|
88
|
-
* @return {
|
|
46
|
+
* @return {CubeSignerResponse<U>} The result of signing with the approval
|
|
89
47
|
*/
|
|
90
|
-
approveTotp(session: SignerSession, code: string): Promise<
|
|
48
|
+
approveTotp(session: SignerSession, code: string): Promise<CubeSignerResponse<U>>;
|
|
91
49
|
/**
|
|
92
|
-
* Approves the MFA request using a given `
|
|
50
|
+
* Approves the MFA request using a given `CubeSignerClient` instance (i.e., its session).
|
|
93
51
|
*
|
|
94
52
|
* @param {CubeSigner} cs CubeSigner whose session to use
|
|
95
|
-
* @return {
|
|
53
|
+
* @return {CubeSignerResponse<U>} The result of signing with the approval
|
|
96
54
|
*/
|
|
97
|
-
approve(cs: CubeSigner): Promise<
|
|
55
|
+
approve(cs: CubeSigner): Promise<CubeSignerResponse<U>>;
|
|
98
56
|
/**
|
|
99
57
|
* @param {MfaReceipt} mfaReceipt The MFA receipt
|
|
100
|
-
* @return {Promise<
|
|
58
|
+
* @return {Promise<CubeSignerResponse<U>>} The result of signing after MFA approval
|
|
101
59
|
*/
|
|
102
|
-
signWithMfaApproval(mfaReceipt: MfaReceipt): Promise<
|
|
60
|
+
signWithMfaApproval(mfaReceipt: MfaReceipt): Promise<CubeSignerResponse<U>>;
|
|
103
61
|
/**
|
|
104
62
|
* Constructor.
|
|
105
63
|
*
|
|
106
|
-
* @param {
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* @param {U | AcceptedResponse} resp The response as returned by the OpenAPI
|
|
110
|
-
* client.
|
|
64
|
+
* @param {RequestFn} requestFn
|
|
65
|
+
* The signing function that this response is from.
|
|
66
|
+
* This argument is used to resend requests with different headers if needed.
|
|
67
|
+
* @param {U | AcceptedResponse} resp The response as returned by the OpenAPI client.
|
|
111
68
|
*/
|
|
112
|
-
constructor(
|
|
69
|
+
constructor(requestFn: RequestFn<U>, resp: U | AcceptedResponse);
|
|
113
70
|
/**
|
|
114
71
|
* Static constructor.
|
|
115
|
-
* @param {
|
|
116
|
-
*
|
|
117
|
-
*
|
|
72
|
+
* @param {RequestFn} requestFn
|
|
73
|
+
* The request function that this response is from.
|
|
74
|
+
* This argument is used to resend requests with different headers if needed.
|
|
118
75
|
* @param {MfaReceipt} mfaReceipt Optional MFA receipt
|
|
119
|
-
* @return {Promise<
|
|
76
|
+
* @return {Promise<CubeSignerResponse<U>>} New instance of this class.
|
|
120
77
|
*/
|
|
121
|
-
static create<U>(
|
|
78
|
+
static create<U>(requestFn: RequestFn<U>, mfaReceipt?: MfaReceipt): Promise<CubeSignerResponse<U>>;
|
|
122
79
|
/**
|
|
123
80
|
* Returns HTTP headers containing a given MFA receipt.
|
|
124
81
|
*
|
|
@@ -131,128 +88,201 @@ export declare class SignResponse<U> {
|
|
|
131
88
|
export declare class SignerSessionInfo {
|
|
132
89
|
#private;
|
|
133
90
|
readonly purpose: string;
|
|
134
|
-
/** Revoke this
|
|
91
|
+
/** Revoke this session */
|
|
135
92
|
revoke(): Promise<void>;
|
|
136
93
|
/**
|
|
137
94
|
* Internal constructor.
|
|
138
|
-
* @param {
|
|
139
|
-
* @param {string}
|
|
140
|
-
* @param {string} roleId Role ID
|
|
141
|
-
* @param {string} hash The hash of the token; can be used for revocation but not for auth
|
|
95
|
+
* @param {CubeSignerClient} cs CubeSigner instance to use when calling `revoke`
|
|
96
|
+
* @param {string} sessionId The ID of the session; can be used for revocation but not for auth
|
|
142
97
|
* @param {string} purpose Session purpose
|
|
143
98
|
* @internal
|
|
144
99
|
*/
|
|
145
|
-
constructor(cs:
|
|
100
|
+
constructor(cs: CubeSignerClient, sessionId: string, purpose: string);
|
|
146
101
|
}
|
|
147
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* Signer session.
|
|
104
|
+
*
|
|
105
|
+
* @deprecated Use {@link CubeSignerClient} instead.
|
|
106
|
+
*/
|
|
148
107
|
export declare class SignerSession {
|
|
149
108
|
#private;
|
|
150
|
-
|
|
109
|
+
/** Deprecated */
|
|
110
|
+
get sessionMgr(): SignerSessionManager;
|
|
151
111
|
/** Org id */
|
|
152
112
|
get orgId(): string;
|
|
153
113
|
/**
|
|
154
114
|
* Returns the list of keys that this token grants access to.
|
|
155
|
-
* @return {
|
|
115
|
+
* @return {KeyInfo[]} The list of keys.
|
|
156
116
|
*/
|
|
157
117
|
keys(): Promise<KeyInfo[]>;
|
|
158
|
-
/**
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
118
|
+
/** Approve a pending MFA request using TOTP. */
|
|
119
|
+
get totpApprove(): (mfaId: string, code: string) => Promise<{
|
|
120
|
+
expires_at: number;
|
|
121
|
+
id: string;
|
|
122
|
+
receipt?: {
|
|
123
|
+
confirmation: string;
|
|
124
|
+
final_approver: string;
|
|
125
|
+
timestamp: number;
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
request: {
|
|
128
|
+
body?: Record<string, unknown> | null | undefined;
|
|
129
|
+
method: string;
|
|
130
|
+
path: string;
|
|
131
|
+
};
|
|
132
|
+
status: {
|
|
133
|
+
allowed_approvers: string[];
|
|
134
|
+
allowed_mfa_types?: ("CubeSigner" | "Totp" | "Fido")[] | null | undefined;
|
|
135
|
+
approved_by: {
|
|
136
|
+
[key: string]: {
|
|
137
|
+
[key: string]: {
|
|
138
|
+
timestamp: number;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
count: number;
|
|
143
|
+
num_auth_factors: number;
|
|
144
|
+
};
|
|
145
|
+
}>;
|
|
146
|
+
/** Initiate approval of an existing MFA request using FIDO. */
|
|
147
|
+
get fidoApproveStart(): (mfaId: string) => Promise<import("./mfa").MfaFidoChallenge>;
|
|
148
|
+
/** Get a pending MFA request by its id. */
|
|
149
|
+
get getMfaInfo(): (mfaId: string) => Promise<{
|
|
150
|
+
expires_at: number;
|
|
151
|
+
id: string;
|
|
152
|
+
receipt?: {
|
|
153
|
+
confirmation: string;
|
|
154
|
+
final_approver: string;
|
|
155
|
+
timestamp: number;
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
request: {
|
|
158
|
+
body?: Record<string, unknown> | null | undefined;
|
|
159
|
+
method: string;
|
|
160
|
+
path: string;
|
|
161
|
+
};
|
|
162
|
+
status: {
|
|
163
|
+
allowed_approvers: string[];
|
|
164
|
+
allowed_mfa_types?: ("CubeSigner" | "Totp" | "Fido")[] | null | undefined;
|
|
165
|
+
approved_by: {
|
|
166
|
+
[key: string]: {
|
|
167
|
+
[key: string]: {
|
|
168
|
+
timestamp: number;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
count: number;
|
|
173
|
+
num_auth_factors: number;
|
|
174
|
+
};
|
|
175
|
+
}>;
|
|
176
|
+
/** Submit an EVM sign request. */
|
|
177
|
+
get signEvm(): (key: string | import("./key").Key, req: {
|
|
178
|
+
chain_id: number;
|
|
179
|
+
tx: Record<string, never>;
|
|
180
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
181
|
+
rlp_signed_tx: string;
|
|
182
|
+
}>>;
|
|
183
|
+
/** Submit an 'eth2' sign request. */
|
|
184
|
+
get signEth2(): (key: string | import("./key").Key, req: {
|
|
185
|
+
eth2_sign_request: Record<string, never>;
|
|
186
|
+
network: "mainnet" | "prater" | "goerli" | "holesky";
|
|
187
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
188
|
+
signature: string;
|
|
189
|
+
}>>;
|
|
190
|
+
/** Sign a stake request. */
|
|
191
|
+
get stake(): (req: {
|
|
192
|
+
chain_id: number;
|
|
193
|
+
deposit_type: "Canonical" | "Wrapper";
|
|
194
|
+
staking_amount_gwei?: number | undefined;
|
|
195
|
+
unsafe_conf?: {
|
|
196
|
+
deposit_contract_addr?: string | null | undefined;
|
|
197
|
+
genesis_fork_version?: string | null | undefined;
|
|
198
|
+
} | null | undefined;
|
|
199
|
+
validator_key?: string | null | undefined;
|
|
200
|
+
withdrawal_addr: string;
|
|
201
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
202
|
+
created_validator_key_id: string;
|
|
203
|
+
deposit_tx: {
|
|
204
|
+
chain_id: number;
|
|
205
|
+
deposit_txn: Record<string, never>;
|
|
206
|
+
new_validator_pk: string;
|
|
207
|
+
};
|
|
208
|
+
}>>;
|
|
209
|
+
/** Sign an unstake request. */
|
|
210
|
+
get unstake(): (key: string | import("./key").Key, req: {
|
|
211
|
+
epoch?: string | null | undefined;
|
|
212
|
+
fork: {
|
|
213
|
+
current_version: string;
|
|
214
|
+
epoch: string;
|
|
215
|
+
previous_version: string;
|
|
216
|
+
};
|
|
217
|
+
genesis_data: {
|
|
218
|
+
genesis_fork_version: string;
|
|
219
|
+
genesis_time: string;
|
|
220
|
+
genesis_validators_root: string;
|
|
221
|
+
};
|
|
222
|
+
network: "mainnet" | "prater" | "goerli" | "holesky";
|
|
223
|
+
validator_index: string;
|
|
224
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
225
|
+
message: {
|
|
226
|
+
epoch: string;
|
|
227
|
+
validator_index: string;
|
|
228
|
+
};
|
|
229
|
+
signature: string;
|
|
230
|
+
}>>;
|
|
231
|
+
/** Sign a raw blob.*/
|
|
232
|
+
get signBlob(): (key: string | import("./key").Key, req: {
|
|
233
|
+
message_base64: string;
|
|
234
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
235
|
+
signature: string;
|
|
236
|
+
}>>;
|
|
237
|
+
/** Sign a bitcoin message. */
|
|
238
|
+
get signBtc(): (key: string | import("./key").Key, req: {
|
|
239
|
+
sig_kind: {
|
|
240
|
+
Segwit: {
|
|
241
|
+
input_index: number;
|
|
242
|
+
script_code: string;
|
|
243
|
+
sighash_type: "All" | "None" | "Single" | "AllPlusAnyoneCanPay" | "NonePlusAnyoneCanPay" | "SinglePlusAnyoneCanPay";
|
|
244
|
+
value: number;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
tx: Record<string, never>;
|
|
248
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
249
|
+
signature: string;
|
|
250
|
+
}>>;
|
|
251
|
+
/** Sign a solana message. */
|
|
252
|
+
get signSolana(): (key: string | import("./key").Key, req: {
|
|
253
|
+
message_base64: string;
|
|
254
|
+
}, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
255
|
+
signature: string;
|
|
256
|
+
}>>;
|
|
257
|
+
/** Sign an Avalanche P- or X-chain message. */
|
|
258
|
+
get signAva(): (key: string | import("./key").Key, tx: import("./schema_types").AvaTx, mfaReceipt?: MfaReceipt | undefined) => Promise<CubeSignerResponse<{
|
|
259
|
+
signature: string;
|
|
260
|
+
}>>;
|
|
250
261
|
/**
|
|
251
262
|
* Obtain a proof of authentication.
|
|
252
|
-
*
|
|
253
|
-
* @return {Promise<IdentityProof>} Proof of authentication
|
|
254
263
|
*/
|
|
255
|
-
proveIdentity(): Promise<
|
|
264
|
+
get proveIdentity(): () => Promise<{
|
|
265
|
+
aud?: string | null | undefined;
|
|
266
|
+
email: string;
|
|
267
|
+
exp_epoch: number;
|
|
268
|
+
identity?: {
|
|
269
|
+
iss: string;
|
|
270
|
+
sub: string;
|
|
271
|
+
} | null | undefined;
|
|
272
|
+
user_info?: {
|
|
273
|
+
configured_mfa: ({
|
|
274
|
+
type: "totp";
|
|
275
|
+
} | {
|
|
276
|
+
id: string;
|
|
277
|
+
name: string;
|
|
278
|
+
type: "fido";
|
|
279
|
+
})[];
|
|
280
|
+
initialized: boolean;
|
|
281
|
+
user_id: string;
|
|
282
|
+
} | null | undefined;
|
|
283
|
+
} & {
|
|
284
|
+
id: string;
|
|
285
|
+
}>;
|
|
256
286
|
/**
|
|
257
287
|
* Loads an existing signer session from storage.
|
|
258
288
|
* @param {SignerSessionStorage} storage The session storage to use
|
|
@@ -265,14 +295,5 @@ export declare class SignerSession {
|
|
|
265
295
|
* @internal
|
|
266
296
|
*/
|
|
267
297
|
constructor(sessionMgr: SignerSessionManager);
|
|
268
|
-
/**
|
|
269
|
-
* Static method for revoking a token (used both from {SignerSession} and {SignerSessionInfo}).
|
|
270
|
-
* @param {CubeSigner} cs CubeSigner instance
|
|
271
|
-
* @param {string} orgId Organization ID
|
|
272
|
-
* @param {string} roleId Role ID
|
|
273
|
-
* @param {string} sessionId Signer session ID
|
|
274
|
-
* @internal
|
|
275
|
-
*/
|
|
276
|
-
static revoke(cs: CubeSigner, orgId: string, roleId: string, sessionId: string): Promise<void>;
|
|
277
298
|
}
|
|
278
299
|
export {};
|