Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
36a2907
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.48.0
speakeasybot Jun 17, 2023
d74128e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.0
speakeasybot Jun 20, 2023
fd0dd95
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.1
speakeasybot Jun 21, 2023
e3e77fc
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.50.1
speakeasybot Jun 23, 2023
68ec018
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.1
speakeasybot Jun 27, 2023
44072c7
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.3
speakeasybot Jun 29, 2023
079f7f9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.0
speakeasybot Jul 1, 2023
561d885
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.2
speakeasybot Jul 6, 2023
6444f8c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.0
speakeasybot Jul 7, 2023
7b3bf6a
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.1
speakeasybot Jul 8, 2023
0edb80f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.0
speakeasybot Jul 11, 2023
4c03357
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.4
speakeasybot Jul 12, 2023
5b07697
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.57.0
speakeasybot Jul 13, 2023
0da56d3
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.59.0
speakeasybot Jul 14, 2023
ddd78e6
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.61.0
speakeasybot Jul 18, 2023
eeb10d8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.62.1
speakeasybot Jul 19, 2023
91096eb
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.64.0
speakeasybot Jul 22, 2023
a301e24
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.0
speakeasybot Jul 26, 2023
0db486c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.1
speakeasybot Jul 27, 2023
fc86351
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.2
speakeasybot Jul 28, 2023
679d1be
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.66.1
speakeasybot Aug 1, 2023
99ba14c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.1
speakeasybot Aug 3, 2023
e504538
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.3
speakeasybot Aug 4, 2023
284db16
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.69.1
speakeasybot Aug 8, 2023
73d4d74
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.72.0
speakeasybot Aug 15, 2023
8576211
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.3
speakeasybot Aug 19, 2023
452a76d
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.11
speakeasybot Aug 25, 2023
ae12b9a
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.16
speakeasybot Aug 26, 2023
caa6336
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.17
speakeasybot Aug 29, 2023
2ecade2
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.76.0
speakeasybot Aug 31, 2023
39547ee
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.0
speakeasybot Sep 1, 2023
c277bfd
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.2
speakeasybot Sep 2, 2023
6c014c0
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.78.3
speakeasybot Sep 5, 2023
c8aced1
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.82.5
speakeasybot Sep 12, 2023
5ab2236
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.86.0
speakeasybot Sep 16, 2023
8e75ff8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.88.0
speakeasybot Sep 20, 2023
231bc86
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.0
speakeasybot Sep 26, 2023
abc9057
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.2
speakeasybot Sep 27, 2023
92d523a
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.3
speakeasybot Sep 29, 2023
299850e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.2
speakeasybot Oct 1, 2023
e36301f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.3
speakeasybot Oct 2, 2023
91383cb
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.94.0
speakeasybot Oct 5, 2023
e11bf3b
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.96.1
speakeasybot Oct 7, 2023
1595b65
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.99.1
speakeasybot Oct 13, 2023
904e3b0
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.101.0
speakeasybot Oct 18, 2023
4d4c4e4
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.104.0
speakeasybot Oct 21, 2023
e4c9912
ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.109.0
speakeasybot Oct 28, 2023
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, Speakeay CLI 1.82.5
  • Loading branch information
speakeasybot committed Sep 12, 2023
commit c8aced1f4f48831d593d2cec86c0fbe0b9c43ac0
10 changes: 9 additions & 1 deletion partner/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,12 @@ Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/partner-directory-api.yaml
- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.23.2] partner
- [python v1.23.2] partner

## 2023-09-12 00:43:22
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/partner-directory-api.yaml
- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.23.3] partner
2 changes: 0 additions & 2 deletions partner/docs/models/shared/geolocation.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Geolocation

Geo-location converted from text


## Fields

Expand Down
2 changes: 0 additions & 2 deletions partner/docs/models/shared/partner.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Partner

Partner


## Fields

Expand Down
29 changes: 7 additions & 22 deletions partner/docs/sdks/partners/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,8 @@ s = epilot.Epilot(

req = [
operations.BatchGetAssignableRequestBody(
org_id='ipsa',
user_id='delectus',
),
operations.BatchGetAssignableRequestBody(
org_id='tempora',
user_id='suscipit',
),
operations.BatchGetAssignableRequestBody(
org_id='molestiae',
user_id='minus',
),
operations.BatchGetAssignableRequestBody(
org_id='placeat',
user_id='voluptatum',
org_id='debitis',
user_id='ipsa',
),
]

Expand Down Expand Up @@ -168,7 +156,7 @@ s = epilot.Epilot(
)

req = operations.GetPartnerByTokenRequest(
token='iusto',
token='delectus',
)

res = s.partners.get_partner_by_token(req)
Expand Down Expand Up @@ -207,7 +195,7 @@ s = epilot.Epilot(

req = operations.InvitePartnerRequest(
partner_invitation_payload=shared.PartnerInvitationPayload(
language=shared.PartnerInvitationPayloadLanguage.DE,
language=shared.PartnerInvitationPayloadLanguage.EN,
),
id='e45a6dc2-3795-43a3-ae0f-6b6760f310fc',
)
Expand Down Expand Up @@ -332,15 +320,12 @@ s = epilot.Epilot(
)

req = operations.SearchAssignableRequestBody(
from_=925597,
from_=477665,
org_ids=[
'123',
'123',
'123',
'123',
],
q='ab',
size=337396,
q='minus',
size=812169,
types=[
operations.SearchAssignableRequestBodyTypes.PARTNER_USER,
],
Expand Down
8 changes: 4 additions & 4 deletions partner/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ configVersion: 1.0.0
management:
docChecksum: d5d021d177610d1619d994fbe21227a1
docVersion: 1.0.0
speakeasyVersion: 1.78.3
generationVersion: 2.96.3
speakeasyVersion: 1.82.5
generationVersion: 2.108.3
generation:
sdkClassName: epilot
sdkFlattening: true
singleTagPerOp: false
telemetryEnabled: false
features:
python:
core: 2.85.3
core: 2.85.4
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
python:
version: 1.23.2
version: 1.23.3
author: epilot
description: Python Client SDK for Epilot
maxMethodParams: 0
Expand Down
2 changes: 1 addition & 1 deletion partner/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="epilot-partner",
version="1.23.2",
version="1.23.3",
author="epilot",
description="Python Client SDK for Epilot",
long_description=long_description,
Expand Down
1 change: 0 additions & 1 deletion partner/src/epilot/models/shared/geolocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

@dataclasses.dataclass
class Geolocation:
r"""Geo-location converted from text"""
lat: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lat') }})
r"""Latitude"""
lng: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lng') }})
Expand Down
1 change: 0 additions & 1 deletion partner/src/epilot/models/shared/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class PartnerStatus(str, Enum):

@dataclasses.dataclass
class Partner:
r"""Partner"""
company_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('company_name'), 'exclude': lambda f: f is None }})
r"""Company name"""
created_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_at'), 'exclude': lambda f: f is None }})
Expand Down
9 changes: 6 additions & 3 deletions partner/src/epilot/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def __init__(self,
server_idx: int = None,
server_url: str = None,
url_params: dict[str, str] = None,
client: requests_http.Session = None
client: requests_http.Session = None,
retry_config: utils.RetryConfig = None
) -> None:
"""Instantiates the SDK configuring it with the provided parameters.

Expand All @@ -31,7 +32,9 @@ def __init__(self,
:param url_params: Parameters to optionally template the server URL with
:type url_params: dict[str, str]
:param client: The requests.Session HTTP client to use for all operations
:type client: requests_http.Session
:type client: requests_http.Session
:param retry_config: The utils.RetryConfig to use globally
:type retry_config: utils.RetryConfig
"""
if client is None:
client = requests_http.Session()
Expand All @@ -42,7 +45,7 @@ def __init__(self,
if url_params is not None:
server_url = utils.template_url(server_url, url_params)

self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx)
self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx, retry_config=retry_config)

self._init_sdks()

Expand Down
7 changes: 5 additions & 2 deletions partner/src/epilot/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import requests
from dataclasses import dataclass

from .utils.retries import RetryConfig


SERVERS = [
'https://partner-directory-api.sls.epilot.io',
Expand All @@ -17,8 +19,9 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '1.0.0'
sdk_version: str = '1.23.2'
gen_version: str = '2.96.3'
sdk_version: str = '1.23.3'
gen_version: str = '2.108.3'
retry_config: RetryConfig = None

def get_server_details(self) -> tuple[str, dict[str, str]]:
if self.server_url:
Expand Down
33 changes: 32 additions & 1 deletion partner/src/epilot/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re
from dataclasses import Field, dataclass, fields, is_dataclass, make_dataclass
from datetime import date, datetime
from decimal import Decimal
from email.message import Message
from enum import Enum
from typing import Any, Callable, Optional, Tuple, Union, get_args, get_origin
Expand Down Expand Up @@ -193,7 +194,7 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass
f"{pp_key},{_val_to_string(param[pp_key])}")
path = path.replace(
'{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1)
elif not isinstance(param, (str, int, float, complex, bool)):
elif not isinstance(param, (str, int, float, complex, bool, Decimal)):
pp_vals: list[str] = []
param_fields: Tuple[Field, ...] = fields(param)
for param_field in param_fields:
Expand Down Expand Up @@ -737,6 +738,36 @@ def datefromisoformat(date_str: str):
return dateutil.parser.parse(date_str).date()


def bigintencoder(optional: bool):
def bigintencode(val: int):
if optional and val is None:
return None
return str(val)

return bigintencode


def bigintdecoder(val):
return int(val)


def decimalencoder(optional: bool, as_str: bool):
def decimalencode(val: Decimal):
if optional and val is None:
return None

if as_str:
return str(val)

return float(val)

return decimalencode


def decimaldecoder(val):
return Decimal(str(val))


def get_field_name(name):
def override(_, _field_name=name):
return _field_name
Expand Down