Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intents: SessionAuthProof #127

Merged
merged 10 commits into from
Mar 21, 2024
70 changes: 61 additions & 9 deletions intents/intent.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions intents/intent.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
// sequence-waas-intents v0.1.0 2c4dea0eacfd30c622628970fba756e9f4a21e61
// sequence-waas-intents v0.1.0 9906136422e734d0c8b0b06525b5875bbc7c4896
// --
// Code generated by [email protected].0-dev with typescript generator. DO NOT EDIT.
// Code generated by [email protected].5 with typescript generator. DO NOT EDIT.
//
// webrpc-gen -schema=intent.ridl -target=typescript -client -out=./intent.gen.ts

Expand All @@ -12,7 +12,7 @@ export const WebRPCVersion = "v1"
export const WebRPCSchemaVersion = "v0.1.0"

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "2c4dea0eacfd30c622628970fba756e9f4a21e61"
export const WebRPCSchemaHash = "9906136422e734d0c8b0b06525b5875bbc7c4896"

//
// Types
Expand Down Expand Up @@ -43,6 +43,7 @@ export interface IntentDataOpenSession {
sessionId: string
email?: string
idToken?: string
proofNonce?: string
}

export interface IntentDataCloseSession {
Expand Down Expand Up @@ -149,6 +150,13 @@ export interface IntentResponse {
export interface IntentResponseSessionOpened {
sessionId: string
wallet: string
proof: SessionOpenedProof
}

export interface SessionOpenedProof {
wallet: string
marino39 marked this conversation as resolved.
Show resolved Hide resolved
message: string
signature: string
}

export interface IntentResponseSessionClosed {
Expand Down
12 changes: 12 additions & 0 deletions intents/intent.ridl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ struct IntentDataOpenSession
+ go.tag.json = email,omitempty
- idToken?: string
+ go.tag.json = idToken,omitempty
# the user defined nonce that will be included in session opened proof
- proofNonce?: string
+ go.tag.json = proofNonce,omitempty

struct IntentDataCloseSession
- sessionId: string
Expand Down Expand Up @@ -154,6 +157,15 @@ struct IntentResponseSessionOpened
- sessionId: string
+ go.field.name = SessionID
- wallet: string
- proof: SessionOpenedProof

struct SessionOpenedProof
# The wallet address
- wallet: string
# The message contents: “Registered <sessionId> <wallet> <proofNonce?>”
- message: string
# The signature of the message
- signature: string

struct IntentResponseSessionClosed

Expand Down
Loading