Skip to content

Commit 0067c16

Browse files
committed
Regenerate sdk
1 parent d438950 commit 0067c16

File tree

126 files changed

+1526
-1005
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+1526
-1005
lines changed

lightspark/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
)
101101
from lightspark.objects.Invoice import Invoice
102102
from lightspark.objects.InvoiceData import InvoiceData
103+
from lightspark.objects.InvoiceForPaymentHashInput import InvoiceForPaymentHashInput
104+
from lightspark.objects.InvoiceForPaymentHashOutput import InvoiceForPaymentHashOutput
103105
from lightspark.objects.InvoiceType import InvoiceType
104106
from lightspark.objects.LightningFeeEstimateForInvoiceInput import (
105107
LightningFeeEstimateForInvoiceInput,
@@ -130,6 +132,7 @@
130132
from lightspark.objects.NodeAddress import NodeAddress
131133
from lightspark.objects.NodeAddressType import NodeAddressType
132134
from lightspark.objects.NodeToAddressesConnection import NodeToAddressesConnection
135+
from lightspark.objects.OnChainFeeTarget import OnChainFeeTarget
133136
from lightspark.objects.OnChainTransaction import OnChainTransaction
134137
from lightspark.objects.OutgoingPayment import OutgoingPayment
135138
from lightspark.objects.OutgoingPaymentAttempt import OutgoingPaymentAttempt
@@ -181,6 +184,7 @@
181184
from lightspark.objects.ReleasePaymentPreimageInput import ReleasePaymentPreimageInput
182185
from lightspark.objects.ReleasePaymentPreimageOutput import ReleasePaymentPreimageOutput
183186
from lightspark.objects.RemoteSigningSubEventType import RemoteSigningSubEventType
187+
from lightspark.objects.RequestInitiator import RequestInitiator
184188
from lightspark.objects.RequestWithdrawalInput import RequestWithdrawalInput
185189
from lightspark.objects.RequestWithdrawalOutput import RequestWithdrawalOutput
186190
from lightspark.objects.RichText import RichText

lightspark/objects/Account.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,7 @@ def get_withdrawal_requests(
17861786
id
17871787
}
17881788
withdrawal_request_idempotency_key: idempotency_key
1789+
withdrawal_request_initiator: initiator
17891790
}
17901791
}
17911792
}

lightspark/objects/AccountToApiTokensConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToApiTokensConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/AccountToChannelsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToChannelsConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/AccountToPaymentRequestsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToPaymentRequestsConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/AccountToTransactionsConnection.py

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
@dataclass
1818
class AccountToTransactionsConnection(Connection):
19+
1920
requester: Requester
2021

2122
count: int
@@ -42,15 +43,17 @@ def to_json(self) -> Mapping[str, Any]:
4243
"__typename": "AccountToTransactionsConnection",
4344
"account_to_transactions_connection_count": self.count,
4445
"account_to_transactions_connection_page_info": self.page_info.to_json(),
45-
"account_to_transactions_connection_profit_loss": self.profit_loss.to_json()
46-
if self.profit_loss
47-
else None,
48-
"account_to_transactions_connection_average_fee_earned": self.average_fee_earned.to_json()
49-
if self.average_fee_earned
50-
else None,
51-
"account_to_transactions_connection_total_amount_transacted": self.total_amount_transacted.to_json()
52-
if self.total_amount_transacted
53-
else None,
46+
"account_to_transactions_connection_profit_loss": (
47+
self.profit_loss.to_json() if self.profit_loss else None
48+
),
49+
"account_to_transactions_connection_average_fee_earned": (
50+
self.average_fee_earned.to_json() if self.average_fee_earned else None
51+
),
52+
"account_to_transactions_connection_total_amount_transacted": (
53+
self.total_amount_transacted.to_json()
54+
if self.total_amount_transacted
55+
else None
56+
),
5457
"account_to_transactions_connection_entities": [
5558
e.to_json() for e in self.entities
5659
],
@@ -109,21 +112,28 @@ def from_json(
109112
page_info=PageInfo_from_json(
110113
requester, obj["account_to_transactions_connection_page_info"]
111114
),
112-
profit_loss=CurrencyAmount_from_json(
113-
requester, obj["account_to_transactions_connection_profit_loss"]
114-
)
115-
if obj["account_to_transactions_connection_profit_loss"]
116-
else None,
117-
average_fee_earned=CurrencyAmount_from_json(
118-
requester, obj["account_to_transactions_connection_average_fee_earned"]
119-
)
120-
if obj["account_to_transactions_connection_average_fee_earned"]
121-
else None,
122-
total_amount_transacted=CurrencyAmount_from_json(
123-
requester, obj["account_to_transactions_connection_total_amount_transacted"]
124-
)
125-
if obj["account_to_transactions_connection_total_amount_transacted"]
126-
else None,
115+
profit_loss=(
116+
CurrencyAmount_from_json(
117+
requester, obj["account_to_transactions_connection_profit_loss"]
118+
)
119+
if obj["account_to_transactions_connection_profit_loss"]
120+
else None
121+
),
122+
average_fee_earned=(
123+
CurrencyAmount_from_json(
124+
requester, obj["account_to_transactions_connection_average_fee_earned"]
125+
)
126+
if obj["account_to_transactions_connection_average_fee_earned"]
127+
else None
128+
),
129+
total_amount_transacted=(
130+
CurrencyAmount_from_json(
131+
requester,
132+
obj["account_to_transactions_connection_total_amount_transacted"],
133+
)
134+
if obj["account_to_transactions_connection_total_amount_transacted"]
135+
else None
136+
),
127137
entities=list(
128138
map(
129139
# pylint: disable=unnecessary-lambda

lightspark/objects/AccountToWalletsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToWalletsConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/BlockchainBalance.py

Lines changed: 58 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ class BlockchainBalance:
3535

3636
def to_json(self) -> Mapping[str, Any]:
3737
return {
38-
"blockchain_balance_total_balance": self.total_balance.to_json()
39-
if self.total_balance
40-
else None,
41-
"blockchain_balance_confirmed_balance": self.confirmed_balance.to_json()
42-
if self.confirmed_balance
43-
else None,
44-
"blockchain_balance_unconfirmed_balance": self.unconfirmed_balance.to_json()
45-
if self.unconfirmed_balance
46-
else None,
47-
"blockchain_balance_locked_balance": self.locked_balance.to_json()
48-
if self.locked_balance
49-
else None,
50-
"blockchain_balance_required_reserve": self.required_reserve.to_json()
51-
if self.required_reserve
52-
else None,
53-
"blockchain_balance_available_balance": self.available_balance.to_json()
54-
if self.available_balance
55-
else None,
38+
"blockchain_balance_total_balance": (
39+
self.total_balance.to_json() if self.total_balance else None
40+
),
41+
"blockchain_balance_confirmed_balance": (
42+
self.confirmed_balance.to_json() if self.confirmed_balance else None
43+
),
44+
"blockchain_balance_unconfirmed_balance": (
45+
self.unconfirmed_balance.to_json() if self.unconfirmed_balance else None
46+
),
47+
"blockchain_balance_locked_balance": (
48+
self.locked_balance.to_json() if self.locked_balance else None
49+
),
50+
"blockchain_balance_required_reserve": (
51+
self.required_reserve.to_json() if self.required_reserve else None
52+
),
53+
"blockchain_balance_available_balance": (
54+
self.available_balance.to_json() if self.available_balance else None
55+
),
5656
}
5757

5858

@@ -114,34 +114,44 @@ def to_json(self) -> Mapping[str, Any]:
114114
def from_json(requester: Requester, obj: Mapping[str, Any]) -> BlockchainBalance:
115115
return BlockchainBalance(
116116
requester=requester,
117-
total_balance=CurrencyAmount_from_json(
118-
requester, obj["blockchain_balance_total_balance"]
119-
)
120-
if obj["blockchain_balance_total_balance"]
121-
else None,
122-
confirmed_balance=CurrencyAmount_from_json(
123-
requester, obj["blockchain_balance_confirmed_balance"]
124-
)
125-
if obj["blockchain_balance_confirmed_balance"]
126-
else None,
127-
unconfirmed_balance=CurrencyAmount_from_json(
128-
requester, obj["blockchain_balance_unconfirmed_balance"]
129-
)
130-
if obj["blockchain_balance_unconfirmed_balance"]
131-
else None,
132-
locked_balance=CurrencyAmount_from_json(
133-
requester, obj["blockchain_balance_locked_balance"]
134-
)
135-
if obj["blockchain_balance_locked_balance"]
136-
else None,
137-
required_reserve=CurrencyAmount_from_json(
138-
requester, obj["blockchain_balance_required_reserve"]
139-
)
140-
if obj["blockchain_balance_required_reserve"]
141-
else None,
142-
available_balance=CurrencyAmount_from_json(
143-
requester, obj["blockchain_balance_available_balance"]
144-
)
145-
if obj["blockchain_balance_available_balance"]
146-
else None,
117+
total_balance=(
118+
CurrencyAmount_from_json(requester, obj["blockchain_balance_total_balance"])
119+
if obj["blockchain_balance_total_balance"]
120+
else None
121+
),
122+
confirmed_balance=(
123+
CurrencyAmount_from_json(
124+
requester, obj["blockchain_balance_confirmed_balance"]
125+
)
126+
if obj["blockchain_balance_confirmed_balance"]
127+
else None
128+
),
129+
unconfirmed_balance=(
130+
CurrencyAmount_from_json(
131+
requester, obj["blockchain_balance_unconfirmed_balance"]
132+
)
133+
if obj["blockchain_balance_unconfirmed_balance"]
134+
else None
135+
),
136+
locked_balance=(
137+
CurrencyAmount_from_json(
138+
requester, obj["blockchain_balance_locked_balance"]
139+
)
140+
if obj["blockchain_balance_locked_balance"]
141+
else None
142+
),
143+
required_reserve=(
144+
CurrencyAmount_from_json(
145+
requester, obj["blockchain_balance_required_reserve"]
146+
)
147+
if obj["blockchain_balance_required_reserve"]
148+
else None
149+
),
150+
available_balance=(
151+
CurrencyAmount_from_json(
152+
requester, obj["blockchain_balance_available_balance"]
153+
)
154+
if obj["blockchain_balance_available_balance"]
155+
else None
156+
),
147157
)

0 commit comments

Comments
 (0)