1
1
/* eslint-disable */
2
- // sequence-guard v0.4.0 d6b4a3c89539b494875af543fff459df65bb7b9e
2
+ // sequence-guard v0.4.0 776b307c2145ac7a994eec63240acae042c96067
3
3
// --
4
- // Code generated by webrpc-gen@v0.24.0 with typescript generator. DO NOT EDIT.
4
+ // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
5
5
//
6
6
// webrpc-gen -schema=guard.ridl -target=typescript -client -out=./clients/guard.gen.ts
7
7
8
8
export const WebrpcHeader = 'Webrpc'
9
9
10
- export const WebrpcHeaderValue = 'webrpc@v0.24.0 ;gen-typescript@v0.16.3 ;[email protected] '
10
+ export const WebrpcHeaderValue = 'webrpc@v0.25.3 ;gen-typescript@v0.17.0 ;[email protected] '
11
11
12
12
// WebRPC description and code-gen version
13
13
export const WebRPCVersion = 'v1'
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
16
16
export const WebRPCSchemaVersion = 'v0.4.0'
17
17
18
18
// Schema hash generated from your RIDL schema
19
- export const WebRPCSchemaHash = 'd6b4a3c89539b494875af543fff459df65bb7b9e '
19
+ export const WebRPCSchemaHash = '776b307c2145ac7a994eec63240acae042c96067 '
20
20
21
21
type WebrpcGenVersions = {
22
22
webrpcGenVersion : string
@@ -124,17 +124,61 @@ export interface Guard {
124
124
version ( headers ?: object , signal ?: AbortSignal ) : Promise < VersionReturn >
125
125
runtimeStatus ( headers ?: object , signal ?: AbortSignal ) : Promise < RuntimeStatusReturn >
126
126
getSignerConfig ( args : GetSignerConfigArgs , headers ?: object , signal ?: AbortSignal ) : Promise < GetSignerConfigReturn >
127
+ /**
128
+ * Called by sequence.app when the user signs in, and signs messages/transactions/migrations.
129
+ * Requires a valid 2FA token if enabled.
130
+ */
127
131
sign ( args : SignArgs , headers ?: object , signal ?: AbortSignal ) : Promise < SignReturn >
128
132
signWith ( args : SignWithArgs , headers ?: object , signal ?: AbortSignal ) : Promise < SignWithReturn >
133
+ /**
134
+ * Internal use only.
135
+ * Only ever needs to be called once per chain.
136
+ * Signs a preconfigured payload that the caller has no control over.
137
+ */
129
138
patch ( args : PatchArgs , headers ?: object , signal ?: AbortSignal ) : Promise < PatchReturn >
139
+ /**
140
+ * Called by sequence.app when it needs to check the user's 2FA.
141
+ * This happens during sign in, before signing messages and transactions, and when configuring 2FA.
142
+ * Requires either a valid JWT or a signature by one of the wallet's signers.
143
+ */
130
144
authMethods ( args : AuthMethodsArgs , headers ?: object , signal ?: AbortSignal ) : Promise < AuthMethodsReturn >
145
+ /**
146
+ * Not currently called. Requires both a JWT and a wallet signature.
147
+ */
131
148
setPIN ( args : SetPINArgs , headers ?: object , signal ?: AbortSignal ) : Promise < SetPINReturn >
149
+ /**
150
+ * Not currently called. Requires both a JWT and a wallet signature.
151
+ */
132
152
resetPIN ( args : ResetPINArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ResetPINReturn >
153
+ /**
154
+ * Called by sequence.app when the user configures their 2FA.
155
+ * Requires both a JWT and a wallet signature.
156
+ */
133
157
createTOTP ( args : CreateTOTPArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CreateTOTPReturn >
158
+ /**
159
+ * Called by sequence.app when the user configures their 2FA.
160
+ * Requires both a JWT and a wallet signature.
161
+ */
134
162
commitTOTP ( args : CommitTOTPArgs , headers ?: object , signal ?: AbortSignal ) : Promise < CommitTOTPReturn >
163
+ /**
164
+ * Called by sequence.app when the user configures their 2FA.
165
+ * Requires both a JWT and a wallet signature.
166
+ */
135
167
resetTOTP ( args : ResetTOTPArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ResetTOTPReturn >
168
+ /**
169
+ * Called by sequence.app when the user uses a recovery code.
170
+ * Requires either a valid JWT or a signature by one of the wallet's signers.
171
+ */
136
172
reset2FA ( args : Reset2FAArgs , headers ?: object , signal ?: AbortSignal ) : Promise < Reset2FAReturn >
173
+ /**
174
+ * Called by sequence.app when the user is viewing their recovery codes.
175
+ * Requires both a JWT and a wallet signature.
176
+ */
137
177
recoveryCodes ( args : RecoveryCodesArgs , headers ?: object , signal ?: AbortSignal ) : Promise < RecoveryCodesReturn >
178
+ /**
179
+ * Called by sequence.app when the user is viewing their recovery codes.
180
+ * Requires both a JWT and a wallet signature.
181
+ */
138
182
resetRecoveryCodes ( args : ResetRecoveryCodesArgs , headers ?: object , signal ?: AbortSignal ) : Promise < ResetRecoveryCodesReturn >
139
183
}
140
184
0 commit comments