barkd-client 0.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. barkd_client/__init__.py +375 -0
  2. barkd_client/api/__init__.py +13 -0
  3. barkd_client/api/bitcoin_api.py +285 -0
  4. barkd_client/api/boards_api.py +813 -0
  5. barkd_client/api/default_api.py +271 -0
  6. barkd_client/api/exits_api.py +1999 -0
  7. barkd_client/api/fees_api.py +1650 -0
  8. barkd_client/api/lightning_api.py +1389 -0
  9. barkd_client/api/notifications_api.py +285 -0
  10. barkd_client/api/onchain_api.py +2120 -0
  11. barkd_client/api/wallet_api.py +6601 -0
  12. barkd_client/api_client.py +806 -0
  13. barkd_client/api_response.py +21 -0
  14. barkd_client/configuration.py +587 -0
  15. barkd_client/exceptions.py +219 -0
  16. barkd_client/models/__init__.py +172 -0
  17. barkd_client/models/address.py +88 -0
  18. barkd_client/models/ark_address_response.py +88 -0
  19. barkd_client/models/ark_info.py +125 -0
  20. barkd_client/models/bad_request_error.py +88 -0
  21. barkd_client/models/balance.py +104 -0
  22. barkd_client/models/bark_network.py +40 -0
  23. barkd_client/models/bitcoind_auth.py +138 -0
  24. barkd_client/models/bitcoind_auth_one_of.py +92 -0
  25. barkd_client/models/bitcoind_auth_one_of1.py +92 -0
  26. barkd_client/models/bitcoind_auth_one_of1_user_pass.py +90 -0
  27. barkd_client/models/bitcoind_auth_one_of_cookie.py +88 -0
  28. barkd_client/models/block_ref.py +91 -0
  29. barkd_client/models/board_fees.py +93 -0
  30. barkd_client/models/board_request.py +89 -0
  31. barkd_client/models/chain_source_config.py +138 -0
  32. barkd_client/models/chain_source_config_one_of.py +92 -0
  33. barkd_client/models/chain_source_config_one_of1.py +92 -0
  34. barkd_client/models/chain_source_config_one_of1_esplora.py +88 -0
  35. barkd_client/models/chain_source_config_one_of_bitcoind.py +94 -0
  36. barkd_client/models/child_transaction_info.py +98 -0
  37. barkd_client/models/connected_response.py +88 -0
  38. barkd_client/models/create_wallet_request.py +129 -0
  39. barkd_client/models/create_wallet_response.py +88 -0
  40. barkd_client/models/encoded_vtxo_response.py +88 -0
  41. barkd_client/models/exit_awaiting_delta_state.py +97 -0
  42. barkd_client/models/exit_claim_all_request.py +96 -0
  43. barkd_client/models/exit_claim_in_progress_state.py +97 -0
  44. barkd_client/models/exit_claim_response.py +88 -0
  45. barkd_client/models/exit_claim_vtxos_request.py +98 -0
  46. barkd_client/models/exit_claimable_state.py +105 -0
  47. barkd_client/models/exit_claimed_state.py +97 -0
  48. barkd_client/models/exit_error.py +474 -0
  49. barkd_client/models/exit_error_one_of.py +99 -0
  50. barkd_client/models/exit_error_one_of1.py +100 -0
  51. barkd_client/models/exit_error_one_of10.py +99 -0
  52. barkd_client/models/exit_error_one_of11.py +97 -0
  53. barkd_client/models/exit_error_one_of12.py +99 -0
  54. barkd_client/models/exit_error_one_of13.py +100 -0
  55. barkd_client/models/exit_error_one_of14.py +104 -0
  56. barkd_client/models/exit_error_one_of15.py +97 -0
  57. barkd_client/models/exit_error_one_of16.py +105 -0
  58. barkd_client/models/exit_error_one_of17.py +100 -0
  59. barkd_client/models/exit_error_one_of18.py +97 -0
  60. barkd_client/models/exit_error_one_of19.py +97 -0
  61. barkd_client/models/exit_error_one_of2.py +95 -0
  62. barkd_client/models/exit_error_one_of20.py +97 -0
  63. barkd_client/models/exit_error_one_of21.py +97 -0
  64. barkd_client/models/exit_error_one_of22.py +97 -0
  65. barkd_client/models/exit_error_one_of23.py +99 -0
  66. barkd_client/models/exit_error_one_of24.py +97 -0
  67. barkd_client/models/exit_error_one_of25.py +97 -0
  68. barkd_client/models/exit_error_one_of3.py +100 -0
  69. barkd_client/models/exit_error_one_of4.py +97 -0
  70. barkd_client/models/exit_error_one_of5.py +97 -0
  71. barkd_client/models/exit_error_one_of6.py +97 -0
  72. barkd_client/models/exit_error_one_of7.py +99 -0
  73. barkd_client/models/exit_error_one_of8.py +97 -0
  74. barkd_client/models/exit_error_one_of9.py +100 -0
  75. barkd_client/models/exit_processing_state.py +99 -0
  76. barkd_client/models/exit_progress_request.py +101 -0
  77. barkd_client/models/exit_progress_response.py +106 -0
  78. barkd_client/models/exit_progress_status.py +105 -0
  79. barkd_client/models/exit_start_request.py +88 -0
  80. barkd_client/models/exit_start_response.py +88 -0
  81. barkd_client/models/exit_start_state.py +89 -0
  82. barkd_client/models/exit_state.py +194 -0
  83. barkd_client/models/exit_state_one_of.py +98 -0
  84. barkd_client/models/exit_state_one_of1.py +108 -0
  85. barkd_client/models/exit_state_one_of2.py +106 -0
  86. barkd_client/models/exit_state_one_of3.py +109 -0
  87. barkd_client/models/exit_state_one_of4.py +106 -0
  88. barkd_client/models/exit_state_one_of5.py +106 -0
  89. barkd_client/models/exit_status_request.py +100 -0
  90. barkd_client/models/exit_transaction_package.py +103 -0
  91. barkd_client/models/exit_transaction_status.py +118 -0
  92. barkd_client/models/exit_tx.py +94 -0
  93. barkd_client/models/exit_tx_origin.py +152 -0
  94. barkd_client/models/exit_tx_origin_one_of.py +106 -0
  95. barkd_client/models/exit_tx_origin_one_of1.py +102 -0
  96. barkd_client/models/exit_tx_origin_one_of2.py +101 -0
  97. barkd_client/models/exit_tx_status.py +208 -0
  98. barkd_client/models/exit_tx_status_one_of.py +95 -0
  99. barkd_client/models/exit_tx_status_one_of1.py +97 -0
  100. barkd_client/models/exit_tx_status_one_of2.py +95 -0
  101. barkd_client/models/exit_tx_status_one_of3.py +102 -0
  102. barkd_client/models/exit_tx_status_one_of4.py +103 -0
  103. barkd_client/models/exit_tx_status_one_of5.py +103 -0
  104. barkd_client/models/exit_tx_status_one_of6.py +109 -0
  105. barkd_client/models/fee_estimate_query.py +89 -0
  106. barkd_client/models/fee_estimate_response.py +95 -0
  107. barkd_client/models/fee_schedule.py +116 -0
  108. barkd_client/models/import_vtxo_request.py +88 -0
  109. barkd_client/models/internal_server_error.py +88 -0
  110. barkd_client/models/invoice_info.py +88 -0
  111. barkd_client/models/lightning_invoice_request.py +96 -0
  112. barkd_client/models/lightning_pay_request.py +103 -0
  113. barkd_client/models/lightning_pay_response.py +88 -0
  114. barkd_client/models/lightning_receive_fees.py +91 -0
  115. barkd_client/models/lightning_receive_info.py +120 -0
  116. barkd_client/models/lightning_send_fees.py +101 -0
  117. barkd_client/models/mailbox_sync_response.py +89 -0
  118. barkd_client/models/movement.py +137 -0
  119. barkd_client/models/movement_destination.py +95 -0
  120. barkd_client/models/movement_status.py +40 -0
  121. barkd_client/models/movement_subsystem.py +90 -0
  122. barkd_client/models/movement_timestamp.py +98 -0
  123. barkd_client/models/next_round_start.py +89 -0
  124. barkd_client/models/not_found_error.py +90 -0
  125. barkd_client/models/offboard_all_fee_estimate_query.py +88 -0
  126. barkd_client/models/offboard_all_request.py +93 -0
  127. barkd_client/models/offboard_fees.py +101 -0
  128. barkd_client/models/offboard_result.py +88 -0
  129. barkd_client/models/offboard_vtxos_request.py +95 -0
  130. barkd_client/models/onchain_balance.py +99 -0
  131. barkd_client/models/onchain_drain_request.py +88 -0
  132. barkd_client/models/onchain_fee_rates_response.py +93 -0
  133. barkd_client/models/onchain_send_many_request.py +95 -0
  134. barkd_client/models/onchain_send_request.py +91 -0
  135. barkd_client/models/payment_method.py +97 -0
  136. barkd_client/models/pending_board_info.py +99 -0
  137. barkd_client/models/pending_round_info.py +122 -0
  138. barkd_client/models/ppm_expiry_fee_entry.py +91 -0
  139. barkd_client/models/refresh_fees.py +99 -0
  140. barkd_client/models/refresh_request.py +88 -0
  141. barkd_client/models/round_participation_info.py +98 -0
  142. barkd_client/models/round_status.py +194 -0
  143. barkd_client/models/round_status_one_of.py +97 -0
  144. barkd_client/models/round_status_one_of1.py +97 -0
  145. barkd_client/models/round_status_one_of2.py +97 -0
  146. barkd_client/models/round_status_one_of3.py +95 -0
  147. barkd_client/models/round_status_one_of4.py +97 -0
  148. barkd_client/models/round_status_one_of5.py +95 -0
  149. barkd_client/models/send.py +88 -0
  150. barkd_client/models/send_onchain_fee_estimate_query.py +91 -0
  151. barkd_client/models/send_onchain_request.py +91 -0
  152. barkd_client/models/send_request.py +103 -0
  153. barkd_client/models/send_response.py +88 -0
  154. barkd_client/models/tip_response.py +89 -0
  155. barkd_client/models/transaction_info.py +90 -0
  156. barkd_client/models/utxo_info.py +98 -0
  157. barkd_client/models/vtxo_info.py +110 -0
  158. barkd_client/models/vtxo_request_info.py +93 -0
  159. barkd_client/models/vtxo_state_info.py +152 -0
  160. barkd_client/models/vtxo_state_info_one_of.py +95 -0
  161. barkd_client/models/vtxo_state_info_one_of1.py +95 -0
  162. barkd_client/models/vtxo_state_info_one_of2.py +98 -0
  163. barkd_client/models/vtxos_query.py +93 -0
  164. barkd_client/models/wallet_delete_request.py +90 -0
  165. barkd_client/models/wallet_delete_response.py +90 -0
  166. barkd_client/models/wallet_exists_response.py +93 -0
  167. barkd_client/models/wallet_notification.py +152 -0
  168. barkd_client/models/wallet_notification_one_of.py +101 -0
  169. barkd_client/models/wallet_notification_one_of1.py +101 -0
  170. barkd_client/models/wallet_notification_one_of2.py +95 -0
  171. barkd_client/models/wallet_vtxo_info.py +116 -0
  172. barkd_client/py.typed +0 -0
  173. barkd_client/rest.py +264 -0
  174. barkd_client-0.1.4.dist-info/METADATA +114 -0
  175. barkd_client-0.1.4.dist-info/RECORD +177 -0
  176. barkd_client-0.1.4.dist-info/WHEEL +5 -0
  177. barkd_client-0.1.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,375 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ barkd REST API
7
+
8
+ A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis.
9
+
10
+ The version of the OpenAPI document: 0.1.4
11
+ Contact: hello@second.tech
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "0.1.4"
19
+
20
+ # Define package exports
21
+ __all__ = [
22
+ "BitcoinApi",
23
+ "BoardsApi",
24
+ "DefaultApi",
25
+ "ExitsApi",
26
+ "FeesApi",
27
+ "LightningApi",
28
+ "NotificationsApi",
29
+ "OnchainApi",
30
+ "WalletApi",
31
+ "ApiResponse",
32
+ "ApiClient",
33
+ "Configuration",
34
+ "OpenApiException",
35
+ "ApiTypeError",
36
+ "ApiValueError",
37
+ "ApiKeyError",
38
+ "ApiAttributeError",
39
+ "ApiException",
40
+ "Address",
41
+ "ArkAddressResponse",
42
+ "ArkInfo",
43
+ "BadRequestError",
44
+ "Balance",
45
+ "BarkNetwork",
46
+ "BitcoindAuth",
47
+ "BitcoindAuthOneOf",
48
+ "BitcoindAuthOneOf1",
49
+ "BitcoindAuthOneOf1UserPass",
50
+ "BitcoindAuthOneOfCookie",
51
+ "BlockRef",
52
+ "BoardFees",
53
+ "BoardRequest",
54
+ "ChainSourceConfig",
55
+ "ChainSourceConfigOneOf",
56
+ "ChainSourceConfigOneOf1",
57
+ "ChainSourceConfigOneOf1Esplora",
58
+ "ChainSourceConfigOneOfBitcoind",
59
+ "ChildTransactionInfo",
60
+ "ConnectedResponse",
61
+ "CreateWalletRequest",
62
+ "CreateWalletResponse",
63
+ "EncodedVtxoResponse",
64
+ "ExitAwaitingDeltaState",
65
+ "ExitClaimAllRequest",
66
+ "ExitClaimInProgressState",
67
+ "ExitClaimResponse",
68
+ "ExitClaimVtxosRequest",
69
+ "ExitClaimableState",
70
+ "ExitClaimedState",
71
+ "ExitError",
72
+ "ExitErrorOneOf",
73
+ "ExitErrorOneOf1",
74
+ "ExitErrorOneOf10",
75
+ "ExitErrorOneOf11",
76
+ "ExitErrorOneOf12",
77
+ "ExitErrorOneOf13",
78
+ "ExitErrorOneOf14",
79
+ "ExitErrorOneOf15",
80
+ "ExitErrorOneOf16",
81
+ "ExitErrorOneOf17",
82
+ "ExitErrorOneOf18",
83
+ "ExitErrorOneOf19",
84
+ "ExitErrorOneOf2",
85
+ "ExitErrorOneOf20",
86
+ "ExitErrorOneOf21",
87
+ "ExitErrorOneOf22",
88
+ "ExitErrorOneOf23",
89
+ "ExitErrorOneOf24",
90
+ "ExitErrorOneOf25",
91
+ "ExitErrorOneOf3",
92
+ "ExitErrorOneOf4",
93
+ "ExitErrorOneOf5",
94
+ "ExitErrorOneOf6",
95
+ "ExitErrorOneOf7",
96
+ "ExitErrorOneOf8",
97
+ "ExitErrorOneOf9",
98
+ "ExitProcessingState",
99
+ "ExitProgressRequest",
100
+ "ExitProgressResponse",
101
+ "ExitProgressStatus",
102
+ "ExitStartRequest",
103
+ "ExitStartResponse",
104
+ "ExitStartState",
105
+ "ExitState",
106
+ "ExitStateOneOf",
107
+ "ExitStateOneOf1",
108
+ "ExitStateOneOf2",
109
+ "ExitStateOneOf3",
110
+ "ExitStateOneOf4",
111
+ "ExitStateOneOf5",
112
+ "ExitStatusRequest",
113
+ "ExitTransactionPackage",
114
+ "ExitTransactionStatus",
115
+ "ExitTx",
116
+ "ExitTxOrigin",
117
+ "ExitTxOriginOneOf",
118
+ "ExitTxOriginOneOf1",
119
+ "ExitTxOriginOneOf2",
120
+ "ExitTxStatus",
121
+ "ExitTxStatusOneOf",
122
+ "ExitTxStatusOneOf1",
123
+ "ExitTxStatusOneOf2",
124
+ "ExitTxStatusOneOf3",
125
+ "ExitTxStatusOneOf4",
126
+ "ExitTxStatusOneOf5",
127
+ "ExitTxStatusOneOf6",
128
+ "FeeEstimateQuery",
129
+ "FeeEstimateResponse",
130
+ "FeeSchedule",
131
+ "ImportVtxoRequest",
132
+ "InternalServerError",
133
+ "InvoiceInfo",
134
+ "LightningInvoiceRequest",
135
+ "LightningPayRequest",
136
+ "LightningPayResponse",
137
+ "LightningReceiveFees",
138
+ "LightningReceiveInfo",
139
+ "LightningSendFees",
140
+ "MailboxSyncResponse",
141
+ "Movement",
142
+ "MovementDestination",
143
+ "MovementStatus",
144
+ "MovementSubsystem",
145
+ "MovementTimestamp",
146
+ "NextRoundStart",
147
+ "NotFoundError",
148
+ "OffboardAllFeeEstimateQuery",
149
+ "OffboardAllRequest",
150
+ "OffboardFees",
151
+ "OffboardResult",
152
+ "OffboardVtxosRequest",
153
+ "OnchainBalance",
154
+ "OnchainDrainRequest",
155
+ "OnchainFeeRatesResponse",
156
+ "OnchainSendManyRequest",
157
+ "OnchainSendRequest",
158
+ "PaymentMethod",
159
+ "PendingBoardInfo",
160
+ "PendingRoundInfo",
161
+ "PpmExpiryFeeEntry",
162
+ "RefreshFees",
163
+ "RefreshRequest",
164
+ "RoundParticipationInfo",
165
+ "RoundStatus",
166
+ "RoundStatusOneOf",
167
+ "RoundStatusOneOf1",
168
+ "RoundStatusOneOf2",
169
+ "RoundStatusOneOf3",
170
+ "RoundStatusOneOf4",
171
+ "RoundStatusOneOf5",
172
+ "Send",
173
+ "SendOnchainFeeEstimateQuery",
174
+ "SendOnchainRequest",
175
+ "SendRequest",
176
+ "SendResponse",
177
+ "TipResponse",
178
+ "TransactionInfo",
179
+ "UtxoInfo",
180
+ "VtxoInfo",
181
+ "VtxoRequestInfo",
182
+ "VtxoStateInfo",
183
+ "VtxoStateInfoOneOf",
184
+ "VtxoStateInfoOneOf1",
185
+ "VtxoStateInfoOneOf2",
186
+ "VtxosQuery",
187
+ "WalletDeleteRequest",
188
+ "WalletDeleteResponse",
189
+ "WalletExistsResponse",
190
+ "WalletNotification",
191
+ "WalletNotificationOneOf",
192
+ "WalletNotificationOneOf1",
193
+ "WalletNotificationOneOf2",
194
+ "WalletVtxoInfo",
195
+ ]
196
+
197
+ # import apis into sdk package
198
+ from barkd_client.api.bitcoin_api import BitcoinApi as BitcoinApi
199
+ from barkd_client.api.boards_api import BoardsApi as BoardsApi
200
+ from barkd_client.api.default_api import DefaultApi as DefaultApi
201
+ from barkd_client.api.exits_api import ExitsApi as ExitsApi
202
+ from barkd_client.api.fees_api import FeesApi as FeesApi
203
+ from barkd_client.api.lightning_api import LightningApi as LightningApi
204
+ from barkd_client.api.notifications_api import NotificationsApi as NotificationsApi
205
+ from barkd_client.api.onchain_api import OnchainApi as OnchainApi
206
+ from barkd_client.api.wallet_api import WalletApi as WalletApi
207
+
208
+ # import ApiClient
209
+ from barkd_client.api_response import ApiResponse as ApiResponse
210
+ from barkd_client.api_client import ApiClient as ApiClient
211
+ from barkd_client.configuration import Configuration as Configuration
212
+ from barkd_client.exceptions import OpenApiException as OpenApiException
213
+ from barkd_client.exceptions import ApiTypeError as ApiTypeError
214
+ from barkd_client.exceptions import ApiValueError as ApiValueError
215
+ from barkd_client.exceptions import ApiKeyError as ApiKeyError
216
+ from barkd_client.exceptions import ApiAttributeError as ApiAttributeError
217
+ from barkd_client.exceptions import ApiException as ApiException
218
+
219
+ # import models into sdk package
220
+ from barkd_client.models.address import Address as Address
221
+ from barkd_client.models.ark_address_response import ArkAddressResponse as ArkAddressResponse
222
+ from barkd_client.models.ark_info import ArkInfo as ArkInfo
223
+ from barkd_client.models.bad_request_error import BadRequestError as BadRequestError
224
+ from barkd_client.models.balance import Balance as Balance
225
+ from barkd_client.models.bark_network import BarkNetwork as BarkNetwork
226
+ from barkd_client.models.bitcoind_auth import BitcoindAuth as BitcoindAuth
227
+ from barkd_client.models.bitcoind_auth_one_of import BitcoindAuthOneOf as BitcoindAuthOneOf
228
+ from barkd_client.models.bitcoind_auth_one_of1 import BitcoindAuthOneOf1 as BitcoindAuthOneOf1
229
+ from barkd_client.models.bitcoind_auth_one_of1_user_pass import BitcoindAuthOneOf1UserPass as BitcoindAuthOneOf1UserPass
230
+ from barkd_client.models.bitcoind_auth_one_of_cookie import BitcoindAuthOneOfCookie as BitcoindAuthOneOfCookie
231
+ from barkd_client.models.block_ref import BlockRef as BlockRef
232
+ from barkd_client.models.board_fees import BoardFees as BoardFees
233
+ from barkd_client.models.board_request import BoardRequest as BoardRequest
234
+ from barkd_client.models.chain_source_config import ChainSourceConfig as ChainSourceConfig
235
+ from barkd_client.models.chain_source_config_one_of import ChainSourceConfigOneOf as ChainSourceConfigOneOf
236
+ from barkd_client.models.chain_source_config_one_of1 import ChainSourceConfigOneOf1 as ChainSourceConfigOneOf1
237
+ from barkd_client.models.chain_source_config_one_of1_esplora import ChainSourceConfigOneOf1Esplora as ChainSourceConfigOneOf1Esplora
238
+ from barkd_client.models.chain_source_config_one_of_bitcoind import ChainSourceConfigOneOfBitcoind as ChainSourceConfigOneOfBitcoind
239
+ from barkd_client.models.child_transaction_info import ChildTransactionInfo as ChildTransactionInfo
240
+ from barkd_client.models.connected_response import ConnectedResponse as ConnectedResponse
241
+ from barkd_client.models.create_wallet_request import CreateWalletRequest as CreateWalletRequest
242
+ from barkd_client.models.create_wallet_response import CreateWalletResponse as CreateWalletResponse
243
+ from barkd_client.models.encoded_vtxo_response import EncodedVtxoResponse as EncodedVtxoResponse
244
+ from barkd_client.models.exit_awaiting_delta_state import ExitAwaitingDeltaState as ExitAwaitingDeltaState
245
+ from barkd_client.models.exit_claim_all_request import ExitClaimAllRequest as ExitClaimAllRequest
246
+ from barkd_client.models.exit_claim_in_progress_state import ExitClaimInProgressState as ExitClaimInProgressState
247
+ from barkd_client.models.exit_claim_response import ExitClaimResponse as ExitClaimResponse
248
+ from barkd_client.models.exit_claim_vtxos_request import ExitClaimVtxosRequest as ExitClaimVtxosRequest
249
+ from barkd_client.models.exit_claimable_state import ExitClaimableState as ExitClaimableState
250
+ from barkd_client.models.exit_claimed_state import ExitClaimedState as ExitClaimedState
251
+ from barkd_client.models.exit_error import ExitError as ExitError
252
+ from barkd_client.models.exit_error_one_of import ExitErrorOneOf as ExitErrorOneOf
253
+ from barkd_client.models.exit_error_one_of1 import ExitErrorOneOf1 as ExitErrorOneOf1
254
+ from barkd_client.models.exit_error_one_of10 import ExitErrorOneOf10 as ExitErrorOneOf10
255
+ from barkd_client.models.exit_error_one_of11 import ExitErrorOneOf11 as ExitErrorOneOf11
256
+ from barkd_client.models.exit_error_one_of12 import ExitErrorOneOf12 as ExitErrorOneOf12
257
+ from barkd_client.models.exit_error_one_of13 import ExitErrorOneOf13 as ExitErrorOneOf13
258
+ from barkd_client.models.exit_error_one_of14 import ExitErrorOneOf14 as ExitErrorOneOf14
259
+ from barkd_client.models.exit_error_one_of15 import ExitErrorOneOf15 as ExitErrorOneOf15
260
+ from barkd_client.models.exit_error_one_of16 import ExitErrorOneOf16 as ExitErrorOneOf16
261
+ from barkd_client.models.exit_error_one_of17 import ExitErrorOneOf17 as ExitErrorOneOf17
262
+ from barkd_client.models.exit_error_one_of18 import ExitErrorOneOf18 as ExitErrorOneOf18
263
+ from barkd_client.models.exit_error_one_of19 import ExitErrorOneOf19 as ExitErrorOneOf19
264
+ from barkd_client.models.exit_error_one_of2 import ExitErrorOneOf2 as ExitErrorOneOf2
265
+ from barkd_client.models.exit_error_one_of20 import ExitErrorOneOf20 as ExitErrorOneOf20
266
+ from barkd_client.models.exit_error_one_of21 import ExitErrorOneOf21 as ExitErrorOneOf21
267
+ from barkd_client.models.exit_error_one_of22 import ExitErrorOneOf22 as ExitErrorOneOf22
268
+ from barkd_client.models.exit_error_one_of23 import ExitErrorOneOf23 as ExitErrorOneOf23
269
+ from barkd_client.models.exit_error_one_of24 import ExitErrorOneOf24 as ExitErrorOneOf24
270
+ from barkd_client.models.exit_error_one_of25 import ExitErrorOneOf25 as ExitErrorOneOf25
271
+ from barkd_client.models.exit_error_one_of3 import ExitErrorOneOf3 as ExitErrorOneOf3
272
+ from barkd_client.models.exit_error_one_of4 import ExitErrorOneOf4 as ExitErrorOneOf4
273
+ from barkd_client.models.exit_error_one_of5 import ExitErrorOneOf5 as ExitErrorOneOf5
274
+ from barkd_client.models.exit_error_one_of6 import ExitErrorOneOf6 as ExitErrorOneOf6
275
+ from barkd_client.models.exit_error_one_of7 import ExitErrorOneOf7 as ExitErrorOneOf7
276
+ from barkd_client.models.exit_error_one_of8 import ExitErrorOneOf8 as ExitErrorOneOf8
277
+ from barkd_client.models.exit_error_one_of9 import ExitErrorOneOf9 as ExitErrorOneOf9
278
+ from barkd_client.models.exit_processing_state import ExitProcessingState as ExitProcessingState
279
+ from barkd_client.models.exit_progress_request import ExitProgressRequest as ExitProgressRequest
280
+ from barkd_client.models.exit_progress_response import ExitProgressResponse as ExitProgressResponse
281
+ from barkd_client.models.exit_progress_status import ExitProgressStatus as ExitProgressStatus
282
+ from barkd_client.models.exit_start_request import ExitStartRequest as ExitStartRequest
283
+ from barkd_client.models.exit_start_response import ExitStartResponse as ExitStartResponse
284
+ from barkd_client.models.exit_start_state import ExitStartState as ExitStartState
285
+ from barkd_client.models.exit_state import ExitState as ExitState
286
+ from barkd_client.models.exit_state_one_of import ExitStateOneOf as ExitStateOneOf
287
+ from barkd_client.models.exit_state_one_of1 import ExitStateOneOf1 as ExitStateOneOf1
288
+ from barkd_client.models.exit_state_one_of2 import ExitStateOneOf2 as ExitStateOneOf2
289
+ from barkd_client.models.exit_state_one_of3 import ExitStateOneOf3 as ExitStateOneOf3
290
+ from barkd_client.models.exit_state_one_of4 import ExitStateOneOf4 as ExitStateOneOf4
291
+ from barkd_client.models.exit_state_one_of5 import ExitStateOneOf5 as ExitStateOneOf5
292
+ from barkd_client.models.exit_status_request import ExitStatusRequest as ExitStatusRequest
293
+ from barkd_client.models.exit_transaction_package import ExitTransactionPackage as ExitTransactionPackage
294
+ from barkd_client.models.exit_transaction_status import ExitTransactionStatus as ExitTransactionStatus
295
+ from barkd_client.models.exit_tx import ExitTx as ExitTx
296
+ from barkd_client.models.exit_tx_origin import ExitTxOrigin as ExitTxOrigin
297
+ from barkd_client.models.exit_tx_origin_one_of import ExitTxOriginOneOf as ExitTxOriginOneOf
298
+ from barkd_client.models.exit_tx_origin_one_of1 import ExitTxOriginOneOf1 as ExitTxOriginOneOf1
299
+ from barkd_client.models.exit_tx_origin_one_of2 import ExitTxOriginOneOf2 as ExitTxOriginOneOf2
300
+ from barkd_client.models.exit_tx_status import ExitTxStatus as ExitTxStatus
301
+ from barkd_client.models.exit_tx_status_one_of import ExitTxStatusOneOf as ExitTxStatusOneOf
302
+ from barkd_client.models.exit_tx_status_one_of1 import ExitTxStatusOneOf1 as ExitTxStatusOneOf1
303
+ from barkd_client.models.exit_tx_status_one_of2 import ExitTxStatusOneOf2 as ExitTxStatusOneOf2
304
+ from barkd_client.models.exit_tx_status_one_of3 import ExitTxStatusOneOf3 as ExitTxStatusOneOf3
305
+ from barkd_client.models.exit_tx_status_one_of4 import ExitTxStatusOneOf4 as ExitTxStatusOneOf4
306
+ from barkd_client.models.exit_tx_status_one_of5 import ExitTxStatusOneOf5 as ExitTxStatusOneOf5
307
+ from barkd_client.models.exit_tx_status_one_of6 import ExitTxStatusOneOf6 as ExitTxStatusOneOf6
308
+ from barkd_client.models.fee_estimate_query import FeeEstimateQuery as FeeEstimateQuery
309
+ from barkd_client.models.fee_estimate_response import FeeEstimateResponse as FeeEstimateResponse
310
+ from barkd_client.models.fee_schedule import FeeSchedule as FeeSchedule
311
+ from barkd_client.models.import_vtxo_request import ImportVtxoRequest as ImportVtxoRequest
312
+ from barkd_client.models.internal_server_error import InternalServerError as InternalServerError
313
+ from barkd_client.models.invoice_info import InvoiceInfo as InvoiceInfo
314
+ from barkd_client.models.lightning_invoice_request import LightningInvoiceRequest as LightningInvoiceRequest
315
+ from barkd_client.models.lightning_pay_request import LightningPayRequest as LightningPayRequest
316
+ from barkd_client.models.lightning_pay_response import LightningPayResponse as LightningPayResponse
317
+ from barkd_client.models.lightning_receive_fees import LightningReceiveFees as LightningReceiveFees
318
+ from barkd_client.models.lightning_receive_info import LightningReceiveInfo as LightningReceiveInfo
319
+ from barkd_client.models.lightning_send_fees import LightningSendFees as LightningSendFees
320
+ from barkd_client.models.mailbox_sync_response import MailboxSyncResponse as MailboxSyncResponse
321
+ from barkd_client.models.movement import Movement as Movement
322
+ from barkd_client.models.movement_destination import MovementDestination as MovementDestination
323
+ from barkd_client.models.movement_status import MovementStatus as MovementStatus
324
+ from barkd_client.models.movement_subsystem import MovementSubsystem as MovementSubsystem
325
+ from barkd_client.models.movement_timestamp import MovementTimestamp as MovementTimestamp
326
+ from barkd_client.models.next_round_start import NextRoundStart as NextRoundStart
327
+ from barkd_client.models.not_found_error import NotFoundError as NotFoundError
328
+ from barkd_client.models.offboard_all_fee_estimate_query import OffboardAllFeeEstimateQuery as OffboardAllFeeEstimateQuery
329
+ from barkd_client.models.offboard_all_request import OffboardAllRequest as OffboardAllRequest
330
+ from barkd_client.models.offboard_fees import OffboardFees as OffboardFees
331
+ from barkd_client.models.offboard_result import OffboardResult as OffboardResult
332
+ from barkd_client.models.offboard_vtxos_request import OffboardVtxosRequest as OffboardVtxosRequest
333
+ from barkd_client.models.onchain_balance import OnchainBalance as OnchainBalance
334
+ from barkd_client.models.onchain_drain_request import OnchainDrainRequest as OnchainDrainRequest
335
+ from barkd_client.models.onchain_fee_rates_response import OnchainFeeRatesResponse as OnchainFeeRatesResponse
336
+ from barkd_client.models.onchain_send_many_request import OnchainSendManyRequest as OnchainSendManyRequest
337
+ from barkd_client.models.onchain_send_request import OnchainSendRequest as OnchainSendRequest
338
+ from barkd_client.models.payment_method import PaymentMethod as PaymentMethod
339
+ from barkd_client.models.pending_board_info import PendingBoardInfo as PendingBoardInfo
340
+ from barkd_client.models.pending_round_info import PendingRoundInfo as PendingRoundInfo
341
+ from barkd_client.models.ppm_expiry_fee_entry import PpmExpiryFeeEntry as PpmExpiryFeeEntry
342
+ from barkd_client.models.refresh_fees import RefreshFees as RefreshFees
343
+ from barkd_client.models.refresh_request import RefreshRequest as RefreshRequest
344
+ from barkd_client.models.round_participation_info import RoundParticipationInfo as RoundParticipationInfo
345
+ from barkd_client.models.round_status import RoundStatus as RoundStatus
346
+ from barkd_client.models.round_status_one_of import RoundStatusOneOf as RoundStatusOneOf
347
+ from barkd_client.models.round_status_one_of1 import RoundStatusOneOf1 as RoundStatusOneOf1
348
+ from barkd_client.models.round_status_one_of2 import RoundStatusOneOf2 as RoundStatusOneOf2
349
+ from barkd_client.models.round_status_one_of3 import RoundStatusOneOf3 as RoundStatusOneOf3
350
+ from barkd_client.models.round_status_one_of4 import RoundStatusOneOf4 as RoundStatusOneOf4
351
+ from barkd_client.models.round_status_one_of5 import RoundStatusOneOf5 as RoundStatusOneOf5
352
+ from barkd_client.models.send import Send as Send
353
+ from barkd_client.models.send_onchain_fee_estimate_query import SendOnchainFeeEstimateQuery as SendOnchainFeeEstimateQuery
354
+ from barkd_client.models.send_onchain_request import SendOnchainRequest as SendOnchainRequest
355
+ from barkd_client.models.send_request import SendRequest as SendRequest
356
+ from barkd_client.models.send_response import SendResponse as SendResponse
357
+ from barkd_client.models.tip_response import TipResponse as TipResponse
358
+ from barkd_client.models.transaction_info import TransactionInfo as TransactionInfo
359
+ from barkd_client.models.utxo_info import UtxoInfo as UtxoInfo
360
+ from barkd_client.models.vtxo_info import VtxoInfo as VtxoInfo
361
+ from barkd_client.models.vtxo_request_info import VtxoRequestInfo as VtxoRequestInfo
362
+ from barkd_client.models.vtxo_state_info import VtxoStateInfo as VtxoStateInfo
363
+ from barkd_client.models.vtxo_state_info_one_of import VtxoStateInfoOneOf as VtxoStateInfoOneOf
364
+ from barkd_client.models.vtxo_state_info_one_of1 import VtxoStateInfoOneOf1 as VtxoStateInfoOneOf1
365
+ from barkd_client.models.vtxo_state_info_one_of2 import VtxoStateInfoOneOf2 as VtxoStateInfoOneOf2
366
+ from barkd_client.models.vtxos_query import VtxosQuery as VtxosQuery
367
+ from barkd_client.models.wallet_delete_request import WalletDeleteRequest as WalletDeleteRequest
368
+ from barkd_client.models.wallet_delete_response import WalletDeleteResponse as WalletDeleteResponse
369
+ from barkd_client.models.wallet_exists_response import WalletExistsResponse as WalletExistsResponse
370
+ from barkd_client.models.wallet_notification import WalletNotification as WalletNotification
371
+ from barkd_client.models.wallet_notification_one_of import WalletNotificationOneOf as WalletNotificationOneOf
372
+ from barkd_client.models.wallet_notification_one_of1 import WalletNotificationOneOf1 as WalletNotificationOneOf1
373
+ from barkd_client.models.wallet_notification_one_of2 import WalletNotificationOneOf2 as WalletNotificationOneOf2
374
+ from barkd_client.models.wallet_vtxo_info import WalletVtxoInfo as WalletVtxoInfo
375
+
@@ -0,0 +1,13 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from barkd_client.api.bitcoin_api import BitcoinApi
5
+ from barkd_client.api.boards_api import BoardsApi
6
+ from barkd_client.api.default_api import DefaultApi
7
+ from barkd_client.api.exits_api import ExitsApi
8
+ from barkd_client.api.fees_api import FeesApi
9
+ from barkd_client.api.lightning_api import LightningApi
10
+ from barkd_client.api.notifications_api import NotificationsApi
11
+ from barkd_client.api.onchain_api import OnchainApi
12
+ from barkd_client.api.wallet_api import WalletApi
13
+
@@ -0,0 +1,285 @@
1
+ """
2
+ barkd REST API
3
+
4
+ A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis.
5
+
6
+ The version of the OpenAPI document: 0.1.4
7
+ Contact: hello@second.tech
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from barkd_client.models.tip_response import TipResponse
20
+
21
+ from barkd_client.api_client import ApiClient, RequestSerialized
22
+ from barkd_client.api_response import ApiResponse
23
+ from barkd_client.rest import RESTResponseType
24
+
25
+
26
+ class BitcoinApi:
27
+ """NOTE: This class is auto generated by OpenAPI Generator
28
+ Ref: https://openapi-generator.tech
29
+
30
+ Do not edit the class manually.
31
+ """
32
+
33
+ def __init__(self, api_client=None) -> None:
34
+ if api_client is None:
35
+ api_client = ApiClient.get_default()
36
+ self.api_client = api_client
37
+
38
+
39
+ @validate_call
40
+ def tip(
41
+ self,
42
+ _request_timeout: Union[
43
+ None,
44
+ Annotated[StrictFloat, Field(gt=0)],
45
+ Tuple[
46
+ Annotated[StrictFloat, Field(gt=0)],
47
+ Annotated[StrictFloat, Field(gt=0)]
48
+ ]
49
+ ] = None,
50
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
51
+ _content_type: Optional[StrictStr] = None,
52
+ _headers: Optional[Dict[StrictStr, Any]] = None,
53
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
+ ) -> TipResponse:
55
+ """Get bitcoin tip height
56
+
57
+ Queries the wallet's chain source for the block height of the latest block on the best chain.
58
+
59
+ :param _request_timeout: timeout setting for this request. If one
60
+ number provided, it will be total request
61
+ timeout. It can also be a pair (tuple) of
62
+ (connection, read) timeouts.
63
+ :type _request_timeout: int, tuple(int, int), optional
64
+ :param _request_auth: set to override the auth_settings for an a single
65
+ request; this effectively ignores the
66
+ authentication in the spec for a single request.
67
+ :type _request_auth: dict, optional
68
+ :param _content_type: force content-type for the request.
69
+ :type _content_type: str, Optional
70
+ :param _headers: set to override the headers for a single
71
+ request; this effectively ignores the headers
72
+ in the spec for a single request.
73
+ :type _headers: dict, optional
74
+ :param _host_index: set to override the host_index for a single
75
+ request; this effectively ignores the host_index
76
+ in the spec for a single request.
77
+ :type _host_index: int, optional
78
+ :return: Returns the result object.
79
+ """ # noqa: E501
80
+
81
+ _param = self._tip_serialize(
82
+ _request_auth=_request_auth,
83
+ _content_type=_content_type,
84
+ _headers=_headers,
85
+ _host_index=_host_index
86
+ )
87
+
88
+ _response_types_map: Dict[str, Optional[str]] = {
89
+ '200': "TipResponse",
90
+ '500': "InternalServerError",
91
+ }
92
+ response_data = self.api_client.call_api(
93
+ *_param,
94
+ _request_timeout=_request_timeout
95
+ )
96
+ response_data.read()
97
+ return self.api_client.response_deserialize(
98
+ response_data=response_data,
99
+ response_types_map=_response_types_map,
100
+ ).data
101
+
102
+
103
+ @validate_call
104
+ def tip_with_http_info(
105
+ self,
106
+ _request_timeout: Union[
107
+ None,
108
+ Annotated[StrictFloat, Field(gt=0)],
109
+ Tuple[
110
+ Annotated[StrictFloat, Field(gt=0)],
111
+ Annotated[StrictFloat, Field(gt=0)]
112
+ ]
113
+ ] = None,
114
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
115
+ _content_type: Optional[StrictStr] = None,
116
+ _headers: Optional[Dict[StrictStr, Any]] = None,
117
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
118
+ ) -> ApiResponse[TipResponse]:
119
+ """Get bitcoin tip height
120
+
121
+ Queries the wallet's chain source for the block height of the latest block on the best chain.
122
+
123
+ :param _request_timeout: timeout setting for this request. If one
124
+ number provided, it will be total request
125
+ timeout. It can also be a pair (tuple) of
126
+ (connection, read) timeouts.
127
+ :type _request_timeout: int, tuple(int, int), optional
128
+ :param _request_auth: set to override the auth_settings for an a single
129
+ request; this effectively ignores the
130
+ authentication in the spec for a single request.
131
+ :type _request_auth: dict, optional
132
+ :param _content_type: force content-type for the request.
133
+ :type _content_type: str, Optional
134
+ :param _headers: set to override the headers for a single
135
+ request; this effectively ignores the headers
136
+ in the spec for a single request.
137
+ :type _headers: dict, optional
138
+ :param _host_index: set to override the host_index for a single
139
+ request; this effectively ignores the host_index
140
+ in the spec for a single request.
141
+ :type _host_index: int, optional
142
+ :return: Returns the result object.
143
+ """ # noqa: E501
144
+
145
+ _param = self._tip_serialize(
146
+ _request_auth=_request_auth,
147
+ _content_type=_content_type,
148
+ _headers=_headers,
149
+ _host_index=_host_index
150
+ )
151
+
152
+ _response_types_map: Dict[str, Optional[str]] = {
153
+ '200': "TipResponse",
154
+ '500': "InternalServerError",
155
+ }
156
+ response_data = self.api_client.call_api(
157
+ *_param,
158
+ _request_timeout=_request_timeout
159
+ )
160
+ response_data.read()
161
+ return self.api_client.response_deserialize(
162
+ response_data=response_data,
163
+ response_types_map=_response_types_map,
164
+ )
165
+
166
+
167
+ @validate_call
168
+ def tip_without_preload_content(
169
+ self,
170
+ _request_timeout: Union[
171
+ None,
172
+ Annotated[StrictFloat, Field(gt=0)],
173
+ Tuple[
174
+ Annotated[StrictFloat, Field(gt=0)],
175
+ Annotated[StrictFloat, Field(gt=0)]
176
+ ]
177
+ ] = None,
178
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
179
+ _content_type: Optional[StrictStr] = None,
180
+ _headers: Optional[Dict[StrictStr, Any]] = None,
181
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
182
+ ) -> RESTResponseType:
183
+ """Get bitcoin tip height
184
+
185
+ Queries the wallet's chain source for the block height of the latest block on the best chain.
186
+
187
+ :param _request_timeout: timeout setting for this request. If one
188
+ number provided, it will be total request
189
+ timeout. It can also be a pair (tuple) of
190
+ (connection, read) timeouts.
191
+ :type _request_timeout: int, tuple(int, int), optional
192
+ :param _request_auth: set to override the auth_settings for an a single
193
+ request; this effectively ignores the
194
+ authentication in the spec for a single request.
195
+ :type _request_auth: dict, optional
196
+ :param _content_type: force content-type for the request.
197
+ :type _content_type: str, Optional
198
+ :param _headers: set to override the headers for a single
199
+ request; this effectively ignores the headers
200
+ in the spec for a single request.
201
+ :type _headers: dict, optional
202
+ :param _host_index: set to override the host_index for a single
203
+ request; this effectively ignores the host_index
204
+ in the spec for a single request.
205
+ :type _host_index: int, optional
206
+ :return: Returns the result object.
207
+ """ # noqa: E501
208
+
209
+ _param = self._tip_serialize(
210
+ _request_auth=_request_auth,
211
+ _content_type=_content_type,
212
+ _headers=_headers,
213
+ _host_index=_host_index
214
+ )
215
+
216
+ _response_types_map: Dict[str, Optional[str]] = {
217
+ '200': "TipResponse",
218
+ '500': "InternalServerError",
219
+ }
220
+ response_data = self.api_client.call_api(
221
+ *_param,
222
+ _request_timeout=_request_timeout
223
+ )
224
+ return response_data.response
225
+
226
+
227
+ def _tip_serialize(
228
+ self,
229
+ _request_auth,
230
+ _content_type,
231
+ _headers,
232
+ _host_index,
233
+ ) -> RequestSerialized:
234
+
235
+ _host = None
236
+
237
+ _collection_formats: Dict[str, str] = {
238
+ }
239
+
240
+ _path_params: Dict[str, str] = {}
241
+ _query_params: List[Tuple[str, str]] = []
242
+ _header_params: Dict[str, Optional[str]] = _headers or {}
243
+ _form_params: List[Tuple[str, str]] = []
244
+ _files: Dict[
245
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
246
+ ] = {}
247
+ _body_params: Optional[bytes] = None
248
+
249
+ # process the path parameters
250
+ # process the query parameters
251
+ # process the header parameters
252
+ # process the form parameters
253
+ # process the body parameter
254
+
255
+
256
+ # set the HTTP header `Accept`
257
+ if 'Accept' not in _header_params:
258
+ _header_params['Accept'] = self.api_client.select_header_accept(
259
+ [
260
+ 'application/json'
261
+ ]
262
+ )
263
+
264
+
265
+ # authentication setting
266
+ _auth_settings: List[str] = [
267
+ 'bearer'
268
+ ]
269
+
270
+ return self.api_client.param_serialize(
271
+ method='GET',
272
+ resource_path='/api/v1/bitcoin/tip',
273
+ path_params=_path_params,
274
+ query_params=_query_params,
275
+ header_params=_header_params,
276
+ body=_body_params,
277
+ post_params=_form_params,
278
+ files=_files,
279
+ auth_settings=_auth_settings,
280
+ collection_formats=_collection_formats,
281
+ _host=_host,
282
+ _request_auth=_request_auth
283
+ )
284
+
285
+