From d89e76a31cafe19d1587ba81d78c9baf46930e25 Mon Sep 17 00:00:00 2001 From: carsonp6 Date: Thu, 5 Dec 2024 16:01:52 -0800 Subject: [PATCH] Regenerate SDKs --- lightspark/__init__.py | 2 + lightspark/objects/Account.py | 25 ++++++-- .../objects/AccountToApiTokensConnection.py | 1 + .../objects/AccountToChannelsConnection.py | 1 + .../AccountToPaymentRequestsConnection.py | 1 + .../AccountToTransactionsConnection.py | 1 + .../objects/AccountToWalletsConnection.py | 1 + lightspark/objects/ChannelSnapshot.py | 1 + .../ChannelToTransactionsConnection.py | 1 + lightspark/objects/ClaimUmaInvitationInput.py | 1 + .../objects/ClaimUmaInvitationOutput.py | 1 + .../ClaimUmaInvitationWithIncentivesInput.py | 1 + .../ClaimUmaInvitationWithIncentivesOutput.py | 1 + lightspark/objects/Connection.py | 1 + lightspark/objects/CreateApiTokenInput.py | 1 + lightspark/objects/CreateApiTokenOutput.py | 1 + .../CreateInvitationWithIncentivesInput.py | 1 + .../CreateInvitationWithIncentivesOutput.py | 1 + lightspark/objects/CreateInvoiceInput.py | 1 + lightspark/objects/CreateInvoiceOutput.py | 1 + lightspark/objects/CreateLnurlInvoiceInput.py | 1 + .../objects/CreateNodeWalletAddressInput.py | 1 + .../objects/CreateNodeWalletAddressOutput.py | 1 + .../objects/CreateTestModeInvoiceInput.py | 5 ++ .../objects/CreateTestModeInvoiceOutput.py | 1 + .../objects/CreateTestModePaymentInput.py | 1 + .../objects/CreateUmaInvitationInput.py | 1 + .../objects/CreateUmaInvitationOutput.py | 1 + lightspark/objects/CreateUmaInvoiceInput.py | 1 + lightspark/objects/CurrencyAmountInput.py | 29 +++++++++ lightspark/objects/DailyLiquidityForecast.py | 1 + .../objects/DeclineToSignMessagesInput.py | 1 + .../objects/DeclineToSignMessagesOutput.py | 1 + lightspark/objects/DeleteApiTokenInput.py | 1 + lightspark/objects/DeleteApiTokenOutput.py | 1 + lightspark/objects/FailHtlcsInput.py | 1 + lightspark/objects/FailHtlcsOutput.py | 1 + lightspark/objects/FundNodeInput.py | 1 + lightspark/objects/FundNodeOutput.py | 1 + lightspark/objects/IdAndSignature.py | 1 + .../IncomingPaymentsForInvoiceQueryInput.py | 1 + .../IncomingPaymentsForInvoiceQueryOutput.py | 1 + ...ncomingPaymentsForPaymentHashQueryInput.py | 1 + ...comingPaymentsForPaymentHashQueryOutput.py | 1 + .../objects/InvoiceForPaymentHashInput.py | 1 + .../objects/InvoiceForPaymentHashOutput.py | 1 + .../LightningFeeEstimateForInvoiceInput.py | 1 + .../LightningFeeEstimateForNodeInput.py | 1 + .../objects/LightningFeeEstimateOutput.py | 1 + lightspark/objects/LightsparkNodeStatus.py | 1 + .../LightsparkNodeToChannelsConnection.py | 1 + ...NodeToDailyLiquidityForecastsConnection.py | 1 + .../MultiSigAddressValidationParameters.py | 1 + lightspark/objects/OnChainFeeTarget.py | 1 + .../OutgoingPaymentForIdempotencyKeyInput.py | 1 + .../OutgoingPaymentForIdempotencyKeyOutput.py | 1 + .../OutgoingPaymentsForInvoiceQueryInput.py | 1 + .../OutgoingPaymentsForInvoiceQueryOutput.py | 1 + ...utgoingPaymentsForPaymentHashQueryInput.py | 1 + ...tgoingPaymentsForPaymentHashQueryOutput.py | 1 + lightspark/objects/PayInvoiceInput.py | 1 + lightspark/objects/PayInvoiceOutput.py | 1 + lightspark/objects/PayTestModeInvoiceInput.py | 60 +++++++++++++++++++ lightspark/objects/PayUmaInvoiceInput.py | 1 + lightspark/objects/RegisterPaymentInput.py | 1 + lightspark/objects/RegisterPaymentOutput.py | 1 + .../ReleaseChannelPerCommitmentSecretInput.py | 1 + ...ReleaseChannelPerCommitmentSecretOutput.py | 1 + .../objects/ReleasePaymentPreimageInput.py | 1 + .../objects/ReleasePaymentPreimageOutput.py | 1 + lightspark/objects/RequestInitiator.py | 1 + lightspark/objects/RequestWithdrawalInput.py | 1 + lightspark/objects/RequestWithdrawalOutput.py | 1 + lightspark/objects/RichText.py | 1 + lightspark/objects/ScreenNodeInput.py | 1 + lightspark/objects/ScreenNodeOutput.py | 1 + lightspark/objects/Secret.py | 1 + lightspark/objects/SendPaymentInput.py | 1 + lightspark/objects/SendPaymentOutput.py | 1 + .../objects/SetInvoicePaymentHashInput.py | 1 + .../objects/SetInvoicePaymentHashOutput.py | 1 + lightspark/objects/SignInvoiceInput.py | 1 + lightspark/objects/SignInvoiceOutput.py | 1 + lightspark/objects/SignMessagesInput.py | 1 + lightspark/objects/SignMessagesOutput.py | 1 + lightspark/objects/Signable.py | 1 + lightspark/objects/SignablePayload.py | 1 + lightspark/objects/SignablePayloadStatus.py | 1 + .../UpdateChannelPerCommitmentPointInput.py | 1 + .../UpdateChannelPerCommitmentPointOutput.py | 1 + .../objects/UpdateNodeSharedSecretInput.py | 1 + .../objects/UpdateNodeSharedSecretOutput.py | 1 + .../WalletToPaymentRequestsConnection.py | 1 + .../objects/WalletToTransactionsConnection.py | 1 + .../WalletToWithdrawalRequestsConnection.py | 1 + .../objects/WithdrawalFeeEstimateInput.py | 1 + .../objects/WithdrawalFeeEstimateOutput.py | 1 + ...tToChannelClosingTransactionsConnection.py | 1 + ...tToChannelOpeningTransactionsConnection.py | 1 + ...ithdrawalRequestToWithdrawalsConnection.py | 1 + 100 files changed, 210 insertions(+), 6 deletions(-) create mode 100644 lightspark/objects/CurrencyAmountInput.py create mode 100644 lightspark/objects/PayTestModeInvoiceInput.py diff --git a/lightspark/__init__.py b/lightspark/__init__.py index 55b50cc..6edee37 100644 --- a/lightspark/__init__.py +++ b/lightspark/__init__.py @@ -65,6 +65,7 @@ from lightspark.objects.CreateUmaInvitationOutput import CreateUmaInvitationOutput from lightspark.objects.CreateUmaInvoiceInput import CreateUmaInvoiceInput from lightspark.objects.CurrencyAmount import CurrencyAmount +from lightspark.objects.CurrencyAmountInput import CurrencyAmountInput from lightspark.objects.CurrencyUnit import CurrencyUnit from lightspark.objects.DailyLiquidityForecast import DailyLiquidityForecast from lightspark.objects.DeclineToSignMessagesInput import DeclineToSignMessagesInput @@ -175,6 +176,7 @@ from lightspark.objects.PaymentRequest import PaymentRequest from lightspark.objects.PaymentRequestData import PaymentRequestData from lightspark.objects.PaymentRequestStatus import PaymentRequestStatus +from lightspark.objects.PayTestModeInvoiceInput import PayTestModeInvoiceInput from lightspark.objects.PayUmaInvoiceInput import PayUmaInvoiceInput from lightspark.objects.Permission import Permission from lightspark.objects.PostTransactionData import PostTransactionData diff --git a/lightspark/objects/Account.py b/lightspark/objects/Account.py index 3c4b809..d15a584 100644 --- a/lightspark/objects/Account.py +++ b/lightspark/objects/Account.py @@ -37,6 +37,7 @@ from .BlockchainBalance import from_json as BlockchainBalance_from_json from .CurrencyAmount import CurrencyAmount from .CurrencyAmount import from_json as CurrencyAmount_from_json +from .CurrencyAmountInput import CurrencyAmountInput from .Entity import Entity from .LightsparkNodeOwner import LightsparkNodeOwner from .TransactionFailures import TransactionFailures @@ -745,13 +746,15 @@ def get_transactions( lightning_node_id: Optional[str] = None, statuses: Optional[List[TransactionStatus]] = None, exclude_failures: Optional[TransactionFailures] = None, + max_amount: Optional[CurrencyAmountInput] = None, + min_amount: Optional[CurrencyAmountInput] = None, ) -> AccountToTransactionsConnection: json = self.requester.execute_graphql( """ -query FetchAccountToTransactionsConnection($entity_id: ID!, $first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures) { +query FetchAccountToTransactionsConnection($entity_id: ID!, $first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) { entity(id: $entity_id) { ... on Account { - transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures) { + transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures, max_amount: $max_amount, min_amount: $min_amount) { __typename account_to_transactions_connection_count: count account_to_transactions_connection_page_info: page_info { @@ -1351,6 +1354,8 @@ def get_transactions( "lightning_node_id": lightning_node_id, "statuses": statuses, "exclude_failures": exclude_failures, + "max_amount": max_amount, + "min_amount": min_amount, }, ) connection = json["entity"]["transactions"] @@ -1364,13 +1369,15 @@ def get_payment_requests( before_date: Optional[datetime] = None, bitcoin_network: Optional[BitcoinNetwork] = None, lightning_node_id: Optional[str] = None, + max_amount: Optional[CurrencyAmountInput] = None, + min_amount: Optional[CurrencyAmountInput] = None, ) -> AccountToPaymentRequestsConnection: json = self.requester.execute_graphql( """ -query FetchAccountToPaymentRequestsConnection($entity_id: ID!, $first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID) { +query FetchAccountToPaymentRequestsConnection($entity_id: ID!, $first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) { entity(id: $entity_id) { ... on Account { - payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id) { + payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, max_amount: $max_amount, min_amount: $min_amount) { __typename account_to_payment_requests_connection_count: count account_to_payment_requests_connection_page_info: page_info { @@ -1704,6 +1711,8 @@ def get_payment_requests( "before_date": before_date, "bitcoin_network": bitcoin_network, "lightning_node_id": lightning_node_id, + "max_amount": max_amount, + "min_amount": min_amount, }, ) connection = json["entity"]["payment_requests"] @@ -1719,13 +1728,15 @@ def get_withdrawal_requests( idempotency_keys: Optional[List[str]] = None, after_date: Optional[datetime] = None, before_date: Optional[datetime] = None, + max_amount: Optional[CurrencyAmountInput] = None, + min_amount: Optional[CurrencyAmountInput] = None, ) -> AccountToWithdrawalRequestsConnection: json = self.requester.execute_graphql( """ -query FetchAccountToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime) { +query FetchAccountToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) { entity(id: $entity_id) { ... on Account { - withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date) { + withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date, max_amount: $max_amount, min_amount: $min_amount) { __typename account_to_withdrawal_requests_connection_count: count account_to_withdrawal_requests_connection_page_info: page_info { @@ -1805,6 +1816,8 @@ def get_withdrawal_requests( "idempotency_keys": idempotency_keys, "after_date": after_date, "before_date": before_date, + "max_amount": max_amount, + "min_amount": min_amount, }, ) connection = json["entity"]["withdrawal_requests"] diff --git a/lightspark/objects/AccountToApiTokensConnection.py b/lightspark/objects/AccountToApiTokensConnection.py index 35682e0..896815b 100644 --- a/lightspark/objects/AccountToApiTokensConnection.py +++ b/lightspark/objects/AccountToApiTokensConnection.py @@ -14,6 +14,7 @@ @dataclass class AccountToApiTokensConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/AccountToChannelsConnection.py b/lightspark/objects/AccountToChannelsConnection.py index 9e9493a..34b0ecf 100644 --- a/lightspark/objects/AccountToChannelsConnection.py +++ b/lightspark/objects/AccountToChannelsConnection.py @@ -14,6 +14,7 @@ @dataclass class AccountToChannelsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/AccountToPaymentRequestsConnection.py b/lightspark/objects/AccountToPaymentRequestsConnection.py index 723a53d..f5a7ac4 100644 --- a/lightspark/objects/AccountToPaymentRequestsConnection.py +++ b/lightspark/objects/AccountToPaymentRequestsConnection.py @@ -14,6 +14,7 @@ @dataclass class AccountToPaymentRequestsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/AccountToTransactionsConnection.py b/lightspark/objects/AccountToTransactionsConnection.py index 8604b19..c184574 100644 --- a/lightspark/objects/AccountToTransactionsConnection.py +++ b/lightspark/objects/AccountToTransactionsConnection.py @@ -16,6 +16,7 @@ @dataclass class AccountToTransactionsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/AccountToWalletsConnection.py b/lightspark/objects/AccountToWalletsConnection.py index 73a7b45..8a14ae4 100644 --- a/lightspark/objects/AccountToWalletsConnection.py +++ b/lightspark/objects/AccountToWalletsConnection.py @@ -14,6 +14,7 @@ @dataclass class AccountToWalletsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/ChannelSnapshot.py b/lightspark/objects/ChannelSnapshot.py index 8e52ca0..6f7766c 100644 --- a/lightspark/objects/ChannelSnapshot.py +++ b/lightspark/objects/ChannelSnapshot.py @@ -13,6 +13,7 @@ @dataclass class ChannelSnapshot(Entity): + requester: Requester id: str diff --git a/lightspark/objects/ChannelToTransactionsConnection.py b/lightspark/objects/ChannelToTransactionsConnection.py index 3140dea..c6697a4 100644 --- a/lightspark/objects/ChannelToTransactionsConnection.py +++ b/lightspark/objects/ChannelToTransactionsConnection.py @@ -11,6 +11,7 @@ @dataclass class ChannelToTransactionsConnection: + requester: Requester count: int diff --git a/lightspark/objects/ClaimUmaInvitationInput.py b/lightspark/objects/ClaimUmaInvitationInput.py index 4d5dee3..712ad69 100644 --- a/lightspark/objects/ClaimUmaInvitationInput.py +++ b/lightspark/objects/ClaimUmaInvitationInput.py @@ -6,6 +6,7 @@ @dataclass class ClaimUmaInvitationInput: + invitation_code: str """The unique code that identifies this invitation and was shared by the inviter.""" diff --git a/lightspark/objects/ClaimUmaInvitationOutput.py b/lightspark/objects/ClaimUmaInvitationOutput.py index 2077b78..dca8e36 100644 --- a/lightspark/objects/ClaimUmaInvitationOutput.py +++ b/lightspark/objects/ClaimUmaInvitationOutput.py @@ -8,6 +8,7 @@ @dataclass class ClaimUmaInvitationOutput: + requester: Requester invitation_id: str diff --git a/lightspark/objects/ClaimUmaInvitationWithIncentivesInput.py b/lightspark/objects/ClaimUmaInvitationWithIncentivesInput.py index 8503677..8b140e2 100644 --- a/lightspark/objects/ClaimUmaInvitationWithIncentivesInput.py +++ b/lightspark/objects/ClaimUmaInvitationWithIncentivesInput.py @@ -10,6 +10,7 @@ @dataclass class ClaimUmaInvitationWithIncentivesInput: + invitation_code: str """The unique code that identifies this invitation and was shared by the inviter.""" diff --git a/lightspark/objects/ClaimUmaInvitationWithIncentivesOutput.py b/lightspark/objects/ClaimUmaInvitationWithIncentivesOutput.py index 6a35f68..65eba6a 100644 --- a/lightspark/objects/ClaimUmaInvitationWithIncentivesOutput.py +++ b/lightspark/objects/ClaimUmaInvitationWithIncentivesOutput.py @@ -8,6 +8,7 @@ @dataclass class ClaimUmaInvitationWithIncentivesOutput: + requester: Requester invitation_id: str diff --git a/lightspark/objects/Connection.py b/lightspark/objects/Connection.py index 0dc46fd..68ed23a 100644 --- a/lightspark/objects/Connection.py +++ b/lightspark/objects/Connection.py @@ -9,6 +9,7 @@ @dataclass class Connection: + requester: Requester count: int diff --git a/lightspark/objects/CreateApiTokenInput.py b/lightspark/objects/CreateApiTokenInput.py index e8d2603..56d875f 100644 --- a/lightspark/objects/CreateApiTokenInput.py +++ b/lightspark/objects/CreateApiTokenInput.py @@ -10,6 +10,7 @@ @dataclass class CreateApiTokenInput: + name: str """An arbitrary name that the user can choose to identify the API token in a list.""" diff --git a/lightspark/objects/CreateApiTokenOutput.py b/lightspark/objects/CreateApiTokenOutput.py index 1c51855..4b969f6 100644 --- a/lightspark/objects/CreateApiTokenOutput.py +++ b/lightspark/objects/CreateApiTokenOutput.py @@ -11,6 +11,7 @@ @dataclass class CreateApiTokenOutput: + requester: Requester api_token: ApiToken diff --git a/lightspark/objects/CreateInvitationWithIncentivesInput.py b/lightspark/objects/CreateInvitationWithIncentivesInput.py index a596174..4db7aaf 100644 --- a/lightspark/objects/CreateInvitationWithIncentivesInput.py +++ b/lightspark/objects/CreateInvitationWithIncentivesInput.py @@ -10,6 +10,7 @@ @dataclass class CreateInvitationWithIncentivesInput: + inviter_uma: str """The UMA of the user creating the invitation. It will be used to identify the inviter when receiving the invitation.""" diff --git a/lightspark/objects/CreateInvitationWithIncentivesOutput.py b/lightspark/objects/CreateInvitationWithIncentivesOutput.py index c3a6764..6e8447a 100644 --- a/lightspark/objects/CreateInvitationWithIncentivesOutput.py +++ b/lightspark/objects/CreateInvitationWithIncentivesOutput.py @@ -8,6 +8,7 @@ @dataclass class CreateInvitationWithIncentivesOutput: + requester: Requester invitation_id: str diff --git a/lightspark/objects/CreateInvoiceInput.py b/lightspark/objects/CreateInvoiceInput.py index 340efe3..6c97437 100644 --- a/lightspark/objects/CreateInvoiceInput.py +++ b/lightspark/objects/CreateInvoiceInput.py @@ -10,6 +10,7 @@ @dataclass class CreateInvoiceInput: + node_id: str """The node from which to create the invoice.""" diff --git a/lightspark/objects/CreateInvoiceOutput.py b/lightspark/objects/CreateInvoiceOutput.py index 2601f45..4e300fe 100644 --- a/lightspark/objects/CreateInvoiceOutput.py +++ b/lightspark/objects/CreateInvoiceOutput.py @@ -8,6 +8,7 @@ @dataclass class CreateInvoiceOutput: + requester: Requester invoice_id: str diff --git a/lightspark/objects/CreateLnurlInvoiceInput.py b/lightspark/objects/CreateLnurlInvoiceInput.py index 3b748f7..e989264 100644 --- a/lightspark/objects/CreateLnurlInvoiceInput.py +++ b/lightspark/objects/CreateLnurlInvoiceInput.py @@ -6,6 +6,7 @@ @dataclass class CreateLnurlInvoiceInput: + node_id: str """The node from which to create the invoice.""" diff --git a/lightspark/objects/CreateNodeWalletAddressInput.py b/lightspark/objects/CreateNodeWalletAddressInput.py index 9425e2e..2873af7 100644 --- a/lightspark/objects/CreateNodeWalletAddressInput.py +++ b/lightspark/objects/CreateNodeWalletAddressInput.py @@ -6,6 +6,7 @@ @dataclass class CreateNodeWalletAddressInput: + node_id: str def to_json(self) -> Mapping[str, Any]: diff --git a/lightspark/objects/CreateNodeWalletAddressOutput.py b/lightspark/objects/CreateNodeWalletAddressOutput.py index be4dd0b..f84eeed 100644 --- a/lightspark/objects/CreateNodeWalletAddressOutput.py +++ b/lightspark/objects/CreateNodeWalletAddressOutput.py @@ -13,6 +13,7 @@ @dataclass class CreateNodeWalletAddressOutput: + requester: Requester node_id: str diff --git a/lightspark/objects/CreateTestModeInvoiceInput.py b/lightspark/objects/CreateTestModeInvoiceInput.py index be96011..d495be9 100644 --- a/lightspark/objects/CreateTestModeInvoiceInput.py +++ b/lightspark/objects/CreateTestModeInvoiceInput.py @@ -10,13 +10,18 @@ @dataclass class CreateTestModeInvoiceInput: + local_node_id: str + """The local node from which to create the invoice.""" amount_msats: int + """The amount for which the invoice should be created, in millisatoshis. Setting the amount to 0 will allow the payer to specify an amount.""" memo: Optional[str] + """An optional memo to include in the invoice.""" invoice_type: Optional[InvoiceType] + """The type of invoice to create.""" def to_json(self) -> Mapping[str, Any]: return { diff --git a/lightspark/objects/CreateTestModeInvoiceOutput.py b/lightspark/objects/CreateTestModeInvoiceOutput.py index ac3e96d..12adc46 100644 --- a/lightspark/objects/CreateTestModeInvoiceOutput.py +++ b/lightspark/objects/CreateTestModeInvoiceOutput.py @@ -8,6 +8,7 @@ @dataclass class CreateTestModeInvoiceOutput: + requester: Requester encoded_payment_request: str diff --git a/lightspark/objects/CreateTestModePaymentInput.py b/lightspark/objects/CreateTestModePaymentInput.py index 0c71eb6..ba2b638 100644 --- a/lightspark/objects/CreateTestModePaymentInput.py +++ b/lightspark/objects/CreateTestModePaymentInput.py @@ -6,6 +6,7 @@ @dataclass class CreateTestModePaymentInput: + local_node_id: str """The node to where you want to send the payment.""" diff --git a/lightspark/objects/CreateUmaInvitationInput.py b/lightspark/objects/CreateUmaInvitationInput.py index 881c2c6..3330728 100644 --- a/lightspark/objects/CreateUmaInvitationInput.py +++ b/lightspark/objects/CreateUmaInvitationInput.py @@ -6,6 +6,7 @@ @dataclass class CreateUmaInvitationInput: + inviter_uma: str """The UMA of the user creating the invitation. It will be used to identify the inviter when receiving the invitation.""" diff --git a/lightspark/objects/CreateUmaInvitationOutput.py b/lightspark/objects/CreateUmaInvitationOutput.py index e93cf97..474c1ea 100644 --- a/lightspark/objects/CreateUmaInvitationOutput.py +++ b/lightspark/objects/CreateUmaInvitationOutput.py @@ -8,6 +8,7 @@ @dataclass class CreateUmaInvitationOutput: + requester: Requester invitation_id: str diff --git a/lightspark/objects/CreateUmaInvoiceInput.py b/lightspark/objects/CreateUmaInvoiceInput.py index 2b70e09..98ad6b2 100644 --- a/lightspark/objects/CreateUmaInvoiceInput.py +++ b/lightspark/objects/CreateUmaInvoiceInput.py @@ -6,6 +6,7 @@ @dataclass class CreateUmaInvoiceInput: + node_id: str """The node from which to create the invoice.""" diff --git a/lightspark/objects/CurrencyAmountInput.py b/lightspark/objects/CurrencyAmountInput.py new file mode 100644 index 0000000..34a2250 --- /dev/null +++ b/lightspark/objects/CurrencyAmountInput.py @@ -0,0 +1,29 @@ +# Copyright ©, 2022-present, Lightspark Group, Inc. - All Rights Reserved + +from dataclasses import dataclass +from typing import Any, Mapping + +from lightspark.utils.enums import parse_enum + +from .CurrencyUnit import CurrencyUnit + + +@dataclass +class CurrencyAmountInput: + + value: int + + unit: CurrencyUnit + + def to_json(self) -> Mapping[str, Any]: + return { + "currency_amount_input_value": self.value, + "currency_amount_input_unit": self.unit.value, + } + + +def from_json(obj: Mapping[str, Any]) -> CurrencyAmountInput: + return CurrencyAmountInput( + value=obj["currency_amount_input_value"], + unit=parse_enum(CurrencyUnit, obj["currency_amount_input_unit"]), + ) diff --git a/lightspark/objects/DailyLiquidityForecast.py b/lightspark/objects/DailyLiquidityForecast.py index ab76177..dbb23bd 100644 --- a/lightspark/objects/DailyLiquidityForecast.py +++ b/lightspark/objects/DailyLiquidityForecast.py @@ -14,6 +14,7 @@ @dataclass class DailyLiquidityForecast: + requester: Requester date: datetime diff --git a/lightspark/objects/DeclineToSignMessagesInput.py b/lightspark/objects/DeclineToSignMessagesInput.py index 9ac7c7f..6eca315 100644 --- a/lightspark/objects/DeclineToSignMessagesInput.py +++ b/lightspark/objects/DeclineToSignMessagesInput.py @@ -6,6 +6,7 @@ @dataclass class DeclineToSignMessagesInput: + payload_ids: List[str] """List of payload ids to decline to sign because validation failed.""" diff --git a/lightspark/objects/DeclineToSignMessagesOutput.py b/lightspark/objects/DeclineToSignMessagesOutput.py index 7de917f..1f1fbc6 100644 --- a/lightspark/objects/DeclineToSignMessagesOutput.py +++ b/lightspark/objects/DeclineToSignMessagesOutput.py @@ -11,6 +11,7 @@ @dataclass class DeclineToSignMessagesOutput: + requester: Requester declined_payloads: List[SignablePayload] diff --git a/lightspark/objects/DeleteApiTokenInput.py b/lightspark/objects/DeleteApiTokenInput.py index 620618b..ae6959f 100644 --- a/lightspark/objects/DeleteApiTokenInput.py +++ b/lightspark/objects/DeleteApiTokenInput.py @@ -6,6 +6,7 @@ @dataclass class DeleteApiTokenInput: + api_token_id: str def to_json(self) -> Mapping[str, Any]: diff --git a/lightspark/objects/DeleteApiTokenOutput.py b/lightspark/objects/DeleteApiTokenOutput.py index 94eb18e..d25789c 100644 --- a/lightspark/objects/DeleteApiTokenOutput.py +++ b/lightspark/objects/DeleteApiTokenOutput.py @@ -8,6 +8,7 @@ @dataclass class DeleteApiTokenOutput: + requester: Requester account_id: str diff --git a/lightspark/objects/FailHtlcsInput.py b/lightspark/objects/FailHtlcsInput.py index 07b3d1a..b25ece7 100644 --- a/lightspark/objects/FailHtlcsInput.py +++ b/lightspark/objects/FailHtlcsInput.py @@ -6,6 +6,7 @@ @dataclass class FailHtlcsInput: + invoice_id: str """The id of invoice which the pending HTLCs that need to be failed are paying for.""" diff --git a/lightspark/objects/FailHtlcsOutput.py b/lightspark/objects/FailHtlcsOutput.py index 1bdf34b..c920b1e 100644 --- a/lightspark/objects/FailHtlcsOutput.py +++ b/lightspark/objects/FailHtlcsOutput.py @@ -8,6 +8,7 @@ @dataclass class FailHtlcsOutput: + requester: Requester invoice_id: str diff --git a/lightspark/objects/FundNodeInput.py b/lightspark/objects/FundNodeInput.py index 626dbd0..b745476 100644 --- a/lightspark/objects/FundNodeInput.py +++ b/lightspark/objects/FundNodeInput.py @@ -6,6 +6,7 @@ @dataclass class FundNodeInput: + node_id: str amount_sats: Optional[int] diff --git a/lightspark/objects/FundNodeOutput.py b/lightspark/objects/FundNodeOutput.py index 1ef782f..734540f 100644 --- a/lightspark/objects/FundNodeOutput.py +++ b/lightspark/objects/FundNodeOutput.py @@ -11,6 +11,7 @@ @dataclass class FundNodeOutput: + requester: Requester amount: CurrencyAmount diff --git a/lightspark/objects/IdAndSignature.py b/lightspark/objects/IdAndSignature.py index a5e7339..a074918 100644 --- a/lightspark/objects/IdAndSignature.py +++ b/lightspark/objects/IdAndSignature.py @@ -6,6 +6,7 @@ @dataclass class IdAndSignature: + id: str """The id of the message.""" diff --git a/lightspark/objects/IncomingPaymentsForInvoiceQueryInput.py b/lightspark/objects/IncomingPaymentsForInvoiceQueryInput.py index 36dbb7f..8cb877a 100644 --- a/lightspark/objects/IncomingPaymentsForInvoiceQueryInput.py +++ b/lightspark/objects/IncomingPaymentsForInvoiceQueryInput.py @@ -10,6 +10,7 @@ @dataclass class IncomingPaymentsForInvoiceQueryInput: + invoice_id: str statuses: Optional[List[TransactionStatus]] diff --git a/lightspark/objects/IncomingPaymentsForInvoiceQueryOutput.py b/lightspark/objects/IncomingPaymentsForInvoiceQueryOutput.py index f8fff4a..45feda8 100644 --- a/lightspark/objects/IncomingPaymentsForInvoiceQueryOutput.py +++ b/lightspark/objects/IncomingPaymentsForInvoiceQueryOutput.py @@ -11,6 +11,7 @@ @dataclass class IncomingPaymentsForInvoiceQueryOutput: + requester: Requester payments: List[IncomingPayment] diff --git a/lightspark/objects/IncomingPaymentsForPaymentHashQueryInput.py b/lightspark/objects/IncomingPaymentsForPaymentHashQueryInput.py index d0de424..0d2c3ef 100644 --- a/lightspark/objects/IncomingPaymentsForPaymentHashQueryInput.py +++ b/lightspark/objects/IncomingPaymentsForPaymentHashQueryInput.py @@ -10,6 +10,7 @@ @dataclass class IncomingPaymentsForPaymentHashQueryInput: + payment_hash: str """The 32-byte hash of the payment preimage for which to fetch payments""" diff --git a/lightspark/objects/IncomingPaymentsForPaymentHashQueryOutput.py b/lightspark/objects/IncomingPaymentsForPaymentHashQueryOutput.py index 6834be1..d06f343 100644 --- a/lightspark/objects/IncomingPaymentsForPaymentHashQueryOutput.py +++ b/lightspark/objects/IncomingPaymentsForPaymentHashQueryOutput.py @@ -11,6 +11,7 @@ @dataclass class IncomingPaymentsForPaymentHashQueryOutput: + requester: Requester payments: List[IncomingPayment] diff --git a/lightspark/objects/InvoiceForPaymentHashInput.py b/lightspark/objects/InvoiceForPaymentHashInput.py index ed04924..794f762 100644 --- a/lightspark/objects/InvoiceForPaymentHashInput.py +++ b/lightspark/objects/InvoiceForPaymentHashInput.py @@ -6,6 +6,7 @@ @dataclass class InvoiceForPaymentHashInput: + payment_hash: str """The 32-byte hash of the payment preimage for which to fetch an invoice.""" diff --git a/lightspark/objects/InvoiceForPaymentHashOutput.py b/lightspark/objects/InvoiceForPaymentHashOutput.py index e547a29..8c21933 100644 --- a/lightspark/objects/InvoiceForPaymentHashOutput.py +++ b/lightspark/objects/InvoiceForPaymentHashOutput.py @@ -8,6 +8,7 @@ @dataclass class InvoiceForPaymentHashOutput: + requester: Requester invoice_id: Optional[str] diff --git a/lightspark/objects/LightningFeeEstimateForInvoiceInput.py b/lightspark/objects/LightningFeeEstimateForInvoiceInput.py index 04391b0..7531b94 100644 --- a/lightspark/objects/LightningFeeEstimateForInvoiceInput.py +++ b/lightspark/objects/LightningFeeEstimateForInvoiceInput.py @@ -6,6 +6,7 @@ @dataclass class LightningFeeEstimateForInvoiceInput: + node_id: str """The node from where you want to send the payment.""" diff --git a/lightspark/objects/LightningFeeEstimateForNodeInput.py b/lightspark/objects/LightningFeeEstimateForNodeInput.py index e0c80d0..93370ec 100644 --- a/lightspark/objects/LightningFeeEstimateForNodeInput.py +++ b/lightspark/objects/LightningFeeEstimateForNodeInput.py @@ -6,6 +6,7 @@ @dataclass class LightningFeeEstimateForNodeInput: + node_id: str """The node from where you want to send the payment.""" diff --git a/lightspark/objects/LightningFeeEstimateOutput.py b/lightspark/objects/LightningFeeEstimateOutput.py index 3a6bcd0..590d872 100644 --- a/lightspark/objects/LightningFeeEstimateOutput.py +++ b/lightspark/objects/LightningFeeEstimateOutput.py @@ -11,6 +11,7 @@ @dataclass class LightningFeeEstimateOutput: + requester: Requester fee_estimate: CurrencyAmount diff --git a/lightspark/objects/LightsparkNodeStatus.py b/lightspark/objects/LightsparkNodeStatus.py index 47db97b..6ec9d8d 100644 --- a/lightspark/objects/LightsparkNodeStatus.py +++ b/lightspark/objects/LightsparkNodeStatus.py @@ -4,6 +4,7 @@ class LightsparkNodeStatus(Enum): + ___FUTURE_VALUE___ = "___FUTURE_VALUE___" """This is an enum value that represents future values that could be added in the future. Clients should support unknown values as more of them could be added without notice.""" CREATED = "CREATED" diff --git a/lightspark/objects/LightsparkNodeToChannelsConnection.py b/lightspark/objects/LightsparkNodeToChannelsConnection.py index 5460d96..74c6375 100644 --- a/lightspark/objects/LightsparkNodeToChannelsConnection.py +++ b/lightspark/objects/LightsparkNodeToChannelsConnection.py @@ -14,6 +14,7 @@ @dataclass class LightsparkNodeToChannelsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/LightsparkNodeToDailyLiquidityForecastsConnection.py b/lightspark/objects/LightsparkNodeToDailyLiquidityForecastsConnection.py index 7ace8a0..954f284 100644 --- a/lightspark/objects/LightsparkNodeToDailyLiquidityForecastsConnection.py +++ b/lightspark/objects/LightsparkNodeToDailyLiquidityForecastsConnection.py @@ -14,6 +14,7 @@ @dataclass class LightsparkNodeToDailyLiquidityForecastsConnection: + requester: Requester from_date: datetime diff --git a/lightspark/objects/MultiSigAddressValidationParameters.py b/lightspark/objects/MultiSigAddressValidationParameters.py index 748d231..33d55f7 100644 --- a/lightspark/objects/MultiSigAddressValidationParameters.py +++ b/lightspark/objects/MultiSigAddressValidationParameters.py @@ -8,6 +8,7 @@ @dataclass class MultiSigAddressValidationParameters: + requester: Requester counterparty_funding_pubkey: str diff --git a/lightspark/objects/OnChainFeeTarget.py b/lightspark/objects/OnChainFeeTarget.py index cabed26..c1068ef 100644 --- a/lightspark/objects/OnChainFeeTarget.py +++ b/lightspark/objects/OnChainFeeTarget.py @@ -4,6 +4,7 @@ class OnChainFeeTarget(Enum): + ___FUTURE_VALUE___ = "___FUTURE_VALUE___" """This is an enum value that represents future values that could be added in the future. Clients should support unknown values as more of them could be added without notice.""" HIGH = "HIGH" diff --git a/lightspark/objects/OutgoingPaymentForIdempotencyKeyInput.py b/lightspark/objects/OutgoingPaymentForIdempotencyKeyInput.py index d3255b5..6cf42c7 100644 --- a/lightspark/objects/OutgoingPaymentForIdempotencyKeyInput.py +++ b/lightspark/objects/OutgoingPaymentForIdempotencyKeyInput.py @@ -6,6 +6,7 @@ @dataclass class OutgoingPaymentForIdempotencyKeyInput: + idempotency_key: str def to_json(self) -> Mapping[str, Any]: diff --git a/lightspark/objects/OutgoingPaymentForIdempotencyKeyOutput.py b/lightspark/objects/OutgoingPaymentForIdempotencyKeyOutput.py index d7cdf13..6151884 100644 --- a/lightspark/objects/OutgoingPaymentForIdempotencyKeyOutput.py +++ b/lightspark/objects/OutgoingPaymentForIdempotencyKeyOutput.py @@ -8,6 +8,7 @@ @dataclass class OutgoingPaymentForIdempotencyKeyOutput: + requester: Requester payment_id: Optional[str] diff --git a/lightspark/objects/OutgoingPaymentsForInvoiceQueryInput.py b/lightspark/objects/OutgoingPaymentsForInvoiceQueryInput.py index 5dce430..ab4987a 100644 --- a/lightspark/objects/OutgoingPaymentsForInvoiceQueryInput.py +++ b/lightspark/objects/OutgoingPaymentsForInvoiceQueryInput.py @@ -10,6 +10,7 @@ @dataclass class OutgoingPaymentsForInvoiceQueryInput: + encoded_invoice: str """The encoded invoice that the outgoing payments paid to.""" diff --git a/lightspark/objects/OutgoingPaymentsForInvoiceQueryOutput.py b/lightspark/objects/OutgoingPaymentsForInvoiceQueryOutput.py index 725b0f6..78fc196 100644 --- a/lightspark/objects/OutgoingPaymentsForInvoiceQueryOutput.py +++ b/lightspark/objects/OutgoingPaymentsForInvoiceQueryOutput.py @@ -11,6 +11,7 @@ @dataclass class OutgoingPaymentsForInvoiceQueryOutput: + requester: Requester payments: List[OutgoingPayment] diff --git a/lightspark/objects/OutgoingPaymentsForPaymentHashQueryInput.py b/lightspark/objects/OutgoingPaymentsForPaymentHashQueryInput.py index d0c8b76..ab9f7f1 100644 --- a/lightspark/objects/OutgoingPaymentsForPaymentHashQueryInput.py +++ b/lightspark/objects/OutgoingPaymentsForPaymentHashQueryInput.py @@ -10,6 +10,7 @@ @dataclass class OutgoingPaymentsForPaymentHashQueryInput: + payment_hash: str """The 32-byte hash of the payment preimage for which to fetch payments""" diff --git a/lightspark/objects/OutgoingPaymentsForPaymentHashQueryOutput.py b/lightspark/objects/OutgoingPaymentsForPaymentHashQueryOutput.py index 7f445ac..26ce777 100644 --- a/lightspark/objects/OutgoingPaymentsForPaymentHashQueryOutput.py +++ b/lightspark/objects/OutgoingPaymentsForPaymentHashQueryOutput.py @@ -11,6 +11,7 @@ @dataclass class OutgoingPaymentsForPaymentHashQueryOutput: + requester: Requester payments: List[OutgoingPayment] diff --git a/lightspark/objects/PayInvoiceInput.py b/lightspark/objects/PayInvoiceInput.py index bd98534..50e85ff 100644 --- a/lightspark/objects/PayInvoiceInput.py +++ b/lightspark/objects/PayInvoiceInput.py @@ -6,6 +6,7 @@ @dataclass class PayInvoiceInput: + node_id: str """The node from where you want to send the payment.""" diff --git a/lightspark/objects/PayInvoiceOutput.py b/lightspark/objects/PayInvoiceOutput.py index 4b33fb7..b82983d 100644 --- a/lightspark/objects/PayInvoiceOutput.py +++ b/lightspark/objects/PayInvoiceOutput.py @@ -8,6 +8,7 @@ @dataclass class PayInvoiceOutput: + requester: Requester payment_id: str diff --git a/lightspark/objects/PayTestModeInvoiceInput.py b/lightspark/objects/PayTestModeInvoiceInput.py new file mode 100644 index 0000000..c2d55d9 --- /dev/null +++ b/lightspark/objects/PayTestModeInvoiceInput.py @@ -0,0 +1,60 @@ +# Copyright ©, 2022-present, Lightspark Group, Inc. - All Rights Reserved + +from dataclasses import dataclass +from typing import Any, Mapping, Optional + +from lightspark.utils.enums import parse_enum_optional + +from .PaymentFailureReason import PaymentFailureReason + + +@dataclass +class PayTestModeInvoiceInput: + + node_id: str + """The node from where you want to send the payment.""" + + encoded_invoice: str + """The invoice you want to pay (as defined by the BOLT11 standard).""" + + timeout_secs: int + """The timeout in seconds that we will try to make the payment.""" + + maximum_fees_msats: int + """The maximum amount of fees that you want to pay for this payment to be sent, expressed in msats.""" + + failure_reason: Optional[PaymentFailureReason] + """The failure reason to trigger for the payment. If not set, pay_invoice will be called.""" + + amount_msats: Optional[int] + """The amount you will pay for this invoice, expressed in msats. It should ONLY be set when the invoice amount is zero.""" + + idempotency_key: Optional[str] + """The idempotency key of the request. The same result will be returned for the same idempotency key.""" + + def to_json(self) -> Mapping[str, Any]: + return { + "pay_test_mode_invoice_input_node_id": self.node_id, + "pay_test_mode_invoice_input_encoded_invoice": self.encoded_invoice, + "pay_test_mode_invoice_input_timeout_secs": self.timeout_secs, + "pay_test_mode_invoice_input_maximum_fees_msats": self.maximum_fees_msats, + "pay_test_mode_invoice_input_failure_reason": ( + self.failure_reason.value if self.failure_reason else None + ), + "pay_test_mode_invoice_input_amount_msats": self.amount_msats, + "pay_test_mode_invoice_input_idempotency_key": self.idempotency_key, + } + + +def from_json(obj: Mapping[str, Any]) -> PayTestModeInvoiceInput: + return PayTestModeInvoiceInput( + node_id=obj["pay_test_mode_invoice_input_node_id"], + encoded_invoice=obj["pay_test_mode_invoice_input_encoded_invoice"], + timeout_secs=obj["pay_test_mode_invoice_input_timeout_secs"], + maximum_fees_msats=obj["pay_test_mode_invoice_input_maximum_fees_msats"], + failure_reason=parse_enum_optional( + PaymentFailureReason, obj["pay_test_mode_invoice_input_failure_reason"] + ), + amount_msats=obj["pay_test_mode_invoice_input_amount_msats"], + idempotency_key=obj["pay_test_mode_invoice_input_idempotency_key"], + ) diff --git a/lightspark/objects/PayUmaInvoiceInput.py b/lightspark/objects/PayUmaInvoiceInput.py index 06c1eb8..3b0c5ad 100644 --- a/lightspark/objects/PayUmaInvoiceInput.py +++ b/lightspark/objects/PayUmaInvoiceInput.py @@ -6,6 +6,7 @@ @dataclass class PayUmaInvoiceInput: + node_id: str encoded_invoice: str diff --git a/lightspark/objects/RegisterPaymentInput.py b/lightspark/objects/RegisterPaymentInput.py index 62539f4..6faab78 100644 --- a/lightspark/objects/RegisterPaymentInput.py +++ b/lightspark/objects/RegisterPaymentInput.py @@ -11,6 +11,7 @@ @dataclass class RegisterPaymentInput: + provider: ComplianceProvider """The compliance provider that is going to screen the node. You need to be a customer of the selected provider and store the API key on the Lightspark account setting page.""" diff --git a/lightspark/objects/RegisterPaymentOutput.py b/lightspark/objects/RegisterPaymentOutput.py index c2da6fc..67f8a8a 100644 --- a/lightspark/objects/RegisterPaymentOutput.py +++ b/lightspark/objects/RegisterPaymentOutput.py @@ -8,6 +8,7 @@ @dataclass class RegisterPaymentOutput: + requester: Requester payment_id: str diff --git a/lightspark/objects/ReleaseChannelPerCommitmentSecretInput.py b/lightspark/objects/ReleaseChannelPerCommitmentSecretInput.py index 15e9c1f..66c9906 100644 --- a/lightspark/objects/ReleaseChannelPerCommitmentSecretInput.py +++ b/lightspark/objects/ReleaseChannelPerCommitmentSecretInput.py @@ -6,6 +6,7 @@ @dataclass class ReleaseChannelPerCommitmentSecretInput: + channel_id: str """The unique identifier of the channel.""" diff --git a/lightspark/objects/ReleaseChannelPerCommitmentSecretOutput.py b/lightspark/objects/ReleaseChannelPerCommitmentSecretOutput.py index 75bb1bb..de24337 100644 --- a/lightspark/objects/ReleaseChannelPerCommitmentSecretOutput.py +++ b/lightspark/objects/ReleaseChannelPerCommitmentSecretOutput.py @@ -8,6 +8,7 @@ @dataclass class ReleaseChannelPerCommitmentSecretOutput: + requester: Requester channel_id: str diff --git a/lightspark/objects/ReleasePaymentPreimageInput.py b/lightspark/objects/ReleasePaymentPreimageInput.py index 9967f4c..56b99e5 100644 --- a/lightspark/objects/ReleasePaymentPreimageInput.py +++ b/lightspark/objects/ReleasePaymentPreimageInput.py @@ -6,6 +6,7 @@ @dataclass class ReleasePaymentPreimageInput: + invoice_id: str """The invoice the preimage belongs to.""" diff --git a/lightspark/objects/ReleasePaymentPreimageOutput.py b/lightspark/objects/ReleasePaymentPreimageOutput.py index 88811e5..60d7fc9 100644 --- a/lightspark/objects/ReleasePaymentPreimageOutput.py +++ b/lightspark/objects/ReleasePaymentPreimageOutput.py @@ -8,6 +8,7 @@ @dataclass class ReleasePaymentPreimageOutput: + requester: Requester invoice_id: str diff --git a/lightspark/objects/RequestInitiator.py b/lightspark/objects/RequestInitiator.py index 5ded1d7..ef62644 100644 --- a/lightspark/objects/RequestInitiator.py +++ b/lightspark/objects/RequestInitiator.py @@ -4,6 +4,7 @@ class RequestInitiator(Enum): + ___FUTURE_VALUE___ = "___FUTURE_VALUE___" """This is an enum value that represents future values that could be added in the future. Clients should support unknown values as more of them could be added without notice.""" CUSTOMER = "CUSTOMER" diff --git a/lightspark/objects/RequestWithdrawalInput.py b/lightspark/objects/RequestWithdrawalInput.py index 0f0e514..17adc55 100644 --- a/lightspark/objects/RequestWithdrawalInput.py +++ b/lightspark/objects/RequestWithdrawalInput.py @@ -11,6 +11,7 @@ @dataclass class RequestWithdrawalInput: + node_id: str """The node from which you'd like to make the withdrawal.""" diff --git a/lightspark/objects/RequestWithdrawalOutput.py b/lightspark/objects/RequestWithdrawalOutput.py index 9ad37d4..52c4795 100644 --- a/lightspark/objects/RequestWithdrawalOutput.py +++ b/lightspark/objects/RequestWithdrawalOutput.py @@ -8,6 +8,7 @@ @dataclass class RequestWithdrawalOutput: + requester: Requester request_id: str diff --git a/lightspark/objects/RichText.py b/lightspark/objects/RichText.py index 8cf3473..3dc4b6d 100644 --- a/lightspark/objects/RichText.py +++ b/lightspark/objects/RichText.py @@ -8,6 +8,7 @@ @dataclass class RichText: + requester: Requester text: str diff --git a/lightspark/objects/ScreenNodeInput.py b/lightspark/objects/ScreenNodeInput.py index d38e234..5c85345 100644 --- a/lightspark/objects/ScreenNodeInput.py +++ b/lightspark/objects/ScreenNodeInput.py @@ -10,6 +10,7 @@ @dataclass class ScreenNodeInput: + provider: ComplianceProvider """The compliance provider that is going to screen the node. You need to be a customer of the selected provider and store the API key on the Lightspark account setting page.""" diff --git a/lightspark/objects/ScreenNodeOutput.py b/lightspark/objects/ScreenNodeOutput.py index fb0863a..46b3b1e 100644 --- a/lightspark/objects/ScreenNodeOutput.py +++ b/lightspark/objects/ScreenNodeOutput.py @@ -11,6 +11,7 @@ @dataclass class ScreenNodeOutput: + requester: Requester rating: RiskRating diff --git a/lightspark/objects/Secret.py b/lightspark/objects/Secret.py index 9384dca..a561b1b 100644 --- a/lightspark/objects/Secret.py +++ b/lightspark/objects/Secret.py @@ -8,6 +8,7 @@ @dataclass class Secret: + requester: Requester encrypted_value: str diff --git a/lightspark/objects/SendPaymentInput.py b/lightspark/objects/SendPaymentInput.py index b996b1f..bb10419 100644 --- a/lightspark/objects/SendPaymentInput.py +++ b/lightspark/objects/SendPaymentInput.py @@ -6,6 +6,7 @@ @dataclass class SendPaymentInput: + node_id: str """The node from where you want to send the payment.""" diff --git a/lightspark/objects/SendPaymentOutput.py b/lightspark/objects/SendPaymentOutput.py index ee52b72..1933212 100644 --- a/lightspark/objects/SendPaymentOutput.py +++ b/lightspark/objects/SendPaymentOutput.py @@ -8,6 +8,7 @@ @dataclass class SendPaymentOutput: + requester: Requester payment_id: str diff --git a/lightspark/objects/SetInvoicePaymentHashInput.py b/lightspark/objects/SetInvoicePaymentHashInput.py index 9e130ac..0bc2d34 100644 --- a/lightspark/objects/SetInvoicePaymentHashInput.py +++ b/lightspark/objects/SetInvoicePaymentHashInput.py @@ -6,6 +6,7 @@ @dataclass class SetInvoicePaymentHashInput: + invoice_id: str """The invoice that needs to be updated.""" diff --git a/lightspark/objects/SetInvoicePaymentHashOutput.py b/lightspark/objects/SetInvoicePaymentHashOutput.py index f2b8768..28e9b0a 100644 --- a/lightspark/objects/SetInvoicePaymentHashOutput.py +++ b/lightspark/objects/SetInvoicePaymentHashOutput.py @@ -8,6 +8,7 @@ @dataclass class SetInvoicePaymentHashOutput: + requester: Requester invoice_id: str diff --git a/lightspark/objects/SignInvoiceInput.py b/lightspark/objects/SignInvoiceInput.py index f946a21..650fde5 100644 --- a/lightspark/objects/SignInvoiceInput.py +++ b/lightspark/objects/SignInvoiceInput.py @@ -6,6 +6,7 @@ @dataclass class SignInvoiceInput: + invoice_id: str """The unique identifier of the invoice to be signed.""" diff --git a/lightspark/objects/SignInvoiceOutput.py b/lightspark/objects/SignInvoiceOutput.py index df2b868..23ce9ec 100644 --- a/lightspark/objects/SignInvoiceOutput.py +++ b/lightspark/objects/SignInvoiceOutput.py @@ -8,6 +8,7 @@ @dataclass class SignInvoiceOutput: + requester: Requester invoice_id: str diff --git a/lightspark/objects/SignMessagesInput.py b/lightspark/objects/SignMessagesInput.py index bf79191..5fbb303 100644 --- a/lightspark/objects/SignMessagesInput.py +++ b/lightspark/objects/SignMessagesInput.py @@ -9,6 +9,7 @@ @dataclass class SignMessagesInput: + signatures: List[IdAndSignature] """The list of the message ids and signatures.""" diff --git a/lightspark/objects/SignMessagesOutput.py b/lightspark/objects/SignMessagesOutput.py index 382e144..1a6302f 100644 --- a/lightspark/objects/SignMessagesOutput.py +++ b/lightspark/objects/SignMessagesOutput.py @@ -11,6 +11,7 @@ @dataclass class SignMessagesOutput: + requester: Requester signed_payloads: List[SignablePayload] diff --git a/lightspark/objects/Signable.py b/lightspark/objects/Signable.py index b0cc213..285cee0 100644 --- a/lightspark/objects/Signable.py +++ b/lightspark/objects/Signable.py @@ -11,6 +11,7 @@ @dataclass class Signable(Entity): + requester: Requester id: str diff --git a/lightspark/objects/SignablePayload.py b/lightspark/objects/SignablePayload.py index 9122895..f5b5b10 100644 --- a/lightspark/objects/SignablePayload.py +++ b/lightspark/objects/SignablePayload.py @@ -13,6 +13,7 @@ @dataclass class SignablePayload(Entity): + requester: Requester id: str diff --git a/lightspark/objects/SignablePayloadStatus.py b/lightspark/objects/SignablePayloadStatus.py index 2818591..cd403e8 100644 --- a/lightspark/objects/SignablePayloadStatus.py +++ b/lightspark/objects/SignablePayloadStatus.py @@ -4,6 +4,7 @@ class SignablePayloadStatus(Enum): + ___FUTURE_VALUE___ = "___FUTURE_VALUE___" """This is an enum value that represents future values that could be added in the future. Clients should support unknown values as more of them could be added without notice.""" CREATED = "CREATED" diff --git a/lightspark/objects/UpdateChannelPerCommitmentPointInput.py b/lightspark/objects/UpdateChannelPerCommitmentPointInput.py index 3903dda..dee0241 100644 --- a/lightspark/objects/UpdateChannelPerCommitmentPointInput.py +++ b/lightspark/objects/UpdateChannelPerCommitmentPointInput.py @@ -6,6 +6,7 @@ @dataclass class UpdateChannelPerCommitmentPointInput: + channel_id: str per_commitment_point: str diff --git a/lightspark/objects/UpdateChannelPerCommitmentPointOutput.py b/lightspark/objects/UpdateChannelPerCommitmentPointOutput.py index 4836a06..e734fdf 100644 --- a/lightspark/objects/UpdateChannelPerCommitmentPointOutput.py +++ b/lightspark/objects/UpdateChannelPerCommitmentPointOutput.py @@ -8,6 +8,7 @@ @dataclass class UpdateChannelPerCommitmentPointOutput: + requester: Requester channel_id: str diff --git a/lightspark/objects/UpdateNodeSharedSecretInput.py b/lightspark/objects/UpdateNodeSharedSecretInput.py index b070987..97c3758 100644 --- a/lightspark/objects/UpdateNodeSharedSecretInput.py +++ b/lightspark/objects/UpdateNodeSharedSecretInput.py @@ -6,6 +6,7 @@ @dataclass class UpdateNodeSharedSecretInput: + node_id: str shared_secret: str diff --git a/lightspark/objects/UpdateNodeSharedSecretOutput.py b/lightspark/objects/UpdateNodeSharedSecretOutput.py index 86415fd..f4061de 100644 --- a/lightspark/objects/UpdateNodeSharedSecretOutput.py +++ b/lightspark/objects/UpdateNodeSharedSecretOutput.py @@ -8,6 +8,7 @@ @dataclass class UpdateNodeSharedSecretOutput: + requester: Requester node_id: str diff --git a/lightspark/objects/WalletToPaymentRequestsConnection.py b/lightspark/objects/WalletToPaymentRequestsConnection.py index 3ce6f8d..b7c4f99 100644 --- a/lightspark/objects/WalletToPaymentRequestsConnection.py +++ b/lightspark/objects/WalletToPaymentRequestsConnection.py @@ -14,6 +14,7 @@ @dataclass class WalletToPaymentRequestsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/WalletToTransactionsConnection.py b/lightspark/objects/WalletToTransactionsConnection.py index da95d27..14a7167 100644 --- a/lightspark/objects/WalletToTransactionsConnection.py +++ b/lightspark/objects/WalletToTransactionsConnection.py @@ -14,6 +14,7 @@ @dataclass class WalletToTransactionsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/WalletToWithdrawalRequestsConnection.py b/lightspark/objects/WalletToWithdrawalRequestsConnection.py index e7ce6ad..baad005 100644 --- a/lightspark/objects/WalletToWithdrawalRequestsConnection.py +++ b/lightspark/objects/WalletToWithdrawalRequestsConnection.py @@ -14,6 +14,7 @@ @dataclass class WalletToWithdrawalRequestsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/WithdrawalFeeEstimateInput.py b/lightspark/objects/WithdrawalFeeEstimateInput.py index 24ee7b8..36bb415 100644 --- a/lightspark/objects/WithdrawalFeeEstimateInput.py +++ b/lightspark/objects/WithdrawalFeeEstimateInput.py @@ -10,6 +10,7 @@ @dataclass class WithdrawalFeeEstimateInput: + node_id: str """The node from which you'd like to make the withdrawal.""" diff --git a/lightspark/objects/WithdrawalFeeEstimateOutput.py b/lightspark/objects/WithdrawalFeeEstimateOutput.py index 659bebc..40af982 100644 --- a/lightspark/objects/WithdrawalFeeEstimateOutput.py +++ b/lightspark/objects/WithdrawalFeeEstimateOutput.py @@ -11,6 +11,7 @@ @dataclass class WithdrawalFeeEstimateOutput: + requester: Requester fee_estimate: CurrencyAmount diff --git a/lightspark/objects/WithdrawalRequestToChannelClosingTransactionsConnection.py b/lightspark/objects/WithdrawalRequestToChannelClosingTransactionsConnection.py index 07ba02a..83e0d97 100644 --- a/lightspark/objects/WithdrawalRequestToChannelClosingTransactionsConnection.py +++ b/lightspark/objects/WithdrawalRequestToChannelClosingTransactionsConnection.py @@ -14,6 +14,7 @@ @dataclass class WithdrawalRequestToChannelClosingTransactionsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.py b/lightspark/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.py index a68e1b4..a18a688 100644 --- a/lightspark/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.py +++ b/lightspark/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.py @@ -14,6 +14,7 @@ @dataclass class WithdrawalRequestToChannelOpeningTransactionsConnection(Connection): + requester: Requester count: int diff --git a/lightspark/objects/WithdrawalRequestToWithdrawalsConnection.py b/lightspark/objects/WithdrawalRequestToWithdrawalsConnection.py index 6f2844f..1d16221 100644 --- a/lightspark/objects/WithdrawalRequestToWithdrawalsConnection.py +++ b/lightspark/objects/WithdrawalRequestToWithdrawalsConnection.py @@ -11,6 +11,7 @@ @dataclass class WithdrawalRequestToWithdrawalsConnection: + requester: Requester count: int