From 8e4563e4118a1719eccc7097b0246457b78155f9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Apr 2023 00:38:09 +0000 Subject: [PATCH 01/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.19.3 --- internal_auth/README.md | 2 +- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/pylintrc | 12 +++++------- internal_auth/setup.py | 2 +- .../src/epilot/models/operations/__init__.py | 2 +- .../src/epilot/models/operations/gettoken.py | 6 ------ internal_auth/src/epilot/sdk.py | 12 ++++-------- 8 files changed, 22 insertions(+), 28 deletions(-) diff --git a/internal_auth/README.md b/internal_auth/README.md index 584d5443e..c6d533097 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -25,7 +25,7 @@ if res.get_jwks_200_application_json_object is not None: -## SDK Available Operations +## Available Resources and Operations ### Epilot SDK diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ee415d4d9..4fb4f4f5d 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -34,4 +34,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy + +## 2023-04-01 00:37:58 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 97cad151e..90dd3b675 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.19.2 - generationVersion: 2.16.5 + speakeasyVersion: 1.19.3 + generationVersion: 2.16.7 generation: telemetryEnabled: false sdkClassName: epilot sdkFlattening: true singleTagPerOp: false python: - version: 1.2.2 + version: 1.2.3 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc index 1024ae5ab..53535d7c8 100755 --- a/internal_auth/pylintrc +++ b/internal_auth/pylintrc @@ -124,12 +124,7 @@ attr-naming-style=snake_case #attr-rgx= # Bad variable names which should always be refused, separated by a comma. -bad-names=foo, - bar, - baz, - toto, - tutu, - tata +bad-names= # Bad variable names regexes, separated by a comma. If names match any regex, # they will always be refused @@ -440,7 +435,10 @@ disable=raw-checker-failed, trailing-newlines, too-many-public-methods, too-many-locals, - too-many-lines + too-many-lines, + using-constant-test, + too-many-statements, + cyclic-import, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 63658cf5a..7f6149e00 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.2.2", + version="1.2.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/__init__.py b/internal_auth/src/epilot/models/operations/__init__.py index 7a5793027..c19251b77 100755 --- a/internal_auth/src/epilot/models/operations/__init__.py +++ b/internal_auth/src/epilot/models/operations/__init__.py @@ -5,4 +5,4 @@ from .gettoken import * from .gettokenv2 import * -__all__ = ["GetJwks200ApplicationJSON","GetJwks200ApplicationJSONKeys","GetJwksResponse","GetOpenIDConfiguration200ApplicationJSON","GetOpenIDConfigurationResponse","GetToken200ApplicationJSON","GetTokenResponse","GetTokenSecurity","GetTokenV2200ApplicationJSON","GetTokenV2Response","GetTokenV2Security"] +__all__ = ["GetJwks200ApplicationJSON","GetJwks200ApplicationJSONKeys","GetJwksResponse","GetOpenIDConfiguration200ApplicationJSON","GetOpenIDConfigurationResponse","GetToken200ApplicationJSON","GetTokenResponse","GetTokenV2200ApplicationJSON","GetTokenV2Response","GetTokenV2Security"] diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 3e53739d6..1829f9809 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -8,12 +8,6 @@ from typing import Optional -@dataclasses.dataclass -class GetTokenSecurity: - - sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) - - @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class GetToken200ApplicationJSON: diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 1b4294064..43f641443 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -14,15 +14,14 @@ class Epilot: r"""Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. Converts AWS credentials into a JWT token with caller's ARN `callerIdentity` and list of `policies` granting access to API Gateway as claims. - """ _client: requests_http.Session _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.2.2" - _gen_version: str = "2.16.5" + _sdk_version: str = "1.2.3" + _gen_version: str = "2.16.7" def __init__(self, server_url: str = None, @@ -85,7 +84,6 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse Note: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to automate the process of verifying JWT tokens. - """ base_url = self._server_url @@ -106,7 +104,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse return res - def get_token(self, security: operations.GetTokenSecurity) -> operations.GetTokenResponse: + def get_token(self) -> operations.GetTokenResponse: r"""getToken Generates token for internal API access @@ -132,14 +130,13 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke \"exp\": 1614281997 } ``` - """ base_url = self._server_url url = base_url.removesuffix('/') + '/auth' - client = utils.configure_security_client(self._client, security) + client = self._client http_res = client.request('GET', url) content_type = http_res.headers.get('Content-Type') @@ -181,7 +178,6 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S \"exp\": 1614281997 } ``` - """ base_url = self._server_url From 8c5b80fdf85e67256b7734147229163995a8f32c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Apr 2023 00:35:26 +0000 Subject: [PATCH 02/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.19.6 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 4fb4f4f5d..9b16e5b81 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -40,4 +40,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy + +## 2023-04-06 00:35:12 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 90dd3b675..68d461cd9 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.19.3 - generationVersion: 2.16.7 + speakeasyVersion: 1.19.6 + generationVersion: 2.17.8 generation: telemetryEnabled: false sdkClassName: epilot sdkFlattening: true singleTagPerOp: false python: - version: 1.2.3 + version: 1.3.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 7f6149e00..36b48fc6e 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.2.3", + version="1.3.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 43f641443..08e339313 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.2.3" - _gen_version: str = "2.16.7" + _sdk_version: str = "1.3.0" + _gen_version: str = "2.17.8" def __init__(self, server_url: str = None, From 032e1ef222b7beb9feff580f3aa7e0b9bcdd982a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Apr 2023 00:36:14 +0000 Subject: [PATCH 03/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.19.7 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 9b16e5b81..c7c5a5d88 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -46,4 +46,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy + +## 2023-04-12 00:36:02 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 68d461cd9..717db1377 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.19.6 - generationVersion: 2.17.8 + speakeasyVersion: 1.19.7 + generationVersion: 2.17.9 generation: telemetryEnabled: false sdkClassName: epilot - sdkFlattening: true + sdkFlattening: false singleTagPerOp: false python: - version: 1.3.0 + version: 1.3.1 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 36b48fc6e..65413ca44 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.3.0", + version="1.3.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 08e339313..b32740a37 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.3.0" - _gen_version: str = "2.17.8" + _sdk_version: str = "1.3.1" + _gen_version: str = "2.17.9" def __init__(self, server_url: str = None, From 007a8444e65c10350246cca67375290a737fffb2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Apr 2023 00:35:33 +0000 Subject: [PATCH 04/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.20.0 --- internal_auth/RELEASES.md | 8 +- internal_auth/gen.yaml | 6 +- internal_auth/pylintrc | 1 + internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 +- internal_auth/src/epilot/utils/utils.py | 127 +++++++++++++----------- 6 files changed, 84 insertions(+), 64 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index c7c5a5d88..ddeda8e6c 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -52,4 +52,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy + +## 2023-04-14 00:35:21 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 717db1377..2d1cb4649 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.19.7 - generationVersion: 2.17.9 + speakeasyVersion: 1.20.0 + generationVersion: 2.18.0 generation: telemetryEnabled: false sdkClassName: epilot sdkFlattening: false singleTagPerOp: false python: - version: 1.3.1 + version: 1.4.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc index 53535d7c8..a18f74cc9 100755 --- a/internal_auth/pylintrc +++ b/internal_auth/pylintrc @@ -439,6 +439,7 @@ disable=raw-checker-failed, using-constant-test, too-many-statements, cyclic-import, + too-many-nested-blocks # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 65413ca44..52c879c2a 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.3.1", + version="1.4.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index b32740a37..de39f4f97 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.3.1" - _gen_version: str = "2.17.9" + _sdk_version: str = "1.4.0" + _gen_version: str = "2.18.0" def __init__(self, server_url: str = None, diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 9d4fba324..986a86937 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -152,62 +152,71 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass if param_metadata is None: continue - if param_metadata.get('style', 'simple') == 'simple': - param = getattr( - path_params, field.name) if path_params is not None else None - param = _populate_from_globals( - field.name, param, 'pathParam', gbls) + param = getattr( + path_params, field.name) if path_params is not None else None + param = _populate_from_globals( + field.name, param, 'pathParam', gbls) - if param is None: - continue - - if isinstance(param, list): - pp_vals: list[str] = [] - for pp_val in param: - if pp_val is None: - continue - pp_vals.append(_val_to_string(pp_val)) - path = path.replace( - '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) - elif isinstance(param, dict): - pp_vals: list[str] = [] - for pp_key in param: - if param[pp_key] is None: - continue - if param_metadata.get('explode'): - pp_vals.append( - f"{pp_key}={_val_to_string(param[pp_key])}") - else: - pp_vals.append( - 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)): - pp_vals: list[str] = [] - param_fields: Tuple[Field, ...] = fields(param) - for param_field in param_fields: - param_value_metadata = param_field.metadata.get( - 'path_param') - if not param_value_metadata: - continue - - parm_name = param_value_metadata.get( - 'field_name', field.name) + if param is None: + continue - param_field_val = getattr(param, param_field.name) - if param_field_val is None: - continue - if param_metadata.get('explode'): - pp_vals.append( - f"{parm_name}={_val_to_string(param_field_val)}") - else: - pp_vals.append( - f"{parm_name},{_val_to_string(param_field_val)}") - path = path.replace( - '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) - else: + f_name = param_metadata.get("field_name", field.name) + serialization = param_metadata.get('serialization', '') + if serialization != '': + serialized_params = _get_serialized_params( + param_metadata, f_name, param) + for key, value in serialized_params.items(): path = path.replace( - '{' + param_metadata.get('field_name', field.name) + '}', _val_to_string(param), 1) + '{' + key + '}', value, 1) + else: + if param_metadata.get('style', 'simple') == 'simple': + if isinstance(param, list): + pp_vals: list[str] = [] + for pp_val in param: + if pp_val is None: + continue + pp_vals.append(_val_to_string(pp_val)) + path = path.replace( + '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) + elif isinstance(param, dict): + pp_vals: list[str] = [] + for pp_key in param: + if param[pp_key] is None: + continue + if param_metadata.get('explode'): + pp_vals.append( + f"{pp_key}={_val_to_string(param[pp_key])}") + else: + pp_vals.append( + 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)): + pp_vals: list[str] = [] + param_fields: Tuple[Field, ...] = fields(param) + for param_field in param_fields: + param_value_metadata = param_field.metadata.get( + 'path_param') + if not param_value_metadata: + continue + + parm_name = param_value_metadata.get( + 'field_name', field.name) + + param_field_val = getattr(param, param_field.name) + if param_field_val is None: + continue + if param_metadata.get('explode'): + pp_vals.append( + f"{parm_name}={_val_to_string(param_field_val)}") + else: + pp_vals.append( + f"{parm_name},{_val_to_string(param_field_val)}") + path = path.replace( + '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) + else: + path = path.replace( + '{' + param_metadata.get('field_name', field.name) + '}', _val_to_string(param), 1) return server_url.removesuffix("/") + path @@ -246,8 +255,12 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ f_name = metadata.get("field_name") serialization = metadata.get('serialization', '') if serialization != '': - params = params | _get_serialized_query_params( - metadata, f_name, value) + serialized_parms = _get_serialized_params(metadata, f_name, value) + for key, value in serialized_parms.items(): + if key in params: + params[key].extend(value) + else: + params[key] = [value] else: style = metadata.get('style', 'form') if style == 'deepObject': @@ -282,8 +295,8 @@ def get_headers(headers_params: dataclass) -> dict[str, str]: return headers -def _get_serialized_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - params: dict[str, list[str]] = {} +def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[str, str]: + params: dict[str, str] = {} serialization = metadata.get('serialization', '') if serialization == 'json': From 53ff169f624ca23f2c5021c2b5d8ca365f8a076c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Apr 2023 00:35:59 +0000 Subject: [PATCH 05/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.20.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 7 +++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ddeda8e6c..214289c33 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -58,4 +58,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy + +## 2023-04-18 00:35:48 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 2d1cb4649..8cf82daa8 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,15 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.20.0 - generationVersion: 2.18.0 + speakeasyVersion: 1.20.1 + generationVersion: 2.18.1 generation: telemetryEnabled: false sdkClassName: epilot - sdkFlattening: false singleTagPerOp: false python: - version: 1.4.0 + version: 1.4.1 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 52c879c2a..8677d12d4 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.4.0", + version="1.4.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index de39f4f97..0870f7552 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.4.0" - _gen_version: str = "2.18.0" + _sdk_version: str = "1.4.1" + _gen_version: str = "2.18.1" def __init__(self, server_url: str = None, From a5537a545f1a1fb48a9f6e3c5fdb0b6501b05a78 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Apr 2023 00:37:46 +0000 Subject: [PATCH 06/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.20.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 214289c33..a0c26c907 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -64,4 +64,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy + +## 2023-04-19 00:37:34 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8cf82daa8..7d1a4091e 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.20.1 - generationVersion: 2.18.1 + speakeasyVersion: 1.20.2 + generationVersion: 2.18.2 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.4.1 + version: 1.4.2 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 8677d12d4..755f29f5f 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.4.1", + version="1.4.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 0870f7552..3cfafc7e9 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.4.1" - _gen_version: str = "2.18.1" + _sdk_version: str = "1.4.2" + _gen_version: str = "2.18.2" def __init__(self, server_url: str = None, From 913198691d3895c104303ec63f9e16fe0e2e321e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 21 Apr 2023 00:35:56 +0000 Subject: [PATCH 07/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.21.4 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index a0c26c907..d2f093fc2 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -70,4 +70,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy + +## 2023-04-21 00:35:45 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 7d1a4091e..7779a2f9d 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.20.2 - generationVersion: 2.18.2 + speakeasyVersion: 1.21.4 + generationVersion: 2.19.1 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.4.2 + version: 1.5.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 755f29f5f..38b240e63 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.4.2", + version="1.5.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 3cfafc7e9..45b1ca570 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.4.2" - _gen_version: str = "2.18.2" + _sdk_version: str = "1.5.0" + _gen_version: str = "2.19.1" def __init__(self, server_url: str = None, From 3e6f5c2a140d79b1aafa263d0bf015dadd098e68 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Apr 2023 00:36:21 +0000 Subject: [PATCH 08/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.22.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index d2f093fc2..de78eeb24 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -76,4 +76,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy + +## 2023-04-22 00:36:07 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 7779a2f9d..cbc6fffc1 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.21.4 - generationVersion: 2.19.1 + speakeasyVersion: 1.22.1 + generationVersion: 2.20.1 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.5.0 + version: 1.6.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 38b240e63..97de2fed8 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.5.0", + version="1.6.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 45b1ca570..a77948fd1 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.5.0" - _gen_version: str = "2.19.1" + _sdk_version: str = "1.6.0" + _gen_version: str = "2.20.1" def __init__(self, server_url: str = None, From 88da3b04a3b6d8141aac82253b69c1c8bb1f24d1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Apr 2023 00:36:53 +0000 Subject: [PATCH 09/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.23.1 --- internal_auth/README.md | 14 +-- internal_auth/RELEASES.md | 8 +- internal_auth/USAGE.md | 4 +- internal_auth/docs/epilot/README.md | 153 ++++++++++++++++++++++++++++ internal_auth/files.gen | 1 + internal_auth/gen.yaml | 6 +- internal_auth/setup.py | 4 +- internal_auth/src/epilot/sdk.py | 4 +- 8 files changed, 177 insertions(+), 17 deletions(-) create mode 100755 internal_auth/docs/epilot/README.md diff --git a/internal_auth/README.md b/internal_auth/README.md index c6d533097..4c71c1a5a 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -12,11 +12,11 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=intern ```python import epilot -from epilot.models import operations, shared + s = epilot.Epilot() - + res = s.get_jwks() if res.get_jwks_200_application_json_object is not None: @@ -27,12 +27,12 @@ if res.get_jwks_200_application_json_object is not None: ## Available Resources and Operations -### Epilot SDK +### [Epilot SDK](docs/epilot/README.md) -* `get_jwks` - getJwks -* `get_open_id_configuration` - getOpenIDConfiguration -* `get_token` - getToken -* `get_token_v2` - getTokenV2 +* [get_jwks](docs/epilot/README.md#get_jwks) - getJwks +* [get_open_id_configuration](docs/epilot/README.md#get_open_id_configuration) - getOpenIDConfiguration +* [get_token](docs/epilot/README.md#get_token) - getToken +* [get_token_v2](docs/epilot/README.md#get_token_v2) - getTokenV2 ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index de78eeb24..f40509c3c 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -82,4 +82,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy + +## 2023-04-26 00:36:42 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/USAGE.md b/internal_auth/USAGE.md index 510d6bd4b..cf60a39b0 100755 --- a/internal_auth/USAGE.md +++ b/internal_auth/USAGE.md @@ -1,11 +1,11 @@ ```python import epilot -from epilot.models import operations, shared + s = epilot.Epilot() - + res = s.get_jwks() if res.get_jwks_200_application_json_object is not None: diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/epilot/README.md new file mode 100755 index 000000000..f8083ae3f --- /dev/null +++ b/internal_auth/docs/epilot/README.md @@ -0,0 +1,153 @@ +# Epilot SDK + +## Overview + +Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. + +Converts AWS credentials into a JWT token with caller's ARN `callerIdentity` and list of `policies` granting access to API Gateway as claims. + + +### Available Operations + +* [get_jwks](#get_jwks) - getJwks +* [get_open_id_configuration](#get_open_id_configuration) - getOpenIDConfiguration +* [get_token](#get_token) - getToken +* [get_token_v2](#get_token_v2) - getTokenV2 + +## get_jwks + +Get jwks public key set to verify tokens generated by this API + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot() + + +res = s.epilot.get_jwks() + +if res.get_jwks_200_application_json_object is not None: + # handle response +``` + +## get_open_id_configuration + +OpenID Connect configuration for internal auth as identity provider + +Note: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to +automate the process of verifying JWT tokens. + + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot() + + +res = s.epilot.get_open_id_configuration() + +if res.get_open_id_configuration_200_application_json_object is not None: + # handle response +``` + +## get_token + +Generates token for internal API access + +Example JWT payload: + +```json +{ + "callerIdentity": "arn:aws:sts::912468240823:assumed-role/ep_prod_access_admin/awsmfa_20210225T193753", + "policies": [ + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": "*", + "Resource": "*" + } + ] + } + ], + "iss": "https://internal-auth.sls.epilot.io/v1/internal-auth", + "iat": 1614278397, + "exp": 1614281997 +} +``` + + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot() + + +res = s.epilot.get_token() + +if res.get_token_200_application_json_object is not None: + # handle response +``` + +## get_token_v2 + +Generates token for internal API access with internal roles + +Example JWT payload: + +```json +{ + "callerIdentity": "arn:aws:sts::912468240823:assumed-role/ep_prod_access_admin/awsmfa_20210225T193753", + "policies": [ + { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": "*", + "Resource": "*" + } + ] + } + ], + "assume_roles": ["org_id:note_role", "org_id:file_role"], + "org_id": "org_id", + "iss": "https://internal-auth.sls.epilot.io/v1/internal-auth", + "iat": 1614278397, + "exp": 1614281997 +} +``` + + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot() + + +req = { + "provident": "distinctio", + "quibusdam": "unde", + "nulla": "corrupti", +} + +res = s.epilot.get_token_v2(req, operations.GetTokenV2Security( + sigv4="YOUR_API_KEY_HERE", +)) + +if res.get_token_v2_200_application_json_object is not None: + # handle response +``` diff --git a/internal_auth/files.gen b/internal_auth/files.gen index 55b1bbddc..110e8b604 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -11,4 +11,5 @@ src/epilot/models/operations/getopenidconfiguration.py src/epilot/models/operations/gettoken.py src/epilot/models/operations/gettokenv2.py src/epilot/models/operations/__init__.py +docs/epilot/README.md USAGE.md \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index cbc6fffc1..d81b399ec 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.22.1 - generationVersion: 2.20.1 + speakeasyVersion: 1.23.1 + generationVersion: 2.21.1 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.6.0 + version: 1.7.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 97de2fed8..69f9408ea 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,14 +10,14 @@ setuptools.setup( name="epilot-internal-auth", - version="1.6.0", + version="1.7.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, long_description_content_type="text/markdown", packages=setuptools.find_packages(where="src"), install_requires=[ - "certifi==2022.12.07", + "certifi==2022.12.7", "charset-normalizer==2.1.1", "dataclasses-json-speakeasy==0.5.8", "idna==3.3", diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index a77948fd1..fce96a021 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.6.0" - _gen_version: str = "2.20.1" + _sdk_version: str = "1.7.0" + _gen_version: str = "2.21.1" def __init__(self, server_url: str = None, From 111f256b72ee02e0e018347d04d8070fe85ecb59 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Apr 2023 00:39:24 +0000 Subject: [PATCH 10/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.25.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index f40509c3c..756f89816 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -88,4 +88,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy + +## 2023-04-27 00:39:09 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index d81b399ec..71153e815 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.23.1 - generationVersion: 2.21.1 + speakeasyVersion: 1.25.1 + generationVersion: 2.22.0 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.7.0 + version: 1.8.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 69f9408ea..4342d8cb9 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.7.0", + version="1.8.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index fce96a021..d662da281 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.7.0" - _gen_version: str = "2.21.1" + _sdk_version: str = "1.8.0" + _gen_version: str = "2.22.0" def __init__(self, server_url: str = None, From b8b95887075a98d14b682a807e1ce9f9127cb420 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Apr 2023 00:37:46 +0000 Subject: [PATCH 11/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.26.2 --- internal_auth/RELEASES.md | 8 ++++- internal_auth/gen.yaml | 6 ++-- internal_auth/setup.py | 2 +- .../src/epilot/models/operations/getjwks.py | 33 ++++++++++++------- .../operations/getopenidconfiguration.py | 18 ++++++---- .../src/epilot/models/operations/gettoken.py | 15 ++++++--- .../epilot/models/operations/gettokenv2.py | 18 ++++++---- internal_auth/src/epilot/sdk.py | 4 +-- 8 files changed, 69 insertions(+), 35 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 756f89816..a6b33252d 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -94,4 +94,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy + +## 2023-04-28 00:37:33 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 71153e815..eabe76ad2 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.25.1 - generationVersion: 2.22.0 + speakeasyVersion: 1.26.2 + generationVersion: 2.23.2 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.8.0 + version: 1.9.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 4342d8cb9..c7c89d4f5 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.8.0", + version="1.9.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py index 6c983a376..65282d38d 100755 --- a/internal_auth/src/epilot/models/operations/getjwks.py +++ b/internal_auth/src/epilot/models/operations/getjwks.py @@ -12,12 +12,18 @@ @dataclasses.dataclass class GetJwks200ApplicationJSONKeys: - alg: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('alg'), 'exclude': lambda f: f is None }}) - e: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('e'), 'exclude': lambda f: f is None }}) - kid: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kid'), 'exclude': lambda f: f is None }}) - kty: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kty'), 'exclude': lambda f: f is None }}) - n: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('n'), 'exclude': lambda f: f is None }}) - use: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('use'), 'exclude': lambda f: f is None }}) + alg: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('alg'), 'exclude': lambda f: f is None }}) + + e: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('e'), 'exclude': lambda f: f is None }}) + + kid: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kid'), 'exclude': lambda f: f is None }}) + + kty: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kty'), 'exclude': lambda f: f is None }}) + + n: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('n'), 'exclude': lambda f: f is None }}) + + use: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('use'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -25,15 +31,20 @@ class GetJwks200ApplicationJSONKeys: class GetJwks200ApplicationJSON: r"""Set of jwks""" - keys: Optional[list[GetJwks200ApplicationJSONKeys]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('keys'), 'exclude': lambda f: f is None }}) + keys: Optional[list[GetJwks200ApplicationJSONKeys]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('keys'), 'exclude': lambda f: f is None }}) + @dataclasses.dataclass class GetJwksResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + get_jwks_200_application_json_object: Optional[GetJwks200ApplicationJSON] = dataclasses.field(default=None) - r"""Set of jwks""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Set of jwks""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py index 60abb6e56..9026122c8 100755 --- a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py +++ b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py @@ -13,16 +13,22 @@ class GetOpenIDConfiguration200ApplicationJSON: r"""OpenID Configuration""" - issuer: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('issuer'), 'exclude': lambda f: f is None }}) - jwks_uri: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('jwks_uri'), 'exclude': lambda f: f is None }}) + issuer: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('issuer'), 'exclude': lambda f: f is None }}) + + jwks_uri: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('jwks_uri'), 'exclude': lambda f: f is None }}) + @dataclasses.dataclass class GetOpenIDConfigurationResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + get_open_id_configuration_200_application_json_object: Optional[GetOpenIDConfiguration200ApplicationJSON] = dataclasses.field(default=None) - r"""OpenID Configuration""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""OpenID Configuration""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 1829f9809..1e2d69cf0 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -14,15 +14,20 @@ class GetToken200ApplicationJSON: r"""JWT Token""" token: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) - r"""JWT Token""" + + r"""JWT Token""" @dataclasses.dataclass class GetTokenResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + get_token_200_application_json_object: Optional[GetToken200ApplicationJSON] = dataclasses.field(default=None) - r"""JWT Token""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""JWT Token""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py index 0a6409dd6..9a0bcd2e3 100755 --- a/internal_auth/src/epilot/models/operations/gettokenv2.py +++ b/internal_auth/src/epilot/models/operations/gettokenv2.py @@ -11,7 +11,8 @@ @dataclasses.dataclass class GetTokenV2Security: - sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) + sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -20,15 +21,20 @@ class GetTokenV2200ApplicationJSON: r"""JWT Token""" token: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) - r"""JWT Token""" + + r"""JWT Token""" @dataclasses.dataclass class GetTokenV2Response: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + get_token_v2_200_application_json_object: Optional[GetTokenV2200ApplicationJSON] = dataclasses.field(default=None) - r"""JWT Token""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""JWT Token""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index d662da281..08cd1ac0f 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.8.0" - _gen_version: str = "2.22.0" + _sdk_version: str = "1.9.0" + _gen_version: str = "2.23.2" def __init__(self, server_url: str = None, From 2931d6dba241a2fa1301df5ccea07d1455d63fd6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 29 Apr 2023 00:35:24 +0000 Subject: [PATCH 12/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.26.4 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/models/operations/getjwks.py | 11 ----------- .../models/operations/getopenidconfiguration.py | 6 ------ .../src/epilot/models/operations/gettoken.py | 5 ----- .../src/epilot/models/operations/gettokenv2.py | 6 ------ internal_auth/src/epilot/sdk.py | 4 ++-- 8 files changed, 13 insertions(+), 35 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index a6b33252d..ad9ead824 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -100,4 +100,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy + +## 2023-04-29 00:35:10 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index eabe76ad2..b15a0f26a 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.26.2 - generationVersion: 2.23.2 + speakeasyVersion: 1.26.4 + generationVersion: 2.23.4 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.9.0 + version: 1.9.1 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index c7c89d4f5..a9d22c26a 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.9.0", + version="1.9.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py index 65282d38d..4babe443e 100755 --- a/internal_auth/src/epilot/models/operations/getjwks.py +++ b/internal_auth/src/epilot/models/operations/getjwks.py @@ -13,17 +13,11 @@ class GetJwks200ApplicationJSONKeys: alg: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('alg'), 'exclude': lambda f: f is None }}) - e: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('e'), 'exclude': lambda f: f is None }}) - kid: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kid'), 'exclude': lambda f: f is None }}) - kty: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kty'), 'exclude': lambda f: f is None }}) - n: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('n'), 'exclude': lambda f: f is None }}) - use: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('use'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -32,19 +26,14 @@ class GetJwks200ApplicationJSON: r"""Set of jwks""" keys: Optional[list[GetJwks200ApplicationJSONKeys]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('keys'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class GetJwksResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - get_jwks_200_application_json_object: Optional[GetJwks200ApplicationJSON] = dataclasses.field(default=None) - r"""Set of jwks""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py index 9026122c8..0639ccf56 100755 --- a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py +++ b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py @@ -14,21 +14,15 @@ class GetOpenIDConfiguration200ApplicationJSON: r"""OpenID Configuration""" issuer: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('issuer'), 'exclude': lambda f: f is None }}) - jwks_uri: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('jwks_uri'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class GetOpenIDConfigurationResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - get_open_id_configuration_200_application_json_object: Optional[GetOpenIDConfiguration200ApplicationJSON] = dataclasses.field(default=None) - r"""OpenID Configuration""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 1e2d69cf0..5264fafdb 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -14,7 +14,6 @@ class GetToken200ApplicationJSON: r"""JWT Token""" token: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) - r"""JWT Token""" @@ -22,12 +21,8 @@ class GetToken200ApplicationJSON: class GetTokenResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - get_token_200_application_json_object: Optional[GetToken200ApplicationJSON] = dataclasses.field(default=None) - r"""JWT Token""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py index 9a0bcd2e3..612fa81c4 100755 --- a/internal_auth/src/epilot/models/operations/gettokenv2.py +++ b/internal_auth/src/epilot/models/operations/gettokenv2.py @@ -12,7 +12,6 @@ class GetTokenV2Security: sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -21,7 +20,6 @@ class GetTokenV2200ApplicationJSON: r"""JWT Token""" token: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) - r"""JWT Token""" @@ -29,12 +27,8 @@ class GetTokenV2200ApplicationJSON: class GetTokenV2Response: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - get_token_v2_200_application_json_object: Optional[GetTokenV2200ApplicationJSON] = dataclasses.field(default=None) - r"""JWT Token""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 08cd1ac0f..76165488b 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.9.0" - _gen_version: str = "2.23.2" + _sdk_version: str = "1.9.1" + _gen_version: str = "2.23.4" def __init__(self, server_url: str = None, From a4ee40ed3d2a160dfd8299ed5c4eea01dba3c879 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 2 May 2023 00:36:54 +0000 Subject: [PATCH 13/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.26.5 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ad9ead824..256215c86 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -106,4 +106,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy + +## 2023-05-02 00:36:43 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index b15a0f26a..8610e479f 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.26.4 - generationVersion: 2.23.4 + speakeasyVersion: 1.26.5 + generationVersion: 2.23.6 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.9.1 + version: 1.9.2 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index a9d22c26a..c329f148c 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.9.1", + version="1.9.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 76165488b..efe407827 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.9.1" - _gen_version: str = "2.23.4" + _sdk_version: str = "1.9.2" + _gen_version: str = "2.23.6" def __init__(self, server_url: str = None, From db4c41104324f420aa563ab99409815a23fefb37 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 3 May 2023 00:36:32 +0000 Subject: [PATCH 14/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.27.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/docs/epilot/README.md | 6 +++--- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 2 +- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 256215c86..0165690a0 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -112,4 +112,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy + +## 2023-05-03 00:36:20 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/epilot/README.md index f8083ae3f..387083903 100755 --- a/internal_auth/docs/epilot/README.md +++ b/internal_auth/docs/epilot/README.md @@ -139,9 +139,9 @@ s = epilot.Epilot() req = { - "provident": "distinctio", - "quibusdam": "unde", - "nulla": "corrupti", + "provident": 'distinctio', + "quibusdam": 'unde', + "nulla": 'corrupti', } res = s.epilot.get_token_v2(req, operations.GetTokenV2Security( diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8610e479f..6ef59973a 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.26.5 - generationVersion: 2.23.6 + speakeasyVersion: 1.27.0 + generationVersion: 2.24.0 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.9.2 + version: 1.10.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index c329f148c..d6757636c 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.9.2", + version="1.10.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index efe407827..be7671a32 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.9.2" - _gen_version: str = "2.23.6" + _sdk_version: str = "1.10.0" + _gen_version: str = "2.24.0" def __init__(self, server_url: str = None, diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 986a86937..63dce946b 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -731,7 +731,7 @@ def _val_to_string(val): if isinstance(val, datetime): return val.isoformat().replace('+00:00', 'Z') if isinstance(val, Enum): - return val.value + return str(val.value) return str(val) From 17fe90d541390a0bbeb2802e1af3d55d48fea3bf Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 5 May 2023 00:33:56 +0000 Subject: [PATCH 15/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.29.0 --- internal_auth/RELEASES.md | 8 +++- internal_auth/docs/epilot/README.md | 1 - internal_auth/gen.yaml | 7 ++-- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 8 +++- internal_auth/src/epilot/utils/utils.py | 53 +++++++++++++++---------- 6 files changed, 51 insertions(+), 28 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 0165690a0..adf6f42b7 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -118,4 +118,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-05 00:33:45 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/epilot/README.md index 387083903..cb0ead46e 100755 --- a/internal_auth/docs/epilot/README.md +++ b/internal_auth/docs/epilot/README.md @@ -137,7 +137,6 @@ from epilot.models import operations s = epilot.Epilot() - req = { "provident": 'distinctio', "quibusdam": 'unde', diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 6ef59973a..0978ace66 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.27.0 - generationVersion: 2.24.0 + speakeasyVersion: 1.29.0 + generationVersion: 2.26.0 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.10.0 + version: 1.11.0 author: epilot description: Python Client SDK for Epilot + maxMethodParams: 0 packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index d6757636c..7c57f4f2b 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.10.0", + version="1.11.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index be7671a32..0894b1fd5 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.10.0" - _gen_version: str = "2.24.0" + _sdk_version: str = "1.11.0" + _gen_version: str = "2.26.0" def __init__(self, server_url: str = None, @@ -55,6 +55,7 @@ def __init__(self, + def get_jwks(self) -> operations.GetJwksResponse: r"""getJwks Get jwks public key set to verify tokens generated by this API @@ -78,6 +79,7 @@ def get_jwks(self) -> operations.GetJwksResponse: return res + def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse: r"""getOpenIDConfiguration OpenID Connect configuration for internal auth as identity provider @@ -104,6 +106,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse return res + def get_token(self) -> operations.GetTokenResponse: r"""getToken Generates token for internal API access @@ -150,6 +153,7 @@ def get_token(self) -> operations.GetTokenResponse: return res + def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2Security) -> operations.GetTokenV2Response: r"""getTokenV2 Generates token for internal API access with internal roles diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 63dce946b..a8b0d8f14 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -141,7 +141,8 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): client.client.headers['Authorization'] = f'Basic {base64.b64encode(data).decode()}' -def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: +def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, + gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -233,7 +234,8 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[str, list[str]]: +def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ + str, list[str]]: params: dict[str, list[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) @@ -267,8 +269,11 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ params = params | _get_deep_object_query_params( metadata, f_name, value) elif style == 'form': - params = params | _get_form_query_params( - metadata, f_name, value) + params = params | _get_delimited_query_params( + metadata, f_name, value, ",") + elif style == 'pipeDelimited': + params = params | _get_delimited_query_params( + metadata, f_name, value, "|") else: raise Exception('not yet implemented') return params @@ -327,12 +332,15 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if val is None: continue - if params.get(f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]') is None: - params[f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ + if params.get( + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]') is None: + params[ + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ ] params[ - f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'].append(_val_to_string(val)) + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'].append( + _val_to_string(val)) else: params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ @@ -368,25 +376,28 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_form_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name) +def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, array_delimiter: str) -> dict[ + str, list[str]]: + return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, array_delimiter) SERIALIZATION_METHOD_TO_CONTENT_TYPE = { - 'json': 'application/json', - 'form': 'application/x-www-form-urlencoded', + 'json': 'application/json', + 'form': 'application/x-www-form-urlencoded', 'multipart': 'multipart/form-data', - 'raw': 'application/octet-stream', - 'string': 'text/plain', + 'raw': 'application/octet-stream', + 'string': 'text/plain', } -def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[str, any, any]: +def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[ + str, any, any]: if request is None: return None, 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], request) + return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], + request) request_val = getattr(request, request_field_name) @@ -401,7 +412,8 @@ def serialize_request_body(request: dataclass, request_field_name: str, serializ if request_metadata is None: raise Exception('invalid request type') - return serialize_content_type(request_field_name, request_metadata.get('media_type', 'application/octet-stream'), request_val) + return serialize_content_type(request_field_name, request_metadata.get('media_type', 'application/octet-stream'), + request_val) def serialize_content_type(field_name: str, media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: @@ -474,7 +486,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 = [] @@ -514,7 +526,7 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: else: if metadata.get('style', 'form') == 'form': form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name) + field_name, metadata.get('explode', True), val, _get_form_field_name, ",") else: raise Exception( f'Invalid form style for field {field.name}') @@ -536,7 +548,8 @@ def _get_form_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable) -> dict[str, list[str]]: +def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, array_delimiter: str) -> \ + dict[str, list[str]]: params: dict[str, list[str]] = {} if obj is None: @@ -591,7 +604,7 @@ 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] = [','.join([str(item) for item in items])] + params[field_name] = [array_delimiter.join([str(item) for item in items])] else: params[field_name] = [_val_to_string(obj)] From ed1e4b5d5061065651d4492d3aba34d1ae73c63b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 6 May 2023 00:33:41 +0000 Subject: [PATCH 16/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.29.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/docs/epilot/README.md | 6 ++++-- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/models/operations/__init__.py | 2 +- internal_auth/src/epilot/models/operations/gettoken.py | 6 ++++++ internal_auth/src/epilot/sdk.py | 8 ++++---- 7 files changed, 26 insertions(+), 12 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index adf6f42b7..5e36a577a 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -124,4 +124,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-06 00:33:30 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/epilot/README.md index cb0ead46e..9ce28aae7 100755 --- a/internal_auth/docs/epilot/README.md +++ b/internal_auth/docs/epilot/README.md @@ -88,12 +88,14 @@ Example JWT payload: ```python import epilot - +from epilot.models import operations s = epilot.Epilot() -res = s.epilot.get_token() +res = s.epilot.get_token(operations.GetTokenSecurity( + sigv4="YOUR_API_KEY_HERE", +)) if res.get_token_200_application_json_object is not None: # handle response diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 0978ace66..e21f75147 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.29.0 - generationVersion: 2.26.0 + speakeasyVersion: 1.29.1 + generationVersion: 2.26.1 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.11.0 + version: 1.11.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 7c57f4f2b..a47478308 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.11.0", + version="1.11.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/__init__.py b/internal_auth/src/epilot/models/operations/__init__.py index c19251b77..7a5793027 100755 --- a/internal_auth/src/epilot/models/operations/__init__.py +++ b/internal_auth/src/epilot/models/operations/__init__.py @@ -5,4 +5,4 @@ from .gettoken import * from .gettokenv2 import * -__all__ = ["GetJwks200ApplicationJSON","GetJwks200ApplicationJSONKeys","GetJwksResponse","GetOpenIDConfiguration200ApplicationJSON","GetOpenIDConfigurationResponse","GetToken200ApplicationJSON","GetTokenResponse","GetTokenV2200ApplicationJSON","GetTokenV2Response","GetTokenV2Security"] +__all__ = ["GetJwks200ApplicationJSON","GetJwks200ApplicationJSONKeys","GetJwksResponse","GetOpenIDConfiguration200ApplicationJSON","GetOpenIDConfigurationResponse","GetToken200ApplicationJSON","GetTokenResponse","GetTokenSecurity","GetTokenV2200ApplicationJSON","GetTokenV2Response","GetTokenV2Security"] diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 5264fafdb..20393e4a0 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -8,6 +8,12 @@ from typing import Optional +@dataclasses.dataclass +class GetTokenSecurity: + + sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class GetToken200ApplicationJSON: diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 0894b1fd5..188f3699a 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.11.0" - _gen_version: str = "2.26.0" + _sdk_version: str = "1.11.1" + _gen_version: str = "2.26.1" def __init__(self, server_url: str = None, @@ -107,7 +107,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse return res - def get_token(self) -> operations.GetTokenResponse: + def get_token(self, security: operations.GetTokenSecurity) -> operations.GetTokenResponse: r"""getToken Generates token for internal API access @@ -139,7 +139,7 @@ def get_token(self) -> operations.GetTokenResponse: url = base_url.removesuffix('/') + '/auth' - client = self._client + client = utils.configure_security_client(self._client, security) http_res = client.request('GET', url) content_type = http_res.headers.get('Content-Type') From 219c0f15201e2a9e8fd82fe2f6585d593b95aa67 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 10 May 2023 00:36:24 +0000 Subject: [PATCH 17/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.29.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 5e36a577a..9c775a7e8 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -130,4 +130,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy + +## 2023-05-10 00:36:13 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index e21f75147..a19ec3b0b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.29.1 - generationVersion: 2.26.1 + speakeasyVersion: 1.29.2 + generationVersion: 2.26.2 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.11.1 + version: 1.11.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index a47478308..757887f44 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.11.1", + version="1.11.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 188f3699a..a83399a3f 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.11.1" - _gen_version: str = "2.26.1" + _sdk_version: str = "1.11.2" + _gen_version: str = "2.26.2" def __init__(self, server_url: str = None, From 8861e85b4c468867d38dddd67158ec25b4741de5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 11 May 2023 00:36:41 +0000 Subject: [PATCH 18/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.30.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 9c775a7e8..c4ff8be5e 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -136,4 +136,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy + +## 2023-05-11 00:36:27 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index a19ec3b0b..dab8a915b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.29.2 - generationVersion: 2.26.2 + speakeasyVersion: 1.30.0 + generationVersion: 2.26.3 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.11.2 + version: 1.11.3 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 757887f44..97cc004cc 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.11.2", + version="1.11.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index a83399a3f..9b1938b6a 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.11.2" - _gen_version: str = "2.26.2" + _sdk_version: str = "1.11.3" + _gen_version: str = "2.26.3" def __init__(self, server_url: str = None, From 3e1f85929bff7a85dac43d780c1452e122db7d2c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 12 May 2023 00:36:11 +0000 Subject: [PATCH 19/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.30.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 16 ++++++++-------- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index c4ff8be5e..3f737e5a5 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -142,4 +142,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy + +## 2023-05-12 00:36:00 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index dab8a915b..ce1c70b7a 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.30.0 - generationVersion: 2.26.3 + speakeasyVersion: 1.30.1 + generationVersion: 2.26.4 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.11.3 + version: 1.11.4 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 97cc004cc..509f4dbf2 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.11.3", + version="1.11.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 9b1938b6a..3cc8360f5 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.11.3" - _gen_version: str = "2.26.3" + _sdk_version: str = "1.11.4" + _gen_version: str = "2.26.4" def __init__(self, server_url: str = None, diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index a8b0d8f14..98719fbf7 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -376,9 +376,9 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, array_delimiter: str) -> dict[ +def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[ str, list[str]]: - return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, array_delimiter) + return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter) SERIALIZATION_METHOD_TO_CONTENT_TYPE = { @@ -548,7 +548,7 @@ def _get_form_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, array_delimiter: str) -> \ +def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, delimiter: str) -> \ dict[str, list[str]]: params: dict[str, list[str]] = {} @@ -572,10 +572,10 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f params[obj_field_name] = [_val_to_string(val)] else: items.append( - f'{obj_field_name},{_val_to_string(val)}') + f'{obj_field_name}{delimiter}{_val_to_string(val)}') if len(items) > 0: - params[field_name] = [','.join(items)] + params[field_name] = [delimiter.join(items)] elif isinstance(obj, dict): items = [] for key, value in obj.items(): @@ -585,10 +585,10 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if explode: params[key] = _val_to_string(value) else: - items.append(f'{key},{_val_to_string(value)}') + items.append(f'{key}{delimiter}{_val_to_string(value)}') if len(items) > 0: - params[field_name] = [','.join(items)] + params[field_name] = [delimiter.join(items)] elif isinstance(obj, list): items = [] @@ -604,7 +604,7 @@ 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] = [array_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)] From 33e3375bcca1ddfedabeeb82e1129f6fcaa5451a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 13 May 2023 00:35:03 +0000 Subject: [PATCH 20/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.31.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 3f737e5a5..68d4f1651 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -148,4 +148,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy + +## 2023-05-13 00:34:52 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index ce1c70b7a..f9429c16e 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.30.1 - generationVersion: 2.26.4 + speakeasyVersion: 1.31.1 + generationVersion: 2.27.0 generation: telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false python: - version: 1.11.4 + version: 1.12.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 509f4dbf2..dd48a4130 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.11.4", + version="1.12.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 3cc8360f5..f40f3e444 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.11.4" - _gen_version: str = "2.26.4" + _sdk_version: str = "1.12.0" + _gen_version: str = "2.27.0" def __init__(self, server_url: str = None, diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 98719fbf7..6b39ecf74 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -112,7 +112,7 @@ 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 + client.client.headers[header_name] = value.lower().startswith('bearer ') and value or f'Bearer {value}' else: raise Exception('not supported') else: From 8310115363e1c1143fa04756eb7aaeb2de40af84 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 16 May 2023 00:37:04 +0000 Subject: [PATCH 21/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.32.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 68d4f1651..51c680793 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -154,4 +154,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-16 00:36:53 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index f9429c16e..c11aa601b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.31.1 - generationVersion: 2.27.0 + speakeasyVersion: 1.32.0 + generationVersion: 2.28.0 generation: - telemetryEnabled: false sdkClassName: epilot singleTagPerOp: false + telemetryEnabled: false python: - version: 1.12.0 + version: 1.13.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index dd48a4130..aeeb76660 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.12.0", + version="1.13.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index f40f3e444..478158b44 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.12.0" - _gen_version: str = "2.27.0" + _sdk_version: str = "1.13.0" + _gen_version: str = "2.28.0" def __init__(self, server_url: str = None, From cf6b84754d307bd4281d17ab7549992b47b68f5e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 May 2023 00:40:05 +0000 Subject: [PATCH 22/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.33.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 51c680793..ccf42e51c 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -160,4 +160,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-17 00:39:50 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index c11aa601b..4754f12c3 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.32.0 - generationVersion: 2.28.0 + speakeasyVersion: 1.33.2 + generationVersion: 2.29.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.13.0 + version: 1.14.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index aeeb76660..af52995ff 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.13.0", + version="1.14.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 478158b44..dbfa6fc00 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.13.0" - _gen_version: str = "2.28.0" + _sdk_version: str = "1.14.0" + _gen_version: str = "2.29.0" def __init__(self, server_url: str = None, From d7ba7959bc080115d970718a525db5c4ed5a79e4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 18 May 2023 00:36:57 +0000 Subject: [PATCH 23/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.34.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 21 ++++++++++++--------- 4 files changed, 23 insertions(+), 14 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ccf42e51c..7fdc0546f 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -166,4 +166,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-18 00:36:45 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 4754f12c3..8e0781706 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.33.2 - generationVersion: 2.29.0 + speakeasyVersion: 1.34.0 + generationVersion: 2.30.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.14.0 + version: 1.15.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index af52995ff..7c04389ed 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.14.0", + version="1.15.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index dbfa6fc00..b780f1239 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.14.0" - _gen_version: str = "2.29.0" + _sdk_version: str = "1.15.0" + _gen_version: str = "2.30.0" def __init__(self, server_url: str = None, @@ -63,11 +63,12 @@ def get_jwks(self) -> operations.GetJwksResponse: base_url = self._server_url url = base_url.removesuffix('/') + '/.well-known/jwks.json' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._client - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetJwksResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -90,11 +91,12 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse base_url = self._server_url url = base_url.removesuffix('/') + '/.well-known/openid-configuration' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._client - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetOpenIDConfigurationResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -137,11 +139,12 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke base_url = self._server_url url = base_url.removesuffix('/') + '/auth' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = utils.configure_security_client(self._client, security) - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetTokenResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -186,11 +189,11 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S base_url = self._server_url url = base_url.removesuffix('/') + '/auth' - headers = {} 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['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = utils.configure_security_client(self._client, security) From add4211a092a199416285b85e89c7103daf05a68 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 19 May 2023 00:37:09 +0000 Subject: [PATCH 24/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.35.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 8 ++++++-- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 7fdc0546f..7d353908d 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -172,4 +172,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-19 00:36:57 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8e0781706..de7d2c89c 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.34.0 - generationVersion: 2.30.0 + speakeasyVersion: 1.35.0 + generationVersion: 2.31.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.15.0 + version: 1.16.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 7c04389ed..2bee7bbb4 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.15.0", + version="1.16.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index b780f1239..e19c707fd 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.15.0" - _gen_version: str = "2.30.0" + _sdk_version: str = "1.16.0" + _gen_version: str = "2.31.0" def __init__(self, server_url: str = None, @@ -64,6 +64,7 @@ def get_jwks(self) -> operations.GetJwksResponse: url = base_url.removesuffix('/') + '/.well-known/jwks.json' headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._client @@ -92,6 +93,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse url = base_url.removesuffix('/') + '/.well-known/openid-configuration' headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._client @@ -140,6 +142,7 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke url = base_url.removesuffix('/') + '/auth' headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = utils.configure_security_client(self._client, security) @@ -193,6 +196,7 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S 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'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = utils.configure_security_client(self._client, security) From 4f4319b26cb4b95cf34eafedff94e53c12d030b8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 23 May 2023 00:38:10 +0000 Subject: [PATCH 25/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.37.5 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 7d353908d..cc3a44dda 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -178,4 +178,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-23 00:37:54 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index de7d2c89c..c181dae36 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 - generationVersion: 2.31.0 + speakeasyVersion: 1.37.5 + generationVersion: 2.32.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.16.0 + version: 1.17.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 2bee7bbb4..761e30f10 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.16.0", + version="1.17.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index e19c707fd..8c732c7fa 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.16.0" - _gen_version: str = "2.31.0" + _sdk_version: str = "1.17.0" + _gen_version: str = "2.32.2" def __init__(self, server_url: str = None, From ca595e8586804cab933238506ca638c1e5c21f4a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 27 May 2023 00:38:34 +0000 Subject: [PATCH 26/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.39.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index cc3a44dda..f1e05b942 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -184,4 +184,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy + +## 2023-05-27 00:38:18 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index c181dae36..8f4f547d7 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.37.5 - generationVersion: 2.32.2 + speakeasyVersion: 1.39.0 + generationVersion: 2.32.7 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.17.0 + version: 1.17.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 761e30f10..505729389 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.17.0", + version="1.17.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 8c732c7fa..22ba73ffc 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.17.0" - _gen_version: str = "2.32.2" + _sdk_version: str = "1.17.1" + _gen_version: str = "2.32.7" def __init__(self, server_url: str = None, From 2ae3f158dd37dcf3467733b69ee8cc9577888546 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Jun 2023 00:52:28 +0000 Subject: [PATCH 27/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.40.2 --- internal_auth/.gitignore | 5 +++++ internal_auth/RELEASES.md | 8 +++++++- internal_auth/files.gen | 1 + internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 7 +++++-- internal_auth/src/epilot/sdk.py | 4 ++-- 6 files changed, 23 insertions(+), 8 deletions(-) create mode 100755 internal_auth/.gitignore diff --git a/internal_auth/.gitignore b/internal_auth/.gitignore new file mode 100755 index 000000000..9072ad43b --- /dev/null +++ b/internal_auth/.gitignore @@ -0,0 +1,5 @@ +venv/ +src/*.egg-info/ +__pycache__/ +.pytest_cache/ +.python-version` \ No newline at end of file diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index f1e05b942..d53871a89 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -190,4 +190,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy + +## 2023-06-01 00:52:15 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/files.gen b/internal_auth/files.gen index 110e8b604..f841cd2a3 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -1,4 +1,5 @@ src/epilot/sdk.py +.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8f4f547d7..8764750fd 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.39.0 - generationVersion: 2.32.7 + speakeasyVersion: 1.40.2 + generationVersion: 2.34.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.17.1 + version: 1.18.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 505729389..056e204b9 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.17.1", + version="1.18.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, @@ -21,6 +21,7 @@ "charset-normalizer==2.1.1", "dataclasses-json-speakeasy==0.5.8", "idna==3.3", + "jsonpath-python==1.0.6 ", "marshmallow==3.17.1", "marshmallow-enum==1.5.1", "mypy-extensions==0.4.3", @@ -32,8 +33,10 @@ "typing-inspect==0.8.0", "typing_extensions==4.3.0", "urllib3==1.26.12", - "pylint==2.16.2", ], + extras_require={ + "dev":["pylint==2.16.2"] + }, package_dir={'': 'src'}, python_requires='>=3.9' ) diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 22ba73ffc..61c437877 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.17.1" - _gen_version: str = "2.32.7" + _sdk_version: str = "1.18.0" + _gen_version: str = "2.34.2" def __init__(self, server_url: str = None, From 9141bd3fd0c983947678021637aa122532d1f5cb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 2 Jun 2023 00:42:09 +0000 Subject: [PATCH 28/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.40.3 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 34 ++++++++++++++++----------------- internal_auth/src/epilot/sdk.py | 4 ++-- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index d53871a89..bbdcb735c 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -196,4 +196,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy + +## 2023-06-02 00:41:55 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8764750fd..475abe87f 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.40.2 - generationVersion: 2.34.2 + speakeasyVersion: 1.40.3 + generationVersion: 2.34.7 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.18.0 + version: 1.18.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 056e204b9..00a08781a 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,29 +10,29 @@ setuptools.setup( name="epilot-internal-auth", - version="1.18.0", + version="1.18.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, long_description_content_type="text/markdown", packages=setuptools.find_packages(where="src"), install_requires=[ - "certifi==2022.12.7", - "charset-normalizer==2.1.1", - "dataclasses-json-speakeasy==0.5.8", - "idna==3.3", - "jsonpath-python==1.0.6 ", - "marshmallow==3.17.1", - "marshmallow-enum==1.5.1", - "mypy-extensions==0.4.3", - "packaging==21.3", - "pyparsing==3.0.9", - "python-dateutil==2.8.2", - "requests==2.28.1", - "six==1.16.0", - "typing-inspect==0.8.0", - "typing_extensions==4.3.0", - "urllib3==1.26.12", + "certifi>=2022.12.7", + "charset-normalizer>=2.1.1", + "dataclasses-json-speakeasy>=0.5.8", + "idna>=3.3", + "jsonpath-python>=1.0.6 ", + "marshmallow>=3.17.1", + "marshmallow-enum>=1.5.1", + "mypy-extensions>=0.4.3", + "packaging>=21.3", + "pyparsing>=3.0.9", + "python-dateutil>=2.8.2", + "requests>=2.28.1", + "six>=1.16.0", + "typing-inspect>=0.8.0", + "typing_extensions>=4.3.0", + "urllib3>=1.26.12", ], extras_require={ "dev":["pylint==2.16.2"] diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 61c437877..91f6b2f22 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -20,8 +20,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.18.0" - _gen_version: str = "2.34.2" + _sdk_version: str = "1.18.1" + _gen_version: str = "2.34.7" def __init__(self, server_url: str = None, From ebb1c6ee5edc544c20e889e630ef2a17bf2a953b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 3 Jun 2023 00:41:25 +0000 Subject: [PATCH 29/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.43.0 --- internal_auth/RELEASES.md | 8 ++- internal_auth/files.gen | 1 + internal_auth/gen.yaml | 6 +- internal_auth/setup.py | 2 +- internal_auth/src/epilot/__init__.py | 1 + internal_auth/src/epilot/sdk.py | 66 +++++++++----------- internal_auth/src/epilot/sdkconfiguration.py | 27 ++++++++ 7 files changed, 68 insertions(+), 43 deletions(-) create mode 100755 internal_auth/src/epilot/sdkconfiguration.py diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index bbdcb735c..cffbb04bb 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -202,4 +202,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy + +## 2023-06-03 00:41:12 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/files.gen b/internal_auth/files.gen index f841cd2a3..3912d6f1c 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -1,3 +1,4 @@ +src/epilot/sdkconfiguration.py src/epilot/sdk.py .gitignore pylintrc diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 475abe87f..fe5028bcc 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.40.3 - generationVersion: 2.34.7 + speakeasyVersion: 1.43.0 + generationVersion: 2.35.3 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.18.1 + version: 1.19.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 00a08781a..2517a7356 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.18.1", + version="1.19.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/__init__.py b/internal_auth/src/epilot/__init__.py index b9e232018..e6c0deeb6 100755 --- a/internal_auth/src/epilot/__init__.py +++ b/internal_auth/src/epilot/__init__.py @@ -1,3 +1,4 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" from .sdk import * +from .sdkconfiguration import * diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 91f6b2f22..748d3afc2 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -1,35 +1,29 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" import requests as requests_http -from . import utils +from .sdkconfiguration import SDKConfiguration +from epilot import utils from epilot.models import operations from typing import Any, Optional -SERVERS = [ - "https://internal-auth.sls.epilot.io/v1/internal-auth", -] -"""Contains the list of servers available to the SDK""" - class Epilot: r"""Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. Converts AWS credentials into a JWT token with caller's ARN `callerIdentity` and list of `policies` granting access to API Gateway as claims. """ - _client: requests_http.Session - _security_client: requests_http.Session - _server_url: str = SERVERS[0] - _language: str = "python" - _sdk_version: str = "1.18.1" - _gen_version: str = "2.34.7" + sdk_configuration: SDKConfiguration def __init__(self, + server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, client: requests_http.Session = None ) -> None: """Instantiates the SDK configuring it with the provided parameters. + :param server_idx: The index of the server to use for all operations + :type server_idx: int :param server_url: The server URL to use for all operations :type server_url: str :param url_params: Parameters to optionally template the server URL with @@ -37,21 +31,17 @@ def __init__(self, :param client: The requests.Session HTTP client to use for all operations :type client: requests_http.Session """ - self._client = requests_http.Session() + if client is None: + client = requests_http.Session() + security_client = client if server_url is not None: if url_params is not None: - self._server_url = utils.template_url(server_url, url_params) - else: - self._server_url = server_url - - if client is not None: - self._client = client - - self._security_client = self._client - + server_url = utils.template_url(server_url, url_params) + self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx) + @@ -60,14 +50,14 @@ def get_jwks(self) -> operations.GetJwksResponse: r"""getJwks Get jwks public key set to verify tokens generated by this API """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/.well-known/jwks.json' + url = base_url + '/.well-known/jwks.json' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._client + client = self.sdk_configuration.client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -89,14 +79,14 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse Note: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to automate the process of verifying JWT tokens. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/.well-known/openid-configuration' + url = base_url + '/.well-known/openid-configuration' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._client + client = self.sdk_configuration.client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -138,14 +128,14 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke } ``` """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/auth' + url = base_url + '/auth' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = utils.configure_security_client(self._client, security) + client = utils.configure_security_client(self.sdk_configuration.client, security) http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -189,17 +179,17 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S } ``` """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/auth' + url = base_url + '/auth' headers = {} 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'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = utils.configure_security_client(self._client, security) + client = utils.configure_security_client(self.sdk_configuration.client, security) http_res = client.request('POST', url, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py new file mode 100755 index 000000000..442ef351e --- /dev/null +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +import requests +from dataclasses import dataclass + +SERVERS = [ + 'https://internal-auth.sls.epilot.io/v1/internal-auth', +] +"""Contains the list of servers available to the SDK""" + +@dataclass +class SDKConfiguration: + client: requests.Session + security_client: requests.Session + server_url: str = '' + server_idx: int = 0 + language: str = 'python' + sdk_version: str = '1.19.0' + gen_version: str = '2.35.3' + + def get_server_details(self) -> tuple[str, dict[str, str]]: + if self.server_url: + return self.server_url.removesuffix('/'), {} + if self.server_idx is None: + self.server_idx = 0 + + return SERVERS[self.server_idx], {} From 0e9e89cbb840529e41ae57ef40324eff1c86bec5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 7 Jun 2023 00:44:28 +0000 Subject: [PATCH 30/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.44.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/docs/epilot/README.md | 2 +- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 5 +++-- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index cffbb04bb..5af62e7d7 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -208,4 +208,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy + +## 2023-06-07 00:44:11 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/epilot/README.md index 9ce28aae7..1291a3b42 100755 --- a/internal_auth/docs/epilot/README.md +++ b/internal_auth/docs/epilot/README.md @@ -2,7 +2,7 @@ ## Overview -Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. +Internal Auth API: Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. Converts AWS credentials into a JWT token with caller's ARN `callerIdentity` and list of `policies` granting access to API Gateway as claims. diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index fe5028bcc..edb2ea6b8 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.43.0 - generationVersion: 2.35.3 + speakeasyVersion: 1.44.2 + generationVersion: 2.35.9 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.19.0 + version: 1.19.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 2517a7356..04c6835f3 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.19.0", + version="1.19.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 748d3afc2..063383aca 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -7,7 +7,7 @@ from typing import Any, Optional class Epilot: - r"""Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. + r"""Internal Auth API: Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. Converts AWS credentials into a JWT token with caller's ARN `callerIdentity` and list of `policies` granting access to API Gateway as claims. """ diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 442ef351e..188b5f620 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -3,6 +3,7 @@ import requests from dataclasses import dataclass + SERVERS = [ 'https://internal-auth.sls.epilot.io/v1/internal-auth', ] @@ -15,8 +16,8 @@ class SDKConfiguration: server_url: str = '' server_idx: int = 0 language: str = 'python' - sdk_version: str = '1.19.0' - gen_version: str = '2.35.3' + sdk_version: str = '1.19.1' + gen_version: str = '2.35.9' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 90263a6f2f751731abc8b29a2f432d562b995c53 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 8 Jun 2023 00:42:34 +0000 Subject: [PATCH 31/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.45.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/docs/epilot/README.md | 4 ++-- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 8 ++++---- internal_auth/src/epilot/sdkconfiguration.py | 5 +++-- 6 files changed, 20 insertions(+), 13 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 5af62e7d7..f426e22fa 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -214,4 +214,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy + +## 2023-06-08 00:42:22 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/epilot/README.md index 1291a3b42..b13f52f4d 100755 --- a/internal_auth/docs/epilot/README.md +++ b/internal_auth/docs/epilot/README.md @@ -94,7 +94,7 @@ s = epilot.Epilot() res = s.epilot.get_token(operations.GetTokenSecurity( - sigv4="YOUR_API_KEY_HERE", + sigv4="", )) if res.get_token_200_application_json_object is not None: @@ -146,7 +146,7 @@ req = { } res = s.epilot.get_token_v2(req, operations.GetTokenV2Security( - sigv4="YOUR_API_KEY_HERE", + sigv4="", )) if res.get_token_v2_200_application_json_object is not None: diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index edb2ea6b8..1f85bdd49 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.44.2 - generationVersion: 2.35.9 + speakeasyVersion: 1.45.0 + generationVersion: 2.37.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.19.1 + version: 1.20.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 04c6835f3..0a592e58d 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.19.1", + version="1.20.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 063383aca..b8d149c5d 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -55,7 +55,7 @@ def get_jwks(self) -> operations.GetJwksResponse: url = base_url + '/.well-known/jwks.json' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.client @@ -84,7 +84,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse url = base_url + '/.well-known/openid-configuration' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.client @@ -133,7 +133,7 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke url = base_url + '/auth' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = utils.configure_security_client(self.sdk_configuration.client, security) @@ -187,7 +187,7 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = utils.configure_security_client(self.sdk_configuration.client, security) diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 188b5f620..3a67098bd 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -16,8 +16,9 @@ class SDKConfiguration: server_url: str = '' server_idx: int = 0 language: str = 'python' - sdk_version: str = '1.19.1' - gen_version: str = '2.35.9' + openapi_doc_version: str = '0.0.1' + sdk_version: str = '1.20.0' + gen_version: str = '2.37.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 8e2896444832fa082fd9787d4c170a72ecb76653 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 9 Jun 2023 00:45:04 +0000 Subject: [PATCH 32/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.45.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index f426e22fa..c0584faf7 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -220,4 +220,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy + +## 2023-06-09 00:44:50 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 1f85bdd49..32c8a4cba 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.45.0 - generationVersion: 2.37.0 + speakeasyVersion: 1.45.2 + generationVersion: 2.37.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.20.0 + version: 1.20.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 0a592e58d..21104cbd7 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.20.0", + version="1.20.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 3a67098bd..14d1335ba 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.20.0' - gen_version: str = '2.37.0' + sdk_version: str = '1.20.1' + gen_version: str = '2.37.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 07f6b87dd3330a82de3603fcee93bb740be8121e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 10 Jun 2023 00:39:47 +0000 Subject: [PATCH 33/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.47.0 --- internal_auth/README.md | 10 ++--- internal_auth/RELEASES.md | 8 +++- .../operations/getjwks200applicationjson.md | 10 +++++ .../getjwks200applicationjsonkeys.md | 13 +++++++ .../docs/models/operations/getjwksresponse.md | 11 ++++++ ...etopenidconfiguration200applicationjson.md | 11 ++++++ .../getopenidconfigurationresponse.md | 11 ++++++ .../operations/gettoken200applicationjson.md | 10 +++++ .../models/operations/gettokenresponse.md | 11 ++++++ .../models/operations/gettokensecurity.md | 8 ++++ .../gettokenv2200applicationjson.md | 10 +++++ .../models/operations/gettokenv2response.md | 11 ++++++ .../models/operations/gettokenv2security.md | 8 ++++ .../docs/{ => sdks}/epilot/README.md | 37 +++++++++++++++++++ internal_auth/files.gen | 15 +++++++- internal_auth/gen.yaml | 6 +-- internal_auth/setup.py | 2 +- .../src/epilot/models/operations/getjwks.py | 13 +++++-- .../operations/getopenidconfiguration.py | 9 +++-- .../src/epilot/models/operations/gettoken.py | 13 +++++-- .../epilot/models/operations/gettokenv2.py | 13 +++++-- internal_auth/src/epilot/sdkconfiguration.py | 4 +- 22 files changed, 215 insertions(+), 29 deletions(-) create mode 100755 internal_auth/docs/models/operations/getjwks200applicationjson.md create mode 100755 internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md create mode 100755 internal_auth/docs/models/operations/getjwksresponse.md create mode 100755 internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md create mode 100755 internal_auth/docs/models/operations/getopenidconfigurationresponse.md create mode 100755 internal_auth/docs/models/operations/gettoken200applicationjson.md create mode 100755 internal_auth/docs/models/operations/gettokenresponse.md create mode 100755 internal_auth/docs/models/operations/gettokensecurity.md create mode 100755 internal_auth/docs/models/operations/gettokenv2200applicationjson.md create mode 100755 internal_auth/docs/models/operations/gettokenv2response.md create mode 100755 internal_auth/docs/models/operations/gettokenv2security.md rename internal_auth/docs/{ => sdks}/epilot/README.md (52%) diff --git a/internal_auth/README.md b/internal_auth/README.md index 4c71c1a5a..82c705edb 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -27,12 +27,12 @@ if res.get_jwks_200_application_json_object is not None: ## Available Resources and Operations -### [Epilot SDK](docs/epilot/README.md) +### [Epilot SDK](docs/sdks/epilot/README.md) -* [get_jwks](docs/epilot/README.md#get_jwks) - getJwks -* [get_open_id_configuration](docs/epilot/README.md#get_open_id_configuration) - getOpenIDConfiguration -* [get_token](docs/epilot/README.md#get_token) - getToken -* [get_token_v2](docs/epilot/README.md#get_token_v2) - getTokenV2 +* [get_jwks](docs/sdks/epilot/README.md#get_jwks) - getJwks +* [get_open_id_configuration](docs/sdks/epilot/README.md#get_open_id_configuration) - getOpenIDConfiguration +* [get_token](docs/sdks/epilot/README.md#get_token) - getToken +* [get_token_v2](docs/sdks/epilot/README.md#get_token_v2) - getTokenV2 ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index c0584faf7..ebc0ee1ee 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -226,4 +226,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy + +## 2023-06-10 00:39:34 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwks200applicationjson.md b/internal_auth/docs/models/operations/getjwks200applicationjson.md new file mode 100755 index 000000000..7f15b4c66 --- /dev/null +++ b/internal_auth/docs/models/operations/getjwks200applicationjson.md @@ -0,0 +1,10 @@ +# GetJwks200ApplicationJSON + +Set of jwks + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `keys` | list[[GetJwks200ApplicationJSONKeys](../../models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md b/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md new file mode 100755 index 000000000..768bcc2ff --- /dev/null +++ b/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md @@ -0,0 +1,13 @@ +# GetJwks200ApplicationJSONKeys + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `alg` | *Optional[str]* | :heavy_minus_sign: | N/A | RS256 | +| `e` | *Optional[str]* | :heavy_minus_sign: | N/A | AQAB | +| `kid` | *Optional[str]* | :heavy_minus_sign: | N/A | tXWU5mPMbRPczpbQwi6vbhLF4GgF3wlMDSyqo7pfeiw= | +| `kty` | *Optional[str]* | :heavy_minus_sign: | N/A | RSA | +| `n` | *Optional[str]* | :heavy_minus_sign: | N/A | h_QDoCjZ8W_trtYXaP7_S22wf5r5Wd9XBLED78oT44bJjQXn8ddcFV8Hik65_4IYXVX_hTTU4zpxe3H8vx2j7-Zz3O59mYMp5S0MzODNEdf5Y_2o19eis0brmAJniixsNlQ9LlYkdrVamrgaxHu3ZpP_99zkfFybYeuYoQNzb3PyrT8xVnz_USs_nlFMHpGUxvvz7gfKPqxcLvgLJr4cwI9yzaSY9CD4qW181QVcnL_WzpQ8xx6AuhhHZQ1l_3GG4InTk8ahE7U2ZHVu8RrX6d01pMgc3piEcet9RgFLnhbTg3YIiKGoAbN42wJn_x3lgIAC42T9mbmTsHyUdS6nUQ | +| `use` | *Optional[str]* | :heavy_minus_sign: | N/A | sig | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwksresponse.md b/internal_auth/docs/models/operations/getjwksresponse.md new file mode 100755 index 000000000..6c488a39e --- /dev/null +++ b/internal_auth/docs/models/operations/getjwksresponse.md @@ -0,0 +1,11 @@ +# GetJwksResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `get_jwks_200_application_json_object` | [Optional[GetJwks200ApplicationJSON]](../../models/operations/getjwks200applicationjson.md) | :heavy_minus_sign: | Set of jwks | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md b/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md new file mode 100755 index 000000000..de19735b2 --- /dev/null +++ b/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md @@ -0,0 +1,11 @@ +# GetOpenIDConfiguration200ApplicationJSON + +OpenID Configuration + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `issuer` | *Optional[str]* | :heavy_minus_sign: | N/A | https://h2d2syd0a4.execute-api.eu-central-1.amazonaws.com/dev/v1/internal-auth | +| `jwks_uri` | *Optional[str]* | :heavy_minus_sign: | N/A | https://h2d2syd0a4.execute-api.eu-central-1.amazonaws.com/dev/v1/internal-auth/.well-known/jwks.json | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md new file mode 100755 index 000000000..d90fe215b --- /dev/null +++ b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md @@ -0,0 +1,11 @@ +# GetOpenIDConfigurationResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `get_open_id_configuration_200_application_json_object` | [Optional[GetOpenIDConfiguration200ApplicationJSON]](../../models/operations/getopenidconfiguration200applicationjson.md) | :heavy_minus_sign: | OpenID Configuration | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettoken200applicationjson.md b/internal_auth/docs/models/operations/gettoken200applicationjson.md new file mode 100755 index 000000000..f1da9022c --- /dev/null +++ b/internal_auth/docs/models/operations/gettoken200applicationjson.md @@ -0,0 +1,10 @@ +# GetToken200ApplicationJSON + +JWT Token + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `token` | *Optional[str]* | :heavy_minus_sign: | JWT Token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0IiwibmFtZSI6IkhlbGxvIGVwaWxvdCIsImlhdCI6MTUxNjIzOTAyMn0.FhoeinGX4X3wh6K4KFJbdIJ3JAG12Ezi-s6BhT-ngK4 | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenresponse.md b/internal_auth/docs/models/operations/gettokenresponse.md new file mode 100755 index 000000000..59331bb8c --- /dev/null +++ b/internal_auth/docs/models/operations/gettokenresponse.md @@ -0,0 +1,11 @@ +# GetTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `get_token_200_application_json_object` | [Optional[GetToken200ApplicationJSON]](../../models/operations/gettoken200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokensecurity.md b/internal_auth/docs/models/operations/gettokensecurity.md new file mode 100755 index 000000000..a3569a5dd --- /dev/null +++ b/internal_auth/docs/models/operations/gettokensecurity.md @@ -0,0 +1,8 @@ +# GetTokenSecurity + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `sigv4` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenv2200applicationjson.md b/internal_auth/docs/models/operations/gettokenv2200applicationjson.md new file mode 100755 index 000000000..fc4b8c5a2 --- /dev/null +++ b/internal_auth/docs/models/operations/gettokenv2200applicationjson.md @@ -0,0 +1,10 @@ +# GetTokenV2200ApplicationJSON + +JWT Token + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `token` | *Optional[str]* | :heavy_minus_sign: | JWT Token | eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0IiwibmFtZSI6IkhlbGxvIGVwaWxvdCIsImlhdCI6MTUxNjIzOTAyMn0.FhoeinGX4X3wh6K4KFJbdIJ3JAG12Ezi-s6BhT-ngK4 | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenv2response.md b/internal_auth/docs/models/operations/gettokenv2response.md new file mode 100755 index 000000000..135e5a287 --- /dev/null +++ b/internal_auth/docs/models/operations/gettokenv2response.md @@ -0,0 +1,11 @@ +# GetTokenV2Response + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `get_token_v2_200_application_json_object` | [Optional[GetTokenV2200ApplicationJSON]](../../models/operations/gettokenv2200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenv2security.md b/internal_auth/docs/models/operations/gettokenv2security.md new file mode 100755 index 000000000..b709facd9 --- /dev/null +++ b/internal_auth/docs/models/operations/gettokenv2security.md @@ -0,0 +1,8 @@ +# GetTokenV2Security + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `sigv4` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/internal_auth/docs/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md similarity index 52% rename from internal_auth/docs/epilot/README.md rename to internal_auth/docs/sdks/epilot/README.md index b13f52f4d..2fd321060 100755 --- a/internal_auth/docs/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -33,6 +33,12 @@ if res.get_jwks_200_application_json_object is not None: # handle response ``` + +### Response + +**[operations.GetJwksResponse](../../models/operations/getjwksresponse.md)** + + ## get_open_id_configuration OpenID Connect configuration for internal auth as identity provider @@ -56,6 +62,12 @@ if res.get_open_id_configuration_200_application_json_object is not None: # handle response ``` + +### Response + +**[operations.GetOpenIDConfigurationResponse](../../models/operations/getopenidconfigurationresponse.md)** + + ## get_token Generates token for internal API access @@ -101,6 +113,18 @@ if res.get_token_200_application_json_object is not None: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `security` | [operations.GetTokenSecurity](../../models/operations/gettokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[operations.GetTokenResponse](../../models/operations/gettokenresponse.md)** + + ## get_token_v2 Generates token for internal API access with internal roles @@ -152,3 +176,16 @@ res = s.epilot.get_token_v2(req, operations.GetTokenV2Security( if res.get_token_v2_200_application_json_object is not None: # handle response ``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `request` | [dict[str, Any]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetTokenV2Security](../../models/operations/gettokenv2security.md) | :heavy_check_mark: | The security requirements to use for the request. | + + +### Response + +**[operations.GetTokenV2Response](../../models/operations/gettokenv2response.md)** + diff --git a/internal_auth/files.gen b/internal_auth/files.gen index 3912d6f1c..aac7bca5c 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -13,5 +13,16 @@ src/epilot/models/operations/getopenidconfiguration.py src/epilot/models/operations/gettoken.py src/epilot/models/operations/gettokenv2.py src/epilot/models/operations/__init__.py -docs/epilot/README.md -USAGE.md \ No newline at end of file +docs/sdks/epilot/README.md +USAGE.md +docs/models/operations/getjwks200applicationjsonkeys.md +docs/models/operations/getjwks200applicationjson.md +docs/models/operations/getjwksresponse.md +docs/models/operations/getopenidconfiguration200applicationjson.md +docs/models/operations/getopenidconfigurationresponse.md +docs/models/operations/gettokensecurity.md +docs/models/operations/gettoken200applicationjson.md +docs/models/operations/gettokenresponse.md +docs/models/operations/gettokenv2security.md +docs/models/operations/gettokenv2200applicationjson.md +docs/models/operations/gettokenv2response.md \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 32c8a4cba..61601ac03 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.45.2 - generationVersion: 2.37.2 + speakeasyVersion: 1.47.0 + generationVersion: 2.39.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.20.1 + version: 1.21.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 21104cbd7..2a23d735a 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.20.1", + version="1.21.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py index 4babe443e..d18508e07 100755 --- a/internal_auth/src/epilot/models/operations/getjwks.py +++ b/internal_auth/src/epilot/models/operations/getjwks.py @@ -9,9 +9,9 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetJwks200ApplicationJSONKeys: - alg: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('alg'), 'exclude': lambda f: f is None }}) e: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('e'), 'exclude': lambda f: f is None }}) kid: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('kid'), 'exclude': lambda f: f is None }}) @@ -20,20 +20,25 @@ class GetJwks200ApplicationJSONKeys: use: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('use'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetJwks200ApplicationJSON: r"""Set of jwks""" - keys: Optional[list[GetJwks200ApplicationJSONKeys]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('keys'), 'exclude': lambda f: f is None }}) + + + @dataclasses.dataclass class GetJwksResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() get_jwks_200_application_json_object: Optional[GetJwks200ApplicationJSON] = dataclasses.field(default=None) r"""Set of jwks""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py index 0639ccf56..b091ec318 100755 --- a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py +++ b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py @@ -9,20 +9,23 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetOpenIDConfiguration200ApplicationJSON: r"""OpenID Configuration""" - issuer: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('issuer'), 'exclude': lambda f: f is None }}) jwks_uri: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('jwks_uri'), 'exclude': lambda f: f is None }}) + + + @dataclasses.dataclass class GetOpenIDConfigurationResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() get_open_id_configuration_200_application_json_object: Optional[GetOpenIDConfiguration200ApplicationJSON] = dataclasses.field(default=None) r"""OpenID Configuration""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 20393e4a0..21744ded5 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -8,27 +8,32 @@ from typing import Optional + @dataclasses.dataclass class GetTokenSecurity: - sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetToken200ApplicationJSON: r"""JWT Token""" - token: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) r"""JWT Token""" + + + @dataclasses.dataclass class GetTokenResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() get_token_200_application_json_object: Optional[GetToken200ApplicationJSON] = dataclasses.field(default=None) r"""JWT Token""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py index 612fa81c4..5160d5ddc 100755 --- a/internal_auth/src/epilot/models/operations/gettokenv2.py +++ b/internal_auth/src/epilot/models/operations/gettokenv2.py @@ -8,27 +8,32 @@ from typing import Optional + @dataclasses.dataclass class GetTokenV2Security: - sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetTokenV2200ApplicationJSON: r"""JWT Token""" - token: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) r"""JWT Token""" + + + @dataclasses.dataclass class GetTokenV2Response: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() get_token_v2_200_application_json_object: Optional[GetTokenV2200ApplicationJSON] = dataclasses.field(default=None) r"""JWT Token""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 14d1335ba..d3dc4a2e2 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.20.1' - gen_version: str = '2.37.2' + sdk_version: str = '1.21.0' + gen_version: str = '2.39.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From d4795df4b761673f362249e19ac545a9a84d5339 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 11 Jun 2023 00:51:33 +0000 Subject: [PATCH 34/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.47.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ebc0ee1ee..0fa64e274 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -232,4 +232,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy + +## 2023-06-11 00:51:19 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 61601ac03..2311cd529 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.47.0 - generationVersion: 2.39.0 + speakeasyVersion: 1.47.1 + generationVersion: 2.39.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.21.0 + version: 1.21.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 2a23d735a..4e5400b08 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.21.0", + version="1.21.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index d3dc4a2e2..0e7d211bb 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.21.0' - gen_version: str = '2.39.0' + sdk_version: str = '1.21.1' + gen_version: str = '2.39.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 224dc27fe41679f47c9fa0750af3e0ea8ea54ec4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 14 Jun 2023 00:40:17 +0000 Subject: [PATCH 35/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.47.3 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/retries.py | 3 ++- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 0fa64e274..3519b4369 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -238,4 +238,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy + +## 2023-06-14 00:40:00 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 2311cd529..cd8dee3c8 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.47.1 - generationVersion: 2.39.2 + speakeasyVersion: 1.47.3 + generationVersion: 2.40.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.21.1 + version: 1.22.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 4e5400b08..2147a8d13 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.21.1", + version="1.22.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 0e7d211bb..3456e41cf 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.21.1' - gen_version: str = '2.39.2' + sdk_version: str = '1.22.0' + gen_version: str = '2.40.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/internal_auth/src/epilot/utils/retries.py b/internal_auth/src/epilot/utils/retries.py index c6251d948..2138c1b5e 100755 --- a/internal_auth/src/epilot/utils/retries.py +++ b/internal_auth/src/epilot/utils/retries.py @@ -24,8 +24,9 @@ class RetryConfig: backoff: BackoffStrategy retry_connection_errors: bool - def __init__(self, strategy: str, retry_connection_errors: bool): + def __init__(self, strategy: str, backoff: BackoffStrategy, retry_connection_errors: bool): self.strategy = strategy + self.backoff = backoff self.retry_connection_errors = retry_connection_errors From 8e6878291f4dcb78db972901969c25f4ae7e10d1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 16 Jun 2023 00:42:31 +0000 Subject: [PATCH 36/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.48.0 --- internal_auth/.gitignore | 2 +- internal_auth/RELEASES.md | 8 +++++++- internal_auth/files.gen | 1 - internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/internal_auth/.gitignore b/internal_auth/.gitignore index 9072ad43b..648876d29 100755 --- a/internal_auth/.gitignore +++ b/internal_auth/.gitignore @@ -2,4 +2,4 @@ venv/ src/*.egg-info/ __pycache__/ .pytest_cache/ -.python-version` \ No newline at end of file +.python-version` diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 3519b4369..52e79a9ab 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -244,4 +244,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy + +## 2023-06-16 00:42:17 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/files.gen b/internal_auth/files.gen index aac7bca5c..9ed7277b6 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -1,6 +1,5 @@ src/epilot/sdkconfiguration.py src/epilot/sdk.py -.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index cd8dee3c8..6ea12ed07 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.47.3 - generationVersion: 2.40.1 + speakeasyVersion: 1.48.0 + generationVersion: 2.41.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.22.0 + version: 1.23.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 2147a8d13..ac2328b3e 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.22.0", + version="1.23.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 3456e41cf..e73a2e4e0 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.22.0' - gen_version: str = '2.40.1' + sdk_version: str = '1.23.0' + gen_version: str = '2.41.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 690c5afc45e3d39eb74955921a3badd41b61c715 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 20 Jun 2023 00:39:58 +0000 Subject: [PATCH 37/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.49.0 --- internal_auth/.gitignore | 2 ++ internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/internal_auth/.gitignore b/internal_auth/.gitignore index 648876d29..8ac3f51d4 100755 --- a/internal_auth/.gitignore +++ b/internal_auth/.gitignore @@ -1,3 +1,5 @@ +.python-version +.DS_Store venv/ src/*.egg-info/ __pycache__/ diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 52e79a9ab..69badd3ed 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -250,4 +250,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy + +## 2023-06-20 00:39:41 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 6ea12ed07..1696e8c4f 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.48.0 - generationVersion: 2.41.1 + speakeasyVersion: 1.49.0 + generationVersion: 2.41.4 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.23.0 + version: 1.23.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index ac2328b3e..19db83e22 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.23.0", + version="1.23.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index e73a2e4e0..ea1a4f814 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.23.0' - gen_version: str = '2.41.1' + sdk_version: str = '1.23.1' + gen_version: str = '2.41.4' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From d20139cd10e3d4985053b6004c08bb94d7313532 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 21 Jun 2023 00:42:18 +0000 Subject: [PATCH 38/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.49.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 69badd3ed..77bb93869 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -256,4 +256,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy + +## 2023-06-21 00:42:03 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 1696e8c4f..5657093f4 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.49.0 - generationVersion: 2.41.4 + speakeasyVersion: 1.49.1 + generationVersion: 2.41.5 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.23.1 + version: 1.23.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 19db83e22..e1e6e5050 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.23.1", + version="1.23.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index ea1a4f814..9172795df 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.23.1' - gen_version: str = '2.41.4' + sdk_version: str = '1.23.2' + gen_version: str = '2.41.5' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From c7f19c073bba42c43c4da4072eb1de2915785bd8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 23 Jun 2023 00:45:56 +0000 Subject: [PATCH 39/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.50.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 77bb93869..71000926c 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -262,4 +262,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy + +## 2023-06-23 00:45:41 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 5657093f4..bf3e9aff4 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.49.1 - generationVersion: 2.41.5 + speakeasyVersion: 1.50.1 + generationVersion: 2.43.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.23.2 + version: 1.24.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index e1e6e5050..a79b48280 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.23.2", + version="1.24.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 9172795df..7da36e2e3 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.23.2' - gen_version: str = '2.41.5' + sdk_version: str = '1.24.0' + gen_version: str = '2.43.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From a518e1cd316e2ceaf1ec6d28ac9953954f456c1f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 27 Jun 2023 00:46:17 +0000 Subject: [PATCH 40/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.51.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 71000926c..74a24bd1b 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -268,4 +268,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy + +## 2023-06-27 00:46:04 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index bf3e9aff4..3fc7b3880 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.50.1 - generationVersion: 2.43.2 + speakeasyVersion: 1.51.1 + generationVersion: 2.50.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.24.0 + version: 1.25.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index a79b48280..667078753 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.24.0", + version="1.25.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 7da36e2e3..79ce52889 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.24.0' - gen_version: str = '2.43.2' + sdk_version: str = '1.25.0' + gen_version: str = '2.50.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From c70327afb885fa5238b642b9b96dd5a02ae536c3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 29 Jun 2023 00:45:46 +0000 Subject: [PATCH 41/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.51.3 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 74a24bd1b..0aeaf40c5 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -274,4 +274,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy + +## 2023-06-29 00:45:32 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 3fc7b3880..40a32b205 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.51.1 - generationVersion: 2.50.2 + speakeasyVersion: 1.51.3 + generationVersion: 2.52.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.25.0 + version: 1.26.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 667078753..69b937f7c 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.25.0", + version="1.26.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 79ce52889..45e63d25c 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.25.0' - gen_version: str = '2.50.2' + sdk_version: str = '1.26.0' + gen_version: str = '2.52.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 8ef6f04bf5ef9ad4c47938d16052256ec792a4a9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Jul 2023 00:52:09 +0000 Subject: [PATCH 42/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.52.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 0aeaf40c5..c2bd83a37 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -280,4 +280,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy + +## 2023-07-01 00:51:56 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 40a32b205..b895379a0 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.51.3 - generationVersion: 2.52.2 + speakeasyVersion: 1.52.0 + generationVersion: 2.55.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.26.0 + version: 1.27.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 69b937f7c..3399dcf5d 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.26.0", + version="1.27.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 45e63d25c..008758687 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.26.0' - gen_version: str = '2.52.2' + sdk_version: str = '1.27.0' + gen_version: str = '2.55.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 5c1450889f724e24cd067020de80ec286026ae19 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Jul 2023 00:49:11 +0000 Subject: [PATCH 43/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.52.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index c2bd83a37..0eb69a392 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -286,4 +286,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-06 00:48:57 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index b895379a0..bf076f42d 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.52.0 - generationVersion: 2.55.0 + speakeasyVersion: 1.52.2 + generationVersion: 2.57.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.27.0 + version: 1.28.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 3399dcf5d..75dbab8d0 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.27.0", + version="1.28.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 008758687..264b8d562 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.27.0' - gen_version: str = '2.55.0' + sdk_version: str = '1.28.0' + gen_version: str = '2.57.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From f2955f09d535f7817b0a1612623bcf677ba44219 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Jul 2023 00:48:46 +0000 Subject: [PATCH 44/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.53.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 0eb69a392..dbde077f9 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -292,4 +292,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy + +## 2023-07-07 00:48:31 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index bf076f42d..e3b97c792 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.52.2 - generationVersion: 2.57.2 + speakeasyVersion: 1.53.0 + generationVersion: 2.58.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.28.0 + version: 1.29.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 75dbab8d0..638660fc7 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.28.0", + version="1.29.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 264b8d562..7cc481d39 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.28.0' - gen_version: str = '2.57.2' + sdk_version: str = '1.29.0' + gen_version: str = '2.58.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From a28c23614c00d89a5bd4d4dcbd2b741a223fba96 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 8 Jul 2023 00:46:47 +0000 Subject: [PATCH 45/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.53.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index dbde077f9..f4a4a7e52 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -298,4 +298,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-08 00:46:34 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index e3b97c792..ec5092b6b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.53.0 - generationVersion: 2.58.0 + speakeasyVersion: 1.53.1 + generationVersion: 2.58.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.29.0 + version: 1.29.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 638660fc7..02b50c77b 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.29.0", + version="1.29.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 7cc481d39..a49ea9e6f 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.29.0' - gen_version: str = '2.58.0' + sdk_version: str = '1.29.1' + gen_version: str = '2.58.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 8286e553a2de1ea24cdda535f8b57fb5727125ee Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 11 Jul 2023 00:41:54 +0000 Subject: [PATCH 46/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.56.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index f4a4a7e52..e5f603264 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -304,4 +304,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy + +## 2023-07-11 00:41:40 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index ec5092b6b..78db65b05 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.53.1 - generationVersion: 2.58.2 + speakeasyVersion: 1.56.0 + generationVersion: 2.61.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.29.1 + version: 1.30.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 02b50c77b..54b45c66b 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.29.1", + version="1.30.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index a49ea9e6f..45ebf1089 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.29.1' - gen_version: str = '2.58.2' + sdk_version: str = '1.30.0' + gen_version: str = '2.61.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 9f28c791cd931bf9b8686adb9821ba3017cceea3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Jul 2023 00:48:02 +0000 Subject: [PATCH 47/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.56.3 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index e5f603264..f75fd3a7f 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -310,4 +310,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-12 00:47:48 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.56.3 (2.61.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 78db65b05..bb8ef9db6 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.56.0 - generationVersion: 2.61.0 + speakeasyVersion: 1.56.3 + generationVersion: 2.61.4 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.30.0 + version: 1.30.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 54b45c66b..9b10e242d 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.30.0", + version="1.30.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 45ebf1089..9a62f39c5 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.30.0' - gen_version: str = '2.61.0' + sdk_version: str = '1.30.1' + gen_version: str = '2.61.4' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 25efebe7a1fcf6d9f8a641f831d63c5fbd9e373d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 13 Jul 2023 00:48:17 +0000 Subject: [PATCH 48/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.57.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 12 ++++++------ internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 19 insertions(+), 13 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index f75fd3a7f..dc74ba10d 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -316,4 +316,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.56.3 (2.61.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.56.3 (2.61.4) https://github.com/speakeasy-api/speakeasy + +## 2023-07-13 00:48:02 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index bb8ef9db6..df74c26e8 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.56.3 - generationVersion: 2.61.4 + speakeasyVersion: 1.57.0 + generationVersion: 2.62.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.30.1 + version: 1.31.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 9b10e242d..0c399707a 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.30.1", + version="1.31.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index b8d149c5d..ca76150b0 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -8,7 +8,7 @@ class Epilot: r"""Internal Auth API: Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. - + Converts AWS credentials into a JWT token with caller's ARN `callerIdentity` and list of `policies` granting access to API Gateway as claims. """ @@ -75,7 +75,7 @@ def get_jwks(self) -> operations.GetJwksResponse: def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse: r"""getOpenIDConfiguration OpenID Connect configuration for internal auth as identity provider - + Note: This API is not a fully compliant OAuth2.0 / OIDC identity provider, but this endpoint is useful to automate the process of verifying JWT tokens. """ @@ -104,9 +104,9 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse def get_token(self, security: operations.GetTokenSecurity) -> operations.GetTokenResponse: r"""getToken Generates token for internal API access - + Example JWT payload: - + ```json { \"callerIdentity\": \"arn:aws:sts::912468240823:assumed-role/ep_prod_access_admin/awsmfa_20210225T193753\", @@ -153,9 +153,9 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2Security) -> operations.GetTokenV2Response: r"""getTokenV2 Generates token for internal API access with internal roles - + Example JWT payload: - + ```json { \"callerIdentity\": \"arn:aws:sts::912468240823:assumed-role/ep_prod_access_admin/awsmfa_20210225T193753\", diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 9a62f39c5..292588547 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.30.1' - gen_version: str = '2.61.4' + sdk_version: str = '1.31.0' + gen_version: str = '2.62.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 8aba0d379cf57e6c86f751429aa15f825e93ef4e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Jul 2023 00:47:28 +0000 Subject: [PATCH 49/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.59.0 --- internal_auth/README.md | 2 ++ internal_auth/RELEASES.md | 8 +++++++- internal_auth/USAGE.md | 2 ++ internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/internal_auth/README.md b/internal_auth/README.md index 82c705edb..a2185690f 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -10,6 +10,8 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=intern ## SDK Example Usage + + ```python import epilot diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index dc74ba10d..0cff65be8 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -322,4 +322,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy + +## 2023-07-14 00:47:14 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/USAGE.md b/internal_auth/USAGE.md index cf60a39b0..573bf4e33 100755 --- a/internal_auth/USAGE.md +++ b/internal_auth/USAGE.md @@ -1,4 +1,6 @@ + + ```python import epilot diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index df74c26e8..dec3e3f12 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.57.0 - generationVersion: 2.62.1 + speakeasyVersion: 1.59.0 + generationVersion: 2.65.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.31.0 + version: 1.32.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 0c399707a..18356224b 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.31.0", + version="1.32.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 292588547..dbd06c6ec 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.31.0' - gen_version: str = '2.62.1' + sdk_version: str = '1.32.0' + gen_version: str = '2.65.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 99dea4c3177f43eedd2770f94f6993b793427de5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Jul 2023 01:05:38 +0000 Subject: [PATCH 50/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.61.0 --- internal_auth/RELEASES.md | 8 ++++++- internal_auth/files.gen | 2 ++ internal_auth/gen.yaml | 6 ++--- internal_auth/pylintrc | 4 +++- internal_auth/setup.py | 2 +- .../src/epilot/models/errors/__init__.py | 4 ++++ .../src/epilot/models/errors/sdkerror.py | 24 +++++++++++++++++++ internal_auth/src/epilot/sdk.py | 10 +++++++- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 9 files changed, 55 insertions(+), 9 deletions(-) create mode 100755 internal_auth/src/epilot/models/errors/__init__.py create mode 100755 internal_auth/src/epilot/models/errors/sdkerror.py diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 0cff65be8..272cacb76 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -328,4 +328,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-18 01:05:24 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/files.gen b/internal_auth/files.gen index 9ed7277b6..a13f86cfc 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -4,6 +4,7 @@ pylintrc setup.py src/epilot/__init__.py src/epilot/models/__init__.py +src/epilot/models/errors/sdkerror.py src/epilot/utils/__init__.py src/epilot/utils/retries.py src/epilot/utils/utils.py @@ -12,6 +13,7 @@ src/epilot/models/operations/getopenidconfiguration.py src/epilot/models/operations/gettoken.py src/epilot/models/operations/gettokenv2.py src/epilot/models/operations/__init__.py +src/epilot/models/errors/__init__.py docs/sdks/epilot/README.md USAGE.md docs/models/operations/getjwks200applicationjsonkeys.md diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index dec3e3f12..39e41978b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.59.0 - generationVersion: 2.65.0 + speakeasyVersion: 1.61.0 + generationVersion: 2.70.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.32.0 + version: 1.33.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc index a18f74cc9..1a5e0a624 100755 --- a/internal_auth/pylintrc +++ b/internal_auth/pylintrc @@ -439,7 +439,9 @@ disable=raw-checker-failed, using-constant-test, too-many-statements, cyclic-import, - too-many-nested-blocks + too-many-nested-blocks, + too-many-boolean-expressions, + no-else-raise # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 18356224b..f30d50589 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.32.0", + version="1.33.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/errors/__init__.py b/internal_auth/src/epilot/models/errors/__init__.py new file mode 100755 index 000000000..cfd848441 --- /dev/null +++ b/internal_auth/src/epilot/models/errors/__init__.py @@ -0,0 +1,4 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from .sdkerror import SDKError +__all__ = ["SDKError"] diff --git a/internal_auth/src/epilot/models/errors/sdkerror.py b/internal_auth/src/epilot/models/errors/sdkerror.py new file mode 100755 index 000000000..6bb02bbd6 --- /dev/null +++ b/internal_auth/src/epilot/models/errors/sdkerror.py @@ -0,0 +1,24 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +import requests as requests_http + + +class SDKError(Exception): + """Represents an error returned by the API.""" + message: str + status_code: int + body: str + raw_response: requests_http.Response + + def __init__(self, message: str, status_code: int, body: str, raw_response: requests_http.Response): + self.message = message + self.status_code = status_code + self.body = body + self.raw_response = raw_response + + def __str__(self): + body = '' + if len(self.body) > 0: + body = f'\n{self.body}' + + return f'{self.message}: Status {self.status_code}{body}' diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index ca76150b0..d191faf38 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -3,7 +3,7 @@ import requests as requests_http from .sdkconfiguration import SDKConfiguration from epilot import utils -from epilot.models import operations +from epilot.models import errors, operations from typing import Any, Optional class Epilot: @@ -68,6 +68,8 @@ def get_jwks(self) -> operations.GetJwksResponse: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GetJwks200ApplicationJSON]) res.get_jwks_200_application_json_object = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -97,6 +99,8 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GetOpenIDConfiguration200ApplicationJSON]) res.get_open_id_configuration_200_application_json_object = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -146,6 +150,8 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GetToken200ApplicationJSON]) res.get_token_200_application_json_object = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -200,6 +206,8 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GetTokenV2200ApplicationJSON]) res.get_token_v2_200_application_json_object = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index dbd06c6ec..dda5adea1 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.32.0' - gen_version: str = '2.65.0' + sdk_version: str = '1.33.0' + gen_version: str = '2.70.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 412df374148f24fd91d11d1c3626ee553396f25a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Jul 2023 01:12:04 +0000 Subject: [PATCH 51/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.62.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 272cacb76..4d0af1afa 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -334,4 +334,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-19 01:11:50 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 39e41978b..3284136aa 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.61.0 - generationVersion: 2.70.0 + speakeasyVersion: 1.62.1 + generationVersion: 2.70.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.33.0 + version: 1.33.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index f30d50589..30aa00d5d 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.33.0", + version="1.33.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index dda5adea1..3458e93b4 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.33.0' - gen_version: str = '2.70.0' + sdk_version: str = '1.33.1' + gen_version: str = '2.70.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From a2450b3e3d6186d12197251b6ce76b583658336e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Jul 2023 00:41:05 +0000 Subject: [PATCH 52/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.64.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/USAGE.md | 0 .../docs/models/operations/getjwks200applicationjson.md | 0 .../models/operations/getjwks200applicationjsonkeys.md | 0 internal_auth/docs/models/operations/getjwksresponse.md | 0 .../getopenidconfiguration200applicationjson.md | 0 .../models/operations/getopenidconfigurationresponse.md | 0 .../docs/models/operations/gettoken200applicationjson.md | 0 internal_auth/docs/models/operations/gettokenresponse.md | 0 internal_auth/docs/models/operations/gettokensecurity.md | 0 .../models/operations/gettokenv2200applicationjson.md | 0 .../docs/models/operations/gettokenv2response.md | 0 .../docs/models/operations/gettokenv2security.md | 0 internal_auth/docs/sdks/epilot/README.md | 0 internal_auth/gen.yaml | 6 +++--- internal_auth/pylintrc | 0 internal_auth/setup.py | 4 ++-- internal_auth/src/epilot/__init__.py | 0 internal_auth/src/epilot/models/__init__.py | 0 internal_auth/src/epilot/models/errors/__init__.py | 0 internal_auth/src/epilot/models/errors/sdkerror.py | 0 internal_auth/src/epilot/models/operations/__init__.py | 0 internal_auth/src/epilot/models/operations/getjwks.py | 0 .../epilot/models/operations/getopenidconfiguration.py | 0 internal_auth/src/epilot/models/operations/gettoken.py | 0 internal_auth/src/epilot/models/operations/gettokenv2.py | 0 internal_auth/src/epilot/sdk.py | 0 internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/__init__.py | 0 internal_auth/src/epilot/utils/retries.py | 0 internal_auth/src/epilot/utils/utils.py | 0 31 files changed, 14 insertions(+), 8 deletions(-) mode change 100755 => 100644 internal_auth/USAGE.md mode change 100755 => 100644 internal_auth/docs/models/operations/getjwks200applicationjson.md mode change 100755 => 100644 internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md mode change 100755 => 100644 internal_auth/docs/models/operations/getjwksresponse.md mode change 100755 => 100644 internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md mode change 100755 => 100644 internal_auth/docs/models/operations/getopenidconfigurationresponse.md mode change 100755 => 100644 internal_auth/docs/models/operations/gettoken200applicationjson.md mode change 100755 => 100644 internal_auth/docs/models/operations/gettokenresponse.md mode change 100755 => 100644 internal_auth/docs/models/operations/gettokensecurity.md mode change 100755 => 100644 internal_auth/docs/models/operations/gettokenv2200applicationjson.md mode change 100755 => 100644 internal_auth/docs/models/operations/gettokenv2response.md mode change 100755 => 100644 internal_auth/docs/models/operations/gettokenv2security.md mode change 100755 => 100644 internal_auth/docs/sdks/epilot/README.md mode change 100755 => 100644 internal_auth/pylintrc mode change 100755 => 100644 internal_auth/setup.py mode change 100755 => 100644 internal_auth/src/epilot/__init__.py mode change 100755 => 100644 internal_auth/src/epilot/models/__init__.py mode change 100755 => 100644 internal_auth/src/epilot/models/errors/__init__.py mode change 100755 => 100644 internal_auth/src/epilot/models/errors/sdkerror.py mode change 100755 => 100644 internal_auth/src/epilot/models/operations/__init__.py mode change 100755 => 100644 internal_auth/src/epilot/models/operations/getjwks.py mode change 100755 => 100644 internal_auth/src/epilot/models/operations/getopenidconfiguration.py mode change 100755 => 100644 internal_auth/src/epilot/models/operations/gettoken.py mode change 100755 => 100644 internal_auth/src/epilot/models/operations/gettokenv2.py mode change 100755 => 100644 internal_auth/src/epilot/sdk.py mode change 100755 => 100644 internal_auth/src/epilot/sdkconfiguration.py mode change 100755 => 100644 internal_auth/src/epilot/utils/__init__.py mode change 100755 => 100644 internal_auth/src/epilot/utils/retries.py mode change 100755 => 100644 internal_auth/src/epilot/utils/utils.py diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 4d0af1afa..a6ca6b006 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -340,4 +340,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy + +## 2023-07-22 00:40:52 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/USAGE.md b/internal_auth/USAGE.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/getjwks200applicationjson.md b/internal_auth/docs/models/operations/getjwks200applicationjson.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md b/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/getjwksresponse.md b/internal_auth/docs/models/operations/getjwksresponse.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md b/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/gettoken200applicationjson.md b/internal_auth/docs/models/operations/gettoken200applicationjson.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/gettokenresponse.md b/internal_auth/docs/models/operations/gettokenresponse.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/gettokensecurity.md b/internal_auth/docs/models/operations/gettokensecurity.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/gettokenv2200applicationjson.md b/internal_auth/docs/models/operations/gettokenv2200applicationjson.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/gettokenv2response.md b/internal_auth/docs/models/operations/gettokenv2response.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/models/operations/gettokenv2security.md b/internal_auth/docs/models/operations/gettokenv2security.md old mode 100755 new mode 100644 diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md old mode 100755 new mode 100644 diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 3284136aa..2b5dda95e 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.62.1 - generationVersion: 2.70.2 + speakeasyVersion: 1.64.0 + generationVersion: 2.71.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.33.1 + version: 1.34.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc old mode 100755 new mode 100644 diff --git a/internal_auth/setup.py b/internal_auth/setup.py old mode 100755 new mode 100644 index 30aa00d5d..44bb3a783 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.33.1", + version="1.34.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, @@ -19,7 +19,7 @@ install_requires=[ "certifi>=2022.12.7", "charset-normalizer>=2.1.1", - "dataclasses-json-speakeasy>=0.5.8", + "dataclasses-json>=0.5.12", "idna>=3.3", "jsonpath-python>=1.0.6 ", "marshmallow>=3.17.1", diff --git a/internal_auth/src/epilot/__init__.py b/internal_auth/src/epilot/__init__.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/__init__.py b/internal_auth/src/epilot/models/__init__.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/errors/__init__.py b/internal_auth/src/epilot/models/errors/__init__.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/errors/sdkerror.py b/internal_auth/src/epilot/models/errors/sdkerror.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/operations/__init__.py b/internal_auth/src/epilot/models/operations/__init__.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py old mode 100755 new mode 100644 index 3458e93b4..d140d5319 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.33.1' - gen_version: str = '2.70.2' + sdk_version: str = '1.34.0' + gen_version: str = '2.71.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/internal_auth/src/epilot/utils/__init__.py b/internal_auth/src/epilot/utils/__init__.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/utils/retries.py b/internal_auth/src/epilot/utils/retries.py old mode 100755 new mode 100644 diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py old mode 100755 new mode 100644 From 23fd6617beaddeb55626b832d7dbff5784e3cb51 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Jul 2023 00:39:57 +0000 Subject: [PATCH 53/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.65.0 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/USAGE.md | 0 .../docs/models/operations/getjwks200applicationjson.md | 0 .../models/operations/getjwks200applicationjsonkeys.md | 0 internal_auth/docs/models/operations/getjwksresponse.md | 0 .../getopenidconfiguration200applicationjson.md | 0 .../models/operations/getopenidconfigurationresponse.md | 0 .../docs/models/operations/gettoken200applicationjson.md | 0 internal_auth/docs/models/operations/gettokenresponse.md | 0 internal_auth/docs/models/operations/gettokensecurity.md | 0 .../models/operations/gettokenv2200applicationjson.md | 0 .../docs/models/operations/gettokenv2response.md | 0 .../docs/models/operations/gettokenv2security.md | 0 internal_auth/docs/sdks/epilot/README.md | 0 internal_auth/gen.yaml | 6 +++--- internal_auth/pylintrc | 0 internal_auth/setup.py | 2 +- internal_auth/src/epilot/__init__.py | 0 internal_auth/src/epilot/models/__init__.py | 0 internal_auth/src/epilot/models/errors/__init__.py | 0 internal_auth/src/epilot/models/errors/sdkerror.py | 0 internal_auth/src/epilot/models/operations/__init__.py | 0 internal_auth/src/epilot/models/operations/getjwks.py | 0 .../epilot/models/operations/getopenidconfiguration.py | 0 internal_auth/src/epilot/models/operations/gettoken.py | 0 internal_auth/src/epilot/models/operations/gettokenv2.py | 0 internal_auth/src/epilot/sdk.py | 0 internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/__init__.py | 0 internal_auth/src/epilot/utils/retries.py | 0 internal_auth/src/epilot/utils/utils.py | 0 31 files changed, 13 insertions(+), 7 deletions(-) mode change 100644 => 100755 internal_auth/USAGE.md mode change 100644 => 100755 internal_auth/docs/models/operations/getjwks200applicationjson.md mode change 100644 => 100755 internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md mode change 100644 => 100755 internal_auth/docs/models/operations/getjwksresponse.md mode change 100644 => 100755 internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md mode change 100644 => 100755 internal_auth/docs/models/operations/getopenidconfigurationresponse.md mode change 100644 => 100755 internal_auth/docs/models/operations/gettoken200applicationjson.md mode change 100644 => 100755 internal_auth/docs/models/operations/gettokenresponse.md mode change 100644 => 100755 internal_auth/docs/models/operations/gettokensecurity.md mode change 100644 => 100755 internal_auth/docs/models/operations/gettokenv2200applicationjson.md mode change 100644 => 100755 internal_auth/docs/models/operations/gettokenv2response.md mode change 100644 => 100755 internal_auth/docs/models/operations/gettokenv2security.md mode change 100644 => 100755 internal_auth/docs/sdks/epilot/README.md mode change 100644 => 100755 internal_auth/pylintrc mode change 100644 => 100755 internal_auth/setup.py mode change 100644 => 100755 internal_auth/src/epilot/__init__.py mode change 100644 => 100755 internal_auth/src/epilot/models/__init__.py mode change 100644 => 100755 internal_auth/src/epilot/models/errors/__init__.py mode change 100644 => 100755 internal_auth/src/epilot/models/errors/sdkerror.py mode change 100644 => 100755 internal_auth/src/epilot/models/operations/__init__.py mode change 100644 => 100755 internal_auth/src/epilot/models/operations/getjwks.py mode change 100644 => 100755 internal_auth/src/epilot/models/operations/getopenidconfiguration.py mode change 100644 => 100755 internal_auth/src/epilot/models/operations/gettoken.py mode change 100644 => 100755 internal_auth/src/epilot/models/operations/gettokenv2.py mode change 100644 => 100755 internal_auth/src/epilot/sdk.py mode change 100644 => 100755 internal_auth/src/epilot/sdkconfiguration.py mode change 100644 => 100755 internal_auth/src/epilot/utils/__init__.py mode change 100644 => 100755 internal_auth/src/epilot/utils/retries.py mode change 100644 => 100755 internal_auth/src/epilot/utils/utils.py diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index a6ca6b006..0d476dd48 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -346,4 +346,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-26 00:39:45 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/USAGE.md b/internal_auth/USAGE.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/getjwks200applicationjson.md b/internal_auth/docs/models/operations/getjwks200applicationjson.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md b/internal_auth/docs/models/operations/getjwks200applicationjsonkeys.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/getjwksresponse.md b/internal_auth/docs/models/operations/getjwksresponse.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md b/internal_auth/docs/models/operations/getopenidconfiguration200applicationjson.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/gettoken200applicationjson.md b/internal_auth/docs/models/operations/gettoken200applicationjson.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/gettokenresponse.md b/internal_auth/docs/models/operations/gettokenresponse.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/gettokensecurity.md b/internal_auth/docs/models/operations/gettokensecurity.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/gettokenv2200applicationjson.md b/internal_auth/docs/models/operations/gettokenv2200applicationjson.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/gettokenv2response.md b/internal_auth/docs/models/operations/gettokenv2response.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/models/operations/gettokenv2security.md b/internal_auth/docs/models/operations/gettokenv2security.md old mode 100644 new mode 100755 diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md old mode 100644 new mode 100755 diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 2b5dda95e..3af59c94c 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.64.0 - generationVersion: 2.71.0 + speakeasyVersion: 1.65.0 + generationVersion: 2.73.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.34.0 + version: 1.35.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc old mode 100644 new mode 100755 diff --git a/internal_auth/setup.py b/internal_auth/setup.py old mode 100644 new mode 100755 index 44bb3a783..a7f3a4ee1 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.34.0", + version="1.35.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/__init__.py b/internal_auth/src/epilot/__init__.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/__init__.py b/internal_auth/src/epilot/models/__init__.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/errors/__init__.py b/internal_auth/src/epilot/models/errors/__init__.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/errors/sdkerror.py b/internal_auth/src/epilot/models/errors/sdkerror.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/operations/__init__.py b/internal_auth/src/epilot/models/operations/__init__.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py old mode 100644 new mode 100755 index d140d5319..238163314 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.34.0' - gen_version: str = '2.71.0' + sdk_version: str = '1.35.0' + gen_version: str = '2.73.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/internal_auth/src/epilot/utils/__init__.py b/internal_auth/src/epilot/utils/__init__.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/utils/retries.py b/internal_auth/src/epilot/utils/retries.py old mode 100644 new mode 100755 diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py old mode 100644 new mode 100755 From 8dcf1c7e6b44becdcf8421c4436b79d6fa6f773a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Jul 2023 00:37:51 +0000 Subject: [PATCH 54/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.65.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 0d476dd48..05bb548da 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -352,4 +352,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-27 00:37:38 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 3af59c94c..90df046c3 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.65.0 - generationVersion: 2.73.0 + speakeasyVersion: 1.65.1 + generationVersion: 2.73.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.35.0 + version: 1.35.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index a7f3a4ee1..34ca50952 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.35.0", + version="1.35.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 238163314..cbdf9bdaf 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.35.0' - gen_version: str = '2.73.0' + sdk_version: str = '1.35.1' + gen_version: str = '2.73.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From e5da9d37d0ee9473d08f7d3e9ee66b824ca8abb1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Jul 2023 00:38:08 +0000 Subject: [PATCH 55/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.65.2 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 05bb548da..d797e7f83 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -358,4 +358,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy + +## 2023-07-28 00:37:55 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 90df046c3..8e7dbff62 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.65.1 - generationVersion: 2.73.1 + speakeasyVersion: 1.65.2 + generationVersion: 2.75.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.35.1 + version: 1.36.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 34ca50952..b01c09878 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.35.1", + version="1.36.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index cbdf9bdaf..3d17ba849 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.35.1' - gen_version: str = '2.73.1' + sdk_version: str = '1.36.0' + gen_version: str = '2.75.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From a13f4bd8a4af8ed48fb5093a7d2850b68082df82 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Aug 2023 00:45:16 +0000 Subject: [PATCH 56/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.66.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index d797e7f83..6f8598cb5 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -364,4 +364,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy + +## 2023-08-01 00:45:03 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8e7dbff62..694a535e2 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.65.2 - generationVersion: 2.75.1 + speakeasyVersion: 1.66.1 + generationVersion: 2.75.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.36.0 + version: 1.36.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index b01c09878..1a1eae453 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.36.0", + version="1.36.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 3d17ba849..0edb8fe22 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.36.0' - gen_version: str = '2.75.1' + sdk_version: str = '1.36.1' + gen_version: str = '2.75.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 09ca784e3e94630e90f7dff3d5268e4822bc34e4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Aug 2023 00:39:53 +0000 Subject: [PATCH 57/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.68.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 6f8598cb5..215fb6254 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -370,4 +370,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy + +## 2023-08-03 00:39:41 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 694a535e2..73d93bb68 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.66.1 - generationVersion: 2.75.2 + speakeasyVersion: 1.68.1 + generationVersion: 2.77.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.36.1 + version: 1.37.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 1a1eae453..f2bac84ed 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.36.1", + version="1.37.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 0edb8fe22..bcbe1f1a9 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.36.1' - gen_version: str = '2.75.2' + sdk_version: str = '1.37.0' + gen_version: str = '2.77.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 522017c3a48f56533e1040cf55a275ed03ec633c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 4 Aug 2023 00:39:59 +0000 Subject: [PATCH 58/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.68.3 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 6 +++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 5 ++++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 215fb6254..b90a7b8f1 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -376,4 +376,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy + +## 2023-08-04 00:39:44 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 73d93bb68..ac43724c4 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.68.1 - generationVersion: 2.77.1 + speakeasyVersion: 1.68.3 + generationVersion: 2.81.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.37.0 + version: 1.38.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index f2bac84ed..0d7edde46 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.37.0", + version="1.38.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index bcbe1f1a9..a7987cb88 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.37.0' - gen_version: str = '2.77.1' + sdk_version: str = '1.38.0' + gen_version: str = '2.81.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 6b39ecf74..3456af651 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -678,7 +678,10 @@ def unmarshal_json(data, typ): unmarhsal = make_dataclass('Unmarhsal', [('res', typ)], bases=(DataClassJsonMixin,)) json_dict = json.loads(data) - out = unmarhsal.from_dict({"res": json_dict}) + try: + out = unmarhsal.from_dict({"res": json_dict}) + except AttributeError as attr_err: + raise AttributeError(f'unable to unmarshal {data} as {typ}') from attr_err return out.res From 643c7968bb47c2d9b4130f48347c58705fccdcb3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 8 Aug 2023 00:38:14 +0000 Subject: [PATCH 59/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.69.1 --- internal_auth/RELEASES.md | 8 +++++++- internal_auth/gen.yaml | 12 +++++++++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index b90a7b8f1..167730262 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -382,4 +382,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy + +## 2023-08-08 00:38:01 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index ac43724c4..68947898c 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,14 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.68.3 - generationVersion: 2.81.1 + speakeasyVersion: 1.69.1 + generationVersion: 2.82.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false +features: + python: + core: 2.82.0 + globalSecurity: 2.81.1 + globalServerURLs: 2.81.1 + methodSecurity: 2.81.1 python: - version: 1.38.0 + version: 1.39.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 0d7edde46..657e11bab 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.38.0", + version="1.39.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index a7987cb88..eb7ddf55e 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.38.0' - gen_version: str = '2.81.1' + sdk_version: str = '1.39.0' + gen_version: str = '2.82.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From e2682739db1a08fdd60f1bd0e67deeca463f48da Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 15 Aug 2023 00:31:40 +0000 Subject: [PATCH 60/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.72.0 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 167730262..1ba66e766 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -388,4 +388,12 @@ Based on: ### Changes Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml -- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy + +## 2023-08-15 00:31:26 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.40.0] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 68947898c..cdc1176f7 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.69.1 - generationVersion: 2.82.0 + speakeasyVersion: 1.72.0 + generationVersion: 2.84.1 generation: sdkClassName: epilot singleTagPerOp: false @@ -12,10 +12,10 @@ features: python: core: 2.82.0 globalSecurity: 2.81.1 - globalServerURLs: 2.81.1 + globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.39.0 + version: 1.40.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 657e11bab..031d3613a 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.39.0", + version="1.40.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index eb7ddf55e..d63b36ea1 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.39.0' - gen_version: str = '2.82.0' + sdk_version: str = '1.40.0' + gen_version: str = '2.84.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 2afca0a33504fdc8d1b10d5ef5c6ac7770e6016f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 19 Aug 2023 00:30:03 +0000 Subject: [PATCH 61/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.74.3 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 4 ++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 1ba66e766..67654fc99 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -396,4 +396,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.40.0] internal_auth \ No newline at end of file +- [python v1.40.0] internal_auth + +## 2023-08-19 00:29:49 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.40.1] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index cdc1176f7..934fbe3cc 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.72.0 - generationVersion: 2.84.1 + speakeasyVersion: 1.74.3 + generationVersion: 2.86.6 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.0 + core: 2.82.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.40.0 + version: 1.40.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 031d3613a..702e5ef9b 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.40.0", + version="1.40.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index d63b36ea1..0e9ffab6d 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.40.0' - gen_version: str = '2.84.1' + sdk_version: str = '1.40.1' + gen_version: str = '2.86.6' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 3456af651..ea9792d0d 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -675,11 +675,11 @@ def _serialize_header(explode: bool, obj: any) -> str: def unmarshal_json(data, typ): - unmarhsal = make_dataclass('Unmarhsal', [('res', typ)], + unmarshal = make_dataclass('Unmarshal', [('res', typ)], bases=(DataClassJsonMixin,)) json_dict = json.loads(data) try: - out = unmarhsal.from_dict({"res": json_dict}) + out = unmarshal.from_dict({"res": json_dict}) except AttributeError as attr_err: raise AttributeError(f'unable to unmarshal {data} as {typ}') from attr_err return out.res From f91e75b371427ab6271b62a28fe96486286ea78d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 25 Aug 2023 00:32:17 +0000 Subject: [PATCH 62/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.74.11 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 67654fc99..280114fd0 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -404,4 +404,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.40.1] internal_auth \ No newline at end of file +- [python v1.40.1] internal_auth + +## 2023-08-25 00:32:03 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.40.2] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 934fbe3cc..f9faeec9f 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.74.3 - generationVersion: 2.86.6 + speakeasyVersion: 1.74.11 + generationVersion: 2.87.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.1 + core: 2.82.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.40.1 + version: 1.40.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 702e5ef9b..fc7a17b61 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.40.1", + version="1.40.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 0e9ffab6d..d724b0b28 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.40.1' - gen_version: str = '2.86.6' + sdk_version: str = '1.40.2' + gen_version: str = '2.87.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 8fbde3c4a9b87fa793287aa9308da3a8c2a2c874 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 26 Aug 2023 00:30:41 +0000 Subject: [PATCH 63/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.74.16 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 280114fd0..e3e3c67b2 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -412,4 +412,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.40.2] internal_auth \ No newline at end of file +- [python v1.40.2] internal_auth + +## 2023-08-26 00:30:26 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.0] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index f9faeec9f..5f9cd1c7e 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.74.11 - generationVersion: 2.87.1 + speakeasyVersion: 1.74.16 + generationVersion: 2.88.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.2 + core: 2.83.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.40.2 + version: 1.41.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index fc7a17b61..495221902 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.40.2", + version="1.41.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index d724b0b28..9a983e2b9 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.40.2' - gen_version: str = '2.87.1' + sdk_version: str = '1.41.0' + gen_version: str = '2.88.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From cfd69e5c91220d1657e3ad7727f9596147999e14 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 29 Aug 2023 00:32:42 +0000 Subject: [PATCH 64/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.74.17 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/pylintrc | 2 +- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index e3e3c67b2..1561d45dc 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -420,4 +420,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.0] internal_auth \ No newline at end of file +- [python v1.41.0] internal_auth + +## 2023-08-29 00:32:28 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.1] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 5f9cd1c7e..91c84f8e9 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.74.16 - generationVersion: 2.88.2 + speakeasyVersion: 1.74.17 + generationVersion: 2.88.5 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.83.1 + core: 2.83.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.41.0 + version: 1.41.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc index 1a5e0a624..42bb37874 100755 --- a/internal_auth/pylintrc +++ b/internal_auth/pylintrc @@ -622,7 +622,7 @@ additional-builtins= allow-global-unused-variables=yes # List of names allowed to shadow builtins -allowed-redefined-builtins= +allowed-redefined-builtins=id,object # List of strings which can identify a callback function by name. A callback # name must start or end with one of those strings. diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 495221902..735759057 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.41.0", + version="1.41.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 9a983e2b9..652fc0f2d 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.41.0' - gen_version: str = '2.88.2' + sdk_version: str = '1.41.1' + gen_version: str = '2.88.5' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From b8c0cdd4a74d223843a23e2d3d2d294892b444cd Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 31 Aug 2023 00:32:46 +0000 Subject: [PATCH 65/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.76.0 --- internal_auth/.gitattributes | 2 ++ internal_auth/RELEASES.md | 10 +++++++++- internal_auth/files.gen | 3 ++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 internal_auth/.gitattributes diff --git a/internal_auth/.gitattributes b/internal_auth/.gitattributes new file mode 100755 index 000000000..4d75d5900 --- /dev/null +++ b/internal_auth/.gitattributes @@ -0,0 +1,2 @@ +# This allows generated code to be indexed correctly +*.py linguist-generated=false \ No newline at end of file diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 1561d45dc..9eff482bb 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -428,4 +428,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.1] internal_auth \ No newline at end of file +- [python v1.41.1] internal_auth + +## 2023-08-31 00:32:31 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.76.0 (2.89.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.0] internal_auth \ No newline at end of file diff --git a/internal_auth/files.gen b/internal_auth/files.gen index a13f86cfc..638dfe501 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -26,4 +26,5 @@ docs/models/operations/gettoken200applicationjson.md docs/models/operations/gettokenresponse.md docs/models/operations/gettokenv2security.md docs/models/operations/gettokenv2200applicationjson.md -docs/models/operations/gettokenv2response.md \ No newline at end of file +docs/models/operations/gettokenv2response.md +.gitattributes \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 91c84f8e9..5cefa7027 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.74.17 - generationVersion: 2.88.5 + speakeasyVersion: 1.76.0 + generationVersion: 2.89.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.83.2 + core: 2.84.0 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.41.1 + version: 1.42.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 735759057..f769a0617 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.41.1", + version="1.42.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 652fc0f2d..1f81eaa71 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.41.1' - gen_version: str = '2.88.5' + sdk_version: str = '1.42.0' + gen_version: str = '2.89.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 10a70ff99a4b8a1250e0d2863cdce129e9a52750 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 1 Sep 2023 00:35:18 +0000 Subject: [PATCH 66/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.77.0 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 9eff482bb..c2d2d7a63 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -436,4 +436,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.76.0 (2.89.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.0] internal_auth \ No newline at end of file +- [python v1.42.0] internal_auth + +## 2023-09-01 00:35:00 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.0] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 5cefa7027..774dfffd2 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.76.0 - generationVersion: 2.89.1 + speakeasyVersion: 1.77.0 + generationVersion: 2.91.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.84.0 + core: 2.85.0 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.42.0 + version: 1.43.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index f769a0617..ae4b8743c 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.42.0", + version="1.43.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 1f81eaa71..6f323ffc8 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.42.0' - gen_version: str = '2.89.1' + sdk_version: str = '1.43.0' + gen_version: str = '2.91.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 8079490526e9eabff3d5f7aefc2c3d573e9bb640 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 2 Sep 2023 00:31:08 +0000 Subject: [PATCH 67/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.77.2 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index c2d2d7a63..727f50e0a 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -444,4 +444,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.0] internal_auth \ No newline at end of file +- [python v1.43.0] internal_auth + +## 2023-09-02 00:30:54 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.1] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 774dfffd2..4ccdc3ff4 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.77.0 - generationVersion: 2.91.2 + speakeasyVersion: 1.77.2 + generationVersion: 2.93.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.0 + core: 2.85.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.43.0 + version: 1.43.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index ae4b8743c..0fc7fd2d7 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.43.0", + version="1.43.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 6f323ffc8..78de629e7 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.43.0' - gen_version: str = '2.91.2' + sdk_version: str = '1.43.1' + gen_version: str = '2.93.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 07a41bae2a7e66f6080edab4b221d7a53ef2eff3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 5 Sep 2023 00:32:10 +0000 Subject: [PATCH 68/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.78.3 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 19 +++++++++++-------- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 727f50e0a..f595ef5ef 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -452,4 +452,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.1] internal_auth \ No newline at end of file +- [python v1.43.1] internal_auth + +## 2023-09-05 00:31:55 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.2] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 4ccdc3ff4..e3a1911c2 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.77.2 - generationVersion: 2.93.0 + speakeasyVersion: 1.78.3 + generationVersion: 2.96.3 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.2 + core: 2.85.3 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.43.1 + version: 1.43.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 0fc7fd2d7..0b5d03175 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.43.1", + version="1.43.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 78de629e7..8346c61a8 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.43.1' - gen_version: str = '2.93.0' + sdk_version: str = '1.43.2' + gen_version: str = '2.96.3' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index ea9792d0d..c91b0c049 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -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: @@ -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) @@ -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) @@ -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], @@ -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 = [] @@ -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)] @@ -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 From 681421e7370b7a20068f258e64f9ed9ea9d4bbdc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 12 Sep 2023 00:31:29 +0000 Subject: [PATCH 69/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.82.5 --- internal_auth/RELEASES.md | 10 +++++- internal_auth/docs/sdks/epilot/README.md | 4 +-- internal_auth/gen.yaml | 8 ++--- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 9 ++++-- internal_auth/src/epilot/sdkconfiguration.py | 7 +++-- internal_auth/src/epilot/utils/utils.py | 33 +++++++++++++++++++- 7 files changed, 58 insertions(+), 15 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index f595ef5ef..4b2361bce 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -460,4 +460,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.2] internal_auth \ No newline at end of file +- [python v1.43.2] internal_auth + +## 2023-09-12 00:31:12 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.3] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index 2fd321060..c3212c6be 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -164,9 +164,7 @@ from epilot.models import operations s = epilot.Epilot() req = { - "provident": 'distinctio', - "quibusdam": 'unde', - "nulla": 'corrupti', + "corrupti": 'provident', } res = s.epilot.get_token_v2(req, operations.GetTokenV2Security( diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index e3a1911c2..f8291524d 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.78.3 - generationVersion: 2.96.3 + speakeasyVersion: 1.82.5 + generationVersion: 2.108.3 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.3 + core: 2.85.4 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.43.2 + version: 1.43.3 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 0b5d03175..c58e2f85e 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.43.2", + version="1.43.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index d191faf38..bc5832bc2 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -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. @@ -29,7 +30,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() @@ -40,7 +43,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) diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 8346c61a8..c609f2130 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -3,6 +3,8 @@ import requests from dataclasses import dataclass +from .utils.retries import RetryConfig + SERVERS = [ 'https://internal-auth.sls.epilot.io/v1/internal-auth', @@ -17,8 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.43.2' - gen_version: str = '2.96.3' + sdk_version: str = '1.43.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: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index c91b0c049..05eafba6c 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -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 @@ -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: @@ -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 From 68fc6d66c194355e69b2aee2aea0c8fa81ead462 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 16 Sep 2023 00:32:00 +0000 Subject: [PATCH 70/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.86.0 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 4b2361bce..54156096f 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -468,4 +468,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.3] internal_auth \ No newline at end of file +- [python v1.43.3] internal_auth + +## 2023-09-16 00:31:44 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.4] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index f8291524d..664397849 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.82.5 - generationVersion: 2.108.3 + speakeasyVersion: 1.86.0 + generationVersion: 2.115.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.4 + core: 2.85.5 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.43.3 + version: 1.43.4 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index c58e2f85e..a9392d69b 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.43.3", + version="1.43.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index c609f2130..2030dc79f 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.43.3' - gen_version: str = '2.108.3' + sdk_version: str = '1.43.4' + gen_version: str = '2.115.2' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From c75fffb8a0461a88c2ba436c3ec0e8ba28f3916e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 20 Sep 2023 00:33:09 +0000 Subject: [PATCH 71/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.88.0 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 54156096f..ac5bdf0f0 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -476,4 +476,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.4] internal_auth \ No newline at end of file +- [python v1.43.4] internal_auth + +## 2023-09-20 00:32:53 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.5] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 664397849..4cb79ac13 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.86.0 - generationVersion: 2.115.2 + speakeasyVersion: 1.88.0 + generationVersion: 2.118.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.5 + core: 2.85.6 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 methodSecurity: 2.81.1 python: - version: 1.43.4 + version: 1.43.5 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index a9392d69b..e1c4ea261 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.43.4", + version="1.43.5", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 2030dc79f..bdbad0d32 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.43.4' - gen_version: str = '2.115.2' + sdk_version: str = '1.43.5' + gen_version: str = '2.118.1' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From bd4b4e27f07f35aa6cf633889196b8705864df65 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 22 Sep 2023 00:33:19 +0000 Subject: [PATCH 72/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.89.0 --- internal_auth/README.md | 36 +++++++++++-- internal_auth/RELEASES.md | 10 +++- internal_auth/USAGE.md | 8 ++- .../models/operations/gettokenv2security.md | 8 --- .../security.md} | 2 +- internal_auth/docs/sdks/epilot/README.md | 53 ++++++++++--------- internal_auth/files.gen | 7 +-- internal_auth/gen.yaml | 7 ++- internal_auth/setup.py | 2 +- .../src/epilot/models/operations/__init__.py | 2 +- .../src/epilot/models/operations/gettoken.py | 8 --- .../epilot/models/operations/gettokenv2.py | 8 --- .../src/epilot/models/shared/__init__.py | 5 ++ .../src/epilot/models/shared/security.py | 12 +++++ internal_auth/src/epilot/sdk.py | 19 ++++--- internal_auth/src/epilot/sdkconfiguration.py | 4 +- 16 files changed, 116 insertions(+), 75 deletions(-) delete mode 100755 internal_auth/docs/models/operations/gettokenv2security.md rename internal_auth/docs/models/{operations/gettokensecurity.md => shared/security.md} (94%) create mode 100755 internal_auth/src/epilot/models/shared/__init__.py create mode 100755 internal_auth/src/epilot/models/shared/security.py diff --git a/internal_auth/README.md b/internal_auth/README.md index a2185690f..de0a549d7 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -10,13 +10,15 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=intern ## SDK Example Usage - - ```python import epilot +from epilot.models import shared - -s = epilot.Epilot() +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), +) res = s.get_jwks() @@ -37,4 +39,30 @@ if res.get_jwks_200_application_json_object is not None: * [get_token_v2](docs/sdks/epilot/README.md#get_token_v2) - getTokenV2 + + + + + + + + + + + +# Pagination + +Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the +returned response object will have a `Next` method that can be called to pull down the next group of results. If the +return value of `Next` is `None`, then there are no more pages to be fetched. + +Here's an example of one such pagination call: + + + + + + + + ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ac5bdf0f0..812fe2a9b 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -484,4 +484,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.5] internal_auth \ No newline at end of file +- [python v1.43.5] internal_auth + +## 2023-09-22 00:32:59 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.89.0 (2.125.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.0] internal_auth \ No newline at end of file diff --git a/internal_auth/USAGE.md b/internal_auth/USAGE.md index 573bf4e33..2a292dfcf 100755 --- a/internal_auth/USAGE.md +++ b/internal_auth/USAGE.md @@ -3,9 +3,13 @@ ```python import epilot +from epilot.models import shared - -s = epilot.Epilot() +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), +) res = s.get_jwks() diff --git a/internal_auth/docs/models/operations/gettokenv2security.md b/internal_auth/docs/models/operations/gettokenv2security.md deleted file mode 100755 index b709facd9..000000000 --- a/internal_auth/docs/models/operations/gettokenv2security.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetTokenV2Security - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `sigv4` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokensecurity.md b/internal_auth/docs/models/shared/security.md similarity index 94% rename from internal_auth/docs/models/operations/gettokensecurity.md rename to internal_auth/docs/models/shared/security.md index a3569a5dd..90d24ac59 100755 --- a/internal_auth/docs/models/operations/gettokensecurity.md +++ b/internal_auth/docs/models/shared/security.md @@ -1,4 +1,4 @@ -# GetTokenSecurity +# Security ## Fields diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index c3212c6be..6f8b302a0 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -22,9 +22,13 @@ Get jwks public key set to verify tokens generated by this API ```python import epilot +from epilot.models import shared - -s = epilot.Epilot() +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), +) res = s.epilot.get_jwks() @@ -51,9 +55,13 @@ automate the process of verifying JWT tokens. ```python import epilot +from epilot.models import shared - -s = epilot.Epilot() +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), +) res = s.epilot.get_open_id_configuration() @@ -100,25 +108,21 @@ Example JWT payload: ```python import epilot -from epilot.models import operations +from epilot.models import shared -s = epilot.Epilot() +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), +) -res = s.epilot.get_token(operations.GetTokenSecurity( - sigv4="", -)) +res = s.epilot.get_token() if res.get_token_200_application_json_object is not None: # handle response ``` -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `security` | [operations.GetTokenSecurity](../../models/operations/gettokensecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response @@ -159,17 +163,19 @@ Example JWT payload: ```python import epilot -from epilot.models import operations +from epilot.models import shared -s = epilot.Epilot() +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), +) req = { "corrupti": 'provident', } -res = s.epilot.get_token_v2(req, operations.GetTokenV2Security( - sigv4="", -)) +res = s.epilot.get_token_v2(req) if res.get_token_v2_200_application_json_object is not None: # handle response @@ -177,10 +183,9 @@ if res.get_token_v2_200_application_json_object is not None: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `request` | [dict[str, Any]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | -| `security` | [operations.GetTokenV2Security](../../models/operations/gettokenv2security.md) | :heavy_check_mark: | The security requirements to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [dict[str, Any]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | ### Response diff --git a/internal_auth/files.gen b/internal_auth/files.gen index 638dfe501..1959e1c67 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -13,18 +13,19 @@ src/epilot/models/operations/getopenidconfiguration.py src/epilot/models/operations/gettoken.py src/epilot/models/operations/gettokenv2.py src/epilot/models/operations/__init__.py +src/epilot/models/shared/security.py +src/epilot/models/shared/__init__.py src/epilot/models/errors/__init__.py -docs/sdks/epilot/README.md USAGE.md docs/models/operations/getjwks200applicationjsonkeys.md docs/models/operations/getjwks200applicationjson.md docs/models/operations/getjwksresponse.md docs/models/operations/getopenidconfiguration200applicationjson.md docs/models/operations/getopenidconfigurationresponse.md -docs/models/operations/gettokensecurity.md docs/models/operations/gettoken200applicationjson.md docs/models/operations/gettokenresponse.md -docs/models/operations/gettokenv2security.md docs/models/operations/gettokenv2200applicationjson.md docs/models/operations/gettokenv2response.md +docs/models/shared/security.md +docs/sdks/epilot/README.md .gitattributes \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 4cb79ac13..76728ebbc 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.88.0 - generationVersion: 2.118.1 + speakeasyVersion: 1.89.0 + generationVersion: 2.125.1 generation: sdkClassName: epilot singleTagPerOp: false @@ -13,9 +13,8 @@ features: core: 2.85.6 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 - methodSecurity: 2.81.1 python: - version: 1.43.5 + version: 1.44.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index e1c4ea261..ffc220ba0 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.43.5", + version="1.44.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/__init__.py b/internal_auth/src/epilot/models/operations/__init__.py index 7a5793027..4445ca0e9 100755 --- a/internal_auth/src/epilot/models/operations/__init__.py +++ b/internal_auth/src/epilot/models/operations/__init__.py @@ -5,4 +5,4 @@ from .gettoken import * from .gettokenv2 import * -__all__ = ["GetJwks200ApplicationJSON","GetJwks200ApplicationJSONKeys","GetJwksResponse","GetOpenIDConfiguration200ApplicationJSON","GetOpenIDConfigurationResponse","GetToken200ApplicationJSON","GetTokenResponse","GetTokenSecurity","GetTokenV2200ApplicationJSON","GetTokenV2Response","GetTokenV2Security"] +__all__ = ["GetJwks200ApplicationJSON","GetJwks200ApplicationJSONKeys","GetJwksResponse","GetOpenIDConfiguration200ApplicationJSON","GetOpenIDConfigurationResponse","GetToken200ApplicationJSON","GetTokenResponse","GetTokenV2200ApplicationJSON","GetTokenV2Response"] diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 21744ded5..7c33bdbcf 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -8,14 +8,6 @@ from typing import Optional - -@dataclasses.dataclass -class GetTokenSecurity: - sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) - - - - @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py index 5160d5ddc..45fc473fc 100755 --- a/internal_auth/src/epilot/models/operations/gettokenv2.py +++ b/internal_auth/src/epilot/models/operations/gettokenv2.py @@ -8,14 +8,6 @@ from typing import Optional - -@dataclasses.dataclass -class GetTokenV2Security: - sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) - - - - @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass diff --git a/internal_auth/src/epilot/models/shared/__init__.py b/internal_auth/src/epilot/models/shared/__init__.py new file mode 100755 index 000000000..4e48d0727 --- /dev/null +++ b/internal_auth/src/epilot/models/shared/__init__.py @@ -0,0 +1,5 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from .security import * + +__all__ = ["Security"] diff --git a/internal_auth/src/epilot/models/shared/security.py b/internal_auth/src/epilot/models/shared/security.py new file mode 100755 index 000000000..53f3f6a34 --- /dev/null +++ b/internal_auth/src/epilot/models/shared/security.py @@ -0,0 +1,12 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses + + + +@dataclasses.dataclass +class Security: + sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) + + diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index bc5832bc2..c3e94cf1a 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -3,7 +3,7 @@ import requests as requests_http from .sdkconfiguration import SDKConfiguration from epilot import utils -from epilot.models import errors, operations +from epilot.models import errors, operations, shared from typing import Any, Optional class Epilot: @@ -15,6 +15,7 @@ class Epilot: sdk_configuration: SDKConfiguration def __init__(self, + security: shared.Security = None, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -23,6 +24,8 @@ def __init__(self, ) -> None: """Instantiates the SDK configuring it with the provided parameters. + :param security: The security details required for authentication + :type security: shared.Security :param server_idx: The index of the server to use for all operations :type server_idx: int :param server_url: The server URL to use for all operations @@ -37,7 +40,7 @@ def __init__(self, if client is None: client = requests_http.Session() - security_client = client + security_client = utils.configure_security_client(client, security) if server_url is not None: if url_params is not None: @@ -60,7 +63,7 @@ def get_jwks(self) -> operations.GetJwksResponse: headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' - client = self.sdk_configuration.client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -91,7 +94,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' - client = self.sdk_configuration.client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -108,7 +111,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse return res - def get_token(self, security: operations.GetTokenSecurity) -> operations.GetTokenResponse: + def get_token(self) -> operations.GetTokenResponse: r"""getToken Generates token for internal API access @@ -142,7 +145,7 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' - client = utils.configure_security_client(self.sdk_configuration.client, security) + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -159,7 +162,7 @@ def get_token(self, security: operations.GetTokenSecurity) -> operations.GetToke return res - def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2Security) -> operations.GetTokenV2Response: + def get_token_v2(self, request: dict[str, Any]) -> operations.GetTokenV2Response: r"""getTokenV2 Generates token for internal API access with internal roles @@ -198,7 +201,7 @@ def get_token_v2(self, request: dict[str, Any], security: operations.GetTokenV2S headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' - client = utils.configure_security_client(self.sdk_configuration.client, security) + client = self.sdk_configuration.security_client http_res = client.request('POST', url, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index bdbad0d32..bd8479a8f 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.43.5' - gen_version: str = '2.118.1' + sdk_version: str = '1.44.0' + gen_version: str = '2.125.1' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 9d77a3f577f87d0e84b37b7b85783e62c7f607fc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 26 Sep 2023 00:34:19 +0000 Subject: [PATCH 73/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.0 --- internal_auth/README.md | 4 ---- internal_auth/RELEASES.md | 10 +++++++++- .../docs/models/operations/getjwksresponse.md | 6 +++--- .../operations/getopenidconfigurationresponse.md | 6 +++--- .../docs/models/operations/gettokenresponse.md | 6 +++--- .../docs/models/operations/gettokenv2response.md | 6 +++--- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/models/operations/getjwks.py | 3 +++ .../epilot/models/operations/getopenidconfiguration.py | 3 +++ internal_auth/src/epilot/models/operations/gettoken.py | 3 +++ .../src/epilot/models/operations/gettokenv2.py | 3 +++ internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- 13 files changed, 40 insertions(+), 24 deletions(-) diff --git a/internal_auth/README.md b/internal_auth/README.md index de0a549d7..d84f6158e 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -43,8 +43,6 @@ if res.get_jwks_200_application_json_object is not None: - - @@ -57,8 +55,6 @@ returned response object will have a `Next` method that can be called to pull do return value of `Next` is `None`, then there are no more pages to be fetched. Here's an example of one such pagination call: - - diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 812fe2a9b..a9beee5e2 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -492,4 +492,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.89.0 (2.125.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.0] internal_auth \ No newline at end of file +- [python v1.44.0] internal_auth + +## 2023-09-26 00:34:00 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.0] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwksresponse.md b/internal_auth/docs/models/operations/getjwksresponse.md index 6c488a39e..577380e2b 100755 --- a/internal_auth/docs/models/operations/getjwksresponse.md +++ b/internal_auth/docs/models/operations/getjwksresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `get_jwks_200_application_json_object` | [Optional[GetJwks200ApplicationJSON]](../../models/operations/getjwks200applicationjson.md) | :heavy_minus_sign: | Set of jwks | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md index d90fe215b..dbf28ce87 100755 --- a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md +++ b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `get_open_id_configuration_200_application_json_object` | [Optional[GetOpenIDConfiguration200ApplicationJSON]](../../models/operations/getopenidconfiguration200applicationjson.md) | :heavy_minus_sign: | OpenID Configuration | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenresponse.md b/internal_auth/docs/models/operations/gettokenresponse.md index 59331bb8c..f6aaea6bf 100755 --- a/internal_auth/docs/models/operations/gettokenresponse.md +++ b/internal_auth/docs/models/operations/gettokenresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `get_token_200_application_json_object` | [Optional[GetToken200ApplicationJSON]](../../models/operations/gettoken200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenv2response.md b/internal_auth/docs/models/operations/gettokenv2response.md index 135e5a287..fd54bb843 100755 --- a/internal_auth/docs/models/operations/gettokenv2response.md +++ b/internal_auth/docs/models/operations/gettokenv2response.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | | `get_token_v2_200_application_json_object` | [Optional[GetTokenV2200ApplicationJSON]](../../models/operations/gettokenv2200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 76728ebbc..b253dc4c9 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.89.0 - generationVersion: 2.125.1 + speakeasyVersion: 1.91.0 + generationVersion: 2.129.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.6 + core: 2.86.0 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.0 + version: 1.45.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index ffc220ba0..894683108 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.44.0", + version="1.45.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py index d18508e07..fd7763b87 100755 --- a/internal_auth/src/epilot/models/operations/getjwks.py +++ b/internal_auth/src/epilot/models/operations/getjwks.py @@ -36,9 +36,12 @@ class GetJwks200ApplicationJSON: @dataclasses.dataclass class GetJwksResponse: content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" get_jwks_200_application_json_object: Optional[GetJwks200ApplicationJSON] = dataclasses.field(default=None) r"""Set of jwks""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py index b091ec318..75dc9cece 100755 --- a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py +++ b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py @@ -23,9 +23,12 @@ class GetOpenIDConfiguration200ApplicationJSON: @dataclasses.dataclass class GetOpenIDConfigurationResponse: content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" get_open_id_configuration_200_application_json_object: Optional[GetOpenIDConfiguration200ApplicationJSON] = dataclasses.field(default=None) r"""OpenID Configuration""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 7c33bdbcf..7659cab00 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -23,9 +23,12 @@ class GetToken200ApplicationJSON: @dataclasses.dataclass class GetTokenResponse: content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" get_token_200_application_json_object: Optional[GetToken200ApplicationJSON] = dataclasses.field(default=None) r"""JWT Token""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py index 45fc473fc..4027e5a0f 100755 --- a/internal_auth/src/epilot/models/operations/gettokenv2.py +++ b/internal_auth/src/epilot/models/operations/gettokenv2.py @@ -23,9 +23,12 @@ class GetTokenV2200ApplicationJSON: @dataclasses.dataclass class GetTokenV2Response: content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" get_token_v2_200_application_json_object: Optional[GetTokenV2200ApplicationJSON] = dataclasses.field(default=None) r"""JWT Token""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index bd8479a8f..bb380d845 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.44.0' - gen_version: str = '2.125.1' + sdk_version: str = '1.45.0' + gen_version: str = '2.129.1' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From c30ef2730917c35ba2c4b242031be78ccfdefdb2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Sep 2023 00:33:49 +0000 Subject: [PATCH 74/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.2 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/docs/sdks/epilot/README.md | 1 + internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 4 ++-- internal_auth/src/epilot/sdkconfiguration.py | 4 ++-- internal_auth/src/epilot/utils/utils.py | 8 ++++++++ 6 files changed, 26 insertions(+), 9 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index a9beee5e2..b5c0ace6d 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -500,4 +500,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.0] internal_auth \ No newline at end of file +- [python v1.45.0] internal_auth + +## 2023-09-27 00:33:34 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.1] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index 6f8b302a0..fa2f54b8f 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -1,5 +1,6 @@ # Epilot SDK + ## Overview Internal Auth API: Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index b253dc4c9..e06160e8b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.91.0 - generationVersion: 2.129.1 + speakeasyVersion: 1.91.2 + generationVersion: 2.131.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.86.0 + core: 2.86.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.45.0 + version: 1.45.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 894683108..6f0d87719 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.45.0", + version="1.45.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, @@ -19,7 +19,7 @@ install_requires=[ "certifi>=2022.12.7", "charset-normalizer>=2.1.1", - "dataclasses-json>=0.5.12", + "dataclasses-json>=0.6.1", "idna>=3.3", "jsonpath-python>=1.0.6 ", "marshmallow>=3.17.1", diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index bb380d845..d357e444e 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.45.0' - gen_version: str = '2.129.1' + sdk_version: str = '1.45.1' + gen_version: str = '2.131.1' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 05eafba6c..b0aeb54de 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -1,5 +1,6 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +import sys import base64 import json import re @@ -796,3 +797,10 @@ def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: d value = global_value return value + + +def decoder_with_discriminator(field_name): + def decode_fx(obj): + kls = getattr(sys.modules['sdk.models.shared'], obj[field_name]) + return unmarshal_json(json.dumps(obj), kls) + return decode_fx From 0498da1a8dcb48b0c9115262a17565eb39e207c7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 29 Sep 2023 00:33:42 +0000 Subject: [PATCH 75/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.3 --- internal_auth/RELEASES.md | 10 ++- .../operations/getjwks200applicationjson.md | 6 +- .../docs/models/operations/getjwksresponse.md | 12 +-- .../getopenidconfigurationresponse.md | 12 +-- .../models/operations/gettokenresponse.md | 12 +-- .../models/operations/gettokenv2response.md | 12 +-- internal_auth/docs/models/shared/security.md | 2 +- internal_auth/docs/sdks/epilot/README.md | 2 +- internal_auth/gen.yaml | 8 +- internal_auth/pylintrc | 4 +- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 10 +-- internal_auth/src/epilot/sdkconfiguration.py | 5 +- internal_auth/src/epilot/utils/utils.py | 79 ++++++++++++++++--- 14 files changed, 122 insertions(+), 54 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index b5c0ace6d..64fc3da46 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -508,4 +508,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.1] internal_auth \ No newline at end of file +- [python v1.45.1] internal_auth + +## 2023-09-29 00:33:24 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.46.0] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwks200applicationjson.md b/internal_auth/docs/models/operations/getjwks200applicationjson.md index 7f15b4c66..bba43e920 100755 --- a/internal_auth/docs/models/operations/getjwks200applicationjson.md +++ b/internal_auth/docs/models/operations/getjwks200applicationjson.md @@ -5,6 +5,6 @@ Set of jwks ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `keys` | list[[GetJwks200ApplicationJSONKeys](../../models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `keys` | list[[operations.GetJwks200ApplicationJSONKeys](undefined/models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwksresponse.md b/internal_auth/docs/models/operations/getjwksresponse.md index 577380e2b..c49b2bbb1 100755 --- a/internal_auth/docs/models/operations/getjwksresponse.md +++ b/internal_auth/docs/models/operations/getjwksresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_jwks_200_application_json_object` | [Optional[GetJwks200ApplicationJSON]](../../models/operations/getjwks200applicationjson.md) | :heavy_minus_sign: | Set of jwks | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_jwks_200_application_json_object` | [Optional[operations.GetJwks200ApplicationJSON]](undefined/models/operations/getjwks200applicationjson.md) | :heavy_minus_sign: | Set of jwks | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md index dbf28ce87..10ce9bd4a 100755 --- a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md +++ b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_open_id_configuration_200_application_json_object` | [Optional[GetOpenIDConfiguration200ApplicationJSON]](../../models/operations/getopenidconfiguration200applicationjson.md) | :heavy_minus_sign: | OpenID Configuration | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_open_id_configuration_200_application_json_object` | [Optional[operations.GetOpenIDConfiguration200ApplicationJSON]](undefined/models/operations/getopenidconfiguration200applicationjson.md) | :heavy_minus_sign: | OpenID Configuration | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenresponse.md b/internal_auth/docs/models/operations/gettokenresponse.md index f6aaea6bf..71668d7ae 100755 --- a/internal_auth/docs/models/operations/gettokenresponse.md +++ b/internal_auth/docs/models/operations/gettokenresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_token_200_application_json_object` | [Optional[GetToken200ApplicationJSON]](../../models/operations/gettoken200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_token_200_application_json_object` | [Optional[operations.GetToken200ApplicationJSON]](undefined/models/operations/gettoken200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenv2response.md b/internal_auth/docs/models/operations/gettokenv2response.md index fd54bb843..705a66354 100755 --- a/internal_auth/docs/models/operations/gettokenv2response.md +++ b/internal_auth/docs/models/operations/gettokenv2response.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_token_v2_200_application_json_object` | [Optional[GetTokenV2200ApplicationJSON]](../../models/operations/gettokenv2200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_token_v2_200_application_json_object` | [Optional[operations.GetTokenV2200ApplicationJSON]](undefined/models/operations/gettokenv2200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/shared/security.md b/internal_auth/docs/models/shared/security.md index 90d24ac59..97a147da2 100755 --- a/internal_auth/docs/models/shared/security.md +++ b/internal_auth/docs/models/shared/security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `sigv4` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `sigv4` | *Optional[str]* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index fa2f54b8f..439d88d69 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -173,7 +173,7 @@ s = epilot.Epilot( ) req = { - "corrupti": 'provident', + "sapiente": 'Avon', } res = s.epilot.get_token_v2(req) diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index e06160e8b..790b90078 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.91.2 - generationVersion: 2.131.1 + speakeasyVersion: 1.91.3 + generationVersion: 2.139.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.86.1 + core: 2.87.0 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.45.1 + version: 1.46.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc index 42bb37874..16fc037a2 100755 --- a/internal_auth/pylintrc +++ b/internal_auth/pylintrc @@ -116,12 +116,12 @@ argument-naming-style=snake_case #argument-rgx= # Naming style matching correct attribute names. -attr-naming-style=snake_case +#attr-naming-style=snake_case # Regular expression matching correct attribute names. Overrides attr-naming- # style. If left empty, attribute names will be checked with the set naming # style. -#attr-rgx= +attr-rgx=[^\W\d][^\W]*|__.*__$ # Bad variable names which should always be refused, separated by a comma. bad-names= diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 6f0d87719..94f51b8f6 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.45.1", + version="1.46.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index c3e94cf1a..68f98e73c 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -61,7 +61,7 @@ def get_jwks(self) -> operations.GetJwksResponse: url = base_url + '/.well-known/jwks.json' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -92,7 +92,7 @@ def get_open_id_configuration(self) -> operations.GetOpenIDConfigurationResponse url = base_url + '/.well-known/openid-configuration' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -143,7 +143,7 @@ def get_token(self) -> operations.GetTokenResponse: url = base_url + '/auth' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -195,11 +195,11 @@ def get_token_v2(self, request: dict[str, Any]) -> operations.GetTokenV2Response url = base_url + '/auth' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "request", False, True, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index d357e444e..d250923fc 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,8 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.45.1' - gen_version: str = '2.131.1' + sdk_version: str = '1.46.0' + gen_version: str = '2.139.1' + user_agent: str = 'speakeasy-sdk/python 1.46.0 2.139.1 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index b0aeb54de..4388f3b74 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -1,9 +1,9 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import sys import base64 import json import re +import sys from dataclasses import Field, dataclass, fields, is_dataclass, make_dataclass from datetime import date, datetime from decimal import Decimal @@ -393,17 +393,22 @@ 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[ +def serialize_request_body(request: dataclass, request_field_name: str, nullable: bool, optional: bool, serialization_method: str, encoder=None) -> Tuple[ str, any, any]: if request is None: - return None, None, None + if not nullable and optional: + 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], - request) + request, encoder) request_val = getattr(request, request_field_name) + if request_val is None: + if not nullable and optional: + return None, None, None + request_fields: Tuple[Field, ...] = fields(request) request_metadata = None @@ -419,9 +424,9 @@ def serialize_request_body(request: dataclass, request_field_name: str, serializ request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: - return media_type, marshal_json(request), None + return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: return serialize_multipart_form(media_type, request) if re.match(r'application\/x-www-form-urlencoded.*', media_type) is not None: @@ -678,7 +683,7 @@ def _serialize_header(explode: bool, obj: any) -> str: return '' -def unmarshal_json(data, typ): +def unmarshal_json(data, typ, decoder=None): unmarshal = make_dataclass('Unmarshal', [('res', typ)], bases=(DataClassJsonMixin,)) json_dict = json.loads(data) @@ -687,15 +692,19 @@ def unmarshal_json(data, typ): except AttributeError as attr_err: raise AttributeError( f'unable to unmarshal {data} as {typ}') from attr_err - return out.res + + return out.res if decoder is None else decoder(out.res) -def marshal_json(val): +def marshal_json(val, encoder=None): marshal = make_dataclass('Marshal', [('res', type(val))], bases=(DataClassJsonMixin,)) marshaller = marshal(res=val) json_dict = marshaller.to_dict() - return json.dumps(json_dict["res"]) + + val = json_dict["res"] if encoder is None else encoder(json_dict["res"]) + + return json.dumps(val) def match_content_type(content_type: str, pattern: str) -> boolean: @@ -769,6 +778,56 @@ def decimaldecoder(val): return Decimal(str(val)) +def map_encoder(optional: bool, value_encoder: Callable): + def map_encode(val: dict): + if optional and val is None: + return None + + encoded = {} + for key, value in val.items(): + encoded[key] = value_encoder(value) + + return encoded + + return map_encode + + +def map_decoder(value_decoder: Callable): + def map_decode(val: dict): + decoded = {} + for key, value in val.items(): + decoded[key] = value_decoder(value) + + return decoded + + return map_decode + + +def list_encoder(optional: bool, value_encoder: Callable): + def list_encode(val: list): + if optional and val is None: + return None + + encoded = [] + for value in val: + encoded.append(value_encoder(value)) + + return encoded + + return list_encode + + +def list_decoder(value_decoder: Callable): + def list_decode(val: list): + decoded = [] + for value in val: + decoded.append(value_decoder(value)) + + return decoded + + return list_decode + + def get_field_name(name): def override(_, _field_name=name): return _field_name From cc8f090c411b3e1d9effb8ef11b14fff6f655c6c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 1 Oct 2023 00:38:26 +0000 Subject: [PATCH 76/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.92.2 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 64fc3da46..4d589f5e9 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -516,4 +516,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.46.0] internal_auth \ No newline at end of file +- [python v1.46.0] internal_auth + +## 2023-10-01 00:38:11 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.0] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 790b90078..554cf9cdb 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.91.3 - generationVersion: 2.139.1 + speakeasyVersion: 1.92.2 + generationVersion: 2.142.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.87.0 + core: 2.88.0 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.46.0 + version: 1.47.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 94f51b8f6..af28afa13 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.46.0", + version="1.47.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index d250923fc..66a01034f 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.46.0' - gen_version: str = '2.139.1' - user_agent: str = 'speakeasy-sdk/python 1.46.0 2.139.1 0.0.1 epilot-internal-auth' + sdk_version: str = '1.47.0' + gen_version: str = '2.142.2' + user_agent: str = 'speakeasy-sdk/python 1.47.0 2.142.2 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 48955ae5d26e9c5aad4b9d841346215d981d89c6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 2 Oct 2023 00:34:03 +0000 Subject: [PATCH 77/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.92.3 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 4d589f5e9..6106f0fd0 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -524,4 +524,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.0] internal_auth \ No newline at end of file +- [python v1.47.0] internal_auth + +## 2023-10-02 00:33:48 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.1] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 554cf9cdb..302ba1a17 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.92.2 - generationVersion: 2.142.2 + speakeasyVersion: 1.92.3 + generationVersion: 2.143.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.0 + core: 2.88.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.47.0 + version: 1.47.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index af28afa13..e3d4a519f 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.47.0", + version="1.47.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 66a01034f..b8de0daac 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.47.0' - gen_version: str = '2.142.2' - user_agent: str = 'speakeasy-sdk/python 1.47.0 2.142.2 0.0.1 epilot-internal-auth' + sdk_version: str = '1.47.1' + gen_version: str = '2.143.2' + user_agent: str = 'speakeasy-sdk/python 1.47.1 2.143.2 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 9d92922f77ae071eb6e8cdfb8aa3f823450e0d90 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 5 Oct 2023 00:33:51 +0000 Subject: [PATCH 78/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.94.0 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 6106f0fd0..ccdbd3282 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -532,4 +532,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.1] internal_auth \ No newline at end of file +- [python v1.47.1] internal_auth + +## 2023-10-05 00:33:30 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.2] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 302ba1a17..887523c6b 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.92.3 - generationVersion: 2.143.2 + speakeasyVersion: 1.94.0 + generationVersion: 2.147.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.1 + core: 2.88.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.47.1 + version: 1.47.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/internal_auth/setup.py b/internal_auth/setup.py index e3d4a519f..4de349adf 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.47.1", + version="1.47.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index b8de0daac..0b47c2ed0 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.47.1' - gen_version: str = '2.143.2' - user_agent: str = 'speakeasy-sdk/python 1.47.1 2.143.2 0.0.1 epilot-internal-auth' + sdk_version: str = '1.47.2' + gen_version: str = '2.147.0' + user_agent: str = 'speakeasy-sdk/python 1.47.2 2.147.0 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 1d85118a37ae7e4875eedbc7d059e484cd936b06 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 7 Oct 2023 00:32:57 +0000 Subject: [PATCH 79/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.96.1 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/docs/sdks/epilot/README.md | 2 +- internal_auth/gen.yaml | 11 ++++++----- internal_auth/setup.py | 2 +- internal_auth/src/epilot/models/__init__.py | 1 + internal_auth/src/epilot/sdk.py | 8 +++++--- internal_auth/src/epilot/sdkconfiguration.py | 6 +++--- 7 files changed, 26 insertions(+), 14 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index ccdbd3282..b726028e3 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -540,4 +540,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.2] internal_auth \ No newline at end of file +- [python v1.47.2] internal_auth + +## 2023-10-07 00:32:42 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.0] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index 439d88d69..cad495dcd 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -173,7 +173,7 @@ s = epilot.Epilot( ) req = { - "sapiente": 'Avon', + "across": 'black', } res = s.epilot.get_token_v2(req) diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 887523c6b..48ea8eab5 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,20 +2,21 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.94.0 - generationVersion: 2.147.0 + speakeasyVersion: 1.96.1 + generationVersion: 2.150.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.2 - globalSecurity: 2.81.1 + core: 2.88.4 + globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 1.47.2 + version: 1.48.0 author: epilot description: Python Client SDK for Epilot + flattenGlobalSecurity: false maxMethodParams: 0 packageName: epilot-internal-auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 4de349adf..2e4c3931c 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.47.2", + version="1.48.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/models/__init__.py b/internal_auth/src/epilot/models/__init__.py index 889f8adcf..36628d6cc 100755 --- a/internal_auth/src/epilot/models/__init__.py +++ b/internal_auth/src/epilot/models/__init__.py @@ -1,2 +1,3 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +# __init__.py diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 68f98e73c..24300a91c 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -15,7 +15,7 @@ class Epilot: sdk_configuration: SDKConfiguration def __init__(self, - security: shared.Security = None, + sigv4: str, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -24,8 +24,8 @@ def __init__(self, ) -> None: """Instantiates the SDK configuring it with the provided parameters. - :param security: The security details required for authentication - :type security: shared.Security + :param sigv4: The sigv4 required for authentication + :type sigv4: str :param server_idx: The index of the server to use for all operations :type server_idx: int :param server_url: The server URL to use for all operations @@ -40,8 +40,10 @@ def __init__(self, if client is None: client = requests_http.Session() + security_client = utils.configure_security_client(client, security) + if server_url is not None: if url_params is not None: server_url = utils.template_url(server_url, url_params) diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 0b47c2ed0..7441a7bd2 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.47.2' - gen_version: str = '2.147.0' - user_agent: str = 'speakeasy-sdk/python 1.47.2 2.147.0 0.0.1 epilot-internal-auth' + sdk_version: str = '1.48.0' + gen_version: str = '2.150.0' + user_agent: str = 'speakeasy-sdk/python 1.48.0 2.150.0 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From b1627115f94b6dceae7af339db677844e9b55e89 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 13 Oct 2023 00:34:38 +0000 Subject: [PATCH 80/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.99.0 --- internal_auth/README.md | 3 ++- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/USAGE.md | 3 ++- .../models/operations/getjwks200applicationjson.md | 6 +++--- .../docs/models/operations/getjwksresponse.md | 12 ++++++------ .../operations/getopenidconfigurationresponse.md | 12 ++++++------ .../docs/models/operations/gettokenresponse.md | 12 ++++++------ .../docs/models/operations/gettokenv2response.md | 12 ++++++------ internal_auth/docs/models/shared/security.md | 2 +- internal_auth/docs/sdks/epilot/README.md | 4 ++++ internal_auth/gen.yaml | 8 ++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdk.py | 6 +++--- internal_auth/src/epilot/sdkconfiguration.py | 6 +++--- 14 files changed, 56 insertions(+), 42 deletions(-) diff --git a/internal_auth/README.md b/internal_auth/README.md index d84f6158e..52976371f 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -21,10 +21,11 @@ s = epilot.Epilot( ) -res = s.get_jwks() +res = s.epilot.get_jwks() if res.get_jwks_200_application_json_object is not None: # handle response + pass ``` diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index b726028e3..5038b9753 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -548,4 +548,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.0] internal_auth \ No newline at end of file +- [python v1.48.0] internal_auth + +## 2023-10-13 00:34:23 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.99.0 (2.154.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.1] internal_auth \ No newline at end of file diff --git a/internal_auth/USAGE.md b/internal_auth/USAGE.md index 2a292dfcf..d7d392686 100755 --- a/internal_auth/USAGE.md +++ b/internal_auth/USAGE.md @@ -12,9 +12,10 @@ s = epilot.Epilot( ) -res = s.get_jwks() +res = s.epilot.get_jwks() if res.get_jwks_200_application_json_object is not None: # handle response + pass ``` \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwks200applicationjson.md b/internal_auth/docs/models/operations/getjwks200applicationjson.md index bba43e920..7f15b4c66 100755 --- a/internal_auth/docs/models/operations/getjwks200applicationjson.md +++ b/internal_auth/docs/models/operations/getjwks200applicationjson.md @@ -5,6 +5,6 @@ Set of jwks ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `keys` | list[[operations.GetJwks200ApplicationJSONKeys](undefined/models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `keys` | list[[GetJwks200ApplicationJSONKeys](../../models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwksresponse.md b/internal_auth/docs/models/operations/getjwksresponse.md index c49b2bbb1..577380e2b 100755 --- a/internal_auth/docs/models/operations/getjwksresponse.md +++ b/internal_auth/docs/models/operations/getjwksresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_jwks_200_application_json_object` | [Optional[operations.GetJwks200ApplicationJSON]](undefined/models/operations/getjwks200applicationjson.md) | :heavy_minus_sign: | Set of jwks | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_jwks_200_application_json_object` | [Optional[GetJwks200ApplicationJSON]](../../models/operations/getjwks200applicationjson.md) | :heavy_minus_sign: | Set of jwks | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md index 10ce9bd4a..dbf28ce87 100755 --- a/internal_auth/docs/models/operations/getopenidconfigurationresponse.md +++ b/internal_auth/docs/models/operations/getopenidconfigurationresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_open_id_configuration_200_application_json_object` | [Optional[operations.GetOpenIDConfiguration200ApplicationJSON]](undefined/models/operations/getopenidconfiguration200applicationjson.md) | :heavy_minus_sign: | OpenID Configuration | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_open_id_configuration_200_application_json_object` | [Optional[GetOpenIDConfiguration200ApplicationJSON]](../../models/operations/getopenidconfiguration200applicationjson.md) | :heavy_minus_sign: | OpenID Configuration | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenresponse.md b/internal_auth/docs/models/operations/gettokenresponse.md index 71668d7ae..f6aaea6bf 100755 --- a/internal_auth/docs/models/operations/gettokenresponse.md +++ b/internal_auth/docs/models/operations/gettokenresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_token_200_application_json_object` | [Optional[operations.GetToken200ApplicationJSON]](undefined/models/operations/gettoken200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_token_200_application_json_object` | [Optional[GetToken200ApplicationJSON]](../../models/operations/gettoken200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/operations/gettokenv2response.md b/internal_auth/docs/models/operations/gettokenv2response.md index 705a66354..fd54bb843 100755 --- a/internal_auth/docs/models/operations/gettokenv2response.md +++ b/internal_auth/docs/models/operations/gettokenv2response.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | -| `get_token_v2_200_application_json_object` | [Optional[operations.GetTokenV2200ApplicationJSON]](undefined/models/operations/gettokenv2200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | +| `get_token_v2_200_application_json_object` | [Optional[GetTokenV2200ApplicationJSON]](../../models/operations/gettokenv2200applicationjson.md) | :heavy_minus_sign: | JWT Token | \ No newline at end of file diff --git a/internal_auth/docs/models/shared/security.md b/internal_auth/docs/models/shared/security.md index 97a147da2..90d24ac59 100755 --- a/internal_auth/docs/models/shared/security.md +++ b/internal_auth/docs/models/shared/security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `sigv4` | *Optional[str]* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `sigv4` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index cad495dcd..3e69e5a3e 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -36,6 +36,7 @@ res = s.epilot.get_jwks() if res.get_jwks_200_application_json_object is not None: # handle response + pass ``` @@ -69,6 +70,7 @@ res = s.epilot.get_open_id_configuration() if res.get_open_id_configuration_200_application_json_object is not None: # handle response + pass ``` @@ -122,6 +124,7 @@ res = s.epilot.get_token() if res.get_token_200_application_json_object is not None: # handle response + pass ``` @@ -180,6 +183,7 @@ res = s.epilot.get_token_v2(req) if res.get_token_v2_200_application_json_object is not None: # handle response + pass ``` ### Parameters diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 48ea8eab5..f1ce7b4cf 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.96.1 - generationVersion: 2.150.0 + speakeasyVersion: 1.99.0 + generationVersion: 2.154.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.4 + core: 2.88.6 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 1.48.0 + version: 1.48.1 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 2e4c3931c..9e57c5aa4 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="1.48.0", + version="1.48.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index 24300a91c..c8d20c730 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -15,7 +15,7 @@ class Epilot: sdk_configuration: SDKConfiguration def __init__(self, - sigv4: str, + security: shared.Security = None, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -24,8 +24,8 @@ def __init__(self, ) -> None: """Instantiates the SDK configuring it with the provided parameters. - :param sigv4: The sigv4 required for authentication - :type sigv4: str + :param security: The security details required for authentication + :type security: shared.Security :param server_idx: The index of the server to use for all operations :type server_idx: int :param server_url: The server URL to use for all operations diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 7441a7bd2..dccf6edfc 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.48.0' - gen_version: str = '2.150.0' - user_agent: str = 'speakeasy-sdk/python 1.48.0 2.150.0 0.0.1 epilot-internal-auth' + sdk_version: str = '1.48.1' + gen_version: str = '2.154.1' + user_agent: str = 'speakeasy-sdk/python 1.48.1 2.154.1 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 835910069cb9cd05df09b7bd9d256c436751d379 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Oct 2023 00:33:48 +0000 Subject: [PATCH 81/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.101.0 --- internal_auth/RELEASES.md | 10 +- .../operations/getjwks200applicationjson.md | 2 +- .../docs/models/shared/authrequest.md | 10 ++ internal_auth/docs/sdks/epilot/README.md | 28 ++++- internal_auth/files.gen | 2 + internal_auth/gen.yaml | 9 +- internal_auth/pylintrc | 2 +- internal_auth/setup.py | 26 ++-- .../src/epilot/models/operations/getjwks.py | 7 +- .../operations/getopenidconfiguration.py | 2 - .../src/epilot/models/operations/gettoken.py | 2 - .../epilot/models/operations/gettokenv2.py | 2 - .../src/epilot/models/shared/__init__.py | 3 +- .../src/epilot/models/shared/authrequest.py | 19 +++ .../src/epilot/models/shared/security.py | 1 - internal_auth/src/epilot/sdk.py | 8 +- internal_auth/src/epilot/sdkconfiguration.py | 13 +- internal_auth/src/epilot/utils/retries.py | 5 +- internal_auth/src/epilot/utils/utils.py | 117 ++++++++++-------- 19 files changed, 161 insertions(+), 107 deletions(-) create mode 100755 internal_auth/docs/models/shared/authrequest.md create mode 100755 internal_auth/src/epilot/models/shared/authrequest.py diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 5038b9753..88d21a4fb 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -556,4 +556,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.99.0 (2.154.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.1] internal_auth \ No newline at end of file +- [python v1.48.1] internal_auth + +## 2023-10-18 00:33:33 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.0.0] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/models/operations/getjwks200applicationjson.md b/internal_auth/docs/models/operations/getjwks200applicationjson.md index 7f15b4c66..19b52ffdf 100755 --- a/internal_auth/docs/models/operations/getjwks200applicationjson.md +++ b/internal_auth/docs/models/operations/getjwks200applicationjson.md @@ -7,4 +7,4 @@ Set of jwks | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `keys` | list[[GetJwks200ApplicationJSONKeys](../../models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file +| `keys` | List[[GetJwks200ApplicationJSONKeys](../../models/operations/getjwks200applicationjsonkeys.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/internal_auth/docs/models/shared/authrequest.md b/internal_auth/docs/models/shared/authrequest.md new file mode 100755 index 000000000..ee14a7757 --- /dev/null +++ b/internal_auth/docs/models/shared/authrequest.md @@ -0,0 +1,10 @@ +# AuthRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `additional_properties` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `assume_roles` | List[*str*] | :heavy_minus_sign: | List of assumed roles | org_id:root | +| `org_id` | *Optional[str]* | :heavy_minus_sign: | Organization Id | 12345 | \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index 3e69e5a3e..e10fb292b 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -175,9 +175,25 @@ s = epilot.Epilot( ), ) -req = { - "across": 'black', -} +req = shared.AuthRequest( + additional_properties={ + "across": 'black', + }, + assume_roles=[ + 'o', + 'r', + 'g', + '_', + 'i', + 'd', + ':', + 'r', + 'o', + 'o', + 't', + ], + org_id='12345', +) res = s.epilot.get_token_v2(req) @@ -188,9 +204,9 @@ if res.get_token_v2_200_application_json_object is not None: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [dict[str, Any]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `request` | [shared.AuthRequest](../../models/shared/authrequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response diff --git a/internal_auth/files.gen b/internal_auth/files.gen index 1959e1c67..04255cf79 100755 --- a/internal_auth/files.gen +++ b/internal_auth/files.gen @@ -13,6 +13,7 @@ src/epilot/models/operations/getopenidconfiguration.py src/epilot/models/operations/gettoken.py src/epilot/models/operations/gettokenv2.py src/epilot/models/operations/__init__.py +src/epilot/models/shared/authrequest.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py src/epilot/models/errors/__init__.py @@ -26,6 +27,7 @@ docs/models/operations/gettoken200applicationjson.md docs/models/operations/gettokenresponse.md docs/models/operations/gettokenv2200applicationjson.md docs/models/operations/gettokenv2response.md +docs/models/shared/authrequest.md docs/models/shared/security.md docs/sdks/epilot/README.md .gitattributes \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index f1ce7b4cf..8ade73ab5 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,19 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.99.0 - generationVersion: 2.154.1 + speakeasyVersion: 1.101.0 + generationVersion: 2.161.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.6 + additionalProperties: 0.1.0 + core: 3.0.2 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 1.48.1 + version: 2.0.0 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false diff --git a/internal_auth/pylintrc b/internal_auth/pylintrc index 16fc037a2..894f2eff3 100755 --- a/internal_auth/pylintrc +++ b/internal_auth/pylintrc @@ -88,7 +88,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.9 +py-version=3.8 # Discover python modules and packages in the file system subtree. recursive=no diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 9e57c5aa4..541d38822 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,33 +10,31 @@ setuptools.setup( name="epilot-internal-auth", - version="1.48.1", + version="2.0.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, long_description_content_type="text/markdown", packages=setuptools.find_packages(where="src"), install_requires=[ - "certifi>=2022.12.7", - "charset-normalizer>=2.1.1", + "certifi>=2023.7.22", + "charset-normalizer>=3.2.0", "dataclasses-json>=0.6.1", - "idna>=3.3", + "idna>=3.4", "jsonpath-python>=1.0.6 ", - "marshmallow>=3.17.1", - "marshmallow-enum>=1.5.1", - "mypy-extensions>=0.4.3", - "packaging>=21.3", - "pyparsing>=3.0.9", + "marshmallow>=3.19.0", + "mypy-extensions>=1.0.0", + "packaging>=23.1", "python-dateutil>=2.8.2", - "requests>=2.28.1", + "requests>=2.31.0", "six>=1.16.0", - "typing-inspect>=0.8.0", - "typing_extensions>=4.3.0", - "urllib3>=1.26.12", + "typing-inspect>=0.9.0", + "typing_extensions>=4.7.1", + "urllib3>=2.0.4", ], extras_require={ "dev":["pylint==2.16.2"] }, package_dir={'': 'src'}, - python_requires='>=3.9' + python_requires='>=3.8' ) diff --git a/internal_auth/src/epilot/models/operations/getjwks.py b/internal_auth/src/epilot/models/operations/getjwks.py index fd7763b87..5122f6d9b 100755 --- a/internal_auth/src/epilot/models/operations/getjwks.py +++ b/internal_auth/src/epilot/models/operations/getjwks.py @@ -5,11 +5,10 @@ import requests as requests_http from dataclasses_json import Undefined, dataclass_json from epilot import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetJwks200ApplicationJSONKeys: alg: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('alg'), 'exclude': lambda f: f is None }}) @@ -23,16 +22,14 @@ class GetJwks200ApplicationJSONKeys: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetJwks200ApplicationJSON: r"""Set of jwks""" - keys: Optional[list[GetJwks200ApplicationJSONKeys]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('keys'), 'exclude': lambda f: f is None }}) + keys: Optional[List[GetJwks200ApplicationJSONKeys]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('keys'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class GetJwksResponse: content_type: str = dataclasses.field() diff --git a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py index 75dc9cece..a014d20ac 100755 --- a/internal_auth/src/epilot/models/operations/getopenidconfiguration.py +++ b/internal_auth/src/epilot/models/operations/getopenidconfiguration.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetOpenIDConfiguration200ApplicationJSON: r"""OpenID Configuration""" @@ -19,7 +18,6 @@ class GetOpenIDConfiguration200ApplicationJSON: - @dataclasses.dataclass class GetOpenIDConfigurationResponse: content_type: str = dataclasses.field() diff --git a/internal_auth/src/epilot/models/operations/gettoken.py b/internal_auth/src/epilot/models/operations/gettoken.py index 7659cab00..14a672146 100755 --- a/internal_auth/src/epilot/models/operations/gettoken.py +++ b/internal_auth/src/epilot/models/operations/gettoken.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetToken200ApplicationJSON: r"""JWT Token""" @@ -19,7 +18,6 @@ class GetToken200ApplicationJSON: - @dataclasses.dataclass class GetTokenResponse: content_type: str = dataclasses.field() diff --git a/internal_auth/src/epilot/models/operations/gettokenv2.py b/internal_auth/src/epilot/models/operations/gettokenv2.py index 4027e5a0f..dc45caa94 100755 --- a/internal_auth/src/epilot/models/operations/gettokenv2.py +++ b/internal_auth/src/epilot/models/operations/gettokenv2.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetTokenV2200ApplicationJSON: r"""JWT Token""" @@ -19,7 +18,6 @@ class GetTokenV2200ApplicationJSON: - @dataclasses.dataclass class GetTokenV2Response: content_type: str = dataclasses.field() diff --git a/internal_auth/src/epilot/models/shared/__init__.py b/internal_auth/src/epilot/models/shared/__init__.py index 4e48d0727..6c0f0e55f 100755 --- a/internal_auth/src/epilot/models/shared/__init__.py +++ b/internal_auth/src/epilot/models/shared/__init__.py @@ -1,5 +1,6 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +from .authrequest import * from .security import * -__all__ = ["Security"] +__all__ = ["AuthRequest","Security"] diff --git a/internal_auth/src/epilot/models/shared/authrequest.py b/internal_auth/src/epilot/models/shared/authrequest.py new file mode 100755 index 000000000..ce0a8a185 --- /dev/null +++ b/internal_auth/src/epilot/models/shared/authrequest.py @@ -0,0 +1,19 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from dataclasses_json import Undefined, dataclass_json +from epilot import utils +from typing import Any, Dict, List, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class AuthRequest: + additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) + assume_roles: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assume_roles'), 'exclude': lambda f: f is None }}) + r"""List of assumed roles""" + org_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('org_id'), 'exclude': lambda f: f is None }}) + r"""Organization Id""" + + diff --git a/internal_auth/src/epilot/models/shared/security.py b/internal_auth/src/epilot/models/shared/security.py index 53f3f6a34..3ba908148 100755 --- a/internal_auth/src/epilot/models/shared/security.py +++ b/internal_auth/src/epilot/models/shared/security.py @@ -4,7 +4,6 @@ import dataclasses - @dataclasses.dataclass class Security: sigv4: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'Authorization' }}) diff --git a/internal_auth/src/epilot/sdk.py b/internal_auth/src/epilot/sdk.py index c8d20c730..86ed05e1a 100755 --- a/internal_auth/src/epilot/sdk.py +++ b/internal_auth/src/epilot/sdk.py @@ -4,7 +4,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils from epilot.models import errors, operations, shared -from typing import Any, Optional +from typing import Dict, Optional class Epilot: r"""Internal Auth API: Auth API to provide JWT tokens for internal API access that work with the epilot custom authorizer. @@ -18,7 +18,7 @@ def __init__(self, security: shared.Security = None, server_idx: int = None, server_url: str = None, - url_params: dict[str, str] = None, + url_params: Dict[str, str] = None, client: requests_http.Session = None, retry_config: utils.RetryConfig = None ) -> None: @@ -31,7 +31,7 @@ def __init__(self, :param server_url: The server URL to use for all operations :type server_url: str :param url_params: Parameters to optionally template the server URL with - :type url_params: dict[str, str] + :type url_params: Dict[str, str] :param client: The requests.Session HTTP client to use for all operations :type client: requests_http.Session :param retry_config: The utils.RetryConfig to use globally @@ -164,7 +164,7 @@ def get_token(self) -> operations.GetTokenResponse: return res - def get_token_v2(self, request: dict[str, Any]) -> operations.GetTokenV2Response: + def get_token_v2(self, request: shared.AuthRequest) -> operations.GetTokenV2Response: r"""getTokenV2 Generates token for internal API access with internal roles diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index dccf6edfc..e158abbab 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -2,8 +2,9 @@ import requests from dataclasses import dataclass - +from typing import Dict, Tuple from .utils.retries import RetryConfig +from .utils import utils SERVERS = [ @@ -19,14 +20,14 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '1.48.1' - gen_version: str = '2.154.1' - user_agent: str = 'speakeasy-sdk/python 1.48.1 2.154.1 0.0.1 epilot-internal-auth' + sdk_version: str = '2.0.0' + gen_version: str = '2.161.0' + user_agent: str = 'speakeasy-sdk/python 2.0.0 2.161.0 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None - def get_server_details(self) -> tuple[str, dict[str, str]]: + def get_server_details(self) -> Tuple[str, Dict[str, str]]: if self.server_url: - return self.server_url.removesuffix('/'), {} + return utils.remove_suffix(self.server_url, '/'), {} if self.server_idx is None: self.server_idx = 0 diff --git a/internal_auth/src/epilot/utils/retries.py b/internal_auth/src/epilot/utils/retries.py index 2138c1b5e..25f49a1f2 100755 --- a/internal_auth/src/epilot/utils/retries.py +++ b/internal_auth/src/epilot/utils/retries.py @@ -2,6 +2,7 @@ import random import time +from typing import List import requests @@ -32,9 +33,9 @@ def __init__(self, strategy: str, backoff: BackoffStrategy, retry_connection_err class Retries: config: RetryConfig - status_codes: list[str] + status_codes: List[str] - def __init__(self, config: RetryConfig, status_codes: list[str]): + def __init__(self, config: RetryConfig, status_codes: List[str]): self.config = config self.status_codes = status_codes diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index 4388f3b74..ccfad9f7a 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -9,7 +9,8 @@ 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 +from typing import (Any, Callable, Dict, List, Optional, Tuple, Union, + get_args, get_origin) from xmlrpc.client import boolean import dateutil.parser @@ -19,14 +20,14 @@ class SecurityClient: client: requests.Session - query_params: dict[str, str] = {} + query_params: Dict[str, str] = {} def __init__(self, client: requests.Session): self.client = client def request(self, method, url, **kwargs): params = kwargs.get('params', {}) - kwargs["params"] = self.query_params | params + kwargs["params"] = {**self.query_params, **params} return self.client.request(method, url, **kwargs) @@ -69,7 +70,7 @@ def _parse_security_option(client: SecurityClient, option: dataclass): client, metadata, getattr(option, opt_field.name)) -def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme: any): +def _parse_security_scheme(client: SecurityClient, scheme_metadata: Dict, scheme: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -93,7 +94,7 @@ def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme client, scheme_metadata, scheme_metadata, scheme) -def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict, security_metadata: dict, value: any): +def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: Dict, security_metadata: Dict, value: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -145,7 +146,7 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, - gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: + gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -174,16 +175,16 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass '{' + key + '}', value, 1) else: if param_metadata.get('style', 'simple') == 'simple': - if isinstance(param, list): - pp_vals: list[str] = [] + if isinstance(param, List): + pp_vals: List[str] = [] for pp_val in param: if pp_val is None: continue pp_vals.append(_val_to_string(pp_val)) path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) - elif isinstance(param, dict): - pp_vals: list[str] = [] + elif isinstance(param, Dict): + pp_vals: List[str] = [] for pp_key in param: if param[pp_key] is None: continue @@ -196,7 +197,7 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) elif not isinstance(param, (str, int, float, complex, bool, Decimal)): - pp_vals: list[str] = [] + pp_vals: List[str] = [] param_fields: Tuple[Field, ...] = fields(param) for param_field in param_fields: param_value_metadata = param_field.metadata.get( @@ -222,14 +223,14 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', _val_to_string(param), 1) - return server_url.removesuffix("/") + path + return remove_suffix(server_url, '/') + path def is_optional(field): return get_origin(field) is Union and type(None) in get_args(field) -def template_url(url_with_params: str, params: dict[str, str]) -> str: +def template_url(url_with_params: str, params: Dict[str, str]) -> str: for key, value in params.items(): url_with_params = url_with_params.replace( '{' + key + '}', value) @@ -237,9 +238,9 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ - str, list[str]]: - params: dict[str, list[str]] = {} +def get_query_params(clazz: type, query_params: dataclass, gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> Dict[ + str, List[str]]: + params: Dict[str, List[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) for field in param_fields: @@ -269,24 +270,24 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ else: style = metadata.get('style', 'form') if style == 'deepObject': - params = params | _get_deep_object_query_params( - metadata, f_name, value) + params = {**params, **_get_deep_object_query_params( + metadata, f_name, value)} elif style == 'form': - params = params | _get_delimited_query_params( - metadata, f_name, value, ",") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, ",")} elif style == 'pipeDelimited': - params = params | _get_delimited_query_params( - metadata, f_name, value, "|") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, "|")} else: raise Exception('not yet implemented') return params -def get_headers(headers_params: dataclass) -> dict[str, str]: +def get_headers(headers_params: dataclass) -> Dict[str, str]: if headers_params is None: return {} - headers: dict[str, str] = {} + headers: Dict[str, str] = {} param_fields: Tuple[Field, ...] = fields(headers_params) for field in param_fields: @@ -303,8 +304,8 @@ def get_headers(headers_params: dataclass) -> dict[str, str]: return headers -def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[str, str]: - params: dict[str, str] = {} +def _get_serialized_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, str]: + params: Dict[str, str] = {} serialization = metadata.get('serialization', '') if serialization == 'json': @@ -313,8 +314,8 @@ def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[st return params -def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - params: dict[str, list[str]] = {} +def _get_deep_object_query_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -330,7 +331,7 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if obj_val is None: continue - if isinstance(obj_val, list): + if isinstance(obj_val, List): for val in obj_val: if val is None: continue @@ -348,12 +349,12 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ _val_to_string(obj_val)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): for key, value in obj.items(): if value is None: continue - if isinstance(value, list): + if isinstance(value, List): for val in value: if val is None: continue @@ -379,8 +380,8 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[ - str, list[str]]: +def _get_delimited_query_params(metadata: Dict, field_name: str, obj: any, delimiter: str) -> Dict[ + str, List[str]]: return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter) @@ -424,7 +425,7 @@ def serialize_request_body(request: dataclass, request_field_name: str, nullable request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, List[List[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: @@ -440,8 +441,8 @@ def serialize_content_type(field_name: str, media_type: str, request: dataclass, f"invalid request body type {type(request)} for mediaType {media_type}") -def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: - form: list[list[any]] = [] +def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, List[List[any]]]: + form: List[List[any]] = [] request_fields = fields(request) for field in request_fields: @@ -482,7 +483,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, else: field_name = field_metadata.get( "field_name", field.name) - if isinstance(val, list): + if isinstance(val, List): for value in val: if value is None: continue @@ -493,8 +494,8 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, return media_type, None, form -def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[ - str, list[str]]: +def serialize_dict(original: Dict, explode: bool, field_name, existing: Optional[Dict[str, List[str]]]) -> Dict[ + str, List[str]]: if existing is None: existing = [] @@ -514,8 +515,8 @@ def serialize_dict(original: dict, explode: bool, field_name, existing: Optional return existing -def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: - form: dict[str, list[str]] = {} +def serialize_form_data(field_name: str, data: dataclass) -> Dict[str, any]: + form: Dict[str, List[str]] = {} if is_dataclass(data): for field in fields(data): @@ -533,12 +534,12 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: form[field_name] = [marshal_json(val)] else: if metadata.get('style', 'form') == 'form': - form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name, ",") + form = {**form, **_populate_form( + field_name, metadata.get('explode', True), val, _get_form_field_name, ",")} else: raise Exception( f'Invalid form style for field {field.name}') - elif isinstance(data, dict): + elif isinstance(data, Dict): for key, value in data.items(): form[key] = [_val_to_string(value)] else: @@ -557,8 +558,8 @@ def _get_form_field_name(obj_field: Field) -> str: def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, delimiter: str) -> \ - dict[str, list[str]]: - params: dict[str, list[str]] = {} + Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -584,7 +585,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): if value is None: @@ -597,7 +598,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -651,7 +652,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join(items) - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): @@ -666,7 +667,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join([str(item) for item in items]) - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -779,7 +780,7 @@ def decimaldecoder(val): def map_encoder(optional: bool, value_encoder: Callable): - def map_encode(val: dict): + def map_encode(val: Dict): if optional and val is None: return None @@ -793,7 +794,7 @@ def map_encode(val: dict): def map_decoder(value_decoder: Callable): - def map_decode(val: dict): + def map_decode(val: Dict): decoded = {} for key, value in val.items(): decoded[key] = value_decoder(value) @@ -804,7 +805,7 @@ def map_decode(val: dict): def list_encoder(optional: bool, value_encoder: Callable): - def list_encode(val: list): + def list_encode(val: List): if optional and val is None: return None @@ -818,7 +819,7 @@ def list_encode(val: list): def list_decoder(value_decoder: Callable): - def list_decode(val: list): + def list_decode(val: List): decoded = [] for value in val: decoded.append(value_decoder(value)) @@ -846,7 +847,7 @@ def _val_to_string(val): return str(val) -def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: dict[str, dict[str, dict[str, Any]]]): +def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: Dict[str, Dict[str, Dict[str, Any]]]): if value is None and gbls is not None: if 'parameters' in gbls: if param_type in gbls['parameters']: @@ -863,3 +864,9 @@ def decode_fx(obj): kls = getattr(sys.modules['sdk.models.shared'], obj[field_name]) return unmarshal_json(json.dumps(obj), kls) return decode_fx + + +def remove_suffix(input_string, suffix): + if suffix and input_string.endswith(suffix): + return input_string[:-len(suffix)] + return input_string From 763cecca4eab55623ff60540a9821c35818b3cfc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 21 Oct 2023 00:32:25 +0000 Subject: [PATCH 82/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.104.0 --- internal_auth/RELEASES.md | 10 +++++++++- internal_auth/docs/sdks/epilot/README.md | 2 +- internal_auth/gen.yaml | 11 +++++++---- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 6 +++--- internal_auth/src/epilot/utils/utils.py | 20 ++++++++++++++++++++ 6 files changed, 41 insertions(+), 10 deletions(-) diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 88d21a4fb..7ec1205df 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -564,4 +564,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.0.0] internal_auth \ No newline at end of file +- [python v2.0.0] internal_auth + +## 2023-10-21 00:32:11 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.0] internal_auth \ No newline at end of file diff --git a/internal_auth/docs/sdks/epilot/README.md b/internal_auth/docs/sdks/epilot/README.md index e10fb292b..ff52c5a1e 100755 --- a/internal_auth/docs/sdks/epilot/README.md +++ b/internal_auth/docs/sdks/epilot/README.md @@ -177,7 +177,7 @@ s = epilot.Epilot( req = shared.AuthRequest( additional_properties={ - "across": 'black', + "key": 'string', }, assume_roles=[ 'o', diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 8ade73ab5..24ccc60ec 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,22 +2,25 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.101.0 - generationVersion: 2.161.0 + speakeasyVersion: 1.104.0 + generationVersion: 2.169.0 generation: + repoURL: https://github.com/epilot-dev/sdk-python.git sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: additionalProperties: 0.1.0 - core: 3.0.2 + core: 3.3.0 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 2.0.0 + version: 2.1.0 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false + installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=internal_auth maxMethodParams: 0 packageName: epilot-internal-auth + repoSubDirectory: internal_auth diff --git a/internal_auth/setup.py b/internal_auth/setup.py index 541d38822..db3aee958 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="2.0.0", + version="2.1.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index e158abbab..140c270ea 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -20,9 +20,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '2.0.0' - gen_version: str = '2.161.0' - user_agent: str = 'speakeasy-sdk/python 2.0.0 2.161.0 0.0.1 epilot-internal-auth' + sdk_version: str = '2.1.0' + gen_version: str = '2.169.0' + user_agent: str = 'speakeasy-sdk/python 2.1.0 2.169.0 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/internal_auth/src/epilot/utils/utils.py b/internal_auth/src/epilot/utils/utils.py index ccfad9f7a..3ab126104 100755 --- a/internal_auth/src/epilot/utils/utils.py +++ b/internal_auth/src/epilot/utils/utils.py @@ -759,6 +759,8 @@ def bigintencode(val: int): def bigintdecoder(val): + if isinstance(val, float): + raise ValueError(f"{val} is a float") return int(val) @@ -828,6 +830,24 @@ def list_decode(val: List): return list_decode +def union_encoder(all_encoders: Dict[str, Callable]): + def selective_encoder(val: any): + if type(val) in all_encoders: + return all_encoders[type(val)](val) + return val + return selective_encoder + +def union_decoder(all_decoders: List[Callable]): + def selective_decoder(val: any): + decoded = val + for decoder in all_decoders: + try: + decoded = decoder(val) + break + except (TypeError, ValueError): + continue + return decoded + return selective_decoder def get_field_name(name): def override(_, _field_name=name): From e9ef4497079f1c45f13fb5ee688e580a933e0d3a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 28 Oct 2023 00:32:13 +0000 Subject: [PATCH 83/83] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.109.0 --- internal_auth/README.md | 93 ++++++++++++++++++++ internal_auth/RELEASES.md | 10 ++- internal_auth/gen.yaml | 8 +- internal_auth/setup.py | 2 +- internal_auth/src/epilot/sdkconfiguration.py | 6 +- 5 files changed, 110 insertions(+), 9 deletions(-) diff --git a/internal_auth/README.md b/internal_auth/README.md index 52976371f..56ffd4ee1 100755 --- a/internal_auth/README.md +++ b/internal_auth/README.md @@ -58,6 +58,99 @@ return value of `Next` is `None`, then there are no more pages to be fetched. Here's an example of one such pagination call: + + + +# Error Handling + +Handling errors in your SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate Error type. + + + + + + + +# Server Selection + +## Select Server by Index + +You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: + +| # | Server | Variables | +| - | ------ | --------- | +| 0 | `https://internal-auth.sls.epilot.io/v1/internal-auth` | None | + +For example: + + +```python +import epilot +from epilot.models import shared + +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), + server_idx=0 +) + + +res = s.epilot.get_jwks() + +if res.get_jwks_200_application_json_object is not None: + # handle response + pass +``` + + +## Override Server URL Per-Client + +The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: + + +```python +import epilot +from epilot.models import shared + +s = epilot.Epilot( + security=shared.Security( + sigv4="", + ), + server_url="https://internal-auth.sls.epilot.io/v1/internal-auth" +) + + +res = s.epilot.get_jwks() + +if res.get_jwks_200_application_json_object is not None: + # handle response + pass +``` + + + + + +# Custom HTTP Client + +The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object. + + +For example, you could specify a header for every request that your sdk makes as follows: + +```python +import epilot +import requests + +http_client = requests.Session() +http_client.headers.update({'x-custom-header': 'someValue'}) +s = epilot.Epilot(client: http_client) +``` + + + + diff --git a/internal_auth/RELEASES.md b/internal_auth/RELEASES.md index 7ec1205df..19a3dcb71 100644 --- a/internal_auth/RELEASES.md +++ b/internal_auth/RELEASES.md @@ -572,4 +572,12 @@ Based on: - OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml - Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.1.0] internal_auth \ No newline at end of file +- [python v2.1.0] internal_auth + +## 2023-10-28 00:31:57 +### Changes +Based on: +- OpenAPI Doc 0.0.1 https://docs.api.epilot.io/internal-auth.yaml +- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.1] internal_auth \ No newline at end of file diff --git a/internal_auth/gen.yaml b/internal_auth/gen.yaml index 24ccc60ec..9e308da85 100644 --- a/internal_auth/gen.yaml +++ b/internal_auth/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 1f3c7839d6737ba543966ccb621fa732 docVersion: 0.0.1 - speakeasyVersion: 1.104.0 - generationVersion: 2.169.0 + speakeasyVersion: 1.109.0 + generationVersion: 2.173.0 generation: repoURL: https://github.com/epilot-dev/sdk-python.git sdkClassName: epilot @@ -12,11 +12,11 @@ generation: features: python: additionalProperties: 0.1.0 - core: 3.3.0 + core: 3.3.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 2.1.0 + version: 2.1.1 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false diff --git a/internal_auth/setup.py b/internal_auth/setup.py index db3aee958..ac0dfcf2c 100755 --- a/internal_auth/setup.py +++ b/internal_auth/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-internal-auth", - version="2.1.0", + version="2.1.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/internal_auth/src/epilot/sdkconfiguration.py b/internal_auth/src/epilot/sdkconfiguration.py index 140c270ea..adc02bada 100755 --- a/internal_auth/src/epilot/sdkconfiguration.py +++ b/internal_auth/src/epilot/sdkconfiguration.py @@ -20,9 +20,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '0.0.1' - sdk_version: str = '2.1.0' - gen_version: str = '2.169.0' - user_agent: str = 'speakeasy-sdk/python 2.1.0 2.169.0 0.0.1 epilot-internal-auth' + sdk_version: str = '2.1.1' + gen_version: str = '2.173.0' + user_agent: str = 'speakeasy-sdk/python 2.1.1 2.173.0 0.0.1 epilot-internal-auth' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: