From 847c95dc673c8a05d62138201359ef220050ecd7 Mon Sep 17 00:00:00 2001 From: Vandana Date: Fri, 5 Jun 2026 18:20:16 -0700 Subject: [PATCH] fix(bridge): add external account webhook config --- dev/apollo-federation/supergraph.graphql | 9 ++++++++- dev/config/base-config.yaml | 1 + src/graphql/public/schema.graphql | 7 ++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dev/apollo-federation/supergraph.graphql b/dev/apollo-federation/supergraph.graphql index 09c7b3662..ee20520f6 100644 --- a/dev/apollo-federation/supergraph.graphql +++ b/dev/apollo-federation/supergraph.graphql @@ -268,7 +268,7 @@ type BridgeAddExternalAccountPayload @join__type(graph: PUBLIC) { errors: [Error!]! - externalAccount: BridgeExternalAccount + externalAccount: BridgeExternalAccountLink } type BridgeCreateVirtualAccountPayload @@ -287,6 +287,13 @@ type BridgeExternalAccount status: String! } +type BridgeExternalAccountLink + @join__type(graph: PUBLIC) +{ + expiresAt: String! + linkUrl: String! +} + input BridgeInitiateKycInput @join__type(graph: PUBLIC) { diff --git a/dev/config/base-config.yaml b/dev/config/base-config.yaml index fc232cf4c..58cc23919 100644 --- a/dev/config/base-config.yaml +++ b/dev/config/base-config.yaml @@ -43,6 +43,7 @@ bridge: dwIDAQAB -----END PUBLIC KEY----- transfer: "" + external_account: "" timestampSkewMs: 300000 # See Foreign Exchange Rates: https://www.firstglobal-bank.com/ diff --git a/src/graphql/public/schema.graphql b/src/graphql/public/schema.graphql index 30c15eada..e78c343a2 100644 --- a/src/graphql/public/schema.graphql +++ b/src/graphql/public/schema.graphql @@ -243,7 +243,7 @@ input BankAccountInput { type BridgeAddExternalAccountPayload { errors: [Error!]! - externalAccount: BridgeExternalAccount + externalAccount: BridgeExternalAccountLink } type BridgeCreateVirtualAccountPayload { @@ -258,6 +258,11 @@ type BridgeExternalAccount { status: String! } +type BridgeExternalAccountLink { + expiresAt: String! + linkUrl: String! +} + input BridgeInitiateKycInput { email: String full_name: String