Skip to content

Commit 109f5fc

Browse files
speakeasybotflemzord
authored andcommitted
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.1
1 parent 69fe24e commit 109f5fc

File tree

10 files changed

+76
-48
lines changed

10 files changed

+76
-48
lines changed

.speakeasy/gen.lock

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 1e0c88f5-b1c8-4198-83d8-36bd00451cd3
33
management:
4-
docChecksum: d5d12540f5ed5f4996d23aae4cd97c31
5-
docVersion: v2.1.0-beta.3
6-
speakeasyVersion: 1.420.0
7-
generationVersion: 2.438.15
8-
releaseVersion: 4.1.0
9-
configChecksum: ee43f498ed18b8fb5cf323c92b594a42
4+
docChecksum: 26dc51843f72f8922c6265f03b5e50f2
5+
docVersion: v2.1.1
6+
speakeasyVersion: 1.441.1
7+
generationVersion: 2.461.2
8+
releaseVersion: 4.2.0
9+
configChecksum: 5edce78524c7b06521fca2b4d4f4d70f
1010
repoURL: https://github.com/formancehq/formance-sdk-python.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/formancehq/formance-sdk-python.git
@@ -16,10 +16,10 @@ features:
1616
additionalDependencies: 0.1.0
1717
bigint: 0.1.0
1818
constsAndDefaults: 0.1.4
19-
core: 4.8.14
19+
core: 4.8.16
2020
deprecations: 2.81.1
2121
downloadStreams: 0.0.2
22-
errors: 2.81.11
22+
errors: 2.83.0
2323
getRequestBodies: 2.81.1
2424
globalSecurity: 2.83.7
2525
globalSecurityCallbacks: 0.1.0
@@ -30,7 +30,8 @@ features:
3030
oauth2ClientCredentials: 0.2.0
3131
responseFormat: 0.1.0
3232
sdkHooks: 0.1.0
33-
unions: 2.82.9
33+
tests: 0.4.0
34+
unions: 2.82.10
3435
generatedFiles:
3536
- .gitattributes
3637
- CONTRIBUTING.md

.speakeasy/workflow.lock

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
speakeasyVersion: 1.420.0
1+
speakeasyVersion: 1.441.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:152423917e28f7ab99b5eaadc6f18ad1a813ee5670a8253272671db8592a4d12
6-
sourceBlobDigest: sha256:289baef68db829be9ab3b7d551c2c8f06c9adf872c08c55eb3d4fb8cc570d555
5+
sourceRevisionDigest: sha256:3d90913dcec5c3f43e376f878b576fd3ade0f87090d5a6457f7aa72f314e0966
6+
sourceBlobDigest: sha256:32629e12788197e47087a513dddd7268e312e34ebcdf92b037a278687f751892
77
tags:
88
- latest
9-
- main
9+
- speakeasy-sdk-regen-1732202878
1010
targets:
1111
formance-python-sdk:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:152423917e28f7ab99b5eaadc6f18ad1a813ee5670a8253272671db8592a4d12
15-
sourceBlobDigest: sha256:289baef68db829be9ab3b7d551c2c8f06c9adf872c08c55eb3d4fb8cc570d555
14+
sourceRevisionDigest: sha256:3d90913dcec5c3f43e376f878b576fd3ade0f87090d5a6457f7aa72f314e0966
15+
sourceBlobDigest: sha256:32629e12788197e47087a513dddd7268e312e34ebcdf92b037a278687f751892
16+
codeSamplesNamespace: my-source-code-samples
17+
codeSamplesRevisionDigest: sha256:7dbd43f57b4e50ba2962b7ab4a61c7524283a4ae2474ab30922a7db0913676ce
1618
workflow:
1719
workflowVersion: 1.0.0
1820
speakeasyVersion: latest
@@ -29,3 +31,7 @@ workflow:
2931
publish:
3032
pypi:
3133
token: $PYPI_TOKEN
34+
codeSamples:
35+
registry:
36+
location: registry.speakeasyapi.dev/formance/formance/my-source-code-samples
37+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ targets:
1313
publish:
1414
pypi:
1515
token: $PYPI_TOKEN
16+
codeSamples:
17+
registry:
18+
location: registry.speakeasyapi.dev/formance/formance/my-source-code-samples
19+
blocking: false

README.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,13 @@ if res.get_versions_response is not None:
269269

270270
* [get_versions](docs/sdks/sdk/README.md#get_versions) - Show stack version information
271271

272-
### [search](docs/sdks/search/README.md)
272+
### [~~search~~](docs/sdks/search/README.md)
273273

274274

275-
#### [search.v1](docs/sdks/sdksearchv1/README.md)
275+
#### [~~search.v1~~](docs/sdks/sdksearchv1/README.md)
276276

277-
* [search](docs/sdks/sdksearchv1/README.md#search) - search.v1
278-
* [searchget_server_info](docs/sdks/sdksearchv1/README.md#searchget_server_info) - Get server info
277+
* [~~search~~](docs/sdks/sdksearchv1/README.md#search) - search.v1 :warning: **Deprecated**
278+
* [~~searchget_server_info~~](docs/sdks/sdksearchv1/README.md#searchget_server_info) - Get server info :warning: **Deprecated**
279279

280280
### [wallets](docs/sdks/wallets/README.md)
281281

@@ -331,10 +331,10 @@ By default, an API error will raise a errors.SDKError exception, which has the f
331331

332332
When custom error responses are specified for an operation, the SDK may also raise their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_transactions` method may raise the following exceptions:
333333

334-
| Error Type | Status Code | Content Type |
335-
| -------------------- | -------------------- | -------------------- |
336-
| errors.ErrorResponse | default | application/json |
337-
| errors.SDKError | 4XX, 5XX | \*/\* |
334+
| Error Type | Status Code | Content Type |
335+
| -------------------- | ----------- | ---------------- |
336+
| errors.ErrorResponse | default | application/json |
337+
| errors.SDKError | 4XX, 5XX | \*/\* |
338338

339339
### Example
340340

@@ -403,10 +403,12 @@ if res.transactions_response is not None:
403403

404404
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
405405

406-
| # | Server | Variables |
407-
| - | ------ | --------- |
408-
| 0 | `http://localhost` | None |
409-
| 1 | `https://{organization}.{environment}.formance.cloud` | `environment` (default is `sandbox`), `organization` (default is `orgID-stackID`) |
406+
| # | Server | Variables | Default values |
407+
| --- | ----------------------------------------------------- | --------------------------------------------------------------- | --------------------------------- |
408+
| 0 | `http://localhost` | | |
409+
| 1 | `https://{organization}.{environment}.formance.cloud` | `environment: models.ServerEnvironment`<br/>`organization: str` | `"sandbox"`<br/>`"orgID-stackID"` |
410+
411+
If the selected server has variables, you may override their default values through the additional parameters made available in the SDK constructor.
410412

411413
#### Example
412414

@@ -431,12 +433,6 @@ if res.get_versions_response is not None:
431433

432434
```
433435

434-
#### Variables
435-
436-
Some of the server options above contain variables. If you want to set the values of those variables, the following optional parameters are available when initializing the SDK client instance:
437-
* `environment: models.ServerEnvironment`
438-
* `organization: str`
439-
440436
### Override Server URL Per-Client
441437

442438
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
@@ -485,9 +481,9 @@ s = sdk.SDK(client=http_client)
485481

486482
This SDK supports the following security scheme globally:
487483

488-
| Name | Type | Scheme |
489-
| ------------------------------ | ------------------------------ | ------------------------------ |
490-
| `client_id` `client_secret` | oauth2 | OAuth2 Client Credentials Flow |
484+
| Name | Type | Scheme |
485+
| ------------------------------- | ------ | ------------------------------ |
486+
| `client_id`<br/>`client_secret` | oauth2 | OAuth2 Client Credentials Flow |
491487

492488
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
493489
```python

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,14 @@ Based on:
138138
### Generated
139139
- [python v4.1.0] .
140140
### Releases
141-
- [PyPI v4.1.0] https://pypi.org/project/formance-sdk-python/4.1.0 - .
141+
- [PyPI v4.1.0] https://pypi.org/project/formance-sdk-python/4.1.0 - .
142+
143+
## 2024-11-21 15:27:54
144+
### Changes
145+
Based on:
146+
- OpenAPI Doc
147+
- Speakeasy CLI 1.441.1 (2.461.2) https://github.com/speakeasy-api/speakeasy
148+
### Generated
149+
- [python v4.2.0] .
150+
### Releases
151+
- [PyPI v4.2.0] https://pypi.org/project/formance-sdk-python/4.2.0 - .

docs/sdks/sdksearchv1/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55

66
### Available Operations
77

8-
* [search](#search) - search.v1
9-
* [searchget_server_info](#searchget_server_info) - Get server info
8+
* [~~search~~](#search) - search.v1 :warning: **Deprecated**
9+
* [~~searchget_server_info~~](#searchget_server_info) - Get server info :warning: **Deprecated**
1010

11-
## search
11+
## ~~search~~
1212

1313
Elasticsearch.v1 query engine
1414

15+
> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
16+
1517
### Example Usage
1618

1719
```python
@@ -64,10 +66,12 @@ if res.response is not None:
6466
| --------------- | --------------- | --------------- |
6567
| errors.SDKError | 4XX, 5XX | \*/\* |
6668

67-
## searchget_server_info
69+
## ~~searchget_server_info~~
6870

6971
Get server info
7072

73+
> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.
74+
7175
### Example Usage
7276

7377
```python

gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ generation:
99
requestResponseComponentNamesFeb2024: false
1010
auth:
1111
oAuth2ClientCredentialsEnabled: true
12+
oAuth2PasswordEnabled: false
1213
comments: {}
1314
telemetryEnabled: false
1415
python:
15-
version: 4.1.0
16+
version: 4.2.0
1617
additionalDependencies:
1718
dependencies: {}
1819
extraDependencies:
1920
dev: {}
2021
author: Formance
2122
clientServerStatusCodesAsErrors: true
23+
defaultErrorName: SDKError
2224
description: Python Client SDK Generated by Speakeasy
2325
flattenGlobalSecurity: true
2426
imports:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setuptools.setup(
2121
name='formance-sdk-python',
22-
version='4.1.0',
22+
version='4.2.0',
2323
author='Formance',
2424
description='Python Client SDK Generated by Speakeasy',
2525
url='https://github.com/formancehq/formance-sdk-python.git',

src/sdk/sdk_search_v1.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def __init__(self, sdk_config: SDKConfiguration) -> None:
1818
def search(self, request: shared.Query) -> operations.SearchResponse:
1919
r"""search.v1
2020
Elasticsearch.v1 query engine
21+
22+
Deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
2123
"""
2224
hook_ctx = HookContext(operation_id='search', oauth2_scopes=['auth:read','search:write'], security_source=self.sdk_configuration.security)
2325
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
@@ -76,7 +78,10 @@ def search(self, request: shared.Query) -> operations.SearchResponse:
7678

7779

7880
def searchget_server_info(self) -> operations.SearchgetServerInfoResponse:
79-
r"""Get server info"""
81+
r"""Get server info
82+
83+
Deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
84+
"""
8085
hook_ctx = HookContext(operation_id='searchgetServerInfo', oauth2_scopes=['auth:read','search:read'], security_source=self.sdk_configuration.security)
8186
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
8287

src/sdk/sdkconfiguration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ class SDKConfiguration:
3535
server_idx: Optional[int] = 0
3636
server_defaults: List[Dict[str, str]] = field(default_factory=List)
3737
language: str = 'python'
38-
openapi_doc_version: str = 'v2.1.0-beta.3'
39-
sdk_version: str = '4.1.0'
40-
gen_version: str = '2.438.15'
41-
user_agent: str = 'speakeasy-sdk/python 4.1.0 2.438.15 v2.1.0-beta.3 formance-sdk-python'
38+
openapi_doc_version: str = 'v2.1.1'
39+
sdk_version: str = '4.2.0'
40+
gen_version: str = '2.461.2'
41+
user_agent: str = 'speakeasy-sdk/python 4.2.0 2.461.2 v2.1.1 formance-sdk-python'
4242
retry_config: Optional[RetryConfig] = None
4343

4444
def __post_init__(self):

0 commit comments

Comments
 (0)