@@ -26,6 +26,12 @@ export type Scalars = {
2626  CentAmount : {  input : number ;  output : number ;  } 
2727  /** An alias name that a user can set for a wallet (with which they have transactions) */ 
2828  ContactAlias : {  input : string ;  output : string ;  } 
29+   /** A display name that a user can assign to a contact */ 
30+   ContactDisplayName : {  input : string ;  output : string ;  } 
31+   /** Unique handle used to identify a contact (e.g., username or lnAddress) */ 
32+   ContactHandle : {  input : string ;  output : string ;  } 
33+   /** Unique identifier of a contact */ 
34+   ContactId : {  input : string ;  output : string ;  } 
2935  /** A CCA2 country code (ex US, FR, etc) */ 
3036  CountryCode : {  input : string ;  output : string ;  } 
3137  /** Display currency of an account */ 
@@ -458,6 +464,40 @@ export type ConsumerAccountWalletByIdArgs = {
458464  walletId : Scalars [ 'WalletId' ] [ 'input' ] ; 
459465} ; 
460466
467+ export  type  Contact  =  { 
468+   readonly  __typename : 'Contact' ; 
469+   /** Unix timestamp (number of seconds elapsed since January 1, 1970 00:00:00 UTC) */ 
470+   readonly  createdAt : Scalars [ 'Timestamp' ] [ 'output' ] ; 
471+   /** DisplayName name the user assigns to the contact. */ 
472+   readonly  displayName ?: Maybe < Scalars [ 'ContactDisplayName' ] [ 'output' ] > ; 
473+   /** Username or lnAddress that identifies the contact. */ 
474+   readonly  handle : Scalars [ 'ContactHandle' ] [ 'output' ] ; 
475+   /** ID of the contact user or external handle. */ 
476+   readonly  id : Scalars [ 'ContactId' ] [ 'output' ] ; 
477+   /** Total number of transactions with this contact. */ 
478+   readonly  transactionsCount : Scalars [ 'Int' ] [ 'output' ] ; 
479+   /** Type of the contact (intraledger, lnaddress, etc.). */ 
480+   readonly  type : ContactType ; 
481+ } ; 
482+ 
483+ export  type  ContactCreateInput  =  { 
484+   readonly  displayName ?: InputMaybe < Scalars [ 'ContactAlias' ] [ 'input' ] > ; 
485+   readonly  handle ?: InputMaybe < Scalars [ 'ContactHandle' ] [ 'input' ] > ; 
486+   readonly  type : ContactType ; 
487+ } ; 
488+ 
489+ export  type  ContactPayload  =  { 
490+   readonly  __typename : 'ContactPayload' ; 
491+   readonly  contact ?: Maybe < Contact > ; 
492+   readonly  errors : ReadonlyArray < Error > ; 
493+ } ; 
494+ 
495+ export  const  ContactType  =  { 
496+   Intraledger : 'INTRALEDGER' , 
497+   Lnaddress : 'LNADDRESS' 
498+ }  as  const ; 
499+ 
500+ export  type  ContactType  =  typeof  ContactType [ keyof  typeof  ContactType ] ; 
461501export  type  Coordinates  =  { 
462502  readonly  __typename : 'Coordinates' ; 
463503  readonly  latitude : Scalars [ 'Float' ] [ 'output' ] ; 
@@ -997,6 +1037,7 @@ export type Mutation = {
9971037  readonly  callbackEndpointDelete : SuccessPayload ; 
9981038  readonly  captchaCreateChallenge : CaptchaCreateChallengePayload ; 
9991039  readonly  captchaRequestAuthCode : SuccessPayload ; 
1040+   readonly  contactCreate : ContactPayload ; 
10001041  readonly  deviceNotificationTokenCreate : SuccessPayload ; 
10011042  readonly  feedbackSubmit : SuccessPayload ; 
10021043  /** 
@@ -1170,6 +1211,11 @@ export type MutationCaptchaRequestAuthCodeArgs = {
11701211} ; 
11711212
11721213
1214+ export  type  MutationContactCreateArgs  =  { 
1215+   input : ContactCreateInput ; 
1216+ } ; 
1217+ 
1218+ 
11731219export  type  MutationDeviceNotificationTokenCreateArgs  =  { 
11741220  input : DeviceNotificationTokenCreateInput ; 
11751221} ; 
@@ -2151,11 +2197,16 @@ export type UserContact = {
21512197   * Only the user can see the alias attached to their contact. 
21522198   */ 
21532199  readonly  alias ?: Maybe < Scalars [ 'ContactAlias' ] [ 'output' ] > ; 
2154-   readonly  id : Scalars [ 'Username' ] [ 'output' ] ; 
2200+   /** Identifier of the contact (username or Lightning address). */ 
2201+   readonly  handle : Scalars [ 'ContactHandle' ] [ 'output' ] ; 
2202+   readonly  id : Scalars [ 'ContactHandle' ] [ 'output' ] ; 
21552203  /** Paginated list of transactions sent to/from this contact. */ 
21562204  readonly  transactions ?: Maybe < TransactionConnection > ; 
21572205  readonly  transactionsCount : Scalars [ 'Int' ] [ 'output' ] ; 
2158-   /** Actual identifier of the contact. */ 
2206+   /** 
2207+    * Actual identifier of the contact. Deprecated: use `handle` instead. 
2208+    * @deprecated  Use `handle` field; this will be removed in a future release. 
2209+    */ 
21592210  readonly  username : Scalars [ 'Username' ] [ 'output' ] ; 
21602211} ; 
21612212
@@ -3558,7 +3609,14 @@ export type ResolversTypes = {
35583609  CentAmount : ResolverTypeWrapper < Scalars [ 'CentAmount' ] [ 'output' ] > ; 
35593610  CentAmountPayload : ResolverTypeWrapper < Omit < CentAmountPayload ,  'errors' >  &  {  errors : ReadonlyArray < ResolversTypes [ 'Error' ] >  } > ; 
35603611  ConsumerAccount : ResolverTypeWrapper < Omit < ConsumerAccount ,  'callbackEndpoints'  |  'invoices'  |  'limits'  |  'pendingIncomingTransactions'  |  'transactions'  |  'walletById'  |  'wallets' >  &  {  callbackEndpoints : ReadonlyArray < ResolversTypes [ 'CallbackEndpoint' ] > ,  invoices ?: Maybe < ResolversTypes [ 'InvoiceConnection' ] > ,  limits : ResolversTypes [ 'AccountLimits' ] ,  pendingIncomingTransactions : ReadonlyArray < ResolversTypes [ 'Transaction' ] > ,  transactions ?: Maybe < ResolversTypes [ 'TransactionConnection' ] > ,  walletById : ResolversTypes [ 'Wallet' ] ,  wallets : ReadonlyArray < ResolversTypes [ 'Wallet' ] >  } > ; 
3612+   Contact : ResolverTypeWrapper < Contact > ; 
35613613  ContactAlias : ResolverTypeWrapper < Scalars [ 'ContactAlias' ] [ 'output' ] > ; 
3614+   ContactCreateInput : ContactCreateInput ; 
3615+   ContactDisplayName : ResolverTypeWrapper < Scalars [ 'ContactDisplayName' ] [ 'output' ] > ; 
3616+   ContactHandle : ResolverTypeWrapper < Scalars [ 'ContactHandle' ] [ 'output' ] > ; 
3617+   ContactId : ResolverTypeWrapper < Scalars [ 'ContactId' ] [ 'output' ] > ; 
3618+   ContactPayload : ResolverTypeWrapper < Omit < ContactPayload ,  'errors' >  &  {  errors : ReadonlyArray < ResolversTypes [ 'Error' ] >  } > ; 
3619+   ContactType : ContactType ; 
35623620  Coordinates : ResolverTypeWrapper < Coordinates > ; 
35633621  Float : ResolverTypeWrapper < Scalars [ 'Float' ] [ 'output' ] > ; 
35643622  Country : ResolverTypeWrapper < Country > ; 
@@ -3790,7 +3848,13 @@ export type ResolversParentTypes = {
37903848  CentAmount : Scalars [ 'CentAmount' ] [ 'output' ] ; 
37913849  CentAmountPayload : Omit < CentAmountPayload ,  'errors' >  &  {  errors : ReadonlyArray < ResolversParentTypes [ 'Error' ] >  } ; 
37923850  ConsumerAccount : Omit < ConsumerAccount ,  'callbackEndpoints'  |  'invoices'  |  'limits'  |  'pendingIncomingTransactions'  |  'transactions'  |  'walletById'  |  'wallets' >  &  {  callbackEndpoints : ReadonlyArray < ResolversParentTypes [ 'CallbackEndpoint' ] > ,  invoices ?: Maybe < ResolversParentTypes [ 'InvoiceConnection' ] > ,  limits : ResolversParentTypes [ 'AccountLimits' ] ,  pendingIncomingTransactions : ReadonlyArray < ResolversParentTypes [ 'Transaction' ] > ,  transactions ?: Maybe < ResolversParentTypes [ 'TransactionConnection' ] > ,  walletById : ResolversParentTypes [ 'Wallet' ] ,  wallets : ReadonlyArray < ResolversParentTypes [ 'Wallet' ] >  } ; 
3851+   Contact : Contact ; 
37933852  ContactAlias : Scalars [ 'ContactAlias' ] [ 'output' ] ; 
3853+   ContactCreateInput : ContactCreateInput ; 
3854+   ContactDisplayName : Scalars [ 'ContactDisplayName' ] [ 'output' ] ; 
3855+   ContactHandle : Scalars [ 'ContactHandle' ] [ 'output' ] ; 
3856+   ContactId : Scalars [ 'ContactId' ] [ 'output' ] ; 
3857+   ContactPayload : Omit < ContactPayload ,  'errors' >  &  {  errors : ReadonlyArray < ResolversParentTypes [ 'Error' ] >  } ; 
37943858  Coordinates : Coordinates ; 
37953859  Float : Scalars [ 'Float' ] [ 'output' ] ; 
37963860  Country : Country ; 
@@ -4203,10 +4267,38 @@ export type ConsumerAccountResolvers<ContextType = any, ParentType extends Resol
42034267  __isTypeOf ?: IsTypeOfResolverFn < ParentType ,  ContextType > ; 
42044268} ; 
42054269
4270+ export  type  ContactResolvers < ContextType  =  any ,  ParentType  extends  ResolversParentTypes [ 'Contact' ]  =  ResolversParentTypes [ 'Contact' ] >  =  { 
4271+   createdAt ?: Resolver < ResolversTypes [ 'Timestamp' ] ,  ParentType ,  ContextType > ; 
4272+   displayName ?: Resolver < Maybe < ResolversTypes [ 'ContactDisplayName' ] > ,  ParentType ,  ContextType > ; 
4273+   handle ?: Resolver < ResolversTypes [ 'ContactHandle' ] ,  ParentType ,  ContextType > ; 
4274+   id ?: Resolver < ResolversTypes [ 'ContactId' ] ,  ParentType ,  ContextType > ; 
4275+   transactionsCount ?: Resolver < ResolversTypes [ 'Int' ] ,  ParentType ,  ContextType > ; 
4276+   type ?: Resolver < ResolversTypes [ 'ContactType' ] ,  ParentType ,  ContextType > ; 
4277+   __isTypeOf ?: IsTypeOfResolverFn < ParentType ,  ContextType > ; 
4278+ } ; 
4279+ 
42064280export  interface  ContactAliasScalarConfig  extends  GraphQLScalarTypeConfig < ResolversTypes [ 'ContactAlias' ] ,  any >  { 
42074281  name : 'ContactAlias' ; 
42084282} 
42094283
4284+ export  interface  ContactDisplayNameScalarConfig  extends  GraphQLScalarTypeConfig < ResolversTypes [ 'ContactDisplayName' ] ,  any >  { 
4285+   name : 'ContactDisplayName' ; 
4286+ } 
4287+ 
4288+ export  interface  ContactHandleScalarConfig  extends  GraphQLScalarTypeConfig < ResolversTypes [ 'ContactHandle' ] ,  any >  { 
4289+   name : 'ContactHandle' ; 
4290+ } 
4291+ 
4292+ export  interface  ContactIdScalarConfig  extends  GraphQLScalarTypeConfig < ResolversTypes [ 'ContactId' ] ,  any >  { 
4293+   name : 'ContactId' ; 
4294+ } 
4295+ 
4296+ export  type  ContactPayloadResolvers < ContextType  =  any ,  ParentType  extends  ResolversParentTypes [ 'ContactPayload' ]  =  ResolversParentTypes [ 'ContactPayload' ] >  =  { 
4297+   contact ?: Resolver < Maybe < ResolversTypes [ 'Contact' ] > ,  ParentType ,  ContextType > ; 
4298+   errors ?: Resolver < ReadonlyArray < ResolversTypes [ 'Error' ] > ,  ParentType ,  ContextType > ; 
4299+   __isTypeOf ?: IsTypeOfResolverFn < ParentType ,  ContextType > ; 
4300+ } ; 
4301+ 
42104302export  type  CoordinatesResolvers < ContextType  =  any ,  ParentType  extends  ResolversParentTypes [ 'Coordinates' ]  =  ResolversParentTypes [ 'Coordinates' ] >  =  { 
42114303  latitude ?: Resolver < ResolversTypes [ 'Float' ] ,  ParentType ,  ContextType > ; 
42124304  longitude ?: Resolver < ResolversTypes [ 'Float' ] ,  ParentType ,  ContextType > ; 
@@ -4495,6 +4587,7 @@ export type MutationResolvers<ContextType = any, ParentType extends ResolversPar
44954587  callbackEndpointDelete ?: Resolver < ResolversTypes [ 'SuccessPayload' ] ,  ParentType ,  ContextType ,  RequireFields < MutationCallbackEndpointDeleteArgs ,  'input' > > ; 
44964588  captchaCreateChallenge ?: Resolver < ResolversTypes [ 'CaptchaCreateChallengePayload' ] ,  ParentType ,  ContextType > ; 
44974589  captchaRequestAuthCode ?: Resolver < ResolversTypes [ 'SuccessPayload' ] ,  ParentType ,  ContextType ,  RequireFields < MutationCaptchaRequestAuthCodeArgs ,  'input' > > ; 
4590+   contactCreate ?: Resolver < ResolversTypes [ 'ContactPayload' ] ,  ParentType ,  ContextType ,  RequireFields < MutationContactCreateArgs ,  'input' > > ; 
44984591  deviceNotificationTokenCreate ?: Resolver < ResolversTypes [ 'SuccessPayload' ] ,  ParentType ,  ContextType ,  RequireFields < MutationDeviceNotificationTokenCreateArgs ,  'input' > > ; 
44994592  feedbackSubmit ?: Resolver < ResolversTypes [ 'SuccessPayload' ] ,  ParentType ,  ContextType ,  RequireFields < MutationFeedbackSubmitArgs ,  'input' > > ; 
45004593  intraLedgerPaymentSend ?: Resolver < ResolversTypes [ 'PaymentSendPayload' ] ,  ParentType ,  ContextType ,  RequireFields < MutationIntraLedgerPaymentSendArgs ,  'input' > > ; 
@@ -4972,7 +5065,8 @@ export type UserResolvers<ContextType = any, ParentType extends ResolversParentT
49725065
49735066export  type  UserContactResolvers < ContextType  =  any ,  ParentType  extends  ResolversParentTypes [ 'UserContact' ]  =  ResolversParentTypes [ 'UserContact' ] >  =  { 
49745067  alias ?: Resolver < Maybe < ResolversTypes [ 'ContactAlias' ] > ,  ParentType ,  ContextType > ; 
4975-   id ?: Resolver < ResolversTypes [ 'Username' ] ,  ParentType ,  ContextType > ; 
5068+   handle ?: Resolver < ResolversTypes [ 'ContactHandle' ] ,  ParentType ,  ContextType > ; 
5069+   id ?: Resolver < ResolversTypes [ 'ContactHandle' ] ,  ParentType ,  ContextType > ; 
49765070  transactions ?: Resolver < Maybe < ResolversTypes [ 'TransactionConnection' ] > ,  ParentType ,  ContextType ,  Partial < UserContactTransactionsArgs > > ; 
49775071  transactionsCount ?: Resolver < ResolversTypes [ 'Int' ] ,  ParentType ,  ContextType > ; 
49785072  username ?: Resolver < ResolversTypes [ 'Username' ] ,  ParentType ,  ContextType > ; 
@@ -5108,7 +5202,12 @@ export type Resolvers<ContextType = any> = {
51085202  CentAmount ?: GraphQLScalarType ; 
51095203  CentAmountPayload ?: CentAmountPayloadResolvers < ContextType > ; 
51105204  ConsumerAccount ?: ConsumerAccountResolvers < ContextType > ; 
5205+   Contact ?: ContactResolvers < ContextType > ; 
51115206  ContactAlias ?: GraphQLScalarType ; 
5207+   ContactDisplayName ?: GraphQLScalarType ; 
5208+   ContactHandle ?: GraphQLScalarType ; 
5209+   ContactId ?: GraphQLScalarType ; 
5210+   ContactPayload ?: ContactPayloadResolvers < ContextType > ; 
51125211  Coordinates ?: CoordinatesResolvers < ContextType > ; 
51135212  Country ?: CountryResolvers < ContextType > ; 
51145213  CountryCode ?: GraphQLScalarType ; 
0 commit comments