diff --git a/intents/intent.gen.go b/intents/intent.gen.go index 6dba047e..d41c32ae 100644 --- a/intents/intent.gen.go +++ b/intents/intent.gen.go @@ -1,4 +1,4 @@ -// sequence-waas-intents v0.1.0 2ceeffac8ca0cebead69d58a1aa7a27d30ecb864 +// sequence-waas-intents v0.1.0 7378e9992f73e21a87a2091e9632962838ba106b // -- // Code generated by webrpc-gen@v0.19.3 with golang generator. DO NOT EDIT. // @@ -27,7 +27,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "2ceeffac8ca0cebead69d58a1aa7a27d30ecb864" + return "7378e9992f73e21a87a2091e9632962838ba106b" } // @@ -39,6 +39,7 @@ type IntentName string const ( IntentName_initiateAuth IntentName = "initiateAuth" IntentName_openSession IntentName = "openSession" + IntentName_openScopedSession IntentName = "openScopedSession" IntentName_closeSession IntentName = "closeSession" IntentName_validateSession IntentName = "validateSession" IntentName_finishValidateSession IntentName = "finishValidateSession" @@ -297,6 +298,13 @@ type IntentDataOpenSession struct { IdToken *string `json:"idToken,omitempty"` } +type IntentDataOpenScopedSession struct { + SessionID string `json:"sessionId"` + ScopedSessionID string `json:"scopedSessionId"` + Wallet string `json:"wallet"` + ProjectID uint64 `json:"projectId"` +} + type IntentDataCloseSession struct { SessionID string `json:"sessionId"` } diff --git a/intents/intent.ridl b/intents/intent.ridl index c0e4e31a..d8bc846a 100644 --- a/intents/intent.ridl +++ b/intents/intent.ridl @@ -20,6 +20,7 @@ struct Signature enum IntentName: string - initiateAuth - openSession + - openScopedSession - closeSession - validateSession - finishValidateSession @@ -70,6 +71,15 @@ struct IntentDataOpenSession - idToken?: string + go.tag.json = idToken,omitempty +struct IntentDataOpenScopedSession + - sessionId: string + + go.field.name = SessionID + - scopedSessionId: string + + go.field.name = ScopedSessionID + - wallet: string + - projectId: uint64 + + go.field.name = ProjectID + struct IntentDataCloseSession - sessionId: string + go.field.name = SessionID diff --git a/intents/intent_typed.go b/intents/intent_typed.go index 4455b4d8..f85d6ac7 100644 --- a/intents/intent_typed.go +++ b/intents/intent_typed.go @@ -13,6 +13,8 @@ func IntentDataTypeToName[T any](t *T) IntentName { return IntentName_initiateAuth case *IntentDataOpenSession: return IntentName_openSession + case *IntentDataOpenScopedSession: + return IntentName_openScopedSession case *IntentDataCloseSession: return IntentName_closeSession case *IntentDataValidateSession: