Skip to content

Commit 34fce19

Browse files
chore: speakeasy sdk regeneration - Generate (#5)
* ci: regenerated with OpenAPI Doc v1.0.0-rc.5, Speakeay CLI 1.13.0 * ci: regenerated with OpenAPI Doc v1.0.0-rc.5, Speakeay CLI 1.14.2 --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent c2cd9c7 commit 34fce19

File tree

237 files changed

+2074
-870
lines changed

Some content is hidden

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

237 files changed

+2074
-870
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ s = formance.Formance(
3434
),
3535
)
3636

37+
3738
res = s.get_server_info()
3839

3940
if res.server_info is not None:

RELEASES.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,20 @@ Based on:
8888
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
8989
- Speakeasy CLI 1.11.0 https://github.com/speakeasy-api/speakeasy
9090
### Releases
91-
- [PyPI v0.2.2] https://pypi.org/project/formance-python-sdk/0.2.2 - .
91+
- [PyPI v0.2.2] https://pypi.org/project/formance-python-sdk/0.2.2 - .
92+
93+
## 2023-03-22 01:07:28
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
97+
- Speakeasy CLI 1.13.0 https://github.com/speakeasy-api/speakeasy
98+
### Releases
99+
- [PyPI v0.3.0] https://pypi.org/project/formance-python-sdk/0.3.0 - .
100+
101+
## 2023-03-22 15:52:58
102+
### Changes
103+
Based on:
104+
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
105+
- Speakeasy CLI 1.14.2 (2.13.0) https://github.com/speakeasy-api/speakeasy
106+
### Releases
107+
- [PyPI v0.3.1] https://pypi.org/project/formance-python-sdk/0.3.1 - .

gen.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ configVersion: 1.0.0
22
management:
33
docChecksum: e2d62c3257abdb44d60905723bd6484e
44
docVersion: v1.0.0-rc.5
5-
speakeasyVersion: 1.11.0
5+
speakeasyVersion: 1.14.2
6+
generationVersion: 2.13.0
67
generation:
78
telemetryEnabled: false
89
sdkClassName: formance
910
sdkFlattening: true
1011
python:
11-
version: 0.2.2
12+
version: 0.3.1
1213
author: formance
1314
description: Python Client SDK for Formance API
1415
packageName: formance-python-sdk

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import setuptools
24

35
try:
@@ -8,7 +10,7 @@
810

911
setuptools.setup(
1012
name="formance-python-sdk",
11-
version="0.2.2",
13+
version="0.3.1",
1214
author="formance",
1315
description="Python Client SDK for Formance API",
1416
long_description=long_description,

src/formance/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
from .sdk import *

src/formance/accounts.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from formance.models import operations, shared
46
from typing import Optional
57

68
class Accounts:
9+
r"""Everything related to Accounts"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -20,9 +23,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2023
self._gen_version = gen_version
2124

2225
def add_metadata_to_account(self, request: operations.AddMetadataToAccountRequest) -> operations.AddMetadataToAccountResponse:
23-
r"""Add metadata to an account
24-
"""
25-
26+
r"""Add metadata to an account"""
2627
base_url = self._server_url
2728

2829
url = utils.generate_url(operations.AddMetadataToAccountRequest, base_url, '/api/ledger/{ledger}/accounts/{address}/metadata', request)
@@ -51,9 +52,7 @@ def add_metadata_to_account(self, request: operations.AddMetadataToAccountReques
5152
return res
5253

5354
def count_accounts(self, request: operations.CountAccountsRequest) -> operations.CountAccountsResponse:
54-
r"""Count the accounts from a ledger
55-
"""
56-
55+
r"""Count the accounts from a ledger"""
5756
base_url = self._server_url
5857

5958
url = utils.generate_url(operations.CountAccountsRequest, base_url, '/api/ledger/{ledger}/accounts', request)
@@ -78,9 +77,7 @@ def count_accounts(self, request: operations.CountAccountsRequest) -> operations
7877
return res
7978

8079
def get_account(self, request: operations.GetAccountRequest) -> operations.GetAccountResponse:
81-
r"""Get account by its address
82-
"""
83-
80+
r"""Get account by its address"""
8481
base_url = self._server_url
8582

8683
url = utils.generate_url(operations.GetAccountRequest, base_url, '/api/ledger/{ledger}/accounts/{address}', request)
@@ -108,7 +105,6 @@ def list_accounts(self, request: operations.ListAccountsRequest) -> operations.L
108105
r"""List accounts from a ledger
109106
List accounts from a ledger, sorted by address in descending order.
110107
"""
111-
112108
base_url = self._server_url
113109

114110
url = utils.generate_url(operations.ListAccountsRequest, base_url, '/api/ledger/{ledger}/accounts', request)

src/formance/balances.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from formance.models import operations, shared
46
from typing import Optional
57

68
class Balances:
9+
r"""Everything related to Balances"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -20,9 +23,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2023
self._gen_version = gen_version
2124

2225
def get_balances(self, request: operations.GetBalancesRequest) -> operations.GetBalancesResponse:
23-
r"""Get the balances from a ledger's account
24-
"""
25-
26+
r"""Get the balances from a ledger's account"""
2627
base_url = self._server_url
2728

2829
url = utils.generate_url(operations.GetBalancesRequest, base_url, '/api/ledger/{ledger}/balances', request)
@@ -48,9 +49,7 @@ def get_balances(self, request: operations.GetBalancesRequest) -> operations.Get
4849
return res
4950

5051
def get_balances_aggregated(self, request: operations.GetBalancesAggregatedRequest) -> operations.GetBalancesAggregatedResponse:
51-
r"""Get the aggregated balances from selected accounts
52-
"""
53-
52+
r"""Get the aggregated balances from selected accounts"""
5453
base_url = self._server_url
5554

5655
url = utils.generate_url(operations.GetBalancesAggregatedRequest, base_url, '/api/ledger/{ledger}/aggregate/balances', request)

src/formance/clients.py

Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from formance.models import operations, shared
46
from typing import Optional
57

68
class Clients:
9+
r"""Everything related to Clients"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -20,9 +23,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2023
self._gen_version = gen_version
2124

2225
def add_scope_to_client(self, request: operations.AddScopeToClientRequest) -> operations.AddScopeToClientResponse:
23-
r"""Add scope to client
24-
"""
25-
26+
r"""Add scope to client"""
2627
base_url = self._server_url
2728

2829
url = utils.generate_url(operations.AddScopeToClientRequest, base_url, '/api/auth/clients/{clientId}/scopes/{scopeId}', request)
@@ -41,9 +42,7 @@ def add_scope_to_client(self, request: operations.AddScopeToClientRequest) -> op
4142
return res
4243

4344
def create_client(self, request: shared.CreateClientRequest) -> operations.CreateClientResponse:
44-
r"""Create client
45-
"""
46-
45+
r"""Create client"""
4746
base_url = self._server_url
4847

4948
url = base_url.removesuffix('/') + '/api/auth/clients'
@@ -68,9 +67,7 @@ def create_client(self, request: shared.CreateClientRequest) -> operations.Creat
6867
return res
6968

7069
def create_secret(self, request: operations.CreateSecretRequest) -> operations.CreateSecretResponse:
71-
r"""Add a secret to a client
72-
"""
73-
70+
r"""Add a secret to a client"""
7471
base_url = self._server_url
7572

7673
url = utils.generate_url(operations.CreateSecretRequest, base_url, '/api/auth/clients/{clientId}/secrets', request)
@@ -95,9 +92,7 @@ def create_secret(self, request: operations.CreateSecretRequest) -> operations.C
9592
return res
9693

9794
def delete_client(self, request: operations.DeleteClientRequest) -> operations.DeleteClientResponse:
98-
r"""Delete client
99-
"""
100-
95+
r"""Delete client"""
10196
base_url = self._server_url
10297

10398
url = utils.generate_url(operations.DeleteClientRequest, base_url, '/api/auth/clients/{clientId}', request)
@@ -116,9 +111,7 @@ def delete_client(self, request: operations.DeleteClientRequest) -> operations.D
116111
return res
117112

118113
def delete_scope_from_client(self, request: operations.DeleteScopeFromClientRequest) -> operations.DeleteScopeFromClientResponse:
119-
r"""Delete scope from client
120-
"""
121-
114+
r"""Delete scope from client"""
122115
base_url = self._server_url
123116

124117
url = utils.generate_url(operations.DeleteScopeFromClientRequest, base_url, '/api/auth/clients/{clientId}/scopes/{scopeId}', request)
@@ -137,9 +130,7 @@ def delete_scope_from_client(self, request: operations.DeleteScopeFromClientRequ
137130
return res
138131

139132
def delete_secret(self, request: operations.DeleteSecretRequest) -> operations.DeleteSecretResponse:
140-
r"""Delete a secret from a client
141-
"""
142-
133+
r"""Delete a secret from a client"""
143134
base_url = self._server_url
144135

145136
url = utils.generate_url(operations.DeleteSecretRequest, base_url, '/api/auth/clients/{clientId}/secrets/{secretId}', request)
@@ -158,9 +149,7 @@ def delete_secret(self, request: operations.DeleteSecretRequest) -> operations.D
158149
return res
159150

160151
def list_clients(self) -> operations.ListClientsResponse:
161-
r"""List clients
162-
"""
163-
152+
r"""List clients"""
164153
base_url = self._server_url
165154

166155
url = base_url.removesuffix('/') + '/api/auth/clients'
@@ -181,9 +170,7 @@ def list_clients(self) -> operations.ListClientsResponse:
181170
return res
182171

183172
def read_client(self, request: operations.ReadClientRequest) -> operations.ReadClientResponse:
184-
r"""Read client
185-
"""
186-
173+
r"""Read client"""
187174
base_url = self._server_url
188175

189176
url = utils.generate_url(operations.ReadClientRequest, base_url, '/api/auth/clients/{clientId}', request)
@@ -204,9 +191,7 @@ def read_client(self, request: operations.ReadClientRequest) -> operations.ReadC
204191
return res
205192

206193
def update_client(self, request: operations.UpdateClientRequest) -> operations.UpdateClientResponse:
207-
r"""Update client
208-
"""
209-
194+
r"""Update client"""
210195
base_url = self._server_url
211196

212197
url = utils.generate_url(operations.UpdateClientRequest, base_url, '/api/auth/clients/{clientId}', request)

src/formance/ledger.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from formance.models import operations, shared
46
from typing import Any, Optional
57

68
class Ledger:
9+
r"""Everything related to Ledger"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -20,9 +23,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http
2023
self._gen_version = gen_version
2124

2225
def get_ledger_info(self, request: operations.GetLedgerInfoRequest) -> operations.GetLedgerInfoResponse:
23-
r"""Get information about a ledger
24-
"""
25-
26+
r"""Get information about a ledger"""
2627
base_url = self._server_url
2728

2829
url = utils.generate_url(operations.GetLedgerInfoRequest, base_url, '/api/ledger/{ledger}/_info', request)

src/formance/logs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
13
import requests as requests_http
24
from . import utils
35
from formance.models import operations, shared
46
from typing import Optional
57

68
class Logs:
9+
r"""Everything related to Logs"""
710
_client: requests_http.Session
811
_security_client: requests_http.Session
912
_server_url: str
@@ -23,7 +26,6 @@ def list_logs(self, request: operations.ListLogsRequest) -> operations.ListLogsR
2326
r"""List the logs from a ledger
2427
List the logs from a ledger, sorted by ID in descending order.
2528
"""
26-
2729
base_url = self._server_url
2830

2931
url = utils.generate_url(operations.ListLogsRequest, base_url, '/api/ledger/{ledger}/log', request)

0 commit comments

Comments
 (0)