From 6c8a791744f60969d5bcacef93c2fae6c2f6105f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Apr 2023 01:16:59 +0000 Subject: [PATCH 01/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.3 --- notification/README.md | 8 ++++---- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 6 +++--- notification/gen.yaml | 6 +++--- notification/pylintrc | 12 +++++------- notification/setup.py | 2 +- notification/src/epilot/notification.py | 6 ------ notification/src/epilot/sdk.py | 4 ++-- 8 files changed, 25 insertions(+), 27 deletions(-) diff --git a/notification/README.md b/notification/README.md index d7915fc85..288eaad2d 100755 --- a/notification/README.md +++ b/notification/README.md @@ -22,9 +22,9 @@ s = epilot.Epilot( req = { - "deserunt": "porro", - "nulla": "id", - "vero": "perspiciatis", + "provident": "distinctio", + "quibusdam": "unde", + "nulla": "corrupti", } res = s.notification.create_notification(req) @@ -35,7 +35,7 @@ if res.status_code == 200: -## SDK Available Operations +## Available Resources and Operations ### notification diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 275bd7fd5..62a15cbd6 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -34,4 +34,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:49 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 48c8eb8a1..c1426be53 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -11,9 +11,9 @@ s = epilot.Epilot( req = { - "deserunt": "porro", - "nulla": "id", - "vero": "perspiciatis", + "provident": "distinctio", + "quibusdam": "unde", + "nulla": "corrupti", } res = s.notification.create_notification(req) diff --git a/notification/gen.yaml b/notification/gen.yaml index 41d2b3584..a5667762b 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/pylintrc b/notification/pylintrc index 79b8008d0..1a0ea35b7 100755 --- a/notification/pylintrc +++ b/notification/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 @@ -439,7 +434,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/notification/setup.py b/notification/setup.py index 7a1b99090..18fbbe437 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.2.2", + version="1.2.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index 23539ff49..f6ef08630 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -42,8 +42,6 @@ def create_notification(self, request: dict[str, Any]) -> operations.CreateNotif res = operations.CreateNotificationResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code == 202: - pass return res @@ -132,8 +130,6 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: res = operations.MarkAllAsReadResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code == 204: - pass return res @@ -153,8 +149,6 @@ def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.Mark res = operations.MarkAsReadResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code == 204: - pass return res diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index eb08d693e..3b7495361 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,8 @@ class Epilot: _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, security: shared.Security = None, From 2f2e169c967b3dc10c8fda53b67087a970b0ded3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Apr 2023 01:12:08 +0000 Subject: [PATCH 02/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.6 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 62a15cbd6..d68a976e4 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -40,4 +40,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:11:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index a5667762b..5fae18fc1 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 18fbbe437..5126f86f5 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.2.3", + version="1.3.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 3b7495361..db8376ee7 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 5d44d288645ed9096333621ec5f768388079c181 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Apr 2023 01:14:13 +0000 Subject: [PATCH 03/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.7 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index d68a976e4..b2645b580 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -46,4 +46,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:14:03 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 5fae18fc1..9d99f7709 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 5126f86f5..3ae2703ee 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.3.0", + version="1.3.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index db8376ee7..2e046181c 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 4c0595f9850f50eabcf2fd4a8b47ce2dccab03d4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Apr 2023 01:14:49 +0000 Subject: [PATCH 04/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.0 --- notification/RELEASES.md | 8 +- notification/gen.yaml | 6 +- notification/pylintrc | 1 + notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 +- notification/src/epilot/utils/utils.py | 127 ++++++++++++++----------- 6 files changed, 84 insertions(+), 64 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index b2645b580..4c5d609c6 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -52,4 +52,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:14:35 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 9d99f7709..333960a3d 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/pylintrc b/notification/pylintrc index 1a0ea35b7..1ce47d88d 100755 --- a/notification/pylintrc +++ b/notification/pylintrc @@ -438,6 +438,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/notification/setup.py b/notification/setup.py index 3ae2703ee..d0100d30a 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.3.1", + version="1.4.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 2e046181c..f6dab74a7 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 9d4fba324..986a86937 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 6094b0cca00435453e7a42e5606424860f15cc12 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Apr 2023 01:13:59 +0000 Subject: [PATCH 05/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 7 +++---- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4c5d609c6..37506021a 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -58,4 +58,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:13:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 333960a3d..430f4651e 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,15 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index d0100d30a..01f9f013c 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.4.0", + version="1.4.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index f6dab74a7..08660cb1b 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From e2f80d3513e54fa74e7b6ee2fd98eb578ac77418 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Apr 2023 01:16:06 +0000 Subject: [PATCH 06/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.2 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 37506021a..c107d1db0 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -64,4 +64,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:53 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 430f4651e..1bdb81950 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 01f9f013c..a64009088 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.4.1", + version="1.4.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 08660cb1b..0027ec56b 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From df56f92d57f66a6bb4df657294d933320e5db48f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 21 Apr 2023 01:13:56 +0000 Subject: [PATCH 07/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.21.4 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index c107d1db0..a00b11e88 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -70,4 +70,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:13:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 1bdb81950..48950be0f 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index a64009088..52116baf0 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.4.2", + version="1.5.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 0027ec56b..d1317c388 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 9ec098d1676cf3defb11cedbce37d2bac7fd0a13 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Apr 2023 01:15:36 +0000 Subject: [PATCH 08/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.22.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index a00b11e88..d73f5d6a5 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -76,4 +76,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 48950be0f..2fbd86f79 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 52116baf0..7d80d03be 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.5.0", + version="1.6.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index d1317c388..6e7b88edf 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 8d909c9408da0189cd056293e5a8bcabd7b77d67 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Apr 2023 01:15:08 +0000 Subject: [PATCH 09/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.23.1 --- notification/README.md | 18 +-- notification/RELEASES.md | 8 +- notification/USAGE.md | 4 +- notification/docs/epilot/README.md | 8 ++ notification/docs/notification/README.md | 172 +++++++++++++++++++++++ notification/files.gen | 2 + notification/gen.yaml | 6 +- notification/setup.py | 4 +- notification/src/epilot/sdk.py | 4 +- 9 files changed, 207 insertions(+), 19 deletions(-) create mode 100755 notification/docs/epilot/README.md create mode 100755 notification/docs/notification/README.md diff --git a/notification/README.md b/notification/README.md index 288eaad2d..2a9ed484a 100755 --- a/notification/README.md +++ b/notification/README.md @@ -12,7 +12,7 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=notifi ```python import epilot -from epilot.models import operations, shared + s = epilot.Epilot( security=shared.Security( @@ -26,7 +26,7 @@ req = { "quibusdam": "unde", "nulla": "corrupti", } - + res = s.notification.create_notification(req) if res.status_code == 200: @@ -38,14 +38,14 @@ if res.status_code == 200: ## Available Resources and Operations -### notification +### [notification](docs/notification/README.md) -* `create_notification` - createNotification -* `get_notification` - getNotification -* `get_notifications` - getNotifications -* `get_total_unread` - getTotalUnread -* `mark_all_as_read` - markAllAsRead -* `mark_as_read` - markAsRead +* [create_notification](docs/notification/README.md#create_notification) - createNotification +* [get_notification](docs/notification/README.md#get_notification) - getNotification +* [get_notifications](docs/notification/README.md#get_notifications) - getNotifications +* [get_total_unread](docs/notification/README.md#get_total_unread) - getTotalUnread +* [mark_all_as_read](docs/notification/README.md#mark_all_as_read) - markAllAsRead +* [mark_as_read](docs/notification/README.md#mark_as_read) - markAsRead ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index d73f5d6a5..cf9e1812f 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -82,4 +82,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:14:54 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index c1426be53..6553d4fa8 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -1,7 +1,7 @@ ```python import epilot -from epilot.models import operations, shared + s = epilot.Epilot( security=shared.Security( @@ -15,7 +15,7 @@ req = { "quibusdam": "unde", "nulla": "corrupti", } - + res = s.notification.create_notification(req) if res.status_code == 200: diff --git a/notification/docs/epilot/README.md b/notification/docs/epilot/README.md new file mode 100755 index 000000000..e1d78a853 --- /dev/null +++ b/notification/docs/epilot/README.md @@ -0,0 +1,8 @@ +# Epilot SDK + +## Overview + +Notification API for epilot 360 + +### Available Operations + diff --git a/notification/docs/notification/README.md b/notification/docs/notification/README.md new file mode 100755 index 000000000..b72048199 --- /dev/null +++ b/notification/docs/notification/README.md @@ -0,0 +1,172 @@ +# notification + +## Overview + +Notification + +### Available Operations + +* [create_notification](#create_notification) - createNotification +* [get_notification](#get_notification) - getNotification +* [get_notifications](#get_notifications) - getNotifications +* [get_total_unread](#get_total_unread) - getTotalUnread +* [mark_all_as_read](#mark_all_as_read) - markAllAsRead +* [mark_as_read](#mark_as_read) - markAsRead + +## create_notification + +Create a message that can be displayed in the notification panel. + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = { + "vel": "error", + "deserunt": "suscipit", + "iure": "magnam", + "debitis": "ipsa", +} + +res = s.notification.create_notification(req) + +if res.status_code == 200: + # handle response +``` + +## get_notification + +Get the details of a single notification. + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.GetNotificationRequest( + id=9636.63, +) + +res = s.notification.get_notification(req) + +if res.notification_item is not None: + # handle response +``` + +## get_notifications + +Get notifications + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.GetNotificationsRequest( + after_id=272656, + limit=383441, +) + +res = s.notification.get_notifications(req) + +if res.get_notifications_200_application_json_object is not None: + # handle response +``` + +## get_total_unread + +Get total unread + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +res = s.notification.get_total_unread() + +if res.get_total_unread_200_text_plain_number is not None: + # handle response +``` + +## mark_all_as_read + +Mark all as read + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +res = s.notification.mark_all_as_read() + +if res.status_code == 200: + # handle response +``` + +## mark_as_read + +Mark as read + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.MarkAsReadRequest( + id=477665, +) + +res = s.notification.mark_as_read(req) + +if res.status_code == 200: + # handle response +``` diff --git a/notification/files.gen b/notification/files.gen index be6ef325f..3c6be8c89 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -16,4 +16,6 @@ src/epilot/models/operations/markasread.py src/epilot/models/operations/__init__.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py +docs/epilot/README.md +docs/notification/README.md USAGE.md \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 2fbd86f79..924904f92 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 7d80d03be..df60e14f1 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,14 +10,14 @@ setuptools.setup( name="epilot-notification", - 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/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 6e7b88edf..f461053d6 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 1526e911350f9a1dc00136062dc02c3e2f83acf8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Apr 2023 01:16:50 +0000 Subject: [PATCH 10/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.25.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index cf9e1812f..7424d48a7 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -88,4 +88,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 924904f92..764e78b66 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index df60e14f1..e54ff85af 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.7.0", + version="1.8.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index f461053d6..ed65772a7 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From d0ee8299d53b0619122b7c5e2b41ecdcf5dc0992 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Apr 2023 01:16:17 +0000 Subject: [PATCH 11/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.2 --- notification/RELEASES.md | 8 +++++- notification/gen.yaml | 6 ++--- notification/setup.py | 2 +- .../models/operations/createnotification.py | 9 ++++--- .../models/operations/getnotification.py | 15 +++++++---- .../models/operations/getnotifications.py | 27 ++++++++++++------- .../models/operations/gettotalunread.py | 12 ++++++--- .../epilot/models/operations/markallasread.py | 9 ++++--- .../epilot/models/operations/markasread.py | 12 ++++++--- .../src/epilot/models/shared/security.py | 3 ++- notification/src/epilot/sdk.py | 4 +-- 11 files changed, 71 insertions(+), 36 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 7424d48a7..a0716a465 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -94,4 +94,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 764e78b66..e802fd5d3 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index e54ff85af..e45d5fead 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.8.0", + version="1.9.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py index 9294c9e88..e36ebf025 100755 --- a/notification/src/epilot/models/operations/createnotification.py +++ b/notification/src/epilot/models/operations/createnotification.py @@ -9,7 +9,10 @@ @dataclasses.dataclass class CreateNotificationResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py index 36733516a..e227f3777 100755 --- a/notification/src/epilot/models/operations/getnotification.py +++ b/notification/src/epilot/models/operations/getnotification.py @@ -10,15 +10,20 @@ class GetNotificationRequest: id: float = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Notification Id""" + + r"""Notification Id""" @dataclasses.dataclass class GetNotificationResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + notification_item: Optional[dict[str, Any]] = dataclasses.field(default=None) - r"""Success""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Success""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py index 780e981db..c12eed991 100755 --- a/notification/src/epilot/models/operations/getnotifications.py +++ b/notification/src/epilot/models/operations/getnotifications.py @@ -11,9 +11,11 @@ @dataclasses.dataclass class GetNotificationsRequest: - after_id: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'after_id', 'style': 'form', 'explode': True }}) + after_id: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'after_id', 'style': 'form', 'explode': True }}) + limit: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': True }}) - r"""The numbers of items to return""" + + r"""The numbers of items to return""" @dataclass_json(undefined=Undefined.EXCLUDE) @@ -21,17 +23,24 @@ class GetNotificationsRequest: class GetNotifications200ApplicationJSON: r"""Success""" - results: Optional[list[dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }}) - total: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total'), 'exclude': lambda f: f is None }}) - total_unread: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total_unread'), 'exclude': lambda f: f is None }}) + results: Optional[list[dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }}) + + total: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total'), 'exclude': lambda f: f is None }}) + + total_unread: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total_unread'), 'exclude': lambda f: f is None }}) + @dataclasses.dataclass class GetNotificationsResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + get_notifications_200_application_json_object: Optional[GetNotifications200ApplicationJSON] = dataclasses.field(default=None) - r"""Success""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Success""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py index 9520f8235..b74c16bd8 100755 --- a/notification/src/epilot/models/operations/gettotalunread.py +++ b/notification/src/epilot/models/operations/gettotalunread.py @@ -9,9 +9,13 @@ @dataclasses.dataclass class GetTotalUnreadResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + get_total_unread_200_text_plain_number: Optional[str] = dataclasses.field(default=None) - r"""Success""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Success""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py index f30c618fb..381484a24 100755 --- a/notification/src/epilot/models/operations/markallasread.py +++ b/notification/src/epilot/models/operations/markallasread.py @@ -9,7 +9,10 @@ @dataclasses.dataclass class MarkAllAsReadResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py index 3383493f8..1bb886ed6 100755 --- a/notification/src/epilot/models/operations/markasread.py +++ b/notification/src/epilot/models/operations/markasread.py @@ -10,13 +10,17 @@ class MarkAsReadRequest: id: int = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Numeric ID of the notification to mark as read""" + + r"""Numeric ID of the notification to mark as read""" @dataclasses.dataclass class MarkAsReadResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/notification/src/epilot/models/shared/security.py b/notification/src/epilot/models/shared/security.py index cca0d01c8..2157ebc16 100755 --- a/notification/src/epilot/models/shared/security.py +++ b/notification/src/epilot/models/shared/security.py @@ -7,5 +7,6 @@ @dataclasses.dataclass class Security: - epilot_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) + epilot_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) + \ No newline at end of file diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index ed65772a7..69745c3a7 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 9c7716038d178ef65101f67e1e15801b5e193099 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 29 Apr 2023 01:14:50 +0000 Subject: [PATCH 12/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.4 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- .../src/epilot/models/operations/createnotification.py | 3 --- .../src/epilot/models/operations/getnotification.py | 5 ----- .../src/epilot/models/operations/getnotifications.py | 9 --------- .../src/epilot/models/operations/gettotalunread.py | 4 ---- .../src/epilot/models/operations/markallasread.py | 3 --- notification/src/epilot/models/operations/markasread.py | 4 ---- notification/src/epilot/models/shared/security.py | 1 - notification/src/epilot/sdk.py | 4 ++-- 11 files changed, 13 insertions(+), 36 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index a0716a465..4f90b9dc5 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -100,4 +100,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:14:38 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index e802fd5d3..0394204b5 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index e45d5fead..c07d6ebe4 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.9.0", + version="1.9.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py index e36ebf025..32395e7b1 100755 --- a/notification/src/epilot/models/operations/createnotification.py +++ b/notification/src/epilot/models/operations/createnotification.py @@ -10,9 +10,6 @@ class CreateNotificationResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py index e227f3777..5201a5aa1 100755 --- a/notification/src/epilot/models/operations/getnotification.py +++ b/notification/src/epilot/models/operations/getnotification.py @@ -10,7 +10,6 @@ class GetNotificationRequest: id: float = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Notification Id""" @@ -18,12 +17,8 @@ class GetNotificationRequest: class GetNotificationResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - notification_item: Optional[dict[str, Any]] = dataclasses.field(default=None) - r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py index c12eed991..1deeaffcc 100755 --- a/notification/src/epilot/models/operations/getnotifications.py +++ b/notification/src/epilot/models/operations/getnotifications.py @@ -12,9 +12,7 @@ class GetNotificationsRequest: after_id: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'after_id', 'style': 'form', 'explode': True }}) - limit: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': True }}) - r"""The numbers of items to return""" @@ -24,23 +22,16 @@ class GetNotifications200ApplicationJSON: r"""Success""" results: Optional[list[dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }}) - total: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total'), 'exclude': lambda f: f is None }}) - total_unread: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total_unread'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class GetNotificationsResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - get_notifications_200_application_json_object: Optional[GetNotifications200ApplicationJSON] = dataclasses.field(default=None) - r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py index b74c16bd8..53e66f770 100755 --- a/notification/src/epilot/models/operations/gettotalunread.py +++ b/notification/src/epilot/models/operations/gettotalunread.py @@ -10,12 +10,8 @@ class GetTotalUnreadResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - get_total_unread_200_text_plain_number: Optional[str] = dataclasses.field(default=None) - r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py index 381484a24..ab47a8246 100755 --- a/notification/src/epilot/models/operations/markallasread.py +++ b/notification/src/epilot/models/operations/markallasread.py @@ -10,9 +10,6 @@ class MarkAllAsReadResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py index 1bb886ed6..e48db1a0c 100755 --- a/notification/src/epilot/models/operations/markasread.py +++ b/notification/src/epilot/models/operations/markasread.py @@ -10,7 +10,6 @@ class MarkAsReadRequest: id: int = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Numeric ID of the notification to mark as read""" @@ -18,9 +17,6 @@ class MarkAsReadRequest: class MarkAsReadResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/notification/src/epilot/models/shared/security.py b/notification/src/epilot/models/shared/security.py index 2157ebc16..7be3d6e93 100755 --- a/notification/src/epilot/models/shared/security.py +++ b/notification/src/epilot/models/shared/security.py @@ -8,5 +8,4 @@ class Security: epilot_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) - \ No newline at end of file diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 69745c3a7..0dbdb035c 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From e86103dd5cf7fa4325ffea636c45710bfe06d4ab Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 2 May 2023 01:15:48 +0000 Subject: [PATCH 13/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.5 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4f90b9dc5..f61a25bf4 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -106,4 +106,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 0394204b5..a04632711 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index c07d6ebe4..3eec998d1 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.9.1", + version="1.9.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 0dbdb035c..44c95f17c 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 4f1be43cf77cad6145b497244163228cd5d8eea3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 3 May 2023 01:16:12 +0000 Subject: [PATCH 14/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.27.0 --- notification/README.md | 6 +++--- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 6 +++--- notification/docs/notification/README.md | 8 ++++---- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- notification/src/epilot/utils/utils.py | 2 +- 8 files changed, 24 insertions(+), 18 deletions(-) diff --git a/notification/README.md b/notification/README.md index 2a9ed484a..330439786 100755 --- a/notification/README.md +++ b/notification/README.md @@ -22,9 +22,9 @@ s = epilot.Epilot( req = { - "provident": "distinctio", - "quibusdam": "unde", - "nulla": "corrupti", + "provident": 'distinctio', + "quibusdam": 'unde', + "nulla": 'corrupti', } res = s.notification.create_notification(req) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index f61a25bf4..94cc89355 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -112,4 +112,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:00 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 6553d4fa8..7e7c2f503 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -11,9 +11,9 @@ s = epilot.Epilot( req = { - "provident": "distinctio", - "quibusdam": "unde", - "nulla": "corrupti", + "provident": 'distinctio', + "quibusdam": 'unde', + "nulla": 'corrupti', } res = s.notification.create_notification(req) diff --git a/notification/docs/notification/README.md b/notification/docs/notification/README.md index b72048199..66ac4d42d 100755 --- a/notification/docs/notification/README.md +++ b/notification/docs/notification/README.md @@ -31,10 +31,10 @@ s = epilot.Epilot( req = { - "vel": "error", - "deserunt": "suscipit", - "iure": "magnam", - "debitis": "ipsa", + "vel": 'error', + "deserunt": 'suscipit', + "iure": 'magnam', + "debitis": 'ipsa', } res = s.notification.create_notification(req) diff --git a/notification/gen.yaml b/notification/gen.yaml index a04632711..dc586b1a7 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 3eec998d1..03e7e9cf5 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.9.2", + version="1.10.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 44c95f17c..a966ffde9 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 986a86937..63dce946b 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 ccb665fd8aa255b9ba5e4ff5f74953858f05555a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 5 May 2023 01:09:06 +0000 Subject: [PATCH 15/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.0 --- notification/README.md | 1 - notification/RELEASES.md | 8 +++- notification/USAGE.md | 1 - notification/docs/notification/README.md | 4 -- notification/gen.yaml | 7 ++-- notification/setup.py | 2 +- notification/src/epilot/notification.py | 6 +++ notification/src/epilot/sdk.py | 4 +- notification/src/epilot/utils/utils.py | 53 +++++++++++++++--------- 9 files changed, 53 insertions(+), 33 deletions(-) diff --git a/notification/README.md b/notification/README.md index 330439786..422d6a890 100755 --- a/notification/README.md +++ b/notification/README.md @@ -20,7 +20,6 @@ s = epilot.Epilot( ), ) - req = { "provident": 'distinctio', "quibusdam": 'unde', diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 94cc89355..b8e0c2347 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -118,4 +118,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:08:54 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 7e7c2f503..088fe27c9 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -9,7 +9,6 @@ s = epilot.Epilot( ), ) - req = { "provident": 'distinctio', "quibusdam": 'unde', diff --git a/notification/docs/notification/README.md b/notification/docs/notification/README.md index 66ac4d42d..1a2b16a2d 100755 --- a/notification/docs/notification/README.md +++ b/notification/docs/notification/README.md @@ -29,7 +29,6 @@ s = epilot.Epilot( ), ) - req = { "vel": 'error', "deserunt": 'suscipit', @@ -59,7 +58,6 @@ s = epilot.Epilot( ), ) - req = operations.GetNotificationRequest( id=9636.63, ) @@ -86,7 +84,6 @@ s = epilot.Epilot( ), ) - req = operations.GetNotificationsRequest( after_id=272656, limit=383441, @@ -160,7 +157,6 @@ s = epilot.Epilot( ), ) - req = operations.MarkAsReadRequest( id=477665, ) diff --git a/notification/gen.yaml b/notification/gen.yaml index dc586b1a7..925032e35 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 03e7e9cf5..2ffb68f54 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.10.0", + version="1.11.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index f6ef08630..065e799ee 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -22,6 +22,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http self._sdk_version = sdk_version self._gen_version = gen_version + def create_notification(self, request: dict[str, Any]) -> operations.CreateNotificationResponse: r"""createNotification Create a message that can be displayed in the notification panel. @@ -45,6 +46,7 @@ def create_notification(self, request: dict[str, Any]) -> operations.CreateNotif return res + def get_notification(self, request: operations.GetNotificationRequest) -> operations.GetNotificationResponse: r"""getNotification Get the details of a single notification. @@ -68,6 +70,7 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat return res + def get_notifications(self, request: operations.GetNotificationsRequest) -> operations.GetNotificationsResponse: r"""getNotifications Get notifications @@ -92,6 +95,7 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper return res + def get_total_unread(self) -> operations.GetTotalUnreadResponse: r"""getTotalUnread Get total unread @@ -114,6 +118,7 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: return res + def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: r"""markAllAsRead Mark all as read @@ -133,6 +138,7 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: return res + def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.MarkAsReadResponse: r"""markAsRead Mark as read diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index a966ffde9..5f628c74a 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 63dce946b..a8b0d8f14 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 30434fd3faadfee11ab2453d2738d415411c2e8e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 6 May 2023 01:10:33 +0000 Subject: [PATCH 16/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index b8e0c2347..8d7cbdcd0 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -124,4 +124,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:10:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 925032e35..441c9b041 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 2ffb68f54..7650d1605 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.11.0", + version="1.11.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 5f628c74a..b1a01bad2 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From d43bc7f5535d6b887c53f54119f239543b543ade Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 10 May 2023 01:14:20 +0000 Subject: [PATCH 17/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.2 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 8d7cbdcd0..503ca2fbb 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -130,4 +130,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:14:09 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 441c9b041..57d2f72a5 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 7650d1605..544e4a5a4 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.11.1", + version="1.11.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index b1a01bad2..f7ab7fba7 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From fec88dc127ab399ecd1f3df3189fb9d416a1267b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 11 May 2023 01:15:49 +0000 Subject: [PATCH 18/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 503ca2fbb..9efd15dd7 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -136,4 +136,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:38 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 57d2f72a5..edd4844f6 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 544e4a5a4..1e7808da1 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.11.2", + version="1.11.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index f7ab7fba7..7af9ad59b 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 87fcdfc13e51d4f1fb25c4b2626c1cbaeace52fb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 12 May 2023 01:15:28 +0000 Subject: [PATCH 19/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- notification/src/epilot/utils/utils.py | 16 ++++++++-------- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 9efd15dd7..4f10b99ef 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -142,4 +142,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:17 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index edd4844f6..d47ca7d27 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 1e7808da1..bede37d17 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.11.3", + version="1.11.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 7af9ad59b..2bfb90a33 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index a8b0d8f14..98719fbf7 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 8428e82c80e6772e2c132b4a5cc5b6c647f1fd9e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 13 May 2023 01:13:06 +0000 Subject: [PATCH 20/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.31.1 --- notification/README.md | 2 +- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 2 +- notification/docs/notification/README.md | 12 ++++++------ notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- notification/src/epilot/utils/utils.py | 2 +- 8 files changed, 22 insertions(+), 16 deletions(-) diff --git a/notification/README.md b/notification/README.md index 422d6a890..064ffe163 100755 --- a/notification/README.md +++ b/notification/README.md @@ -16,7 +16,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4f10b99ef..fc38126d9 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -148,4 +148,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:12:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 088fe27c9..a4ca6df98 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -5,7 +5,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/notification/docs/notification/README.md b/notification/docs/notification/README.md index 1a2b16a2d..18bb319b4 100755 --- a/notification/docs/notification/README.md +++ b/notification/docs/notification/README.md @@ -25,7 +25,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -54,7 +54,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -80,7 +80,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -107,7 +107,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -130,7 +130,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -153,7 +153,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/notification/gen.yaml b/notification/gen.yaml index d47ca7d27..077e7b0e3 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index bede37d17..762ee9c57 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.11.4", + version="1.12.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 2bfb90a33..bcc250008 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 98719fbf7..6b39ecf74 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 4876ad2a3d886cbc5ec81b94496daa72bfdaa39e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 16 May 2023 01:16:59 +0000 Subject: [PATCH 21/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.32.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index fc38126d9..b799d816e 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -154,4 +154,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:45 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 077e7b0e3..ea9633f20 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 762ee9c57..a7ff2c30d 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.12.0", + version="1.13.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index bcc250008..c2f0ad122 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From c05ca3babf1bd1dd72e034863f9178f512322db1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 May 2023 01:17:36 +0000 Subject: [PATCH 22/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.33.2 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index b799d816e..2bc026ea9 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -160,4 +160,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:17:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index ea9633f20..245a905ae 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index a7ff2c30d..da96dd6e4 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.13.0", + version="1.14.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index c2f0ad122..556ebf0eb 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From ef26f9e25567c7862642ae82569b5837ddda500e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 18 May 2023 01:15:35 +0000 Subject: [PATCH 23/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.34.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/notification.py | 27 +++++++++++++++---------- notification/src/epilot/sdk.py | 4 ++-- 5 files changed, 29 insertions(+), 18 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 2bc026ea9..65fa43c4e 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -166,4 +166,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 245a905ae..7ff590fa1 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index da96dd6e4..608b2b3f2 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.14.0", + version="1.15.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index 065e799ee..23816fcc2 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -30,11 +30,11 @@ def create_notification(self, request: dict[str, Any]) -> operations.CreateNotif base_url = self._server_url url = base_url.removesuffix('/') + '/v1/notification/notifications' - 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 = self._security_client @@ -54,11 +54,12 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat base_url = self._server_url url = utils.generate_url(operations.GetNotificationRequest, base_url, '/v1/notification/notifications/{id}', request) - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_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.GetNotificationResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -78,12 +79,13 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper base_url = self._server_url url = base_url.removesuffix('/') + '/v1/notification/notifications' - + headers = {} query_params = utils.get_query_params(operations.GetNotificationsRequest, request) + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('GET', url, params=query_params) + http_res = client.request('GET', url, params=query_params, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetNotificationsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -103,11 +105,12 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: base_url = self._server_url url = base_url.removesuffix('/') + '/v1/notification/unreads' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_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.GetTotalUnreadResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -126,11 +129,12 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: base_url = self._server_url url = base_url.removesuffix('/') + '/v1/notification/notifications/mark' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('PUT', url) + http_res = client.request('PUT', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.MarkAllAsReadResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -146,11 +150,12 @@ def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.Mark base_url = self._server_url url = utils.generate_url(operations.MarkAsReadRequest, base_url, '/v1/notification/notifications/{id}/mark', request) - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('PUT', url) + http_res = client.request('PUT', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.MarkAsReadResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 556ebf0eb..f93c8dd9e 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 58196641b9c2113af9b89fb0939600735ec0ccbc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 19 May 2023 01:16:54 +0000 Subject: [PATCH 24/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.35.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/notification.py | 6 ++++++ notification/src/epilot/sdk.py | 4 ++-- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 65fa43c4e..302b761b8 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -172,4 +172,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:41 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 7ff590fa1..3dbae80f6 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 608b2b3f2..8a16ce849 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.15.0", + version="1.16.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index 23816fcc2..c669f7855 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -34,6 +34,7 @@ def create_notification(self, request: dict[str, Any]) -> operations.CreateNotif 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'] = '*/*' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -55,6 +56,7 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat url = utils.generate_url(operations.GetNotificationRequest, base_url, '/v1/notification/notifications/{id}', request) headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -81,6 +83,7 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper url = base_url.removesuffix('/') + '/v1/notification/notifications' headers = {} query_params = utils.get_query_params(operations.GetNotificationsRequest, request) + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -106,6 +109,7 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: url = base_url.removesuffix('/') + '/v1/notification/unreads' headers = {} + headers['Accept'] = 'text/plain' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -130,6 +134,7 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: url = base_url.removesuffix('/') + '/v1/notification/notifications/mark' headers = {} + headers['Accept'] = '*/*' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -151,6 +156,7 @@ def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.Mark url = utils.generate_url(operations.MarkAsReadRequest, base_url, '/v1/notification/notifications/{id}/mark', request) headers = {} + headers['Accept'] = '*/*' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index f93c8dd9e..da58dce55 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 5e1d4df98fcf30d6ec67bc14903306f4867aaf26 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 23 May 2023 01:16:52 +0000 Subject: [PATCH 25/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.37.5 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 302b761b8..223113b0d 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -178,4 +178,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 3dbae80f6..5b78d7c89 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 8a16ce849..df9bb8075 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.16.0", + version="1.17.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index da58dce55..2910fd689 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From d0b9ecc110b0533d5b3b9a6e24b28ac4f2d7400c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 27 May 2023 01:17:09 +0000 Subject: [PATCH 26/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.39.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 223113b0d..ce50f08f4 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -184,4 +184,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:16:52 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 5b78d7c89..c2c3e5458 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index df9bb8075..95af425f3 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.17.0", + version="1.17.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 2910fd689..c102997f3 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From d3cebf53bc804649f5cfc7a147de73bddcdab86b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Jun 2023 01:57:00 +0000 Subject: [PATCH 27/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.2 --- notification/.gitignore | 5 +++++ notification/RELEASES.md | 8 +++++++- notification/files.gen | 1 + notification/gen.yaml | 6 +++--- notification/setup.py | 7 +++++-- notification/src/epilot/sdk.py | 4 ++-- 6 files changed, 23 insertions(+), 8 deletions(-) create mode 100755 notification/.gitignore diff --git a/notification/.gitignore b/notification/.gitignore new file mode 100755 index 000000000..9072ad43b --- /dev/null +++ b/notification/.gitignore @@ -0,0 +1,5 @@ +venv/ +src/*.egg-info/ +__pycache__/ +.pytest_cache/ +.python-version` \ No newline at end of file diff --git a/notification/RELEASES.md b/notification/RELEASES.md index ce50f08f4..926c36595 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -190,4 +190,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:56:45 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/files.gen b/notification/files.gen index 3c6be8c89..be5170819 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -1,5 +1,6 @@ src/epilot/notification.py src/epilot/sdk.py +.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/notification/gen.yaml b/notification/gen.yaml index c2c3e5458..c0bba1f72 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 95af425f3..c9da5b2c3 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - 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/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index c102997f3..89a062fb1 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 3741bc3aa2e7136dd78acaeb1d17efdd227c6a1f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 2 Jun 2023 01:39:23 +0000 Subject: [PATCH 28/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.3 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 34 +++++++++++++++++----------------- notification/src/epilot/sdk.py | 4 ++-- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 926c36595..d2dff6b4f 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -196,4 +196,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:39:09 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index c0bba1f72..b1271c2b8 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index c9da5b2c3..3b209d136 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,29 +10,29 @@ setuptools.setup( name="epilot-notification", - 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/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 89a062fb1..9640e036c 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -19,8 +19,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, security: shared.Security = None, From 38fc58619920e365c969ded118a069b27f6f1e5a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 3 Jun 2023 01:36:07 +0000 Subject: [PATCH 29/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.43.0 --- notification/RELEASES.md | 8 ++- notification/files.gen | 1 + notification/gen.yaml | 6 +- notification/setup.py | 2 +- notification/src/epilot/__init__.py | 1 + notification/src/epilot/notification.py | 66 +++++++++------------ notification/src/epilot/sdk.py | 44 ++++---------- notification/src/epilot/sdkconfiguration.py | 27 +++++++++ 8 files changed, 81 insertions(+), 74 deletions(-) create mode 100755 notification/src/epilot/sdkconfiguration.py diff --git a/notification/RELEASES.md b/notification/RELEASES.md index d2dff6b4f..3d8cd8e31 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -202,4 +202,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:35:54 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/files.gen b/notification/files.gen index be5170819..0f72f4720 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -1,3 +1,4 @@ +src/epilot/sdkconfiguration.py src/epilot/notification.py src/epilot/sdk.py .gitignore diff --git a/notification/gen.yaml b/notification/gen.yaml index b1271c2b8..7f4b9ae77 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 3b209d136..0f4e2ceee 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.18.1", + version="1.19.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/__init__.py b/notification/src/epilot/__init__.py index b9e232018..e6c0deeb6 100755 --- a/notification/src/epilot/__init__.py +++ b/notification/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/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index c669f7855..74dfb2b95 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -1,43 +1,33 @@ """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 class Notification: r"""Notification""" - _client: requests_http.Session - _security_client: requests_http.Session - _server_url: str - _language: str - _sdk_version: str - _gen_version: str - - def __init__(self, client: requests_http.Session, security_client: requests_http.Session, server_url: str, language: str, sdk_version: str, gen_version: str) -> None: - self._client = client - self._security_client = security_client - self._server_url = server_url - self._language = language - self._sdk_version = sdk_version - self._gen_version = gen_version + sdk_configuration: SDKConfiguration + + def __init__(self, sdk_config: SDKConfiguration) -> None: + self.sdk_configuration = sdk_config def create_notification(self, request: dict[str, Any]) -> operations.CreateNotificationResponse: r"""createNotification Create a message that can be displayed in the notification panel. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/notification/notifications' + url = base_url + '/v1/notification/notifications' 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'] = '*/*' - 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._security_client + 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') @@ -52,14 +42,14 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat r"""getNotification Get the details of a single notification. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetNotificationRequest, base_url, '/v1/notification/notifications/{id}', request) 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._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -78,15 +68,15 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper r"""getNotifications Get notifications """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/notification/notifications' + url = base_url + '/v1/notification/notifications' headers = {} query_params = utils.get_query_params(operations.GetNotificationsRequest, request) 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._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, params=query_params, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -105,14 +95,14 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: r"""getTotalUnread Get total unread """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/notification/unreads' + url = base_url + '/v1/notification/unreads' headers = {} headers['Accept'] = 'text/plain' - 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._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -130,14 +120,14 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: r"""markAllAsRead Mark all as read """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/notification/notifications/mark' + url = base_url + '/v1/notification/notifications/mark' headers = {} headers['Accept'] = '*/*' - 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._security_client + client = self.sdk_configuration.security_client http_res = client.request('PUT', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -152,14 +142,14 @@ def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.Mark r"""markAsRead Mark as read """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.MarkAsReadRequest, base_url, '/v1/notification/notifications/{id}/mark', request) headers = {} headers['Accept'] = '*/*' - 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._security_client + client = self.sdk_configuration.security_client http_res = client.request('PUT', url, headers=headers) content_type = http_res.headers.get('Content-Type') diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index 9640e036c..cd4a6aa7f 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -1,29 +1,21 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" import requests as requests_http -from . import utils from .notification import Notification +from .sdkconfiguration import SDKConfiguration +from epilot import utils from epilot.models import shared -SERVERS = [ - "https://notification.sls.epilot.io", -] -"""Contains the list of servers available to the SDK""" - class Epilot: r"""Notification API for epilot 360""" notification: Notification r"""Notification""" - _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, security: shared.Security = None, + server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, client: requests_http.Session = None @@ -32,6 +24,8 @@ def __init__(self, :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 :type server_url: str :param url_params: Parameters to optionally template the server URL with @@ -39,31 +33,19 @@ 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 = utils.configure_security_client(client, security) 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 = utils.configure_security_client(self._client, security) - + server_url = utils.template_url(server_url, url_params) + self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx) + self._init_sdks() def _init_sdks(self): - self.notification = Notification( - self._client, - self._security_client, - self._server_url, - self._language, - self._sdk_version, - self._gen_version - ) - + self.notification = Notification(self.sdk_configuration) \ No newline at end of file diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py new file mode 100755 index 000000000..ff41ae7e4 --- /dev/null +++ b/notification/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://notification.sls.epilot.io', +] +"""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 52ac0c0fcd0d1ee69ab0e309436cec6d1fe77fcf Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 7 Jun 2023 01:40:45 +0000 Subject: [PATCH 30/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.44.2 --- notification/RELEASES.md | 8 +++++++- notification/docs/epilot/README.md | 2 +- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 2 +- notification/src/epilot/sdkconfiguration.py | 5 +++-- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 3d8cd8e31..2b0889b5d 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -208,4 +208,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:40:31 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/docs/epilot/README.md b/notification/docs/epilot/README.md index e1d78a853..6e65d6e34 100755 --- a/notification/docs/epilot/README.md +++ b/notification/docs/epilot/README.md @@ -2,7 +2,7 @@ ## Overview -Notification API for epilot 360 +Notification API: Notification API for epilot 360 ### Available Operations diff --git a/notification/gen.yaml b/notification/gen.yaml index 7f4b9ae77..ae13ac53d 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 0f4e2ceee..8d08be799 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.19.0", + version="1.19.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index cd4a6aa7f..cc6e96329 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -7,7 +7,7 @@ from epilot.models import shared class Epilot: - r"""Notification API for epilot 360""" + r"""Notification API: Notification API for epilot 360""" notification: Notification r"""Notification""" diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index ff41ae7e4..1764c7696 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -3,6 +3,7 @@ import requests from dataclasses import dataclass + SERVERS = [ 'https://notification.sls.epilot.io', ] @@ -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 de15c237c68b3441c20fc6228c1e2e7853a39a90 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 8 Jun 2023 01:40:10 +0000 Subject: [PATCH 31/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.0 --- notification/README.md | 2 +- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 2 +- notification/docs/notification/README.md | 12 ++++++------ notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/notification.py | 12 ++++++------ notification/src/epilot/sdkconfiguration.py | 5 +++-- 8 files changed, 28 insertions(+), 21 deletions(-) diff --git a/notification/README.md b/notification/README.md index 064ffe163..7e7f921ee 100755 --- a/notification/README.md +++ b/notification/README.md @@ -16,7 +16,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 2b0889b5d..4830eb92b 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -214,4 +214,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:39:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index a4ca6df98..2f4730037 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -5,7 +5,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/notification/docs/notification/README.md b/notification/docs/notification/README.md index 18bb319b4..1125c0ee6 100755 --- a/notification/docs/notification/README.md +++ b/notification/docs/notification/README.md @@ -25,7 +25,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -54,7 +54,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -80,7 +80,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -107,7 +107,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -130,7 +130,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -153,7 +153,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/notification/gen.yaml b/notification/gen.yaml index ae13ac53d..7fafaa1bc 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 8d08be799..2c6beb7fe 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.19.1", + version="1.20.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index 74dfb2b95..276068c66 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -25,7 +25,7 @@ def create_notification(self, request: dict[str, Any]) -> operations.CreateNotif if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = '*/*' - 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.security_client @@ -47,7 +47,7 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat url = utils.generate_url(operations.GetNotificationRequest, base_url, '/v1/notification/notifications/{id}', request) 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.security_client @@ -74,7 +74,7 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper headers = {} query_params = utils.get_query_params(operations.GetNotificationsRequest, request) 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.security_client @@ -100,7 +100,7 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: url = base_url + '/v1/notification/unreads' headers = {} headers['Accept'] = 'text/plain' - 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.security_client @@ -125,7 +125,7 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: url = base_url + '/v1/notification/notifications/mark' headers = {} headers['Accept'] = '*/*' - 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.security_client @@ -147,7 +147,7 @@ def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.Mark url = utils.generate_url(operations.MarkAsReadRequest, base_url, '/v1/notification/notifications/{id}/mark', request) headers = {} headers['Accept'] = '*/*' - 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.security_client diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 1764c7696..310b83659 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/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 = '1.0.0' + 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 de3b74eed3e79cf6e6757484492c024d94a421f9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 9 Jun 2023 01:39:01 +0000 Subject: [PATCH 32/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.2 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4830eb92b..8a2f9ef39 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -220,4 +220,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:38:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 7fafaa1bc..216866c2f 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 2c6beb7fe..08c9a5b90 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.20.0", + version="1.20.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 310b83659..29f9ff633 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 0e234182c731a801ac30e2ca930154f55b34e9c4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 10 Jun 2023 01:23:40 +0000 Subject: [PATCH 33/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.0 --- notification/README.md | 16 +- notification/RELEASES.md | 8 +- .../operations/createnotificationresponse.md | 10 + .../operations/getnotificationrequest.md | 8 + .../operations/getnotificationresponse.md | 11 + .../getnotifications200applicationjson.md | 12 + .../operations/getnotificationsrequest.md | 9 + .../operations/getnotificationsresponse.md | 11 + .../operations/gettotalunreadresponse.md | 11 + .../operations/markallasreadresponse.md | 10 + .../models/operations/markasreadrequest.md | 8 + .../models/operations/markasreadresponse.md | 10 + notification/docs/models/shared/security.md | 8 + notification/docs/notification/README.md | 168 ------------- notification/docs/{ => sdks}/epilot/README.md | 0 notification/docs/sdks/notification/README.md | 228 ++++++++++++++++++ notification/files.gen | 17 +- notification/gen.yaml | 6 +- notification/setup.py | 2 +- .../models/operations/createnotification.py | 5 +- .../models/operations/getnotification.py | 9 +- .../models/operations/getnotifications.py | 13 +- .../models/operations/gettotalunread.py | 5 +- .../epilot/models/operations/markallasread.py | 5 +- .../epilot/models/operations/markasread.py | 9 +- .../src/epilot/models/shared/security.py | 5 +- notification/src/epilot/sdkconfiguration.py | 4 +- 27 files changed, 404 insertions(+), 204 deletions(-) create mode 100755 notification/docs/models/operations/createnotificationresponse.md create mode 100755 notification/docs/models/operations/getnotificationrequest.md create mode 100755 notification/docs/models/operations/getnotificationresponse.md create mode 100755 notification/docs/models/operations/getnotifications200applicationjson.md create mode 100755 notification/docs/models/operations/getnotificationsrequest.md create mode 100755 notification/docs/models/operations/getnotificationsresponse.md create mode 100755 notification/docs/models/operations/gettotalunreadresponse.md create mode 100755 notification/docs/models/operations/markallasreadresponse.md create mode 100755 notification/docs/models/operations/markasreadrequest.md create mode 100755 notification/docs/models/operations/markasreadresponse.md create mode 100755 notification/docs/models/shared/security.md delete mode 100755 notification/docs/notification/README.md rename notification/docs/{ => sdks}/epilot/README.md (100%) create mode 100755 notification/docs/sdks/notification/README.md diff --git a/notification/README.md b/notification/README.md index 7e7f921ee..83dccd02d 100755 --- a/notification/README.md +++ b/notification/README.md @@ -37,14 +37,14 @@ if res.status_code == 200: ## Available Resources and Operations -### [notification](docs/notification/README.md) - -* [create_notification](docs/notification/README.md#create_notification) - createNotification -* [get_notification](docs/notification/README.md#get_notification) - getNotification -* [get_notifications](docs/notification/README.md#get_notifications) - getNotifications -* [get_total_unread](docs/notification/README.md#get_total_unread) - getTotalUnread -* [mark_all_as_read](docs/notification/README.md#mark_all_as_read) - markAllAsRead -* [mark_as_read](docs/notification/README.md#mark_as_read) - markAsRead +### [notification](docs/sdks/notification/README.md) + +* [create_notification](docs/sdks/notification/README.md#create_notification) - createNotification +* [get_notification](docs/sdks/notification/README.md#get_notification) - getNotification +* [get_notifications](docs/sdks/notification/README.md#get_notifications) - getNotifications +* [get_total_unread](docs/sdks/notification/README.md#get_total_unread) - getTotalUnread +* [mark_all_as_read](docs/sdks/notification/README.md#mark_all_as_read) - markAllAsRead +* [mark_as_read](docs/sdks/notification/README.md#mark_as_read) - markAsRead ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 8a2f9ef39..95b9bfa9a 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -226,4 +226,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:23:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/docs/models/operations/createnotificationresponse.md b/notification/docs/models/operations/createnotificationresponse.md new file mode 100755 index 000000000..659dff1e8 --- /dev/null +++ b/notification/docs/models/operations/createnotificationresponse.md @@ -0,0 +1,10 @@ +# CreateNotificationResponse + + +## 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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationrequest.md b/notification/docs/models/operations/getnotificationrequest.md new file mode 100755 index 000000000..835819387 --- /dev/null +++ b/notification/docs/models/operations/getnotificationrequest.md @@ -0,0 +1,8 @@ +# GetNotificationRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *float* | :heavy_check_mark: | Notification Id | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md new file mode 100755 index 000000000..3f0462a21 --- /dev/null +++ b/notification/docs/models/operations/getnotificationresponse.md @@ -0,0 +1,11 @@ +# GetNotificationResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `notification_item` | dict[str, *Any*] | :heavy_minus_sign: | Success | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotifications200applicationjson.md b/notification/docs/models/operations/getnotifications200applicationjson.md new file mode 100755 index 000000000..7eaf18543 --- /dev/null +++ b/notification/docs/models/operations/getnotifications200applicationjson.md @@ -0,0 +1,12 @@ +# GetNotifications200ApplicationJSON + +Success + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `results` | list[dict[str, *Any*]] | :heavy_minus_sign: | N/A | | +| `total` | *Optional[int]* | :heavy_minus_sign: | N/A | 1 | +| `total_unread` | *Optional[int]* | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationsrequest.md b/notification/docs/models/operations/getnotificationsrequest.md new file mode 100755 index 000000000..4701e73a5 --- /dev/null +++ b/notification/docs/models/operations/getnotificationsrequest.md @@ -0,0 +1,9 @@ +# GetNotificationsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `after_id` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `limit` | *Optional[int]* | :heavy_minus_sign: | The numbers of items to return | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationsresponse.md b/notification/docs/models/operations/getnotificationsresponse.md new file mode 100755 index 000000000..94d8caf5e --- /dev/null +++ b/notification/docs/models/operations/getnotificationsresponse.md @@ -0,0 +1,11 @@ +# GetNotificationsResponse + + +## 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_notifications_200_application_json_object` | [Optional[GetNotifications200ApplicationJSON]](../../models/operations/getnotifications200applicationjson.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/gettotalunreadresponse.md b/notification/docs/models/operations/gettotalunreadresponse.md new file mode 100755 index 000000000..d3b574938 --- /dev/null +++ b/notification/docs/models/operations/gettotalunreadresponse.md @@ -0,0 +1,11 @@ +# GetTotalUnreadResponse + + +## 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_total_unread_200_text_plain_number` | *Optional[str]* | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/markallasreadresponse.md b/notification/docs/models/operations/markallasreadresponse.md new file mode 100755 index 000000000..6d2250081 --- /dev/null +++ b/notification/docs/models/operations/markallasreadresponse.md @@ -0,0 +1,10 @@ +# MarkAllAsReadResponse + + +## 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 | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadrequest.md b/notification/docs/models/operations/markasreadrequest.md new file mode 100755 index 000000000..bde6aaffe --- /dev/null +++ b/notification/docs/models/operations/markasreadrequest.md @@ -0,0 +1,8 @@ +# MarkAsReadRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `id` | *int* | :heavy_check_mark: | Numeric ID of the notification to mark as read | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadresponse.md b/notification/docs/models/operations/markasreadresponse.md new file mode 100755 index 000000000..d78c1d297 --- /dev/null +++ b/notification/docs/models/operations/markasreadresponse.md @@ -0,0 +1,10 @@ +# MarkAsReadResponse + + +## 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 | \ No newline at end of file diff --git a/notification/docs/models/shared/security.md b/notification/docs/models/shared/security.md new file mode 100755 index 000000000..f06333390 --- /dev/null +++ b/notification/docs/models/shared/security.md @@ -0,0 +1,8 @@ +# Security + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `epilot_auth` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/notification/docs/notification/README.md b/notification/docs/notification/README.md deleted file mode 100755 index 1125c0ee6..000000000 --- a/notification/docs/notification/README.md +++ /dev/null @@ -1,168 +0,0 @@ -# notification - -## Overview - -Notification - -### Available Operations - -* [create_notification](#create_notification) - createNotification -* [get_notification](#get_notification) - getNotification -* [get_notifications](#get_notifications) - getNotifications -* [get_total_unread](#get_total_unread) - getTotalUnread -* [mark_all_as_read](#mark_all_as_read) - markAllAsRead -* [mark_as_read](#mark_as_read) - markAsRead - -## create_notification - -Create a message that can be displayed in the notification panel. - -### Example Usage - -```python -import epilot - - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = { - "vel": 'error', - "deserunt": 'suscipit', - "iure": 'magnam', - "debitis": 'ipsa', -} - -res = s.notification.create_notification(req) - -if res.status_code == 200: - # handle response -``` - -## get_notification - -Get the details of a single notification. - -### Example Usage - -```python -import epilot -from epilot.models import operations - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.GetNotificationRequest( - id=9636.63, -) - -res = s.notification.get_notification(req) - -if res.notification_item is not None: - # handle response -``` - -## get_notifications - -Get notifications - -### Example Usage - -```python -import epilot -from epilot.models import operations - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.GetNotificationsRequest( - after_id=272656, - limit=383441, -) - -res = s.notification.get_notifications(req) - -if res.get_notifications_200_application_json_object is not None: - # handle response -``` - -## get_total_unread - -Get total unread - -### Example Usage - -```python -import epilot - - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - - -res = s.notification.get_total_unread() - -if res.get_total_unread_200_text_plain_number is not None: - # handle response -``` - -## mark_all_as_read - -Mark all as read - -### Example Usage - -```python -import epilot - - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - - -res = s.notification.mark_all_as_read() - -if res.status_code == 200: - # handle response -``` - -## mark_as_read - -Mark as read - -### Example Usage - -```python -import epilot -from epilot.models import operations - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.MarkAsReadRequest( - id=477665, -) - -res = s.notification.mark_as_read(req) - -if res.status_code == 200: - # handle response -``` diff --git a/notification/docs/epilot/README.md b/notification/docs/sdks/epilot/README.md similarity index 100% rename from notification/docs/epilot/README.md rename to notification/docs/sdks/epilot/README.md diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md new file mode 100755 index 000000000..f07a13a30 --- /dev/null +++ b/notification/docs/sdks/notification/README.md @@ -0,0 +1,228 @@ +# notification + +## Overview + +Notification + +### Available Operations + +* [create_notification](#create_notification) - createNotification +* [get_notification](#get_notification) - getNotification +* [get_notifications](#get_notifications) - getNotifications +* [get_total_unread](#get_total_unread) - getTotalUnread +* [mark_all_as_read](#mark_all_as_read) - markAllAsRead +* [mark_as_read](#mark_as_read) - markAsRead + +## create_notification + +Create a message that can be displayed in the notification panel. + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = { + "vel": 'error', + "deserunt": 'suscipit', + "iure": 'magnam', + "debitis": 'ipsa', +} + +res = s.notification.create_notification(req) + +if res.status_code == 200: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [dict[str, Any]](../../models//.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.CreateNotificationResponse](../../models/operations/createnotificationresponse.md)** + + +## get_notification + +Get the details of a single notification. + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.GetNotificationRequest( + id=9636.63, +) + +res = s.notification.get_notification(req) + +if res.notification_item is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `request` | [operations.GetNotificationRequest](../../models/operations/getnotificationrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetNotificationResponse](../../models/operations/getnotificationresponse.md)** + + +## get_notifications + +Get notifications + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.GetNotificationsRequest( + after_id=272656, + limit=383441, +) + +res = s.notification.get_notifications(req) + +if res.get_notifications_200_application_json_object is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `request` | [operations.GetNotificationsRequest](../../models/operations/getnotificationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetNotificationsResponse](../../models/operations/getnotificationsresponse.md)** + + +## get_total_unread + +Get total unread + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + + +res = s.notification.get_total_unread() + +if res.get_total_unread_200_text_plain_number is not None: + # handle response +``` + + +### Response + +**[operations.GetTotalUnreadResponse](../../models/operations/gettotalunreadresponse.md)** + + +## mark_all_as_read + +Mark all as read + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + + +res = s.notification.mark_all_as_read() + +if res.status_code == 200: + # handle response +``` + + +### Response + +**[operations.MarkAllAsReadResponse](../../models/operations/markallasreadresponse.md)** + + +## mark_as_read + +Mark as read + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.MarkAsReadRequest( + id=477665, +) + +res = s.notification.mark_as_read(req) + +if res.status_code == 200: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `request` | [operations.MarkAsReadRequest](../../models/operations/markasreadrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.MarkAsReadResponse](../../models/operations/markasreadresponse.md)** + diff --git a/notification/files.gen b/notification/files.gen index 0f72f4720..71ae44dc5 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -18,6 +18,17 @@ src/epilot/models/operations/markasread.py src/epilot/models/operations/__init__.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py -docs/epilot/README.md -docs/notification/README.md -USAGE.md \ No newline at end of file +docs/sdks/epilot/README.md +docs/sdks/notification/README.md +USAGE.md +docs/models/operations/createnotificationresponse.md +docs/models/operations/getnotificationrequest.md +docs/models/operations/getnotificationresponse.md +docs/models/operations/getnotificationsrequest.md +docs/models/operations/getnotifications200applicationjson.md +docs/models/operations/getnotificationsresponse.md +docs/models/operations/gettotalunreadresponse.md +docs/models/operations/markallasreadresponse.md +docs/models/operations/markasreadrequest.md +docs/models/operations/markasreadresponse.md +docs/models/shared/security.md \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 216866c2f..69d46035c 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 08c9a5b90..bcb97d1f4 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.20.1", + version="1.21.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py index 32395e7b1..89913ce8f 100755 --- a/notification/src/epilot/models/operations/createnotification.py +++ b/notification/src/epilot/models/operations/createnotification.py @@ -6,10 +6,11 @@ from typing import Optional + @dataclasses.dataclass class CreateNotificationResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py index 5201a5aa1..278bc251f 100755 --- a/notification/src/epilot/models/operations/getnotification.py +++ b/notification/src/epilot/models/operations/getnotification.py @@ -6,19 +6,22 @@ from typing import Any, Optional + @dataclasses.dataclass class GetNotificationRequest: - id: float = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) r"""Notification Id""" + + + @dataclasses.dataclass class GetNotificationResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() notification_item: Optional[dict[str, Any]] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py index 1deeaffcc..0eb93232d 100755 --- a/notification/src/epilot/models/operations/getnotifications.py +++ b/notification/src/epilot/models/operations/getnotifications.py @@ -8,30 +8,35 @@ from typing import Any, Optional + @dataclasses.dataclass class GetNotificationsRequest: - after_id: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'after_id', 'style': 'form', 'explode': True }}) limit: Optional[int] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': True }}) r"""The numbers of items to return""" + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetNotifications200ApplicationJSON: r"""Success""" - results: Optional[list[dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }}) total: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total'), 'exclude': lambda f: f is None }}) total_unread: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total_unread'), 'exclude': lambda f: f is None }}) + + + @dataclasses.dataclass class GetNotificationsResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() get_notifications_200_application_json_object: Optional[GetNotifications200ApplicationJSON] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py index 53e66f770..dfdb9491a 100755 --- a/notification/src/epilot/models/operations/gettotalunread.py +++ b/notification/src/epilot/models/operations/gettotalunread.py @@ -6,12 +6,13 @@ from typing import Optional + @dataclasses.dataclass class GetTotalUnreadResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() get_total_unread_200_text_plain_number: Optional[str] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py index ab47a8246..3d54b5ae5 100755 --- a/notification/src/epilot/models/operations/markallasread.py +++ b/notification/src/epilot/models/operations/markallasread.py @@ -6,10 +6,11 @@ from typing import Optional + @dataclasses.dataclass class MarkAllAsReadResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py index e48db1a0c..360b95d2a 100755 --- a/notification/src/epilot/models/operations/markasread.py +++ b/notification/src/epilot/models/operations/markasread.py @@ -6,17 +6,20 @@ from typing import Optional + @dataclasses.dataclass class MarkAsReadRequest: - id: int = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) r"""Numeric ID of the notification to mark as read""" + + + @dataclasses.dataclass class MarkAsReadResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/notification/src/epilot/models/shared/security.py b/notification/src/epilot/models/shared/security.py index 7be3d6e93..e75e944ea 100755 --- a/notification/src/epilot/models/shared/security.py +++ b/notification/src/epilot/models/shared/security.py @@ -4,8 +4,9 @@ import dataclasses + @dataclasses.dataclass class Security: - epilot_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) - \ No newline at end of file + + diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 29f9ff633..07b9261f6 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 afebdccc40636b85b262793c9acc7c88b3478ba8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 11 Jun 2023 01:45:11 +0000 Subject: [PATCH 34/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 95b9bfa9a..4e18ab155 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -232,4 +232,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:44:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 69d46035c..e2f043918 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index bcb97d1f4..b77fa564c 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.21.0", + version="1.21.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 07b9261f6..8f5b66343 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 70fc9706410535104086bd0728df25dd21393197 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 14 Jun 2023 01:24:34 +0000 Subject: [PATCH 35/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.3 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/retries.py | 3 ++- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4e18ab155..377c7e283 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -238,4 +238,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:24:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index e2f043918..2ada824d5 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index b77fa564c..6dd12c205 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.21.1", + version="1.22.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 8f5b66343..d4a623ea5 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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/notification/src/epilot/utils/retries.py b/notification/src/epilot/utils/retries.py index c6251d948..2138c1b5e 100755 --- a/notification/src/epilot/utils/retries.py +++ b/notification/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 ec6ab0fdd884d4e71f497074faf883cfe77ac072 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 16 Jun 2023 01:24:51 +0000 Subject: [PATCH 36/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.48.0 --- notification/.gitignore | 2 +- notification/RELEASES.md | 8 +++++++- notification/files.gen | 1 - notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/notification/.gitignore b/notification/.gitignore index 9072ad43b..648876d29 100755 --- a/notification/.gitignore +++ b/notification/.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/notification/RELEASES.md b/notification/RELEASES.md index 377c7e283..3a783d29f 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -244,4 +244,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:24:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/files.gen b/notification/files.gen index 71ae44dc5..8a43a0256 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -1,7 +1,6 @@ src/epilot/sdkconfiguration.py src/epilot/notification.py src/epilot/sdk.py -.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/notification/gen.yaml b/notification/gen.yaml index 2ada824d5..f209d721b 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 6dd12c205..afb9a150a 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.22.0", + version="1.23.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index d4a623ea5..7892753b2 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 7c4d78ff9cc93f743c93b08f098e99ad01c0f9b6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 20 Jun 2023 01:21:31 +0000 Subject: [PATCH 37/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.0 --- notification/.gitignore | 2 ++ notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/notification/.gitignore b/notification/.gitignore index 648876d29..8ac3f51d4 100755 --- a/notification/.gitignore +++ b/notification/.gitignore @@ -1,3 +1,5 @@ +.python-version +.DS_Store venv/ src/*.egg-info/ __pycache__/ diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 3a783d29f..3d92b0efa 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -250,4 +250,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:21:17 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index f209d721b..7b0758723 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index afb9a150a..5a9c3faff 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.23.0", + version="1.23.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 7892753b2..3320d054a 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 3ed1c0c4c953cee9bb2cc22851c01fa9b54f3586 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 21 Jun 2023 01:23:48 +0000 Subject: [PATCH 38/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 3d92b0efa..c08560eb0 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -256,4 +256,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:23:34 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 7b0758723..5b73a79f3 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 5a9c3faff..c41d61645 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.23.1", + version="1.23.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 3320d054a..d3f92787a 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 9e66bfd9a6fb3cc5c923313dc3c050489015ae02 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 23 Jun 2023 01:42:08 +0000 Subject: [PATCH 39/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.50.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index c08560eb0..ed7e18331 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -262,4 +262,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:41:54 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 5b73a79f3..9b80eeb74 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index c41d61645..4835689cf 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.23.2", + version="1.24.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index d3f92787a..1f6893811 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.23.2' - gen_version: str = '2.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 712bcbcaca141f53e95b972be5aa8dabde710c35 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 27 Jun 2023 01:44:16 +0000 Subject: [PATCH 40/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index ed7e18331..e469741ec 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -268,4 +268,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:43:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 9b80eeb74..a751771b0 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 4835689cf..a9caa42d7 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.24.0", + version="1.25.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 1f6893811..92196b9ac 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 4215de02c0f1408b46b36af5bb470030131d6f7d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 29 Jun 2023 01:39:29 +0000 Subject: [PATCH 41/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.3 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index e469741ec..9e53548f8 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -274,4 +274,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:39:14 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index a751771b0..ac7c78b8e 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index a9caa42d7..7f25b6d87 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.25.0", + version="1.26.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 92196b9ac..efd84b9c9 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 f878258c70aefe58ef209b381c963fe20e1b8363 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Jul 2023 01:49:08 +0000 Subject: [PATCH 42/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 9e53548f8..b310fdc0f 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -280,4 +280,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:48:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index ac7c78b8e..6981ad3b6 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 7f25b6d87..0b6afdb33 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.26.0", + version="1.27.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index efd84b9c9..c2454f2b8 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 4578d13f3e77c21085ccd1508e2bd480ea682c16 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Jul 2023 01:43:54 +0000 Subject: [PATCH 43/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.2 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index b310fdc0f..e0f89f000 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -286,4 +286,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:43:39 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 6981ad3b6..4cdfede42 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 0b6afdb33..97d913304 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.27.0", + version="1.28.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index c2454f2b8..1fb056a0e 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 4dc7208d6edcf5d6a85fb152aded214963813e2a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Jul 2023 01:43:08 +0000 Subject: [PATCH 44/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index e0f89f000..d303f8cbb 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -292,4 +292,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:42:52 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 4cdfede42..17f96cb55 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 97d913304..d584382da 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.28.0", + version="1.29.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 1fb056a0e..ae08ad0c7 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 6e812067cb3adf1e1d21533b5a972fae4ad41c6a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 8 Jul 2023 01:41:44 +0000 Subject: [PATCH 45/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index d303f8cbb..4be820283 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -298,4 +298,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:41:30 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 17f96cb55..2534cafd7 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index d584382da..d9aa4b2c1 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.29.0", + version="1.29.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index ae08ad0c7..67c0b62a7 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 7f4f89e576341faf02f7ebd141d0a694cc1091c1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 11 Jul 2023 01:26:56 +0000 Subject: [PATCH 46/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4be820283..02007fec4 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -304,4 +304,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:26:42 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 2534cafd7..2bf9eebeb 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index d9aa4b2c1..c79565474 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.29.1", + version="1.30.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 67c0b62a7..36ff46215 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 f7652a226c3dadb045e7fd490ba032ee7ee991b7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Jul 2023 01:43:50 +0000 Subject: [PATCH 47/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.4 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 02007fec4..77d3ed522 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -310,4 +310,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:43:33 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.56.4 (2.61.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 2bf9eebeb..795006b41 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.56.0 - generationVersion: 2.61.0 + speakeasyVersion: 1.56.4 + generationVersion: 2.61.5 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/notification/setup.py b/notification/setup.py index c79565474..b703d64eb 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.30.0", + version="1.30.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 36ff46215..e0d7cfa99 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.30.0' - gen_version: str = '2.61.0' + sdk_version: str = '1.30.1' + gen_version: str = '2.61.5' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From d1382246f7e1955e342ee39dc48a7471af4f4769 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 13 Jul 2023 01:45:26 +0000 Subject: [PATCH 48/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.57.0 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 77d3ed522..ad6f9b224 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -316,4 +316,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml -- Speakeasy CLI 1.56.4 (2.61.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.56.4 (2.61.5) https://github.com/speakeasy-api/speakeasy + +## 2023-07-13 01:45:11 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 795006b41..3ade6ffd5 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.56.4 - generationVersion: 2.61.5 + 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/notification/setup.py b/notification/setup.py index b703d64eb..9b1004f36 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.30.1", + version="1.31.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index e0d7cfa99..124a6725c 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.30.1' - gen_version: str = '2.61.5' + 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 d2c6df44b9a67f7e6f40e724b5627e4a4257770e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Jul 2023 01:45:02 +0000 Subject: [PATCH 49/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.59.0 --- notification/README.md | 4 +++- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 4 +++- notification/docs/sdks/notification/README.md | 12 ++++++------ notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 7 files changed, 25 insertions(+), 15 deletions(-) diff --git a/notification/README.md b/notification/README.md index 83dccd02d..6c0bdc9ee 100755 --- a/notification/README.md +++ b/notification/README.md @@ -10,9 +10,11 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=notifi ## SDK Example Usage + + ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( diff --git a/notification/RELEASES.md b/notification/RELEASES.md index ad6f9b224..ddf9b9e67 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -322,4 +322,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:44:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 2f4730037..6d8112db4 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -1,7 +1,9 @@ + + ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index f07a13a30..b98cb54c1 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -21,7 +21,7 @@ Create a message that can be displayed in the notification panel. ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( @@ -62,7 +62,7 @@ Get the details of a single notification. ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( @@ -100,7 +100,7 @@ Get notifications ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( @@ -139,7 +139,7 @@ Get total unread ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( @@ -168,7 +168,7 @@ Mark all as read ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( @@ -197,7 +197,7 @@ Mark as read ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( diff --git a/notification/gen.yaml b/notification/gen.yaml index 3ade6ffd5..bcbbe6607 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 9b1004f36..278a24796 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.31.0", + version="1.32.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 124a6725c..2a6cc5401 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 7aba8bf913506ed7c837bc3b2ecadd039556c1d3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 17 Jul 2023 01:48:07 +0000 Subject: [PATCH 50/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.60.0 --- notification/RELEASES.md | 8 ++++++- notification/files.gen | 1 + notification/gen.yaml | 6 ++--- notification/pylintrc | 4 +++- notification/setup.py | 2 +- .../src/epilot/models/errors/sdkerror.py | 24 +++++++++++++++++++ notification/src/epilot/notification.py | 6 +++++ notification/src/epilot/sdkconfiguration.py | 4 ++-- 8 files changed, 47 insertions(+), 8 deletions(-) create mode 100755 notification/src/epilot/models/errors/sdkerror.py diff --git a/notification/RELEASES.md b/notification/RELEASES.md index ddf9b9e67..1759122c4 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -328,4 +328,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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-17 01:47:53 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/files.gen b/notification/files.gen index 8a43a0256..b8a2d9ef8 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -5,6 +5,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 diff --git a/notification/gen.yaml b/notification/gen.yaml index bcbbe6607..0b967c1f8 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.59.0 - generationVersion: 2.65.0 + speakeasyVersion: 1.60.0 + generationVersion: 2.66.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/notification/pylintrc b/notification/pylintrc index 1ce47d88d..21a389459 100755 --- a/notification/pylintrc +++ b/notification/pylintrc @@ -438,7 +438,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/notification/setup.py b/notification/setup.py index 278a24796..ee05d7e6c 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.32.0", + version="1.33.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/errors/sdkerror.py b/notification/src/epilot/models/errors/sdkerror.py new file mode 100755 index 000000000..6bb02bbd6 --- /dev/null +++ b/notification/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/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index 276068c66..de916368a 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -60,6 +60,8 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[dict[str, Any]]) res.notification_item = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -87,6 +89,8 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GetNotifications200ApplicationJSON]) res.get_notifications_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 @@ -112,6 +116,8 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: if http_res.status_code == 200: if utils.match_content_type(content_type, 'text/plain'): res.get_total_unread_200_text_plain_number = http_res.content + 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/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 2a6cc5401..057ff63f5 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.32.0' - gen_version: str = '2.65.0' + sdk_version: str = '1.33.0' + gen_version: str = '2.66.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 3a849f7f892f0c0f2dcf4cd3993f9b545142843e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Jul 2023 01:54:25 +0000 Subject: [PATCH 51/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.61.0 --- notification/RELEASES.md | 8 +++++++- notification/files.gen | 1 + notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/models/errors/__init__.py | 4 ++++ notification/src/epilot/notification.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 7 files changed, 19 insertions(+), 8 deletions(-) create mode 100755 notification/src/epilot/models/errors/__init__.py diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 1759122c4..c4c7f882d 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -334,4 +334,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml -- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-18 01:54:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/files.gen b/notification/files.gen index b8a2d9ef8..b282ab072 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -18,6 +18,7 @@ src/epilot/models/operations/markasread.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 docs/sdks/notification/README.md USAGE.md diff --git a/notification/gen.yaml b/notification/gen.yaml index 0b967c1f8..0df5db651 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.60.0 - generationVersion: 2.66.0 + speakeasyVersion: 1.61.0 + generationVersion: 2.70.0 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false python: - version: 1.33.0 + version: 1.34.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index ee05d7e6c..61ab81bfc 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.33.0", + version="1.34.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/errors/__init__.py b/notification/src/epilot/models/errors/__init__.py new file mode 100755 index 000000000..cfd848441 --- /dev/null +++ b/notification/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/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index de916368a..dbbb76ae5 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -2,7 +2,7 @@ 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 Notification: diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 057ff63f5..bf340b480 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.33.0' - gen_version: str = '2.66.0' + sdk_version: str = '1.34.0' + gen_version: str = '2.70.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 19f04902aaaa3beb6962bbbccfa454fc9f1ee62c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Jul 2023 02:43:20 +0000 Subject: [PATCH 52/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.62.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index c4c7f882d..05c216c84 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -340,4 +340,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 02:43:04 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 0df5db651..55c0c27f7 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.34.0 + version: 1.34.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 61ab81bfc..c00fa6eb5 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.34.0", + version="1.34.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index bf340b480..34f47321d 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.34.0' - gen_version: str = '2.70.0' + sdk_version: str = '1.34.1' + gen_version: str = '2.70.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 07d3b44ce833cd7d719bd59c04b7ddf61b215f2d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Jul 2023 01:19:54 +0000 Subject: [PATCH 53/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.64.0 --- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 0 .../docs/models/operations/createnotificationresponse.md | 0 .../docs/models/operations/getnotificationrequest.md | 0 .../docs/models/operations/getnotificationresponse.md | 0 .../operations/getnotifications200applicationjson.md | 0 .../docs/models/operations/getnotificationsrequest.md | 0 .../docs/models/operations/getnotificationsresponse.md | 0 .../docs/models/operations/gettotalunreadresponse.md | 0 .../docs/models/operations/markallasreadresponse.md | 0 notification/docs/models/operations/markasreadrequest.md | 0 notification/docs/models/operations/markasreadresponse.md | 0 notification/docs/models/shared/security.md | 0 notification/docs/sdks/epilot/README.md | 0 notification/docs/sdks/notification/README.md | 0 notification/gen.yaml | 6 +++--- notification/pylintrc | 0 notification/setup.py | 4 ++-- notification/src/epilot/__init__.py | 0 notification/src/epilot/models/__init__.py | 0 notification/src/epilot/models/errors/__init__.py | 0 notification/src/epilot/models/errors/sdkerror.py | 0 notification/src/epilot/models/operations/__init__.py | 0 .../src/epilot/models/operations/createnotification.py | 0 .../src/epilot/models/operations/getnotification.py | 0 .../src/epilot/models/operations/getnotifications.py | 0 .../src/epilot/models/operations/gettotalunread.py | 0 .../src/epilot/models/operations/markallasread.py | 0 notification/src/epilot/models/operations/markasread.py | 0 notification/src/epilot/models/shared/__init__.py | 0 notification/src/epilot/models/shared/security.py | 0 notification/src/epilot/notification.py | 0 notification/src/epilot/sdk.py | 0 notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/__init__.py | 0 notification/src/epilot/utils/retries.py | 0 notification/src/epilot/utils/utils.py | 0 37 files changed, 14 insertions(+), 8 deletions(-) mode change 100755 => 100644 notification/USAGE.md mode change 100755 => 100644 notification/docs/models/operations/createnotificationresponse.md mode change 100755 => 100644 notification/docs/models/operations/getnotificationrequest.md mode change 100755 => 100644 notification/docs/models/operations/getnotificationresponse.md mode change 100755 => 100644 notification/docs/models/operations/getnotifications200applicationjson.md mode change 100755 => 100644 notification/docs/models/operations/getnotificationsrequest.md mode change 100755 => 100644 notification/docs/models/operations/getnotificationsresponse.md mode change 100755 => 100644 notification/docs/models/operations/gettotalunreadresponse.md mode change 100755 => 100644 notification/docs/models/operations/markallasreadresponse.md mode change 100755 => 100644 notification/docs/models/operations/markasreadrequest.md mode change 100755 => 100644 notification/docs/models/operations/markasreadresponse.md mode change 100755 => 100644 notification/docs/models/shared/security.md mode change 100755 => 100644 notification/docs/sdks/epilot/README.md mode change 100755 => 100644 notification/docs/sdks/notification/README.md mode change 100755 => 100644 notification/pylintrc mode change 100755 => 100644 notification/setup.py mode change 100755 => 100644 notification/src/epilot/__init__.py mode change 100755 => 100644 notification/src/epilot/models/__init__.py mode change 100755 => 100644 notification/src/epilot/models/errors/__init__.py mode change 100755 => 100644 notification/src/epilot/models/errors/sdkerror.py mode change 100755 => 100644 notification/src/epilot/models/operations/__init__.py mode change 100755 => 100644 notification/src/epilot/models/operations/createnotification.py mode change 100755 => 100644 notification/src/epilot/models/operations/getnotification.py mode change 100755 => 100644 notification/src/epilot/models/operations/getnotifications.py mode change 100755 => 100644 notification/src/epilot/models/operations/gettotalunread.py mode change 100755 => 100644 notification/src/epilot/models/operations/markallasread.py mode change 100755 => 100644 notification/src/epilot/models/operations/markasread.py mode change 100755 => 100644 notification/src/epilot/models/shared/__init__.py mode change 100755 => 100644 notification/src/epilot/models/shared/security.py mode change 100755 => 100644 notification/src/epilot/notification.py mode change 100755 => 100644 notification/src/epilot/sdk.py mode change 100755 => 100644 notification/src/epilot/sdkconfiguration.py mode change 100755 => 100644 notification/src/epilot/utils/__init__.py mode change 100755 => 100644 notification/src/epilot/utils/retries.py mode change 100755 => 100644 notification/src/epilot/utils/utils.py diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 05c216c84..812bdd7ed 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -346,4 +346,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:19:41 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/createnotificationresponse.md b/notification/docs/models/operations/createnotificationresponse.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/getnotificationrequest.md b/notification/docs/models/operations/getnotificationrequest.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/getnotifications200applicationjson.md b/notification/docs/models/operations/getnotifications200applicationjson.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/getnotificationsrequest.md b/notification/docs/models/operations/getnotificationsrequest.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/getnotificationsresponse.md b/notification/docs/models/operations/getnotificationsresponse.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/gettotalunreadresponse.md b/notification/docs/models/operations/gettotalunreadresponse.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/markallasreadresponse.md b/notification/docs/models/operations/markallasreadresponse.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/markasreadrequest.md b/notification/docs/models/operations/markasreadrequest.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/operations/markasreadresponse.md b/notification/docs/models/operations/markasreadresponse.md old mode 100755 new mode 100644 diff --git a/notification/docs/models/shared/security.md b/notification/docs/models/shared/security.md old mode 100755 new mode 100644 diff --git a/notification/docs/sdks/epilot/README.md b/notification/docs/sdks/epilot/README.md old mode 100755 new mode 100644 diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md old mode 100755 new mode 100644 diff --git a/notification/gen.yaml b/notification/gen.yaml index 55c0c27f7..644ef4bb0 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.34.1 + version: 1.35.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/pylintrc b/notification/pylintrc old mode 100755 new mode 100644 diff --git a/notification/setup.py b/notification/setup.py old mode 100755 new mode 100644 index c00fa6eb5..f0dba61f7 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.34.1", + version="1.35.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/notification/src/epilot/__init__.py b/notification/src/epilot/__init__.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/__init__.py b/notification/src/epilot/models/__init__.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/errors/__init__.py b/notification/src/epilot/models/errors/__init__.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/errors/sdkerror.py b/notification/src/epilot/models/errors/sdkerror.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/__init__.py b/notification/src/epilot/models/operations/__init__.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/shared/__init__.py b/notification/src/epilot/models/shared/__init__.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/models/shared/security.py b/notification/src/epilot/models/shared/security.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py old mode 100755 new mode 100644 index 34f47321d..6cfbc0b5d --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.34.1' - gen_version: str = '2.70.2' + sdk_version: str = '1.35.0' + gen_version: str = '2.71.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/notification/src/epilot/utils/__init__.py b/notification/src/epilot/utils/__init__.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/utils/retries.py b/notification/src/epilot/utils/retries.py old mode 100755 new mode 100644 diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py old mode 100755 new mode 100644 From 2a8c2709d51203bf19f7625c0edf0e120ba46497 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Jul 2023 01:21:49 +0000 Subject: [PATCH 54/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.0 --- notification/RELEASES.md | 8 +++++++- notification/USAGE.md | 0 .../docs/models/operations/createnotificationresponse.md | 0 .../docs/models/operations/getnotificationrequest.md | 0 .../docs/models/operations/getnotificationresponse.md | 0 .../operations/getnotifications200applicationjson.md | 0 .../docs/models/operations/getnotificationsrequest.md | 0 .../docs/models/operations/getnotificationsresponse.md | 0 .../docs/models/operations/gettotalunreadresponse.md | 0 .../docs/models/operations/markallasreadresponse.md | 0 notification/docs/models/operations/markasreadrequest.md | 0 notification/docs/models/operations/markasreadresponse.md | 0 notification/docs/models/shared/security.md | 0 notification/docs/sdks/epilot/README.md | 0 notification/docs/sdks/notification/README.md | 0 notification/gen.yaml | 6 +++--- notification/pylintrc | 0 notification/setup.py | 2 +- notification/src/epilot/__init__.py | 0 notification/src/epilot/models/__init__.py | 0 notification/src/epilot/models/errors/__init__.py | 0 notification/src/epilot/models/errors/sdkerror.py | 0 notification/src/epilot/models/operations/__init__.py | 0 .../src/epilot/models/operations/createnotification.py | 0 .../src/epilot/models/operations/getnotification.py | 0 .../src/epilot/models/operations/getnotifications.py | 0 .../src/epilot/models/operations/gettotalunread.py | 0 .../src/epilot/models/operations/markallasread.py | 0 notification/src/epilot/models/operations/markasread.py | 0 notification/src/epilot/models/shared/__init__.py | 0 notification/src/epilot/models/shared/security.py | 0 notification/src/epilot/notification.py | 0 notification/src/epilot/sdk.py | 0 notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/__init__.py | 0 notification/src/epilot/utils/retries.py | 0 notification/src/epilot/utils/utils.py | 0 37 files changed, 13 insertions(+), 7 deletions(-) mode change 100644 => 100755 notification/USAGE.md mode change 100644 => 100755 notification/docs/models/operations/createnotificationresponse.md mode change 100644 => 100755 notification/docs/models/operations/getnotificationrequest.md mode change 100644 => 100755 notification/docs/models/operations/getnotificationresponse.md mode change 100644 => 100755 notification/docs/models/operations/getnotifications200applicationjson.md mode change 100644 => 100755 notification/docs/models/operations/getnotificationsrequest.md mode change 100644 => 100755 notification/docs/models/operations/getnotificationsresponse.md mode change 100644 => 100755 notification/docs/models/operations/gettotalunreadresponse.md mode change 100644 => 100755 notification/docs/models/operations/markallasreadresponse.md mode change 100644 => 100755 notification/docs/models/operations/markasreadrequest.md mode change 100644 => 100755 notification/docs/models/operations/markasreadresponse.md mode change 100644 => 100755 notification/docs/models/shared/security.md mode change 100644 => 100755 notification/docs/sdks/epilot/README.md mode change 100644 => 100755 notification/docs/sdks/notification/README.md mode change 100644 => 100755 notification/pylintrc mode change 100644 => 100755 notification/setup.py mode change 100644 => 100755 notification/src/epilot/__init__.py mode change 100644 => 100755 notification/src/epilot/models/__init__.py mode change 100644 => 100755 notification/src/epilot/models/errors/__init__.py mode change 100644 => 100755 notification/src/epilot/models/errors/sdkerror.py mode change 100644 => 100755 notification/src/epilot/models/operations/__init__.py mode change 100644 => 100755 notification/src/epilot/models/operations/createnotification.py mode change 100644 => 100755 notification/src/epilot/models/operations/getnotification.py mode change 100644 => 100755 notification/src/epilot/models/operations/getnotifications.py mode change 100644 => 100755 notification/src/epilot/models/operations/gettotalunread.py mode change 100644 => 100755 notification/src/epilot/models/operations/markallasread.py mode change 100644 => 100755 notification/src/epilot/models/operations/markasread.py mode change 100644 => 100755 notification/src/epilot/models/shared/__init__.py mode change 100644 => 100755 notification/src/epilot/models/shared/security.py mode change 100644 => 100755 notification/src/epilot/notification.py mode change 100644 => 100755 notification/src/epilot/sdk.py mode change 100644 => 100755 notification/src/epilot/sdkconfiguration.py mode change 100644 => 100755 notification/src/epilot/utils/__init__.py mode change 100644 => 100755 notification/src/epilot/utils/retries.py mode change 100644 => 100755 notification/src/epilot/utils/utils.py diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 812bdd7ed..7fa5ba3be 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -352,4 +352,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:21:34 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/createnotificationresponse.md b/notification/docs/models/operations/createnotificationresponse.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/getnotificationrequest.md b/notification/docs/models/operations/getnotificationrequest.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/getnotifications200applicationjson.md b/notification/docs/models/operations/getnotifications200applicationjson.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/getnotificationsrequest.md b/notification/docs/models/operations/getnotificationsrequest.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/getnotificationsresponse.md b/notification/docs/models/operations/getnotificationsresponse.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/gettotalunreadresponse.md b/notification/docs/models/operations/gettotalunreadresponse.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/markallasreadresponse.md b/notification/docs/models/operations/markallasreadresponse.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/markasreadrequest.md b/notification/docs/models/operations/markasreadrequest.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/operations/markasreadresponse.md b/notification/docs/models/operations/markasreadresponse.md old mode 100644 new mode 100755 diff --git a/notification/docs/models/shared/security.md b/notification/docs/models/shared/security.md old mode 100644 new mode 100755 diff --git a/notification/docs/sdks/epilot/README.md b/notification/docs/sdks/epilot/README.md old mode 100644 new mode 100755 diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md old mode 100644 new mode 100755 diff --git a/notification/gen.yaml b/notification/gen.yaml index 644ef4bb0..b0ed837ef 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.35.0 + version: 1.36.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/pylintrc b/notification/pylintrc old mode 100644 new mode 100755 diff --git a/notification/setup.py b/notification/setup.py old mode 100644 new mode 100755 index f0dba61f7..9eabe6bf4 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.35.0", + version="1.36.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/__init__.py b/notification/src/epilot/__init__.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/__init__.py b/notification/src/epilot/models/__init__.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/errors/__init__.py b/notification/src/epilot/models/errors/__init__.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/errors/sdkerror.py b/notification/src/epilot/models/errors/sdkerror.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/__init__.py b/notification/src/epilot/models/operations/__init__.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/shared/__init__.py b/notification/src/epilot/models/shared/__init__.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/models/shared/security.py b/notification/src/epilot/models/shared/security.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py old mode 100644 new mode 100755 index 6cfbc0b5d..edb9950c4 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.35.0' - gen_version: str = '2.71.0' + sdk_version: str = '1.36.0' + gen_version: str = '2.73.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/notification/src/epilot/utils/__init__.py b/notification/src/epilot/utils/__init__.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/utils/retries.py b/notification/src/epilot/utils/retries.py old mode 100644 new mode 100755 diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py old mode 100644 new mode 100755 From 389afe31de4659c197d6af4fad7334c38412e023 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Jul 2023 01:11:45 +0000 Subject: [PATCH 55/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 7fa5ba3be..392ee1d2e 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -358,4 +358,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:11:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index b0ed837ef..60dae4dee 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.36.0 + version: 1.36.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 9eabe6bf4..6b068ce76 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.36.0", + version="1.36.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index edb9950c4..8dc7edde3 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.36.0' - gen_version: str = '2.73.0' + sdk_version: str = '1.36.1' + gen_version: str = '2.73.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 2676321d71613482cbf9518b0c7b4ede1c65932a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Jul 2023 01:13:02 +0000 Subject: [PATCH 56/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.2 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 392ee1d2e..07a7ed6d2 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -364,4 +364,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:12:49 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 60dae4dee..75f454318 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.36.1 + version: 1.37.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 6b068ce76..77dac0957 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.36.1", + version="1.37.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 8dc7edde3..cb5764616 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.36.1' - gen_version: str = '2.73.1' + sdk_version: str = '1.37.0' + gen_version: str = '2.75.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 258be9f2a6349141d4f5482ac8e605b06a913647 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Aug 2023 01:23:08 +0000 Subject: [PATCH 57/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.66.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 07a7ed6d2..a93aecca7 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -370,4 +370,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:22:51 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 75f454318..a3efb8b7b 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.37.0 + version: 1.37.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 77dac0957..d2fe9f2b3 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.37.0", + version="1.37.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index cb5764616..98c19921b 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.37.0' - gen_version: str = '2.75.1' + sdk_version: str = '1.37.1' + gen_version: str = '2.75.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 56e74c6a038a1eaefd472ee099f8e3453464a99e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Aug 2023 01:13:58 +0000 Subject: [PATCH 58/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index a93aecca7..3ce40dcb6 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -376,4 +376,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:13:43 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index a3efb8b7b..810f76392 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.37.1 + version: 1.38.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index d2fe9f2b3..808baf853 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.37.1", + version="1.38.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 98c19921b..7b834d447 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.37.1' - gen_version: str = '2.75.2' + sdk_version: str = '1.38.0' + gen_version: str = '2.77.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From d02f5b3aa4a8688cb03be0d92ee99600d89cfa62 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 4 Aug 2023 01:16:12 +0000 Subject: [PATCH 59/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.3 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 6 +++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/utils.py | 5 ++++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 3ce40dcb6..e9bdb7c60 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -382,4 +382,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:15:58 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 810f76392..3bac97539 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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.38.0 + version: 1.39.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 808baf853..4f3a72dac 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.38.0", + version="1.39.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 7b834d447..0d206658b 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.38.0' - gen_version: str = '2.77.1' + sdk_version: str = '1.39.0' + gen_version: str = '2.81.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 6b39ecf74..3456af651 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 f90b9c874f9c29dba06015deff27703a656c672e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 8 Aug 2023 01:12:26 +0000 Subject: [PATCH 60/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.69.1 --- notification/RELEASES.md | 8 +++++++- notification/gen.yaml | 11 ++++++++--- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index e9bdb7c60..9b8451c78 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -388,4 +388,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:12:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 3bac97539..cf1d1a5b7 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,14 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.39.0 + version: 1.40.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 4f3a72dac..364d49cce 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.39.0", + version="1.40.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 0d206658b..27c90d329 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.39.0' - gen_version: str = '2.81.1' + sdk_version: str = '1.40.0' + gen_version: str = '2.82.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From fc625c92103935e8e0f33be4a89e6bc0e180c283 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 15 Aug 2023 01:02:13 +0000 Subject: [PATCH 61/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.72.0 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 9b8451c78..3b75f1300 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -394,4 +394,12 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.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 01:01:58 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.0] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index cf1d1a5b7..2a5498eae 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.69.1 - generationVersion: 2.82.0 + speakeasyVersion: 1.72.0 + generationVersion: 2.84.1 generation: sdkClassName: epilot singleTagPerOp: false @@ -12,9 +12,9 @@ features: python: core: 2.82.0 globalSecurity: 2.81.1 - globalServerURLs: 2.81.1 + globalServerURLs: 2.82.0 python: - version: 1.40.0 + version: 1.41.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 364d49cce..b1e885b8b 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.40.0", + version="1.41.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 27c90d329..d64b9dab1 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.40.0' - gen_version: str = '2.82.0' + sdk_version: str = '1.41.0' + gen_version: str = '2.84.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From a3e6eb05cb0fc2c0f517a44a1c75e8be399e8510 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 19 Aug 2023 01:00:25 +0000 Subject: [PATCH 62/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.3 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/utils.py | 4 ++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 3b75f1300..409a42d4e 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -402,4 +402,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.0] notification \ No newline at end of file +- [python v1.41.0] notification + +## 2023-08-19 01:00:09 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.1] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 2a5498eae..ee42f456d 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.41.0 + version: 1.41.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index b1e885b8b..1f2cf3170 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.41.0", + version="1.41.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index d64b9dab1..aa01958f3 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.41.0' - gen_version: str = '2.84.1' + sdk_version: str = '1.41.1' + gen_version: str = '2.86.6' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 3456af651..ea9792d0d 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 f60dfb9823e7bd2f12fdb487bf516aa09aa4515a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 25 Aug 2023 01:03:39 +0000 Subject: [PATCH 63/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.11 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 409a42d4e..4cecaded2 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -410,4 +410,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.1] notification \ No newline at end of file +- [python v1.41.1] notification + +## 2023-08-25 01:03:23 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.2] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index ee42f456d..71c83a3d2 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.41.1 + version: 1.41.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 1f2cf3170..cba902856 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.41.1", + version="1.41.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index aa01958f3..8e6870cc0 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.41.1' - gen_version: str = '2.86.6' + sdk_version: str = '1.41.2' + gen_version: str = '2.87.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 68b81910313f6c5563735183c056f40a3ccdb77e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 26 Aug 2023 01:01:02 +0000 Subject: [PATCH 64/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.16 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 4cecaded2..52287aa54 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -418,4 +418,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.2] notification \ No newline at end of file +- [python v1.41.2] notification + +## 2023-08-26 01:00:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.0] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 71c83a3d2..a7e9e224b 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.41.2 + version: 1.42.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index cba902856..e05a12b27 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.41.2", + version="1.42.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 8e6870cc0..b698ac73c 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.41.2' - gen_version: str = '2.87.1' + sdk_version: str = '1.42.0' + gen_version: str = '2.88.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 70ff825cf427fd2acab79861d980d9c63ce8c8ff Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 29 Aug 2023 01:03:50 +0000 Subject: [PATCH 65/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.17 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/pylintrc | 2 +- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 52287aa54..9c18b0322 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -426,4 +426,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.0] notification \ No newline at end of file +- [python v1.42.0] notification + +## 2023-08-29 01:03:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.1] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index a7e9e224b..47463e5c8 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.42.0 + version: 1.42.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/pylintrc b/notification/pylintrc index 21a389459..ab6495dd6 100755 --- a/notification/pylintrc +++ b/notification/pylintrc @@ -621,7 +621,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/notification/setup.py b/notification/setup.py index e05a12b27..1d3dd0d18 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.42.0", + version="1.42.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index b698ac73c..e483faef9 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.42.0' - gen_version: str = '2.88.2' + sdk_version: str = '1.42.1' + gen_version: str = '2.88.5' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From ff2938fca73dde03ea2214acf89a300a706b8724 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 31 Aug 2023 01:03:54 +0000 Subject: [PATCH 66/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.76.1 --- notification/.gitattributes | 2 ++ notification/RELEASES.md | 10 +++++++++- notification/files.gen | 3 ++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 notification/.gitattributes diff --git a/notification/.gitattributes b/notification/.gitattributes new file mode 100755 index 000000000..4d75d5900 --- /dev/null +++ b/notification/.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/notification/RELEASES.md b/notification/RELEASES.md index 9c18b0322..2c122e8a9 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -434,4 +434,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.1] notification \ No newline at end of file +- [python v1.42.1] notification + +## 2023-08-31 01:03:39 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.0] notification \ No newline at end of file diff --git a/notification/files.gen b/notification/files.gen index b282ab072..c41fffcb0 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -32,4 +32,5 @@ docs/models/operations/gettotalunreadresponse.md docs/models/operations/markallasreadresponse.md docs/models/operations/markasreadrequest.md docs/models/operations/markasreadresponse.md -docs/models/shared/security.md \ No newline at end of file +docs/models/shared/security.md +.gitattributes \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 47463e5c8..83f6a3544 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.74.17 - generationVersion: 2.88.5 + speakeasyVersion: 1.76.1 + 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 python: - version: 1.42.1 + version: 1.43.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 1d3dd0d18..3b1bd3d65 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.42.1", + version="1.43.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index e483faef9..390f0aff9 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.42.1' - gen_version: str = '2.88.5' + sdk_version: str = '1.43.0' + gen_version: str = '2.89.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 7e75ee43513117c41b99e2bf3e1a5eb1876e9b62 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 1 Sep 2023 01:07:55 +0000 Subject: [PATCH 67/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.0 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 2c122e8a9..cbe910ecf 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -442,4 +442,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.0] notification \ No newline at end of file +- [python v1.43.0] notification + +## 2023-09-01 01:07:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.0] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 83f6a3544..246e7e4fa 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.76.1 - 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 python: - version: 1.43.0 + version: 1.44.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 3b1bd3d65..569cd221c 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.43.0", + version="1.44.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 390f0aff9..40030c4bf 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.43.0' - gen_version: str = '2.89.1' + sdk_version: str = '1.44.0' + gen_version: str = '2.91.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 5718da832b982babcad1c63cbc154f5d3cc19316 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 2 Sep 2023 01:01:36 +0000 Subject: [PATCH 68/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.2 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index cbe910ecf..61b03e5d0 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -450,4 +450,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.0] notification \ No newline at end of file +- [python v1.44.0] notification + +## 2023-09-02 01:01:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.1] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 246e7e4fa..92415138f 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.44.0 + version: 1.44.1 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 569cd221c..46b064c9d 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.44.0", + version="1.44.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 40030c4bf..2e9ea1df8 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.44.0' - gen_version: str = '2.91.2' + sdk_version: str = '1.44.1' + gen_version: str = '2.93.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From a1aa2e5611349fe4df0aebf2ce51341fd3862a56 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 5 Sep 2023 01:02:50 +0000 Subject: [PATCH 69/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.78.3 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/utils.py | 19 +++++++++++-------- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 61b03e5d0..0ac12cf6f 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -458,4 +458,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.1] notification \ No newline at end of file +- [python v1.44.1] notification + +## 2023-09-05 01:02:31 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.2] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 92415138f..7020019d2 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.44.1 + version: 1.44.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 46b064c9d..e94669308 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.44.1", + version="1.44.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 2e9ea1df8..db731288d 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.44.1' - gen_version: str = '2.93.0' + sdk_version: str = '1.44.2' + gen_version: str = '2.96.3' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index ea9792d0d..c91b0c049 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 c54b81b97a9e4c744241d5a6b3cdb635f38336fb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 12 Sep 2023 01:02:15 +0000 Subject: [PATCH 70/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.82.5 --- notification/README.md | 4 +-- notification/RELEASES.md | 10 +++++- notification/USAGE.md | 4 +-- notification/docs/sdks/notification/README.md | 13 +++----- notification/gen.yaml | 8 ++--- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 9 +++-- notification/src/epilot/sdkconfiguration.py | 7 ++-- notification/src/epilot/utils/utils.py | 33 ++++++++++++++++++- 9 files changed, 64 insertions(+), 26 deletions(-) diff --git a/notification/README.md b/notification/README.md index 6c0bdc9ee..575d102b3 100755 --- a/notification/README.md +++ b/notification/README.md @@ -23,9 +23,7 @@ s = epilot.Epilot( ) req = { - "provident": 'distinctio', - "quibusdam": 'unde', - "nulla": 'corrupti', + "corrupti": 'provident', } res = s.notification.create_notification(req) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 0ac12cf6f..cb59fbb16 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -466,4 +466,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.2] notification \ No newline at end of file +- [python v1.44.2] notification + +## 2023-09-12 01:02:00 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.3] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 6d8112db4..49692f741 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -12,9 +12,7 @@ s = epilot.Epilot( ) req = { - "provident": 'distinctio', - "quibusdam": 'unde', - "nulla": 'corrupti', + "corrupti": 'provident', } res = s.notification.create_notification(req) diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index b98cb54c1..892542d94 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -30,10 +30,7 @@ s = epilot.Epilot( ) req = { - "vel": 'error', - "deserunt": 'suscipit', - "iure": 'magnam', - "debitis": 'ipsa', + "distinctio": 'quibusdam', } res = s.notification.create_notification(req) @@ -71,7 +68,7 @@ s = epilot.Epilot( ) req = operations.GetNotificationRequest( - id=9636.63, + id=6027.63, ) res = s.notification.get_notification(req) @@ -109,8 +106,8 @@ s = epilot.Epilot( ) req = operations.GetNotificationsRequest( - after_id=272656, - limit=383441, + after_id=857946, + limit=544883, ) res = s.notification.get_notifications(req) @@ -206,7 +203,7 @@ s = epilot.Epilot( ) req = operations.MarkAsReadRequest( - id=477665, + id=847252, ) res = s.notification.mark_as_read(req) diff --git a/notification/gen.yaml b/notification/gen.yaml index 7020019d2..fe2d84c17 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.44.2 + version: 1.44.3 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index e94669308..4db85df7e 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.44.2", + version="1.44.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index cc6e96329..ece484307 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/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. @@ -31,7 +32,9 @@ def __init__(self, :param url_params: Parameters to optionally template the server URL with :type url_params: dict[str, str] :param client: The requests.Session HTTP client to use for all operations - :type client: requests_http.Session + :type client: requests_http.Session + :param retry_config: The utils.RetryConfig to use globally + :type retry_config: utils.RetryConfig """ if client is None: client = requests_http.Session() @@ -42,7 +45,7 @@ def __init__(self, if url_params is not None: server_url = utils.template_url(server_url, url_params) - self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx) + self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx, retry_config=retry_config) self._init_sdks() diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index db731288d..cd4e0ab8a 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -3,6 +3,8 @@ import requests from dataclasses import dataclass +from .utils.retries import RetryConfig + SERVERS = [ 'https://notification.sls.epilot.io', @@ -17,8 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.44.2' - gen_version: str = '2.96.3' + sdk_version: str = '1.44.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/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index c91b0c049..05eafba6c 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 51ee79d1ed1c0896a3d75d8fa5fefa54198a0812 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 16 Sep 2023 01:02:46 +0000 Subject: [PATCH 71/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.86.0 --- notification/README.md | 2 +- notification/RELEASES.md | 10 +++++++++- notification/docs/sdks/notification/README.md | 2 +- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/notification/README.md b/notification/README.md index 575d102b3..3ad964fc5 100755 --- a/notification/README.md +++ b/notification/README.md @@ -37,7 +37,7 @@ if res.status_code == 200: ## Available Resources and Operations -### [notification](docs/sdks/notification/README.md) +### [Notification](docs/sdks/notification/README.md) * [create_notification](docs/sdks/notification/README.md#create_notification) - createNotification * [get_notification](docs/sdks/notification/README.md#get_notification) - getNotification diff --git a/notification/RELEASES.md b/notification/RELEASES.md index cb59fbb16..3c82e3794 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -474,4 +474,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.3] notification \ No newline at end of file +- [python v1.44.3] notification + +## 2023-09-16 01:02:32 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.4] notification \ No newline at end of file diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index 892542d94..b9fb188ed 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -1,4 +1,4 @@ -# notification +# Notification ## Overview diff --git a/notification/gen.yaml b/notification/gen.yaml index fe2d84c17..27c120f11 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.44.3 + version: 1.44.4 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index 4db85df7e..d453d9f84 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.44.3", + version="1.44.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index cd4e0ab8a..ebd7e4929 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.44.3' - gen_version: str = '2.108.3' + sdk_version: str = '1.44.4' + gen_version: str = '2.115.2' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 64f73dc9a5d510b11a587939de8cf30cc8a47089 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 20 Sep 2023 01:04:34 +0000 Subject: [PATCH 72/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.88.0 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 3c82e3794..eab2324fc 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -482,4 +482,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.4] notification \ No newline at end of file +- [python v1.44.4] notification + +## 2023-09-20 01:04:15 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.5] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 27c120f11..b57db87de 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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 python: - version: 1.44.4 + version: 1.44.5 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index d453d9f84..d6298241e 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.44.4", + version="1.44.5", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index ebd7e4929..4678985d2 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.44.4' - gen_version: str = '2.115.2' + sdk_version: str = '1.44.5' + gen_version: str = '2.118.1' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From a64de49210febb11308c1d47999e4f373ade36d6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 26 Sep 2023 01:05:12 +0000 Subject: [PATCH 73/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.0 --- notification/README.md | 30 +++++++++++++++++-- notification/RELEASES.md | 10 ++++++- .../operations/createnotificationresponse.md | 6 ++-- .../operations/getnotificationresponse.md | 6 ++-- .../operations/getnotificationsresponse.md | 6 ++-- .../operations/gettotalunreadresponse.md | 6 ++-- .../operations/markallasreadresponse.md | 6 ++-- .../models/operations/markasreadresponse.md | 6 ++-- notification/docs/sdks/notification/README.md | 10 +++---- notification/files.gen | 4 +-- notification/gen.yaml | 8 ++--- notification/setup.py | 2 +- .../models/operations/createnotification.py | 3 ++ .../models/operations/getnotification.py | 3 ++ .../models/operations/getnotifications.py | 3 ++ .../models/operations/gettotalunread.py | 3 ++ .../epilot/models/operations/markallasread.py | 3 ++ .../epilot/models/operations/markasread.py | 3 ++ notification/src/epilot/sdkconfiguration.py | 4 +-- 19 files changed, 86 insertions(+), 36 deletions(-) diff --git a/notification/README.md b/notification/README.md index 3ad964fc5..f9d2ab78a 100755 --- a/notification/README.md +++ b/notification/README.md @@ -10,8 +10,6 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=notifi ## SDK Example Usage - - ```python import epilot from epilot.models import shared @@ -23,7 +21,7 @@ s = epilot.Epilot( ) req = { - "corrupti": 'provident', + "distinctio": 'quibusdam', } res = s.notification.create_notification(req) @@ -47,4 +45,30 @@ if res.status_code == 200: * [mark_as_read](docs/sdks/notification/README.md#mark_as_read) - markAsRead + + + + + + + + + + + +# 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/notification/RELEASES.md b/notification/RELEASES.md index eab2324fc..ed463ae84 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -490,4 +490,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.5] notification \ No newline at end of file +- [python v1.44.5] notification + +## 2023-09-26 01:04:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.0] notification \ No newline at end of file diff --git a/notification/docs/models/operations/createnotificationresponse.md b/notification/docs/models/operations/createnotificationresponse.md index 659dff1e8..d61b506b4 100755 --- a/notification/docs/models/operations/createnotificationresponse.md +++ b/notification/docs/models/operations/createnotificationresponse.md @@ -5,6 +5,6 @@ | 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 | \ No newline at end of file +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md index 3f0462a21..6e698642a 100755 --- a/notification/docs/models/operations/getnotificationresponse.md +++ b/notification/docs/models/operations/getnotificationresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `notification_item` | dict[str, *Any*] | :heavy_minus_sign: | Success | -| `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 | \ No newline at end of file +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationsresponse.md b/notification/docs/models/operations/getnotificationsresponse.md index 94d8caf5e..7d3b67ee0 100755 --- a/notification/docs/models/operations/getnotificationsresponse.md +++ b/notification/docs/models/operations/getnotificationsresponse.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_notifications_200_application_json_object` | [Optional[GetNotifications200ApplicationJSON]](../../models/operations/getnotifications200applicationjson.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/gettotalunreadresponse.md b/notification/docs/models/operations/gettotalunreadresponse.md index d3b574938..47cf5943a 100755 --- a/notification/docs/models/operations/gettotalunreadresponse.md +++ b/notification/docs/models/operations/gettotalunreadresponse.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_total_unread_200_text_plain_number` | *Optional[str]* | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/markallasreadresponse.md b/notification/docs/models/operations/markallasreadresponse.md index 6d2250081..b268b50ef 100755 --- a/notification/docs/models/operations/markallasreadresponse.md +++ b/notification/docs/models/operations/markallasreadresponse.md @@ -5,6 +5,6 @@ | 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 | \ No newline at end of file +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadresponse.md b/notification/docs/models/operations/markasreadresponse.md index d78c1d297..e43c8f227 100755 --- a/notification/docs/models/operations/markasreadresponse.md +++ b/notification/docs/models/operations/markasreadresponse.md @@ -5,6 +5,6 @@ | 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 | \ No newline at end of file +| `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 | \ No newline at end of file diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index b9fb188ed..e92bda67c 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -30,7 +30,7 @@ s = epilot.Epilot( ) req = { - "distinctio": 'quibusdam', + "unde": 'nulla', } res = s.notification.create_notification(req) @@ -68,7 +68,7 @@ s = epilot.Epilot( ) req = operations.GetNotificationRequest( - id=6027.63, + id=5448.83, ) res = s.notification.get_notification(req) @@ -106,8 +106,8 @@ s = epilot.Epilot( ) req = operations.GetNotificationsRequest( - after_id=857946, - limit=544883, + after_id=847252, + limit=423655, ) res = s.notification.get_notifications(req) @@ -203,7 +203,7 @@ s = epilot.Epilot( ) req = operations.MarkAsReadRequest( - id=847252, + id=623564, ) res = s.notification.mark_as_read(req) diff --git a/notification/files.gen b/notification/files.gen index c41fffcb0..2612a946c 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -19,8 +19,6 @@ 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 -docs/sdks/notification/README.md USAGE.md docs/models/operations/createnotificationresponse.md docs/models/operations/getnotificationrequest.md @@ -33,4 +31,6 @@ docs/models/operations/markallasreadresponse.md docs/models/operations/markasreadrequest.md docs/models/operations/markasreadresponse.md docs/models/shared/security.md +docs/sdks/epilot/README.md +docs/sdks/notification/README.md .gitattributes \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index b57db87de..61e07f779 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.88.0 - generationVersion: 2.118.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.5 + version: 1.45.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/notification/setup.py b/notification/setup.py index d6298241e..ea977ff29 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.44.5", + version="1.45.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py index 89913ce8f..5f8721a03 100755 --- a/notification/src/epilot/models/operations/createnotification.py +++ b/notification/src/epilot/models/operations/createnotification.py @@ -10,7 +10,10 @@ @dataclasses.dataclass class CreateNotificationResponse: 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""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py index 278bc251f..16c14d8e7 100755 --- a/notification/src/epilot/models/operations/getnotification.py +++ b/notification/src/epilot/models/operations/getnotification.py @@ -19,9 +19,12 @@ class GetNotificationRequest: @dataclasses.dataclass class GetNotificationResponse: 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""" notification_item: Optional[dict[str, Any]] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py index 0eb93232d..8539d5b87 100755 --- a/notification/src/epilot/models/operations/getnotifications.py +++ b/notification/src/epilot/models/operations/getnotifications.py @@ -34,9 +34,12 @@ class GetNotifications200ApplicationJSON: @dataclasses.dataclass class GetNotificationsResponse: 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_notifications_200_application_json_object: Optional[GetNotifications200ApplicationJSON] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py index dfdb9491a..9484bd392 100755 --- a/notification/src/epilot/models/operations/gettotalunread.py +++ b/notification/src/epilot/models/operations/gettotalunread.py @@ -10,9 +10,12 @@ @dataclasses.dataclass class GetTotalUnreadResponse: 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_total_unread_200_text_plain_number: Optional[str] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py index 3d54b5ae5..ee1a32fbb 100755 --- a/notification/src/epilot/models/operations/markallasread.py +++ b/notification/src/epilot/models/operations/markallasread.py @@ -10,7 +10,10 @@ @dataclasses.dataclass class MarkAllAsReadResponse: 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""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py index 360b95d2a..f24362733 100755 --- a/notification/src/epilot/models/operations/markasread.py +++ b/notification/src/epilot/models/operations/markasread.py @@ -19,7 +19,10 @@ class MarkAsReadRequest: @dataclasses.dataclass class MarkAsReadResponse: 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""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 4678985d2..7b567ac3f 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.44.5' - gen_version: str = '2.118.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 9885ddbdf6e20ec1394ed0cdbf41d44ce186192e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Sep 2023 01:05:13 +0000 Subject: [PATCH 74/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.2 --- notification/README.md | 6 +----- notification/RELEASES.md | 10 +++++++++- notification/docs/sdks/epilot/README.md | 1 + notification/docs/sdks/notification/README.md | 1 + notification/gen.yaml | 8 ++++---- notification/setup.py | 4 ++-- notification/src/epilot/sdkconfiguration.py | 4 ++-- notification/src/epilot/utils/utils.py | 8 ++++++++ 8 files changed, 28 insertions(+), 14 deletions(-) diff --git a/notification/README.md b/notification/README.md index f9d2ab78a..304e024da 100755 --- a/notification/README.md +++ b/notification/README.md @@ -35,7 +35,7 @@ if res.status_code == 200: ## Available Resources and Operations -### [Notification](docs/sdks/notification/README.md) +### [notification](docs/sdks/notification/README.md) * [create_notification](docs/sdks/notification/README.md#create_notification) - createNotification * [get_notification](docs/sdks/notification/README.md#get_notification) - getNotification @@ -49,8 +49,6 @@ if res.status_code == 200: - - @@ -63,8 +61,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/notification/RELEASES.md b/notification/RELEASES.md index ed463ae84..a9db380ea 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -498,4 +498,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.0] notification \ No newline at end of file +- [python v1.45.0] notification + +## 2023-09-27 01:04:58 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.1] notification \ No newline at end of file diff --git a/notification/docs/sdks/epilot/README.md b/notification/docs/sdks/epilot/README.md index 6e65d6e34..c6b199fd8 100755 --- a/notification/docs/sdks/epilot/README.md +++ b/notification/docs/sdks/epilot/README.md @@ -1,5 +1,6 @@ # Epilot SDK + ## Overview Notification API: Notification API for epilot 360 diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index e92bda67c..afe8feb2b 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -1,4 +1,5 @@ # Notification +(*notification*) ## Overview diff --git a/notification/gen.yaml b/notification/gen.yaml index 61e07f779..67326194a 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index ea977ff29..a39ca75b2 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - 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/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 7b567ac3f..04c3da9a4 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,8 +19,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 05eafba6c..b0aeb54de 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 9f06a0028ac099ead70c32c79ec216232b33731d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 29 Sep 2023 01:04:51 +0000 Subject: [PATCH 75/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.3 --- notification/README.md | 2 +- notification/RELEASES.md | 10 ++- notification/USAGE.md | 2 +- .../operations/createnotificationresponse.md | 4 +- .../operations/getnotificationrequest.md | 2 +- .../operations/getnotificationresponse.md | 4 +- .../operations/getnotificationsresponse.md | 12 +-- .../operations/gettotalunreadresponse.md | 4 +- .../operations/markallasreadresponse.md | 4 +- .../models/operations/markasreadrequest.md | 2 +- .../models/operations/markasreadresponse.md | 4 +- notification/docs/models/shared/security.md | 2 +- notification/docs/sdks/notification/README.md | 10 +-- notification/gen.yaml | 8 +- notification/pylintrc | 4 +- notification/setup.py | 2 +- notification/src/epilot/notification.py | 14 ++-- notification/src/epilot/sdkconfiguration.py | 5 +- notification/src/epilot/utils/utils.py | 79 ++++++++++++++++--- 19 files changed, 121 insertions(+), 53 deletions(-) diff --git a/notification/README.md b/notification/README.md index 304e024da..ebdaf7a9f 100755 --- a/notification/README.md +++ b/notification/README.md @@ -21,7 +21,7 @@ s = epilot.Epilot( ) req = { - "distinctio": 'quibusdam', + "facere": 'Product', } res = s.notification.create_notification(req) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index a9db380ea..ea4255a29 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -506,4 +506,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.1] notification \ No newline at end of file +- [python v1.45.1] notification + +## 2023-09-29 01:04:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.46.0] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 49692f741..4c61d5962 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -12,7 +12,7 @@ s = epilot.Epilot( ) req = { - "corrupti": 'provident', + "facere": 'Product', } res = s.notification.create_notification(req) diff --git a/notification/docs/models/operations/createnotificationresponse.md b/notification/docs/models/operations/createnotificationresponse.md index d61b506b4..b8a8b9c9f 100755 --- a/notification/docs/models/operations/createnotificationresponse.md +++ b/notification/docs/models/operations/createnotificationresponse.md @@ -5,6 +5,6 @@ | 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 | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationrequest.md b/notification/docs/models/operations/getnotificationrequest.md index 835819387..bc151fcb7 100755 --- a/notification/docs/models/operations/getnotificationrequest.md +++ b/notification/docs/models/operations/getnotificationrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *float* | :heavy_check_mark: | Notification Id | \ No newline at end of file +| `id` | *Optional[float]* | :heavy_check_mark: | Notification Id | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md index 6e698642a..60772821f 100755 --- a/notification/docs/models/operations/getnotificationresponse.md +++ b/notification/docs/models/operations/getnotificationresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | | `notification_item` | dict[str, *Any*] | :heavy_minus_sign: | Success | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code 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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationsresponse.md b/notification/docs/models/operations/getnotificationsresponse.md index 7d3b67ee0..9c91249c7 100755 --- a/notification/docs/models/operations/getnotificationsresponse.md +++ b/notification/docs/models/operations/getnotificationsresponse.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_notifications_200_application_json_object` | [Optional[GetNotifications200ApplicationJSON]](../../models/operations/getnotifications200applicationjson.md) | :heavy_minus_sign: | Success | \ 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_notifications_200_application_json_object` | [Optional[operations.GetNotifications200ApplicationJSON]](undefined/models/operations/getnotifications200applicationjson.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/gettotalunreadresponse.md b/notification/docs/models/operations/gettotalunreadresponse.md index 47cf5943a..2c328abb1 100755 --- a/notification/docs/models/operations/gettotalunreadresponse.md +++ b/notification/docs/models/operations/gettotalunreadresponse.md @@ -5,7 +5,7 @@ | 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 | +| `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_total_unread_200_text_plain_number` | *Optional[str]* | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/markallasreadresponse.md b/notification/docs/models/operations/markallasreadresponse.md index b268b50ef..6c63aaa92 100755 --- a/notification/docs/models/operations/markallasreadresponse.md +++ b/notification/docs/models/operations/markallasreadresponse.md @@ -5,6 +5,6 @@ | 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 | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadrequest.md b/notification/docs/models/operations/markasreadrequest.md index bde6aaffe..61d665fa5 100755 --- a/notification/docs/models/operations/markasreadrequest.md +++ b/notification/docs/models/operations/markasreadrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `id` | *int* | :heavy_check_mark: | Numeric ID of the notification to mark as read | \ No newline at end of file +| `id` | *Optional[int]* | :heavy_check_mark: | Numeric ID of the notification to mark as read | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadresponse.md b/notification/docs/models/operations/markasreadresponse.md index e43c8f227..b94363545 100755 --- a/notification/docs/models/operations/markasreadresponse.md +++ b/notification/docs/models/operations/markasreadresponse.md @@ -5,6 +5,6 @@ | 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 | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/shared/security.md b/notification/docs/models/shared/security.md index f06333390..9e84312f5 100755 --- a/notification/docs/models/shared/security.md +++ b/notification/docs/models/shared/security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `epilot_auth` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `epilot_auth` | *Optional[str]* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index afe8feb2b..70eacd6ba 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -31,7 +31,7 @@ s = epilot.Epilot( ) req = { - "unde": 'nulla', + "facere": 'Product', } res = s.notification.create_notification(req) @@ -69,7 +69,7 @@ s = epilot.Epilot( ) req = operations.GetNotificationRequest( - id=5448.83, + id=3493.28, ) res = s.notification.get_notification(req) @@ -107,8 +107,8 @@ s = epilot.Epilot( ) req = operations.GetNotificationsRequest( - after_id=847252, - limit=423655, + after_id=436719, + limit=707368, ) res = s.notification.get_notifications(req) @@ -204,7 +204,7 @@ s = epilot.Epilot( ) req = operations.MarkAsReadRequest( - id=623564, + id=883397, ) res = s.notification.mark_as_read(req) diff --git a/notification/gen.yaml b/notification/gen.yaml index 67326194a..05ecf4f3b 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/pylintrc b/notification/pylintrc index ab6495dd6..2a6cf6912 100755 --- a/notification/pylintrc +++ b/notification/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/notification/setup.py b/notification/setup.py index a39ca75b2..96422c0e5 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.45.1", + version="1.46.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index dbbb76ae5..60519d163 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -21,11 +21,11 @@ def create_notification(self, request: dict[str, Any]) -> operations.CreateNotif url = base_url + '/v1/notification/notifications' 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'] = '*/*' - 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 @@ -47,7 +47,7 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat url = utils.generate_url(operations.GetNotificationRequest, base_url, '/v1/notification/notifications/{id}', request) 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 @@ -76,7 +76,7 @@ def get_notifications(self, request: operations.GetNotificationsRequest) -> oper headers = {} query_params = utils.get_query_params(operations.GetNotificationsRequest, request) 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 @@ -104,7 +104,7 @@ def get_total_unread(self) -> operations.GetTotalUnreadResponse: url = base_url + '/v1/notification/unreads' headers = {} headers['Accept'] = 'text/plain' - 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 @@ -131,7 +131,7 @@ def mark_all_as_read(self) -> operations.MarkAllAsReadResponse: url = base_url + '/v1/notification/notifications/mark' headers = {} headers['Accept'] = '*/*' - 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 @@ -153,7 +153,7 @@ def mark_as_read(self, request: operations.MarkAsReadRequest) -> operations.Mark url = utils.generate_url(operations.MarkAsReadRequest, base_url, '/v1/notification/notifications/{id}/mark', request) headers = {} headers['Accept'] = '*/*' - 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/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 04c3da9a4..04e2f595a 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,8 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - 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 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index b0aeb54de..4388f3b74 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 1394f4b01e02051e8465793ac1d63543129dc990 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 1 Oct 2023 01:13:13 +0000 Subject: [PATCH 76/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.2 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index ea4255a29..602429613 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -514,4 +514,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.46.0] notification \ No newline at end of file +- [python v1.46.0] notification + +## 2023-10-01 01:12:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.0] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 05ecf4f3b..54ba28aee 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 96422c0e5..a0fae529c 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.46.0", + version="1.47.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 04e2f595a..7712e43f5 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.46.0' - gen_version: str = '2.139.1' - user_agent: str = 'speakeasy-sdk/python 1.46.0 2.139.1 1.0.0 epilot-notification' + sdk_version: str = '1.47.0' + gen_version: str = '2.142.2' + user_agent: str = 'speakeasy-sdk/python 1.47.0 2.142.2 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 383384c7395f8b233c60db3a3565763bf6119a84 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 2 Oct 2023 01:05:33 +0000 Subject: [PATCH 77/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.3 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 602429613..330c34fcf 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -522,4 +522,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.0] notification \ No newline at end of file +- [python v1.47.0] notification + +## 2023-10-02 01:05:17 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.1] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 54ba28aee..8b429002c 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index a0fae529c..bc0fd9379 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.47.0", + version="1.47.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 7712e43f5..588325f98 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.47.0' - gen_version: str = '2.142.2' - user_agent: str = 'speakeasy-sdk/python 1.47.0 2.142.2 1.0.0 epilot-notification' + sdk_version: str = '1.47.1' + gen_version: str = '2.143.2' + user_agent: str = 'speakeasy-sdk/python 1.47.1 2.143.2 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 7c4f59b247a2a00119e8e4e06bb8a4441c057837 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 5 Oct 2023 01:05:22 +0000 Subject: [PATCH 78/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.94.0 --- notification/RELEASES.md | 10 +++++++++- notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 330c34fcf..0fe7d92a3 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -530,4 +530,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.1] notification \ No newline at end of file +- [python v1.47.1] notification + +## 2023-10-05 01:05:02 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.2] notification \ No newline at end of file diff --git a/notification/gen.yaml b/notification/gen.yaml index 8b429002c..f00dfedf8 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index bc0fd9379..0bd74da36 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.47.1", + version="1.47.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 588325f98..d4add919e 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.47.1' - gen_version: str = '2.143.2' - user_agent: str = 'speakeasy-sdk/python 1.47.1 2.143.2 1.0.0 epilot-notification' + sdk_version: str = '1.47.2' + gen_version: str = '2.147.0' + user_agent: str = 'speakeasy-sdk/python 1.47.2 2.147.0 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From d6ba359db90586aeee97a15c03965718afa343dc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 7 Oct 2023 01:04:25 +0000 Subject: [PATCH 79/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.96.1 --- notification/README.md | 2 +- notification/RELEASES.md | 10 +++++++++- notification/USAGE.md | 2 +- notification/docs/sdks/notification/README.md | 7 ++----- notification/gen.yaml | 11 ++++++----- notification/setup.py | 2 +- notification/src/epilot/models/__init__.py | 1 + notification/src/epilot/sdk.py | 8 +++++--- notification/src/epilot/sdkconfiguration.py | 6 +++--- 9 files changed, 29 insertions(+), 20 deletions(-) diff --git a/notification/README.md b/notification/README.md index ebdaf7a9f..884c8d6bf 100755 --- a/notification/README.md +++ b/notification/README.md @@ -21,7 +21,7 @@ s = epilot.Epilot( ) req = { - "facere": 'Product', + "Gasoline": 'on', } res = s.notification.create_notification(req) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index 0fe7d92a3..e0f44e5ae 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -538,4 +538,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.2] notification \ No newline at end of file +- [python v1.47.2] notification + +## 2023-10-07 01:04:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.0] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 4c61d5962..4828ea82f 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -12,7 +12,7 @@ s = epilot.Epilot( ) req = { - "facere": 'Product', + "Gasoline": 'on', } res = s.notification.create_notification(req) diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index 70eacd6ba..26a3f0348 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -31,7 +31,7 @@ s = epilot.Epilot( ) req = { - "facere": 'Product', + "Gasoline": 'on', } res = s.notification.create_notification(req) @@ -106,10 +106,7 @@ s = epilot.Epilot( ), ) -req = operations.GetNotificationsRequest( - after_id=436719, - limit=707368, -) +req = operations.GetNotificationsRequest() res = s.notification.get_notifications(req) diff --git a/notification/gen.yaml b/notification/gen.yaml index f00dfedf8..618f2ff4c 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,20 +2,21 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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-notification diff --git a/notification/setup.py b/notification/setup.py index 0bd74da36..1ff246f60 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.47.2", + version="1.48.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/models/__init__.py b/notification/src/epilot/models/__init__.py index 889f8adcf..36628d6cc 100755 --- a/notification/src/epilot/models/__init__.py +++ b/notification/src/epilot/models/__init__.py @@ -1,2 +1,3 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +# __init__.py diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index ece484307..f1a795118 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -14,7 +14,7 @@ class Epilot: sdk_configuration: SDKConfiguration def __init__(self, - security: shared.Security = None, + epilot_auth: str, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -23,8 +23,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 epilot_auth: The epilot_auth required for authentication + :type epilot_auth: 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 @@ -39,8 +39,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/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index d4add919e..c9ea2a58b 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.47.2' - gen_version: str = '2.147.0' - user_agent: str = 'speakeasy-sdk/python 1.47.2 2.147.0 1.0.0 epilot-notification' + sdk_version: str = '1.48.0' + gen_version: str = '2.150.0' + user_agent: str = 'speakeasy-sdk/python 1.48.0 2.150.0 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 0135e3195fe0b97e1b503cbf48dc4fd1ec297359 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 13 Oct 2023 01:07:04 +0000 Subject: [PATCH 80/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.99.1 --- notification/README.md | 1 + notification/RELEASES.md | 10 +++++++++- notification/USAGE.md | 1 + .../models/operations/createnotificationresponse.md | 4 ++-- .../docs/models/operations/getnotificationrequest.md | 2 +- .../models/operations/getnotificationresponse.md | 4 ++-- .../models/operations/getnotificationsresponse.md | 12 ++++++------ .../docs/models/operations/gettotalunreadresponse.md | 4 ++-- .../docs/models/operations/markallasreadresponse.md | 4 ++-- .../docs/models/operations/markasreadrequest.md | 2 +- .../docs/models/operations/markasreadresponse.md | 4 ++-- notification/docs/models/shared/security.md | 2 +- notification/docs/sdks/notification/README.md | 6 ++++++ notification/gen.yaml | 8 ++++---- notification/setup.py | 2 +- notification/src/epilot/sdk.py | 6 +++--- notification/src/epilot/sdkconfiguration.py | 6 +++--- 17 files changed, 47 insertions(+), 31 deletions(-) diff --git a/notification/README.md b/notification/README.md index 884c8d6bf..86826d869 100755 --- a/notification/README.md +++ b/notification/README.md @@ -28,6 +28,7 @@ res = s.notification.create_notification(req) if res.status_code == 200: # handle response + pass ``` diff --git a/notification/RELEASES.md b/notification/RELEASES.md index e0f44e5ae..a98720759 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -546,4 +546,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.0] notification \ No newline at end of file +- [python v1.48.0] notification + +## 2023-10-13 01:06:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.1] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 4828ea82f..ee5652bac 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -19,5 +19,6 @@ res = s.notification.create_notification(req) if res.status_code == 200: # handle response + pass ``` \ No newline at end of file diff --git a/notification/docs/models/operations/createnotificationresponse.md b/notification/docs/models/operations/createnotificationresponse.md index b8a8b9c9f..d61b506b4 100755 --- a/notification/docs/models/operations/createnotificationresponse.md +++ b/notification/docs/models/operations/createnotificationresponse.md @@ -5,6 +5,6 @@ | 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 | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationrequest.md b/notification/docs/models/operations/getnotificationrequest.md index bc151fcb7..835819387 100755 --- a/notification/docs/models/operations/getnotificationrequest.md +++ b/notification/docs/models/operations/getnotificationrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *Optional[float]* | :heavy_check_mark: | Notification Id | \ No newline at end of file +| `id` | *float* | :heavy_check_mark: | Notification Id | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md index 60772821f..6e698642a 100755 --- a/notification/docs/models/operations/getnotificationresponse.md +++ b/notification/docs/models/operations/getnotificationresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `notification_item` | dict[str, *Any*] | :heavy_minus_sign: | Success | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code 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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotificationsresponse.md b/notification/docs/models/operations/getnotificationsresponse.md index 9c91249c7..7d3b67ee0 100755 --- a/notification/docs/models/operations/getnotificationsresponse.md +++ b/notification/docs/models/operations/getnotificationsresponse.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_notifications_200_application_json_object` | [Optional[operations.GetNotifications200ApplicationJSON]](undefined/models/operations/getnotifications200applicationjson.md) | :heavy_minus_sign: | Success | \ 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_notifications_200_application_json_object` | [Optional[GetNotifications200ApplicationJSON]](../../models/operations/getnotifications200applicationjson.md) | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/gettotalunreadresponse.md b/notification/docs/models/operations/gettotalunreadresponse.md index 2c328abb1..47cf5943a 100755 --- a/notification/docs/models/operations/gettotalunreadresponse.md +++ b/notification/docs/models/operations/gettotalunreadresponse.md @@ -5,7 +5,7 @@ | 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 | +| `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_total_unread_200_text_plain_number` | *Optional[str]* | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/notification/docs/models/operations/markallasreadresponse.md b/notification/docs/models/operations/markallasreadresponse.md index 6c63aaa92..b268b50ef 100755 --- a/notification/docs/models/operations/markallasreadresponse.md +++ b/notification/docs/models/operations/markallasreadresponse.md @@ -5,6 +5,6 @@ | 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 | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadrequest.md b/notification/docs/models/operations/markasreadrequest.md index 61d665fa5..bde6aaffe 100755 --- a/notification/docs/models/operations/markasreadrequest.md +++ b/notification/docs/models/operations/markasreadrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `id` | *Optional[int]* | :heavy_check_mark: | Numeric ID of the notification to mark as read | \ No newline at end of file +| `id` | *int* | :heavy_check_mark: | Numeric ID of the notification to mark as read | \ No newline at end of file diff --git a/notification/docs/models/operations/markasreadresponse.md b/notification/docs/models/operations/markasreadresponse.md index b94363545..e43c8f227 100755 --- a/notification/docs/models/operations/markasreadresponse.md +++ b/notification/docs/models/operations/markasreadresponse.md @@ -5,6 +5,6 @@ | 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 | +| `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 | \ No newline at end of file diff --git a/notification/docs/models/shared/security.md b/notification/docs/models/shared/security.md index 9e84312f5..f06333390 100755 --- a/notification/docs/models/shared/security.md +++ b/notification/docs/models/shared/security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `epilot_auth` | *Optional[str]* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `epilot_auth` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index 26a3f0348..8ca1d0d3e 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -38,6 +38,7 @@ res = s.notification.create_notification(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -76,6 +77,7 @@ res = s.notification.get_notification(req) if res.notification_item is not None: # handle response + pass ``` ### Parameters @@ -112,6 +114,7 @@ res = s.notification.get_notifications(req) if res.get_notifications_200_application_json_object is not None: # handle response + pass ``` ### Parameters @@ -147,6 +150,7 @@ res = s.notification.get_total_unread() if res.get_total_unread_200_text_plain_number is not None: # handle response + pass ``` @@ -176,6 +180,7 @@ res = s.notification.mark_all_as_read() if res.status_code == 200: # handle response + pass ``` @@ -208,6 +213,7 @@ res = s.notification.mark_as_read(req) if res.status_code == 200: # handle response + pass ``` ### Parameters diff --git a/notification/gen.yaml b/notification/gen.yaml index 618f2ff4c..b54f4c7e3 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.96.1 - generationVersion: 2.150.0 + speakeasyVersion: 1.99.1 + 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/notification/setup.py b/notification/setup.py index 1ff246f60..52f5e0c30 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="1.48.0", + version="1.48.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index f1a795118..a4a9758bb 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -14,7 +14,7 @@ class Epilot: sdk_configuration: SDKConfiguration def __init__(self, - epilot_auth: str, + security: shared.Security = None, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -23,8 +23,8 @@ def __init__(self, ) -> None: """Instantiates the SDK configuring it with the provided parameters. - :param epilot_auth: The epilot_auth required for authentication - :type epilot_auth: 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/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index c9ea2a58b..5d68880ea 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -19,9 +19,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.48.0' - gen_version: str = '2.150.0' - user_agent: str = 'speakeasy-sdk/python 1.48.0 2.150.0 1.0.0 epilot-notification' + sdk_version: str = '1.48.1' + gen_version: str = '2.154.1' + user_agent: str = 'speakeasy-sdk/python 1.48.1 2.154.1 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 51b8d6ffd3088a8c739ecc1395efbd29f57a999b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Oct 2023 01:05:25 +0000 Subject: [PATCH 81/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.101.0 --- notification/README.md | 59 ++++++++- notification/RELEASES.md | 10 +- notification/USAGE.md | 59 ++++++++- .../operations/getnotificationresponse.md | 2 +- .../getnotifications200applicationjson.md | 10 +- .../docs/models/shared/entityoperation.md | 11 ++ .../models/shared/entityoperationparams.md | 9 ++ .../docs/models/shared/notification.md | 18 +++ .../shared/notificationcallercontext.md | 9 ++ .../notificationcallercontextepilotauth.md | 8 ++ ...otificationcallercontextepilotauthtoken.md | 11 ++ .../docs/models/shared/notificationitem.md | 21 ++++ .../models/shared/notificationitemmessage.md | 9 ++ .../models/shared/notificationitemtitle.md | 9 ++ .../docs/models/shared/notificationmessage.md | 9 ++ .../docs/models/shared/notificationtitle.md | 9 ++ notification/docs/sdks/notification/README.md | 65 +++++++++- notification/files.gen | 15 +++ notification/gen.yaml | 9 +- notification/pylintrc | 6 +- notification/setup.py | 26 ++-- .../models/operations/createnotification.py | 1 - .../models/operations/getnotification.py | 7 +- .../models/operations/getnotifications.py | 8 +- .../models/operations/gettotalunread.py | 1 - .../epilot/models/operations/markallasread.py | 1 - .../epilot/models/operations/markasread.py | 2 - .../src/epilot/models/shared/__init__.py | 6 +- .../epilot/models/shared/entityoperation.py | 28 +++++ .../src/epilot/models/shared/notification.py | 53 ++++++++ .../shared/notificationcallercontext.py | 35 ++++++ .../epilot/models/shared/notificationitem.py | 57 +++++++++ .../src/epilot/models/shared/security.py | 1 - notification/src/epilot/notification.py | 8 +- notification/src/epilot/sdk.py | 5 +- notification/src/epilot/sdkconfiguration.py | 13 +- notification/src/epilot/utils/retries.py | 5 +- notification/src/epilot/utils/utils.py | 117 ++++++++++-------- 38 files changed, 608 insertions(+), 124 deletions(-) create mode 100755 notification/docs/models/shared/entityoperation.md create mode 100755 notification/docs/models/shared/entityoperationparams.md create mode 100755 notification/docs/models/shared/notification.md create mode 100755 notification/docs/models/shared/notificationcallercontext.md create mode 100755 notification/docs/models/shared/notificationcallercontextepilotauth.md create mode 100755 notification/docs/models/shared/notificationcallercontextepilotauthtoken.md create mode 100755 notification/docs/models/shared/notificationitem.md create mode 100755 notification/docs/models/shared/notificationitemmessage.md create mode 100755 notification/docs/models/shared/notificationitemtitle.md create mode 100755 notification/docs/models/shared/notificationmessage.md create mode 100755 notification/docs/models/shared/notificationtitle.md create mode 100755 notification/src/epilot/models/shared/entityoperation.py create mode 100755 notification/src/epilot/models/shared/notification.py create mode 100755 notification/src/epilot/models/shared/notificationcallercontext.py create mode 100755 notification/src/epilot/models/shared/notificationitem.py diff --git a/notification/README.md b/notification/README.md index 86826d869..ced8d1f97 100755 --- a/notification/README.md +++ b/notification/README.md @@ -20,9 +20,62 @@ s = epilot.Epilot( ), ) -req = { - "Gasoline": 'on', -} +req = shared.Notification( + additional_properties={ + "Gasoline": 'on', + }, + caller=shared.NotificationCallerContext( + additional_properties={ + "synergies": 'Wagon', + }, + epilot_auth=shared.NotificationCallerContextEpilotAuth( + token=shared.NotificationCallerContextEpilotAuthToken( + cognito_username='example@epilot.cloud', + custom_ivy_user_id='10006129', + email='example@epilot.cloud', + sub='476e9b48-42f4-4234-a2b0-4668b34626ce', + ), + ), + ), + force_notify_users={ + "12345": 'Chicken', + }, + message=shared.NotificationMessage( + de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', + en='{{caller}} did something with {{contact.entity.id}} {{branch.name}}.', + ), + operations=[ + shared.EntityOperation( + entity='77db4d78-29e5-4cd1-839c-d99d857a1007', + operation='updateEntity', + params=shared.EntityOperationParams( + slug='contact', + ), + payload={ + "status": 'operating', + "_schema": 'variant', + "_org": 'lisp', + }, + ), + ], + organization_id='206801', + payload={ + "entity": 'program', + }, + redirect_url='https://epilot.cloud', + title=shared.NotificationTitle( + de='Meine benutzerdefinierte Aktivität', + en='My custom notification', + ), + type='workflow', + visibility_user_ids=[ + '1', + '2', + '3', + '4', + '5', + ], +) res = s.notification.create_notification(req) diff --git a/notification/RELEASES.md b/notification/RELEASES.md index a98720759..e92c7e228 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -554,4 +554,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.1] notification \ No newline at end of file +- [python v1.48.1] notification + +## 2023-10-18 01:05:08 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.0.0] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index ee5652bac..931144956 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -11,9 +11,62 @@ s = epilot.Epilot( ), ) -req = { - "Gasoline": 'on', -} +req = shared.Notification( + additional_properties={ + "Gasoline": 'on', + }, + caller=shared.NotificationCallerContext( + additional_properties={ + "synergies": 'Wagon', + }, + epilot_auth=shared.NotificationCallerContextEpilotAuth( + token=shared.NotificationCallerContextEpilotAuthToken( + cognito_username='example@epilot.cloud', + custom_ivy_user_id='10006129', + email='example@epilot.cloud', + sub='476e9b48-42f4-4234-a2b0-4668b34626ce', + ), + ), + ), + force_notify_users={ + "12345": 'Chicken', + }, + message=shared.NotificationMessage( + de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', + en='{{caller}} did something with {{contact.entity.id}} {{branch.name}}.', + ), + operations=[ + shared.EntityOperation( + entity='77db4d78-29e5-4cd1-839c-d99d857a1007', + operation='updateEntity', + params=shared.EntityOperationParams( + slug='contact', + ), + payload={ + "_org": 'operating', + "status": 'variant', + "_schema": 'lisp', + }, + ), + ], + organization_id='206801', + payload={ + "entity": 'program', + }, + redirect_url='https://epilot.cloud', + title=shared.NotificationTitle( + de='Meine benutzerdefinierte Aktivität', + en='My custom notification', + ), + type='workflow', + visibility_user_ids=[ + '1', + '2', + '3', + '4', + '5', + ], +) res = s.notification.create_notification(req) diff --git a/notification/docs/models/operations/getnotificationresponse.md b/notification/docs/models/operations/getnotificationresponse.md index 6e698642a..acbffa832 100755 --- a/notification/docs/models/operations/getnotificationresponse.md +++ b/notification/docs/models/operations/getnotificationresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `notification_item` | dict[str, *Any*] | :heavy_minus_sign: | Success | +| `notification_item` | [Optional[shared.NotificationItem]](../../models/shared/notificationitem.md) | :heavy_minus_sign: | Success | | `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 | \ No newline at end of file diff --git a/notification/docs/models/operations/getnotifications200applicationjson.md b/notification/docs/models/operations/getnotifications200applicationjson.md index 7eaf18543..ca43e455d 100755 --- a/notification/docs/models/operations/getnotifications200applicationjson.md +++ b/notification/docs/models/operations/getnotifications200applicationjson.md @@ -5,8 +5,8 @@ Success ## Fields -| Field | Type | Required | Description | Example | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `results` | list[dict[str, *Any*]] | :heavy_minus_sign: | N/A | | -| `total` | *Optional[int]* | :heavy_minus_sign: | N/A | 1 | -| `total_unread` | *Optional[int]* | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `results` | List[[shared.NotificationItem](../../models/shared/notificationitem.md)] | :heavy_minus_sign: | N/A | | +| `total` | *Optional[int]* | :heavy_minus_sign: | N/A | 1 | +| `total_unread` | *Optional[int]* | :heavy_minus_sign: | N/A | 1 | \ No newline at end of file diff --git a/notification/docs/models/shared/entityoperation.md b/notification/docs/models/shared/entityoperation.md new file mode 100755 index 000000000..1f8b404f0 --- /dev/null +++ b/notification/docs/models/shared/entityoperation.md @@ -0,0 +1,11 @@ +# EntityOperation + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `entity` | *str* | :heavy_check_mark: | N/A | | +| `operation` | *Optional[str]* | :heavy_minus_sign: | N/A | updateEntity | +| `params` | [Optional[EntityOperationParams]](../../models/shared/entityoperationparams.md) | :heavy_minus_sign: | N/A | | +| `payload` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | \ No newline at end of file diff --git a/notification/docs/models/shared/entityoperationparams.md b/notification/docs/models/shared/entityoperationparams.md new file mode 100755 index 000000000..f5ca2dacf --- /dev/null +++ b/notification/docs/models/shared/entityoperationparams.md @@ -0,0 +1,9 @@ +# EntityOperationParams + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `slug` | *Optional[str]* | :heavy_minus_sign: | URL-friendly identifier for the entity schema | contact | \ No newline at end of file diff --git a/notification/docs/models/shared/notification.md b/notification/docs/models/shared/notification.md new file mode 100755 index 000000000..c44c3ce74 --- /dev/null +++ b/notification/docs/models/shared/notification.md @@ -0,0 +1,18 @@ +# Notification + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `additional_properties` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `caller` | [Optional[NotificationCallerContext]](../../models/shared/notificationcallercontext.md) | :heavy_minus_sign: | N/A | | +| `force_notify_users` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `message` | [NotificationMessage](../../models/shared/notificationmessage.md) | :heavy_check_mark: | N/A | | +| `operations` | List[[EntityOperation](../../models/shared/entityoperation.md)] | :heavy_minus_sign: | N/A | | +| `organization_id` | *Optional[str]* | :heavy_minus_sign: | Organization Id | 206801 | +| `payload` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `redirect_url` | *Optional[str]* | :heavy_minus_sign: | Redirect url | https://epilot.cloud | +| `title` | [NotificationTitle](../../models/shared/notificationtitle.md) | :heavy_check_mark: | N/A | | +| `type` | *str* | :heavy_check_mark: | Type of notification | workflow | +| `visibility_user_ids` | List[*str*] | :heavy_minus_sign: | The person who is the corresponding event recipient. | 1,2,3,4,5 | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationcallercontext.md b/notification/docs/models/shared/notificationcallercontext.md new file mode 100755 index 000000000..acb197264 --- /dev/null +++ b/notification/docs/models/shared/notificationcallercontext.md @@ -0,0 +1,9 @@ +# NotificationCallerContext + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `additional_properties` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `epilot_auth` | [Optional[NotificationCallerContextEpilotAuth]](../../models/shared/notificationcallercontextepilotauth.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationcallercontextepilotauth.md b/notification/docs/models/shared/notificationcallercontextepilotauth.md new file mode 100755 index 000000000..a20ed16d5 --- /dev/null +++ b/notification/docs/models/shared/notificationcallercontextepilotauth.md @@ -0,0 +1,8 @@ +# NotificationCallerContextEpilotAuth + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `token` | [Optional[NotificationCallerContextEpilotAuthToken]](../../models/shared/notificationcallercontextepilotauthtoken.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationcallercontextepilotauthtoken.md b/notification/docs/models/shared/notificationcallercontextepilotauthtoken.md new file mode 100755 index 000000000..25c41523c --- /dev/null +++ b/notification/docs/models/shared/notificationcallercontextepilotauthtoken.md @@ -0,0 +1,11 @@ +# NotificationCallerContextEpilotAuthToken + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `cognito_username` | *Optional[str]* | :heavy_minus_sign: | N/A | example@epilot.cloud | +| `custom_ivy_user_id` | *Optional[str]* | :heavy_minus_sign: | N/A | 10006129 | +| `email` | *Optional[str]* | :heavy_minus_sign: | N/A | example@epilot.cloud | +| `sub` | *Optional[str]* | :heavy_minus_sign: | N/A | 476e9b48-42f4-4234-a2b0-4668b34626ce | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationitem.md b/notification/docs/models/shared/notificationitem.md new file mode 100755 index 000000000..f1075927c --- /dev/null +++ b/notification/docs/models/shared/notificationitem.md @@ -0,0 +1,21 @@ +# NotificationItem + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `additional_properties` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `caller` | [Optional[NotificationCallerContext]](../../models/shared/notificationcallercontext.md) | :heavy_minus_sign: | N/A | | +| `force_notify_users` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `id` | *Optional[float]* | :heavy_minus_sign: | N/A | 123456789 | +| `message` | [NotificationItemMessage](../../models/shared/notificationitemmessage.md) | :heavy_check_mark: | N/A | | +| `notification_id` | *Optional[float]* | :heavy_minus_sign: | N/A | 123456789 | +| `operations` | List[[EntityOperation](../../models/shared/entityoperation.md)] | :heavy_minus_sign: | N/A | | +| `organization_id` | *Optional[str]* | :heavy_minus_sign: | Organization Id | 206801 | +| `payload` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `read_state` | *Optional[bool]* | :heavy_minus_sign: | N/A | false | +| `redirect_url` | *Optional[str]* | :heavy_minus_sign: | Redirect url | https://epilot.cloud | +| `timestamp` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | | +| `title` | [NotificationItemTitle](../../models/shared/notificationitemtitle.md) | :heavy_check_mark: | N/A | | +| `type` | *str* | :heavy_check_mark: | Type of notification | workflow | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationitemmessage.md b/notification/docs/models/shared/notificationitemmessage.md new file mode 100755 index 000000000..b1a5f81fc --- /dev/null +++ b/notification/docs/models/shared/notificationitemmessage.md @@ -0,0 +1,9 @@ +# NotificationItemMessage + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `de` | *Optional[str]* | :heavy_minus_sign: | Message for notification. Supports handlebars syntax. | {{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}. | +| `en` | *Optional[str]* | :heavy_minus_sign: | Message for notification. Supports handlebars syntax. | {{caller}} did something with {{contact.entity.id}} {{branch.name}}. | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationitemtitle.md b/notification/docs/models/shared/notificationitemtitle.md new file mode 100755 index 000000000..012167971 --- /dev/null +++ b/notification/docs/models/shared/notificationitemtitle.md @@ -0,0 +1,9 @@ +# NotificationItemTitle + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `de` | *Optional[str]* | :heavy_minus_sign: | Title for notification. Supports handlebars syntax. | Meine benutzerdefinierte Aktivität | +| `en` | *Optional[str]* | :heavy_minus_sign: | Title for notification. Supports handlebars syntax. | My custom notification | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationmessage.md b/notification/docs/models/shared/notificationmessage.md new file mode 100755 index 000000000..9d6bdc73c --- /dev/null +++ b/notification/docs/models/shared/notificationmessage.md @@ -0,0 +1,9 @@ +# NotificationMessage + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `de` | *Optional[str]* | :heavy_minus_sign: | Message for notification. Supports handlebars syntax. | {{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}. | +| `en` | *Optional[str]* | :heavy_minus_sign: | Message for notification. Supports handlebars syntax. | {{caller}} did something with {{contact.entity.id}} {{branch.name}}. | \ No newline at end of file diff --git a/notification/docs/models/shared/notificationtitle.md b/notification/docs/models/shared/notificationtitle.md new file mode 100755 index 000000000..183e5ec4f --- /dev/null +++ b/notification/docs/models/shared/notificationtitle.md @@ -0,0 +1,9 @@ +# NotificationTitle + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `de` | *Optional[str]* | :heavy_minus_sign: | Title for notification. Supports handlebars syntax. | Meine benutzerdefinierte Aktivität | +| `en` | *Optional[str]* | :heavy_minus_sign: | Title for notification. Supports handlebars syntax. | My custom notification | \ No newline at end of file diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index 8ca1d0d3e..167e15cfb 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -30,9 +30,62 @@ s = epilot.Epilot( ), ) -req = { - "Gasoline": 'on', -} +req = shared.Notification( + additional_properties={ + "Gasoline": 'on', + }, + caller=shared.NotificationCallerContext( + additional_properties={ + "synergies": 'Wagon', + }, + epilot_auth=shared.NotificationCallerContextEpilotAuth( + token=shared.NotificationCallerContextEpilotAuthToken( + cognito_username='example@epilot.cloud', + custom_ivy_user_id='10006129', + email='example@epilot.cloud', + sub='476e9b48-42f4-4234-a2b0-4668b34626ce', + ), + ), + ), + force_notify_users={ + "12345": 'Chicken', + }, + message=shared.NotificationMessage( + de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', + en='{{caller}} did something with {{contact.entity.id}} {{branch.name}}.', + ), + operations=[ + shared.EntityOperation( + entity='77db4d78-29e5-4cd1-839c-d99d857a1007', + operation='updateEntity', + params=shared.EntityOperationParams( + slug='contact', + ), + payload={ + "status": 'operating', + "_schema": 'variant', + "_org": 'lisp', + }, + ), + ], + organization_id='206801', + payload={ + "entity": 'program', + }, + redirect_url='https://epilot.cloud', + title=shared.NotificationTitle( + de='Meine benutzerdefinierte Aktivität', + en='My custom notification', + ), + type='workflow', + visibility_user_ids=[ + '1', + '2', + '3', + '4', + '5', + ], +) res = s.notification.create_notification(req) @@ -43,9 +96,9 @@ if res.status_code == 200: ### 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.Notification](../../models/shared/notification.md) | :heavy_check_mark: | The request object to use for the request. | ### Response diff --git a/notification/files.gen b/notification/files.gen index 2612a946c..2f083ff6a 100755 --- a/notification/files.gen +++ b/notification/files.gen @@ -16,6 +16,10 @@ src/epilot/models/operations/gettotalunread.py src/epilot/models/operations/markallasread.py src/epilot/models/operations/markasread.py src/epilot/models/operations/__init__.py +src/epilot/models/shared/notification.py +src/epilot/models/shared/entityoperation.py +src/epilot/models/shared/notificationcallercontext.py +src/epilot/models/shared/notificationitem.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py src/epilot/models/errors/__init__.py @@ -30,6 +34,17 @@ docs/models/operations/gettotalunreadresponse.md docs/models/operations/markallasreadresponse.md docs/models/operations/markasreadrequest.md docs/models/operations/markasreadresponse.md +docs/models/shared/notificationmessage.md +docs/models/shared/notificationtitle.md +docs/models/shared/notification.md +docs/models/shared/entityoperationparams.md +docs/models/shared/entityoperation.md +docs/models/shared/notificationcallercontextepilotauthtoken.md +docs/models/shared/notificationcallercontextepilotauth.md +docs/models/shared/notificationcallercontext.md +docs/models/shared/notificationitemmessage.md +docs/models/shared/notificationitemtitle.md +docs/models/shared/notificationitem.md docs/models/shared/security.md docs/sdks/epilot/README.md docs/sdks/notification/README.md diff --git a/notification/gen.yaml b/notification/gen.yaml index b54f4c7e3..bbeedf0b0 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,19 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - speakeasyVersion: 1.99.1 - 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/notification/pylintrc b/notification/pylintrc index 2a6cf6912..a2f54e249 100755 --- a/notification/pylintrc +++ b/notification/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 @@ -180,7 +180,9 @@ good-names=i, ex, Run, _, - id + id, + de, + en # Good variable names regexes, separated by a comma. If names match any regex, # they will always be accepted diff --git a/notification/setup.py b/notification/setup.py index 52f5e0c30..b3a7f5e3c 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,33 +10,31 @@ setuptools.setup( name="epilot-notification", - 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/notification/src/epilot/models/operations/createnotification.py b/notification/src/epilot/models/operations/createnotification.py index 5f8721a03..36ca0ee0e 100755 --- a/notification/src/epilot/models/operations/createnotification.py +++ b/notification/src/epilot/models/operations/createnotification.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class CreateNotificationResponse: content_type: str = dataclasses.field() diff --git a/notification/src/epilot/models/operations/getnotification.py b/notification/src/epilot/models/operations/getnotification.py index 16c14d8e7..ee2805765 100755 --- a/notification/src/epilot/models/operations/getnotification.py +++ b/notification/src/epilot/models/operations/getnotification.py @@ -3,8 +3,8 @@ from __future__ import annotations import dataclasses import requests as requests_http -from typing import Any, Optional - +from ..shared import notificationitem as shared_notificationitem +from typing import Optional @dataclasses.dataclass @@ -15,14 +15,13 @@ class GetNotificationRequest: - @dataclasses.dataclass class GetNotificationResponse: 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""" - notification_item: Optional[dict[str, Any]] = dataclasses.field(default=None) + notification_item: Optional[shared_notificationitem.NotificationItem] = dataclasses.field(default=None) r"""Success""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/notification/src/epilot/models/operations/getnotifications.py b/notification/src/epilot/models/operations/getnotifications.py index 8539d5b87..36ba44815 100755 --- a/notification/src/epilot/models/operations/getnotifications.py +++ b/notification/src/epilot/models/operations/getnotifications.py @@ -3,10 +3,10 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import notificationitem as shared_notificationitem from dataclasses_json import Undefined, dataclass_json from epilot import utils -from typing import Any, Optional - +from typing import List, Optional @dataclasses.dataclass @@ -19,18 +19,16 @@ class GetNotificationsRequest: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetNotifications200ApplicationJSON: r"""Success""" - results: Optional[list[dict[str, Any]]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }}) + results: Optional[List[shared_notificationitem.NotificationItem]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('results'), 'exclude': lambda f: f is None }}) total: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total'), 'exclude': lambda f: f is None }}) total_unread: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('total_unread'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class GetNotificationsResponse: content_type: str = dataclasses.field() diff --git a/notification/src/epilot/models/operations/gettotalunread.py b/notification/src/epilot/models/operations/gettotalunread.py index 9484bd392..5caf22096 100755 --- a/notification/src/epilot/models/operations/gettotalunread.py +++ b/notification/src/epilot/models/operations/gettotalunread.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class GetTotalUnreadResponse: content_type: str = dataclasses.field() diff --git a/notification/src/epilot/models/operations/markallasread.py b/notification/src/epilot/models/operations/markallasread.py index ee1a32fbb..62bf9a0d5 100755 --- a/notification/src/epilot/models/operations/markallasread.py +++ b/notification/src/epilot/models/operations/markallasread.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class MarkAllAsReadResponse: content_type: str = dataclasses.field() diff --git a/notification/src/epilot/models/operations/markasread.py b/notification/src/epilot/models/operations/markasread.py index f24362733..e0d971eeb 100755 --- a/notification/src/epilot/models/operations/markasread.py +++ b/notification/src/epilot/models/operations/markasread.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class MarkAsReadRequest: id: int = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) @@ -15,7 +14,6 @@ class MarkAsReadRequest: - @dataclasses.dataclass class MarkAsReadResponse: content_type: str = dataclasses.field() diff --git a/notification/src/epilot/models/shared/__init__.py b/notification/src/epilot/models/shared/__init__.py index 4e48d0727..caaca6aa3 100755 --- a/notification/src/epilot/models/shared/__init__.py +++ b/notification/src/epilot/models/shared/__init__.py @@ -1,5 +1,9 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +from .entityoperation import * +from .notification import * +from .notificationcallercontext import * +from .notificationitem import * from .security import * -__all__ = ["Security"] +__all__ = ["EntityOperation","EntityOperationParams","Notification","NotificationCallerContext","NotificationCallerContextEpilotAuth","NotificationCallerContextEpilotAuthToken","NotificationItem","NotificationItemMessage","NotificationItemTitle","NotificationMessage","NotificationTitle","Security"] diff --git a/notification/src/epilot/models/shared/entityoperation.py b/notification/src/epilot/models/shared/entityoperation.py new file mode 100755 index 000000000..b9b4b9f14 --- /dev/null +++ b/notification/src/epilot/models/shared/entityoperation.py @@ -0,0 +1,28 @@ +"""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, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class EntityOperationParams: + id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + slug: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('slug'), 'exclude': lambda f: f is None }}) + r"""URL-friendly identifier for the entity schema""" + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class EntityOperation: + entity: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity') }}) + operation: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('operation'), 'exclude': lambda f: f is None }}) + params: Optional[EntityOperationParams] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('params'), 'exclude': lambda f: f is None }}) + payload: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('payload'), 'exclude': lambda f: f is None }}) + + diff --git a/notification/src/epilot/models/shared/notification.py b/notification/src/epilot/models/shared/notification.py new file mode 100755 index 000000000..688f42950 --- /dev/null +++ b/notification/src/epilot/models/shared/notification.py @@ -0,0 +1,53 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from ..shared import entityoperation as shared_entityoperation +from ..shared import notificationcallercontext as shared_notificationcallercontext +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 NotificationMessage: + de: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('de'), 'exclude': lambda f: f is None }}) + r"""Message for notification. Supports handlebars syntax.""" + en: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('en'), 'exclude': lambda f: f is None }}) + r"""Message for notification. Supports handlebars syntax.""" + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationTitle: + de: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('de'), 'exclude': lambda f: f is None }}) + r"""Title for notification. Supports handlebars syntax.""" + en: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('en'), 'exclude': lambda f: f is None }}) + r"""Title for notification. Supports handlebars syntax.""" + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class Notification: + message: NotificationMessage = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message') }}) + title: NotificationTitle = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) + type: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + r"""Type of notification""" + additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) + caller: Optional[shared_notificationcallercontext.NotificationCallerContext] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('caller'), 'exclude': lambda f: f is None }}) + force_notify_users: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('force_notify_users'), 'exclude': lambda f: f is None }}) + operations: Optional[List[shared_entityoperation.EntityOperation]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('operations'), 'exclude': lambda f: f is None }}) + organization_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('organization_id'), 'exclude': lambda f: f is None }}) + r"""Organization Id""" + payload: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('payload'), 'exclude': lambda f: f is None }}) + redirect_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('redirect_url'), 'exclude': lambda f: f is None }}) + r"""Redirect url""" + visibility_user_ids: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('visibility_user_ids'), 'exclude': lambda f: f is None }}) + r"""The person who is the corresponding event recipient.""" + + diff --git a/notification/src/epilot/models/shared/notificationcallercontext.py b/notification/src/epilot/models/shared/notificationcallercontext.py new file mode 100755 index 000000000..527068a36 --- /dev/null +++ b/notification/src/epilot/models/shared/notificationcallercontext.py @@ -0,0 +1,35 @@ +"""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, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationCallerContextEpilotAuthToken: + cognito_username: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('cognito:username'), 'exclude': lambda f: f is None }}) + custom_ivy_user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom:ivy_user_id'), 'exclude': lambda f: f is None }}) + email: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('email'), 'exclude': lambda f: f is None }}) + sub: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sub'), 'exclude': lambda f: f is None }}) + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationCallerContextEpilotAuth: + token: Optional[NotificationCallerContextEpilotAuthToken] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('token'), 'exclude': lambda f: f is None }}) + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationCallerContext: + additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) + epilot_auth: Optional[NotificationCallerContextEpilotAuth] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('EpilotAuth'), 'exclude': lambda f: f is None }}) + + diff --git a/notification/src/epilot/models/shared/notificationitem.py b/notification/src/epilot/models/shared/notificationitem.py new file mode 100755 index 000000000..095e88509 --- /dev/null +++ b/notification/src/epilot/models/shared/notificationitem.py @@ -0,0 +1,57 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import dateutil.parser +from ..shared import entityoperation as shared_entityoperation +from ..shared import notificationcallercontext as shared_notificationcallercontext +from dataclasses_json import Undefined, dataclass_json +from datetime import datetime +from epilot import utils +from typing import Any, Dict, List, Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationItemMessage: + de: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('de'), 'exclude': lambda f: f is None }}) + r"""Message for notification. Supports handlebars syntax.""" + en: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('en'), 'exclude': lambda f: f is None }}) + r"""Message for notification. Supports handlebars syntax.""" + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationItemTitle: + de: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('de'), 'exclude': lambda f: f is None }}) + r"""Title for notification. Supports handlebars syntax.""" + en: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('en'), 'exclude': lambda f: f is None }}) + r"""Title for notification. Supports handlebars syntax.""" + + + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class NotificationItem: + message: NotificationItemMessage = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message') }}) + title: NotificationItemTitle = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) + type: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + r"""Type of notification""" + additional_properties: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'exclude': lambda f: f is None }}) + caller: Optional[shared_notificationcallercontext.NotificationCallerContext] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('caller'), 'exclude': lambda f: f is None }}) + force_notify_users: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('force_notify_users'), 'exclude': lambda f: f is None }}) + id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + notification_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('notification_id'), 'exclude': lambda f: f is None }}) + operations: Optional[List[shared_entityoperation.EntityOperation]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('operations'), 'exclude': lambda f: f is None }}) + organization_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('organization_id'), 'exclude': lambda f: f is None }}) + r"""Organization Id""" + payload: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('payload'), 'exclude': lambda f: f is None }}) + read_state: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('read_state'), 'exclude': lambda f: f is None }}) + redirect_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('redirect_url'), 'exclude': lambda f: f is None }}) + r"""Redirect url""" + timestamp: Optional[datetime] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timestamp'), 'encoder': utils.datetimeisoformat(True), 'decoder': dateutil.parser.isoparse, 'exclude': lambda f: f is None }}) + + diff --git a/notification/src/epilot/models/shared/security.py b/notification/src/epilot/models/shared/security.py index e75e944ea..bb832caeb 100755 --- a/notification/src/epilot/models/shared/security.py +++ b/notification/src/epilot/models/shared/security.py @@ -4,7 +4,6 @@ import dataclasses - @dataclasses.dataclass class Security: epilot_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) diff --git a/notification/src/epilot/notification.py b/notification/src/epilot/notification.py index 60519d163..67b3acf2b 100755 --- a/notification/src/epilot/notification.py +++ b/notification/src/epilot/notification.py @@ -2,8 +2,8 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils -from epilot.models import errors, operations -from typing import Any, Optional +from epilot.models import errors, operations, shared +from typing import Optional class Notification: r"""Notification""" @@ -13,7 +13,7 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: self.sdk_configuration = sdk_config - def create_notification(self, request: dict[str, Any]) -> operations.CreateNotificationResponse: + def create_notification(self, request: shared.Notification) -> operations.CreateNotificationResponse: r"""createNotification Create a message that can be displayed in the notification panel. """ @@ -58,7 +58,7 @@ def get_notification(self, request: operations.GetNotificationRequest) -> operat if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[dict[str, Any]]) + out = utils.unmarshal_json(http_res.text, Optional[shared.NotificationItem]) res.notification_item = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) diff --git a/notification/src/epilot/sdk.py b/notification/src/epilot/sdk.py index a4a9758bb..a897933c4 100755 --- a/notification/src/epilot/sdk.py +++ b/notification/src/epilot/sdk.py @@ -5,6 +5,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils from epilot.models import shared +from typing import Dict class Epilot: r"""Notification API: Notification API for epilot 360""" @@ -17,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: @@ -30,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 diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 5d68880ea..009878a26 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/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 = '1.0.0' - sdk_version: str = '1.48.1' - gen_version: str = '2.154.1' - user_agent: str = 'speakeasy-sdk/python 1.48.1 2.154.1 1.0.0 epilot-notification' + sdk_version: str = '2.0.0' + gen_version: str = '2.161.0' + user_agent: str = 'speakeasy-sdk/python 2.0.0 2.161.0 1.0.0 epilot-notification' 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/notification/src/epilot/utils/retries.py b/notification/src/epilot/utils/retries.py index 2138c1b5e..25f49a1f2 100755 --- a/notification/src/epilot/utils/retries.py +++ b/notification/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/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index 4388f3b74..ccfad9f7a 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 8ec2de0557a2de7e9cc8eac3336a486b966a9fd4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 21 Oct 2023 01:03:37 +0000 Subject: [PATCH 82/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.104.0 --- notification/README.md | 16 +++++++-------- notification/RELEASES.md | 10 +++++++++- notification/USAGE.md | 16 +++++++-------- notification/docs/sdks/notification/README.md | 16 +++++++-------- notification/gen.yaml | 11 ++++++---- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 6 +++--- notification/src/epilot/utils/utils.py | 20 +++++++++++++++++++ 8 files changed, 64 insertions(+), 33 deletions(-) diff --git a/notification/README.md b/notification/README.md index ced8d1f97..247d327a7 100755 --- a/notification/README.md +++ b/notification/README.md @@ -22,11 +22,11 @@ s = epilot.Epilot( req = shared.Notification( additional_properties={ - "Gasoline": 'on', + "key": 'string', }, caller=shared.NotificationCallerContext( additional_properties={ - "synergies": 'Wagon', + "key": 'string', }, epilot_auth=shared.NotificationCallerContextEpilotAuth( token=shared.NotificationCallerContextEpilotAuthToken( @@ -38,7 +38,7 @@ req = shared.Notification( ), ), force_notify_users={ - "12345": 'Chicken', + "12345": 'string', }, message=shared.NotificationMessage( de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', @@ -46,21 +46,21 @@ req = shared.Notification( ), operations=[ shared.EntityOperation( - entity='77db4d78-29e5-4cd1-839c-d99d857a1007', + entity='d9fa50df-3a77-4db4-9782-9e5cd1039cd9', operation='updateEntity', params=shared.EntityOperationParams( slug='contact', ), payload={ - "status": 'operating', - "_schema": 'variant', - "_org": 'lisp', + "_schema": 'string', + "_org": 'string', + "status": 'string', }, ), ], organization_id='206801', payload={ - "entity": 'program', + "entity": 'string', }, redirect_url='https://epilot.cloud', title=shared.NotificationTitle( diff --git a/notification/RELEASES.md b/notification/RELEASES.md index e92c7e228..04d68c3d3 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -562,4 +562,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.0.0] notification \ No newline at end of file +- [python v2.0.0] notification + +## 2023-10-21 01:03:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.0] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 931144956..5f6a38167 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -13,11 +13,11 @@ s = epilot.Epilot( req = shared.Notification( additional_properties={ - "Gasoline": 'on', + "key": 'string', }, caller=shared.NotificationCallerContext( additional_properties={ - "synergies": 'Wagon', + "key": 'string', }, epilot_auth=shared.NotificationCallerContextEpilotAuth( token=shared.NotificationCallerContextEpilotAuthToken( @@ -29,7 +29,7 @@ req = shared.Notification( ), ), force_notify_users={ - "12345": 'Chicken', + "12345": 'string', }, message=shared.NotificationMessage( de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', @@ -37,21 +37,21 @@ req = shared.Notification( ), operations=[ shared.EntityOperation( - entity='77db4d78-29e5-4cd1-839c-d99d857a1007', + entity='d9fa50df-3a77-4db4-9782-9e5cd1039cd9', operation='updateEntity', params=shared.EntityOperationParams( slug='contact', ), payload={ - "_org": 'operating', - "status": 'variant', - "_schema": 'lisp', + "_org": 'string', + "status": 'string', + "_schema": 'string', }, ), ], organization_id='206801', payload={ - "entity": 'program', + "entity": 'string', }, redirect_url='https://epilot.cloud', title=shared.NotificationTitle( diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index 167e15cfb..7a0da937f 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -32,11 +32,11 @@ s = epilot.Epilot( req = shared.Notification( additional_properties={ - "Gasoline": 'on', + "key": 'string', }, caller=shared.NotificationCallerContext( additional_properties={ - "synergies": 'Wagon', + "key": 'string', }, epilot_auth=shared.NotificationCallerContextEpilotAuth( token=shared.NotificationCallerContextEpilotAuthToken( @@ -48,7 +48,7 @@ req = shared.Notification( ), ), force_notify_users={ - "12345": 'Chicken', + "12345": 'string', }, message=shared.NotificationMessage( de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', @@ -56,21 +56,21 @@ req = shared.Notification( ), operations=[ shared.EntityOperation( - entity='77db4d78-29e5-4cd1-839c-d99d857a1007', + entity='d9fa50df-3a77-4db4-9782-9e5cd1039cd9', operation='updateEntity', params=shared.EntityOperationParams( slug='contact', ), payload={ - "status": 'operating', - "_schema": 'variant', - "_org": 'lisp', + "_org": 'string', + "status": 'string', + "_schema": 'string', }, ), ], organization_id='206801', payload={ - "entity": 'program', + "entity": 'string', }, redirect_url='https://epilot.cloud', title=shared.NotificationTitle( diff --git a/notification/gen.yaml b/notification/gen.yaml index bbeedf0b0..7b6d853df 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,22 +2,25 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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=notification maxMethodParams: 0 packageName: epilot-notification + repoSubDirectory: notification diff --git a/notification/setup.py b/notification/setup.py index b3a7f5e3c..1214697a9 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="2.0.0", + version="2.1.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index 009878a26..dc733ef3b 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -20,9 +20,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '2.0.0' - gen_version: str = '2.161.0' - user_agent: str = 'speakeasy-sdk/python 2.0.0 2.161.0 1.0.0 epilot-notification' + sdk_version: str = '2.1.0' + gen_version: str = '2.169.0' + user_agent: str = 'speakeasy-sdk/python 2.1.0 2.169.0 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/notification/src/epilot/utils/utils.py b/notification/src/epilot/utils/utils.py index ccfad9f7a..3ab126104 100755 --- a/notification/src/epilot/utils/utils.py +++ b/notification/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 9cc1e140631e4807712699850a74f6bc0a2e1d6c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 28 Oct 2023 01:03:01 +0000 Subject: [PATCH 83/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.109.0 --- notification/README.md | 207 +++++++++++++++++- notification/RELEASES.md | 10 +- notification/USAGE.md | 2 +- notification/docs/sdks/notification/README.md | 2 +- notification/gen.yaml | 8 +- notification/setup.py | 2 +- notification/src/epilot/sdkconfiguration.py | 6 +- 7 files changed, 225 insertions(+), 12 deletions(-) diff --git a/notification/README.md b/notification/README.md index 247d327a7..edd12b409 100755 --- a/notification/README.md +++ b/notification/README.md @@ -52,9 +52,9 @@ req = shared.Notification( slug='contact', ), payload={ + "status": 'string', "_schema": 'string', "_org": 'string', - "status": 'string', }, ), ], @@ -117,6 +117,211 @@ 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://notification.sls.epilot.io` | None | + +For example: + + +```python +import epilot +from epilot.models import shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), + server_idx=0 +) + +req = shared.Notification( + additional_properties={ + "key": 'string', + }, + caller=shared.NotificationCallerContext( + additional_properties={ + "key": 'string', + }, + epilot_auth=shared.NotificationCallerContextEpilotAuth( + token=shared.NotificationCallerContextEpilotAuthToken( + cognito_username='example@epilot.cloud', + custom_ivy_user_id='10006129', + email='example@epilot.cloud', + sub='476e9b48-42f4-4234-a2b0-4668b34626ce', + ), + ), + ), + force_notify_users={ + "12345": 'string', + }, + message=shared.NotificationMessage( + de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', + en='{{caller}} did something with {{contact.entity.id}} {{branch.name}}.', + ), + operations=[ + shared.EntityOperation( + entity='d9fa50df-3a77-4db4-9782-9e5cd1039cd9', + operation='updateEntity', + params=shared.EntityOperationParams( + slug='contact', + ), + payload={ + "_schema": 'string', + "_org": 'string', + "status": 'string', + }, + ), + ], + organization_id='206801', + payload={ + "entity": 'string', + }, + redirect_url='https://epilot.cloud', + title=shared.NotificationTitle( + de='Meine benutzerdefinierte Aktivität', + en='My custom notification', + ), + type='workflow', + visibility_user_ids=[ + '1', + '2', + '3', + '4', + '5', + ], +) + +res = s.notification.create_notification(req) + +if res.status_code == 200: + # 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( + epilot_auth="", + ), + server_url="https://notification.sls.epilot.io" +) + +req = shared.Notification( + additional_properties={ + "key": 'string', + }, + caller=shared.NotificationCallerContext( + additional_properties={ + "key": 'string', + }, + epilot_auth=shared.NotificationCallerContextEpilotAuth( + token=shared.NotificationCallerContextEpilotAuthToken( + cognito_username='example@epilot.cloud', + custom_ivy_user_id='10006129', + email='example@epilot.cloud', + sub='476e9b48-42f4-4234-a2b0-4668b34626ce', + ), + ), + ), + force_notify_users={ + "12345": 'string', + }, + message=shared.NotificationMessage( + de='{{caller}} habe etwas damit gemacht {{contact.entity.id}} {{branch.name}}.', + en='{{caller}} did something with {{contact.entity.id}} {{branch.name}}.', + ), + operations=[ + shared.EntityOperation( + entity='d9fa50df-3a77-4db4-9782-9e5cd1039cd9', + operation='updateEntity', + params=shared.EntityOperationParams( + slug='contact', + ), + payload={ + "_org": 'string', + "status": 'string', + "_schema": 'string', + }, + ), + ], + organization_id='206801', + payload={ + "entity": 'string', + }, + redirect_url='https://epilot.cloud', + title=shared.NotificationTitle( + de='Meine benutzerdefinierte Aktivität', + en='My custom notification', + ), + type='workflow', + visibility_user_ids=[ + '1', + '2', + '3', + '4', + '5', + ], +) + +res = s.notification.create_notification(req) + +if res.status_code == 200: + # 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/notification/RELEASES.md b/notification/RELEASES.md index 04d68c3d3..7c05390ff 100644 --- a/notification/RELEASES.md +++ b/notification/RELEASES.md @@ -570,4 +570,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml - Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.1.0] notification \ No newline at end of file +- [python v2.1.0] notification + +## 2023-10-28 01:02:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/svc-notification-api.yaml +- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.1] notification \ No newline at end of file diff --git a/notification/USAGE.md b/notification/USAGE.md index 5f6a38167..8177a3b2f 100755 --- a/notification/USAGE.md +++ b/notification/USAGE.md @@ -43,9 +43,9 @@ req = shared.Notification( slug='contact', ), payload={ - "_org": 'string', "status": 'string', "_schema": 'string', + "_org": 'string', }, ), ], diff --git a/notification/docs/sdks/notification/README.md b/notification/docs/sdks/notification/README.md index 7a0da937f..704985363 100755 --- a/notification/docs/sdks/notification/README.md +++ b/notification/docs/sdks/notification/README.md @@ -62,9 +62,9 @@ req = shared.Notification( slug='contact', ), payload={ + "_schema": 'string', "_org": 'string', "status": 'string', - "_schema": 'string', }, ), ], diff --git a/notification/gen.yaml b/notification/gen.yaml index 7b6d853df..f89b1c26b 100644 --- a/notification/gen.yaml +++ b/notification/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 0e661bd8cf4bb8f9a78a0eec763ee814 docVersion: 1.0.0 - 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/notification/setup.py b/notification/setup.py index 1214697a9..871122f8e 100755 --- a/notification/setup.py +++ b/notification/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-notification", - version="2.1.0", + version="2.1.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/notification/src/epilot/sdkconfiguration.py b/notification/src/epilot/sdkconfiguration.py index dc733ef3b..0bc660ad0 100755 --- a/notification/src/epilot/sdkconfiguration.py +++ b/notification/src/epilot/sdkconfiguration.py @@ -20,9 +20,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '2.1.0' - gen_version: str = '2.169.0' - user_agent: str = 'speakeasy-sdk/python 2.1.0 2.169.0 1.0.0 epilot-notification' + sdk_version: str = '2.1.1' + gen_version: str = '2.173.0' + user_agent: str = 'speakeasy-sdk/python 2.1.1 2.173.0 1.0.0 epilot-notification' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: