diff --git a/intents/intent.gen.go b/intents/intent.gen.go index b4067a6..7bea09b 100644 --- a/intents/intent.gen.go +++ b/intents/intent.gen.go @@ -1,4 +1,4 @@ -// sequence-waas-intents v0.1.0 3ca8c76636d14ebddd78e3456732bc2e8fb32540 +// sequence-waas-intents v0.1.0 97c26d28120d42589f65e661f1f2bc376f3872ed // -- // Code generated by webrpc-gen@v0.15.5 with golang generator. DO NOT EDIT. // @@ -25,11 +25,11 @@ func WebRPCSchemaVersion() string { // Schema hash generated from your RIDL schema func WebRPCSchemaHash() string { - return "3ca8c76636d14ebddd78e3456732bc2e8fb32540" + return "97c26d28120d42589f65e661f1f2bc376f3872ed" } // -// Types +// Common types // type IntentName string @@ -233,9 +233,10 @@ type Signature struct { } type IntentDataOpenSession struct { - SessionID string `json:"sessionId"` - Email *string `json:"email,omitempty"` - IdToken *string `json:"idToken,omitempty"` + SessionID string `json:"sessionId"` + Email *string `json:"email,omitempty"` + IdToken *string `json:"idToken,omitempty"` + ForceCreateAccount bool `json:"forceCreateAccount,omitempty"` } type IntentDataCloseSession struct { @@ -554,6 +555,14 @@ func (e WebRPCError) WithCause(cause error) WebRPCError { return err } +func (e WebRPCError) WithCausef(format string, args ...interface{}) WebRPCError { + cause := fmt.Errorf(format, args...) + err := e + err.cause = cause + err.Cause = cause.Error() + return err +} + // Deprecated: Use .WithCause() method on WebRPCError. func ErrorWithCause(rpcErr WebRPCError, cause error) WebRPCError { return rpcErr.WithCause(cause) diff --git a/intents/intent.gen.ts b/intents/intent.gen.ts index 63ef017..43da69c 100644 --- a/intents/intent.gen.ts +++ b/intents/intent.gen.ts @@ -1,5 +1,5 @@ /* eslint-disable */ -// sequence-waas-intents v0.1.0 3ca8c76636d14ebddd78e3456732bc2e8fb32540 +// sequence-waas-intents v0.1.0 97c26d28120d42589f65e661f1f2bc376f3872ed // -- // Code generated by webrpc-gen@v0.15.5 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 = "3ca8c76636d14ebddd78e3456732bc2e8fb32540" +export const WebRPCSchemaHash = "97c26d28120d42589f65e661f1f2bc376f3872ed" // // Types @@ -92,6 +92,7 @@ export interface IntentDataOpenSession { sessionId: string email?: string idToken?: string + forceCreateAccount?: boolean } export interface IntentDataCloseSession { diff --git a/intents/intent.ridl b/intents/intent.ridl index 1c8cf1c..52dcb91 100644 --- a/intents/intent.ridl +++ b/intents/intent.ridl @@ -40,6 +40,9 @@ struct IntentDataOpenSession + go.tag.json = email,omitempty - idToken?: string + go.tag.json = idToken,omitempty + - forceCreateAccount?: bool + + go.field.type = bool + + go.tag.json = forceCreateAccount,omitempty struct IntentDataCloseSession - sessionId: string