Skip to content

Commit

Permalink
Regenerating SDKs following introspection of schemas.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonCWang committed Oct 11, 2024
1 parent ca226e4 commit fb233f7
Show file tree
Hide file tree
Showing 96 changed files with 96 additions and 0 deletions.
1 change: 1 addition & 0 deletions lightspark/objects/AccountToApiTokensConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class AccountToApiTokensConnection(Connection):

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/AccountToChannelsConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class AccountToChannelsConnection(Connection):

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/AccountToPaymentRequestsConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class AccountToPaymentRequestsConnection(Connection):

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/AccountToTransactionsConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

@dataclass
class AccountToTransactionsConnection(Connection):

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/AccountToWalletsConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class AccountToWalletsConnection(Connection):

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/ChannelSnapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@dataclass
class ChannelSnapshot(Entity):

requester: Requester

id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/ChannelToTransactionsConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class ChannelToTransactionsConnection:

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/ClaimUmaInvitationInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class ClaimUmaInvitationInput:

invitation_code: str
"""The unique code that identifies this invitation and was shared by the inviter."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/ClaimUmaInvitationOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class ClaimUmaInvitationOutput:

requester: Requester

invitation_id: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@dataclass
class ClaimUmaInvitationWithIncentivesInput:

invitation_code: str
"""The unique code that identifies this invitation and was shared by the inviter."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class ClaimUmaInvitationWithIncentivesOutput:

requester: Requester

invitation_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

@dataclass
class Connection:

requester: Requester

count: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateApiTokenInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateApiTokenOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class CreateApiTokenOutput:

requester: Requester

api_token: ApiToken
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateInvitationWithIncentivesInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateInvitationWithIncentivesOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class CreateInvitationWithIncentivesOutput:

requester: Requester

invitation_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateInvoiceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@dataclass
class CreateInvoiceInput:

node_id: str
"""The node from which to create the invoice."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateInvoiceOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class CreateInvoiceOutput:

requester: Requester

invoice_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateLnurlInvoiceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class CreateLnurlInvoiceInput:

node_id: str
"""The node from which to create the invoice."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateNodeWalletAddressInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class CreateNodeWalletAddressInput:

node_id: str

def to_json(self) -> Mapping[str, Any]:
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateNodeWalletAddressOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@dataclass
class CreateNodeWalletAddressOutput:

requester: Requester

node_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateTestModeInvoiceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@dataclass
class CreateTestModeInvoiceInput:

local_node_id: str

amount_msats: int
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateTestModeInvoiceOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class CreateTestModeInvoiceOutput:

requester: Requester

encoded_payment_request: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateTestModePaymentInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class CreateTestModePaymentInput:

local_node_id: str
"""The node to where you want to send the payment."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateUmaInvitationInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateUmaInvitationOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class CreateUmaInvitationOutput:

requester: Requester

invitation_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/CreateUmaInvoiceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class CreateUmaInvoiceInput:

node_id: str
"""The node from which to create the invoice."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/DailyLiquidityForecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class DailyLiquidityForecast:

requester: Requester

date: datetime
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/DeclineToSignMessagesInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class DeclineToSignMessagesInput:

payload_ids: List[str]
"""List of payload ids to decline to sign because validation failed."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/DeclineToSignMessagesOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class DeclineToSignMessagesOutput:

requester: Requester

declined_payloads: List[SignablePayload]
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/DeleteApiTokenInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class DeleteApiTokenInput:

api_token_id: str

def to_json(self) -> Mapping[str, Any]:
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/DeleteApiTokenOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class DeleteApiTokenOutput:

requester: Requester

account_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/FailHtlcsInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/FailHtlcsOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class FailHtlcsOutput:

requester: Requester

invoice_id: str
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/FundNodeInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class FundNodeInput:

node_id: str

amount_sats: Optional[int]
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/FundNodeOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class FundNodeOutput:

requester: Requester

amount: CurrencyAmount
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/IdAndSignature.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class IdAndSignature:

id: str
"""The id of the message."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/IncomingPaymentsForInvoiceQueryInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@dataclass
class IncomingPaymentsForInvoiceQueryInput:

invoice_id: str

statuses: Optional[List[TransactionStatus]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class IncomingPaymentsForInvoiceQueryOutput:

requester: Requester

payments: List[IncomingPayment]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@dataclass
class IncomingPaymentsForPaymentHashQueryInput:

payment_hash: str
"""The 32-byte hash of the payment preimage for which to fetch payments"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class IncomingPaymentsForPaymentHashQueryOutput:

requester: Requester

payments: List[IncomingPayment]
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/InvoiceForPaymentHashInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class InvoiceForPaymentHashInput:

payment_hash: str
"""The 32-byte hash of the payment preimage for which to fetch an invoice."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/InvoiceForPaymentHashOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class InvoiceForPaymentHashOutput:

requester: Requester

invoice_id: Optional[str]
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/LightningFeeEstimateForInvoiceInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class LightningFeeEstimateForInvoiceInput:

node_id: str
"""The node from where you want to send the payment."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/LightningFeeEstimateForNodeInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

@dataclass
class LightningFeeEstimateForNodeInput:

node_id: str
"""The node from where you want to send the payment."""

Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/LightningFeeEstimateOutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@dataclass
class LightningFeeEstimateOutput:

requester: Requester

fee_estimate: CurrencyAmount
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/LightsparkNodeStatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/LightsparkNodeToChannelsConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class LightsparkNodeToChannelsConnection(Connection):

requester: Requester

count: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@dataclass
class LightsparkNodeToDailyLiquidityForecastsConnection:

requester: Requester

from_date: datetime
Expand Down
1 change: 1 addition & 0 deletions lightspark/objects/MultiSigAddressValidationParameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

@dataclass
class MultiSigAddressValidationParameters:

requester: Requester

counterparty_funding_pubkey: str
Expand Down
Loading

0 comments on commit fb233f7

Please sign in to comment.