Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0, Speakeay CLI 1.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 19, 2023
1 parent 96d4777 commit a05f1a9
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 7 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,12 @@ Based on:
- OpenAPI Doc 1.0 https://prod.speakeasyapi.dev/v1/apis/Structure/version/1.0.0/schema/download
- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.12.0] https://pypi.org/project/structure_py/0.12.0 - .
- [PyPI v0.12.0] https://pypi.org/project/structure_py/0.12.0 - .

## 2023-05-19 00:58:59
### Changes
Based on:
- OpenAPI Doc 1.0 https://prod.speakeasyapi.dev/v1/apis/Structure/version/1.0.0/schema/download
- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v0.13.0] https://pypi.org/project/structure_py/0.13.0 - .
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ configVersion: 1.0.0
management:
docChecksum: e0bf2d205ca94a0d32bd91d6ea558d5b
docVersion: "1.0"
speakeasyVersion: 1.34.0
generationVersion: 2.30.0
speakeasyVersion: 1.35.0
generationVersion: 2.31.0
generation:
sdkClassName: SDK
singleTagPerOp: false
telemetryEnabled: false
python:
version: 0.12.0
version: 0.13.0
author: Structure
description: Python Client SDK Generated by Speakeasy
maxMethodParams: 0
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="structure_py",
version="0.12.0",
version="0.13.0",
author="Structure",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
1 change: 1 addition & 0 deletions src/sdk/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def list_users(self) -> operations.ListUsersResponse:

url = base_url.removesuffix('/') + '/accounts'
headers = {}
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
4 changes: 4 additions & 0 deletions src/sdk/companies.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def enrich(self, request: operations.EnrichCompanyRequest) -> operations.EnrichC

url = utils.generate_url(operations.EnrichCompanyRequest, base_url, '/companies/{id}/enrich', request)
headers = {}
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -53,6 +54,7 @@ def list_employees(self, request: operations.ListEmployeesRequest) -> operations
url = utils.generate_url(operations.ListEmployeesRequest, base_url, '/companies/{id}/employees', request)
headers = {}
query_params = utils.get_query_params(operations.ListEmployeesRequest, request)
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -78,6 +80,7 @@ def list_jobs(self, request: operations.ListJobsRequest) -> operations.ListJobsR
url = utils.generate_url(operations.ListJobsRequest, base_url, '/companies/{id}/jobs', request)
headers = {}
query_params = utils.get_query_params(operations.ListJobsRequest, request)
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -105,6 +108,7 @@ def search(self, request: operations.SearchCompaniesApplicationJSON) -> operatio
req_content_type, data, form = utils.serialize_request_body(request, "request", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
2 changes: 2 additions & 0 deletions src/sdk/people.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def enrich(self, request: operations.EnrichPersonRequest) -> operations.EnrichPe

url = utils.generate_url(operations.EnrichPersonRequest, base_url, '/people/{id}/enrich', request)
headers = {}
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down Expand Up @@ -55,6 +56,7 @@ def search(self, request: operations.SearchPeopleApplicationJSON) -> operations.
req_content_type, data, form = utils.serialize_request_body(request, "request", 'json')
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
headers['content-type'] = req_content_type
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class SDK:
_security_client: requests_http.Session
_server_url: str = SERVERS[0]
_language: str = "python"
_sdk_version: str = "0.12.0"
_gen_version: str = "2.30.0"
_sdk_version: str = "0.13.0"
_gen_version: str = "2.31.0"

def __init__(self,
security: shared.Security = None,
Expand Down
2 changes: 2 additions & 0 deletions src/sdk/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def login(self, request: operations.LoginApplicationJSON) -> operations.LoginRes
headers['content-type'] = req_content_type
if data is None and form is None:
raise Exception('request body is required')
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand All @@ -57,6 +58,7 @@ def me(self) -> operations.MeResponse:

url = base_url.removesuffix('/') + '/me'
headers = {}
headers['Accept'] = '*/*'
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'

client = self._security_client
Expand Down

0 comments on commit a05f1a9

Please sign in to comment.