Skip to content

Commit

Permalink
chore: speakeasy SDK regeneration (#4)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.5.0

* ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.5.3

* ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.5.4

---------

Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Feb 28, 2023
1 parent 4c13cce commit 3c699a1
Show file tree
Hide file tree
Showing 168 changed files with 1,774 additions and 1,653 deletions.
26 changes: 25 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,28 @@ Based on:
- OpenAPI Doc 1.0.0 ./openapi.yaml
- Speakeasy CLI 1.4.8 https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v2.4.1] https://pypi.org/project/epilotapi/2.4.1 - .
- [PyPI v2.4.1] https://pypi.org/project/epilotapi/2.4.1 - .

## Version 2.5.0
### Changes
Based on:
- OpenAPI Doc 1.0.0 ./openapi.yaml
- Speakeasy CLI 1.5.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v2.5.0] https://pypi.org/project/epilotapi/2.5.0 - .

## Version 2.5.1
### Changes
Based on:
- OpenAPI Doc 1.0.0 ./openapi.yaml
- Speakeasy CLI 1.5.3 https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v2.5.1] https://pypi.org/project/epilotapi/2.5.1 - .

## Version 2.5.2
### Changes
Based on:
- OpenAPI Doc 1.0.0 ./openapi.yaml
- Speakeasy CLI 1.5.4 https://github.com/speakeasy-api/speakeasy
### Releases
- [PyPI v2.5.2] https://pypi.org/project/epilotapi/2.5.2 - .
4 changes: 2 additions & 2 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
management:
openapi-checksum: e5a0a41f38f047f4f80691166ac20b34
openapi-version: 1.0.0
speakeasy-version: 1.4.8
speakeasy-version: 1.5.4
python:
version: 2.4.1
version: 2.5.2
packagename: epilotapi
author: epilotapi
sdkclassname: EpilotAPI
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="epilotapi",
version="2.4.1",
version="2.5.2",
author="epilotapi",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand All @@ -17,7 +17,6 @@
install_requires=[
"certifi==2022.12.07",
"charset-normalizer==2.1.1",
"dacite==1.6.0",
"dataclasses-json-speakeasy==0.5.8",
"idna==3.3",
"marshmallow==3.17.1",
Expand Down
4 changes: 2 additions & 2 deletions src/epilotapi/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ def create_activity(self, request: operations.CreateActivityRequest) -> operatio
url = base_url.removesuffix("/") + "/v1/entity/activity"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type
query_params = utils.get_query_params(request.query_params)

client = self._security_client

r = client.request("POST", url, params=query_params, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, params=query_params, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.CreateActivityResponse(status_code=r.status_code, content_type=content_type)
Expand Down
16 changes: 8 additions & 8 deletions src/epilotapi/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def create_entity(self, request: operations.CreateEntityRequest) -> operations.C
url = utils.generate_url(base_url, "/v1/entity/{slug}", request.path_params)

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type
query_params = utils.get_query_params(request.query_params)

client = self._security_client

r = client.request("POST", url, params=query_params, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, params=query_params, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.CreateEntityResponse(status_code=r.status_code, content_type=content_type)
Expand Down Expand Up @@ -295,13 +295,13 @@ def search_entities(self, request: operations.SearchEntitiesRequest) -> operatio
url = base_url.removesuffix("/") + "/v1/entity:search"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("POST", url, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.SearchEntitiesResponse(status_code=r.status_code, content_type=content_type)
Expand Down Expand Up @@ -351,14 +351,14 @@ def update_entity(self, request: operations.UpdateEntityRequest) -> operations.U
url = utils.generate_url(base_url, "/v1/entity/{slug}/{id}", request.path_params)

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type
query_params = utils.get_query_params(request.query_params)

client = self._security_client

r = client.request("PUT", url, params=query_params, data=data, json=json, files=files, headers=headers)
r = client.request("PUT", url, params=query_params, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.UpdateEntityResponse(status_code=r.status_code, content_type=content_type)
Expand Down Expand Up @@ -390,14 +390,14 @@ def upsert_entity(self, request: operations.UpsertEntityRequest) -> operations.U
url = utils.generate_url(base_url, "/v1/entity/{slug}:upsert", request.path_params)

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type
query_params = utils.get_query_params(request.query_params)

client = self._security_client

r = client.request("PATCH", url, params=query_params, data=data, json=json, files=files, headers=headers)
r = client.request("PATCH", url, params=query_params, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.UpsertEntityResponse(status_code=r.status_code, content_type=content_type)
Expand Down
8 changes: 4 additions & 4 deletions src/epilotapi/executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ def retrigger_action(self, request: operations.RetriggerActionRequest) -> operat
url = utils.generate_url(base_url, "/v1/automation/executions/{execution_id}/{action_id}/retrigger", request.path_params)

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("POST", url, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.RetriggerActionResponse(status_code=r.status_code, content_type=content_type)
Expand All @@ -133,13 +133,13 @@ def start_execution(self, request: operations.StartExecutionRequest) -> operatio
url = base_url.removesuffix("/") + "/v1/automation/executions"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("POST", url, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.StartExecutionResponse(status_code=r.status_code, content_type=content_type)
Expand Down
8 changes: 4 additions & 4 deletions src/epilotapi/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def export_entities(self, request: operations.ExportEntitiesRequest) -> operatio
url = base_url.removesuffix("/") + "/v1/entity:export"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type
query_params = utils.get_query_params(request.query_params)

client = self._security_client

r = client.request("POST", url, params=query_params, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, params=query_params, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.ExportEntitiesResponse(status_code=r.status_code, content_type=content_type)
Expand All @@ -57,14 +57,14 @@ def import_entities(self, request: operations.ImportEntitiesRequest) -> operatio
url = base_url.removesuffix("/") + "/v1/entity:import"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type
query_params = utils.get_query_params(request.query_params)

client = self._security_client

r = client.request("POST", url, params=query_params, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, params=query_params, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.ImportEntitiesResponse(status_code=r.status_code, content_type=content_type)
Expand Down
8 changes: 4 additions & 4 deletions src/epilotapi/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def create_flow(self, request: operations.CreateFlowRequest) -> operations.Creat
url = base_url.removesuffix("/") + "/v1/automation/flows"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("POST", url, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.CreateFlowResponse(status_code=r.status_code, content_type=content_type)
Expand Down Expand Up @@ -109,13 +109,13 @@ def put_flow(self, request: operations.PutFlowRequest) -> operations.PutFlowResp
url = utils.generate_url(base_url, "/v1/automation/flows/{flow_id}", request.path_params)

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("PUT", url, data=data, json=json, files=files, headers=headers)
r = client.request("PUT", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.PutFlowResponse(status_code=r.status_code, content_type=content_type)
Expand Down
16 changes: 8 additions & 8 deletions src/epilotapi/journeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def create_journey(self, request: operations.CreateJourneyRequest) -> operations
url = base_url.removesuffix("/") + "/v1/journey/configuration"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("POST", url, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.CreateJourneyResponse(status_code=r.status_code, content_type=content_type)
Expand Down Expand Up @@ -110,13 +110,13 @@ def patch_update_journey(self, request: operations.PatchUpdateJourneyRequest) ->
url = base_url.removesuffix("/") + "/v1/journey/configuration"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("PATCH", url, data=data, json=json, files=files, headers=headers)
r = client.request("PATCH", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.PatchUpdateJourneyResponse(status_code=r.status_code, content_type=content_type)
Expand Down Expand Up @@ -162,13 +162,13 @@ def search_journeys(self, request: operations.SearchJourneysRequest) -> operatio
url = base_url.removesuffix("/") + "/v1/journey/configuration/search"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("POST", url, data=data, json=json, files=files, headers=headers)
r = client.request("POST", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.SearchJourneysResponse(status_code=r.status_code, content_type=content_type)
Expand All @@ -191,13 +191,13 @@ def update_journey(self, request: operations.UpdateJourneyRequest) -> operations
url = base_url.removesuffix("/") + "/v1/journey/configuration"

headers = {}
req_content_type, data, json, files = utils.serialize_request_body(request)
req_content_type, data, form = utils.serialize_request_body(request)
if req_content_type != "multipart/form-data" and req_content_type != "multipart/mixed":
headers["content-type"] = req_content_type

client = self._security_client

r = client.request("PUT", url, data=data, json=json, files=files, headers=headers)
r = client.request("PUT", url, data=data, files=form, headers=headers)
content_type = r.headers.get("Content-Type")

res = operations.UpdateJourneyResponse(status_code=r.status_code, content_type=content_type)
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/addrelations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import relationitem as shared_relationitem
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/attachactivity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import activityitem as shared_activityitem
from typing import Optional
Expand Down
9 changes: 5 additions & 4 deletions src/epilotapi/models/operations/autocomplete.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations
import dataclasses
from dataclasses_json import dataclass_json
from dataclasses_json import Undefined, dataclass_json
from epilotapi import utils
from typing import Any, Optional

Expand All @@ -17,11 +18,11 @@ class AutocompleteRequest:
query_params: AutocompleteQueryParams = dataclasses.field()


@dataclass_json
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class Autocomplete200ApplicationJSON:
hits: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.field_name('hits') }})
results: Optional[list[Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.field_name('results') }})
hits: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.field_name('hits'), 'exclude': lambda f: f is None }})
results: Optional[list[Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.field_name('results'), 'exclude': lambda f: f is None }})


@dataclasses.dataclass
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/cancelexecution.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import automationexecution as shared_automationexecution
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/createactivity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import activity as shared_activity
from ..shared import activityitem as shared_activityitem
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/createentity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from typing import Any, Optional

Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/createflow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import automationflow as shared_automationflow
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/createjourney.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from typing import Any, Optional

Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/createnewschemaversion.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import entityschema as shared_entityschema
from ..shared import entityschemaitem as shared_entityschemaitem
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/createsavedview.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import savedview as shared_savedview
from ..shared import savedviewitem as shared_savedviewitem
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/deleteentity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/deleteflow.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from ..shared import automationflow as shared_automationflow
from typing import Optional
Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/deleterelation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/deletesavedview.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses


Expand Down
1 change: 1 addition & 0 deletions src/epilotapi/models/operations/deleteschemabyid.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import dataclasses


Expand Down
Loading

0 comments on commit 3c699a1

Please sign in to comment.