Skip to content

Commit 51b9d31

Browse files
[AUTOMATED] Update: proto/clients/guard.gen.ts (#709)
Co-authored-by: VojtechVitek <[email protected]>
1 parent dfcffe9 commit 51b9d31

File tree

1 file changed

+48
-4
lines changed

1 file changed

+48
-4
lines changed

packages/guard/src/guard.gen.ts

+48-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/* eslint-disable */
2-
// sequence-guard v0.4.0 d6b4a3c89539b494875af543fff459df65bb7b9e
2+
// sequence-guard v0.4.0 776b307c2145ac7a994eec63240acae042c96067
33
// --
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.
55
//
66
// webrpc-gen -schema=guard.ridl -target=typescript -client -out=./clients/guard.gen.ts
77

88
export const WebrpcHeader = 'Webrpc'
99

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]'
1111

1212
// WebRPC description and code-gen version
1313
export const WebRPCVersion = 'v1'
@@ -16,7 +16,7 @@ export const WebRPCVersion = 'v1'
1616
export const WebRPCSchemaVersion = 'v0.4.0'
1717

1818
// Schema hash generated from your RIDL schema
19-
export const WebRPCSchemaHash = 'd6b4a3c89539b494875af543fff459df65bb7b9e'
19+
export const WebRPCSchemaHash = '776b307c2145ac7a994eec63240acae042c96067'
2020

2121
type WebrpcGenVersions = {
2222
webrpcGenVersion: string
@@ -124,17 +124,61 @@ export interface Guard {
124124
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>
125125
runtimeStatus(headers?: object, signal?: AbortSignal): Promise<RuntimeStatusReturn>
126126
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+
*/
127131
sign(args: SignArgs, headers?: object, signal?: AbortSignal): Promise<SignReturn>
128132
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+
*/
129138
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+
*/
130144
authMethods(args: AuthMethodsArgs, headers?: object, signal?: AbortSignal): Promise<AuthMethodsReturn>
145+
/**
146+
* Not currently called. Requires both a JWT and a wallet signature.
147+
*/
131148
setPIN(args: SetPINArgs, headers?: object, signal?: AbortSignal): Promise<SetPINReturn>
149+
/**
150+
* Not currently called. Requires both a JWT and a wallet signature.
151+
*/
132152
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+
*/
133157
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+
*/
134162
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+
*/
135167
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+
*/
136172
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+
*/
137177
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+
*/
138182
resetRecoveryCodes(args: ResetRecoveryCodesArgs, headers?: object, signal?: AbortSignal): Promise<ResetRecoveryCodesReturn>
139183
}
140184

0 commit comments

Comments
 (0)