Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.120.3
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 16, 2023
1 parent d4b21ca commit 4392c45
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 25 deletions.
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [python v1.2.0] .
### Releases
- [PyPI v1.2.0] https://pypi.org/project/ding_api_client/1.2.0 - .
- [PyPI v1.2.0] https://pypi.org/project/ding_api_client/1.2.0 - .

## 2023-11-16 00:10:05
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.120.3 (2.192.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.2.1] .
### Releases
- [PyPI v1.2.1] https://pypi.org/project/ding_api_client/1.2.1 - .
2 changes: 1 addition & 1 deletion docs/models/operations/checkresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `create_check_response` | [Optional[components.CreateCheckResponse]](../../models/components/createcheckresponse.md) | :heavy_minus_sign: | OK |
2 changes: 1 addition & 1 deletion docs/models/operations/createautenticationresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `create_authentication_response` | [Optional[components.CreateAuthenticationResponse]](../../models/components/createauthenticationresponse.md) | :heavy_minus_sign: | OK |
2 changes: 1 addition & 1 deletion docs/models/operations/lookupresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `lookup_response` | [Optional[components.LookupResponse]](../../models/components/lookupresponse.md) | :heavy_minus_sign: | OK |
2 changes: 1 addition & 1 deletion docs/models/operations/retryresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `retry_authentication_response` | [Optional[components.RetryAuthenticationResponse]](../../models/components/retryauthenticationresponse.md) | :heavy_minus_sign: | OK |
8 changes: 4 additions & 4 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: 5e4ef027bc51f54368e8b1607b77c098
docVersion: 1.0.0
speakeasyVersion: 1.120.1
generationVersion: 2.189.1
speakeasyVersion: 1.120.3
generationVersion: 2.192.1
generation:
comments: {}
sdkClassName: Ding
Expand All @@ -13,14 +13,14 @@ generation:
optionalPropertyRendering: withExample
features:
python:
core: 4.1.2
core: 4.1.4
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.83.0
globalServerURLs: 2.82.0
serverIDs: 2.81.1
python:
version: 1.2.0
version: 1.2.1
author: Ding
clientServerStatusCodesAsErrors: true
description: Python Client SDK
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="ding_api_client",
version="1.2.0",
version="1.2.1",
author="Ding",
description="Python Client SDK",
long_description=long_description,
Expand Down
2 changes: 1 addition & 1 deletion src/ding/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def lookup(self, phone_number: str, customer_uuid: str) -> operations.LookupResp

http_res = client.request('GET', url, headers=headers)
content_type = http_res.headers.get('Content-Type')

res = operations.LookupResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

if http_res.status_code == 200:
Expand Down
4 changes: 2 additions & 2 deletions src/ding/models/operations/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
class CheckResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
create_check_response: Optional[components_createcheckresponse.CreateCheckResponse] = dataclasses.field(default=None)
r"""OK"""
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
r"""Raw HTTP response; suitable for custom response parsing"""


4 changes: 2 additions & 2 deletions src/ding/models/operations/create_autentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
class CreateAutenticationResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
create_authentication_response: Optional[components_createauthenticationresponse.CreateAuthenticationResponse] = dataclasses.field(default=None)
r"""OK"""
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
r"""Raw HTTP response; suitable for custom response parsing"""


4 changes: 2 additions & 2 deletions src/ding/models/operations/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ class LookupRequest:
class LookupResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
lookup_response: Optional[components_lookupresponse.LookupResponse] = dataclasses.field(default=None)
r"""OK"""
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
r"""Raw HTTP response; suitable for custom response parsing"""


4 changes: 2 additions & 2 deletions src/ding/models/operations/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
class RetryResponse:
content_type: str = dataclasses.field()
r"""HTTP response content type for this operation"""
raw_response: requests_http.Response = dataclasses.field()
r"""Raw HTTP response; suitable for custom response parsing"""
status_code: int = dataclasses.field()
r"""HTTP response status code for this operation"""
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
r"""Raw HTTP response; suitable for custom response parsing"""
retry_authentication_response: Optional[components_retryauthenticationresponse.RetryAuthenticationResponse] = dataclasses.field(default=None)
r"""OK"""

Expand Down
6 changes: 3 additions & 3 deletions src/ding/otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def create_autentication(self, request: components.CreateAuthenticationRequest)

http_res = client.request('POST', url, data=data, files=form, headers=headers)
content_type = http_res.headers.get('Content-Type')

res = operations.CreateAutenticationResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

if http_res.status_code == 200:
Expand Down Expand Up @@ -75,7 +75,7 @@ def check(self, request: components.CreateCheckRequest) -> operations.CheckRespo

http_res = client.request('POST', url, data=data, files=form, headers=headers)
content_type = http_res.headers.get('Content-Type')

res = operations.CheckResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

if http_res.status_code == 200:
Expand Down Expand Up @@ -117,7 +117,7 @@ def retry(self, request: components.RetryAuthenticationRequest) -> operations.Re

http_res = client.request('POST', url, data=data, files=form, headers=headers)
content_type = http_res.headers.get('Content-Type')

res = operations.RetryResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res)

if http_res.status_code == 200:
Expand Down
6 changes: 3 additions & 3 deletions src/ding/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class SDKConfiguration:
server: str = ''
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '1.2.0'
gen_version: str = '2.189.1'
user_agent: str = 'speakeasy-sdk/python 1.2.0 2.189.1 1.0.0 ding_api_client'
sdk_version: str = '1.2.1'
gen_version: str = '2.192.1'
user_agent: str = 'speakeasy-sdk/python 1.2.1 2.192.1 1.0.0 ding_api_client'
retry_config: RetryConfig = None

def get_server_details(self) -> Tuple[str, Dict[str, str]]:
Expand Down

0 comments on commit 4392c45

Please sign in to comment.