Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit b6bbbc6

Browse files
committed
regeneration from spec
1 parent f1c92b0 commit b6bbbc6

51 files changed

Lines changed: 3616 additions & 119 deletions

Some content is hidden

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

.openapi-generator/FILES

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ docs/AddressTagAllOf.md
88
docs/AddressTx.md
99
docs/AddressTxUtxo.md
1010
docs/AddressTxs.md
11-
docs/AddressWithTags.md
12-
docs/AddressWithTagsAllOf.md
1311
docs/Addresses.md
1412
docs/AddressesApi.md
1513
docs/Block.md
@@ -25,8 +23,6 @@ docs/Entity.md
2523
docs/EntityAddresses.md
2624
docs/EntityTag.md
2725
docs/EntityTagAllOf.md
28-
docs/EntityWithTags.md
29-
docs/EntityWithTagsAllOf.md
3026
docs/GeneralApi.md
3127
docs/Height.md
3228
docs/Link.md
@@ -36,10 +32,18 @@ docs/Neighbors.md
3632
docs/Rates.md
3733
docs/RatesApi.md
3834
docs/RatesRates.md
39-
docs/SearchPaths.md
4035
docs/SearchResult.md
4136
docs/SearchResultByCurrency.md
4237
docs/SearchResultLabels.md
38+
docs/SearchResultLeaf.md
39+
docs/SearchResultLevel1.md
40+
docs/SearchResultLevel1AllOf.md
41+
docs/SearchResultLevel2.md
42+
docs/SearchResultLevel2AllOf.md
43+
docs/SearchResultLevel3.md
44+
docs/SearchResultLevel3AllOf.md
45+
docs/SearchResultLevel4.md
46+
docs/SearchResultLevel4AllOf.md
4347
docs/Stats.md
4448
docs/StatsLedger.md
4549
docs/StatsLedgerVersion.md
@@ -49,6 +53,7 @@ docs/StatsTool.md
4953
docs/StatsVersion.md
5054
docs/Tag.md
5155
docs/TagsApi.md
56+
docs/TagsByEntity.md
5257
docs/Taxonomy.md
5358
docs/Tx.md
5459
docs/TxAccount.md
@@ -80,8 +85,6 @@ graphsense/model/address_tag_all_of.py
8085
graphsense/model/address_tx.py
8186
graphsense/model/address_tx_utxo.py
8287
graphsense/model/address_txs.py
83-
graphsense/model/address_with_tags.py
84-
graphsense/model/address_with_tags_all_of.py
8588
graphsense/model/addresses.py
8689
graphsense/model/block.py
8790
graphsense/model/block_tx.py
@@ -94,19 +97,25 @@ graphsense/model/entity.py
9497
graphsense/model/entity_addresses.py
9598
graphsense/model/entity_tag.py
9699
graphsense/model/entity_tag_all_of.py
97-
graphsense/model/entity_with_tags.py
98-
graphsense/model/entity_with_tags_all_of.py
99100
graphsense/model/height.py
100101
graphsense/model/link.py
101102
graphsense/model/link_utxo.py
102103
graphsense/model/neighbor.py
103104
graphsense/model/neighbors.py
104105
graphsense/model/rates.py
105106
graphsense/model/rates_rates.py
106-
graphsense/model/search_paths.py
107107
graphsense/model/search_result.py
108108
graphsense/model/search_result_by_currency.py
109109
graphsense/model/search_result_labels.py
110+
graphsense/model/search_result_leaf.py
111+
graphsense/model/search_result_level1.py
112+
graphsense/model/search_result_level1_all_of.py
113+
graphsense/model/search_result_level2.py
114+
graphsense/model/search_result_level2_all_of.py
115+
graphsense/model/search_result_level3.py
116+
graphsense/model/search_result_level3_all_of.py
117+
graphsense/model/search_result_level4.py
118+
graphsense/model/search_result_level4_all_of.py
110119
graphsense/model/stats.py
111120
graphsense/model/stats_ledger.py
112121
graphsense/model/stats_ledger_version.py
@@ -115,6 +124,7 @@ graphsense/model/stats_tags_source.py
115124
graphsense/model/stats_tool.py
116125
graphsense/model/stats_version.py
117126
graphsense/model/tag.py
127+
graphsense/model/tags_by_entity.py
118128
graphsense/model/taxonomy.py
119129
graphsense/model/tx.py
120130
graphsense/model/tx_account.py
@@ -132,4 +142,13 @@ setup.cfg
132142
setup.py
133143
test-requirements.txt
134144
test/__init__.py
145+
test/test_search_result_level1.py
146+
test/test_search_result_level1_all_of.py
147+
test/test_search_result_level2.py
148+
test/test_search_result_level2_all_of.py
149+
test/test_search_result_level3.py
150+
test/test_search_result_level3_all_of.py
151+
test/test_search_result_level4.py
152+
test/test_search_result_level4_all_of.py
153+
test/test_tags_by_entity.py
135154
tox.ini

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ import time
6565
import graphsense
6666
from pprint import pprint
6767
from graphsense.api import addresses_api
68+
from graphsense.model.address import Address
6869
from graphsense.model.address_tag import AddressTag
6970
from graphsense.model.address_txs import AddressTxs
70-
from graphsense.model.address_with_tags import AddressWithTags
7171
from graphsense.model.addresses import Addresses
72-
from graphsense.model.entity_with_tags import EntityWithTags
72+
from graphsense.model.entity import Entity
7373
from graphsense.model.link import Link
7474
from graphsense.model.neighbors import Neighbors
7575
# Defining the host is optional and defaults to http://openapi_server:9000
@@ -96,13 +96,14 @@ with graphsense.ApiClient(configuration) as api_client:
9696
api_instance = addresses_api.AddressesApi(api_client)
9797
currency = "btc" # str | The cryptocurrency (e.g., btc)
9898
address = "1Archive1n2C579dMsAu3iC6tWzuQJz8dN" # str | The cryptocurrency address
99+
include_tags = True # bool | Whether tags should be included (optional)
99100

100101
try:
101-
# Get the entity of an address
102-
api_response = api_instance.get_address_entity(currency, address)
102+
# Get an address, optionally with tags
103+
api_response = api_instance.get_address(currency, address, include_tags=include_tags)
103104
pprint(api_response)
104105
except graphsense.ApiException as e:
105-
print("Exception when calling AddressesApi->get_address_entity: %s\n" % e)
106+
print("Exception when calling AddressesApi->get_address: %s\n" % e)
106107
```
107108

108109
## Documentation for API Endpoints
@@ -111,8 +112,8 @@ All URIs are relative to *http://openapi_server:9000*
111112

112113
Class | Method | HTTP request | Description
113114
------------ | ------------- | ------------- | -------------
115+
*AddressesApi* | [**get_address**](docs/AddressesApi.md#get_address) | **GET** /{currency}/addresses/{address} | Get an address, optionally with tags
114116
*AddressesApi* | [**get_address_entity**](docs/AddressesApi.md#get_address_entity) | **GET** /{currency}/addresses/{address}/entity | Get the entity of an address
115-
*AddressesApi* | [**get_address_with_tags**](docs/AddressesApi.md#get_address_with_tags) | **GET** /{currency}/addresses/{address} | Get an address with tags
116117
*AddressesApi* | [**list_address_links**](docs/AddressesApi.md#list_address_links) | **GET** /{currency}/addresses/{address}/links | Get transactions between two addresses
117118
*AddressesApi* | [**list_address_links_csv**](docs/AddressesApi.md#list_address_links_csv) | **GET** /{currency}/addresses/{address}/links.csv | Get transactions between two addresses as CSV
118119
*AddressesApi* | [**list_address_neighbors**](docs/AddressesApi.md#list_address_neighbors) | **GET** /{currency}/addresses/{address}/neighbors | Get an addresses' neighbors in the address graph
@@ -127,15 +128,15 @@ Class | Method | HTTP request | Description
127128
*BlocksApi* | [**list_block_txs**](docs/BlocksApi.md#list_block_txs) | **GET** /{currency}/blocks/{height}/txs | Get block transactions (100 per page)
128129
*BlocksApi* | [**list_block_txs_csv**](docs/BlocksApi.md#list_block_txs_csv) | **GET** /{currency}/blocks/{height}/txs.csv | Get block transactions as CSV
129130
*BlocksApi* | [**list_blocks**](docs/BlocksApi.md#list_blocks) | **GET** /{currency}/blocks | Get all blocks
130-
*EntitiesApi* | [**get_entity_with_tags**](docs/EntitiesApi.md#get_entity_with_tags) | **GET** /{currency}/entities/{entity} | Get an entity with tags
131+
*EntitiesApi* | [**get_entity**](docs/EntitiesApi.md#get_entity) | **GET** /{currency}/entities/{entity} | Get an entity, optionally with tags
131132
*EntitiesApi* | [**list_entities**](docs/EntitiesApi.md#list_entities) | **GET** /{currency}/entities | Get entities
132133
*EntitiesApi* | [**list_entities_csv**](docs/EntitiesApi.md#list_entities_csv) | **GET** /{currency}/entities.csv | Get entities as CSV
133134
*EntitiesApi* | [**list_entity_addresses**](docs/EntitiesApi.md#list_entity_addresses) | **GET** /{currency}/entities/{entity}/addresses | Get an entity's addresses
134135
*EntitiesApi* | [**list_entity_addresses_csv**](docs/EntitiesApi.md#list_entity_addresses_csv) | **GET** /{currency}/entities/{entity}/addresses.csv | Get an entity's addresses as CSV
135136
*EntitiesApi* | [**list_entity_neighbors**](docs/EntitiesApi.md#list_entity_neighbors) | **GET** /{currency}/entities/{entity}/neighbors | Get an entity's neighbors in the entity graph
136137
*EntitiesApi* | [**list_entity_neighbors_csv**](docs/EntitiesApi.md#list_entity_neighbors_csv) | **GET** /{currency}/entities/{entity}/neighbors.csv | Get an entity's neighbors in the entity graph as CSV
137-
*EntitiesApi* | [**list_tags_by_entity**](docs/EntitiesApi.md#list_tags_by_entity) | **GET** /{currency}/entities/{entity}/tags | Get attribution tags for a given entity
138-
*EntitiesApi* | [**list_tags_by_entity_csv**](docs/EntitiesApi.md#list_tags_by_entity_csv) | **GET** /{currency}/entities/{entity}/tags.csv | Get attribution tags for a given entity as CSV
138+
*EntitiesApi* | [**list_tags_by_entity**](docs/EntitiesApi.md#list_tags_by_entity) | **GET** /{currency}/entities/{entity}/tags | Get tags for a given entity
139+
*EntitiesApi* | [**list_tags_by_entity_by_level_csv**](docs/EntitiesApi.md#list_tags_by_entity_by_level_csv) | **GET** /{currency}/entities/{entity}/tags.csv | Get address or entity tags for a given entity as CSV
139140
*EntitiesApi* | [**search_entity_neighbors**](docs/EntitiesApi.md#search_entity_neighbors) | **GET** /{currency}/entities/{entity}/search | Search deeply for matching neighbors
140141
*GeneralApi* | [**get_statistics**](docs/GeneralApi.md#get_statistics) | **GET** /stats | Get statistics of supported currencies
141142
*GeneralApi* | [**search**](docs/GeneralApi.md#search) | **GET** /search | Returns matching addresses, transactions and labels
@@ -155,8 +156,6 @@ Class | Method | HTTP request | Description
155156
- [AddressTx](docs/AddressTx.md)
156157
- [AddressTxUtxo](docs/AddressTxUtxo.md)
157158
- [AddressTxs](docs/AddressTxs.md)
158-
- [AddressWithTags](docs/AddressWithTags.md)
159-
- [AddressWithTagsAllOf](docs/AddressWithTagsAllOf.md)
160159
- [Addresses](docs/Addresses.md)
161160
- [Block](docs/Block.md)
162161
- [BlockTx](docs/BlockTx.md)
@@ -169,19 +168,25 @@ Class | Method | HTTP request | Description
169168
- [EntityAddresses](docs/EntityAddresses.md)
170169
- [EntityTag](docs/EntityTag.md)
171170
- [EntityTagAllOf](docs/EntityTagAllOf.md)
172-
- [EntityWithTags](docs/EntityWithTags.md)
173-
- [EntityWithTagsAllOf](docs/EntityWithTagsAllOf.md)
174171
- [Height](docs/Height.md)
175172
- [Link](docs/Link.md)
176173
- [LinkUtxo](docs/LinkUtxo.md)
177174
- [Neighbor](docs/Neighbor.md)
178175
- [Neighbors](docs/Neighbors.md)
179176
- [Rates](docs/Rates.md)
180177
- [RatesRates](docs/RatesRates.md)
181-
- [SearchPaths](docs/SearchPaths.md)
182178
- [SearchResult](docs/SearchResult.md)
183179
- [SearchResultByCurrency](docs/SearchResultByCurrency.md)
184180
- [SearchResultLabels](docs/SearchResultLabels.md)
181+
- [SearchResultLeaf](docs/SearchResultLeaf.md)
182+
- [SearchResultLevel1](docs/SearchResultLevel1.md)
183+
- [SearchResultLevel1AllOf](docs/SearchResultLevel1AllOf.md)
184+
- [SearchResultLevel2](docs/SearchResultLevel2.md)
185+
- [SearchResultLevel2AllOf](docs/SearchResultLevel2AllOf.md)
186+
- [SearchResultLevel3](docs/SearchResultLevel3.md)
187+
- [SearchResultLevel3AllOf](docs/SearchResultLevel3AllOf.md)
188+
- [SearchResultLevel4](docs/SearchResultLevel4.md)
189+
- [SearchResultLevel4AllOf](docs/SearchResultLevel4AllOf.md)
185190
- [Stats](docs/Stats.md)
186191
- [StatsLedger](docs/StatsLedger.md)
187192
- [StatsLedgerVersion](docs/StatsLedgerVersion.md)
@@ -190,6 +195,7 @@ Class | Method | HTTP request | Description
190195
- [StatsTool](docs/StatsTool.md)
191196
- [StatsVersion](docs/StatsVersion.md)
192197
- [Tag](docs/Tag.md)
198+
- [TagsByEntity](docs/TagsByEntity.md)
193199
- [Taxonomy](docs/Taxonomy.md)
194200
- [Tx](docs/Tx.md)
195201
- [TxAccount](docs/TxAccount.md)

docs/Address.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**out_degree** | **int** | |
1515
**total_received** | [**Values**](Values.md) | |
1616
**total_spent** | [**Values**](Values.md) | |
17+
**tags** | [**[AddressTag]**](AddressTag.md) | Tags | [optional]
1718

1819
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1920

docs/AddressesApi.md

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ All URIs are relative to *http://openapi_server:9000*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**get_address**](AddressesApi.md#get_address) | **GET** /{currency}/addresses/{address} | Get an address, optionally with tags
78
[**get_address_entity**](AddressesApi.md#get_address_entity) | **GET** /{currency}/addresses/{address}/entity | Get the entity of an address
8-
[**get_address_with_tags**](AddressesApi.md#get_address_with_tags) | **GET** /{currency}/addresses/{address} | Get an address with tags
99
[**list_address_links**](AddressesApi.md#list_address_links) | **GET** /{currency}/addresses/{address}/links | Get transactions between two addresses
1010
[**list_address_links_csv**](AddressesApi.md#list_address_links_csv) | **GET** /{currency}/addresses/{address}/links.csv | Get transactions between two addresses as CSV
1111
[**list_address_neighbors**](AddressesApi.md#list_address_neighbors) | **GET** /{currency}/addresses/{address}/neighbors | Get an addresses' neighbors in the address graph
@@ -18,10 +18,10 @@ Method | HTTP request | Description
1818
[**list_tags_by_address_csv**](AddressesApi.md#list_tags_by_address_csv) | **GET** /{currency}/addresses/{address}/tags.csv | Get attribution tags for a given address
1919

2020

21-
# **get_address_entity**
22-
> EntityWithTags get_address_entity(currency, address)
21+
# **get_address**
22+
> Address get_address(currency, address)
2323
24-
Get the entity of an address
24+
Get an address, optionally with tags
2525

2626
### Example
2727

@@ -30,7 +30,7 @@ Get the entity of an address
3030
import time
3131
import graphsense
3232
from graphsense.api import addresses_api
33-
from graphsense.model.entity_with_tags import EntityWithTags
33+
from graphsense.model.address import Address
3434
from pprint import pprint
3535
# Defining the host is optional and defaults to http://openapi_server:9000
3636
# See configuration.py for a list of all supported configuration parameters.
@@ -55,14 +55,24 @@ with graphsense.ApiClient(configuration) as api_client:
5555
api_instance = addresses_api.AddressesApi(api_client)
5656
currency = "btc" # str | The cryptocurrency (e.g., btc)
5757
address = "1Archive1n2C579dMsAu3iC6tWzuQJz8dN" # str | The cryptocurrency address
58+
include_tags = True # bool | Whether tags should be included (optional)
5859

5960
# example passing only required values which don't have defaults set
6061
try:
61-
# Get the entity of an address
62-
api_response = api_instance.get_address_entity(currency, address)
62+
# Get an address, optionally with tags
63+
api_response = api_instance.get_address(currency, address)
6364
pprint(api_response)
6465
except graphsense.ApiException as e:
65-
print("Exception when calling AddressesApi->get_address_entity: %s\n" % e)
66+
print("Exception when calling AddressesApi->get_address: %s\n" % e)
67+
68+
# example passing only required values which don't have defaults set
69+
# and optional values
70+
try:
71+
# Get an address, optionally with tags
72+
api_response = api_instance.get_address(currency, address, include_tags=include_tags)
73+
pprint(api_response)
74+
except graphsense.ApiException as e:
75+
print("Exception when calling AddressesApi->get_address: %s\n" % e)
6676
```
6777

6878

@@ -72,10 +82,11 @@ Name | Type | Description | Notes
7282
------------- | ------------- | ------------- | -------------
7383
**currency** | **str**| The cryptocurrency (e.g., btc) |
7484
**address** | **str**| The cryptocurrency address |
85+
**include_tags** | **bool**| Whether tags should be included | [optional]
7586

7687
### Return type
7788

78-
[**EntityWithTags**](EntityWithTags.md)
89+
[**Address**](Address.md)
7990

8091
### Authorization
8192

@@ -94,10 +105,10 @@ Name | Type | Description | Notes
94105

95106
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
96107

97-
# **get_address_with_tags**
98-
> AddressWithTags get_address_with_tags(currency, address)
108+
# **get_address_entity**
109+
> Entity get_address_entity(currency, address)
99110
100-
Get an address with tags
111+
Get the entity of an address
101112

102113
### Example
103114

@@ -106,7 +117,7 @@ Get an address with tags
106117
import time
107118
import graphsense
108119
from graphsense.api import addresses_api
109-
from graphsense.model.address_with_tags import AddressWithTags
120+
from graphsense.model.entity import Entity
110121
from pprint import pprint
111122
# Defining the host is optional and defaults to http://openapi_server:9000
112123
# See configuration.py for a list of all supported configuration parameters.
@@ -131,14 +142,24 @@ with graphsense.ApiClient(configuration) as api_client:
131142
api_instance = addresses_api.AddressesApi(api_client)
132143
currency = "btc" # str | The cryptocurrency (e.g., btc)
133144
address = "1Archive1n2C579dMsAu3iC6tWzuQJz8dN" # str | The cryptocurrency address
145+
include_tags = True # bool | Whether tags should be included (optional)
146+
147+
# example passing only required values which don't have defaults set
148+
try:
149+
# Get the entity of an address
150+
api_response = api_instance.get_address_entity(currency, address)
151+
pprint(api_response)
152+
except graphsense.ApiException as e:
153+
print("Exception when calling AddressesApi->get_address_entity: %s\n" % e)
134154

135155
# example passing only required values which don't have defaults set
156+
# and optional values
136157
try:
137-
# Get an address with tags
138-
api_response = api_instance.get_address_with_tags(currency, address)
158+
# Get the entity of an address
159+
api_response = api_instance.get_address_entity(currency, address, include_tags=include_tags)
139160
pprint(api_response)
140161
except graphsense.ApiException as e:
141-
print("Exception when calling AddressesApi->get_address_with_tags: %s\n" % e)
162+
print("Exception when calling AddressesApi->get_address_entity: %s\n" % e)
142163
```
143164

144165

@@ -148,10 +169,11 @@ Name | Type | Description | Notes
148169
------------- | ------------- | ------------- | -------------
149170
**currency** | **str**| The cryptocurrency (e.g., btc) |
150171
**address** | **str**| The cryptocurrency address |
172+
**include_tags** | **bool**| Whether tags should be included | [optional]
151173

152174
### Return type
153175

154-
[**AddressWithTags**](AddressWithTags.md)
176+
[**Entity**](Entity.md)
155177

156178
### Authorization
157179

0 commit comments

Comments
 (0)