Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a35a4b5
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.357.3
speakeasybot Aug 8, 2024
ccd3e28
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.358.0
speakeasybot Aug 9, 2024
ce9501d
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.368.0
speakeasybot Aug 15, 2024
2c909fa
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.376.0
speakeasybot Aug 20, 2024
04004e0
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.383.2
speakeasybot Aug 30, 2024
26b2309
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.392.1
speakeasybot Sep 7, 2024
59cf283
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.394.0
speakeasybot Sep 10, 2024
48a6881
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.6
speakeasybot Sep 13, 2024
480f65e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.401.2
speakeasybot Sep 21, 2024
d9357bb
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.405.6
speakeasybot Oct 1, 2024
39ecc30
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.406.0
speakeasybot Oct 3, 2024
ca3a2b7
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.411.1
speakeasybot Oct 8, 2024
3574021
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.421.1
speakeasybot Oct 24, 2024
55dabe9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.423.5
speakeasybot Oct 31, 2024
2e92b8c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.426.0
speakeasybot Nov 5, 2024
5581b9d
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.436.0
speakeasybot Nov 9, 2024
a1df762
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.443.0
speakeasybot Nov 22, 2024
00a6fff
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.446.0
speakeasybot Nov 26, 2024
cb5b9b5
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.2
speakeasybot Nov 28, 2024
68beb80
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.451.5
speakeasybot Dec 5, 2024
865e3de
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.8
speakeasybot Dec 10, 2024
8e0343f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.3
speakeasybot Dec 14, 2024
e014dd3
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.7
speakeasybot Dec 17, 2024
3bee802
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.459.2
speakeasybot Dec 21, 2024
dea7514
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.460.2
speakeasybot Dec 24, 2024
f564f5f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.462.2
speakeasybot Jan 4, 2025
e5f919c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.465.1
speakeasybot Jan 9, 2025
a39f29c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.467.0
speakeasybot Jan 10, 2025
8bb0b1d
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.2
speakeasybot Jan 12, 2025
614c726
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.6
speakeasybot Jan 15, 2025
afccb40
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.8
speakeasybot Jan 16, 2025
0aecb55
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.2
speakeasybot Jan 20, 2025
4b0d5de
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.11
speakeasybot Jan 21, 2025
a609848
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.474.0
speakeasybot Jan 24, 2025
ad548d0
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.476.0
speakeasybot Jan 25, 2025
dab720d
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.477.2
speakeasybot Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.3
  • Loading branch information
speakeasybot committed Dec 14, 2024
commit 8e0343fe942c83454c580b787cf86cd85872ef55
10 changes: 5 additions & 5 deletions submission/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: 33caae79-0482-46e7-9dea-4e7a337d182e
management:
docChecksum: d4af78e6c6d718d7121f5ce9edb789ef
docVersion: 1.0.0
speakeasyVersion: 1.453.8
generationVersion: 2.474.15
releaseVersion: 1.10.3
configChecksum: 68704d6e288eb0cd985a26f746018553
speakeasyVersion: 1.455.3
generationVersion: 2.479.3
releaseVersion: 1.11.0
configChecksum: d9c72c52be59af9b09a0cde54681c807
repoURL: https://github.com/epilot-dev/sdk-python.git
repoSubDirectory: submission
installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=submission
features:
python:
additionalDependencies: 1.0.0
additionalProperties: 1.0.1
core: 5.6.11
core: 5.7.2
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
enumUnions: 0.1.0
Expand Down
7 changes: 7 additions & 0 deletions submission/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import epilot_submission
from epilot_submission import Epilot

with Epilot() as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -84,6 +85,7 @@ from epilot_submission import Epilot

async def main():
async with Epilot() as epilot:

await epilot.submissions.create_submission_async(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -153,6 +155,7 @@ from epilot_submission import Epilot
from epilot_submission.utils import BackoffStrategy, RetryConfig

with Epilot() as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -204,6 +207,7 @@ from epilot_submission.utils import BackoffStrategy, RetryConfig
with Epilot(
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
) as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -275,6 +279,7 @@ from epilot_submission import Epilot, models
with Epilot() as epilot:

try:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -333,6 +338,7 @@ from epilot_submission import Epilot
with Epilot(
server_url="https://submission.sls.epilot.io",
) as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -475,6 +481,7 @@ from epilot_submission import Epilot
with Epilot(
epilot_auth="<YOUR_BEARER_TOKEN_HERE>",
) as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down
10 changes: 9 additions & 1 deletion submission/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,12 @@ Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/submission-api.yaml
- Speakeasy CLI 1.453.8 (2.474.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.10.3] submission
- [python v1.10.3] submission

## 2024-12-14 00:27:43
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/submission-api.yaml
- Speakeasy CLI 1.455.3 (2.479.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.11.0] submission
2 changes: 2 additions & 0 deletions submission/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import epilot_submission
from epilot_submission import Epilot

with Epilot() as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down Expand Up @@ -56,6 +57,7 @@ from epilot_submission import Epilot

async def main():
async with Epilot() as epilot:

await epilot.submissions.create_submission_async(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down
1 change: 1 addition & 0 deletions submission/docs/sdks/submissions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import epilot_submission
from epilot_submission import Epilot

with Epilot() as epilot:

epilot.submissions.create_submission(request={
"entities": [
epilot_submission.SubmissionEntity(
Expand Down
2 changes: 1 addition & 1 deletion submission/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
sdkFlattening: true
telemetryEnabled: false
python:
version: 1.10.3
version: 1.11.0
additionalDependencies:
dev: {}
main: {}
Expand Down
2 changes: 1 addition & 1 deletion submission/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "epilot-submission"
version = "1.10.3"
version = "1.11.0"
description = "Python Client SDK for Epilot"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion submission/src/epilot_submission/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "epilot-submission"
__version__: str = "1.10.3"
__version__: str = "1.11.0"

try:
if __package__ is not None:
Expand Down
11 changes: 10 additions & 1 deletion submission/src/epilot_submission/basesdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)
from epilot_submission.utils import RetryConfig, SerializedRequestBody, get_body_content
import httpx
from typing import Callable, List, Optional, Tuple
from typing import Callable, List, Mapping, Optional, Tuple
from urllib.parse import parse_qs, urlparse


Expand Down Expand Up @@ -49,6 +49,7 @@ def build_request_async(
Callable[[], Optional[SerializedRequestBody]]
] = None,
url_override: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
) -> httpx.Request:
client = self.sdk_configuration.async_client
return self.build_request_with_client(
Expand All @@ -68,6 +69,7 @@ def build_request_async(
timeout_ms,
get_serialized_body,
url_override,
http_headers,
)

def build_request(
Expand All @@ -89,6 +91,7 @@ def build_request(
Callable[[], Optional[SerializedRequestBody]]
] = None,
url_override: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
) -> httpx.Request:
client = self.sdk_configuration.client
return self.build_request_with_client(
Expand All @@ -108,6 +111,7 @@ def build_request(
timeout_ms,
get_serialized_body,
url_override,
http_headers,
)

def build_request_with_client(
Expand All @@ -130,6 +134,7 @@ def build_request_with_client(
Callable[[], Optional[SerializedRequestBody]]
] = None,
url_override: Optional[str] = None,
http_headers: Optional[Mapping[str, str]] = None,
) -> httpx.Request:
query_params = {}

Expand Down Expand Up @@ -185,6 +190,10 @@ def build_request_with_client(
):
headers["content-type"] = serialized_request_body.media_type

if http_headers is not None:
for header, value in http_headers.items():
headers[header] = value

timeout = timeout_ms / 1000 if timeout_ms is not None else None

return client.build_request(
Expand Down
6 changes: 3 additions & 3 deletions submission/src/epilot_submission/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class SDKConfiguration:
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "1.0.0"
sdk_version: str = "1.10.3"
gen_version: str = "2.474.15"
user_agent: str = "speakeasy-sdk/python 1.10.3 2.474.15 1.0.0 epilot-submission"
sdk_version: str = "1.11.0"
gen_version: str = "2.479.3"
user_agent: str = "speakeasy-sdk/python 1.11.0 2.479.3 1.0.0 epilot-submission"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down
8 changes: 7 additions & 1 deletion submission/src/epilot_submission/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from epilot_submission import models, utils
from epilot_submission._hooks import HookContext
from epilot_submission.types import BaseModel, OptionalNullable, UNSET
from typing import Optional, Union, cast
from typing import Mapping, Optional, Union, cast


class Submissions(BaseSDK):
Expand All @@ -19,6 +19,7 @@ def create_submission(
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None,
):
r"""createSubmission

Expand All @@ -29,6 +30,7 @@ def create_submission(
:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
:param http_headers: Additional headers to set or replace on requests.
"""
base_url = None
url_variables = None
Expand All @@ -53,6 +55,7 @@ def create_submission(
request_has_query_params=True,
user_agent_header="user-agent",
accept_header_value="*/*",
http_headers=http_headers,
security=self.sdk_configuration.security,
get_serialized_body=lambda: utils.serialize_request_body(
request, False, True, "json", Optional[models.SubmissionPayload]
Expand Down Expand Up @@ -105,6 +108,7 @@ async def create_submission_async(
retries: OptionalNullable[utils.RetryConfig] = UNSET,
server_url: Optional[str] = None,
timeout_ms: Optional[int] = None,
http_headers: Optional[Mapping[str, str]] = None,
):
r"""createSubmission

Expand All @@ -115,6 +119,7 @@ async def create_submission_async(
:param retries: Override the default retry configuration for this method
:param server_url: Override the default server URL for this method
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
:param http_headers: Additional headers to set or replace on requests.
"""
base_url = None
url_variables = None
Expand All @@ -139,6 +144,7 @@ async def create_submission_async(
request_has_query_params=True,
user_agent_header="user-agent",
accept_header_value="*/*",
http_headers=http_headers,
security=self.sdk_configuration.security,
get_serialized_body=lambda: utils.serialize_request_body(
request, False, True, "json", Optional[models.SubmissionPayload]
Expand Down