From ebab5fae3c7e10372198bab84c32d60d4998e860 Mon Sep 17 00:00:00 2001 From: Patryk Kalinowski Date: Fri, 24 May 2024 15:21:29 +0200 Subject: [PATCH] intents: add identityType to openSession data --- intents/intent.gen.go | 16 +++++++++------- intents/intent.gen.ts | 5 +++-- intents/intent.ridl | 2 ++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/intents/intent.gen.go b/intents/intent.gen.go index edcd40d..c029ec1 100644 --- a/intents/intent.gen.go +++ b/intents/intent.gen.go @@ -1,4 +1,4 @@ -// sequence-waas-intents v0.1.0 1c0179f8738fa82054daf1d9cefdcece592e3f63 +// sequence-waas-intents v0.1.0 9b96c8a6f18e5a6c61a33bb579db3f3f7a476271 // -- // Code generated by webrpc-gen@v0.18.7 with golang generator. DO NOT EDIT. // @@ -25,7 +25,7 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "1c0179f8738fa82054daf1d9cefdcece592e3f63" + return "9b96c8a6f18e5a6c61a33bb579db3f3f7a476271" } // @@ -245,12 +245,14 @@ type IntentDataInitiateAuth struct { } type IntentDataOpenSession struct { - SessionID string `json:"sessionId"` - Verifier string `json:"verifier,omitempty"` - Answer string `json:"answer,omitempty"` - ForceCreateAccount bool `json:"forceCreateAccount,omitempty"` + SessionID string `json:"sessionId"` + IdentityType IdentityType `json:"identityType"` + Verifier string `json:"verifier,omitempty"` + Answer string `json:"answer,omitempty"` + ForceCreateAccount bool `json:"forceCreateAccount,omitempty"` + // Deprecated + Email *string `json:"email,omitempty"` // Deprecated - Email *string `json:"email,omitempty"` IdToken *string `json:"idToken,omitempty"` } diff --git a/intents/intent.gen.ts b/intents/intent.gen.ts index 79a53f8..f3fc83e 100644 --- a/intents/intent.gen.ts +++ b/intents/intent.gen.ts @@ -1,5 +1,5 @@ /* eslint-disable */ -// sequence-waas-intents v0.1.0 1c0179f8738fa82054daf1d9cefdcece592e3f63 +// sequence-waas-intents v0.1.0 9b96c8a6f18e5a6c61a33bb579db3f3f7a476271 // -- // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT. // @@ -12,7 +12,7 @@ export const WebRPCVersion = "v1" export const WebRPCSchemaVersion = "v0.1.0" // Schema hash generated from your RIDL schema -export const WebRPCSchemaHash = "1c0179f8738fa82054daf1d9cefdcece592e3f63" +export const WebRPCSchemaHash = "9b96c8a6f18e5a6c61a33bb579db3f3f7a476271" // // Types @@ -102,6 +102,7 @@ export interface IntentDataInitiateAuth { export interface IntentDataOpenSession { sessionId: string + identityType: IdentityType verifier?: string answer?: string forceCreateAccount?: boolean diff --git a/intents/intent.ridl b/intents/intent.ridl index c52f7fa..4a8be13 100644 --- a/intents/intent.ridl +++ b/intents/intent.ridl @@ -45,6 +45,7 @@ struct IntentDataInitiateAuth struct IntentDataOpenSession - sessionId: string + go.field.name = SessionID + - identityType: IdentityType - verifier?: string + go.field.type = string + go.tag.json = verifier,omitempty @@ -57,6 +58,7 @@ struct IntentDataOpenSession # Deprecated - email?: string + go.tag.json = email,omitempty + # Deprecated - idToken?: string + go.tag.json = idToken,omitempty