Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
bd94969
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.70.2
speakeasybot Aug 9, 2023
a8fd2e5
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.72.0
speakeasybot Aug 15, 2023
afaba1c
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.3
speakeasybot Aug 19, 2023
8d10ad9
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.11
speakeasybot Aug 25, 2023
d277a72
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.16
speakeasybot Aug 26, 2023
ffb9abd
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.74.17
speakeasybot Aug 29, 2023
352d3c0
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.76.0
speakeasybot Aug 31, 2023
c8f5bfd
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.77.0
speakeasybot Sep 1, 2023
1fc19d3
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.77.2
speakeasybot Sep 2, 2023
201753a
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.78.3
speakeasybot Sep 5, 2023
a6deabe
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.82.5
speakeasybot Sep 12, 2023
8bec480
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.86.0
speakeasybot Sep 16, 2023
a0c4a0a
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.88.0
speakeasybot Sep 20, 2023
36877af
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.91.0
speakeasybot Sep 26, 2023
7d5003f
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.91.2
speakeasybot Sep 27, 2023
174052e
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.91.3
speakeasybot Sep 29, 2023
e5c81ba
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.92.2
speakeasybot Oct 1, 2023
bb6d965
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.92.3
speakeasybot Oct 2, 2023
066154a
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.94.0
speakeasybot Oct 5, 2023
320cd13
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.96.1
speakeasybot Oct 7, 2023
24d7ed1
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.99.1
speakeasybot Oct 13, 2023
683adf6
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.101.0
speakeasybot Oct 18, 2023
aa8894d
ci: regenerated with OpenAPI Doc 0.2.0, Speakeay CLI 1.104.0
speakeasybot Oct 21, 2023
2bd7607
ci: regenerated with OpenAPI Doc 0.2.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 0.2.0, Speakeay CLI 1.78.3
  • Loading branch information
speakeasybot committed Sep 5, 2023
commit 201753ac4d47d17f2e137fd00a8c0c01a3c07f93
10 changes: 9 additions & 1 deletion access_token/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,12 @@ Based on:
- OpenAPI Doc 0.2.0 https://docs.api.epilot.io/access-token.yaml
- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.7.1] access_token
- [python v1.7.1] access_token

## 2023-09-05 00:36:27
### Changes
Based on:
- OpenAPI Doc 0.2.0 https://docs.api.epilot.io/access-token.yaml
- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.7.2] access_token
8 changes: 4 additions & 4 deletions access_token/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ configVersion: 1.0.0
management:
docChecksum: 02397f0d4663d4ade6c146f4c087489b
docVersion: 0.2.0
speakeasyVersion: 1.77.2
generationVersion: 2.93.0
speakeasyVersion: 1.78.3
generationVersion: 2.96.3
generation:
sdkClassName: epilot
sdkFlattening: true
singleTagPerOp: false
telemetryEnabled: false
features:
python:
core: 2.85.2
core: 2.85.3
globalSecurity: 2.81.1
globalServerURLs: 2.82.0
python:
version: 1.7.1
version: 1.7.2
author: epilot
description: Python Client SDK for Epilot
maxMethodParams: 0
Expand Down
2 changes: 1 addition & 1 deletion access_token/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="epilot-access-token",
version="1.7.1",
version="1.7.2",
author="epilot",
description="Python Client SDK for Epilot",
long_description=long_description,
Expand Down
4 changes: 2 additions & 2 deletions access_token/src/epilot/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class SDKConfiguration:
server_idx: int = 0
language: str = 'python'
openapi_doc_version: str = '0.2.0'
sdk_version: str = '1.7.1'
gen_version: str = '2.93.0'
sdk_version: str = '1.7.2'
gen_version: str = '2.96.3'

def get_server_details(self) -> tuple[str, dict[str, str]]:
if self.server_url:
Expand Down
19 changes: 11 additions & 8 deletions access_token/src/epilot/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict,
client.client.headers[header_name] = value
elif scheme_type == 'http':
if sub_type == 'bearer':
client.client.headers[header_name] = value.lower().startswith('bearer ') and value or f'Bearer {value}'
client.client.headers[header_name] = value.lower().startswith(
'bearer ') and value or f'Bearer {value}'
else:
raise Exception('not supported')
else:
Expand Down Expand Up @@ -235,7 +236,7 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str:


def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[
str, list[str]]:
str, list[str]]:
params: dict[str, list[str]] = {}

param_fields: Tuple[Field, ...] = fields(clazz)
Expand Down Expand Up @@ -377,7 +378,7 @@ def _get_query_param_field_name(obj_field: Field) -> str:


def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[
str, list[str]]:
str, list[str]]:
return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter)


Expand All @@ -391,9 +392,9 @@ def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delim


def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[
str, any, any]:
str, any, any]:
if request is None:
return None, None, None, None
return None, None, None

if not is_dataclass(request) or not hasattr(request, request_field_name):
return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method],
Expand Down Expand Up @@ -486,7 +487,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str,


def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[
str, list[str]]:
str, list[str]]:
if existing is None:
existing = []

Expand Down Expand Up @@ -604,7 +605,8 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f
items.append(_val_to_string(value))

if len(items) > 0:
params[field_name] = [delimiter.join([str(item) for item in items])]
params[field_name] = [delimiter.join(
[str(item) for item in items])]
else:
params[field_name] = [_val_to_string(obj)]

Expand Down Expand Up @@ -681,7 +683,8 @@ def unmarshal_json(data, typ):
try:
out = unmarshal.from_dict({"res": json_dict})
except AttributeError as attr_err:
raise AttributeError(f'unable to unmarshal {data} as {typ}') from attr_err
raise AttributeError(
f'unable to unmarshal {data} as {typ}') from attr_err
return out.res


Expand Down