diff --git a/apps/admin-panel/components/account/update.tsx b/apps/admin-panel/components/account/update.tsx index 45ca5a31c2..032a8af4e6 100644 --- a/apps/admin-panel/components/account/update.tsx +++ b/apps/admin-panel/components/account/update.tsx @@ -100,13 +100,19 @@ const AccountUpdate: React.FC = ({ auditedAccount }) => { )} - {auditedAccount.level === "TWO" && ( + {(auditedAccount.level === "TWO" || auditedAccount.level === "THREE") && ( - + diff --git a/apps/admin-panel/generated.ts b/apps/admin-panel/generated.ts index a724aba099..4fb601a7a4 100644 --- a/apps/admin-panel/generated.ts +++ b/apps/admin-panel/generated.ts @@ -67,6 +67,7 @@ export type AccountDetailPayload = { export const AccountLevel = { One: 'ONE', + Three: 'THREE', Two: 'TWO', Zero: 'ZERO' } as const; diff --git a/apps/consent/app/graphql/generated.ts b/apps/consent/app/graphql/generated.ts index c355da8406..59e2100784 100644 --- a/apps/consent/app/graphql/generated.ts +++ b/apps/consent/app/graphql/generated.ts @@ -161,6 +161,7 @@ export type AccountEnableNotificationChannelInput = { export const AccountLevel = { One: 'ONE', + Three: 'THREE', Two: 'TWO', Zero: 'ZERO' } as const; diff --git a/apps/dashboard/services/graphql/generated.ts b/apps/dashboard/services/graphql/generated.ts index 02ca735096..780f157e24 100644 --- a/apps/dashboard/services/graphql/generated.ts +++ b/apps/dashboard/services/graphql/generated.ts @@ -167,6 +167,7 @@ export type AccountEnableNotificationChannelInput = { export const AccountLevel = { One: 'ONE', + Three: 'THREE', Two: 'TWO', Zero: 'ZERO' } as const; diff --git a/apps/map/services/galoy/graphql/generated.ts b/apps/map/services/galoy/graphql/generated.ts index 383fc968a0..4350e46787 100644 --- a/apps/map/services/galoy/graphql/generated.ts +++ b/apps/map/services/galoy/graphql/generated.ts @@ -161,6 +161,7 @@ export type AccountEnableNotificationChannelInput = { export const AccountLevel = { One: 'ONE', + Three: 'THREE', Two: 'TWO', Zero: 'ZERO' } as const; diff --git a/apps/pay/lib/graphql/generated.ts b/apps/pay/lib/graphql/generated.ts index 04f69d2df2..015ee2d351 100644 --- a/apps/pay/lib/graphql/generated.ts +++ b/apps/pay/lib/graphql/generated.ts @@ -7,89 +7,91 @@ export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type MakeEmpty = { [_ in K]?: never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; const defaultOptions = {} as const; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; + ID: { input: string; output: string; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } /** An Opaque Bearer token */ - AuthToken: string; + AuthToken: { input: string; output: string; } /** (Positive) Cent amount (1/100 of a dollar) */ - CentAmount: number; + CentAmount: { input: number; output: number; } /** An alias name that a user can set for a wallet (with which they have transactions) */ - ContactAlias: string; + ContactAlias: { input: string; output: string; } /** A CCA2 country code (ex US, FR, etc) */ - CountryCode: string; + CountryCode: { input: string; output: string; } /** Display currency of an account */ - DisplayCurrency: string; + DisplayCurrency: { input: string; output: string; } /** Email address */ - EmailAddress: string; + EmailAddress: { input: string; output: string; } /** An id to be passed between registrationInitiate and registrationValidate for confirming email */ - EmailRegistrationId: string; - EndpointId: string; + EmailRegistrationId: { input: string; output: string; } + EndpointId: { input: string; output: string; } /** Url that will be fetched on events for the account */ - EndpointUrl: string; + EndpointUrl: { input: string; output: string; } /** Feedback shared with our user */ - Feedback: string; + Feedback: { input: string; output: string; } /** Hex-encoded string of 32 bytes */ - Hex32Bytes: string; - Language: string; - LnPaymentPreImage: string; + Hex32Bytes: { input: string; output: string; } + Language: { input: string; output: string; } + LnPaymentPreImage: { input: string; output: string; } /** BOLT11 lightning invoice payment request with the amount included */ - LnPaymentRequest: string; - LnPaymentSecret: string; + LnPaymentRequest: { input: string; output: string; } + LnPaymentSecret: { input: string; output: string; } /** Text field in a lightning payment transaction */ - Memo: string; + Memo: { input: string; output: string; } /** (Positive) amount of minutes */ - Minutes: string; - NotificationCategory: string; + Minutes: { input: string; output: string; } + NotificationCategory: { input: string; output: string; } /** An address for an on-chain bitcoin destination */ - OnChainAddress: string; - OnChainTxHash: string; + OnChainAddress: { input: string; output: string; } + OnChainTxHash: { input: string; output: string; } /** An authentication code valid for a single use */ - OneTimeAuthCode: string; - PaymentHash: string; + OneTimeAuthCode: { input: string; output: string; } + PaymentHash: { input: string; output: string; } /** Phone number which includes country code */ - Phone: string; + Phone: { input: string; output: string; } /** Non-fractional signed whole numeric value between -(2^53) + 1 and 2^53 - 1 */ - SafeInt: number; + SafeInt: { input: number; output: number; } /** (Positive) Satoshi amount */ - SatAmount: number; + SatAmount: { input: number; output: number; } /** (Positive) amount of seconds */ - Seconds: number; + Seconds: { input: number; output: number; } /** An amount (of a currency) that can be negative (e.g. in a transaction) */ - SignedAmount: number; + SignedAmount: { input: number; output: number; } /** A string amount (of a currency) that can be negative (e.g. in a transaction) */ - SignedDisplayMajorAmount: string; + SignedDisplayMajorAmount: { input: string; output: string; } /** Timestamp field, serialized as Unix time (the number of seconds since the Unix epoch) */ - Timestamp: number; + Timestamp: { input: number; output: number; } /** A time-based one-time password */ - TotpCode: string; + TotpCode: { input: string; output: string; } /** An id to be passed between set and verify for confirming totp */ - TotpRegistrationId: string; + TotpRegistrationId: { input: string; output: string; } /** A secret to generate time-based one-time password */ - TotpSecret: string; + TotpSecret: { input: string; output: string; } /** An external reference id that can be optionally added for transactions. */ - TxExternalId: string; + TxExternalId: { input: string; output: string; } /** Unique identifier of a user */ - Username: string; + Username: { input: string; output: string; } /** Unique identifier of a wallet */ - WalletId: string; - _FieldSet: string; + WalletId: { input: string; output: string; } + _FieldSet: { input: string; output: string; } }; export type Account = { readonly callbackEndpoints: ReadonlyArray; - readonly callbackPortalUrl: Scalars['String']; - readonly csvTransactions: Scalars['String']; + readonly callbackPortalUrl: Scalars['String']['output']; + readonly csvTransactions: Scalars['String']['output']; readonly defaultWallet: PublicWallet; /** @deprecated Shifting property to 'defaultWallet.id' */ - readonly defaultWalletId: Scalars['WalletId']; - readonly displayCurrency: Scalars['DisplayCurrency']; - readonly id: Scalars['ID']; + readonly defaultWalletId: Scalars['WalletId']['output']; + readonly displayCurrency: Scalars['DisplayCurrency']['output']; + readonly id: Scalars['ID']['output']; readonly invoices?: Maybe; readonly level: AccountLevel; readonly limits: AccountLimits; @@ -103,45 +105,45 @@ export type Account = { export type AccountCsvTransactionsArgs = { - walletIds: ReadonlyArray; + walletIds: ReadonlyArray; }; export type AccountInvoicesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - walletIds?: InputMaybe>>; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + walletIds?: InputMaybe>>; }; export type AccountPendingIncomingTransactionsArgs = { - walletIds?: InputMaybe>>; + walletIds?: InputMaybe>>; }; export type AccountTransactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - walletIds?: InputMaybe>>; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + walletIds?: InputMaybe>>; }; export type AccountWalletByIdArgs = { - walletId: Scalars['WalletId']; + walletId: Scalars['WalletId']['input']; }; export type AccountDeletePayload = { readonly __typename: 'AccountDeletePayload'; readonly errors: ReadonlyArray; - readonly success: Scalars['Boolean']; + readonly success: Scalars['Boolean']['output']; }; export type AccountDisableNotificationCategoryInput = { - readonly category: Scalars['NotificationCategory']; + readonly category: Scalars['NotificationCategory']['input']; readonly channel?: InputMaybe; }; @@ -150,7 +152,7 @@ export type AccountDisableNotificationChannelInput = { }; export type AccountEnableNotificationCategoryInput = { - readonly category: Scalars['NotificationCategory']; + readonly category: Scalars['NotificationCategory']['input']; readonly channel?: InputMaybe; }; @@ -160,6 +162,7 @@ export type AccountEnableNotificationChannelInput = { export const AccountLevel = { One: 'ONE', + Three: 'THREE', Two: 'TWO', Zero: 'ZERO' } as const; @@ -167,11 +170,11 @@ export const AccountLevel = { export type AccountLevel = typeof AccountLevel[keyof typeof AccountLevel]; export type AccountLimit = { /** The rolling time interval in seconds that the limits would apply for. */ - readonly interval?: Maybe; + readonly interval?: Maybe; /** The amount of cents remaining below the limit for the current 24 hour period. */ - readonly remainingLimit?: Maybe; + readonly remainingLimit?: Maybe; /** The current maximum limit for a given 24 hour period. */ - readonly totalLimit: Scalars['CentAmount']; + readonly totalLimit: Scalars['CentAmount']['output']; }; export type AccountLimits = { @@ -185,7 +188,7 @@ export type AccountLimits = { }; export type AccountUpdateDefaultWalletIdInput = { - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type AccountUpdateDefaultWalletIdPayload = { @@ -195,7 +198,7 @@ export type AccountUpdateDefaultWalletIdPayload = { }; export type AccountUpdateDisplayCurrencyInput = { - readonly currency: Scalars['DisplayCurrency']; + readonly currency: Scalars['DisplayCurrency']['input']; }; export type AccountUpdateDisplayCurrencyPayload = { @@ -212,9 +215,9 @@ export type AccountUpdateNotificationSettingsPayload = { export type AuthTokenPayload = { readonly __typename: 'AuthTokenPayload'; - readonly authToken?: Maybe; + readonly authToken?: Maybe; readonly errors: ReadonlyArray; - readonly totpRequired?: Maybe; + readonly totpRequired?: Maybe; }; export type Authorization = { @@ -225,15 +228,15 @@ export type Authorization = { /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWallet = Wallet & { readonly __typename: 'BTCWallet'; - readonly accountId: Scalars['ID']; + readonly accountId: Scalars['ID']['output']; /** A balance stored in BTC. */ - readonly balance: Scalars['SignedAmount']; - readonly id: Scalars['ID']; + readonly balance: Scalars['SignedAmount']['output']; + readonly id: Scalars['ID']['output']; readonly invoiceByPaymentHash: Invoice; /** A list of all invoices associated with walletIds optionally passed. */ readonly invoices?: Maybe; /** An unconfirmed incoming onchain balance. */ - readonly pendingIncomingBalance: Scalars['SignedAmount']; + readonly pendingIncomingBalance: Scalars['SignedAmount']['output']; readonly pendingIncomingTransactions: ReadonlyArray; readonly pendingIncomingTransactionsByAddress: ReadonlyArray; readonly transactionById: Transaction; @@ -248,86 +251,86 @@ export type BtcWallet = Wallet & { /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletInvoiceByPaymentHashArgs = { - paymentHash: Scalars['PaymentHash']; + paymentHash: Scalars['PaymentHash']['input']; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletInvoicesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletPendingIncomingTransactionsByAddressArgs = { - address: Scalars['OnChainAddress']; + address: Scalars['OnChainAddress']['input']; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletTransactionByIdArgs = { - transactionId: Scalars['ID']; + transactionId: Scalars['ID']['input']; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletTransactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletTransactionsByAddressArgs = { - address: Scalars['OnChainAddress']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + address: Scalars['OnChainAddress']['input']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletTransactionsByPaymentHashArgs = { - paymentHash: Scalars['PaymentHash']; + paymentHash: Scalars['PaymentHash']['input']; }; /** A wallet belonging to an account which contains a BTC balance and a list of transactions. */ export type BtcWalletTransactionsByPaymentRequestArgs = { - paymentRequest: Scalars['LnPaymentRequest']; + paymentRequest: Scalars['LnPaymentRequest']['input']; }; export type BuildInformation = { readonly __typename: 'BuildInformation'; - readonly commitHash?: Maybe; - readonly helmRevision?: Maybe; + readonly commitHash?: Maybe; + readonly helmRevision?: Maybe; }; export type CallbackEndpoint = { readonly __typename: 'CallbackEndpoint'; - readonly id: Scalars['EndpointId']; - readonly url: Scalars['EndpointUrl']; + readonly id: Scalars['EndpointId']['output']; + readonly url: Scalars['EndpointUrl']['output']; }; export type CallbackEndpointAddInput = { /** callback endpoint to be called */ - readonly url: Scalars['EndpointUrl']; + readonly url: Scalars['EndpointUrl']['input']; }; export type CallbackEndpointAddPayload = { readonly __typename: 'CallbackEndpointAddPayload'; readonly errors: ReadonlyArray; - readonly id?: Maybe; + readonly id?: Maybe; }; export type CallbackEndpointDeleteInput = { - readonly id: Scalars['EndpointId']; + readonly id: Scalars['EndpointId']['input']; }; export type CaptchaCreateChallengePayload = { @@ -338,36 +341,36 @@ export type CaptchaCreateChallengePayload = { export type CaptchaCreateChallengeResult = { readonly __typename: 'CaptchaCreateChallengeResult'; - readonly challengeCode: Scalars['String']; - readonly failbackMode: Scalars['Boolean']; - readonly id: Scalars['String']; - readonly newCaptcha: Scalars['Boolean']; + readonly challengeCode: Scalars['String']['output']; + readonly failbackMode: Scalars['Boolean']['output']; + readonly id: Scalars['String']['output']; + readonly newCaptcha: Scalars['Boolean']['output']; }; export type CaptchaRequestAuthCodeInput = { - readonly challengeCode: Scalars['String']; + readonly challengeCode: Scalars['String']['input']; readonly channel?: InputMaybe; - readonly phone: Scalars['Phone']; - readonly secCode: Scalars['String']; - readonly validationCode: Scalars['String']; + readonly phone: Scalars['Phone']['input']; + readonly secCode: Scalars['String']['input']; + readonly validationCode: Scalars['String']['input']; }; export type CentAmountPayload = { readonly __typename: 'CentAmountPayload'; - readonly amount?: Maybe; + readonly amount?: Maybe; readonly errors: ReadonlyArray; }; export type ConsumerAccount = Account & { readonly __typename: 'ConsumerAccount'; readonly callbackEndpoints: ReadonlyArray; - readonly callbackPortalUrl: Scalars['String']; + readonly callbackPortalUrl: Scalars['String']['output']; /** return CSV stream, base64 encoded, of the list of transactions in the wallet */ - readonly csvTransactions: Scalars['String']; + readonly csvTransactions: Scalars['String']['output']; readonly defaultWallet: PublicWallet; - readonly defaultWalletId: Scalars['WalletId']; - readonly displayCurrency: Scalars['DisplayCurrency']; - readonly id: Scalars['ID']; + readonly defaultWalletId: Scalars['WalletId']['output']; + readonly displayCurrency: Scalars['DisplayCurrency']['output']; + readonly id: Scalars['ID']['output']; /** A list of all invoices associated with walletIds optionally passed. */ readonly invoices?: Maybe; readonly level: AccountLevel; @@ -385,92 +388,92 @@ export type ConsumerAccount = Account & { export type ConsumerAccountCsvTransactionsArgs = { - walletIds: ReadonlyArray; + walletIds: ReadonlyArray; }; export type ConsumerAccountInvoicesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - walletIds?: InputMaybe>>; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + walletIds?: InputMaybe>>; }; export type ConsumerAccountPendingIncomingTransactionsArgs = { - walletIds?: InputMaybe>>; + walletIds?: InputMaybe>>; }; export type ConsumerAccountTransactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - walletIds?: InputMaybe>>; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + walletIds?: InputMaybe>>; }; export type ConsumerAccountWalletByIdArgs = { - walletId: Scalars['WalletId']; + walletId: Scalars['WalletId']['input']; }; export type Coordinates = { readonly __typename: 'Coordinates'; - readonly latitude: Scalars['Float']; - readonly longitude: Scalars['Float']; + readonly latitude: Scalars['Float']['output']; + readonly longitude: Scalars['Float']['output']; }; export type Country = { readonly __typename: 'Country'; - readonly id: Scalars['CountryCode']; + readonly id: Scalars['CountryCode']['output']; readonly supportedAuthChannels: ReadonlyArray; }; export type Currency = { readonly __typename: 'Currency'; - readonly flag: Scalars['String']; - readonly fractionDigits: Scalars['Int']; - readonly id: Scalars['ID']; - readonly name: Scalars['String']; - readonly symbol: Scalars['String']; + readonly flag: Scalars['String']['output']; + readonly fractionDigits: Scalars['Int']['output']; + readonly id: Scalars['ID']['output']; + readonly name: Scalars['String']['output']; + readonly symbol: Scalars['String']['output']; }; export type CurrencyConversionEstimation = { readonly __typename: 'CurrencyConversionEstimation'; /** Amount in satoshis. */ - readonly btcSatAmount: Scalars['SatAmount']; - readonly id: Scalars['ID']; + readonly btcSatAmount: Scalars['SatAmount']['output']; + readonly id: Scalars['ID']['output']; /** Unix timestamp (number of seconds elapsed since January 1, 1970 00:00:00 UTC) */ - readonly timestamp: Scalars['Timestamp']; + readonly timestamp: Scalars['Timestamp']['output']; /** Amount in USD cents. */ - readonly usdCentAmount: Scalars['CentAmount']; + readonly usdCentAmount: Scalars['CentAmount']['output']; }; export type DepositFeesInformation = { readonly __typename: 'DepositFeesInformation'; - readonly minBankFee: Scalars['String']; + readonly minBankFee: Scalars['String']['output']; /** below this amount minBankFee will be charged */ - readonly minBankFeeThreshold: Scalars['String']; + readonly minBankFeeThreshold: Scalars['String']['output']; /** ratio to charge as basis points above minBankFeeThreshold amount */ - readonly ratio: Scalars['String']; + readonly ratio: Scalars['String']['output']; }; export type DeviceNotificationTokenCreateInput = { - readonly deviceToken: Scalars['String']; + readonly deviceToken: Scalars['String']['input']; }; export type Email = { readonly __typename: 'Email'; - readonly address?: Maybe; - readonly verified?: Maybe; + readonly address?: Maybe; + readonly verified?: Maybe; }; export type Error = { - readonly code?: Maybe; - readonly message: Scalars['String']; - readonly path?: Maybe>>; + readonly code?: Maybe; + readonly message: Scalars['String']['output']; + readonly path?: Maybe>>; }; export const ExchangeCurrencyUnit = { @@ -480,7 +483,7 @@ export const ExchangeCurrencyUnit = { export type ExchangeCurrencyUnit = typeof ExchangeCurrencyUnit[keyof typeof ExchangeCurrencyUnit]; export type FeedbackSubmitInput = { - readonly feedback: Scalars['Feedback']; + readonly feedback: Scalars['Feedback']['input']; }; export type FeesInformation = { @@ -494,91 +497,91 @@ export type Globals = { readonly buildInformation: BuildInformation; readonly feesInformation: FeesInformation; /** The domain name for lightning addresses accepted by this Galoy instance */ - readonly lightningAddressDomain: Scalars['String']; - readonly lightningAddressDomainAliases: ReadonlyArray; + readonly lightningAddressDomain: Scalars['String']['output']; + readonly lightningAddressDomainAliases: ReadonlyArray; /** Which network (mainnet, testnet, regtest, signet) this instance is running on. */ readonly network: Network; /** * A list of public keys for the running lightning nodes. * This can be used to know if an invoice belongs to one of our nodes. */ - readonly nodesIds: ReadonlyArray; + readonly nodesIds: ReadonlyArray; /** A list of countries and their supported auth channels */ readonly supportedCountries: ReadonlyArray; }; export type GraphQlApplicationError = Error & { readonly __typename: 'GraphQLApplicationError'; - readonly code?: Maybe; - readonly message: Scalars['String']; - readonly path?: Maybe>>; + readonly code?: Maybe; + readonly message: Scalars['String']['output']; + readonly path?: Maybe>>; }; export type InitiationVia = InitiationViaIntraLedger | InitiationViaLn | InitiationViaOnChain; export type InitiationViaIntraLedger = { readonly __typename: 'InitiationViaIntraLedger'; - readonly counterPartyUsername?: Maybe; - readonly counterPartyWalletId?: Maybe; + readonly counterPartyUsername?: Maybe; + readonly counterPartyWalletId?: Maybe; }; export type InitiationViaLn = { readonly __typename: 'InitiationViaLn'; - readonly paymentHash: Scalars['PaymentHash']; + readonly paymentHash: Scalars['PaymentHash']['output']; /** Bolt11 invoice */ - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['output']; }; export type InitiationViaOnChain = { readonly __typename: 'InitiationViaOnChain'; - readonly address: Scalars['OnChainAddress']; + readonly address: Scalars['OnChainAddress']['output']; }; export type IntraLedgerPaymentSendInput = { /** Amount in satoshis. */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['input']; /** Optional memo to be attached to the payment. */ - readonly memo?: InputMaybe; - readonly recipientWalletId: Scalars['WalletId']; + readonly memo?: InputMaybe; + readonly recipientWalletId: Scalars['WalletId']['input']; /** The wallet ID of the sender. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type IntraLedgerUpdate = { readonly __typename: 'IntraLedgerUpdate'; /** @deprecated Deprecated in favor of transaction */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['output']; /** @deprecated Deprecated in favor of transaction */ - readonly displayCurrencyPerSat: Scalars['Float']; + readonly displayCurrencyPerSat: Scalars['Float']['output']; readonly transaction: Transaction; readonly txNotificationType: TxNotificationType; /** @deprecated updated over displayCurrencyPerSat */ - readonly usdPerSat: Scalars['Float']; + readonly usdPerSat: Scalars['Float']['output']; /** @deprecated Deprecated in favor of transaction */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['output']; }; export type IntraLedgerUsdPaymentSendInput = { /** Amount in cents. */ - readonly amount: Scalars['CentAmount']; + readonly amount: Scalars['CentAmount']['input']; /** Optional memo to be attached to the payment. */ - readonly memo?: InputMaybe; - readonly recipientWalletId: Scalars['WalletId']; + readonly memo?: InputMaybe; + readonly recipientWalletId: Scalars['WalletId']['input']; /** The wallet ID of the sender. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; /** A lightning invoice. */ export type Invoice = { - readonly createdAt: Scalars['Timestamp']; + readonly createdAt: Scalars['Timestamp']['output']; /** The unique external id set for the invoice. */ - readonly externalId: Scalars['TxExternalId']; + readonly externalId: Scalars['TxExternalId']['output']; /** The payment hash of the lightning invoice. */ - readonly paymentHash: Scalars['PaymentHash']; + readonly paymentHash: Scalars['PaymentHash']['output']; /** The bolt11 invoice to be paid. */ - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['output']; /** The payment secret of the lightning invoice. This is not the preimage of the payment hash. */ - readonly paymentSecret: Scalars['LnPaymentSecret']; + readonly paymentSecret: Scalars['LnPaymentSecret']['output']; /** The payment status of the invoice. */ readonly paymentStatus: InvoicePaymentStatus; }; @@ -596,7 +599,7 @@ export type InvoiceConnection = { export type InvoiceEdge = { readonly __typename: 'InvoiceEdge'; /** A cursor for use in pagination */ - readonly cursor: Scalars['String']; + readonly cursor: Scalars['String']['output']; /** The item at the end of the edge */ readonly node: Invoice; }; @@ -610,58 +613,58 @@ export const InvoicePaymentStatus = { export type InvoicePaymentStatus = typeof InvoicePaymentStatus[keyof typeof InvoicePaymentStatus]; export type LnAddressPaymentSendInput = { /** Amount in satoshis. */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['input']; /** Lightning address to send to. */ - readonly lnAddress: Scalars['String']; + readonly lnAddress: Scalars['String']['input']; /** Wallet ID to send bitcoin from. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnInvoice = Invoice & { readonly __typename: 'LnInvoice'; - readonly createdAt: Scalars['Timestamp']; - readonly externalId: Scalars['TxExternalId']; - readonly paymentHash: Scalars['PaymentHash']; - readonly paymentRequest: Scalars['LnPaymentRequest']; - readonly paymentSecret: Scalars['LnPaymentSecret']; + readonly createdAt: Scalars['Timestamp']['output']; + readonly externalId: Scalars['TxExternalId']['output']; + readonly paymentHash: Scalars['PaymentHash']['output']; + readonly paymentRequest: Scalars['LnPaymentRequest']['output']; + readonly paymentSecret: Scalars['LnPaymentSecret']['output']; readonly paymentStatus: InvoicePaymentStatus; - readonly satoshis: Scalars['SatAmount']; + readonly satoshis: Scalars['SatAmount']['output']; }; export type LnInvoiceCancelInput = { - readonly paymentHash: Scalars['PaymentHash']; + readonly paymentHash: Scalars['PaymentHash']['input']; /** Wallet ID for a wallet associated with the current account. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnInvoiceCreateInput = { /** Amount in satoshis. */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['input']; /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Wallet ID for a BTC wallet belonging to the current account. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnInvoiceCreateOnBehalfOfRecipientInput = { /** Amount in satoshis. */ - readonly amount: Scalars['SatAmount']; - readonly descriptionHash?: InputMaybe; + readonly amount: Scalars['SatAmount']['input']; + readonly descriptionHash?: InputMaybe; /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Wallet ID for a BTC wallet which belongs to any account. */ - readonly recipientWalletId: Scalars['WalletId']; + readonly recipientWalletId: Scalars['WalletId']['input']; }; export type LnInvoiceFeeProbeInput = { - readonly paymentRequest: Scalars['LnPaymentRequest']; - readonly walletId: Scalars['WalletId']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnInvoicePayload = { @@ -672,74 +675,74 @@ export type LnInvoicePayload = { export type LnInvoicePaymentInput = { /** Optional memo to associate with the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Payment request representing the invoice which is being paid. */ - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; /** Wallet ID with sufficient balance to cover amount of invoice. Must belong to the account of the current user. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnInvoicePaymentStatus = { readonly __typename: 'LnInvoicePaymentStatus'; - readonly paymentHash?: Maybe; - readonly paymentRequest?: Maybe; + readonly paymentHash?: Maybe; + readonly paymentRequest?: Maybe; readonly status?: Maybe; }; export type LnInvoicePaymentStatusByHashInput = { - readonly paymentHash: Scalars['PaymentHash']; + readonly paymentHash: Scalars['PaymentHash']['input']; }; export type LnInvoicePaymentStatusByPaymentRequestInput = { - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; }; export type LnInvoicePaymentStatusInput = { - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; }; export type LnInvoicePaymentStatusPayload = { readonly __typename: 'LnInvoicePaymentStatusPayload'; readonly errors: ReadonlyArray; - readonly paymentHash?: Maybe; - readonly paymentRequest?: Maybe; + readonly paymentHash?: Maybe; + readonly paymentRequest?: Maybe; readonly status?: Maybe; }; export type LnNoAmountInvoice = Invoice & { readonly __typename: 'LnNoAmountInvoice'; - readonly createdAt: Scalars['Timestamp']; - readonly externalId: Scalars['TxExternalId']; - readonly paymentHash: Scalars['PaymentHash']; - readonly paymentRequest: Scalars['LnPaymentRequest']; - readonly paymentSecret: Scalars['LnPaymentSecret']; + readonly createdAt: Scalars['Timestamp']['output']; + readonly externalId: Scalars['TxExternalId']['output']; + readonly paymentHash: Scalars['PaymentHash']['output']; + readonly paymentRequest: Scalars['LnPaymentRequest']['output']; + readonly paymentSecret: Scalars['LnPaymentSecret']['output']; readonly paymentStatus: InvoicePaymentStatus; }; export type LnNoAmountInvoiceCreateInput = { /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** ID for either a USD or BTC wallet belonging to the account of the current user. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnNoAmountInvoiceCreateOnBehalfOfRecipientInput = { /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** ID for either a USD or BTC wallet which belongs to the account of any user. */ - readonly recipientWalletId: Scalars['WalletId']; + readonly recipientWalletId: Scalars['WalletId']['input']; }; export type LnNoAmountInvoiceFeeProbeInput = { - readonly amount: Scalars['SatAmount']; - readonly paymentRequest: Scalars['LnPaymentRequest']; - readonly walletId: Scalars['WalletId']; + readonly amount: Scalars['SatAmount']['input']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnNoAmountInvoicePayload = { @@ -750,124 +753,124 @@ export type LnNoAmountInvoicePayload = { export type LnNoAmountInvoicePaymentInput = { /** Amount to pay in satoshis. */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['input']; /** Optional memo to associate with the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Payment request representing the invoice which is being paid. */ - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; /** Wallet ID with sufficient balance to cover amount defined in mutation request. Must belong to the account of the current user. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnNoAmountUsdInvoiceFeeProbeInput = { - readonly amount: Scalars['CentAmount']; - readonly paymentRequest: Scalars['LnPaymentRequest']; - readonly walletId: Scalars['WalletId']; + readonly amount: Scalars['CentAmount']['input']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnNoAmountUsdInvoicePaymentInput = { /** Amount to pay in USD cents. */ - readonly amount: Scalars['CentAmount']; + readonly amount: Scalars['CentAmount']['input']; /** Optional memo to associate with the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Payment request representing the invoice which is being paid. */ - readonly paymentRequest: Scalars['LnPaymentRequest']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; /** Wallet ID with sufficient balance to cover amount defined in mutation request. Must belong to the account of the current user. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnUpdate = { readonly __typename: 'LnUpdate'; /** @deprecated Deprecated in favor of transaction */ - readonly paymentHash: Scalars['PaymentHash']; + readonly paymentHash: Scalars['PaymentHash']['output']; readonly status: InvoicePaymentStatus; readonly transaction: Transaction; /** @deprecated Deprecated in favor of transaction */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['output']; }; export type LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput = { /** Amount in satoshis. */ - readonly amount: Scalars['SatAmount']; - readonly descriptionHash?: InputMaybe; + readonly amount: Scalars['SatAmount']['input']; + readonly descriptionHash?: InputMaybe; /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. Acts as a note to the recipient. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Wallet ID for a USD wallet which belongs to the account of any user. */ - readonly recipientWalletId: Scalars['WalletId']; + readonly recipientWalletId: Scalars['WalletId']['input']; }; export type LnUsdInvoiceCreateInput = { /** Amount in USD cents. */ - readonly amount: Scalars['CentAmount']; + readonly amount: Scalars['CentAmount']['input']; /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Wallet ID for a USD wallet belonging to the current user. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnUsdInvoiceCreateOnBehalfOfRecipientInput = { /** Amount in USD cents. */ - readonly amount: Scalars['CentAmount']; - readonly descriptionHash?: InputMaybe; + readonly amount: Scalars['CentAmount']['input']; + readonly descriptionHash?: InputMaybe; /** Optional invoice expiration time in minutes. */ - readonly expiresIn?: InputMaybe; - readonly externalId?: InputMaybe; + readonly expiresIn?: InputMaybe; + readonly externalId?: InputMaybe; /** Optional memo for the lightning invoice. Acts as a note to the recipient. */ - readonly memo?: InputMaybe; + readonly memo?: InputMaybe; /** Wallet ID for a USD wallet which belongs to the account of any user. */ - readonly recipientWalletId: Scalars['WalletId']; + readonly recipientWalletId: Scalars['WalletId']['input']; }; export type LnUsdInvoiceFeeProbeInput = { - readonly paymentRequest: Scalars['LnPaymentRequest']; - readonly walletId: Scalars['WalletId']; + readonly paymentRequest: Scalars['LnPaymentRequest']['input']; + readonly walletId: Scalars['WalletId']['input']; }; export type LnurlPaymentSendInput = { /** Amount in satoshis. */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['input']; /** Lnurl string to send to. */ - readonly lnurl: Scalars['String']; + readonly lnurl: Scalars['String']['input']; /** Wallet ID to send bitcoin from. */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type MapInfo = { readonly __typename: 'MapInfo'; readonly coordinates: Coordinates; - readonly title: Scalars['String']; + readonly title: Scalars['String']['output']; }; export type MapMarker = { readonly __typename: 'MapMarker'; readonly mapInfo: MapInfo; - readonly username: Scalars['Username']; + readonly username: Scalars['Username']['output']; }; export type Merchant = { readonly __typename: 'Merchant'; /** GPS coordinates for the merchant that can be used to place the related business on a map */ readonly coordinates: Coordinates; - readonly createdAt: Scalars['Timestamp']; - readonly id: Scalars['ID']; - readonly title: Scalars['String']; + readonly createdAt: Scalars['Timestamp']['output']; + readonly id: Scalars['ID']['output']; + readonly title: Scalars['String']['output']; /** The username of the merchant */ - readonly username: Scalars['Username']; + readonly username: Scalars['Username']['output']; /** Whether the merchant has been validated */ - readonly validated: Scalars['Boolean']; + readonly validated: Scalars['Boolean']['output']; }; export type MerchantMapSuggestInput = { - readonly latitude: Scalars['Float']; - readonly longitude: Scalars['Float']; - readonly title: Scalars['String']; - readonly username: Scalars['Username']; + readonly latitude: Scalars['Float']['input']; + readonly longitude: Scalars['Float']['input']; + readonly title: Scalars['String']['input']; + readonly username: Scalars['Username']['input']; }; export type MerchantPayload = { @@ -878,9 +881,9 @@ export type MerchantPayload = { export type MobileVersions = { readonly __typename: 'MobileVersions'; - readonly currentSupported: Scalars['Int']; - readonly minSupported: Scalars['Int']; - readonly platform: Scalars['String']; + readonly currentSupported: Scalars['Int']['output']; + readonly minSupported: Scalars['Int']['output']; + readonly platform: Scalars['String']['output']; }; export type Mutation = { @@ -1284,8 +1287,8 @@ export const NotificationChannel = { export type NotificationChannel = typeof NotificationChannel[keyof typeof NotificationChannel]; export type NotificationChannelSettings = { readonly __typename: 'NotificationChannelSettings'; - readonly disabledCategories: ReadonlyArray; - readonly enabled: Scalars['Boolean']; + readonly disabledCategories: ReadonlyArray; + readonly enabled: Scalars['Boolean']['output']; }; export type NotificationSettings = { @@ -1294,97 +1297,97 @@ export type NotificationSettings = { }; export type OnChainAddressCreateInput = { - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type OnChainAddressCurrentInput = { - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type OnChainAddressPayload = { readonly __typename: 'OnChainAddressPayload'; - readonly address?: Maybe; + readonly address?: Maybe; readonly errors: ReadonlyArray; }; export type OnChainPaymentSendAllInput = { - readonly address: Scalars['OnChainAddress']; - readonly memo?: InputMaybe; + readonly address: Scalars['OnChainAddress']['input']; + readonly memo?: InputMaybe; readonly speed?: PayoutSpeed; - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type OnChainPaymentSendInput = { - readonly address: Scalars['OnChainAddress']; - readonly amount: Scalars['SatAmount']; - readonly memo?: InputMaybe; + readonly address: Scalars['OnChainAddress']['input']; + readonly amount: Scalars['SatAmount']['input']; + readonly memo?: InputMaybe; readonly speed?: PayoutSpeed; - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type OnChainTxFee = { readonly __typename: 'OnChainTxFee'; - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['output']; }; export type OnChainUpdate = { readonly __typename: 'OnChainUpdate'; /** @deprecated Deprecated in favor of transaction */ - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['output']; /** @deprecated Deprecated in favor of transaction */ - readonly displayCurrencyPerSat: Scalars['Float']; + readonly displayCurrencyPerSat: Scalars['Float']['output']; readonly transaction: Transaction; /** @deprecated Deprecated in favor of transaction */ - readonly txHash: Scalars['OnChainTxHash']; + readonly txHash: Scalars['OnChainTxHash']['output']; readonly txNotificationType: TxNotificationType; /** @deprecated updated over displayCurrencyPerSat */ - readonly usdPerSat: Scalars['Float']; + readonly usdPerSat: Scalars['Float']['output']; /** @deprecated Deprecated in favor of transaction */ - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['output']; }; export type OnChainUsdPaymentSendAsBtcDenominatedInput = { - readonly address: Scalars['OnChainAddress']; - readonly amount: Scalars['SatAmount']; - readonly memo?: InputMaybe; + readonly address: Scalars['OnChainAddress']['input']; + readonly amount: Scalars['SatAmount']['input']; + readonly memo?: InputMaybe; readonly speed?: PayoutSpeed; - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type OnChainUsdPaymentSendInput = { - readonly address: Scalars['OnChainAddress']; - readonly amount: Scalars['CentAmount']; - readonly memo?: InputMaybe; + readonly address: Scalars['OnChainAddress']['input']; + readonly amount: Scalars['CentAmount']['input']; + readonly memo?: InputMaybe; readonly speed?: PayoutSpeed; - readonly walletId: Scalars['WalletId']; + readonly walletId: Scalars['WalletId']['input']; }; export type OnChainUsdTxFee = { readonly __typename: 'OnChainUsdTxFee'; - readonly amount: Scalars['CentAmount']; + readonly amount: Scalars['CentAmount']['output']; }; export type OneDayAccountLimit = AccountLimit & { readonly __typename: 'OneDayAccountLimit'; /** The rolling time interval value in seconds for the current 24 hour period. */ - readonly interval?: Maybe; + readonly interval?: Maybe; /** The amount of cents remaining below the limit for the current 24 hour period. */ - readonly remainingLimit?: Maybe; + readonly remainingLimit?: Maybe; /** The current maximum limit for a given 24 hour period. */ - readonly totalLimit: Scalars['CentAmount']; + readonly totalLimit: Scalars['CentAmount']['output']; }; /** Information about pagination in a connection. */ export type PageInfo = { readonly __typename: 'PageInfo'; /** When paginating forwards, the cursor to continue. */ - readonly endCursor?: Maybe; + readonly endCursor?: Maybe; /** When paginating forwards, are there more items? */ - readonly hasNextPage: Scalars['Boolean']; + readonly hasNextPage: Scalars['Boolean']['output']; /** When paginating backwards, are there more items? */ - readonly hasPreviousPage: Scalars['Boolean']; + readonly hasPreviousPage: Scalars['Boolean']['output']; /** When paginating backwards, the cursor to continue. */ - readonly startCursor?: Maybe; + readonly startCursor?: Maybe; }; export type PaymentSendPayload = { @@ -1416,10 +1419,10 @@ export type PhoneCodeChannelType = typeof PhoneCodeChannelType[keyof typeof Phon /** Price amount expressed in base/offset. To calculate, use: `base / 10^offset` */ export type Price = { readonly __typename: 'Price'; - readonly base: Scalars['SafeInt']; - readonly currencyUnit: Scalars['String']; - readonly formattedAmount: Scalars['String']; - readonly offset: Scalars['Int']; + readonly base: Scalars['SafeInt']['output']; + readonly currencyUnit: Scalars['String']['output']; + readonly formattedAmount: Scalars['String']['output']; + readonly offset: Scalars['Int']['output']; }; /** The range for the X axis in the BTC price graph */ @@ -1433,45 +1436,45 @@ export const PriceGraphRange = { export type PriceGraphRange = typeof PriceGraphRange[keyof typeof PriceGraphRange]; export type PriceInput = { - readonly amount: Scalars['SatAmount']; + readonly amount: Scalars['SatAmount']['input']; readonly amountCurrencyUnit: ExchangeCurrencyUnit; readonly priceCurrencyUnit: ExchangeCurrencyUnit; }; export type PriceInterface = { - readonly base: Scalars['SafeInt']; + readonly base: Scalars['SafeInt']['output']; /** @deprecated Deprecated due to type renaming */ - readonly currencyUnit: Scalars['String']; - readonly offset: Scalars['Int']; + readonly currencyUnit: Scalars['String']['output']; + readonly offset: Scalars['Int']['output']; }; /** Price of 1 sat in base/offset. To calculate, use: `base / 10^offset` */ export type PriceOfOneSatInMinorUnit = PriceInterface & { readonly __typename: 'PriceOfOneSatInMinorUnit'; - readonly base: Scalars['SafeInt']; + readonly base: Scalars['SafeInt']['output']; /** @deprecated Deprecated due to type renaming */ - readonly currencyUnit: Scalars['String']; - readonly offset: Scalars['Int']; + readonly currencyUnit: Scalars['String']['output']; + readonly offset: Scalars['Int']['output']; }; /** Price of 1 sat or 1 usd cent in base/offset. To calculate, use: `base / 10^offset` */ export type PriceOfOneSettlementMinorUnitInDisplayMinorUnit = PriceInterface & { readonly __typename: 'PriceOfOneSettlementMinorUnitInDisplayMinorUnit'; - readonly base: Scalars['SafeInt']; + readonly base: Scalars['SafeInt']['output']; /** @deprecated Deprecated due to type renaming */ - readonly currencyUnit: Scalars['String']; + readonly currencyUnit: Scalars['String']['output']; /** @deprecated Deprecated please use `base / 10^offset` */ - readonly formattedAmount: Scalars['String']; - readonly offset: Scalars['Int']; + readonly formattedAmount: Scalars['String']['output']; + readonly offset: Scalars['Int']['output']; }; /** Price of 1 usd cent in base/offset. To calculate, use: `base / 10^offset` */ export type PriceOfOneUsdCentInMinorUnit = PriceInterface & { readonly __typename: 'PriceOfOneUsdCentInMinorUnit'; - readonly base: Scalars['SafeInt']; + readonly base: Scalars['SafeInt']['output']; /** @deprecated Deprecated due to type renaming */ - readonly currencyUnit: Scalars['String']; - readonly offset: Scalars['Int']; + readonly currencyUnit: Scalars['String']['output']; + readonly offset: Scalars['Int']['output']; }; export type PricePayload = { @@ -1484,14 +1487,14 @@ export type PricePoint = { readonly __typename: 'PricePoint'; readonly price: Price; /** Unix timestamp (number of seconds elapsed since January 1, 1970 00:00:00 UTC) */ - readonly timestamp: Scalars['Timestamp']; + readonly timestamp: Scalars['Timestamp']['output']; }; /** A public view of a generic wallet which stores value in one of our supported currencies. */ export type PublicWallet = { readonly __typename: 'PublicWallet'; readonly currency: WalletCurrency; - readonly id: Scalars['ID']; + readonly id: Scalars['ID']['output']; /** @deprecated Shifting property to 'currency' */ readonly walletCurrency: WalletCurrency; }; @@ -1519,13 +1522,13 @@ export type Query = { /** Returns 1 Sat and 1 Usd Cent price for the given currency in minor unit */ readonly realtimePrice: RealtimePrice; /** @deprecated will be migrated to AccountDefaultWalletId */ - readonly userDefaultWalletId: Scalars['WalletId']; - readonly usernameAvailable?: Maybe; + readonly userDefaultWalletId: Scalars['WalletId']['output']; + readonly usernameAvailable?: Maybe; }; export type QueryAccountDefaultWalletArgs = { - username: Scalars['Username']; + username: Scalars['Username']['input']; walletCurrency?: InputMaybe; }; @@ -1536,8 +1539,8 @@ export type QueryBtcPriceListArgs = { export type QueryCurrencyConversionEstimationArgs = { - amount: Scalars['Float']; - currency: Scalars['DisplayCurrency']; + amount: Scalars['Float']['input']; + currency: Scalars['DisplayCurrency']['input']; }; @@ -1557,54 +1560,54 @@ export type QueryLnInvoicePaymentStatusByPaymentRequestArgs = { export type QueryOnChainTxFeeArgs = { - address: Scalars['OnChainAddress']; - amount: Scalars['SatAmount']; + address: Scalars['OnChainAddress']['input']; + amount: Scalars['SatAmount']['input']; speed?: PayoutSpeed; - walletId: Scalars['WalletId']; + walletId: Scalars['WalletId']['input']; }; export type QueryOnChainUsdTxFeeArgs = { - address: Scalars['OnChainAddress']; - amount: Scalars['CentAmount']; + address: Scalars['OnChainAddress']['input']; + amount: Scalars['CentAmount']['input']; speed?: PayoutSpeed; - walletId: Scalars['WalletId']; + walletId: Scalars['WalletId']['input']; }; export type QueryOnChainUsdTxFeeAsBtcDenominatedArgs = { - address: Scalars['OnChainAddress']; - amount: Scalars['SatAmount']; + address: Scalars['OnChainAddress']['input']; + amount: Scalars['SatAmount']['input']; speed?: PayoutSpeed; - walletId: Scalars['WalletId']; + walletId: Scalars['WalletId']['input']; }; export type QueryRealtimePriceArgs = { - currency?: InputMaybe; + currency?: InputMaybe; }; export type QueryUserDefaultWalletIdArgs = { - username: Scalars['Username']; + username: Scalars['Username']['input']; }; export type QueryUsernameAvailableArgs = { - username: Scalars['Username']; + username: Scalars['Username']['input']; }; export type Quiz = { readonly __typename: 'Quiz'; /** The reward in Satoshis for the quiz question */ - readonly amount: Scalars['SatAmount']; - readonly completed: Scalars['Boolean']; - readonly id: Scalars['ID']; - readonly notBefore?: Maybe; + readonly amount: Scalars['SatAmount']['output']; + readonly completed: Scalars['Boolean']['output']; + readonly id: Scalars['ID']['output']; + readonly notBefore?: Maybe; }; export type QuizClaimInput = { - readonly id: Scalars['ID']; + readonly id: Scalars['ID']['input']; }; export type QuizClaimPayload = { @@ -1617,16 +1620,16 @@ export type RealtimePrice = { readonly __typename: 'RealtimePrice'; readonly btcSatPrice: PriceOfOneSatInMinorUnit; /** @deprecated Deprecated in favor of denominatorCurrencyDetails */ - readonly denominatorCurrency: Scalars['DisplayCurrency']; + readonly denominatorCurrency: Scalars['DisplayCurrency']['output']; readonly denominatorCurrencyDetails: Currency; - readonly id: Scalars['ID']; + readonly id: Scalars['ID']['output']; /** Unix timestamp (number of seconds elapsed since January 1, 1970 00:00:00 UTC) */ - readonly timestamp: Scalars['Timestamp']; + readonly timestamp: Scalars['Timestamp']['output']; readonly usdCentPrice: PriceOfOneUsdCentInMinorUnit; }; export type RealtimePriceInput = { - readonly currency?: InputMaybe; + readonly currency?: InputMaybe; }; export type RealtimePricePayload = { @@ -1637,7 +1640,7 @@ export type RealtimePricePayload = { export type SatAmountPayload = { readonly __typename: 'SatAmountPayload'; - readonly amount?: Maybe; + readonly amount?: Maybe; readonly errors: ReadonlyArray; }; @@ -1653,23 +1656,23 @@ export type SettlementVia = SettlementViaIntraLedger | SettlementViaLn | Settlem export type SettlementViaIntraLedger = { readonly __typename: 'SettlementViaIntraLedger'; /** Settlement destination: Could be null if the payee does not have a username */ - readonly counterPartyUsername?: Maybe; - readonly counterPartyWalletId?: Maybe; - readonly preImage?: Maybe; + readonly counterPartyUsername?: Maybe; + readonly counterPartyWalletId?: Maybe; + readonly preImage?: Maybe; }; export type SettlementViaLn = { readonly __typename: 'SettlementViaLn'; /** @deprecated Shifting property to 'preImage' to improve granularity of the LnPaymentSecret type */ - readonly paymentSecret?: Maybe; - readonly preImage?: Maybe; + readonly paymentSecret?: Maybe; + readonly preImage?: Maybe; }; export type SettlementViaOnChain = { readonly __typename: 'SettlementViaOnChain'; - readonly arrivalInMempoolEstimatedAt?: Maybe; - readonly transactionHash?: Maybe; - readonly vout?: Maybe; + readonly arrivalInMempoolEstimatedAt?: Maybe; + readonly transactionHash?: Maybe; + readonly vout?: Maybe; }; export type Subscription = { @@ -1712,11 +1715,11 @@ export type SubscriptionRealtimePriceArgs = { export type SuccessPayload = { readonly __typename: 'SuccessPayload'; readonly errors: ReadonlyArray; - readonly success?: Maybe; + readonly success?: Maybe; }; export type SupportChatMessageAddInput = { - readonly message: Scalars['String']; + readonly message: Scalars['String']['input']; }; export type SupportChatMessageAddPayload = { @@ -1727,10 +1730,10 @@ export type SupportChatMessageAddPayload = { export type SupportMessage = { readonly __typename: 'SupportMessage'; - readonly id: Scalars['ID']; - readonly message: Scalars['String']; + readonly id: Scalars['ID']['output']; + readonly message: Scalars['String']['output']; readonly role: SupportRole; - readonly timestamp: Scalars['Timestamp']; + readonly timestamp: Scalars['Timestamp']['output']; }; export const SupportRole = { @@ -1748,21 +1751,21 @@ export type SupportRole = typeof SupportRole[keyof typeof SupportRole]; */ export type Transaction = { readonly __typename: 'Transaction'; - readonly createdAt: Scalars['Timestamp']; + readonly createdAt: Scalars['Timestamp']['output']; readonly direction: TxDirection; - readonly externalId?: Maybe; - readonly id: Scalars['ID']; + readonly externalId?: Maybe; + readonly id: Scalars['ID']['output']; /** From which protocol the payment has been initiated. */ readonly initiationVia: InitiationVia; - readonly memo?: Maybe; + readonly memo?: Maybe; /** Amount of the settlement currency sent or received. */ - readonly settlementAmount: Scalars['SignedAmount']; + readonly settlementAmount: Scalars['SignedAmount']['output']; /** Wallet currency for transaction. */ readonly settlementCurrency: WalletCurrency; - readonly settlementDisplayAmount: Scalars['SignedDisplayMajorAmount']; - readonly settlementDisplayCurrency: Scalars['DisplayCurrency']; - readonly settlementDisplayFee: Scalars['SignedDisplayMajorAmount']; - readonly settlementFee: Scalars['SignedAmount']; + readonly settlementDisplayAmount: Scalars['SignedDisplayMajorAmount']['output']; + readonly settlementDisplayCurrency: Scalars['DisplayCurrency']['output']; + readonly settlementDisplayFee: Scalars['SignedDisplayMajorAmount']['output']; + readonly settlementFee: Scalars['SignedAmount']['output']; /** Price in WALLETCURRENCY/SETTLEMENTUNIT at time of settlement. */ readonly settlementPrice: PriceOfOneSettlementMinorUnitInDisplayMinorUnit; /** To which protocol the payment has settled on. */ @@ -1783,7 +1786,7 @@ export type TransactionConnection = { export type TransactionEdge = { readonly __typename: 'TransactionEdge'; /** A cursor for use in pagination */ - readonly cursor: Scalars['String']; + readonly cursor: Scalars['String']['output']; /** The item at the end of the edge */ readonly node: Transaction; }; @@ -1813,22 +1816,22 @@ export const TxStatus = { export type TxStatus = typeof TxStatus[keyof typeof TxStatus]; export type UpgradePayload = { readonly __typename: 'UpgradePayload'; - readonly authToken?: Maybe; + readonly authToken?: Maybe; readonly errors: ReadonlyArray; - readonly success: Scalars['Boolean']; + readonly success: Scalars['Boolean']['output']; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWallet = Wallet & { readonly __typename: 'UsdWallet'; - readonly accountId: Scalars['ID']; - readonly balance: Scalars['SignedAmount']; - readonly id: Scalars['ID']; + readonly accountId: Scalars['ID']['output']; + readonly balance: Scalars['SignedAmount']['output']; + readonly id: Scalars['ID']['output']; readonly invoiceByPaymentHash: Invoice; /** A list of all invoices associated with walletIds optionally passed. */ readonly invoices?: Maybe; /** An unconfirmed incoming onchain balance. */ - readonly pendingIncomingBalance: Scalars['SignedAmount']; + readonly pendingIncomingBalance: Scalars['SignedAmount']['output']; readonly pendingIncomingTransactions: ReadonlyArray; readonly pendingIncomingTransactionsByAddress: ReadonlyArray; readonly transactionById: Transaction; @@ -1842,59 +1845,59 @@ export type UsdWallet = Wallet & { /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletInvoiceByPaymentHashArgs = { - paymentHash: Scalars['PaymentHash']; + paymentHash: Scalars['PaymentHash']['input']; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletInvoicesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletPendingIncomingTransactionsByAddressArgs = { - address: Scalars['OnChainAddress']; + address: Scalars['OnChainAddress']['input']; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletTransactionByIdArgs = { - transactionId: Scalars['ID']; + transactionId: Scalars['ID']['input']; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletTransactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletTransactionsByAddressArgs = { - address: Scalars['OnChainAddress']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + address: Scalars['OnChainAddress']['input']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletTransactionsByPaymentHashArgs = { - paymentHash: Scalars['PaymentHash']; + paymentHash: Scalars['PaymentHash']['input']; }; /** A wallet belonging to an account which contains a USD balance and a list of transactions. */ export type UsdWalletTransactionsByPaymentRequestArgs = { - paymentRequest: Scalars['LnPaymentRequest']; + paymentRequest: Scalars['LnPaymentRequest']['input']; }; export type User = { @@ -1911,31 +1914,31 @@ export type User = { * @deprecated will be moved to account */ readonly contacts: ReadonlyArray; - readonly createdAt: Scalars['Timestamp']; + readonly createdAt: Scalars['Timestamp']['output']; readonly defaultAccount: Account; /** Email address */ readonly email?: Maybe; - readonly id: Scalars['ID']; + readonly id: Scalars['ID']['output']; /** * Preferred language for user. * When value is 'default' the intent is to use preferred language from OS settings. */ - readonly language: Scalars['Language']; + readonly language: Scalars['Language']['output']; /** Phone number with international calling code. */ - readonly phone?: Maybe; + readonly phone?: Maybe; readonly supportChat: ReadonlyArray; /** Whether TOTP is enabled for this user. */ - readonly totpEnabled: Scalars['Boolean']; + readonly totpEnabled: Scalars['Boolean']['output']; /** * Optional immutable user friendly identifier. * @deprecated will be moved to @Handle in Account and Wallet */ - readonly username?: Maybe; + readonly username?: Maybe; }; export type UserContactByUsernameArgs = { - username: Scalars['Username']; + username: Scalars['Username']['input']; }; export type UserContact = { @@ -1944,26 +1947,26 @@ export type UserContact = { * Alias the user can set for this contact. * Only the user can see the alias attached to their contact. */ - readonly alias?: Maybe; - readonly id: Scalars['Username']; + readonly alias?: Maybe; + readonly id: Scalars['Username']['output']; /** Paginated list of transactions sent to/from this contact. */ readonly transactions?: Maybe; - readonly transactionsCount: Scalars['Int']; + readonly transactionsCount: Scalars['Int']['output']; /** Actual identifier of the contact. */ - readonly username: Scalars['Username']; + readonly username: Scalars['Username']['output']; }; export type UserContactTransactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; export type UserContactUpdateAliasInput = { - readonly alias: Scalars['ContactAlias']; - readonly username: Scalars['Username']; + readonly alias: Scalars['ContactAlias']['input']; + readonly username: Scalars['Username']['input']; }; export type UserContactUpdateAliasPayload = { @@ -1979,19 +1982,19 @@ export type UserEmailDeletePayload = { }; export type UserEmailRegistrationInitiateInput = { - readonly email: Scalars['EmailAddress']; + readonly email: Scalars['EmailAddress']['input']; }; export type UserEmailRegistrationInitiatePayload = { readonly __typename: 'UserEmailRegistrationInitiatePayload'; - readonly emailRegistrationId?: Maybe; + readonly emailRegistrationId?: Maybe; readonly errors: ReadonlyArray; readonly me?: Maybe; }; export type UserEmailRegistrationValidateInput = { - readonly code: Scalars['OneTimeAuthCode']; - readonly emailRegistrationId: Scalars['EmailRegistrationId']; + readonly code: Scalars['OneTimeAuthCode']['input']; + readonly emailRegistrationId: Scalars['EmailRegistrationId']['input']; }; export type UserEmailRegistrationValidatePayload = { @@ -2001,17 +2004,17 @@ export type UserEmailRegistrationValidatePayload = { }; export type UserLoginInput = { - readonly code: Scalars['OneTimeAuthCode']; - readonly phone: Scalars['Phone']; + readonly code: Scalars['OneTimeAuthCode']['input']; + readonly phone: Scalars['Phone']['input']; }; export type UserLoginUpgradeInput = { - readonly code: Scalars['OneTimeAuthCode']; - readonly phone: Scalars['Phone']; + readonly code: Scalars['OneTimeAuthCode']['input']; + readonly phone: Scalars['Phone']['input']; }; export type UserLogoutInput = { - readonly deviceToken: Scalars['String']; + readonly deviceToken: Scalars['String']['input']; }; export type UserPhoneDeletePayload = { @@ -2022,12 +2025,12 @@ export type UserPhoneDeletePayload = { export type UserPhoneRegistrationInitiateInput = { readonly channel?: InputMaybe; - readonly phone: Scalars['Phone']; + readonly phone: Scalars['Phone']['input']; }; export type UserPhoneRegistrationValidateInput = { - readonly code: Scalars['OneTimeAuthCode']; - readonly phone: Scalars['Phone']; + readonly code: Scalars['OneTimeAuthCode']['input']; + readonly phone: Scalars['Phone']['input']; }; export type UserPhoneRegistrationValidatePayload = { @@ -2045,14 +2048,14 @@ export type UserTotpDeletePayload = { export type UserTotpRegistrationInitiatePayload = { readonly __typename: 'UserTotpRegistrationInitiatePayload'; readonly errors: ReadonlyArray; - readonly totpRegistrationId?: Maybe; - readonly totpSecret?: Maybe; + readonly totpRegistrationId?: Maybe; + readonly totpSecret?: Maybe; }; export type UserTotpRegistrationValidateInput = { - readonly authToken?: InputMaybe; - readonly totpCode: Scalars['TotpCode']; - readonly totpRegistrationId: Scalars['TotpRegistrationId']; + readonly authToken?: InputMaybe; + readonly totpCode: Scalars['TotpCode']['input']; + readonly totpRegistrationId: Scalars['TotpRegistrationId']['input']; }; export type UserTotpRegistrationValidatePayload = { @@ -2064,7 +2067,7 @@ export type UserTotpRegistrationValidatePayload = { export type UserUpdate = IntraLedgerUpdate | LnUpdate | OnChainUpdate | Price | RealtimePrice; export type UserUpdateLanguageInput = { - readonly language: Scalars['Language']; + readonly language: Scalars['Language']['input']; }; export type UserUpdateLanguagePayload = { @@ -2074,7 +2077,7 @@ export type UserUpdateLanguagePayload = { }; export type UserUpdateUsernameInput = { - readonly username: Scalars['Username']; + readonly username: Scalars['Username']['input']; }; export type UserUpdateUsernamePayload = { @@ -2085,12 +2088,12 @@ export type UserUpdateUsernamePayload = { /** A generic wallet which stores value in one of our supported currencies. */ export type Wallet = { - readonly accountId: Scalars['ID']; - readonly balance: Scalars['SignedAmount']; - readonly id: Scalars['ID']; + readonly accountId: Scalars['ID']['output']; + readonly balance: Scalars['SignedAmount']['output']; + readonly id: Scalars['ID']['output']; readonly invoiceByPaymentHash: Invoice; readonly invoices?: Maybe; - readonly pendingIncomingBalance: Scalars['SignedAmount']; + readonly pendingIncomingBalance: Scalars['SignedAmount']['output']; /** * Pending incoming OnChain transactions. When transactions * are confirmed they will receive a new id and be found in the transactions @@ -2126,59 +2129,59 @@ export type Wallet = { /** A generic wallet which stores value in one of our supported currencies. */ export type WalletInvoiceByPaymentHashArgs = { - paymentHash: Scalars['PaymentHash']; + paymentHash: Scalars['PaymentHash']['input']; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletInvoicesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletPendingIncomingTransactionsByAddressArgs = { - address: Scalars['OnChainAddress']; + address: Scalars['OnChainAddress']['input']; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletTransactionByIdArgs = { - transactionId: Scalars['ID']; + transactionId: Scalars['ID']['input']; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletTransactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletTransactionsByAddressArgs = { - address: Scalars['OnChainAddress']; - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; + address: Scalars['OnChainAddress']['input']; + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletTransactionsByPaymentHashArgs = { - paymentHash: Scalars['PaymentHash']; + paymentHash: Scalars['PaymentHash']['input']; }; /** A generic wallet which stores value in one of our supported currencies. */ export type WalletTransactionsByPaymentRequestArgs = { - paymentRequest: Scalars['LnPaymentRequest']; + paymentRequest: Scalars['LnPaymentRequest']['input']; }; export const WalletCurrency = { @@ -2188,16 +2191,16 @@ export const WalletCurrency = { export type WalletCurrency = typeof WalletCurrency[keyof typeof WalletCurrency]; export type AccountDefaultWalletsQueryVariables = Exact<{ - username: Scalars['Username']; + username: Scalars['Username']['input']; }>; export type AccountDefaultWalletsQuery = { readonly __typename: 'Query', readonly accountDefaultWallet: { readonly __typename: 'PublicWallet', readonly id: string, readonly walletCurrency: WalletCurrency } }; export type GetPaginatedTransactionsQueryVariables = Exact<{ - first?: InputMaybe; - after?: InputMaybe; - before?: InputMaybe; + first?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; }>; @@ -2216,16 +2219,16 @@ export type MeQueryVariables = Exact<{ [key: string]: never; }>; export type MeQuery = { readonly __typename: 'Query', readonly me?: { readonly __typename: 'User', readonly id: string, readonly username?: string | null, readonly defaultAccount: { readonly __typename: 'ConsumerAccount', readonly displayCurrency: string } } | null }; export type LnInvoiceCreateOnBehalfOfRecipientMutationVariables = Exact<{ - walletId: Scalars['WalletId']; - amount: Scalars['SatAmount']; - descriptionHash: Scalars['Hex32Bytes']; + walletId: Scalars['WalletId']['input']; + amount: Scalars['SatAmount']['input']; + descriptionHash: Scalars['Hex32Bytes']['input']; }>; export type LnInvoiceCreateOnBehalfOfRecipientMutation = { readonly __typename: 'Mutation', readonly mutationData: { readonly __typename: 'LnInvoicePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly invoice?: { readonly __typename: 'LnInvoice', readonly paymentRequest: string, readonly paymentHash: string } | null } }; export type AccountDefaultWalletQueryVariables = Exact<{ - username: Scalars['Username']; + username: Scalars['Username']['input']; walletCurrency: WalletCurrency; }>; @@ -2259,21 +2262,21 @@ export type CurrencyListQueryVariables = Exact<{ [key: string]: never; }>; export type CurrencyListQuery = { readonly __typename: 'Query', readonly currencyList: ReadonlyArray<{ readonly __typename: 'Currency', readonly id: string, readonly flag: string, readonly name: string, readonly symbol: string, readonly fractionDigits: number }> }; export type RealtimePriceWsSubscriptionVariables = Exact<{ - currency: Scalars['DisplayCurrency']; + currency: Scalars['DisplayCurrency']['input']; }>; export type RealtimePriceWsSubscription = { readonly __typename: 'Subscription', readonly realtimePrice: { readonly __typename: 'RealtimePricePayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly realtimePrice?: { readonly __typename: 'RealtimePrice', readonly timestamp: number, readonly denominatorCurrency: string, readonly btcSatPrice: { readonly __typename: 'PriceOfOneSatInMinorUnit', readonly base: number, readonly offset: number }, readonly usdCentPrice: { readonly __typename: 'PriceOfOneUsdCentInMinorUnit', readonly base: number, readonly offset: number } } | null } }; export type RealtimePriceInitialQueryVariables = Exact<{ - currency: Scalars['DisplayCurrency']; + currency: Scalars['DisplayCurrency']['input']; }>; export type RealtimePriceInitialQuery = { readonly __typename: 'Query', readonly realtimePrice: { readonly __typename: 'RealtimePrice', readonly timestamp: number, readonly denominatorCurrency: string, readonly btcSatPrice: { readonly __typename: 'PriceOfOneSatInMinorUnit', readonly base: number, readonly offset: number }, readonly usdCentPrice: { readonly __typename: 'PriceOfOneUsdCentInMinorUnit', readonly base: number, readonly offset: number } } }; export type PriceSubscriptionVariables = Exact<{ - amount: Scalars['SatAmount']; + amount: Scalars['SatAmount']['input']; amountCurrencyUnit: ExchangeCurrencyUnit; priceCurrencyUnit: ExchangeCurrencyUnit; }>; @@ -2308,7 +2311,7 @@ export const AccountDefaultWalletsDocument = gql` * }, * }); */ -export function useAccountDefaultWalletsQuery(baseOptions: Apollo.QueryHookOptions) { +export function useAccountDefaultWalletsQuery(baseOptions: Apollo.QueryHookOptions & ({ variables: AccountDefaultWalletsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(AccountDefaultWalletsDocument, options); } @@ -2316,8 +2319,13 @@ export function useAccountDefaultWalletsLazyQuery(baseOptions?: Apollo.LazyQuery const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(AccountDefaultWalletsDocument, options); } +export function useAccountDefaultWalletsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(AccountDefaultWalletsDocument, options); + } export type AccountDefaultWalletsQueryHookResult = ReturnType; export type AccountDefaultWalletsLazyQueryHookResult = ReturnType; +export type AccountDefaultWalletsSuspenseQueryHookResult = ReturnType; export type AccountDefaultWalletsQueryResult = Apollo.QueryResult; export const GetPaginatedTransactionsDocument = gql` query GetPaginatedTransactions($first: Int, $after: String, $before: String) { @@ -2411,8 +2419,13 @@ export function useGetPaginatedTransactionsLazyQuery(baseOptions?: Apollo.LazyQu const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(GetPaginatedTransactionsDocument, options); } +export function useGetPaginatedTransactionsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(GetPaginatedTransactionsDocument, options); + } export type GetPaginatedTransactionsQueryHookResult = ReturnType; export type GetPaginatedTransactionsLazyQueryHookResult = ReturnType; +export type GetPaginatedTransactionsSuspenseQueryHookResult = ReturnType; export type GetPaginatedTransactionsQueryResult = Apollo.QueryResult; export const LnInvoicePaymentStatusByHashDocument = gql` query LnInvoicePaymentStatusByHash($input: LnInvoicePaymentStatusByHashInput!) { @@ -2440,7 +2453,7 @@ export const LnInvoicePaymentStatusByHashDocument = gql` * }, * }); */ -export function useLnInvoicePaymentStatusByHashQuery(baseOptions: Apollo.QueryHookOptions) { +export function useLnInvoicePaymentStatusByHashQuery(baseOptions: Apollo.QueryHookOptions & ({ variables: LnInvoicePaymentStatusByHashQueryVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(LnInvoicePaymentStatusByHashDocument, options); } @@ -2448,8 +2461,13 @@ export function useLnInvoicePaymentStatusByHashLazyQuery(baseOptions?: Apollo.La const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(LnInvoicePaymentStatusByHashDocument, options); } +export function useLnInvoicePaymentStatusByHashSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(LnInvoicePaymentStatusByHashDocument, options); + } export type LnInvoicePaymentStatusByHashQueryHookResult = ReturnType; export type LnInvoicePaymentStatusByHashLazyQueryHookResult = ReturnType; +export type LnInvoicePaymentStatusByHashSuspenseQueryHookResult = ReturnType; export type LnInvoicePaymentStatusByHashQueryResult = Apollo.QueryResult; export const MeDocument = gql` query me { @@ -2486,8 +2504,13 @@ export function useMeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions(MeDocument, options); } +export function useMeSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(MeDocument, options); + } export type MeQueryHookResult = ReturnType; export type MeLazyQueryHookResult = ReturnType; +export type MeSuspenseQueryHookResult = ReturnType; export type MeQueryResult = Apollo.QueryResult; export const LnInvoiceCreateOnBehalfOfRecipientDocument = gql` mutation lnInvoiceCreateOnBehalfOfRecipient($walletId: WalletId!, $amount: SatAmount!, $descriptionHash: Hex32Bytes!) { @@ -2559,7 +2582,7 @@ export const AccountDefaultWalletDocument = gql` * }, * }); */ -export function useAccountDefaultWalletQuery(baseOptions: Apollo.QueryHookOptions) { +export function useAccountDefaultWalletQuery(baseOptions: Apollo.QueryHookOptions & ({ variables: AccountDefaultWalletQueryVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(AccountDefaultWalletDocument, options); } @@ -2567,8 +2590,13 @@ export function useAccountDefaultWalletLazyQuery(baseOptions?: Apollo.LazyQueryH const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(AccountDefaultWalletDocument, options); } +export function useAccountDefaultWalletSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(AccountDefaultWalletDocument, options); + } export type AccountDefaultWalletQueryHookResult = ReturnType; export type AccountDefaultWalletLazyQueryHookResult = ReturnType; +export type AccountDefaultWalletSuspenseQueryHookResult = ReturnType; export type AccountDefaultWalletQueryResult = Apollo.QueryResult; export const LnInvoicePaymentStatusDocument = gql` subscription lnInvoicePaymentStatus($input: LnInvoicePaymentStatusInput!) { @@ -2600,7 +2628,7 @@ export const LnInvoicePaymentStatusDocument = gql` * }, * }); */ -export function useLnInvoicePaymentStatusSubscription(baseOptions: Apollo.SubscriptionHookOptions) { +export function useLnInvoicePaymentStatusSubscription(baseOptions: Apollo.SubscriptionHookOptions & ({ variables: LnInvoicePaymentStatusSubscriptionVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useSubscription(LnInvoicePaymentStatusDocument, options); } @@ -2730,8 +2758,13 @@ export function useCurrencyListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(CurrencyListDocument, options); } +export function useCurrencyListSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(CurrencyListDocument, options); + } export type CurrencyListQueryHookResult = ReturnType; export type CurrencyListLazyQueryHookResult = ReturnType; +export type CurrencyListSuspenseQueryHookResult = ReturnType; export type CurrencyListQueryResult = Apollo.QueryResult; export const RealtimePriceWsDocument = gql` subscription realtimePriceWs($currency: DisplayCurrency!) { @@ -2771,7 +2804,7 @@ export const RealtimePriceWsDocument = gql` * }, * }); */ -export function useRealtimePriceWsSubscription(baseOptions: Apollo.SubscriptionHookOptions) { +export function useRealtimePriceWsSubscription(baseOptions: Apollo.SubscriptionHookOptions & ({ variables: RealtimePriceWsSubscriptionVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useSubscription(RealtimePriceWsDocument, options); } @@ -2810,7 +2843,7 @@ export const RealtimePriceInitialDocument = gql` * }, * }); */ -export function useRealtimePriceInitialQuery(baseOptions: Apollo.QueryHookOptions) { +export function useRealtimePriceInitialQuery(baseOptions: Apollo.QueryHookOptions & ({ variables: RealtimePriceInitialQueryVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useQuery(RealtimePriceInitialDocument, options); } @@ -2818,8 +2851,13 @@ export function useRealtimePriceInitialLazyQuery(baseOptions?: Apollo.LazyQueryH const options = {...defaultOptions, ...baseOptions} return Apollo.useLazyQuery(RealtimePriceInitialDocument, options); } +export function useRealtimePriceInitialSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions) { + const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions} + return Apollo.useSuspenseQuery(RealtimePriceInitialDocument, options); + } export type RealtimePriceInitialQueryHookResult = ReturnType; export type RealtimePriceInitialLazyQueryHookResult = ReturnType; +export type RealtimePriceInitialSuspenseQueryHookResult = ReturnType; export type RealtimePriceInitialQueryResult = Apollo.QueryResult; export const PriceDocument = gql` subscription price($amount: SatAmount!, $amountCurrencyUnit: ExchangeCurrencyUnit!, $priceCurrencyUnit: ExchangeCurrencyUnit!) { @@ -2857,7 +2895,7 @@ export const PriceDocument = gql` * }, * }); */ -export function usePriceSubscription(baseOptions: Apollo.SubscriptionHookOptions) { +export function usePriceSubscription(baseOptions: Apollo.SubscriptionHookOptions & ({ variables: PriceSubscriptionVariables; skip?: boolean; } | { skip: boolean; }) ) { const options = {...defaultOptions, ...baseOptions} return Apollo.useSubscription(PriceDocument, options); } diff --git a/bats/admin-gql/account-details-by-account-id.gql b/bats/admin-gql/account-details-by-account-id.gql index 467930c674..7cf41de0fe 100644 --- a/bats/admin-gql/account-details-by-account-id.gql +++ b/bats/admin-gql/account-details-by-account-id.gql @@ -1,6 +1,7 @@ query accountDetailsByAccountId($accountId: ID!) { accountDetailsByAccountId(accountId: $accountId) { id + level owner { id } diff --git a/bats/core/api/admin.bats b/bats/core/api/admin.bats index 317b92ef0a..d62d0edc29 100644 --- a/bats/core/api/admin.bats +++ b/bats/core/api/admin.bats @@ -99,21 +99,48 @@ setup_file() { [[ "$returned_id" == "$user_id" ]] || exit 1 } -@test "admin: can upgrade account level" { +@test "admin: can upgrade and downgrade account level" { admin_token="$(read_value 'admin.token')" id="$(read_value 'tester.id')" + change_account_level() { + local admin_token="$1" + local account_id="$2" + local target_level="$3" + + variables=$( + jq -n \ + --arg level "$target_level" \ + --arg accountId "$account_id" \ + '{input: {level: $level, accountId: $accountId}}' + ) + + exec_admin_graphql "$admin_token" 'account-update-level' "$variables" + refetched_id="$(graphql_output '.data.accountUpdateLevel.accountDetails.id')" + [[ "$refetched_id" == "$account_id" ]] || exit 1 + level="$(graphql_output '.data.accountUpdateLevel.accountDetails.level')" + [[ "$level" == "$target_level" ]] || exit 1 + } + variables=$( jq -n \ - --arg level "TWO" \ --arg accountId "$id" \ - '{input: {level: $level, accountId: $accountId}}' + '{accountId: $accountId}' ) - exec_admin_graphql "$admin_token" 'account-update-level' "$variables" - refetched_id="$(graphql_output '.data.accountUpdateLevel.accountDetails.id')" - [[ "$refetched_id" == "$id" ]] || exit 1 - level="$(graphql_output '.data.accountUpdateLevel.accountDetails.level')" - [[ "$level" == "TWO" ]] || exit 1 + exec_admin_graphql "$admin_token" 'account-details-by-account-id' "$variables" + returned_id="$(graphql_output '.data.accountDetailsByAccountId.id')" + [[ "$returned_id" == "$id" ]] || exit 1 + level="$(graphql_output '.data.accountDetailsByAccountId.level')" + [[ "$level" == "ONE" ]] || exit 1 + + # Upgrade to TWO + change_account_level "$admin_token" "$id" "TWO" + + # Upgrade to THREE + change_account_level "$admin_token" "$id" "THREE" + + # Downgrade back to TWO + change_account_level "$admin_token" "$id" "TWO" } @test "admin: can lock account" { diff --git a/core/api/galoy.yaml b/core/api/galoy.yaml index 8010a08748..698dfa8e6f 100644 --- a/core/api/galoy.yaml +++ b/core/api/galoy.yaml @@ -116,16 +116,19 @@ accountLimits: "0": 12500 "1": 100000 "2": 5000000 + "3": 10000000 intraLedger: level: "0": 12500 "1": 200000 "2": 5000000 + "3": 10000000 tradeIntraAccount: level: "0": 200000 "1": 5000000 "2": 20000000 + "3": 30000000 spamLimits: memoSharingSatsThreshold: 50 memoSharingCentsThreshold: 10 diff --git a/core/api/src/config/index.ts b/core/api/src/config/index.ts index 1faea19842..55167325b6 100644 --- a/core/api/src/config/index.ts +++ b/core/api/src/config/index.ts @@ -35,7 +35,7 @@ export const MIN_SATS_FOR_PRICE_RATIO_PRECISION = 5000n export const USER_NOTIFICATION_SETTINGS_TIMEOUT_MS = MS_PER_SEC * 5 export const MARKETING_NOTIFICATION_USER_BATCH_SIZE = 10000 -export const Levels: Levels = [0, 1, 2] +export const Levels: Levels = [0, 1, 2, 3] export const getGaloyBuildInformation = () => { return { diff --git a/core/api/src/config/schema.ts b/core/api/src/config/schema.ts index 1f7dd63eb9..bb051f47e3 100644 --- a/core/api/src/config/schema.ts +++ b/core/api/src/config/schema.ts @@ -53,8 +53,9 @@ const accountLimitConfigSchema = { 0: { type: "integer" }, 1: { type: "integer" }, 2: { type: "integer" }, + 3: { type: "integer" }, }, - required: ["0", "1", "2"], + required: ["0", "1", "2", "3"], additionalProperties: false, }, }, @@ -437,6 +438,7 @@ export const configSchema = { "0": 12500, "1": 100000, "2": 5000000, + "3": 10000000, }, }, intraLedger: { @@ -444,6 +446,7 @@ export const configSchema = { "0": 12500, "1": 200000, "2": 5000000, + "3": 10000000, }, }, tradeIntraAccount: { @@ -451,6 +454,7 @@ export const configSchema = { "0": 200000, "1": 5000000, "2": 20000000, + "3": 30000000, }, }, }, diff --git a/core/api/src/config/schema.types.d.ts b/core/api/src/config/schema.types.d.ts index be1d6261a7..7bcde4e586 100644 --- a/core/api/src/config/schema.types.d.ts +++ b/core/api/src/config/schema.types.d.ts @@ -13,6 +13,7 @@ type AccountLimitsConfig = { level: { 1: number 2: number + 3: number } } diff --git a/core/api/src/domain/accounts/primitives.ts b/core/api/src/domain/accounts/primitives.ts index 81301de350..6b7cec6d62 100644 --- a/core/api/src/domain/accounts/primitives.ts +++ b/core/api/src/domain/accounts/primitives.ts @@ -2,6 +2,7 @@ export const AccountLevel = { Zero: 0, One: 1, Two: 2, + Three: 3, } as const export const AccountStatus = { diff --git a/core/api/src/graphql/admin/schema.graphql b/core/api/src/graphql/admin/schema.graphql index 12adab4949..bb6dc01b85 100644 --- a/core/api/src/graphql/admin/schema.graphql +++ b/core/api/src/graphql/admin/schema.graphql @@ -8,6 +8,7 @@ scalar AccountId enum AccountLevel { ONE + THREE TWO ZERO } diff --git a/core/api/src/graphql/public/schema.graphql b/core/api/src/graphql/public/schema.graphql index 2270e381ef..ab5af81e59 100644 --- a/core/api/src/graphql/public/schema.graphql +++ b/core/api/src/graphql/public/schema.graphql @@ -68,6 +68,7 @@ input AccountEnableNotificationChannelInput { enum AccountLevel { ONE + THREE TWO ZERO } diff --git a/core/api/src/graphql/shared/types/scalar/account-level.ts b/core/api/src/graphql/shared/types/scalar/account-level.ts index 0e7014ee6d..1994828a37 100644 --- a/core/api/src/graphql/shared/types/scalar/account-level.ts +++ b/core/api/src/graphql/shared/types/scalar/account-level.ts @@ -6,6 +6,7 @@ const AccountLevel = GT.Enum({ ZERO: { value: 0 }, // Limited account capabilities ONE: { value: 1 }, // We have the user's phone number TWO: { value: 2 }, // We have the user's identity + THREE: { value: 3 }, }, }) diff --git a/core/api/test/unit/domain/users/checked-to-accountlevel.spec.ts b/core/api/test/unit/domain/users/checked-to-accountlevel.spec.ts index d94fe4cabf..c5f74eb73f 100644 --- a/core/api/test/unit/domain/users/checked-to-accountlevel.spec.ts +++ b/core/api/test/unit/domain/users/checked-to-accountlevel.spec.ts @@ -5,9 +5,10 @@ describe("account-level-check", () => { it("Passes with valid account levels", () => { expect(checkedToAccountLevel(1)).toEqual(1) expect(checkedToAccountLevel(2)).toEqual(2) + expect(checkedToAccountLevel(3)).toEqual(3) }) it("Fails with invalid account level", () => { - expect(checkedToAccountLevel(3)).toBeInstanceOf(InvalidAccountLevelError) + expect(checkedToAccountLevel(4)).toBeInstanceOf(InvalidAccountLevelError) }) }) diff --git a/dev/config/apollo-federation/supergraph.graphql b/dev/config/apollo-federation/supergraph.graphql index e0a95a74fe..71763c63bc 100644 --- a/dev/config/apollo-federation/supergraph.graphql +++ b/dev/config/apollo-federation/supergraph.graphql @@ -105,6 +105,7 @@ enum AccountLevel @join__type(graph: PUBLIC) { ONE @join__enumValue(graph: PUBLIC) + THREE @join__enumValue(graph: PUBLIC) TWO @join__enumValue(graph: PUBLIC) ZERO @join__enumValue(graph: PUBLIC) }