From 7c45eabd2fd4ed44382ef2be29a2522cdf4ea7fa Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Apr 2023 01:33:41 +0000 Subject: [PATCH 01/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.3 --- template_variables/README.md | 16 ++++++++-------- template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 14 +++++++------- template_variables/gen.yaml | 6 +++--- template_variables/pylintrc | 12 +++++------- template_variables/setup.py | 2 +- .../src/epilot/custom_variables.py | 6 ------ .../epilot/models/operations/getcategories.py | 4 ++-- .../epilot/models/operations/searchvariables.py | 4 ++-- .../src/epilot/models/shared/customvariable.py | 4 ++-- .../epilot/models/shared/templatetype_enum.py | 4 ++-- .../epilot/models/shared/variableparameters.py | 4 ++-- .../src/epilot/models/shared/variableresult.py | 4 ++-- template_variables/src/epilot/sdk.py | 4 ++-- template_variables/src/epilot/variables.py | 4 ---- 15 files changed, 45 insertions(+), 51 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 39dbd896e..380d05d90 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -23,18 +23,18 @@ s = epilot.Epilot( req = shared.CustomVariable( config={ - "deserunt": "porro", - "nulla": "id", - "vero": "perspiciatis", + "provident": "distinctio", + "quibusdam": "unde", + "nulla": "corrupti", }, created_at="2022-04-19T12:41:43.662Z", created_by="100042", helper_logic="return param1 * param2;", helper_params=[ - "nihil", - "fuga", - "facilis", - "eum", + "vel", + "error", + "deserunt", + "suscipit", ], id="rbse777b-3cf8-4bff-bb0c-253fd1123250", key="my_custom_table", @@ -159,7 +159,7 @@ if res.status_code == 200: -## SDK Available Operations +## Available Resources and Operations ### custom_variables diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 6b443894d..747a82256 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -34,4 +34,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:33:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index abcb76fe3..7ee7f7f23 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -12,18 +12,18 @@ s = epilot.Epilot( req = shared.CustomVariable( config={ - "deserunt": "porro", - "nulla": "id", - "vero": "perspiciatis", + "provident": "distinctio", + "quibusdam": "unde", + "nulla": "corrupti", }, created_at="2022-04-19T12:41:43.662Z", created_by="100042", helper_logic="return param1 * param2;", helper_params=[ - "nihil", - "fuga", - "facilis", - "eum", + "vel", + "error", + "deserunt", + "suscipit", ], id="rbse777b-3cf8-4bff-bb0c-253fd1123250", key="my_custom_table", diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index e2cd3c1a9..fad665885 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/pylintrc b/template_variables/pylintrc index 79b8008d0..1a0ea35b7 100755 --- a/template_variables/pylintrc +++ b/template_variables/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/template_variables/setup.py b/template_variables/setup.py index 59b02d846..6ac0027ba 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.2.2", + version="1.2.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index 694b42779..5042f0150 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -41,8 +41,6 @@ def create_custom_variable(self, request: shared.CustomVariable) -> operations.C res = operations.CreateCustomVariableResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code in [201, 403]: - pass return res @@ -62,8 +60,6 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest res = operations.DeleteCustomVariableResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code in [204, 403]: - pass return res @@ -162,8 +158,6 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest res = operations.UpdateCustomVariableResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code in [200, 403]: - pass return res diff --git a/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index 2dd603e8e..4675a44a5 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -9,8 +9,8 @@ class GetCategoriesLangEnum(str, Enum): r"""Language""" - EN = "en" - DE = "de" + EN = 'en' + DE = 'de' @dataclasses.dataclass diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index 26ceb11e9..18df3a258 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -11,8 +11,8 @@ from typing import Optional class SearchVariablesRequestBodyLangEnum(str, Enum): - EN = "en" - DE = "de" + EN = 'en' + DE = 'de' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 77da1887f..1337bf1b1 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -9,8 +9,8 @@ class CustomVariableTypeEnum(str, Enum): r"""Custom variable type""" - ORDER_TABLE = "order_table" - CUSTOM = "custom" + ORDER_TABLE = 'order_table' + CUSTOM = 'custom' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/template_variables/src/epilot/models/shared/templatetype_enum.py b/template_variables/src/epilot/models/shared/templatetype_enum.py index b584f7dcb..f673c56d7 100755 --- a/template_variables/src/epilot/models/shared/templatetype_enum.py +++ b/template_variables/src/epilot/models/shared/templatetype_enum.py @@ -4,5 +4,5 @@ from enum import Enum class TemplateTypeEnum(str, Enum): - EMAIL = "email" - DOCUMENT = "document" + EMAIL = 'email' + DOCUMENT = 'document' diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index 46b36be3f..f52f36dce 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -10,8 +10,8 @@ from typing import Any, Optional class VariableParametersLanguageEnum(str, Enum): - EN = "en" - DE = "de" + EN = 'en' + DE = 'de' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py index d616a0d89..cdc7f4357 100755 --- a/template_variables/src/epilot/models/shared/variableresult.py +++ b/template_variables/src/epilot/models/shared/variableresult.py @@ -8,8 +8,8 @@ from typing import Optional class VariableResultTypeEnum(str, Enum): - SIMPLE = "simple" - PARTIAL = "partial" + SIMPLE = 'simple' + PARTIAL = 'partial' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 53ea97cd1..526d70181 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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, diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 0158755dd..07ef84ac0 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -39,8 +39,6 @@ def generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operati res = operations.GenerateQRcodeResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code == 200: - pass return res @@ -73,7 +71,6 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody Get full variable context Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace - """ base_url = self._server_url @@ -103,7 +100,6 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> Replace variables in handlebars templates Takes in an array of input templates and outputs the output text with replaced variables - """ base_url = self._server_url From 41de7f214acd17d6ad801932fed8de9cc41ed3a2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Apr 2023 01:23:51 +0000 Subject: [PATCH 02/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.6 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 747a82256..4c77d7e4b 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -40,4 +40,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:23:40 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index fad665885..02c6ffc3e 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 6ac0027ba..b9f74fda2 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.2.3", + version="1.3.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 526d70181..e2437281e 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 dd314cf1f2d0f2bf527d6c36a21b06377ce4d17d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Apr 2023 01:25:22 +0000 Subject: [PATCH 03/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.7 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 4c77d7e4b..bd11da96e 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -46,4 +46,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:25:11 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 02c6ffc3e..26fdacac6 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index b9f74fda2..65c5af558 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.3.0", + version="1.3.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index e2437281e..0ec3ab659 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 fb348012058af4a5b8ba289482c55951118268d4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Apr 2023 01:25:11 +0000 Subject: [PATCH 04/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.0 --- template_variables/RELEASES.md | 8 +- template_variables/gen.yaml | 6 +- template_variables/pylintrc | 1 + template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 +- template_variables/src/epilot/utils/utils.py | 127 ++++++++++--------- 6 files changed, 84 insertions(+), 64 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index bd11da96e..a841b0242 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -52,4 +52,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 26fdacac6..5a8434bd1 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/pylintrc b/template_variables/pylintrc index 1a0ea35b7..1ce47d88d 100755 --- a/template_variables/pylintrc +++ b/template_variables/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/template_variables/setup.py b/template_variables/setup.py index 65c5af558..abad82442 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.3.1", + version="1.4.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 0ec3ab659..d1061296e 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 9d4fba324..986a86937 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 48d7cebbf826a497ca365b2198a2c31e4d79db13 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Apr 2023 01:24:59 +0000 Subject: [PATCH 05/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 7 +++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index a841b0242..fc6226819 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -58,4 +58,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 5a8434bd1..f4ce38db5 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,15 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index abad82442..0bcfbc987 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.4.0", + version="1.4.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index d1061296e..ad8e0215f 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 62b53ea3149d454bedbd13167f952416b3077f9a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Apr 2023 01:27:47 +0000 Subject: [PATCH 06/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index fc6226819..e965eed94 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -64,4 +64,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:27:35 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index f4ce38db5..1d6cf98e8 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 0bcfbc987..629db5e02 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.4.1", + version="1.4.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index ad8e0215f..3d0015fe6 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 f88e802d48ef5b114315580acb2b27afebaf9a57 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 21 Apr 2023 01:24:49 +0000 Subject: [PATCH 07/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.21.4 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index e965eed94..225802862 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -70,4 +70,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:38 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 1d6cf98e8..d3698a4fc 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 629db5e02..664999785 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.4.2", + version="1.5.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 3d0015fe6..a77059591 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 b14ec7883d50ec42296d8b228d09ee074ae27f49 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Apr 2023 01:26:09 +0000 Subject: [PATCH 08/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.22.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 225802862..e7628675e 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -76,4 +76,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:25:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index d3698a4fc..8828150f5 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 664999785..0d4832436 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.5.0", + version="1.6.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index a77059591..f58e504ba 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 6ff5021d9c6c4eb6a939c5e966bde3976bd1b2c9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Apr 2023 01:25:51 +0000 Subject: [PATCH 09/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.23.1 --- template_variables/README.md | 30 +- template_variables/RELEASES.md | 8 +- template_variables/USAGE.md | 4 +- .../docs/customvariables/README.md | 413 ++++++++++++++++++ template_variables/docs/epilot/README.md | 8 + template_variables/docs/variables/README.md | 233 ++++++++++ template_variables/files.gen | 3 + template_variables/gen.yaml | 6 +- template_variables/setup.py | 4 +- template_variables/src/epilot/sdk.py | 4 +- 10 files changed, 688 insertions(+), 25 deletions(-) create mode 100755 template_variables/docs/customvariables/README.md create mode 100755 template_variables/docs/epilot/README.md create mode 100755 template_variables/docs/variables/README.md diff --git a/template_variables/README.md b/template_variables/README.md index 380d05d90..0cbc9cb4b 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -12,7 +12,7 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=templa ```python import epilot -from epilot.models import operations, shared +from epilot.models import shared s = epilot.Epilot( security=shared.Security( @@ -150,7 +150,7 @@ req = shared.CustomVariable( updated_at="2022-04-20T12:41:43.662Z", updated_by="100042", ) - + res = s.custom_variables.create_custom_variable(req) if res.status_code == 200: @@ -162,22 +162,22 @@ if res.status_code == 200: ## Available Resources and Operations -### custom_variables +### [custom_variables](docs/customvariables/README.md) -* `create_custom_variable` - Create custom variable -* `delete_custom_variable` - Delete custom variable -* `get_blue_print_table_config` - Get default table config -* `get_custom_variable` - Get custom variable -* `get_custom_variables` - Get custom variables -* `update_custom_variable` - Update custom variable +* [create_custom_variable](docs/customvariables/README.md#create_custom_variable) - Create custom variable +* [delete_custom_variable](docs/customvariables/README.md#delete_custom_variable) - Delete custom variable +* [get_blue_print_table_config](docs/customvariables/README.md#get_blue_print_table_config) - Get default table config +* [get_custom_variable](docs/customvariables/README.md#get_custom_variable) - Get custom variable +* [get_custom_variables](docs/customvariables/README.md#get_custom_variables) - Get custom variables +* [update_custom_variable](docs/customvariables/README.md#update_custom_variable) - Update custom variable -### variables +### [variables](docs/variables/README.md) -* `generate_q_rcode` - generateQRcode -* `get_categories` - getCategories -* `get_variable_context` - getVariableContext -* `replace_templates` - replaceTemplates -* `search_variables` - searchVariables +* [generate_q_rcode](docs/variables/README.md#generate_q_rcode) - generateQRcode +* [get_categories](docs/variables/README.md#get_categories) - getCategories +* [get_variable_context](docs/variables/README.md#get_variable_context) - getVariableContext +* [replace_templates](docs/variables/README.md#replace_templates) - replaceTemplates +* [search_variables](docs/variables/README.md#search_variables) - searchVariables ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index e7628675e..a70f51944 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -82,4 +82,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:25:35 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 7ee7f7f23..74c424f2a 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -1,7 +1,7 @@ ```python import epilot -from epilot.models import operations, shared +from epilot.models import shared s = epilot.Epilot( security=shared.Security( @@ -139,7 +139,7 @@ req = shared.CustomVariable( updated_at="2022-04-20T12:41:43.662Z", updated_by="100042", ) - + res = s.custom_variables.create_custom_variable(req) if res.status_code == 200: diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/customvariables/README.md new file mode 100755 index 000000000..332c3bc00 --- /dev/null +++ b/template_variables/docs/customvariables/README.md @@ -0,0 +1,413 @@ +# custom_variables + +### Available Operations + +* [create_custom_variable](#create_custom_variable) - Create custom variable +* [delete_custom_variable](#delete_custom_variable) - Delete custom variable +* [get_blue_print_table_config](#get_blue_print_table_config) - Get default table config +* [get_custom_variable](#get_custom_variable) - Get custom variable +* [get_custom_variables](#get_custom_variables) - Get custom variables +* [update_custom_variable](#update_custom_variable) - Update custom variable + +## create_custom_variable + +Create custom variable + +### Example Usage + +```python +import epilot +from epilot.models import shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = shared.CustomVariable( + config={ + "debitis": "ipsa", + "delectus": "tempora", + }, + created_at="2022-04-19T12:41:43.662Z", + created_by="100042", + helper_logic="return param1 * param2;", + helper_params=[ + "molestiae", + "minus", + ], + id="rbse777b-3cf8-4bff-bb0c-253fd1123250", + key="my_custom_table", + name="My Custom table", + template=" + + + {{#each table_config.header.columns as |column|}} + {{#if column.enable}} + + {{/if}} + {{/each}} + + + + + {{#each order.products as |product|}} + {{#if @last}} + + {{else}} + + {{/if}} + {{#each @root.table_config.header.columns as |column|}} + {{#if column.enable}} + {{#if (eq column.id 'item')}} + + + {{/if}} + {{#if (eq column.id 'quantity')}} + + + {{/if}} + {{#if (eq column.id 'tax')}} + + + {{/if}} + {{#if (eq column.id 'unit_amount')}} + + + {{/if}} + {{#if (eq column.id 'net_total')}} + + + {{/if}} + {{#if (eq column.id 'amount_tax')}} + + + {{/if}} + {{#if (eq column.id 'gross_total')}} + + + {{/if}} + {{/if}} + {{/each}} + + {{/each}} + + {{#if table_config.footer.gross_total.enable}} + {{#each order.total_details.recurrences as |item|}} + + + {{#if @root.table_config.footer.payment_type.enable}} + + {{/if}} + {{#if (isColumnEnabled @root.table_config 'net_total')}} + {{#if @root.table_config.footer.net_total.enable}} + + {{/if}} + {{/if}} + + + {{/each}} + {{/if}} + + +
{{column._label}}
+ {{#if @root.table_config.body.product_name.enable}} + {{product.name}} + {{/if}} + {{#if @root.table_config.body.price_description.enable}} +
+ {{product.price.description}} + {{/if}} + {{#if @root.table_config.body.product_description.enable}} +
+ {{product.description}} + {{/if}} +
{{product.price.quantity}} + + {{product.price.tax_rate}} + + {{product.price.unit_amount_net}} + + {{product.price.amount_subtotal}} + + {{product.price.amount_tax}} + + {{product.price.amount_total}} + {{#if @root.table_config.body.payment_type.enable}} + {{#if (eq product.price.type 'recurring')}} +
+ {{product.price.billing_period}} + {{/if}} + {{/if}} +
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}} + {{#if @root.table_config.footer.amount_tax.enable}} +
+ {{item.full_amount_tax}} + {{/if}} +
+", + type="custom", + updated_at="2022-04-20T12:41:43.662Z", + updated_by="100042", +) + +res = s.custom_variables.create_custom_variable(req) + +if res.status_code == 200: + # handle response +``` + +## delete_custom_variable + +Immediately and permanently deletes a custom variable + +### 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.DeleteCustomVariableRequest( + id="8796ed15-1a05-4dfc-addf-7cc78ca1ba92", +) + +res = s.custom_variables.delete_custom_variable(req) + +if res.status_code == 200: + # handle response +``` + +## get_blue_print_table_config + +Get default table config + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +res = s.custom_variables.get_blue_print_table_config() + +if res.custom_variable is not None: + # handle response +``` + +## get_custom_variable + +Get custom variable + +### 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.GetCustomVariableRequest( + id="8fc81674-2cb7-4392-8592-9396fea7596e", +) + +res = s.custom_variables.get_custom_variable(req) + +if res.custom_variable is not None: + # handle response +``` + +## get_custom_variables + +Get all custom variables of organization + +### Example Usage + +```python +import epilot + + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +res = s.custom_variables.get_custom_variables() + +if res.custom_variables is not None: + # handle response +``` + +## update_custom_variable + +Update custom variable + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.UpdateCustomVariableRequest( + custom_variable=shared.CustomVariable( + config={ + "architecto": "ipsa", + "reiciendis": "est", + "mollitia": "laborum", + }, + created_at="2022-04-19T12:41:43.662Z", + created_by="100042", + helper_logic="return param1 * param2;", + helper_params=[ + "dolorem", + ], + id="rbse777b-3cf8-4bff-bb0c-253fd1123250", + key="my_custom_table", + name="My Custom table", + template=" + + + {{#each table_config.header.columns as |column|}} + {{#if column.enable}} + + {{/if}} + {{/each}} + + + + + {{#each order.products as |product|}} + {{#if @last}} + + {{else}} + + {{/if}} + {{#each @root.table_config.header.columns as |column|}} + {{#if column.enable}} + {{#if (eq column.id 'item')}} + + + {{/if}} + {{#if (eq column.id 'quantity')}} + + + {{/if}} + {{#if (eq column.id 'tax')}} + + + {{/if}} + {{#if (eq column.id 'unit_amount')}} + + + {{/if}} + {{#if (eq column.id 'net_total')}} + + + {{/if}} + {{#if (eq column.id 'amount_tax')}} + + + {{/if}} + {{#if (eq column.id 'gross_total')}} + + + {{/if}} + {{/if}} + {{/each}} + + {{/each}} + + {{#if table_config.footer.gross_total.enable}} + {{#each order.total_details.recurrences as |item|}} + + + {{#if @root.table_config.footer.payment_type.enable}} + + {{/if}} + {{#if (isColumnEnabled @root.table_config 'net_total')}} + {{#if @root.table_config.footer.net_total.enable}} + + {{/if}} + {{/if}} + + + {{/each}} + {{/if}} + + +
{{column._label}}
+ {{#if @root.table_config.body.product_name.enable}} + {{product.name}} + {{/if}} + {{#if @root.table_config.body.price_description.enable}} +
+ {{product.price.description}} + {{/if}} + {{#if @root.table_config.body.product_description.enable}} +
+ {{product.description}} + {{/if}} +
{{product.price.quantity}} + + {{product.price.tax_rate}} + + {{product.price.unit_amount_net}} + + {{product.price.amount_subtotal}} + + {{product.price.amount_tax}} + + {{product.price.amount_total}} + {{#if @root.table_config.body.payment_type.enable}} + {{#if (eq product.price.type 'recurring')}} +
+ {{product.price.billing_period}} + {{/if}} + {{/if}} +
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}} + {{#if @root.table_config.footer.amount_tax.enable}} +
+ {{item.full_amount_tax}} + {{/if}} +
+ ", + type="order_table", + updated_at="2022-04-20T12:41:43.662Z", + updated_by="100042", + ), + id="2c595590-7aff-41a3-a2fa-9467739251aa", +) + +res = s.custom_variables.update_custom_variable(req) + +if res.status_code == 200: + # handle response +``` diff --git a/template_variables/docs/epilot/README.md b/template_variables/docs/epilot/README.md new file mode 100755 index 000000000..c757c8546 --- /dev/null +++ b/template_variables/docs/epilot/README.md @@ -0,0 +1,8 @@ +# Epilot SDK + +## Overview + +API to provide variables for email and document templates. + +### Available Operations + diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md new file mode 100755 index 000000000..8e47562ec --- /dev/null +++ b/template_variables/docs/variables/README.md @@ -0,0 +1,233 @@ +# variables + +## Overview + +Variables + +### Available Operations + +* [generate_q_rcode](#generate_q_rcode) - generateQRcode +* [get_categories](#get_categories) - getCategories +* [get_variable_context](#get_variable_context) - getVariableContext +* [replace_templates](#replace_templates) - replaceTemplates +* [search_variables](#search_variables) - searchVariables + +## generate_q_rcode + +Generate QR Code for the given payload + +### 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.GenerateQRcodeRequest( + qrdata="enim", +) + +res = s.variables.generate_q_rcode(req) + +if res.status_code == 200: + # handle response +``` + +## get_categories + +Get all template variable categories + +### 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.GetCategoriesRequest( + lang="de", +) + +res = s.variables.get_categories(req) + +if res.category_results is not None: + # handle response +``` + +## get_variable_context + +Get full variable context + +Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace + + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.GetVariableContextRequestBody( + parameters=shared.VariableParameters( + brand_id=123451, + context_data={ + "quo": "sequi", + }, + custom_variables=[ + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + ], + language="en", + main_entity_id="63753437-c9e2-4e83-82bb-b1c666514561", + template_name="id", + template_tags=[ + "aut", + "quasi", + "error", + "temporibus", + ], + template_type="document", + user_id="50001", + ), +) + +res = s.variables.get_variable_context(req) + +if res.variable_context is not None: + # handle response +``` + +## replace_templates + +Replace variables in handlebars templates + +Takes in an array of input templates and outputs the output text with replaced variables + + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.ReplaceTemplatesRequestBody( + inputs=[ + "Hello, {{contact.first_name}}! + + {{{brand.signature}}} + ", + ], + parameters=shared.VariableParameters( + brand_id=123451, + context_data={ + "voluptatibus": "vero", + "nihil": "praesentium", + "voluptatibus": "ipsa", + "omnis": "voluptate", + }, + custom_variables=[ + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + shared.ExternalCustomVariable( + value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", + variable="{{craftsmen.invitation_link}}", + ), + ], + language="en", + main_entity_id="63753437-c9e2-4e83-82bb-b1c666514561", + template_name="doloremque", + template_tags=[ + "ut", + "maiores", + ], + template_type="email", + user_id="50001", + ), +) + +res = s.variables.replace_templates(req) + +if res.replace_templates_200_application_json_object is not None: + # handle response +``` + +## search_variables + +Search variables + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.SearchVariablesRequestBody( + entity_schemas=[ + "contact", + "contact", + ], + from_=296140, + lang="en", + query="logo", + size=118727, + template_type="document", +) + +res = s.variables.search_variables(req) + +if res.variable_results is not None: + # handle response +``` diff --git a/template_variables/files.gen b/template_variables/files.gen index fedb99593..d84490eeb 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -29,4 +29,7 @@ src/epilot/models/shared/externalcustomvariable.py src/epilot/models/shared/variableresult.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py +docs/epilot/README.md +docs/customvariables/README.md +docs/variables/README.md USAGE.md \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 8828150f5..8649e5f37 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 0d4832436..08d5b5032 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,14 +10,14 @@ setuptools.setup( name="epilot-template-variables", - 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/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index f58e504ba..485b7d6fa 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 04b202ad09d8111be01df6064ac9c2c54bcddf6d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Apr 2023 01:34:00 +0000 Subject: [PATCH 10/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.25.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index a70f51944..7e7f3345a 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -88,4 +88,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:33:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 8649e5f37..2de53f768 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 08d5b5032..fc344bb6c 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.7.0", + version="1.8.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 485b7d6fa..9f6d2224f 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 cf4ca526417a05909b20274a0d19cabfd775dcf8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Apr 2023 01:34:06 +0000 Subject: [PATCH 11/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.2 --- template_variables/RELEASES.md | 8 ++++- template_variables/gen.yaml | 6 ++-- template_variables/setup.py | 2 +- .../models/operations/createcustomvariable.py | 9 +++-- .../models/operations/deletecustomvariable.py | 12 ++++--- .../models/operations/generateqrcode.py | 12 ++++--- .../operations/getblueprinttableconfig.py | 12 ++++--- .../epilot/models/operations/getcategories.py | 15 +++++--- .../models/operations/getcustomvariable.py | 15 +++++--- .../models/operations/getcustomvariables.py | 12 ++++--- .../models/operations/getvariablecontext.py | 15 +++++--- .../models/operations/replacetemplates.py | 21 +++++++---- .../models/operations/searchvariables.py | 30 ++++++++++------ .../models/operations/updatecustomvariable.py | 15 +++++--- .../epilot/models/shared/categoryresult.py | 6 ++-- .../epilot/models/shared/customvariable.py | 36 ++++++++++++------- .../models/shared/externalcustomvariable.py | 6 ++-- .../src/epilot/models/shared/security.py | 3 +- .../epilot/models/shared/variablecontext.py | 12 ++++--- .../models/shared/variableparameters.py | 27 +++++++++----- .../epilot/models/shared/variableresult.py | 15 +++++--- template_variables/src/epilot/sdk.py | 4 +-- 22 files changed, 195 insertions(+), 98 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 7e7f3345a..2befb91ac 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -94,4 +94,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:33:51 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 2de53f768..50a9cd27f 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index fc344bb6c..1d5dc6b4e 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.8.0", + version="1.9.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py index 8adbc8008..ccd006663 100755 --- a/template_variables/src/epilot/models/operations/createcustomvariable.py +++ b/template_variables/src/epilot/models/operations/createcustomvariable.py @@ -9,7 +9,10 @@ @dataclasses.dataclass class CreateCustomVariableResponse: - 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/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py index 9915f50a3..f8e8e8d37 100755 --- a/template_variables/src/epilot/models/operations/deletecustomvariable.py +++ b/template_variables/src/epilot/models/operations/deletecustomvariable.py @@ -10,13 +10,17 @@ class DeleteCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Custom vairable ID""" + + r"""Custom vairable ID""" @dataclasses.dataclass class DeleteCustomVariableResponse: - 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/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py index 8e360c885..cf1a4230e 100755 --- a/template_variables/src/epilot/models/operations/generateqrcode.py +++ b/template_variables/src/epilot/models/operations/generateqrcode.py @@ -10,13 +10,17 @@ class GenerateQRcodeRequest: qrdata: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'qrdata', 'style': 'form', 'explode': True }}) - r"""Payload of the QR code""" + + r"""Payload of the QR code""" @dataclasses.dataclass class GenerateQRcodeResponse: - 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/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py index 25afa8caf..e7ae1417a 100755 --- a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py +++ b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py @@ -10,9 +10,13 @@ @dataclasses.dataclass class GetBluePrintTableConfigResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index 4675a44a5..df1f4b2e8 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -17,15 +17,20 @@ class GetCategoriesLangEnum(str, Enum): class GetCategoriesRequest: lang: Optional[GetCategoriesLangEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'lang', 'style': 'form', 'explode': True }}) - r"""Language""" + + r"""Language""" @dataclasses.dataclass class GetCategoriesResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + category_results: Optional[list[shared_categoryresult.CategoryResult]] = dataclasses.field(default=None) - r"""ok""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""ok""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py index 7478f617a..b228ca343 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariable.py +++ b/template_variables/src/epilot/models/operations/getcustomvariable.py @@ -11,15 +11,20 @@ class GetCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Custom vairable ID""" + + r"""Custom vairable ID""" @dataclasses.dataclass class GetCustomVariableResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py index e3c0c1017..59d5bf53f 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariables.py +++ b/template_variables/src/epilot/models/operations/getcustomvariables.py @@ -10,9 +10,13 @@ @dataclasses.dataclass class GetCustomVariablesResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + custom_variables: Optional[list[shared_customvariable.CustomVariable]] = 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/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py index 2583cc584..7cc67be73 100755 --- a/template_variables/src/epilot/models/operations/getvariablecontext.py +++ b/template_variables/src/epilot/models/operations/getvariablecontext.py @@ -14,15 +14,20 @@ @dataclasses.dataclass class GetVariableContextRequestBody: - parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) + parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) + @dataclasses.dataclass class GetVariableContextResponse: - 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) + variable_context: Optional[shared_variablecontext.VariableContext] = dataclasses.field(default=None) - r"""ok""" + + r"""ok""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py index c8a02e00c..fcf167f0a 100755 --- a/template_variables/src/epilot/models/operations/replacetemplates.py +++ b/template_variables/src/epilot/models/operations/replacetemplates.py @@ -13,8 +13,10 @@ @dataclasses.dataclass class ReplaceTemplatesRequestBody: - inputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('inputs'), 'exclude': lambda f: f is None }}) - parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) + inputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('inputs'), 'exclude': lambda f: f is None }}) + + parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -22,15 +24,20 @@ class ReplaceTemplatesRequestBody: class ReplaceTemplates200ApplicationJSON: r"""ok""" - outputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('outputs'), 'exclude': lambda f: f is None }}) + outputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('outputs'), 'exclude': lambda f: f is None }}) + @dataclasses.dataclass class ReplaceTemplatesResponse: - 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) + replace_templates_200_application_json_object: Optional[ReplaceTemplates200ApplicationJSON] = dataclasses.field(default=None) - r"""ok""" + + r"""ok""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index 18df3a258..102806576 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -20,20 +20,30 @@ class SearchVariablesRequestBodyLangEnum(str, Enum): class SearchVariablesRequestBody: query: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('query') }}) - r"""Search string""" - template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) - entity_schemas: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) - from_: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) - lang: Optional[SearchVariablesRequestBodyLangEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) - size: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) + + r"""Search string""" + template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) + + entity_schemas: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) + + from_: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) + + lang: Optional[SearchVariablesRequestBodyLangEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) + + size: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) + @dataclasses.dataclass class SearchVariablesResponse: - 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) + variable_results: Optional[list[shared_variableresult.VariableResult]] = dataclasses.field(default=None) - r"""ok""" + + r"""ok""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py index ddc0124e0..5b76e7f79 100755 --- a/template_variables/src/epilot/models/operations/updatecustomvariable.py +++ b/template_variables/src/epilot/models/operations/updatecustomvariable.py @@ -11,14 +11,19 @@ class UpdateCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Custom variable ID""" - custom_variable: Optional[shared_customvariable.CustomVariable] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + + r"""Custom variable ID""" + custom_variable: Optional[shared_customvariable.CustomVariable] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + @dataclasses.dataclass class UpdateCustomVariableResponse: - 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/template_variables/src/epilot/models/shared/categoryresult.py b/template_variables/src/epilot/models/shared/categoryresult.py index 77ca5f503..cf94be6e0 100755 --- a/template_variables/src/epilot/models/shared/categoryresult.py +++ b/template_variables/src/epilot/models/shared/categoryresult.py @@ -11,6 +11,8 @@ @dataclasses.dataclass class CategoryResult: - category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('category'), 'exclude': lambda f: f is None }}) - description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) + category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('category'), 'exclude': lambda f: f is None }}) + + description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 1337bf1b1..4ad467646 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -19,27 +19,39 @@ class CustomVariable: r"""Success""" config: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('config'), 'exclude': lambda f: f is None }}) - r"""Variable configuration""" + + r"""Variable configuration""" created_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_at'), 'exclude': lambda f: f is None }}) - r"""Creation time""" + + r"""Creation time""" created_by: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_by'), 'exclude': lambda f: f is None }}) - r"""Created by""" + + r"""Created by""" helper_logic: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_logic'), 'exclude': lambda f: f is None }}) - r"""The helper function logic""" + + r"""The helper function logic""" helper_params: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_params'), 'exclude': lambda f: f is None }}) - r"""The helper function parameter's names""" + + r"""The helper function parameter's names""" id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - r"""ID""" + + r"""ID""" key: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('key'), 'exclude': lambda f: f is None }}) - r"""The key which is used for Handlebar variable syntax {{key}}""" + + r"""The key which is used for Handlebar variable syntax {{key}}""" name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }}) - r"""Custom variable name""" + + r"""Custom variable name""" template: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template'), 'exclude': lambda f: f is None }}) - r"""Handlebar template that used to generate the variable content""" + + r"""Handlebar template that used to generate the variable content""" type: Optional[CustomVariableTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) - r"""Custom variable type""" + + r"""Custom variable type""" updated_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updated_at'), 'exclude': lambda f: f is None }}) - r"""Last update time""" + + r"""Last update time""" updated_by: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updated_by'), 'exclude': lambda f: f is None }}) - r"""Updated by""" + + r"""Updated by""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/externalcustomvariable.py b/template_variables/src/epilot/models/shared/externalcustomvariable.py index fe478c518..9ee02de8a 100755 --- a/template_variables/src/epilot/models/shared/externalcustomvariable.py +++ b/template_variables/src/epilot/models/shared/externalcustomvariable.py @@ -11,6 +11,8 @@ @dataclasses.dataclass class ExternalCustomVariable: - value: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('value'), 'exclude': lambda f: f is None }}) - variable: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable'), 'exclude': lambda f: f is None }}) + value: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('value'), 'exclude': lambda f: f is None }}) + + variable: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/security.py b/template_variables/src/epilot/models/shared/security.py index cca0d01c8..2157ebc16 100755 --- a/template_variables/src/epilot/models/shared/security.py +++ b/template_variables/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/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py index c1b1dfb92..2539fd0b3 100755 --- a/template_variables/src/epilot/models/shared/variablecontext.py +++ b/template_variables/src/epilot/models/shared/variablecontext.py @@ -12,8 +12,12 @@ class VariableContext: r"""ok""" - brand: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) - contact: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) - main: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) - unsubscribe_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unsubscribe_url'), 'exclude': lambda f: f is None }}) + brand: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) + + contact: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) + + main: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) + + unsubscribe_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unsubscribe_url'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index f52f36dce..87bf10bc1 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -18,20 +18,29 @@ class VariableParametersLanguageEnum(str, Enum): @dataclasses.dataclass class VariableParameters: - template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) + template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) + brand_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand_id'), 'exclude': lambda f: f is None }}) - r"""Brand ID""" + + r"""Brand ID""" context_data: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) - r"""If context data is avaialble, this data will be used for variable replace.""" + + r"""If context data is avaialble, this data will be used for variable replace.""" custom_variables: Optional[list[shared_externalcustomvariable.ExternalCustomVariable]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_variables'), 'exclude': lambda f: f is None }}) - r"""Custom variables with specified values form other services.""" - language: Optional[VariableParametersLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + + r"""Custom variables with specified values form other services.""" + language: Optional[VariableParametersLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + main_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main_entity_id'), 'exclude': lambda f: f is None }}) - r"""The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.""" + + r"""The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.""" template_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_name'), 'exclude': lambda f: f is None }}) - r"""The name of email template""" + + r"""The name of email template""" template_tags: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_tags'), 'exclude': lambda f: f is None }}) - r"""The tags of email template""" + + r"""The tags of email template""" user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id'), 'exclude': lambda f: f is None }}) - r"""User ID""" + + r"""User ID""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py index cdc7f4357..0eecb6fbb 100755 --- a/template_variables/src/epilot/models/shared/variableresult.py +++ b/template_variables/src/epilot/models/shared/variableresult.py @@ -17,12 +17,17 @@ class VariableResultTypeEnum(str, Enum): class VariableResult: description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) - r"""Variable description""" + + r"""Variable description""" group: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('group'), 'exclude': lambda f: f is None }}) - r"""Variable group""" + + r"""Variable group""" insert: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('insert'), 'exclude': lambda f: f is None }}) - r"""The value which is used to insert to template""" + + r"""The value which is used to insert to template""" qrdata: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('qrdata'), 'exclude': lambda f: f is None }}) - r"""Payload for the QR data""" - type: Optional[VariableResultTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) + + r"""Payload for the QR data""" + type: Optional[VariableResultTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 9f6d2224f..550c7c50a 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 82f34ea108ce46a60f6e5c4f1a1fb955fd5e2776 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 29 Apr 2023 01:26:00 +0000 Subject: [PATCH 12/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.4 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- .../epilot/models/operations/createcustomvariable.py | 3 --- .../epilot/models/operations/deletecustomvariable.py | 4 ---- .../src/epilot/models/operations/generateqrcode.py | 4 ---- .../models/operations/getblueprinttableconfig.py | 4 ---- .../src/epilot/models/operations/getcategories.py | 5 ----- .../epilot/models/operations/getcustomvariable.py | 5 ----- .../epilot/models/operations/getcustomvariables.py | 4 ---- .../epilot/models/operations/getvariablecontext.py | 5 ----- .../src/epilot/models/operations/replacetemplates.py | 7 ------- .../src/epilot/models/operations/searchvariables.py | 10 ---------- .../epilot/models/operations/updatecustomvariable.py | 5 ----- .../src/epilot/models/shared/categoryresult.py | 2 -- .../src/epilot/models/shared/customvariable.py | 12 ------------ .../epilot/models/shared/externalcustomvariable.py | 2 -- .../src/epilot/models/shared/security.py | 1 - .../src/epilot/models/shared/variablecontext.py | 4 ---- .../src/epilot/models/shared/variableparameters.py | 9 --------- .../src/epilot/models/shared/variableresult.py | 5 ----- template_variables/src/epilot/sdk.py | 4 ++-- 22 files changed, 13 insertions(+), 98 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 2befb91ac..9c00ce53d 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -100,4 +100,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:25:42 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 50a9cd27f..33bcb9a6f 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 1d5dc6b4e..9b5bd5df4 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.9.0", + version="1.9.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py index ccd006663..1cd6d3074 100755 --- a/template_variables/src/epilot/models/operations/createcustomvariable.py +++ b/template_variables/src/epilot/models/operations/createcustomvariable.py @@ -10,9 +10,6 @@ class CreateCustomVariableResponse: 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/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py index f8e8e8d37..bed46a964 100755 --- a/template_variables/src/epilot/models/operations/deletecustomvariable.py +++ b/template_variables/src/epilot/models/operations/deletecustomvariable.py @@ -10,7 +10,6 @@ class DeleteCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Custom vairable ID""" @@ -18,9 +17,6 @@ class DeleteCustomVariableRequest: class DeleteCustomVariableResponse: 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/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py index cf1a4230e..fa04cd930 100755 --- a/template_variables/src/epilot/models/operations/generateqrcode.py +++ b/template_variables/src/epilot/models/operations/generateqrcode.py @@ -10,7 +10,6 @@ class GenerateQRcodeRequest: qrdata: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'qrdata', 'style': 'form', 'explode': True }}) - r"""Payload of the QR code""" @@ -18,9 +17,6 @@ class GenerateQRcodeRequest: class GenerateQRcodeResponse: 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/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py index e7ae1417a..88fd77129 100755 --- a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py +++ b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py @@ -11,12 +11,8 @@ class GetBluePrintTableConfigResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index df1f4b2e8..ed16b7681 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -17,7 +17,6 @@ class GetCategoriesLangEnum(str, Enum): class GetCategoriesRequest: lang: Optional[GetCategoriesLangEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'lang', 'style': 'form', 'explode': True }}) - r"""Language""" @@ -25,12 +24,8 @@ class GetCategoriesRequest: class GetCategoriesResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - category_results: Optional[list[shared_categoryresult.CategoryResult]] = dataclasses.field(default=None) - r"""ok""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py index b228ca343..a4992e757 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariable.py +++ b/template_variables/src/epilot/models/operations/getcustomvariable.py @@ -11,7 +11,6 @@ class GetCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Custom vairable ID""" @@ -19,12 +18,8 @@ class GetCustomVariableRequest: class GetCustomVariableResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py index 59d5bf53f..e8f4c35a8 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariables.py +++ b/template_variables/src/epilot/models/operations/getcustomvariables.py @@ -11,12 +11,8 @@ class GetCustomVariablesResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - custom_variables: Optional[list[shared_customvariable.CustomVariable]] = 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/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py index 7cc67be73..07a5c57be 100755 --- a/template_variables/src/epilot/models/operations/getvariablecontext.py +++ b/template_variables/src/epilot/models/operations/getvariablecontext.py @@ -15,19 +15,14 @@ class GetVariableContextRequestBody: parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class GetVariableContextResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - variable_context: Optional[shared_variablecontext.VariableContext] = dataclasses.field(default=None) - r"""ok""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py index fcf167f0a..7af24a024 100755 --- a/template_variables/src/epilot/models/operations/replacetemplates.py +++ b/template_variables/src/epilot/models/operations/replacetemplates.py @@ -14,9 +14,7 @@ class ReplaceTemplatesRequestBody: inputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('inputs'), 'exclude': lambda f: f is None }}) - parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -25,19 +23,14 @@ class ReplaceTemplates200ApplicationJSON: r"""ok""" outputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('outputs'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class ReplaceTemplatesResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - replace_templates_200_application_json_object: Optional[ReplaceTemplates200ApplicationJSON] = dataclasses.field(default=None) - r"""ok""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index 102806576..bf3a83c29 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -20,30 +20,20 @@ class SearchVariablesRequestBodyLangEnum(str, Enum): class SearchVariablesRequestBody: query: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('query') }}) - r"""Search string""" template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) - entity_schemas: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) - from_: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) - lang: Optional[SearchVariablesRequestBodyLangEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) - size: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class SearchVariablesResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - variable_results: Optional[list[shared_variableresult.VariableResult]] = dataclasses.field(default=None) - r"""ok""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py index 5b76e7f79..e5fc9a02e 100755 --- a/template_variables/src/epilot/models/operations/updatecustomvariable.py +++ b/template_variables/src/epilot/models/operations/updatecustomvariable.py @@ -11,19 +11,14 @@ class UpdateCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) - r"""Custom variable ID""" custom_variable: Optional[shared_customvariable.CustomVariable] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) - @dataclasses.dataclass class UpdateCustomVariableResponse: 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/template_variables/src/epilot/models/shared/categoryresult.py b/template_variables/src/epilot/models/shared/categoryresult.py index cf94be6e0..5287f6d6a 100755 --- a/template_variables/src/epilot/models/shared/categoryresult.py +++ b/template_variables/src/epilot/models/shared/categoryresult.py @@ -12,7 +12,5 @@ class CategoryResult: category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('category'), 'exclude': lambda f: f is None }}) - description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 4ad467646..36321a604 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -19,39 +19,27 @@ class CustomVariable: r"""Success""" config: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('config'), 'exclude': lambda f: f is None }}) - r"""Variable configuration""" created_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_at'), 'exclude': lambda f: f is None }}) - r"""Creation time""" created_by: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_by'), 'exclude': lambda f: f is None }}) - r"""Created by""" helper_logic: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_logic'), 'exclude': lambda f: f is None }}) - r"""The helper function logic""" helper_params: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_params'), 'exclude': lambda f: f is None }}) - r"""The helper function parameter's names""" id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - r"""ID""" key: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('key'), 'exclude': lambda f: f is None }}) - r"""The key which is used for Handlebar variable syntax {{key}}""" name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }}) - r"""Custom variable name""" template: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template'), 'exclude': lambda f: f is None }}) - r"""Handlebar template that used to generate the variable content""" type: Optional[CustomVariableTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) - r"""Custom variable type""" updated_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updated_at'), 'exclude': lambda f: f is None }}) - r"""Last update time""" updated_by: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updated_by'), 'exclude': lambda f: f is None }}) - r"""Updated by""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/externalcustomvariable.py b/template_variables/src/epilot/models/shared/externalcustomvariable.py index 9ee02de8a..8fe3c4f8e 100755 --- a/template_variables/src/epilot/models/shared/externalcustomvariable.py +++ b/template_variables/src/epilot/models/shared/externalcustomvariable.py @@ -12,7 +12,5 @@ class ExternalCustomVariable: value: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('value'), 'exclude': lambda f: f is None }}) - variable: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/security.py b/template_variables/src/epilot/models/shared/security.py index 2157ebc16..7be3d6e93 100755 --- a/template_variables/src/epilot/models/shared/security.py +++ b/template_variables/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/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py index 2539fd0b3..115d566b2 100755 --- a/template_variables/src/epilot/models/shared/variablecontext.py +++ b/template_variables/src/epilot/models/shared/variablecontext.py @@ -13,11 +13,7 @@ class VariableContext: r"""ok""" brand: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) - contact: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) - main: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) - unsubscribe_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unsubscribe_url'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index 87bf10bc1..e984812a7 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -19,28 +19,19 @@ class VariableParametersLanguageEnum(str, Enum): class VariableParameters: template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) - brand_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand_id'), 'exclude': lambda f: f is None }}) - r"""Brand ID""" context_data: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) - r"""If context data is avaialble, this data will be used for variable replace.""" custom_variables: Optional[list[shared_externalcustomvariable.ExternalCustomVariable]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_variables'), 'exclude': lambda f: f is None }}) - r"""Custom variables with specified values form other services.""" language: Optional[VariableParametersLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) - main_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main_entity_id'), 'exclude': lambda f: f is None }}) - r"""The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.""" template_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_name'), 'exclude': lambda f: f is None }}) - r"""The name of email template""" template_tags: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_tags'), 'exclude': lambda f: f is None }}) - r"""The tags of email template""" user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id'), 'exclude': lambda f: f is None }}) - r"""User ID""" \ No newline at end of file diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py index 0eecb6fbb..43e81b616 100755 --- a/template_variables/src/epilot/models/shared/variableresult.py +++ b/template_variables/src/epilot/models/shared/variableresult.py @@ -17,17 +17,12 @@ class VariableResultTypeEnum(str, Enum): class VariableResult: description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) - r"""Variable description""" group: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('group'), 'exclude': lambda f: f is None }}) - r"""Variable group""" insert: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('insert'), 'exclude': lambda f: f is None }}) - r"""The value which is used to insert to template""" qrdata: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('qrdata'), 'exclude': lambda f: f is None }}) - r"""Payload for the QR data""" type: Optional[VariableResultTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 550c7c50a..8102f3fc3 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 238c2f240e05f7a9b9919f80cc8bec4a3225749b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 2 May 2023 01:26:39 +0000 Subject: [PATCH 13/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.5 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 9c00ce53d..d5748f5b7 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -106,4 +106,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:26:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 33bcb9a6f..8a64023b5 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 9b5bd5df4..8af767da7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.9.1", + version="1.9.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 8102f3fc3..9342b98fc 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 9bba7acf12d4517d253184c5650a35f4367ebc73 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 3 May 2023 01:27:15 +0000 Subject: [PATCH 14/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.27.0 --- template_variables/README.md | 36 ++++---- template_variables/RELEASES.md | 8 +- template_variables/USAGE.md | 36 ++++---- .../docs/customvariables/README.md | 66 +++++++------- template_variables/docs/variables/README.md | 88 +++++++++---------- template_variables/gen.yaml | 6 +- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 +- template_variables/src/epilot/utils/utils.py | 2 +- 9 files changed, 127 insertions(+), 121 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 0cbc9cb4b..0e268d28c 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -23,23 +23,23 @@ s = epilot.Epilot( req = shared.CustomVariable( config={ - "provident": "distinctio", - "quibusdam": "unde", - "nulla": "corrupti", + "provident": 'distinctio', + "quibusdam": 'unde', + "nulla": 'corrupti', }, - created_at="2022-04-19T12:41:43.662Z", - created_by="100042", - helper_logic="return param1 * param2;", + created_at='2022-04-19T12:41:43.662Z', + created_by='100042', + helper_logic='return param1 * param2;', helper_params=[ - "vel", - "error", - "deserunt", - "suscipit", + 'vel', + 'error', + 'deserunt', + 'suscipit', ], - id="rbse777b-3cf8-4bff-bb0c-253fd1123250", - key="my_custom_table", - name="My Custom table", - template=" + id='rbse777b-3cf8-4bff-bb0c-253fd1123250', + key='my_custom_table', + name='My Custom table', + template='
{{#each table_config.header.columns as |column|}} @@ -145,10 +145,10 @@ req = shared.CustomVariable(
-", - type="order_table", - updated_at="2022-04-20T12:41:43.662Z", - updated_by="100042", +', + type=shared.CustomVariableTypeEnum.ORDER_TABLE, + updated_at='2022-04-20T12:41:43.662Z', + updated_by='100042', ) res = s.custom_variables.create_custom_variable(req) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index d5748f5b7..16351c995 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -112,4 +112,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:27:03 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 74c424f2a..773b6b442 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -12,23 +12,23 @@ s = epilot.Epilot( req = shared.CustomVariable( config={ - "provident": "distinctio", - "quibusdam": "unde", - "nulla": "corrupti", + "provident": 'distinctio', + "quibusdam": 'unde', + "nulla": 'corrupti', }, - created_at="2022-04-19T12:41:43.662Z", - created_by="100042", - helper_logic="return param1 * param2;", + created_at='2022-04-19T12:41:43.662Z', + created_by='100042', + helper_logic='return param1 * param2;', helper_params=[ - "vel", - "error", - "deserunt", - "suscipit", + 'vel', + 'error', + 'deserunt', + 'suscipit', ], - id="rbse777b-3cf8-4bff-bb0c-253fd1123250", - key="my_custom_table", - name="My Custom table", - template=" + id='rbse777b-3cf8-4bff-bb0c-253fd1123250', + key='my_custom_table', + name='My Custom table', + template='
{{#each table_config.header.columns as |column|}} @@ -134,10 +134,10 @@ req = shared.CustomVariable(
-", - type="order_table", - updated_at="2022-04-20T12:41:43.662Z", - updated_by="100042", +', + type=shared.CustomVariableTypeEnum.ORDER_TABLE, + updated_at='2022-04-20T12:41:43.662Z', + updated_by='100042', ) res = s.custom_variables.create_custom_variable(req) diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/customvariables/README.md index 332c3bc00..d90562653 100755 --- a/template_variables/docs/customvariables/README.md +++ b/template_variables/docs/customvariables/README.md @@ -28,20 +28,20 @@ s = epilot.Epilot( req = shared.CustomVariable( config={ - "debitis": "ipsa", - "delectus": "tempora", + "debitis": 'ipsa', + "delectus": 'tempora', }, - created_at="2022-04-19T12:41:43.662Z", - created_by="100042", - helper_logic="return param1 * param2;", + created_at='2022-04-19T12:41:43.662Z', + created_by='100042', + helper_logic='return param1 * param2;', helper_params=[ - "molestiae", - "minus", + 'molestiae', + 'minus', ], - id="rbse777b-3cf8-4bff-bb0c-253fd1123250", - key="my_custom_table", - name="My Custom table", - template=" + id='rbse777b-3cf8-4bff-bb0c-253fd1123250', + key='my_custom_table', + name='My Custom table', + template='
{{#each table_config.header.columns as |column|}} @@ -147,10 +147,10 @@ req = shared.CustomVariable(
-", - type="custom", - updated_at="2022-04-20T12:41:43.662Z", - updated_by="100042", +', + type=shared.CustomVariableTypeEnum.CUSTOM, + updated_at='2022-04-20T12:41:43.662Z', + updated_by='100042', ) res = s.custom_variables.create_custom_variable(req) @@ -177,7 +177,7 @@ s = epilot.Epilot( req = operations.DeleteCustomVariableRequest( - id="8796ed15-1a05-4dfc-addf-7cc78ca1ba92", + id='8796ed15-1a05-4dfc-addf-7cc78ca1ba92', ) res = s.custom_variables.delete_custom_variable(req) @@ -227,7 +227,7 @@ s = epilot.Epilot( req = operations.GetCustomVariableRequest( - id="8fc81674-2cb7-4392-8592-9396fea7596e", + id='8fc81674-2cb7-4392-8592-9396fea7596e', ) res = s.custom_variables.get_custom_variable(req) @@ -279,20 +279,20 @@ s = epilot.Epilot( req = operations.UpdateCustomVariableRequest( custom_variable=shared.CustomVariable( config={ - "architecto": "ipsa", - "reiciendis": "est", - "mollitia": "laborum", + "architecto": 'ipsa', + "reiciendis": 'est', + "mollitia": 'laborum', }, - created_at="2022-04-19T12:41:43.662Z", - created_by="100042", - helper_logic="return param1 * param2;", + created_at='2022-04-19T12:41:43.662Z', + created_by='100042', + helper_logic='return param1 * param2;', helper_params=[ - "dolorem", + 'dolorem', ], - id="rbse777b-3cf8-4bff-bb0c-253fd1123250", - key="my_custom_table", - name="My Custom table", - template=" + id='rbse777b-3cf8-4bff-bb0c-253fd1123250', + key='my_custom_table', + name='My Custom table', + template='
{{#each table_config.header.columns as |column|}} @@ -398,12 +398,12 @@ req = operations.UpdateCustomVariableRequest(
- ", - type="order_table", - updated_at="2022-04-20T12:41:43.662Z", - updated_by="100042", + ', + type=shared.CustomVariableTypeEnum.ORDER_TABLE, + updated_at='2022-04-20T12:41:43.662Z', + updated_by='100042', ), - id="2c595590-7aff-41a3-a2fa-9467739251aa", + id='2c595590-7aff-41a3-a2fa-9467739251aa', ) res = s.custom_variables.update_custom_variable(req) diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md index 8e47562ec..227c7693b 100755 --- a/template_variables/docs/variables/README.md +++ b/template_variables/docs/variables/README.md @@ -30,7 +30,7 @@ s = epilot.Epilot( req = operations.GenerateQRcodeRequest( - qrdata="enim", + qrdata='enim', ) res = s.variables.generate_q_rcode(req) @@ -57,7 +57,7 @@ s = epilot.Epilot( req = operations.GetCategoriesRequest( - lang="de", + lang=operations.GetCategoriesLangEnum.DE, ) res = s.variables.get_categories(req) @@ -90,37 +90,37 @@ req = operations.GetVariableContextRequestBody( parameters=shared.VariableParameters( brand_id=123451, context_data={ - "quo": "sequi", + "quo": 'sequi', }, custom_variables=[ shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), ], - language="en", - main_entity_id="63753437-c9e2-4e83-82bb-b1c666514561", - template_name="id", + language=shared.VariableParametersLanguageEnum.EN, + main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', + template_name='id', template_tags=[ - "aut", - "quasi", - "error", - "temporibus", + 'aut', + 'quasi', + 'error', + 'temporibus', ], - template_type="document", - user_id="50001", + template_type=shared.TemplateTypeEnum.DOCUMENT, + user_id='50001', ), ) @@ -152,42 +152,42 @@ s = epilot.Epilot( req = operations.ReplaceTemplatesRequestBody( inputs=[ - "Hello, {{contact.first_name}}! + 'Hello, {{contact.first_name}}! {{{brand.signature}}} - ", + ', ], parameters=shared.VariableParameters( brand_id=123451, context_data={ - "voluptatibus": "vero", - "nihil": "praesentium", - "voluptatibus": "ipsa", - "omnis": "voluptate", + "voluptatibus": 'vero', + "nihil": 'praesentium', + "voluptatibus": 'ipsa', + "omnis": 'voluptate', }, custom_variables=[ shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), shared.ExternalCustomVariable( - value="https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19", - variable="{{craftsmen.invitation_link}}", + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', ), ], - language="en", - main_entity_id="63753437-c9e2-4e83-82bb-b1c666514561", - template_name="doloremque", + language=shared.VariableParametersLanguageEnum.EN, + main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', + template_name='doloremque', template_tags=[ - "ut", - "maiores", + 'ut', + 'maiores', ], - template_type="email", - user_id="50001", + template_type=shared.TemplateTypeEnum.EMAIL, + user_id='50001', ), ) @@ -216,14 +216,14 @@ s = epilot.Epilot( req = operations.SearchVariablesRequestBody( entity_schemas=[ - "contact", - "contact", + 'contact', + 'contact', ], from_=296140, - lang="en", - query="logo", + lang=operations.SearchVariablesRequestBodyLangEnum.EN, + query='logo', size=118727, - template_type="document", + template_type=shared.TemplateTypeEnum.DOCUMENT, ) res = s.variables.search_variables(req) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 8a64023b5..b31db03de 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 8af767da7..de885f4f0 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.9.2", + version="1.10.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 9342b98fc..a14ed93ad 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 986a86937..63dce946b 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 a2d9c33f3dac24032085615f6c35cc257d555c9b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 5 May 2023 01:20:34 +0000 Subject: [PATCH 15/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.0 --- template_variables/README.md | 1 - template_variables/RELEASES.md | 8 ++- template_variables/USAGE.md | 1 - .../docs/customvariables/README.md | 4 -- template_variables/docs/variables/README.md | 5 -- template_variables/gen.yaml | 7 +-- template_variables/setup.py | 2 +- .../src/epilot/custom_variables.py | 6 +++ template_variables/src/epilot/sdk.py | 4 +- template_variables/src/epilot/utils/utils.py | 53 ++++++++++++------- template_variables/src/epilot/variables.py | 5 ++ 11 files changed, 58 insertions(+), 38 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 0e268d28c..156ecad9b 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -20,7 +20,6 @@ s = epilot.Epilot( ), ) - req = shared.CustomVariable( config={ "provident": 'distinctio', diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 16351c995..168d4d3f6 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -118,4 +118,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:20:19 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 773b6b442..90f0c9753 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -9,7 +9,6 @@ s = epilot.Epilot( ), ) - req = shared.CustomVariable( config={ "provident": 'distinctio', diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/customvariables/README.md index d90562653..31d9ec943 100755 --- a/template_variables/docs/customvariables/README.md +++ b/template_variables/docs/customvariables/README.md @@ -25,7 +25,6 @@ s = epilot.Epilot( ), ) - req = shared.CustomVariable( config={ "debitis": 'ipsa', @@ -175,7 +174,6 @@ s = epilot.Epilot( ), ) - req = operations.DeleteCustomVariableRequest( id='8796ed15-1a05-4dfc-addf-7cc78ca1ba92', ) @@ -225,7 +223,6 @@ s = epilot.Epilot( ), ) - req = operations.GetCustomVariableRequest( id='8fc81674-2cb7-4392-8592-9396fea7596e', ) @@ -275,7 +272,6 @@ s = epilot.Epilot( ), ) - req = operations.UpdateCustomVariableRequest( custom_variable=shared.CustomVariable( config={ diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md index 227c7693b..58694ae27 100755 --- a/template_variables/docs/variables/README.md +++ b/template_variables/docs/variables/README.md @@ -28,7 +28,6 @@ s = epilot.Epilot( ), ) - req = operations.GenerateQRcodeRequest( qrdata='enim', ) @@ -55,7 +54,6 @@ s = epilot.Epilot( ), ) - req = operations.GetCategoriesRequest( lang=operations.GetCategoriesLangEnum.DE, ) @@ -85,7 +83,6 @@ s = epilot.Epilot( ), ) - req = operations.GetVariableContextRequestBody( parameters=shared.VariableParameters( brand_id=123451, @@ -149,7 +146,6 @@ s = epilot.Epilot( ), ) - req = operations.ReplaceTemplatesRequestBody( inputs=[ 'Hello, {{contact.first_name}}! @@ -213,7 +209,6 @@ s = epilot.Epilot( ), ) - req = operations.SearchVariablesRequestBody( entity_schemas=[ 'contact', diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b31db03de..e1efc5eeb 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index de885f4f0..7aff62cfa 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.10.0", + version="1.11.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index 5042f0150..3269415a6 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -21,6 +21,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http self._sdk_version = sdk_version self._gen_version = gen_version + def create_custom_variable(self, request: shared.CustomVariable) -> operations.CreateCustomVariableResponse: r"""Create custom variable Create custom variable @@ -44,6 +45,7 @@ def create_custom_variable(self, request: shared.CustomVariable) -> operations.C return res + def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest) -> operations.DeleteCustomVariableResponse: r"""Delete custom variable Immediately and permanently deletes a custom variable @@ -63,6 +65,7 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest return res + def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigResponse: r"""Get default table config Get default table config @@ -88,6 +91,7 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo return res + def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> operations.GetCustomVariableResponse: r"""Get custom variable Get custom variable @@ -113,6 +117,7 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o return res + def get_custom_variables(self) -> operations.GetCustomVariablesResponse: r"""Get custom variables Get all custom variables of organization @@ -138,6 +143,7 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: return res + def update_custom_variable(self, request: operations.UpdateCustomVariableRequest) -> operations.UpdateCustomVariableResponse: r"""Update custom variable Update custom variable diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index a14ed93ad..12abcb5a7 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 63dce946b..a8b0d8f14 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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)] diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 07ef84ac0..a55bcd23e 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.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 generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operations.GenerateQRcodeResponse: r"""generateQRcode Generate QR Code for the given payload @@ -42,6 +43,7 @@ def generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operati return res + def get_categories(self, request: operations.GetCategoriesRequest) -> operations.GetCategoriesResponse: r"""getCategories Get all template variable categories @@ -66,6 +68,7 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations return res + def get_variable_context(self, request: operations.GetVariableContextRequestBody) -> operations.GetVariableContextResponse: r"""getVariableContext Get full variable context @@ -95,6 +98,7 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody return res + def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> operations.ReplaceTemplatesResponse: r"""replaceTemplates Replace variables in handlebars templates @@ -124,6 +128,7 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> return res + def search_variables(self, request: operations.SearchVariablesRequestBody) -> operations.SearchVariablesResponse: r"""searchVariables Search variables From f7a61b24d3a9ab33da3f662cea8ad740bff7e689 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 6 May 2023 01:22:00 +0000 Subject: [PATCH 16/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 168d4d3f6..f20ff288d 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -124,4 +124,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:21:45 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index e1efc5eeb..644f15eff 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 7aff62cfa..bda4bdee6 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.11.0", + version="1.11.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 12abcb5a7..c6702f304 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 dc6db3450d1283d4611fe213d8d0c3b9c58f77cf Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 10 May 2023 01:24:24 +0000 Subject: [PATCH 17/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index f20ff288d..9ce0eeda8 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -130,4 +130,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:09 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 644f15eff..7d4f18427 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index bda4bdee6..2add834aa 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.11.1", + version="1.11.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index c6702f304..8a359c65c 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 a5f61b7580e8235ff9f92d2a37d312e48053c46f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 11 May 2023 01:26:00 +0000 Subject: [PATCH 18/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 9ce0eeda8..d1929a150 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -136,4 +136,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:25:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 7d4f18427..c32d7a3b7 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 2add834aa..99fdb71f9 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.11.2", + version="1.11.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 8a359c65c..f7c537206 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 868b093f8f05a59290d3847c169e17207e269651 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 12 May 2023 01:25:37 +0000 Subject: [PATCH 19/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- template_variables/src/epilot/utils/utils.py | 16 ++++++++-------- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index d1929a150..3c4e824f4 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -142,4 +142,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:25:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index c32d7a3b7..67e3eb88f 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 99fdb71f9..063abdef7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.11.3", + version="1.11.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index f7c537206..24dd033a1 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index a8b0d8f14..98719fbf7 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 e154ff5f593987b0d27d70811df8fffa0dddbf07 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 13 May 2023 01:24:11 +0000 Subject: [PATCH 20/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.31.1 --- template_variables/README.md | 2 +- template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 2 +- template_variables/docs/customvariables/README.md | 12 ++++++------ template_variables/docs/variables/README.md | 10 +++++----- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- template_variables/src/epilot/utils/utils.py | 2 +- 9 files changed, 27 insertions(+), 21 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 156ecad9b..d62ef5ba4 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -16,7 +16,7 @@ from epilot.models import shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 3c4e824f4..27bb4ecee 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -148,4 +148,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:00 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 90f0c9753..1e42bcd25 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -5,7 +5,7 @@ from epilot.models import shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/customvariables/README.md index 31d9ec943..e0648e7f6 100755 --- a/template_variables/docs/customvariables/README.md +++ b/template_variables/docs/customvariables/README.md @@ -21,7 +21,7 @@ from epilot.models import shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -170,7 +170,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", ), ) @@ -196,7 +196,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -219,7 +219,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", ), ) @@ -245,7 +245,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -268,7 +268,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md index 58694ae27..2aeed0eb1 100755 --- a/template_variables/docs/variables/README.md +++ b/template_variables/docs/variables/README.md @@ -24,7 +24,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", ), ) @@ -50,7 +50,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", ), ) @@ -79,7 +79,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -142,7 +142,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -205,7 +205,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="Bearer YOUR_BEARER_TOKEN_HERE", + epilot_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 67e3eb88f..ef9e14f51 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 063abdef7..22e0bf677 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.11.4", + version="1.12.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 24dd033a1..503d92465 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 98719fbf7..6b39ecf74 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 c5074b370b0d362e95e9fe9434ee8195d14c9c89 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 16 May 2023 01:35:30 +0000 Subject: [PATCH 21/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.32.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 27bb4ecee..cd61af050 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -154,4 +154,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:35:18 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index ef9e14f51..4fdcf70ea 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 22e0bf677..480831081 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.12.0", + version="1.13.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 503d92465..1dfb04dc9 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 79d0fc8178c95272b6a782512cec47233ca5eba1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 May 2023 01:35:48 +0000 Subject: [PATCH 22/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.33.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index cd61af050..0c9cdd8f8 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -160,4 +160,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:35:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 4fdcf70ea..51ded5eb5 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 480831081..c899c33d7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.13.0", + version="1.14.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 1dfb04dc9..a481a9c8f 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 a8899296f36c0ff357763e1f9fe1ec4423183f6c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 18 May 2023 01:26:52 +0000 Subject: [PATCH 23/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.34.0 --- template_variables/RELEASES.md | 8 ++++++- template_variables/gen.yaml | 6 ++--- template_variables/setup.py | 2 +- .../src/epilot/custom_variables.py | 24 +++++++++++-------- template_variables/src/epilot/sdk.py | 4 ++-- template_variables/src/epilot/variables.py | 16 +++++++------ 6 files changed, 36 insertions(+), 24 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 0c9cdd8f8..da54d6e4f 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -166,4 +166,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:26:40 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 51ded5eb5..640cd7663 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index c899c33d7..284a3cd35 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.14.0", + version="1.15.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index 3269415a6..fe26a5fcc 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -29,11 +29,11 @@ def create_custom_variable(self, request: shared.CustomVariable) -> operations.C base_url = self._server_url url = base_url.removesuffix('/') + '/v1/custom-variables' - 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 @@ -53,11 +53,12 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest base_url = self._server_url url = utils.generate_url(operations.DeleteCustomVariableRequest, base_url, '/v1/custom-variables/{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('DELETE', url) + http_res = client.request('DELETE', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.DeleteCustomVariableResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -73,11 +74,12 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo base_url = self._server_url url = base_url.removesuffix('/') + '/v1/custom-variables/order-table-blueprint' - + 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.GetBluePrintTableConfigResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -99,11 +101,12 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o base_url = self._server_url url = utils.generate_url(operations.GetCustomVariableRequest, base_url, '/v1/custom-variables/{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.GetCustomVariableResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -125,11 +128,12 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: base_url = self._server_url url = base_url.removesuffix('/') + '/v1/custom-variables' - + 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.GetCustomVariablesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -151,11 +155,11 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest base_url = self._server_url url = utils.generate_url(operations.UpdateCustomVariableRequest, base_url, '/v1/custom-variables/{id}', request) - headers = {} req_content_type, data, form = utils.serialize_request_body(request, "custom_variable", '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 diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index a481a9c8f..e3b9557c8 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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, diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index a55bcd23e..57957206a 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -30,12 +30,13 @@ def generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operati base_url = self._server_url url = base_url.removesuffix('/') + '/v1/template-variables/qrcode:generate' - + headers = {} query_params = utils.get_query_params(operations.GenerateQRcodeRequest, 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.GenerateQRcodeResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -51,12 +52,13 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations base_url = self._server_url url = base_url.removesuffix('/') + '/v1/template-variables/categories' - + headers = {} query_params = utils.get_query_params(operations.GetCategoriesRequest, 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.GetCategoriesResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -78,11 +80,11 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody base_url = self._server_url url = base_url.removesuffix('/') + '/v1/template-variables:context' - 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 @@ -108,11 +110,11 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> base_url = self._server_url url = base_url.removesuffix('/') + '/v1/template-variables:replace' - 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 @@ -136,11 +138,11 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op base_url = self._server_url url = base_url.removesuffix('/') + '/v1/template-variables:search' - 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 From 34402db0e2e81297f30b04931d90146c6210eae9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 19 May 2023 01:34:21 +0000 Subject: [PATCH 24/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.35.0 --- template_variables/README.md | 2 +- template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 2 +- template_variables/docs/customvariables/README.md | 4 ++-- template_variables/docs/variables/README.md | 14 +++++++------- template_variables/files.gen | 2 +- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/custom_variables.py | 6 ++++++ .../src/epilot/models/operations/__init__.py | 2 +- .../src/epilot/models/operations/getcategories.py | 4 ++-- .../epilot/models/operations/searchvariables.py | 8 ++++---- .../src/epilot/models/shared/__init__.py | 4 ++-- .../src/epilot/models/shared/customvariable.py | 4 ++-- .../{templatetype_enum.py => templatetype.py} | 2 +- .../src/epilot/models/shared/variableparameters.py | 8 ++++---- .../src/epilot/models/shared/variableresult.py | 4 ++-- template_variables/src/epilot/sdk.py | 4 ++-- template_variables/src/epilot/variables.py | 5 +++++ 19 files changed, 54 insertions(+), 37 deletions(-) rename template_variables/src/epilot/models/shared/{templatetype_enum.py => templatetype.py} (83%) diff --git a/template_variables/README.md b/template_variables/README.md index d62ef5ba4..3ce0db2dd 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -145,7 +145,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableTypeEnum.ORDER_TABLE, + type=shared.CustomVariableType.ORDER_TABLE, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index da54d6e4f..6ee5c4467 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -172,4 +172,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:34:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 1e42bcd25..f7288dbfa 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -134,7 +134,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableTypeEnum.ORDER_TABLE, + type=shared.CustomVariableType.ORDER_TABLE, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/customvariables/README.md index e0648e7f6..463aa7c1e 100755 --- a/template_variables/docs/customvariables/README.md +++ b/template_variables/docs/customvariables/README.md @@ -147,7 +147,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableTypeEnum.CUSTOM, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) @@ -395,7 +395,7 @@ req = operations.UpdateCustomVariableRequest( ', - type=shared.CustomVariableTypeEnum.ORDER_TABLE, + type=shared.CustomVariableType.ORDER_TABLE, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ), diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md index 2aeed0eb1..6b204adf7 100755 --- a/template_variables/docs/variables/README.md +++ b/template_variables/docs/variables/README.md @@ -55,7 +55,7 @@ s = epilot.Epilot( ) req = operations.GetCategoriesRequest( - lang=operations.GetCategoriesLangEnum.DE, + lang=operations.GetCategoriesLang.DE, ) res = s.variables.get_categories(req) @@ -107,7 +107,7 @@ req = operations.GetVariableContextRequestBody( variable='{{craftsmen.invitation_link}}', ), ], - language=shared.VariableParametersLanguageEnum.EN, + language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', template_name='id', template_tags=[ @@ -116,7 +116,7 @@ req = operations.GetVariableContextRequestBody( 'error', 'temporibus', ], - template_type=shared.TemplateTypeEnum.DOCUMENT, + template_type=shared.TemplateType.DOCUMENT, user_id='50001', ), ) @@ -175,14 +175,14 @@ req = operations.ReplaceTemplatesRequestBody( variable='{{craftsmen.invitation_link}}', ), ], - language=shared.VariableParametersLanguageEnum.EN, + language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', template_name='doloremque', template_tags=[ 'ut', 'maiores', ], - template_type=shared.TemplateTypeEnum.EMAIL, + template_type=shared.TemplateType.EMAIL, user_id='50001', ), ) @@ -215,10 +215,10 @@ req = operations.SearchVariablesRequestBody( 'contact', ], from_=296140, - lang=operations.SearchVariablesRequestBodyLangEnum.EN, + lang=operations.SearchVariablesRequestBodyLang.EN, query='logo', size=118727, - template_type=shared.TemplateTypeEnum.DOCUMENT, + template_type=shared.TemplateType.DOCUMENT, ) res = s.variables.search_variables(req) diff --git a/template_variables/files.gen b/template_variables/files.gen index d84490eeb..61f5ef89a 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -24,7 +24,7 @@ src/epilot/models/shared/customvariable.py src/epilot/models/shared/categoryresult.py src/epilot/models/shared/variablecontext.py src/epilot/models/shared/variableparameters.py -src/epilot/models/shared/templatetype_enum.py +src/epilot/models/shared/templatetype.py src/epilot/models/shared/externalcustomvariable.py src/epilot/models/shared/variableresult.py src/epilot/models/shared/security.py diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 640cd7663..b43c01524 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 284a3cd35..4b320d911 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.15.0", + version="1.16.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index fe26a5fcc..ffedb2bef 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -33,6 +33,7 @@ def create_custom_variable(self, request: shared.CustomVariable) -> operations.C 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 @@ -54,6 +55,7 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest url = utils.generate_url(operations.DeleteCustomVariableRequest, base_url, '/v1/custom-variables/{id}', request) headers = {} + headers['Accept'] = '*/*' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -75,6 +77,7 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo url = base_url.removesuffix('/') + '/v1/custom-variables/order-table-blueprint' headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -102,6 +105,7 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o url = utils.generate_url(operations.GetCustomVariableRequest, base_url, '/v1/custom-variables/{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 @@ -129,6 +133,7 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: url = base_url.removesuffix('/') + '/v1/custom-variables' headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -159,6 +164,7 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest req_content_type, data, form = utils.serialize_request_body(request, "custom_variable", '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 diff --git a/template_variables/src/epilot/models/operations/__init__.py b/template_variables/src/epilot/models/operations/__init__.py index 7a3197048..31cbd6607 100755 --- a/template_variables/src/epilot/models/operations/__init__.py +++ b/template_variables/src/epilot/models/operations/__init__.py @@ -12,4 +12,4 @@ from .searchvariables import * from .updatecustomvariable import * -__all__ = ["CreateCustomVariableResponse","DeleteCustomVariableRequest","DeleteCustomVariableResponse","GenerateQRcodeRequest","GenerateQRcodeResponse","GetBluePrintTableConfigResponse","GetCategoriesLangEnum","GetCategoriesRequest","GetCategoriesResponse","GetCustomVariableRequest","GetCustomVariableResponse","GetCustomVariablesResponse","GetVariableContextRequestBody","GetVariableContextResponse","ReplaceTemplates200ApplicationJSON","ReplaceTemplatesRequestBody","ReplaceTemplatesResponse","SearchVariablesRequestBody","SearchVariablesRequestBodyLangEnum","SearchVariablesResponse","UpdateCustomVariableRequest","UpdateCustomVariableResponse"] +__all__ = ["CreateCustomVariableResponse","DeleteCustomVariableRequest","DeleteCustomVariableResponse","GenerateQRcodeRequest","GenerateQRcodeResponse","GetBluePrintTableConfigResponse","GetCategoriesLang","GetCategoriesRequest","GetCategoriesResponse","GetCustomVariableRequest","GetCustomVariableResponse","GetCustomVariablesResponse","GetVariableContextRequestBody","GetVariableContextResponse","ReplaceTemplates200ApplicationJSON","ReplaceTemplatesRequestBody","ReplaceTemplatesResponse","SearchVariablesRequestBody","SearchVariablesRequestBodyLang","SearchVariablesResponse","UpdateCustomVariableRequest","UpdateCustomVariableResponse"] diff --git a/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index ed16b7681..b13f30222 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -7,7 +7,7 @@ from enum import Enum from typing import Optional -class GetCategoriesLangEnum(str, Enum): +class GetCategoriesLang(str, Enum): r"""Language""" EN = 'en' DE = 'de' @@ -16,7 +16,7 @@ class GetCategoriesLangEnum(str, Enum): @dataclasses.dataclass class GetCategoriesRequest: - lang: Optional[GetCategoriesLangEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'lang', 'style': 'form', 'explode': True }}) + lang: Optional[GetCategoriesLang] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'lang', 'style': 'form', 'explode': True }}) r"""Language""" diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index bf3a83c29..50af4a8fb 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -3,14 +3,14 @@ from __future__ import annotations import dataclasses import requests as requests_http -from ..shared import templatetype_enum as shared_templatetype_enum +from ..shared import templatetype as shared_templatetype from ..shared import variableresult as shared_variableresult from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils from typing import Optional -class SearchVariablesRequestBodyLangEnum(str, Enum): +class SearchVariablesRequestBodyLang(str, Enum): EN = 'en' DE = 'de' @@ -21,10 +21,10 @@ class SearchVariablesRequestBody: query: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('query') }}) r"""Search string""" - template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) + template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) entity_schemas: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) from_: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) - lang: Optional[SearchVariablesRequestBodyLangEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) + lang: Optional[SearchVariablesRequestBodyLang] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) size: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/__init__.py b/template_variables/src/epilot/models/shared/__init__.py index ec472dceb..aa57a5f56 100755 --- a/template_variables/src/epilot/models/shared/__init__.py +++ b/template_variables/src/epilot/models/shared/__init__.py @@ -4,9 +4,9 @@ from .customvariable import * from .externalcustomvariable import * from .security import * -from .templatetype_enum import * +from .templatetype import * from .variablecontext import * from .variableparameters import * from .variableresult import * -__all__ = ["CategoryResult","CustomVariable","CustomVariableTypeEnum","ExternalCustomVariable","Security","TemplateTypeEnum","VariableContext","VariableParameters","VariableParametersLanguageEnum","VariableResult","VariableResultTypeEnum"] +__all__ = ["CategoryResult","CustomVariable","CustomVariableType","ExternalCustomVariable","Security","TemplateType","VariableContext","VariableParameters","VariableParametersLanguage","VariableResult","VariableResultType"] diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 36321a604..0d666e081 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -7,7 +7,7 @@ from epilot import utils from typing import Any, Optional -class CustomVariableTypeEnum(str, Enum): +class CustomVariableType(str, Enum): r"""Custom variable type""" ORDER_TABLE = 'order_table' CUSTOM = 'custom' @@ -36,7 +36,7 @@ class CustomVariable: r"""Custom variable name""" template: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template'), 'exclude': lambda f: f is None }}) r"""Handlebar template that used to generate the variable content""" - type: Optional[CustomVariableTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) + type: Optional[CustomVariableType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) r"""Custom variable type""" updated_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updated_at'), 'exclude': lambda f: f is None }}) r"""Last update time""" diff --git a/template_variables/src/epilot/models/shared/templatetype_enum.py b/template_variables/src/epilot/models/shared/templatetype.py similarity index 83% rename from template_variables/src/epilot/models/shared/templatetype_enum.py rename to template_variables/src/epilot/models/shared/templatetype.py index f673c56d7..a86659010 100755 --- a/template_variables/src/epilot/models/shared/templatetype_enum.py +++ b/template_variables/src/epilot/models/shared/templatetype.py @@ -3,6 +3,6 @@ from __future__ import annotations from enum import Enum -class TemplateTypeEnum(str, Enum): +class TemplateType(str, Enum): EMAIL = 'email' DOCUMENT = 'document' diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index e984812a7..80cb40573 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -3,13 +3,13 @@ from __future__ import annotations import dataclasses from ..shared import externalcustomvariable as shared_externalcustomvariable -from ..shared import templatetype_enum as shared_templatetype_enum +from ..shared import templatetype as shared_templatetype from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils from typing import Any, Optional -class VariableParametersLanguageEnum(str, Enum): +class VariableParametersLanguage(str, Enum): EN = 'en' DE = 'de' @@ -18,14 +18,14 @@ class VariableParametersLanguageEnum(str, Enum): @dataclasses.dataclass class VariableParameters: - template_type: shared_templatetype_enum.TemplateTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) + template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) brand_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand_id'), 'exclude': lambda f: f is None }}) r"""Brand ID""" context_data: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) r"""If context data is avaialble, this data will be used for variable replace.""" custom_variables: Optional[list[shared_externalcustomvariable.ExternalCustomVariable]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_variables'), 'exclude': lambda f: f is None }}) r"""Custom variables with specified values form other services.""" - language: Optional[VariableParametersLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + language: Optional[VariableParametersLanguage] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) main_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main_entity_id'), 'exclude': lambda f: f is None }}) r"""The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.""" template_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_name'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py index 43e81b616..da7dc4ed7 100755 --- a/template_variables/src/epilot/models/shared/variableresult.py +++ b/template_variables/src/epilot/models/shared/variableresult.py @@ -7,7 +7,7 @@ from epilot import utils from typing import Optional -class VariableResultTypeEnum(str, Enum): +class VariableResultType(str, Enum): SIMPLE = 'simple' PARTIAL = 'partial' @@ -24,5 +24,5 @@ class VariableResult: r"""The value which is used to insert to template""" qrdata: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('qrdata'), 'exclude': lambda f: f is None }}) r"""Payload for the QR data""" - type: Optional[VariableResultTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) + type: Optional[VariableResultType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) \ No newline at end of file diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index e3b9557c8..05aab5e3d 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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, diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 57957206a..43705e003 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -32,6 +32,7 @@ def generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operati url = base_url.removesuffix('/') + '/v1/template-variables/qrcode:generate' headers = {} query_params = utils.get_query_params(operations.GenerateQRcodeRequest, request) + headers['Accept'] = '*/*' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -54,6 +55,7 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations url = base_url.removesuffix('/') + '/v1/template-variables/categories' headers = {} query_params = utils.get_query_params(operations.GetCategoriesRequest, request) + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -84,6 +86,7 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -114,6 +117,7 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -142,6 +146,7 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client From 9f7c86168bc8c7246218fa91790a80c234bd1dd2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 23 May 2023 01:35:28 +0000 Subject: [PATCH 25/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.37.5 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 6ee5c4467..62eebe4aa 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -178,4 +178,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:35:15 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b43c01524..4d6097663 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 4b320d911..f97811dcf 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.16.0", + version="1.17.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 05aab5e3d..6cd4af055 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 da28c37b195709918e262022e5387ba6a537c42d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 27 May 2023 01:33:42 +0000 Subject: [PATCH 26/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.39.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 62eebe4aa..0cd2355f3 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -184,4 +184,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:33:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 4d6097663..0d6cf86a7 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index f97811dcf..5003b37d3 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.17.0", + version="1.17.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 6cd4af055..f5818e806 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 f79a07829dee8ba9b9920c79a8ef77ff0c215c3a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Jun 2023 02:08:45 +0000 Subject: [PATCH 27/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.2 --- template_variables/.gitignore | 5 +++++ template_variables/RELEASES.md | 8 +++++++- template_variables/files.gen | 1 + template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 7 +++++-- template_variables/src/epilot/sdk.py | 4 ++-- 6 files changed, 23 insertions(+), 8 deletions(-) create mode 100755 template_variables/.gitignore diff --git a/template_variables/.gitignore b/template_variables/.gitignore new file mode 100755 index 000000000..9072ad43b --- /dev/null +++ b/template_variables/.gitignore @@ -0,0 +1,5 @@ +venv/ +src/*.egg-info/ +__pycache__/ +.pytest_cache/ +.python-version` \ No newline at end of file diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 0cd2355f3..5bdf485bb 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -190,4 +190,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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 02:08:32 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/files.gen b/template_variables/files.gen index 61f5ef89a..4088cd13f 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -1,6 +1,7 @@ src/epilot/custom_variables.py src/epilot/variables.py src/epilot/sdk.py +.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0d6cf86a7..9c8b83c32 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 5003b37d3..b2ff214db 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - 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/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index f5818e806..69033908a 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 dab8675c8697b60847d17b5f5c6934966ac6761a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 2 Jun 2023 01:51:40 +0000 Subject: [PATCH 28/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.3 --- template_variables/RELEASES.md | 8 ++++++- template_variables/gen.yaml | 6 ++--- template_variables/setup.py | 34 ++++++++++++++-------------- template_variables/src/epilot/sdk.py | 4 ++-- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 5bdf485bb..8b8c0642e 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -196,4 +196,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:51:27 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 9c8b83c32..fe667ef8f 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index b2ff214db..2c829791a 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,29 +10,29 @@ setuptools.setup( name="epilot-template-variables", - 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/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 69033908a..63b2e3db2 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -21,8 +21,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 6cf5291861f556d7fc8909fc7c5c85384953f708 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 3 Jun 2023 01:48:18 +0000 Subject: [PATCH 29/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.43.0 --- template_variables/RELEASES.md | 8 ++- template_variables/files.gen | 1 + template_variables/gen.yaml | 6 +- template_variables/setup.py | 2 +- template_variables/src/epilot/__init__.py | 1 + .../src/epilot/custom_variables.py | 64 ++++++++----------- template_variables/src/epilot/sdk.py | 54 ++++------------ .../src/epilot/sdkconfiguration.py | 27 ++++++++ template_variables/src/epilot/variables.py | 62 ++++++++---------- 9 files changed, 107 insertions(+), 118 deletions(-) create mode 100755 template_variables/src/epilot/sdkconfiguration.py diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 8b8c0642e..ab9bf6839 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -202,4 +202,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:48:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/files.gen b/template_variables/files.gen index 4088cd13f..fc5454e0a 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -1,3 +1,4 @@ +src/epilot/sdkconfiguration.py src/epilot/custom_variables.py src/epilot/variables.py src/epilot/sdk.py diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index fe667ef8f..7456d2cd1 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 2c829791a..0cd9c7ab3 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.18.1", + version="1.19.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/__init__.py b/template_variables/src/epilot/__init__.py index b9e232018..e6c0deeb6 100755 --- a/template_variables/src/epilot/__init__.py +++ b/template_variables/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/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index ffedb2bef..1f8ea3a5c 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -1,42 +1,32 @@ """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, shared from typing import Optional class CustomVariables: - _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_custom_variable(self, request: shared.CustomVariable) -> operations.CreateCustomVariableResponse: r"""Create custom variable Create custom variable """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/custom-variables' + url = base_url + '/v1/custom-variables' 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') @@ -51,14 +41,14 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest r"""Delete custom variable Immediately and permanently deletes a custom variable """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.DeleteCustomVariableRequest, base_url, '/v1/custom-variables/{id}', 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('DELETE', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -73,14 +63,14 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo r"""Get default table config Get default table config """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/custom-variables/order-table-blueprint' + url = base_url + '/v1/custom-variables/order-table-blueprint' 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') @@ -101,14 +91,14 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o r"""Get custom variable Get custom variable """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetCustomVariableRequest, base_url, '/v1/custom-variables/{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') @@ -129,14 +119,14 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: r"""Get custom variables Get all custom variables of organization """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/custom-variables' + url = base_url + '/v1/custom-variables' 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') @@ -157,7 +147,7 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest r"""Update custom variable Update custom variable """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.UpdateCustomVariableRequest, base_url, '/v1/custom-variables/{id}', request) headers = {} @@ -165,9 +155,9 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest 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('PUT', url, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 63b2e3db2..b3dfe0907 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -1,31 +1,23 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" import requests as requests_http -from . import utils from .custom_variables import CustomVariables +from .sdkconfiguration import SDKConfiguration from .variables import Variables +from epilot import utils from epilot.models import shared -SERVERS = [ - "https://template-variables-api.sls.epilot.io", -] -"""Contains the list of servers available to the SDK""" - class Epilot: r"""API to provide variables for email and document templates.""" custom_variables: CustomVariables variables: Variables r"""Variables""" - _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 @@ -34,6 +26,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 @@ -41,40 +35,20 @@ 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.custom_variables = CustomVariables( - self._client, - self._security_client, - self._server_url, - self._language, - self._sdk_version, - self._gen_version - ) - - self.variables = Variables( - self._client, - self._security_client, - self._server_url, - self._language, - self._sdk_version, - self._gen_version - ) - + self.custom_variables = CustomVariables(self.sdk_configuration) + self.variables = Variables(self.sdk_configuration) \ No newline at end of file diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py new file mode 100755 index 000000000..c66adaee9 --- /dev/null +++ b/template_variables/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://template-variables-api.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], {} diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 43705e003..49e62ffc9 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -1,41 +1,31 @@ """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, shared from typing import Optional class Variables: r"""Variables""" - _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 generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operations.GenerateQRcodeResponse: r"""generateQRcode Generate QR Code for the given payload """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/template-variables/qrcode:generate' + url = base_url + '/v1/template-variables/qrcode:generate' headers = {} query_params = utils.get_query_params(operations.GenerateQRcodeRequest, request) 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('GET', url, params=query_params, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -50,15 +40,15 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations r"""getCategories Get all template variable categories """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/template-variables/categories' + url = base_url + '/v1/template-variables/categories' headers = {} query_params = utils.get_query_params(operations.GetCategoriesRequest, 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') @@ -79,17 +69,17 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/template-variables:context' + url = base_url + '/v1/template-variables:context' headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = 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') @@ -110,17 +100,17 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> Takes in an array of input templates and outputs the output text with replaced variables """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/template-variables:replace' + url = base_url + '/v1/template-variables:replace' headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = 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') @@ -139,17 +129,17 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op r"""searchVariables Search variables """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/template-variables:search' + url = base_url + '/v1/template-variables:search' headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = 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') From 8b1983f99069c768a7b4d4a48f433fa0fea638a9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 7 Jun 2023 01:54:30 +0000 Subject: [PATCH 30/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.44.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/docs/epilot/README.md | 2 +- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 5 +++-- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index ab9bf6839..9bcb30405 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -208,4 +208,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:54:17 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/docs/epilot/README.md b/template_variables/docs/epilot/README.md index c757c8546..57db9ef09 100755 --- a/template_variables/docs/epilot/README.md +++ b/template_variables/docs/epilot/README.md @@ -2,7 +2,7 @@ ## Overview -API to provide variables for email and document templates. +Template Variables API: API to provide variables for email and document templates. ### Available Operations diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 7456d2cd1..d1409c30a 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 0cd9c7ab3..2596e34a3 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.19.0", + version="1.19.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index b3dfe0907..41f5480db 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -8,7 +8,7 @@ from epilot.models import shared class Epilot: - r"""API to provide variables for email and document templates.""" + r"""Template Variables API: API to provide variables for email and document templates.""" custom_variables: CustomVariables variables: Variables r"""Variables""" diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index c66adaee9..dcf392ae6 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/src/epilot/sdkconfiguration.py @@ -3,6 +3,7 @@ import requests from dataclasses import dataclass + SERVERS = [ 'https://template-variables-api.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 3576b510492f1d55b218a12323affee433e719ab Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 8 Jun 2023 01:51:49 +0000 Subject: [PATCH 31/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.0 --- template_variables/README.md | 2 +- template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 2 +- template_variables/docs/customvariables/README.md | 12 ++++++------ template_variables/docs/variables/README.md | 10 +++++----- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/custom_variables.py | 12 ++++++------ template_variables/src/epilot/sdkconfiguration.py | 5 +++-- template_variables/src/epilot/variables.py | 10 +++++----- 10 files changed, 38 insertions(+), 31 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 3ce0db2dd..20eea6ffe 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -16,7 +16,7 @@ from epilot.models import shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 9bcb30405..fee5c31d3 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -214,4 +214,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:51:35 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index f7288dbfa..27b1c7663 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -5,7 +5,7 @@ from epilot.models import shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/customvariables/README.md index 463aa7c1e..3ef37a97b 100755 --- a/template_variables/docs/customvariables/README.md +++ b/template_variables/docs/customvariables/README.md @@ -21,7 +21,7 @@ from epilot.models import shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -170,7 +170,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -196,7 +196,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -219,7 +219,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -245,7 +245,7 @@ import epilot s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -268,7 +268,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md index 6b204adf7..161eab118 100755 --- a/template_variables/docs/variables/README.md +++ b/template_variables/docs/variables/README.md @@ -24,7 +24,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -50,7 +50,7 @@ from epilot.models import operations s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -79,7 +79,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -142,7 +142,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -205,7 +205,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index d1409c30a..b5a7e93df 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 2596e34a3..6313b570a 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.19.1", + version="1.20.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index 1f8ea3a5c..83c2c4b70 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -24,7 +24,7 @@ def create_custom_variable(self, request: shared.CustomVariable) -> operations.C 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 @@ -46,7 +46,7 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest url = utils.generate_url(operations.DeleteCustomVariableRequest, base_url, '/v1/custom-variables/{id}', 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 @@ -68,7 +68,7 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo url = base_url + '/v1/custom-variables/order-table-blueprint' 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 @@ -96,7 +96,7 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o url = utils.generate_url(operations.GetCustomVariableRequest, base_url, '/v1/custom-variables/{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 @@ -124,7 +124,7 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: url = base_url + '/v1/custom-variables' 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 @@ -155,7 +155,7 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest 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 diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index dcf392ae6..7ef5a2d6f 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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: diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 49e62ffc9..39bfda229 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -23,7 +23,7 @@ def generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operati headers = {} query_params = utils.get_query_params(operations.GenerateQRcodeRequest, request) 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 @@ -46,7 +46,7 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations headers = {} query_params = utils.get_query_params(operations.GetCategoriesRequest, 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 @@ -77,7 +77,7 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -108,7 +108,7 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -137,7 +137,7 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client From de92a1dca95f5d8fe1262af4763412a5c109c882 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 9 Jun 2023 01:51:45 +0000 Subject: [PATCH 32/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index fee5c31d3..89a4f0f8a 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -220,4 +220,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:51:27 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b5a7e93df..670332321 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 6313b570a..c220a3064 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.20.0", + version="1.20.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 7ef5a2d6f..55353cbb7 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 9b53d3afd63a62b61f122cf2360ee59e792875b7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 10 Jun 2023 01:42:49 +0000 Subject: [PATCH 33/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.0 --- template_variables/README.md | 41 ++- template_variables/RELEASES.md | 8 +- template_variables/USAGE.md | 15 +- .../createcustomvariableresponse.md | 10 + .../operations/deletecustomvariablerequest.md | 8 + .../deletecustomvariableresponse.md | 10 + .../operations/generateqrcoderequest.md | 8 + .../operations/generateqrcoderesponse.md | 10 + .../getblueprinttableconfigresponse.md | 11 + .../models/operations/getcategorieslang.md | 11 + .../models/operations/getcategoriesrequest.md | 8 + .../operations/getcategoriesresponse.md | 11 + .../operations/getcustomvariablerequest.md | 8 + .../operations/getcustomvariableresponse.md | 11 + .../operations/getcustomvariablesresponse.md | 11 + .../getvariablecontextrequestbody.md | 8 + .../operations/getvariablecontextresponse.md | 11 + .../replacetemplates200applicationjson.md | 10 + .../operations/replacetemplatesrequestbody.md | 9 + .../operations/replacetemplatesresponse.md | 11 + .../operations/searchvariablesrequestbody.md | 13 + .../searchvariablesrequestbodylang.md | 9 + .../operations/searchvariablesresponse.md | 11 + .../operations/updatecustomvariablerequest.md | 9 + .../updatecustomvariableresponse.md | 10 + .../docs/models/shared/categoryresult.md | 9 + .../docs/models/shared/customvariable.md | 21 ++ .../models/shared/customvariableconfig.md | 9 + .../docs/models/shared/customvariabletype.md | 11 + .../models/shared/externalcustomvariable.md | 9 + .../docs/models/shared/security.md | 8 + .../docs/models/shared/templatetype.md | 9 + .../docs/models/shared/variablecontext.md | 13 + .../docs/models/shared/variableparameters.md | 16 ++ .../shared/variableparameterscontextdata.md | 9 + .../shared/variableparameterslanguage.md | 9 + .../docs/models/shared/variableresult.md | 12 + .../docs/models/shared/variableresulttype.md | 9 + .../docs/{ => sdks}/customvariables/README.md | 85 +++++- .../docs/{ => sdks}/epilot/README.md | 0 .../docs/sdks/variables/README.md | 265 ++++++++++++++++++ template_variables/docs/variables/README.md | 228 --------------- template_variables/files.gen | 43 ++- template_variables/gen.yaml | 6 +- template_variables/setup.py | 2 +- .../models/operations/createcustomvariable.py | 5 +- .../models/operations/deletecustomvariable.py | 9 +- .../models/operations/generateqrcode.py | 9 +- .../operations/getblueprinttableconfig.py | 5 +- .../epilot/models/operations/getcategories.py | 9 +- .../models/operations/getcustomvariable.py | 9 +- .../models/operations/getcustomvariables.py | 5 +- .../models/operations/getvariablecontext.py | 9 +- .../models/operations/replacetemplates.py | 13 +- .../models/operations/searchvariables.py | 9 +- .../models/operations/updatecustomvariable.py | 9 +- .../src/epilot/models/shared/__init__.py | 2 +- .../epilot/models/shared/categoryresult.py | 5 +- .../epilot/models/shared/customvariable.py | 16 +- .../models/shared/externalcustomvariable.py | 5 +- .../src/epilot/models/shared/security.py | 5 +- .../epilot/models/shared/variablecontext.py | 5 +- .../models/shared/variableparameters.py | 16 +- .../epilot/models/shared/variableresult.py | 5 +- .../src/epilot/sdkconfiguration.py | 4 +- 65 files changed, 872 insertions(+), 337 deletions(-) create mode 100755 template_variables/docs/models/operations/createcustomvariableresponse.md create mode 100755 template_variables/docs/models/operations/deletecustomvariablerequest.md create mode 100755 template_variables/docs/models/operations/deletecustomvariableresponse.md create mode 100755 template_variables/docs/models/operations/generateqrcoderequest.md create mode 100755 template_variables/docs/models/operations/generateqrcoderesponse.md create mode 100755 template_variables/docs/models/operations/getblueprinttableconfigresponse.md create mode 100755 template_variables/docs/models/operations/getcategorieslang.md create mode 100755 template_variables/docs/models/operations/getcategoriesrequest.md create mode 100755 template_variables/docs/models/operations/getcategoriesresponse.md create mode 100755 template_variables/docs/models/operations/getcustomvariablerequest.md create mode 100755 template_variables/docs/models/operations/getcustomvariableresponse.md create mode 100755 template_variables/docs/models/operations/getcustomvariablesresponse.md create mode 100755 template_variables/docs/models/operations/getvariablecontextrequestbody.md create mode 100755 template_variables/docs/models/operations/getvariablecontextresponse.md create mode 100755 template_variables/docs/models/operations/replacetemplates200applicationjson.md create mode 100755 template_variables/docs/models/operations/replacetemplatesrequestbody.md create mode 100755 template_variables/docs/models/operations/replacetemplatesresponse.md create mode 100755 template_variables/docs/models/operations/searchvariablesrequestbody.md create mode 100755 template_variables/docs/models/operations/searchvariablesrequestbodylang.md create mode 100755 template_variables/docs/models/operations/searchvariablesresponse.md create mode 100755 template_variables/docs/models/operations/updatecustomvariablerequest.md create mode 100755 template_variables/docs/models/operations/updatecustomvariableresponse.md create mode 100755 template_variables/docs/models/shared/categoryresult.md create mode 100755 template_variables/docs/models/shared/customvariable.md create mode 100755 template_variables/docs/models/shared/customvariableconfig.md create mode 100755 template_variables/docs/models/shared/customvariabletype.md create mode 100755 template_variables/docs/models/shared/externalcustomvariable.md create mode 100755 template_variables/docs/models/shared/security.md create mode 100755 template_variables/docs/models/shared/templatetype.md create mode 100755 template_variables/docs/models/shared/variablecontext.md create mode 100755 template_variables/docs/models/shared/variableparameters.md create mode 100755 template_variables/docs/models/shared/variableparameterscontextdata.md create mode 100755 template_variables/docs/models/shared/variableparameterslanguage.md create mode 100755 template_variables/docs/models/shared/variableresult.md create mode 100755 template_variables/docs/models/shared/variableresulttype.md rename template_variables/docs/{ => sdks}/customvariables/README.md (71%) rename template_variables/docs/{ => sdks}/epilot/README.md (100%) create mode 100755 template_variables/docs/sdks/variables/README.md delete mode 100755 template_variables/docs/variables/README.md diff --git a/template_variables/README.md b/template_variables/README.md index 20eea6ffe..b7cfa927a 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -21,19 +21,14 @@ s = epilot.Epilot( ) req = shared.CustomVariable( - config={ - "provident": 'distinctio', - "quibusdam": 'unde', - "nulla": 'corrupti', - }, + config=shared.CustomVariableConfig(), created_at='2022-04-19T12:41:43.662Z', created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'vel', - 'error', - 'deserunt', - 'suscipit', + 'provident', + 'distinctio', + 'quibusdam', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -145,7 +140,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.ORDER_TABLE, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) @@ -161,22 +156,22 @@ if res.status_code == 200: ## Available Resources and Operations -### [custom_variables](docs/customvariables/README.md) +### [custom_variables](docs/sdks/customvariables/README.md) -* [create_custom_variable](docs/customvariables/README.md#create_custom_variable) - Create custom variable -* [delete_custom_variable](docs/customvariables/README.md#delete_custom_variable) - Delete custom variable -* [get_blue_print_table_config](docs/customvariables/README.md#get_blue_print_table_config) - Get default table config -* [get_custom_variable](docs/customvariables/README.md#get_custom_variable) - Get custom variable -* [get_custom_variables](docs/customvariables/README.md#get_custom_variables) - Get custom variables -* [update_custom_variable](docs/customvariables/README.md#update_custom_variable) - Update custom variable +* [create_custom_variable](docs/sdks/customvariables/README.md#create_custom_variable) - Create custom variable +* [delete_custom_variable](docs/sdks/customvariables/README.md#delete_custom_variable) - Delete custom variable +* [get_blue_print_table_config](docs/sdks/customvariables/README.md#get_blue_print_table_config) - Get default table config +* [get_custom_variable](docs/sdks/customvariables/README.md#get_custom_variable) - Get custom variable +* [get_custom_variables](docs/sdks/customvariables/README.md#get_custom_variables) - Get custom variables +* [update_custom_variable](docs/sdks/customvariables/README.md#update_custom_variable) - Update custom variable -### [variables](docs/variables/README.md) +### [variables](docs/sdks/variables/README.md) -* [generate_q_rcode](docs/variables/README.md#generate_q_rcode) - generateQRcode -* [get_categories](docs/variables/README.md#get_categories) - getCategories -* [get_variable_context](docs/variables/README.md#get_variable_context) - getVariableContext -* [replace_templates](docs/variables/README.md#replace_templates) - replaceTemplates -* [search_variables](docs/variables/README.md#search_variables) - searchVariables +* [generate_q_rcode](docs/sdks/variables/README.md#generate_q_rcode) - generateQRcode +* [get_categories](docs/sdks/variables/README.md#get_categories) - getCategories +* [get_variable_context](docs/sdks/variables/README.md#get_variable_context) - getVariableContext +* [replace_templates](docs/sdks/variables/README.md#replace_templates) - replaceTemplates +* [search_variables](docs/sdks/variables/README.md#search_variables) - searchVariables ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 89a4f0f8a..8292e79cd 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -226,4 +226,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:42:32 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 27b1c7663..e03d3ef25 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -10,19 +10,14 @@ s = epilot.Epilot( ) req = shared.CustomVariable( - config={ - "provident": 'distinctio', - "quibusdam": 'unde', - "nulla": 'corrupti', - }, + config=shared.CustomVariableConfig(), created_at='2022-04-19T12:41:43.662Z', created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'vel', - 'error', - 'deserunt', - 'suscipit', + 'provident', + 'distinctio', + 'quibusdam', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -134,7 +129,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.ORDER_TABLE, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/docs/models/operations/createcustomvariableresponse.md b/template_variables/docs/models/operations/createcustomvariableresponse.md new file mode 100755 index 000000000..e6555be0f --- /dev/null +++ b/template_variables/docs/models/operations/createcustomvariableresponse.md @@ -0,0 +1,10 @@ +# CreateCustomVariableResponse + + +## 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/template_variables/docs/models/operations/deletecustomvariablerequest.md b/template_variables/docs/models/operations/deletecustomvariablerequest.md new file mode 100755 index 000000000..e1d80ec54 --- /dev/null +++ b/template_variables/docs/models/operations/deletecustomvariablerequest.md @@ -0,0 +1,8 @@ +# DeleteCustomVariableRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *str* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/deletecustomvariableresponse.md b/template_variables/docs/models/operations/deletecustomvariableresponse.md new file mode 100755 index 000000000..9505f5882 --- /dev/null +++ b/template_variables/docs/models/operations/deletecustomvariableresponse.md @@ -0,0 +1,10 @@ +# DeleteCustomVariableResponse + + +## 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/template_variables/docs/models/operations/generateqrcoderequest.md b/template_variables/docs/models/operations/generateqrcoderequest.md new file mode 100755 index 000000000..058d7f0fc --- /dev/null +++ b/template_variables/docs/models/operations/generateqrcoderequest.md @@ -0,0 +1,8 @@ +# GenerateQRcodeRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `qrdata` | *Optional[str]* | :heavy_minus_sign: | Payload of the QR code | \ No newline at end of file diff --git a/template_variables/docs/models/operations/generateqrcoderesponse.md b/template_variables/docs/models/operations/generateqrcoderesponse.md new file mode 100755 index 000000000..44254ae53 --- /dev/null +++ b/template_variables/docs/models/operations/generateqrcoderesponse.md @@ -0,0 +1,10 @@ +# GenerateQRcodeResponse + + +## 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/template_variables/docs/models/operations/getblueprinttableconfigresponse.md b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md new file mode 100755 index 000000000..80c93e078 --- /dev/null +++ b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md @@ -0,0 +1,11 @@ +# GetBluePrintTableConfigResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :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/template_variables/docs/models/operations/getcategorieslang.md b/template_variables/docs/models/operations/getcategorieslang.md new file mode 100755 index 000000000..3fabe10f7 --- /dev/null +++ b/template_variables/docs/models/operations/getcategorieslang.md @@ -0,0 +1,11 @@ +# GetCategoriesLang + +Language + + +## Values + +| Name | Value | +| ----- | ----- | +| `EN` | en | +| `DE` | de | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcategoriesrequest.md b/template_variables/docs/models/operations/getcategoriesrequest.md new file mode 100755 index 000000000..d215ed7ae --- /dev/null +++ b/template_variables/docs/models/operations/getcategoriesrequest.md @@ -0,0 +1,8 @@ +# GetCategoriesRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `lang` | [Optional[GetCategoriesLang]](../../models/operations/getcategorieslang.md) | :heavy_minus_sign: | Language | de | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md new file mode 100755 index 000000000..696a0af9c --- /dev/null +++ b/template_variables/docs/models/operations/getcategoriesresponse.md @@ -0,0 +1,11 @@ +# GetCategoriesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `category_results` | list[[shared.CategoryResult](../../models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | +| `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/template_variables/docs/models/operations/getcustomvariablerequest.md b/template_variables/docs/models/operations/getcustomvariablerequest.md new file mode 100755 index 000000000..bbf2995d8 --- /dev/null +++ b/template_variables/docs/models/operations/getcustomvariablerequest.md @@ -0,0 +1,8 @@ +# GetCustomVariableRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *str* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcustomvariableresponse.md b/template_variables/docs/models/operations/getcustomvariableresponse.md new file mode 100755 index 000000000..9ffb80083 --- /dev/null +++ b/template_variables/docs/models/operations/getcustomvariableresponse.md @@ -0,0 +1,11 @@ +# GetCustomVariableResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :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/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md new file mode 100755 index 000000000..96c7ec95e --- /dev/null +++ b/template_variables/docs/models/operations/getcustomvariablesresponse.md @@ -0,0 +1,11 @@ +# GetCustomVariablesResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `custom_variables` | list[[shared.CustomVariable](../../models/shared/customvariable.md)] | :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/template_variables/docs/models/operations/getvariablecontextrequestbody.md b/template_variables/docs/models/operations/getvariablecontextrequestbody.md new file mode 100755 index 000000000..0076f586b --- /dev/null +++ b/template_variables/docs/models/operations/getvariablecontextrequestbody.md @@ -0,0 +1,8 @@ +# GetVariableContextRequestBody + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getvariablecontextresponse.md b/template_variables/docs/models/operations/getvariablecontextresponse.md new file mode 100755 index 000000000..f5095d87c --- /dev/null +++ b/template_variables/docs/models/operations/getvariablecontextresponse.md @@ -0,0 +1,11 @@ +# GetVariableContextResponse + + +## 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 | +| `variable_context` | [Optional[shared.VariableContext]](../../models/shared/variablecontext.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplates200applicationjson.md b/template_variables/docs/models/operations/replacetemplates200applicationjson.md new file mode 100755 index 000000000..6a1ba7c12 --- /dev/null +++ b/template_variables/docs/models/operations/replacetemplates200applicationjson.md @@ -0,0 +1,10 @@ +# ReplaceTemplates200ApplicationJSON + +ok + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `outputs` | list[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md new file mode 100755 index 000000000..bde05851f --- /dev/null +++ b/template_variables/docs/models/operations/replacetemplatesrequestbody.md @@ -0,0 +1,9 @@ +# ReplaceTemplatesRequestBody + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | +| `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesresponse.md b/template_variables/docs/models/operations/replacetemplatesresponse.md new file mode 100755 index 000000000..eb2accfbd --- /dev/null +++ b/template_variables/docs/models/operations/replacetemplatesresponse.md @@ -0,0 +1,11 @@ +# ReplaceTemplatesResponse + + +## 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 | +| `replace_templates_200_application_json_object` | [Optional[ReplaceTemplates200ApplicationJSON]](../../models/operations/replacetemplates200applicationjson.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md new file mode 100755 index 000000000..edfadbbd6 --- /dev/null +++ b/template_variables/docs/models/operations/searchvariablesrequestbody.md @@ -0,0 +1,13 @@ +# SearchVariablesRequestBody + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | | +| `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | +| `lang` | [Optional[SearchVariablesRequestBodyLang]](../../models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | +| `query` | *str* | :heavy_check_mark: | Search string | logo | +| `size` | *Optional[int]* | :heavy_minus_sign: | N/A | | +| `template_type` | [shared.TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesrequestbodylang.md b/template_variables/docs/models/operations/searchvariablesrequestbodylang.md new file mode 100755 index 000000000..a406e971b --- /dev/null +++ b/template_variables/docs/models/operations/searchvariablesrequestbodylang.md @@ -0,0 +1,9 @@ +# SearchVariablesRequestBodyLang + + +## Values + +| Name | Value | +| ----- | ----- | +| `EN` | en | +| `DE` | de | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md new file mode 100755 index 000000000..2b49ba2dd --- /dev/null +++ b/template_variables/docs/models/operations/searchvariablesresponse.md @@ -0,0 +1,11 @@ +# SearchVariablesResponse + + +## 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 | +| `variable_results` | list[[shared.VariableResult](../../models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariablerequest.md b/template_variables/docs/models/operations/updatecustomvariablerequest.md new file mode 100755 index 000000000..2f3bdd89f --- /dev/null +++ b/template_variables/docs/models/operations/updatecustomvariablerequest.md @@ -0,0 +1,9 @@ +# UpdateCustomVariableRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :heavy_minus_sign: | N/A | +| `id` | *str* | :heavy_check_mark: | Custom variable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariableresponse.md b/template_variables/docs/models/operations/updatecustomvariableresponse.md new file mode 100755 index 000000000..f361fe056 --- /dev/null +++ b/template_variables/docs/models/operations/updatecustomvariableresponse.md @@ -0,0 +1,10 @@ +# UpdateCustomVariableResponse + + +## 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/template_variables/docs/models/shared/categoryresult.md b/template_variables/docs/models/shared/categoryresult.md new file mode 100755 index 000000000..043c42d1c --- /dev/null +++ b/template_variables/docs/models/shared/categoryresult.md @@ -0,0 +1,9 @@ +# CategoryResult + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `category` | *Optional[str]* | :heavy_minus_sign: | N/A | contact | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | Contact | \ No newline at end of file diff --git a/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md new file mode 100755 index 000000000..81c5ce4fb --- /dev/null +++ b/template_variables/docs/models/shared/customvariable.md @@ -0,0 +1,21 @@ +# CustomVariable + +Success + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `config` | [Optional[CustomVariableConfig]](../../models/shared/customvariableconfig.md) | :heavy_minus_sign: | Variable configuration | | +| `created_at` | *Optional[str]* | :heavy_minus_sign: | Creation time | 2022-04-19T12:41:43.662Z | +| `created_by` | *Optional[str]* | :heavy_minus_sign: | Created by | 100042 | +| `helper_logic` | *Optional[str]* | :heavy_minus_sign: | The helper function logic | return param1 * param2; | +| `helper_params` | list[*str*] | :heavy_minus_sign: | The helper function parameter's names | | +| `id` | *Optional[str]* | :heavy_minus_sign: | ID | rbse777b-3cf8-4bff-bb0c-253fd1123250 | +| `key` | *Optional[str]* | :heavy_minus_sign: | The key which is used for Handlebar variable syntax {{key}} | my_custom_table | +| `name` | *Optional[str]* | :heavy_minus_sign: | Custom variable name | My Custom table | +| `template` | *Optional[str]* | :heavy_minus_sign: | Handlebar template that used to generate the variable content |


{{#each table_config.header.columns as \|column\|}}
{{#if column.enable}}

{{/if}}
{{/each}}




{{#each order.products as \|product\|}}
{{#if @last}}

{{else}}

{{/if}}
{{#each @root.table_config.header.columns as \|column\|}}
{{#if column.enable}}
{{#if (eq column.id 'item')}}


{{/if}}
{{#if (eq column.id 'quantity')}}


{{/if}}
{{#if (eq column.id 'tax')}}


{{/if}}
{{#if (eq column.id 'unit_amount')}}


{{/if}}
{{#if (eq column.id 'net_total')}}


{{/if}}
{{#if (eq column.id 'amount_tax')}}


{{/if}}
{{#if (eq column.id 'gross_total')}}


{{/if}}
{{/if}}
{{/each}}

{{/each}}

{{#if table_config.footer.gross_total.enable}}
{{#each order.total_details.recurrences as \|item\|}}


{{#if @root.table_config.footer.payment_type.enable}}

{{/if}}
{{#if (isColumnEnabled @root.table_config 'net_total')}}
{{#if @root.table_config.footer.net_total.enable}}

{{/if}}
{{/if}}


{{/each}}
{{/if}}


{{column._label}}

{{#if @root.table_config.body.product_name.enable}}
{{product.name}}
{{/if}}
{{#if @root.table_config.body.price_description.enable}}


{{product.price.description}}
{{/if}}
{{#if @root.table_config.body.product_description.enable}}


{{product.description}}
{{/if}}
{{product.price.quantity}}

{{product.price.tax_rate}}

{{product.price.unit_amount_net}}

{{product.price.amount_subtotal}}

{{product.price.amount_tax}}

{{product.price.amount_total}}
{{#if @root.table_config.body.payment_type.enable}}
{{#if (eq product.price.type 'recurring')}}


{{product.price.billing_period}}
{{/if}}
{{/if}}
{{item.billing_period}} {{item.amount_subtotal}} {{item.amount_total}}
{{#if @root.table_config.footer.amount_tax.enable}}


{{item.full_amount_tax}}
{{/if}}

| +| `type` | [Optional[CustomVariableType]](../../models/shared/customvariabletype.md) | :heavy_minus_sign: | Custom variable type | rbse777b-3cf8-4bff-bb0c-253fd1123250 | +| `updated_at` | *Optional[str]* | :heavy_minus_sign: | Last update time | 2022-04-20T12:41:43.662Z | +| `updated_by` | *Optional[str]* | :heavy_minus_sign: | Updated by | 100042 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/customvariableconfig.md b/template_variables/docs/models/shared/customvariableconfig.md new file mode 100755 index 000000000..b07567a82 --- /dev/null +++ b/template_variables/docs/models/shared/customvariableconfig.md @@ -0,0 +1,9 @@ +# CustomVariableConfig + +Variable configuration + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/template_variables/docs/models/shared/customvariabletype.md b/template_variables/docs/models/shared/customvariabletype.md new file mode 100755 index 000000000..a69ae106d --- /dev/null +++ b/template_variables/docs/models/shared/customvariabletype.md @@ -0,0 +1,11 @@ +# CustomVariableType + +Custom variable type + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `ORDER_TABLE` | order_table | +| `CUSTOM` | custom | \ No newline at end of file diff --git a/template_variables/docs/models/shared/externalcustomvariable.md b/template_variables/docs/models/shared/externalcustomvariable.md new file mode 100755 index 000000000..3d08742ad --- /dev/null +++ b/template_variables/docs/models/shared/externalcustomvariable.md @@ -0,0 +1,9 @@ +# ExternalCustomVariable + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | +| `value` | *Optional[str]* | :heavy_minus_sign: | N/A | https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19 | +| `variable` | *Optional[str]* | :heavy_minus_sign: | N/A | {{craftsmen.invitation_link}} | \ No newline at end of file diff --git a/template_variables/docs/models/shared/security.md b/template_variables/docs/models/shared/security.md new file mode 100755 index 000000000..f06333390 --- /dev/null +++ b/template_variables/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/template_variables/docs/models/shared/templatetype.md b/template_variables/docs/models/shared/templatetype.md new file mode 100755 index 000000000..d6ed07125 --- /dev/null +++ b/template_variables/docs/models/shared/templatetype.md @@ -0,0 +1,9 @@ +# TemplateType + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `EMAIL` | email | +| `DOCUMENT` | document | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variablecontext.md b/template_variables/docs/models/shared/variablecontext.md new file mode 100755 index 000000000..ddcb6e783 --- /dev/null +++ b/template_variables/docs/models/shared/variablecontext.md @@ -0,0 +1,13 @@ +# VariableContext + +ok + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `brand` | dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `contact` | dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `main` | dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `unsubscribe_url` | *Optional[str]* | :heavy_minus_sign: | N/A | https://consent.sls.epilot.io/v1/unsubscribe?token=abc123 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md new file mode 100755 index 000000000..5410f0685 --- /dev/null +++ b/template_variables/docs/models/shared/variableparameters.md @@ -0,0 +1,16 @@ +# VariableParameters + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `brand_id` | *Optional[float]* | :heavy_minus_sign: | Brand ID | 123451 | +| `context_data` | [Optional[VariableParametersContextData]](../../models/shared/variableparameterscontextdata.md) | :heavy_minus_sign: | If context data is avaialble, this data will be used for variable replace. | | +| `custom_variables` | list[[ExternalCustomVariable](../../models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | +| `language` | [Optional[VariableParametersLanguage]](../../models/shared/variableparameterslanguage.md) | :heavy_minus_sign: | N/A | | +| `main_entity_id` | *Optional[str]* | :heavy_minus_sign: | The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID. | 63753437-c9e2-4e83-82bb-b1c666514561 | +| `template_name` | *Optional[str]* | :heavy_minus_sign: | The name of email template | | +| `template_tags` | list[*str*] | :heavy_minus_sign: | The tags of email template | | +| `template_type` | [TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableparameterscontextdata.md b/template_variables/docs/models/shared/variableparameterscontextdata.md new file mode 100755 index 000000000..27a8d5428 --- /dev/null +++ b/template_variables/docs/models/shared/variableparameterscontextdata.md @@ -0,0 +1,9 @@ +# VariableParametersContextData + +If context data is avaialble, this data will be used for variable replace. + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableparameterslanguage.md b/template_variables/docs/models/shared/variableparameterslanguage.md new file mode 100755 index 000000000..2604d75ed --- /dev/null +++ b/template_variables/docs/models/shared/variableparameterslanguage.md @@ -0,0 +1,9 @@ +# VariableParametersLanguage + + +## Values + +| Name | Value | +| ----- | ----- | +| `EN` | en | +| `DE` | de | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableresult.md b/template_variables/docs/models/shared/variableresult.md new file mode 100755 index 000000000..b640b9f77 --- /dev/null +++ b/template_variables/docs/models/shared/variableresult.md @@ -0,0 +1,12 @@ +# VariableResult + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `description` | *Optional[str]* | :heavy_minus_sign: | Variable description | +| `group` | *Optional[str]* | :heavy_minus_sign: | Variable group | +| `insert` | *Optional[str]* | :heavy_minus_sign: | The value which is used to insert to template | +| `qrdata` | *Optional[str]* | :heavy_minus_sign: | Payload for the QR data | +| `type` | [Optional[VariableResultType]](../../models/shared/variableresulttype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableresulttype.md b/template_variables/docs/models/shared/variableresulttype.md new file mode 100755 index 000000000..a4605a78b --- /dev/null +++ b/template_variables/docs/models/shared/variableresulttype.md @@ -0,0 +1,9 @@ +# VariableResultType + + +## Values + +| Name | Value | +| --------- | --------- | +| `SIMPLE` | simple | +| `PARTIAL` | partial | \ No newline at end of file diff --git a/template_variables/docs/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md similarity index 71% rename from template_variables/docs/customvariables/README.md rename to template_variables/docs/sdks/customvariables/README.md index 3ef37a97b..1547cb62d 100755 --- a/template_variables/docs/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -26,16 +26,15 @@ s = epilot.Epilot( ) req = shared.CustomVariable( - config={ - "debitis": 'ipsa', - "delectus": 'tempora', - }, + config=shared.CustomVariableConfig(), created_at='2022-04-19T12:41:43.662Z', created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'molestiae', - 'minus', + 'corrupti', + 'illum', + 'vel', + 'error', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -158,6 +157,18 @@ if res.status_code == 200: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `request` | [shared.CustomVariable](../../models/shared/customvariable.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.CreateCustomVariableResponse](../../models/operations/createcustomvariableresponse.md)** + + ## delete_custom_variable Immediately and permanently deletes a custom variable @@ -175,7 +186,7 @@ s = epilot.Epilot( ) req = operations.DeleteCustomVariableRequest( - id='8796ed15-1a05-4dfc-addf-7cc78ca1ba92', + id='674e0f46-7cc8-4796-ad15-1a05dfc2ddf7', ) res = s.custom_variables.delete_custom_variable(req) @@ -184,6 +195,18 @@ if res.status_code == 200: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [operations.DeleteCustomVariableRequest](../../models/operations/deletecustomvariablerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.DeleteCustomVariableResponse](../../models/operations/deletecustomvariableresponse.md)** + + ## get_blue_print_table_config Get default table config @@ -207,6 +230,12 @@ if res.custom_variable is not None: # handle response ``` + +### Response + +**[operations.GetBluePrintTableConfigResponse](../../models/operations/getblueprinttableconfigresponse.md)** + + ## get_custom_variable Get custom variable @@ -224,7 +253,7 @@ s = epilot.Epilot( ) req = operations.GetCustomVariableRequest( - id='8fc81674-2cb7-4392-8592-9396fea7596e', + id='cc78ca1b-a928-4fc8-9674-2cb739205929', ) res = s.custom_variables.get_custom_variable(req) @@ -233,6 +262,18 @@ if res.custom_variable is not None: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `request` | [operations.GetCustomVariableRequest](../../models/operations/getcustomvariablerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetCustomVariableResponse](../../models/operations/getcustomvariableresponse.md)** + + ## get_custom_variables Get all custom variables of organization @@ -256,6 +297,12 @@ if res.custom_variables is not None: # handle response ``` + +### Response + +**[operations.GetCustomVariablesResponse](../../models/operations/getcustomvariablesresponse.md)** + + ## update_custom_variable Update custom variable @@ -274,16 +321,12 @@ s = epilot.Epilot( req = operations.UpdateCustomVariableRequest( custom_variable=shared.CustomVariable( - config={ - "architecto": 'ipsa', - "reiciendis": 'est', - "mollitia": 'laborum', - }, + config=shared.CustomVariableConfig(), created_at='2022-04-19T12:41:43.662Z', created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'dolorem', + 'natus', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -399,7 +442,7 @@ req = operations.UpdateCustomVariableRequest( updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ), - id='2c595590-7aff-41a3-a2fa-9467739251aa', + id='fea7596e-b10f-4aaa-a352-c5955907aff1', ) res = s.custom_variables.update_custom_variable(req) @@ -407,3 +450,15 @@ res = s.custom_variables.update_custom_variable(req) if res.status_code == 200: # handle response ``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [operations.UpdateCustomVariableRequest](../../models/operations/updatecustomvariablerequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.UpdateCustomVariableResponse](../../models/operations/updatecustomvariableresponse.md)** + diff --git a/template_variables/docs/epilot/README.md b/template_variables/docs/sdks/epilot/README.md similarity index 100% rename from template_variables/docs/epilot/README.md rename to template_variables/docs/sdks/epilot/README.md diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md new file mode 100755 index 000000000..afade7393 --- /dev/null +++ b/template_variables/docs/sdks/variables/README.md @@ -0,0 +1,265 @@ +# variables + +## Overview + +Variables + +### Available Operations + +* [generate_q_rcode](#generate_q_rcode) - generateQRcode +* [get_categories](#get_categories) - getCategories +* [get_variable_context](#get_variable_context) - getVariableContext +* [replace_templates](#replace_templates) - replaceTemplates +* [search_variables](#search_variables) - searchVariables + +## generate_q_rcode + +Generate QR Code for the given payload + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.GenerateQRcodeRequest( + qrdata='mollitia', +) + +res = s.variables.generate_q_rcode(req) + +if res.status_code == 200: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `request` | [operations.GenerateQRcodeRequest](../../models/operations/generateqrcoderequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GenerateQRcodeResponse](../../models/operations/generateqrcoderesponse.md)** + + +## get_categories + +Get all template variable categories + +### Example Usage + +```python +import epilot +from epilot.models import operations + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.GetCategoriesRequest( + lang=operations.GetCategoriesLang.DE, +) + +res = s.variables.get_categories(req) + +if res.category_results is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `request` | [operations.GetCategoriesRequest](../../models/operations/getcategoriesrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetCategoriesResponse](../../models/operations/getcategoriesresponse.md)** + + +## get_variable_context + +Get full variable context + +Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace + + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.GetVariableContextRequestBody( + parameters=shared.VariableParameters( + brand_id=123451, + context_data=shared.VariableParametersContextData(), + custom_variables=[ + shared.ExternalCustomVariable( + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', + ), + ], + language=shared.VariableParametersLanguage.DE, + main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', + template_name='consequuntur', + template_tags=[ + 'mollitia', + 'occaecati', + 'numquam', + 'commodi', + ], + template_type=shared.TemplateType.EMAIL, + user_id='50001', + ), +) + +res = s.variables.get_variable_context(req) + +if res.variable_context is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | +| `request` | [operations.GetVariableContextRequestBody](../../models/operations/getvariablecontextrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetVariableContextResponse](../../models/operations/getvariablecontextresponse.md)** + + +## replace_templates + +Replace variables in handlebars templates + +Takes in an array of input templates and outputs the output text with replaced variables + + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.ReplaceTemplatesRequestBody( + inputs=[ + 'Hello, {{contact.first_name}}! + + {{{brand.signature}}} + ', + 'Hello, {{contact.first_name}}! + + {{{brand.signature}}} + ', + ], + parameters=shared.VariableParameters( + brand_id=123451, + context_data=shared.VariableParametersContextData(), + custom_variables=[ + shared.ExternalCustomVariable( + value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', + variable='{{craftsmen.invitation_link}}', + ), + ], + language=shared.VariableParametersLanguage.DE, + main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', + template_name='quia', + template_tags=[ + 'vitae', + 'laborum', + ], + template_type=shared.TemplateType.DOCUMENT, + user_id='50001', + ), +) + +res = s.variables.replace_templates(req) + +if res.replace_templates_200_application_json_object is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [operations.ReplaceTemplatesRequestBody](../../models/operations/replacetemplatesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.ReplaceTemplatesResponse](../../models/operations/replacetemplatesresponse.md)** + + +## search_variables + +Search variables + +### Example Usage + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), +) + +req = operations.SearchVariablesRequestBody( + entity_schemas=[ + 'contact', + 'contact', + ], + from_=138183, + lang=operations.SearchVariablesRequestBodyLang.DE, + query='logo', + size=196582, + template_type=shared.TemplateType.DOCUMENT, +) + +res = s.variables.search_variables(req) + +if res.variable_results is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `request` | [operations.SearchVariablesRequestBody](../../models/operations/searchvariablesrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.SearchVariablesResponse](../../models/operations/searchvariablesresponse.md)** + diff --git a/template_variables/docs/variables/README.md b/template_variables/docs/variables/README.md deleted file mode 100755 index 161eab118..000000000 --- a/template_variables/docs/variables/README.md +++ /dev/null @@ -1,228 +0,0 @@ -# variables - -## Overview - -Variables - -### Available Operations - -* [generate_q_rcode](#generate_q_rcode) - generateQRcode -* [get_categories](#get_categories) - getCategories -* [get_variable_context](#get_variable_context) - getVariableContext -* [replace_templates](#replace_templates) - replaceTemplates -* [search_variables](#search_variables) - searchVariables - -## generate_q_rcode - -Generate QR Code for the given payload - -### Example Usage - -```python -import epilot -from epilot.models import operations - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.GenerateQRcodeRequest( - qrdata='enim', -) - -res = s.variables.generate_q_rcode(req) - -if res.status_code == 200: - # handle response -``` - -## get_categories - -Get all template variable categories - -### Example Usage - -```python -import epilot -from epilot.models import operations - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.GetCategoriesRequest( - lang=operations.GetCategoriesLang.DE, -) - -res = s.variables.get_categories(req) - -if res.category_results is not None: - # handle response -``` - -## get_variable_context - -Get full variable context - -Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace - - -### Example Usage - -```python -import epilot -from epilot.models import operations, shared - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.GetVariableContextRequestBody( - parameters=shared.VariableParameters( - brand_id=123451, - context_data={ - "quo": 'sequi', - }, - custom_variables=[ - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - ], - language=shared.VariableParametersLanguage.EN, - main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='id', - template_tags=[ - 'aut', - 'quasi', - 'error', - 'temporibus', - ], - template_type=shared.TemplateType.DOCUMENT, - user_id='50001', - ), -) - -res = s.variables.get_variable_context(req) - -if res.variable_context is not None: - # handle response -``` - -## replace_templates - -Replace variables in handlebars templates - -Takes in an array of input templates and outputs the output text with replaced variables - - -### Example Usage - -```python -import epilot -from epilot.models import operations, shared - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.ReplaceTemplatesRequestBody( - inputs=[ - 'Hello, {{contact.first_name}}! - - {{{brand.signature}}} - ', - ], - parameters=shared.VariableParameters( - brand_id=123451, - context_data={ - "voluptatibus": 'vero', - "nihil": 'praesentium', - "voluptatibus": 'ipsa', - "omnis": 'voluptate', - }, - custom_variables=[ - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - shared.ExternalCustomVariable( - value='https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19', - variable='{{craftsmen.invitation_link}}', - ), - ], - language=shared.VariableParametersLanguage.EN, - main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='doloremque', - template_tags=[ - 'ut', - 'maiores', - ], - template_type=shared.TemplateType.EMAIL, - user_id='50001', - ), -) - -res = s.variables.replace_templates(req) - -if res.replace_templates_200_application_json_object is not None: - # handle response -``` - -## search_variables - -Search variables - -### Example Usage - -```python -import epilot -from epilot.models import operations, shared - -s = epilot.Epilot( - security=shared.Security( - epilot_auth="", - ), -) - -req = operations.SearchVariablesRequestBody( - entity_schemas=[ - 'contact', - 'contact', - ], - from_=296140, - lang=operations.SearchVariablesRequestBodyLang.EN, - query='logo', - size=118727, - template_type=shared.TemplateType.DOCUMENT, -) - -res = s.variables.search_variables(req) - -if res.variable_results is not None: - # handle response -``` diff --git a/template_variables/files.gen b/template_variables/files.gen index fc5454e0a..bee4ade1a 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -31,7 +31,42 @@ src/epilot/models/shared/externalcustomvariable.py src/epilot/models/shared/variableresult.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py -docs/epilot/README.md -docs/customvariables/README.md -docs/variables/README.md -USAGE.md \ No newline at end of file +docs/sdks/epilot/README.md +docs/sdks/customvariables/README.md +docs/sdks/variables/README.md +USAGE.md +docs/models/operations/createcustomvariableresponse.md +docs/models/operations/deletecustomvariablerequest.md +docs/models/operations/deletecustomvariableresponse.md +docs/models/operations/getblueprinttableconfigresponse.md +docs/models/operations/getcustomvariablerequest.md +docs/models/operations/getcustomvariableresponse.md +docs/models/operations/getcustomvariablesresponse.md +docs/models/operations/updatecustomvariablerequest.md +docs/models/operations/updatecustomvariableresponse.md +docs/models/operations/generateqrcoderequest.md +docs/models/operations/generateqrcoderesponse.md +docs/models/operations/getcategorieslang.md +docs/models/operations/getcategoriesrequest.md +docs/models/operations/getcategoriesresponse.md +docs/models/operations/getvariablecontextrequestbody.md +docs/models/operations/getvariablecontextresponse.md +docs/models/operations/replacetemplatesrequestbody.md +docs/models/operations/replacetemplates200applicationjson.md +docs/models/operations/replacetemplatesresponse.md +docs/models/operations/searchvariablesrequestbodylang.md +docs/models/operations/searchvariablesrequestbody.md +docs/models/operations/searchvariablesresponse.md +docs/models/shared/customvariableconfig.md +docs/models/shared/customvariabletype.md +docs/models/shared/customvariable.md +docs/models/shared/categoryresult.md +docs/models/shared/variablecontext.md +docs/models/shared/variableparameterscontextdata.md +docs/models/shared/variableparameterslanguage.md +docs/models/shared/variableparameters.md +docs/models/shared/templatetype.md +docs/models/shared/externalcustomvariable.md +docs/models/shared/variableresulttype.md +docs/models/shared/variableresult.md +docs/models/shared/security.md \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 670332321..806bce715 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index c220a3064..ea58e8cb7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.20.1", + version="1.21.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py index 1cd6d3074..c8043cccd 100755 --- a/template_variables/src/epilot/models/operations/createcustomvariable.py +++ b/template_variables/src/epilot/models/operations/createcustomvariable.py @@ -6,10 +6,11 @@ from typing import Optional + @dataclasses.dataclass class CreateCustomVariableResponse: - 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/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py index bed46a964..7096a6273 100755 --- a/template_variables/src/epilot/models/operations/deletecustomvariable.py +++ b/template_variables/src/epilot/models/operations/deletecustomvariable.py @@ -6,17 +6,20 @@ from typing import Optional + @dataclasses.dataclass class DeleteCustomVariableRequest: - id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) r"""Custom vairable ID""" + + + @dataclasses.dataclass class DeleteCustomVariableResponse: - 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/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py index fa04cd930..69d69d306 100755 --- a/template_variables/src/epilot/models/operations/generateqrcode.py +++ b/template_variables/src/epilot/models/operations/generateqrcode.py @@ -6,17 +6,20 @@ from typing import Optional + @dataclasses.dataclass class GenerateQRcodeRequest: - qrdata: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'qrdata', 'style': 'form', 'explode': True }}) r"""Payload of the QR code""" + + + @dataclasses.dataclass class GenerateQRcodeResponse: - 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/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py index 88fd77129..23ccdb147 100755 --- a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py +++ b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py @@ -7,12 +7,13 @@ from typing import Optional + @dataclasses.dataclass class GetBluePrintTableConfigResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index b13f30222..5b784f90b 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -13,19 +13,22 @@ class GetCategoriesLang(str, Enum): DE = 'de' + @dataclasses.dataclass class GetCategoriesRequest: - lang: Optional[GetCategoriesLang] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'lang', 'style': 'form', 'explode': True }}) r"""Language""" + + + @dataclasses.dataclass class GetCategoriesResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() category_results: Optional[list[shared_categoryresult.CategoryResult]] = dataclasses.field(default=None) r"""ok""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py index a4992e757..308275a94 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariable.py +++ b/template_variables/src/epilot/models/operations/getcustomvariable.py @@ -7,19 +7,22 @@ from typing import Optional + @dataclasses.dataclass class GetCustomVariableRequest: - id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) r"""Custom vairable ID""" + + + @dataclasses.dataclass class GetCustomVariableResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py index e8f4c35a8..553dbe621 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariables.py +++ b/template_variables/src/epilot/models/operations/getcustomvariables.py @@ -7,12 +7,13 @@ from typing import Optional + @dataclasses.dataclass class GetCustomVariablesResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() custom_variables: Optional[list[shared_customvariable.CustomVariable]] = 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/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py index 07a5c57be..261ae472c 100755 --- a/template_variables/src/epilot/models/operations/getvariablecontext.py +++ b/template_variables/src/epilot/models/operations/getvariablecontext.py @@ -11,18 +11,21 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GetVariableContextRequestBody: - parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) + + + @dataclasses.dataclass class GetVariableContextResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) variable_context: Optional[shared_variablecontext.VariableContext] = dataclasses.field(default=None) r"""ok""" - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py index 7af24a024..f4415b4dc 100755 --- a/template_variables/src/epilot/models/operations/replacetemplates.py +++ b/template_variables/src/epilot/models/operations/replacetemplates.py @@ -10,27 +10,32 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ReplaceTemplatesRequestBody: - inputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('inputs'), 'exclude': lambda f: f is None }}) parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ReplaceTemplates200ApplicationJSON: r"""ok""" - outputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('outputs'), 'exclude': lambda f: f is None }}) + + + @dataclasses.dataclass class ReplaceTemplatesResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) replace_templates_200_application_json_object: Optional[ReplaceTemplates200ApplicationJSON] = dataclasses.field(default=None) r"""ok""" - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index 50af4a8fb..7b7266d8e 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -16,9 +16,9 @@ class SearchVariablesRequestBodyLang(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class SearchVariablesRequestBody: - query: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('query') }}) r"""Search string""" template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) @@ -28,12 +28,15 @@ class SearchVariablesRequestBody: size: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) + + + @dataclasses.dataclass class SearchVariablesResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) variable_results: Optional[list[shared_variableresult.VariableResult]] = dataclasses.field(default=None) r"""ok""" - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py index e5fc9a02e..d0257fb77 100755 --- a/template_variables/src/epilot/models/operations/updatecustomvariable.py +++ b/template_variables/src/epilot/models/operations/updatecustomvariable.py @@ -7,18 +7,21 @@ from typing import Optional + @dataclasses.dataclass class UpdateCustomVariableRequest: - id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) r"""Custom variable ID""" custom_variable: Optional[shared_customvariable.CustomVariable] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + + + @dataclasses.dataclass class UpdateCustomVariableResponse: - 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/template_variables/src/epilot/models/shared/__init__.py b/template_variables/src/epilot/models/shared/__init__.py index aa57a5f56..2f0d97ab2 100755 --- a/template_variables/src/epilot/models/shared/__init__.py +++ b/template_variables/src/epilot/models/shared/__init__.py @@ -9,4 +9,4 @@ from .variableparameters import * from .variableresult import * -__all__ = ["CategoryResult","CustomVariable","CustomVariableType","ExternalCustomVariable","Security","TemplateType","VariableContext","VariableParameters","VariableParametersLanguage","VariableResult","VariableResultType"] +__all__ = ["CategoryResult","CustomVariable","CustomVariableConfig","CustomVariableType","ExternalCustomVariable","Security","TemplateType","VariableContext","VariableParameters","VariableParametersContextData","VariableParametersLanguage","VariableResult","VariableResultType"] diff --git a/template_variables/src/epilot/models/shared/categoryresult.py b/template_variables/src/epilot/models/shared/categoryresult.py index 5287f6d6a..0fa6a0f30 100755 --- a/template_variables/src/epilot/models/shared/categoryresult.py +++ b/template_variables/src/epilot/models/shared/categoryresult.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class CategoryResult: - category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('category'), 'exclude': lambda f: f is None }}) description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 0d666e081..0e2485e9b 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -5,7 +5,14 @@ from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils -from typing import Any, Optional +from typing import Optional + + + +@dataclasses.dataclass +class CustomVariableConfig: + r"""Variable configuration""" + pass class CustomVariableType(str, Enum): r"""Custom variable type""" @@ -14,11 +21,11 @@ class CustomVariableType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class CustomVariable: r"""Success""" - - config: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('config'), 'exclude': lambda f: f is None }}) + config: Optional[CustomVariableConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('config'), 'exclude': lambda f: f is None }}) r"""Variable configuration""" created_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_at'), 'exclude': lambda f: f is None }}) r"""Creation time""" @@ -42,4 +49,5 @@ class CustomVariable: r"""Last update time""" updated_by: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updated_by'), 'exclude': lambda f: f is None }}) r"""Updated by""" - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/shared/externalcustomvariable.py b/template_variables/src/epilot/models/shared/externalcustomvariable.py index 8fe3c4f8e..00dcf4ba3 100755 --- a/template_variables/src/epilot/models/shared/externalcustomvariable.py +++ b/template_variables/src/epilot/models/shared/externalcustomvariable.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ExternalCustomVariable: - value: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('value'), 'exclude': lambda f: f is None }}) variable: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/shared/security.py b/template_variables/src/epilot/models/shared/security.py index 7be3d6e93..e75e944ea 100755 --- a/template_variables/src/epilot/models/shared/security.py +++ b/template_variables/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/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py index 115d566b2..caf6b3517 100755 --- a/template_variables/src/epilot/models/shared/variablecontext.py +++ b/template_variables/src/epilot/models/shared/variablecontext.py @@ -8,12 +8,13 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class VariableContext: r"""ok""" - brand: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) contact: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) main: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) unsubscribe_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unsubscribe_url'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index 80cb40573..3f223413a 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -7,7 +7,14 @@ from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils -from typing import Any, Optional +from typing import Optional + + + +@dataclasses.dataclass +class VariableParametersContextData: + r"""If context data is avaialble, this data will be used for variable replace.""" + pass class VariableParametersLanguage(str, Enum): EN = 'en' @@ -15,13 +22,13 @@ class VariableParametersLanguage(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class VariableParameters: - template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) brand_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand_id'), 'exclude': lambda f: f is None }}) r"""Brand ID""" - context_data: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) + context_data: Optional[VariableParametersContextData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) r"""If context data is avaialble, this data will be used for variable replace.""" custom_variables: Optional[list[shared_externalcustomvariable.ExternalCustomVariable]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_variables'), 'exclude': lambda f: f is None }}) r"""Custom variables with specified values form other services.""" @@ -34,4 +41,5 @@ class VariableParameters: r"""The tags of email template""" user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id'), 'exclude': lambda f: f is None }}) r"""User ID""" - \ No newline at end of file + + diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py index da7dc4ed7..cb36a8db3 100755 --- a/template_variables/src/epilot/models/shared/variableresult.py +++ b/template_variables/src/epilot/models/shared/variableresult.py @@ -13,9 +13,9 @@ class VariableResultType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class VariableResult: - description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) r"""Variable description""" group: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('group'), 'exclude': lambda f: f is None }}) @@ -25,4 +25,5 @@ class VariableResult: qrdata: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('qrdata'), 'exclude': lambda f: f is None }}) r"""Payload for the QR data""" type: Optional[VariableResultType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 55353cbb7..4b69e1682 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 038353c2a1a78db88f9a79c3c77ebfe0bf9a7906 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 11 Jun 2023 01:59:29 +0000 Subject: [PATCH 34/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- .../src/epilot/models/shared/customvariable.py | 3 ++- .../src/epilot/models/shared/variableparameters.py | 3 ++- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 17 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 8292e79cd..5ceead227 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -232,4 +232,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:59:14 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 806bce715..5b64f99b3 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index ea58e8cb7..26c84ae32 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.21.0", + version="1.21.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 0e2485e9b..c7eaaab6c 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -12,7 +12,8 @@ @dataclasses.dataclass class CustomVariableConfig: r"""Variable configuration""" - pass + + class CustomVariableType(str, Enum): r"""Custom variable type""" diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index 3f223413a..d4d76961e 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -14,7 +14,8 @@ @dataclasses.dataclass class VariableParametersContextData: r"""If context data is avaialble, this data will be used for variable replace.""" - pass + + class VariableParametersLanguage(str, Enum): EN = 'en' diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 4b69e1682..0840ef12c 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 9969eb4026bfb52dda31f33770740a873a40d1f2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 14 Jun 2023 01:43:46 +0000 Subject: [PATCH 35/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.3 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/retries.py | 3 ++- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 5ceead227..07070a373 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -238,4 +238,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:43:28 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 5b64f99b3..2e888aea9 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 26c84ae32..101c85078 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.21.1", + version="1.22.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 0840ef12c..9983ef43b 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/retries.py b/template_variables/src/epilot/utils/retries.py index c6251d948..2138c1b5e 100755 --- a/template_variables/src/epilot/utils/retries.py +++ b/template_variables/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 6b1766383ce0aada2db2b0aa4c6b3afa27db7c3a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 16 Jun 2023 01:43:51 +0000 Subject: [PATCH 36/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.48.0 --- template_variables/.gitignore | 2 +- template_variables/RELEASES.md | 8 +++++++- template_variables/files.gen | 1 - template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/template_variables/.gitignore b/template_variables/.gitignore index 9072ad43b..648876d29 100755 --- a/template_variables/.gitignore +++ b/template_variables/.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/template_variables/RELEASES.md b/template_variables/RELEASES.md index 07070a373..07781a6c6 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -244,4 +244,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:43:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/files.gen b/template_variables/files.gen index bee4ade1a..64b4ae9f3 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -2,7 +2,6 @@ src/epilot/sdkconfiguration.py src/epilot/custom_variables.py src/epilot/variables.py src/epilot/sdk.py -.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 2e888aea9..3df845948 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 101c85078..4655240a2 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.22.0", + version="1.23.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 9983ef43b..7cb3bfc82 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 0215e3faaa2a1e64651e2de8710128f79d1023f0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 20 Jun 2023 01:39:00 +0000 Subject: [PATCH 37/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.0 --- template_variables/.gitignore | 2 ++ template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/template_variables/.gitignore b/template_variables/.gitignore index 648876d29..8ac3f51d4 100755 --- a/template_variables/.gitignore +++ b/template_variables/.gitignore @@ -1,3 +1,5 @@ +.python-version +.DS_Store venv/ src/*.egg-info/ __pycache__/ diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 07781a6c6..2188fdc8a 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -250,4 +250,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:38:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 3df845948..e1fb40ba5 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 4655240a2..118897cc6 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.23.0", + version="1.23.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 7cb3bfc82..e791e307a 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 628b5508b14773ad6aaf78ef9e09d9d5f4b1ff27 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 21 Jun 2023 01:40:23 +0000 Subject: [PATCH 38/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 2188fdc8a..98599f409 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -256,4 +256,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:40:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index e1fb40ba5..9b027d96c 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 118897cc6..45c199fa7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.23.1", + version="1.23.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index e791e307a..1a6e2efb6 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 9261180fd8eec72ff74e715bc45f0eaca0650d00 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 23 Jun 2023 01:55:22 +0000 Subject: [PATCH 39/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.50.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 98599f409..e019ea8f4 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -262,4 +262,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:55:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 9b027d96c..6775b27bc 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 45c199fa7..193f75aa7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.23.2", + version="1.24.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 1a6e2efb6..a7919145e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 75d4f5702fd392f361c1e272a7bea08ba8ad9fae Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 27 Jun 2023 01:56:56 +0000 Subject: [PATCH 40/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index e019ea8f4..a82a799ef 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -268,4 +268,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:56:41 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 6775b27bc..38c8c7655 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 193f75aa7..6355a4a46 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.24.0", + version="1.25.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index a7919145e..31d9431f4 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 298c1c86e626ffe9ec1db0807bc2182ad78c426d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 29 Jun 2023 01:51:45 +0000 Subject: [PATCH 41/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.3 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index a82a799ef..f0dcc085a 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -274,4 +274,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:51:31 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 38c8c7655..cb3dbcd89 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 6355a4a46..09ad25e06 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.25.0", + version="1.26.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 31d9431f4..03eda687e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 70679d2546d0549b9b52551f90da8c17ccdf57bf Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Jul 2023 02:01:39 +0000 Subject: [PATCH 42/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index f0dcc085a..ba83b9bf9 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -280,4 +280,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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 02:01:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index cb3dbcd89..b335c2b47 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 09ad25e06..f3ea434cf 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.26.0", + version="1.27.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 03eda687e..3be38c508 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 703549caa24ab61759455a1d012ad0395fab9707 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Jul 2023 01:57:57 +0000 Subject: [PATCH 43/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index ba83b9bf9..951c555ad 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -286,4 +286,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:57:38 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b335c2b47..559921c5e 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index f3ea434cf..205de9dcd 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.27.0", + version="1.28.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 3be38c508..fd82940df 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 555dccfc2e76906b856f2718f1d8b5e3fb029e64 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Jul 2023 01:55:29 +0000 Subject: [PATCH 44/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 951c555ad..ff6aa2596 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -292,4 +292,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:55:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 559921c5e..93225da12 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 205de9dcd..6567665a7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.28.0", + version="1.29.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index fd82940df..08e351e7a 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 ee225e4666dbfdb9a74d49331499c3278e2aff28 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 8 Jul 2023 01:54:22 +0000 Subject: [PATCH 45/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index ff6aa2596..663e02f45 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -298,4 +298,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:54:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 93225da12..92c59f388 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 6567665a7..f5a1fe576 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.29.0", + version="1.29.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 08e351e7a..95f4cef19 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 fd886b4af545d71b356c343462f40713cecde0f2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 11 Jul 2023 01:47:39 +0000 Subject: [PATCH 46/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 663e02f45..403cee198 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -304,4 +304,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:47:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 92c59f388..1e26f3ba0 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index f5a1fe576..809aa74ef 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.29.1", + version="1.30.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 95f4cef19..e1233655f 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 3f04c01e4f3dbea809c02a1e35b65c7f9eab6685 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Jul 2023 01:55:53 +0000 Subject: [PATCH 47/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.4 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 403cee198..7a1d4dc16 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -310,4 +310,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:55:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.56.4 (2.61.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 1e26f3ba0..0e0c562de 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 809aa74ef..d9626d12d 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.30.0", + version="1.30.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index e1233655f..e68fe3338 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 48626d4c402df13f898c5df1ec3c6e3e7c560bde Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 13 Jul 2023 01:58:21 +0000 Subject: [PATCH 48/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.57.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/docs/sdks/variables/README.md | 4 ++-- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/variables.py | 4 ++-- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 7a1d4dc16..b554b1cd8 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -316,4 +316,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:58:03 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index afade7393..5e41610d6 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -171,11 +171,11 @@ s = epilot.Epilot( req = operations.ReplaceTemplatesRequestBody( inputs=[ 'Hello, {{contact.first_name}}! - + {{{brand.signature}}} ', 'Hello, {{contact.first_name}}! - + {{{brand.signature}}} ', ], diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0e0c562de..d1cc34b5c 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index d9626d12d..2dd62a433 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.30.1", + version="1.31.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index e68fe3338..3e95d139f 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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: diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 39bfda229..ab7fbb6b4 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -66,7 +66,7 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations def get_variable_context(self, request: operations.GetVariableContextRequestBody) -> operations.GetVariableContextResponse: r"""getVariableContext Get full variable context - + Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -97,7 +97,7 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> operations.ReplaceTemplatesResponse: r"""replaceTemplates Replace variables in handlebars templates - + Takes in an array of input templates and outputs the output text with replaced variables """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) From 8c77f5f4981fc83831bbe001460bd1bd2bfd9b8c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Jul 2023 01:58:10 +0000 Subject: [PATCH 49/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.59.0 --- template_variables/README.md | 2 ++ template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 2 ++ template_variables/docs/sdks/customvariables/README.md | 8 ++++---- template_variables/docs/sdks/variables/README.md | 4 ++-- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 8 files changed, 23 insertions(+), 13 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index b7cfa927a..c1dbeb8b9 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -10,6 +10,8 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=templa ## SDK Example Usage + + ```python import epilot from epilot.models import shared diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index b554b1cd8..d2be98d20 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -322,4 +322,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:57:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index e03d3ef25..2a0aa7c77 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -1,4 +1,6 @@ + + ```python import epilot from epilot.models import shared diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index 1547cb62d..583bb2f0e 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -177,7 +177,7 @@ Immediately and permanently deletes a custom variable ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( @@ -215,7 +215,7 @@ Get default table config ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( @@ -244,7 +244,7 @@ Get custom variable ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( @@ -282,7 +282,7 @@ Get all custom variables of organization ```python import epilot - +from epilot.models import shared s = epilot.Epilot( security=shared.Security( diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index 5e41610d6..5b916bd65 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -20,7 +20,7 @@ Generate QR Code for the given payload ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( @@ -58,7 +58,7 @@ Get all template variable categories ```python import epilot -from epilot.models import operations +from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index d1cc34b5c..4be6a10ae 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 2dd62a433..3607ed2f0 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.31.0", + version="1.32.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 3e95d139f..1cacc0e7b 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 34a8c17fa7fc75fb7a992a13d46c8ee41b77da3c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 17 Jul 2023 02:01:12 +0000 Subject: [PATCH 50/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.60.0 --- template_variables/RELEASES.md | 8 ++++++- template_variables/files.gen | 1 + template_variables/gen.yaml | 6 ++--- template_variables/pylintrc | 4 +++- template_variables/setup.py | 2 +- .../src/epilot/custom_variables.py | 6 +++++ .../src/epilot/models/errors/sdkerror.py | 24 +++++++++++++++++++ .../src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/variables.py | 8 +++++++ 9 files changed, 55 insertions(+), 8 deletions(-) create mode 100755 template_variables/src/epilot/models/errors/sdkerror.py diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index d2be98d20..bf9a4a4a9 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -328,4 +328,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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 02:00:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/files.gen b/template_variables/files.gen index 64b4ae9f3..13046ebef 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -6,6 +6,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/template_variables/gen.yaml b/template_variables/gen.yaml index 4be6a10ae..8be4a606c 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/pylintrc b/template_variables/pylintrc index 1ce47d88d..21a389459 100755 --- a/template_variables/pylintrc +++ b/template_variables/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/template_variables/setup.py b/template_variables/setup.py index 3607ed2f0..58438d93a 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.32.0", + version="1.33.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index 83c2c4b70..ccf98b0ba 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -81,6 +81,8 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.CustomVariable]) res.custom_variable = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code == 403: pass @@ -109,6 +111,8 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.CustomVariable]) res.custom_variable = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code in [403, 404]: pass @@ -137,6 +141,8 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[list[shared.CustomVariable]]) res.custom_variables = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code == 403: pass diff --git a/template_variables/src/epilot/models/errors/sdkerror.py b/template_variables/src/epilot/models/errors/sdkerror.py new file mode 100755 index 000000000..6bb02bbd6 --- /dev/null +++ b/template_variables/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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 1cacc0e7b..db5e7f8f1 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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: diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index ab7fbb6b4..06a901ee4 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -59,6 +59,8 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[list[shared.CategoryResult]]) res.category_results = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -90,6 +92,8 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.VariableContext]) res.variable_context = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -121,6 +125,8 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.ReplaceTemplates200ApplicationJSON]) res.replace_templates_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 @@ -150,6 +156,8 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[list[shared.VariableResult]]) res.variable_results = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res From c684400d04336db8721c38d1569ee892dffc09e8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Jul 2023 02:05:46 +0000 Subject: [PATCH 51/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.61.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/files.gen | 1 + template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/custom_variables.py | 2 +- template_variables/src/epilot/models/errors/__init__.py | 4 ++++ template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/variables.py | 2 +- 8 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 template_variables/src/epilot/models/errors/__init__.py diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index bf9a4a4a9..3a13489be 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -334,4 +334,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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 02:05:30 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/files.gen b/template_variables/files.gen index 13046ebef..58bdc4a9e 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -31,6 +31,7 @@ src/epilot/models/shared/externalcustomvariable.py src/epilot/models/shared/variableresult.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/customvariables/README.md docs/sdks/variables/README.md diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 8be4a606c..929d56d0d 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 58438d93a..34936d176 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.33.0", + version="1.34.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index ccf98b0ba..6c807aa3e 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils -from epilot.models import operations, shared +from epilot.models import errors, operations, shared from typing import Optional class CustomVariables: diff --git a/template_variables/src/epilot/models/errors/__init__.py b/template_variables/src/epilot/models/errors/__init__.py new file mode 100755 index 000000000..cfd848441 --- /dev/null +++ b/template_variables/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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index db5e7f8f1..811fd0f95 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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: diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 06a901ee4..f66980e9e 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils -from epilot.models import operations, shared +from epilot.models import errors, operations, shared from typing import Optional class Variables: From 8bf05ced5c90fd1caab9ea4a0742b13dcdb3f154 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Jul 2023 02:54:18 +0000 Subject: [PATCH 52/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.62.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 3a13489be..66918932b 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -340,4 +340,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:54:00 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 929d56d0d..5b24c0973 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 34936d176..6e76c9dab 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.34.0", + version="1.34.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 811fd0f95..032e42f84 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 b4b0d21241d514be22a6be9689652a7ca11cb155 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Jul 2023 01:35:50 +0000 Subject: [PATCH 53/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.64.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 0 .../models/operations/createcustomvariableresponse.md | 0 .../docs/models/operations/deletecustomvariablerequest.md | 0 .../models/operations/deletecustomvariableresponse.md | 0 .../docs/models/operations/generateqrcoderequest.md | 0 .../docs/models/operations/generateqrcoderesponse.md | 0 .../models/operations/getblueprinttableconfigresponse.md | 0 .../docs/models/operations/getcategorieslang.md | 0 .../docs/models/operations/getcategoriesrequest.md | 0 .../docs/models/operations/getcategoriesresponse.md | 0 .../docs/models/operations/getcustomvariablerequest.md | 0 .../docs/models/operations/getcustomvariableresponse.md | 0 .../docs/models/operations/getcustomvariablesresponse.md | 0 .../models/operations/getvariablecontextrequestbody.md | 0 .../docs/models/operations/getvariablecontextresponse.md | 0 .../operations/replacetemplates200applicationjson.md | 0 .../docs/models/operations/replacetemplatesrequestbody.md | 0 .../docs/models/operations/replacetemplatesresponse.md | 0 .../docs/models/operations/searchvariablesrequestbody.md | 0 .../models/operations/searchvariablesrequestbodylang.md | 0 .../docs/models/operations/searchvariablesresponse.md | 0 .../docs/models/operations/updatecustomvariablerequest.md | 0 .../models/operations/updatecustomvariableresponse.md | 0 template_variables/docs/models/shared/categoryresult.md | 0 template_variables/docs/models/shared/customvariable.md | 0 .../docs/models/shared/customvariableconfig.md | 0 .../docs/models/shared/customvariabletype.md | 0 .../docs/models/shared/externalcustomvariable.md | 0 template_variables/docs/models/shared/security.md | 0 template_variables/docs/models/shared/templatetype.md | 0 template_variables/docs/models/shared/variablecontext.md | 0 .../docs/models/shared/variableparameters.md | 0 .../docs/models/shared/variableparameterscontextdata.md | 0 .../docs/models/shared/variableparameterslanguage.md | 0 template_variables/docs/models/shared/variableresult.md | 0 .../docs/models/shared/variableresulttype.md | 0 template_variables/docs/sdks/customvariables/README.md | 0 template_variables/docs/sdks/epilot/README.md | 0 template_variables/docs/sdks/variables/README.md | 0 template_variables/gen.yaml | 6 +++--- template_variables/pylintrc | 0 template_variables/setup.py | 4 ++-- template_variables/src/epilot/__init__.py | 0 template_variables/src/epilot/custom_variables.py | 0 template_variables/src/epilot/models/__init__.py | 0 template_variables/src/epilot/models/errors/__init__.py | 0 template_variables/src/epilot/models/errors/sdkerror.py | 0 .../src/epilot/models/operations/__init__.py | 0 .../src/epilot/models/operations/createcustomvariable.py | 0 .../src/epilot/models/operations/deletecustomvariable.py | 0 .../src/epilot/models/operations/generateqrcode.py | 0 .../epilot/models/operations/getblueprinttableconfig.py | 0 .../src/epilot/models/operations/getcategories.py | 0 .../src/epilot/models/operations/getcustomvariable.py | 0 .../src/epilot/models/operations/getcustomvariables.py | 0 .../src/epilot/models/operations/getvariablecontext.py | 0 .../src/epilot/models/operations/replacetemplates.py | 0 .../src/epilot/models/operations/searchvariables.py | 0 .../src/epilot/models/operations/updatecustomvariable.py | 0 template_variables/src/epilot/models/shared/__init__.py | 0 .../src/epilot/models/shared/categoryresult.py | 0 .../src/epilot/models/shared/customvariable.py | 0 .../src/epilot/models/shared/externalcustomvariable.py | 0 template_variables/src/epilot/models/shared/security.py | 0 .../src/epilot/models/shared/templatetype.py | 0 .../src/epilot/models/shared/variablecontext.py | 0 .../src/epilot/models/shared/variableparameters.py | 0 .../src/epilot/models/shared/variableresult.py | 0 template_variables/src/epilot/sdk.py | 0 template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/__init__.py | 0 template_variables/src/epilot/utils/retries.py | 0 template_variables/src/epilot/utils/utils.py | 0 template_variables/src/epilot/variables.py | 0 75 files changed, 14 insertions(+), 8 deletions(-) mode change 100755 => 100644 template_variables/USAGE.md mode change 100755 => 100644 template_variables/docs/models/operations/createcustomvariableresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/deletecustomvariablerequest.md mode change 100755 => 100644 template_variables/docs/models/operations/deletecustomvariableresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/generateqrcoderequest.md mode change 100755 => 100644 template_variables/docs/models/operations/generateqrcoderesponse.md mode change 100755 => 100644 template_variables/docs/models/operations/getblueprinttableconfigresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/getcategorieslang.md mode change 100755 => 100644 template_variables/docs/models/operations/getcategoriesrequest.md mode change 100755 => 100644 template_variables/docs/models/operations/getcategoriesresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/getcustomvariablerequest.md mode change 100755 => 100644 template_variables/docs/models/operations/getcustomvariableresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/getcustomvariablesresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/getvariablecontextrequestbody.md mode change 100755 => 100644 template_variables/docs/models/operations/getvariablecontextresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/replacetemplates200applicationjson.md mode change 100755 => 100644 template_variables/docs/models/operations/replacetemplatesrequestbody.md mode change 100755 => 100644 template_variables/docs/models/operations/replacetemplatesresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/searchvariablesrequestbody.md mode change 100755 => 100644 template_variables/docs/models/operations/searchvariablesrequestbodylang.md mode change 100755 => 100644 template_variables/docs/models/operations/searchvariablesresponse.md mode change 100755 => 100644 template_variables/docs/models/operations/updatecustomvariablerequest.md mode change 100755 => 100644 template_variables/docs/models/operations/updatecustomvariableresponse.md mode change 100755 => 100644 template_variables/docs/models/shared/categoryresult.md mode change 100755 => 100644 template_variables/docs/models/shared/customvariable.md mode change 100755 => 100644 template_variables/docs/models/shared/customvariableconfig.md mode change 100755 => 100644 template_variables/docs/models/shared/customvariabletype.md mode change 100755 => 100644 template_variables/docs/models/shared/externalcustomvariable.md mode change 100755 => 100644 template_variables/docs/models/shared/security.md mode change 100755 => 100644 template_variables/docs/models/shared/templatetype.md mode change 100755 => 100644 template_variables/docs/models/shared/variablecontext.md mode change 100755 => 100644 template_variables/docs/models/shared/variableparameters.md mode change 100755 => 100644 template_variables/docs/models/shared/variableparameterscontextdata.md mode change 100755 => 100644 template_variables/docs/models/shared/variableparameterslanguage.md mode change 100755 => 100644 template_variables/docs/models/shared/variableresult.md mode change 100755 => 100644 template_variables/docs/models/shared/variableresulttype.md mode change 100755 => 100644 template_variables/docs/sdks/customvariables/README.md mode change 100755 => 100644 template_variables/docs/sdks/epilot/README.md mode change 100755 => 100644 template_variables/docs/sdks/variables/README.md mode change 100755 => 100644 template_variables/pylintrc mode change 100755 => 100644 template_variables/setup.py mode change 100755 => 100644 template_variables/src/epilot/__init__.py mode change 100755 => 100644 template_variables/src/epilot/custom_variables.py mode change 100755 => 100644 template_variables/src/epilot/models/__init__.py mode change 100755 => 100644 template_variables/src/epilot/models/errors/__init__.py mode change 100755 => 100644 template_variables/src/epilot/models/errors/sdkerror.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/__init__.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/createcustomvariable.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/deletecustomvariable.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/generateqrcode.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/getblueprinttableconfig.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/getcategories.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/getcustomvariable.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/getcustomvariables.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/getvariablecontext.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/replacetemplates.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/searchvariables.py mode change 100755 => 100644 template_variables/src/epilot/models/operations/updatecustomvariable.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/__init__.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/categoryresult.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/customvariable.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/externalcustomvariable.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/security.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/templatetype.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/variablecontext.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/variableparameters.py mode change 100755 => 100644 template_variables/src/epilot/models/shared/variableresult.py mode change 100755 => 100644 template_variables/src/epilot/sdk.py mode change 100755 => 100644 template_variables/src/epilot/sdkconfiguration.py mode change 100755 => 100644 template_variables/src/epilot/utils/__init__.py mode change 100755 => 100644 template_variables/src/epilot/utils/retries.py mode change 100755 => 100644 template_variables/src/epilot/utils/utils.py mode change 100755 => 100644 template_variables/src/epilot/variables.py diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 66918932b..f82b2ab08 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -346,4 +346,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:35:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/createcustomvariableresponse.md b/template_variables/docs/models/operations/createcustomvariableresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/deletecustomvariablerequest.md b/template_variables/docs/models/operations/deletecustomvariablerequest.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/deletecustomvariableresponse.md b/template_variables/docs/models/operations/deletecustomvariableresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/generateqrcoderequest.md b/template_variables/docs/models/operations/generateqrcoderequest.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/generateqrcoderesponse.md b/template_variables/docs/models/operations/generateqrcoderesponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getblueprinttableconfigresponse.md b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getcategorieslang.md b/template_variables/docs/models/operations/getcategorieslang.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getcategoriesrequest.md b/template_variables/docs/models/operations/getcategoriesrequest.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getcustomvariablerequest.md b/template_variables/docs/models/operations/getcustomvariablerequest.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getcustomvariableresponse.md b/template_variables/docs/models/operations/getcustomvariableresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getvariablecontextrequestbody.md b/template_variables/docs/models/operations/getvariablecontextrequestbody.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/getvariablecontextresponse.md b/template_variables/docs/models/operations/getvariablecontextresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/replacetemplates200applicationjson.md b/template_variables/docs/models/operations/replacetemplates200applicationjson.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/replacetemplatesresponse.md b/template_variables/docs/models/operations/replacetemplatesresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/searchvariablesrequestbodylang.md b/template_variables/docs/models/operations/searchvariablesrequestbodylang.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/updatecustomvariablerequest.md b/template_variables/docs/models/operations/updatecustomvariablerequest.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/operations/updatecustomvariableresponse.md b/template_variables/docs/models/operations/updatecustomvariableresponse.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/categoryresult.md b/template_variables/docs/models/shared/categoryresult.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/customvariableconfig.md b/template_variables/docs/models/shared/customvariableconfig.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/customvariabletype.md b/template_variables/docs/models/shared/customvariabletype.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/externalcustomvariable.md b/template_variables/docs/models/shared/externalcustomvariable.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/security.md b/template_variables/docs/models/shared/security.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/templatetype.md b/template_variables/docs/models/shared/templatetype.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/variablecontext.md b/template_variables/docs/models/shared/variablecontext.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/variableparameterscontextdata.md b/template_variables/docs/models/shared/variableparameterscontextdata.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/variableparameterslanguage.md b/template_variables/docs/models/shared/variableparameterslanguage.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/variableresult.md b/template_variables/docs/models/shared/variableresult.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/models/shared/variableresulttype.md b/template_variables/docs/models/shared/variableresulttype.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/sdks/epilot/README.md b/template_variables/docs/sdks/epilot/README.md old mode 100755 new mode 100644 diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md old mode 100755 new mode 100644 diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 5b24c0973..0c4e560e2 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/pylintrc b/template_variables/pylintrc old mode 100755 new mode 100644 diff --git a/template_variables/setup.py b/template_variables/setup.py old mode 100755 new mode 100644 index 6e76c9dab..aa647c59f --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - 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/template_variables/src/epilot/__init__.py b/template_variables/src/epilot/__init__.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/__init__.py b/template_variables/src/epilot/models/__init__.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/errors/__init__.py b/template_variables/src/epilot/models/errors/__init__.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/errors/sdkerror.py b/template_variables/src/epilot/models/errors/sdkerror.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/__init__.py b/template_variables/src/epilot/models/operations/__init__.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/__init__.py b/template_variables/src/epilot/models/shared/__init__.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/categoryresult.py b/template_variables/src/epilot/models/shared/categoryresult.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/externalcustomvariable.py b/template_variables/src/epilot/models/shared/externalcustomvariable.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/security.py b/template_variables/src/epilot/models/shared/security.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/templatetype.py b/template_variables/src/epilot/models/shared/templatetype.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py old mode 100755 new mode 100644 index 032e42f84..b525c22ff --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/__init__.py b/template_variables/src/epilot/utils/__init__.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/utils/retries.py b/template_variables/src/epilot/utils/retries.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py old mode 100755 new mode 100644 diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py old mode 100755 new mode 100644 From 9133de6395041ec1f4cc4ed253125b2fddafa7ef Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Jul 2023 01:39:31 +0000 Subject: [PATCH 54/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.0 --- template_variables/RELEASES.md | 8 +++++++- template_variables/USAGE.md | 0 .../models/operations/createcustomvariableresponse.md | 0 .../docs/models/operations/deletecustomvariablerequest.md | 0 .../models/operations/deletecustomvariableresponse.md | 0 .../docs/models/operations/generateqrcoderequest.md | 0 .../docs/models/operations/generateqrcoderesponse.md | 0 .../models/operations/getblueprinttableconfigresponse.md | 0 .../docs/models/operations/getcategorieslang.md | 0 .../docs/models/operations/getcategoriesrequest.md | 0 .../docs/models/operations/getcategoriesresponse.md | 0 .../docs/models/operations/getcustomvariablerequest.md | 0 .../docs/models/operations/getcustomvariableresponse.md | 0 .../docs/models/operations/getcustomvariablesresponse.md | 0 .../models/operations/getvariablecontextrequestbody.md | 0 .../docs/models/operations/getvariablecontextresponse.md | 0 .../operations/replacetemplates200applicationjson.md | 0 .../docs/models/operations/replacetemplatesrequestbody.md | 0 .../docs/models/operations/replacetemplatesresponse.md | 0 .../docs/models/operations/searchvariablesrequestbody.md | 0 .../models/operations/searchvariablesrequestbodylang.md | 0 .../docs/models/operations/searchvariablesresponse.md | 0 .../docs/models/operations/updatecustomvariablerequest.md | 0 .../models/operations/updatecustomvariableresponse.md | 0 template_variables/docs/models/shared/categoryresult.md | 0 template_variables/docs/models/shared/customvariable.md | 0 .../docs/models/shared/customvariableconfig.md | 0 .../docs/models/shared/customvariabletype.md | 0 .../docs/models/shared/externalcustomvariable.md | 0 template_variables/docs/models/shared/security.md | 0 template_variables/docs/models/shared/templatetype.md | 0 template_variables/docs/models/shared/variablecontext.md | 0 .../docs/models/shared/variableparameters.md | 0 .../docs/models/shared/variableparameterscontextdata.md | 0 .../docs/models/shared/variableparameterslanguage.md | 0 template_variables/docs/models/shared/variableresult.md | 0 .../docs/models/shared/variableresulttype.md | 0 template_variables/docs/sdks/customvariables/README.md | 0 template_variables/docs/sdks/epilot/README.md | 0 template_variables/docs/sdks/variables/README.md | 0 template_variables/gen.yaml | 6 +++--- template_variables/pylintrc | 0 template_variables/setup.py | 2 +- template_variables/src/epilot/__init__.py | 0 template_variables/src/epilot/custom_variables.py | 0 template_variables/src/epilot/models/__init__.py | 0 template_variables/src/epilot/models/errors/__init__.py | 0 template_variables/src/epilot/models/errors/sdkerror.py | 0 .../src/epilot/models/operations/__init__.py | 0 .../src/epilot/models/operations/createcustomvariable.py | 0 .../src/epilot/models/operations/deletecustomvariable.py | 0 .../src/epilot/models/operations/generateqrcode.py | 0 .../epilot/models/operations/getblueprinttableconfig.py | 0 .../src/epilot/models/operations/getcategories.py | 0 .../src/epilot/models/operations/getcustomvariable.py | 0 .../src/epilot/models/operations/getcustomvariables.py | 0 .../src/epilot/models/operations/getvariablecontext.py | 0 .../src/epilot/models/operations/replacetemplates.py | 0 .../src/epilot/models/operations/searchvariables.py | 0 .../src/epilot/models/operations/updatecustomvariable.py | 0 template_variables/src/epilot/models/shared/__init__.py | 0 .../src/epilot/models/shared/categoryresult.py | 0 .../src/epilot/models/shared/customvariable.py | 0 .../src/epilot/models/shared/externalcustomvariable.py | 0 template_variables/src/epilot/models/shared/security.py | 0 .../src/epilot/models/shared/templatetype.py | 0 .../src/epilot/models/shared/variablecontext.py | 0 .../src/epilot/models/shared/variableparameters.py | 0 .../src/epilot/models/shared/variableresult.py | 0 template_variables/src/epilot/sdk.py | 0 template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/__init__.py | 0 template_variables/src/epilot/utils/retries.py | 0 template_variables/src/epilot/utils/utils.py | 0 template_variables/src/epilot/variables.py | 0 75 files changed, 13 insertions(+), 7 deletions(-) mode change 100644 => 100755 template_variables/USAGE.md mode change 100644 => 100755 template_variables/docs/models/operations/createcustomvariableresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/deletecustomvariablerequest.md mode change 100644 => 100755 template_variables/docs/models/operations/deletecustomvariableresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/generateqrcoderequest.md mode change 100644 => 100755 template_variables/docs/models/operations/generateqrcoderesponse.md mode change 100644 => 100755 template_variables/docs/models/operations/getblueprinttableconfigresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/getcategorieslang.md mode change 100644 => 100755 template_variables/docs/models/operations/getcategoriesrequest.md mode change 100644 => 100755 template_variables/docs/models/operations/getcategoriesresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/getcustomvariablerequest.md mode change 100644 => 100755 template_variables/docs/models/operations/getcustomvariableresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/getcustomvariablesresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/getvariablecontextrequestbody.md mode change 100644 => 100755 template_variables/docs/models/operations/getvariablecontextresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/replacetemplates200applicationjson.md mode change 100644 => 100755 template_variables/docs/models/operations/replacetemplatesrequestbody.md mode change 100644 => 100755 template_variables/docs/models/operations/replacetemplatesresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/searchvariablesrequestbody.md mode change 100644 => 100755 template_variables/docs/models/operations/searchvariablesrequestbodylang.md mode change 100644 => 100755 template_variables/docs/models/operations/searchvariablesresponse.md mode change 100644 => 100755 template_variables/docs/models/operations/updatecustomvariablerequest.md mode change 100644 => 100755 template_variables/docs/models/operations/updatecustomvariableresponse.md mode change 100644 => 100755 template_variables/docs/models/shared/categoryresult.md mode change 100644 => 100755 template_variables/docs/models/shared/customvariable.md mode change 100644 => 100755 template_variables/docs/models/shared/customvariableconfig.md mode change 100644 => 100755 template_variables/docs/models/shared/customvariabletype.md mode change 100644 => 100755 template_variables/docs/models/shared/externalcustomvariable.md mode change 100644 => 100755 template_variables/docs/models/shared/security.md mode change 100644 => 100755 template_variables/docs/models/shared/templatetype.md mode change 100644 => 100755 template_variables/docs/models/shared/variablecontext.md mode change 100644 => 100755 template_variables/docs/models/shared/variableparameters.md mode change 100644 => 100755 template_variables/docs/models/shared/variableparameterscontextdata.md mode change 100644 => 100755 template_variables/docs/models/shared/variableparameterslanguage.md mode change 100644 => 100755 template_variables/docs/models/shared/variableresult.md mode change 100644 => 100755 template_variables/docs/models/shared/variableresulttype.md mode change 100644 => 100755 template_variables/docs/sdks/customvariables/README.md mode change 100644 => 100755 template_variables/docs/sdks/epilot/README.md mode change 100644 => 100755 template_variables/docs/sdks/variables/README.md mode change 100644 => 100755 template_variables/pylintrc mode change 100644 => 100755 template_variables/setup.py mode change 100644 => 100755 template_variables/src/epilot/__init__.py mode change 100644 => 100755 template_variables/src/epilot/custom_variables.py mode change 100644 => 100755 template_variables/src/epilot/models/__init__.py mode change 100644 => 100755 template_variables/src/epilot/models/errors/__init__.py mode change 100644 => 100755 template_variables/src/epilot/models/errors/sdkerror.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/__init__.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/createcustomvariable.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/deletecustomvariable.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/generateqrcode.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/getblueprinttableconfig.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/getcategories.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/getcustomvariable.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/getcustomvariables.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/getvariablecontext.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/replacetemplates.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/searchvariables.py mode change 100644 => 100755 template_variables/src/epilot/models/operations/updatecustomvariable.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/__init__.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/categoryresult.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/customvariable.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/externalcustomvariable.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/security.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/templatetype.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/variablecontext.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/variableparameters.py mode change 100644 => 100755 template_variables/src/epilot/models/shared/variableresult.py mode change 100644 => 100755 template_variables/src/epilot/sdk.py mode change 100644 => 100755 template_variables/src/epilot/sdkconfiguration.py mode change 100644 => 100755 template_variables/src/epilot/utils/__init__.py mode change 100644 => 100755 template_variables/src/epilot/utils/retries.py mode change 100644 => 100755 template_variables/src/epilot/utils/utils.py mode change 100644 => 100755 template_variables/src/epilot/variables.py diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index f82b2ab08..67ee7fef7 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -352,4 +352,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:39:14 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/createcustomvariableresponse.md b/template_variables/docs/models/operations/createcustomvariableresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/deletecustomvariablerequest.md b/template_variables/docs/models/operations/deletecustomvariablerequest.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/deletecustomvariableresponse.md b/template_variables/docs/models/operations/deletecustomvariableresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/generateqrcoderequest.md b/template_variables/docs/models/operations/generateqrcoderequest.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/generateqrcoderesponse.md b/template_variables/docs/models/operations/generateqrcoderesponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getblueprinttableconfigresponse.md b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getcategorieslang.md b/template_variables/docs/models/operations/getcategorieslang.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getcategoriesrequest.md b/template_variables/docs/models/operations/getcategoriesrequest.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getcustomvariablerequest.md b/template_variables/docs/models/operations/getcustomvariablerequest.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getcustomvariableresponse.md b/template_variables/docs/models/operations/getcustomvariableresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getvariablecontextrequestbody.md b/template_variables/docs/models/operations/getvariablecontextrequestbody.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/getvariablecontextresponse.md b/template_variables/docs/models/operations/getvariablecontextresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/replacetemplates200applicationjson.md b/template_variables/docs/models/operations/replacetemplates200applicationjson.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/replacetemplatesresponse.md b/template_variables/docs/models/operations/replacetemplatesresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/searchvariablesrequestbodylang.md b/template_variables/docs/models/operations/searchvariablesrequestbodylang.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/updatecustomvariablerequest.md b/template_variables/docs/models/operations/updatecustomvariablerequest.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/operations/updatecustomvariableresponse.md b/template_variables/docs/models/operations/updatecustomvariableresponse.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/categoryresult.md b/template_variables/docs/models/shared/categoryresult.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/customvariableconfig.md b/template_variables/docs/models/shared/customvariableconfig.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/customvariabletype.md b/template_variables/docs/models/shared/customvariabletype.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/externalcustomvariable.md b/template_variables/docs/models/shared/externalcustomvariable.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/security.md b/template_variables/docs/models/shared/security.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/templatetype.md b/template_variables/docs/models/shared/templatetype.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/variablecontext.md b/template_variables/docs/models/shared/variablecontext.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/variableparameterscontextdata.md b/template_variables/docs/models/shared/variableparameterscontextdata.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/variableparameterslanguage.md b/template_variables/docs/models/shared/variableparameterslanguage.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/variableresult.md b/template_variables/docs/models/shared/variableresult.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/models/shared/variableresulttype.md b/template_variables/docs/models/shared/variableresulttype.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/sdks/epilot/README.md b/template_variables/docs/sdks/epilot/README.md old mode 100644 new mode 100755 diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md old mode 100644 new mode 100755 diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0c4e560e2..ea37958fe 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/pylintrc b/template_variables/pylintrc old mode 100644 new mode 100755 diff --git a/template_variables/setup.py b/template_variables/setup.py old mode 100644 new mode 100755 index aa647c59f..f30b4ee9d --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.35.0", + version="1.36.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/__init__.py b/template_variables/src/epilot/__init__.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/__init__.py b/template_variables/src/epilot/models/__init__.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/errors/__init__.py b/template_variables/src/epilot/models/errors/__init__.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/errors/sdkerror.py b/template_variables/src/epilot/models/errors/sdkerror.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/__init__.py b/template_variables/src/epilot/models/operations/__init__.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/__init__.py b/template_variables/src/epilot/models/shared/__init__.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/categoryresult.py b/template_variables/src/epilot/models/shared/categoryresult.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/externalcustomvariable.py b/template_variables/src/epilot/models/shared/externalcustomvariable.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/security.py b/template_variables/src/epilot/models/shared/security.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/templatetype.py b/template_variables/src/epilot/models/shared/templatetype.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py old mode 100644 new mode 100755 index b525c22ff..ee386298c --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/__init__.py b/template_variables/src/epilot/utils/__init__.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/utils/retries.py b/template_variables/src/epilot/utils/retries.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py old mode 100644 new mode 100755 diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py old mode 100644 new mode 100755 From 346149f1301e87d6a03d570570b555f4cae7f044 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Jul 2023 01:21:42 +0000 Subject: [PATCH 55/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 67ee7fef7..9bc6a6a8a 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -358,4 +358,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:21:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index ea37958fe..0f071c678 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index f30b4ee9d..caac49096 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.36.0", + version="1.36.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index ee386298c..37a834d2d 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 106f2a17511fd1ec25b8db2640818815d57dbc6f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Jul 2023 01:22:47 +0000 Subject: [PATCH 56/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.2 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 9bc6a6a8a..b2b499eee 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -364,4 +364,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:22:34 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0f071c678..8b9cd69c1 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index caac49096..da961afc6 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.36.1", + version="1.37.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 37a834d2d..13d12747b 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 7e821c53ee589ba9418d86fa70dab1bfb633c0a9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Aug 2023 01:41:36 +0000 Subject: [PATCH 57/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.66.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index b2b499eee..bf39d3055 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -370,4 +370,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:41:19 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 8b9cd69c1..ce7998295 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index da961afc6..7648b57fe 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.37.0", + version="1.37.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 13d12747b..cf8a4f5ce 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 95784dbcdd75427d801a91512f984bf3e06e73cc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Aug 2023 01:24:29 +0000 Subject: [PATCH 58/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index bf39d3055..e504ec9b5 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -376,4 +376,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:11 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index ce7998295..cab0288ad 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 7648b57fe..7a6804275 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.37.1", + version="1.38.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index cf8a4f5ce..c8f1be49a 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 74b1ec7a1247f7bd7977997dafa4bd964bf910bf Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 4 Aug 2023 01:25:11 +0000 Subject: [PATCH 59/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.3 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 6 +++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/utils.py | 5 ++++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index e504ec9b5..5b28ec297 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -382,4 +382,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:24:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index cab0288ad..69bab49b0 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 7a6804275..d88dc9157 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.38.0", + version="1.39.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index c8f1be49a..62d32a90e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 6b39ecf74..3456af651 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 994263b45ce331eee3c7ae6994529609c49753f8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 8 Aug 2023 01:22:24 +0000 Subject: [PATCH 60/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.69.1 --- template_variables/RELEASES.md | 8 +++++++- template_variables/gen.yaml | 11 ++++++++--- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 5b28ec297..e2417849e 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -388,4 +388,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:22:08 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 69bab49b0..43a6305d8 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,14 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index d88dc9157..76865980b 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.39.0", + version="1.40.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 62d32a90e..e9a203bcd 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 eb68a19c599f590ea7319467ddf5405997c4016c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 15 Aug 2023 01:11:58 +0000 Subject: [PATCH 61/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.72.0 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index e2417849e..17e32e5e9 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -394,4 +394,12 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.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:11:39 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.0] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 43a6305d8..0bb7f5c35 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index 76865980b..fa259c469 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.40.0", + version="1.41.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index e9a203bcd..c819f0ee0 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 d9f8e5b96d8b30f4cc188c66f6734d3013d6b4d8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 19 Aug 2023 01:09:34 +0000 Subject: [PATCH 62/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.3 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/utils.py | 4 ++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 17e32e5e9..7867d404c 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -402,4 +402,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.0] template_variables \ No newline at end of file +- [python v1.41.0] template_variables + +## 2023-08-19 01:09:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.1] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0bb7f5c35..b446043e4 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 14e2961bd134888671409e73ce503882 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/template_variables/setup.py b/template_variables/setup.py index fa259c469..ebafbc474 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.41.0", + version="1.41.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index c819f0ee0..cf25ef27e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 3456af651..ea9792d0d 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 d1fe279983fe2b66415b6e796e04a7114925b107 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 24 Aug 2023 01:11:39 +0000 Subject: [PATCH 63/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.9 --- template_variables/RELEASES.md | 10 +++++++++- .../docs/models/shared/variableparameters.md | 3 ++- template_variables/docs/sdks/variables/README.md | 2 ++ template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- .../src/epilot/models/shared/variableparameters.py | 2 ++ template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 7 files changed, 22 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 7867d404c..99b625a77 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -410,4 +410,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.1] template_variables \ No newline at end of file +- [python v1.41.1] template_variables + +## 2023-08-24 01:11:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.74.9 (2.86.10) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.2] template_variables \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md index 5410f0685..378256e02 100755 --- a/template_variables/docs/models/shared/variableparameters.md +++ b/template_variables/docs/models/shared/variableparameters.md @@ -13,4 +13,5 @@ | `template_name` | *Optional[str]* | :heavy_minus_sign: | The name of email template | | | `template_tags` | list[*str*] | :heavy_minus_sign: | The tags of email template | | | `template_type` | [TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | -| `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | \ No newline at end of file +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | +| `user_org_id` | *Optional[str]* | :heavy_minus_sign: | Organization ID of the user | 729224 | \ No newline at end of file diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index 5b916bd65..e08d562ad 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -128,6 +128,7 @@ req = operations.GetVariableContextRequestBody( ], template_type=shared.TemplateType.EMAIL, user_id='50001', + user_org_id='729224', ), ) @@ -197,6 +198,7 @@ req = operations.ReplaceTemplatesRequestBody( ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', + user_org_id='729224', ), ) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b446043e4..b71034ac5 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -1,9 +1,9 @@ configVersion: 1.0.0 management: - docChecksum: 14e2961bd134888671409e73ce503882 + docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 docVersion: 1.0.0 - speakeasyVersion: 1.74.3 - generationVersion: 2.86.6 + speakeasyVersion: 1.74.9 + generationVersion: 2.86.10 generation: sdkClassName: epilot singleTagPerOp: false @@ -14,7 +14,7 @@ features: 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/template_variables/setup.py b/template_variables/setup.py index ebafbc474..774cc69a8 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.41.1", + version="1.41.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index d4d76961e..c502ab261 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -42,5 +42,7 @@ class VariableParameters: r"""The tags of email template""" user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id'), 'exclude': lambda f: f is None }}) r"""User ID""" + user_org_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_org_id'), 'exclude': lambda f: f is None }}) + r"""Organization ID of the user""" diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index cf25ef27e..d4dfc0e99 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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.86.10' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 0dbbe6adecba8e0b5bf9886eeaefd3552379caad Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 25 Aug 2023 01:13:16 +0000 Subject: [PATCH 64/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.11 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 99b625a77..cf5f2539d 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -418,4 +418,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.74.9 (2.86.10) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.2] template_variables \ No newline at end of file +- [python v1.41.2] template_variables + +## 2023-08-25 01:13:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.3] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b71034ac5..679e8c2e7 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 docVersion: 1.0.0 - speakeasyVersion: 1.74.9 - generationVersion: 2.86.10 + 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.2 + version: 1.41.3 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/template_variables/setup.py b/template_variables/setup.py index 774cc69a8..2ba059273 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.41.2", + version="1.41.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index d4dfc0e99..8b4e26f2e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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.86.10' + sdk_version: str = '1.41.3' + gen_version: str = '2.87.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 103dc1d277585954fb73f4b0b075b980bd23f6c7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 26 Aug 2023 01:10:19 +0000 Subject: [PATCH 65/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.16 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index cf5f2539d..1230c621c 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -426,4 +426,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.3] template_variables \ No newline at end of file +- [python v1.41.3] template_variables + +## 2023-08-26 01:10:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.0] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 679e8c2e7..04a845da9 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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.3 + version: 1.42.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/template_variables/setup.py b/template_variables/setup.py index 2ba059273..b4532c073 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.41.3", + version="1.42.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 8b4e26f2e..271c6c213 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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.3' - 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 be5effd211e320566d786d1caaf98c18bdce4ff4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 29 Aug 2023 01:13:48 +0000 Subject: [PATCH 66/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.17 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/pylintrc | 2 +- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 1230c621c..a2d23899c 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -434,4 +434,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.0] template_variables \ No newline at end of file +- [python v1.42.0] template_variables + +## 2023-08-29 01:13:32 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.1] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 04a845da9..3a6b389e1 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/pylintrc b/template_variables/pylintrc index 21a389459..ab6495dd6 100755 --- a/template_variables/pylintrc +++ b/template_variables/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/template_variables/setup.py b/template_variables/setup.py index b4532c073..76b7889da 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.42.0", + version="1.42.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 271c6c213..605a9762a 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 ea2f941cc12bf05cf6d84b837c315a68ea555450 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 31 Aug 2023 01:13:54 +0000 Subject: [PATCH 67/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.76.1 --- template_variables/.gitattributes | 2 ++ template_variables/RELEASES.md | 10 +++++++++- template_variables/files.gen | 3 ++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 template_variables/.gitattributes diff --git a/template_variables/.gitattributes b/template_variables/.gitattributes new file mode 100755 index 000000000..4d75d5900 --- /dev/null +++ b/template_variables/.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/template_variables/RELEASES.md b/template_variables/RELEASES.md index a2d23899c..a6cef1e6a 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -442,4 +442,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.1] template_variables \ No newline at end of file +- [python v1.42.1] template_variables + +## 2023-08-31 01:13:39 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.0] template_variables \ No newline at end of file diff --git a/template_variables/files.gen b/template_variables/files.gen index 58bdc4a9e..8eb49e30f 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -70,4 +70,5 @@ docs/models/shared/templatetype.md docs/models/shared/externalcustomvariable.md docs/models/shared/variableresulttype.md docs/models/shared/variableresult.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/template_variables/gen.yaml b/template_variables/gen.yaml index 3a6b389e1..2531f3f9e 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 76b7889da..aa6429f0f 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.42.1", + version="1.43.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 605a9762a..0833dc8de 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 826f838f7e268323c8746175a84ff7782d0e5500 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 1 Sep 2023 01:18:17 +0000 Subject: [PATCH 68/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.0 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index a6cef1e6a..ddca792bd 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -450,4 +450,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.0] template_variables \ No newline at end of file +- [python v1.43.0] template_variables + +## 2023-09-01 01:18:03 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.0] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 2531f3f9e..ff9080c05 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index aa6429f0f..9ba7fa884 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.43.0", + version="1.44.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 0833dc8de..f7e807f96 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 8dbb17f1706a1a4747d34d04698cf67ae60aae75 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 2 Sep 2023 01:11:03 +0000 Subject: [PATCH 69/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.2 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index ddca792bd..b0e0a3da3 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -458,4 +458,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.0] template_variables \ No newline at end of file +- [python v1.44.0] template_variables + +## 2023-09-02 01:10:49 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.1] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index ff9080c05..b52e11fa4 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 9ba7fa884..c8cb03d69 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.44.0", + version="1.44.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index f7e807f96..b5947bbfc 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 5abbf26751e09af4e36f0fcc32cd14cac47f9b3c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 5 Sep 2023 01:12:12 +0000 Subject: [PATCH 70/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.78.3 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- .../src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/utils.py | 19 +++++++++++-------- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index b0e0a3da3..a015d1324 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -466,4 +466,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.1] template_variables \ No newline at end of file +- [python v1.44.1] template_variables + +## 2023-09-05 01:11:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.2] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b52e11fa4..ef4665ea1 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index c8cb03d69..806ffbcd9 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.44.1", + version="1.44.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index b5947bbfc..116424462 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index ea9792d0d..c91b0c049 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 8e9a1779950eccfc77e67bcb749b3c5a51475b90 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 12 Sep 2023 01:12:03 +0000 Subject: [PATCH 71/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.82.5 --- template_variables/README.md | 4 +-- template_variables/RELEASES.md | 10 +++++- template_variables/USAGE.md | 4 +-- .../docs/models/shared/customvariable.md | 2 -- .../docs/models/shared/variablecontext.md | 2 -- .../docs/sdks/customvariables/README.md | 13 +++----- .../docs/sdks/variables/README.md | 25 +++++--------- template_variables/gen.yaml | 8 ++--- template_variables/setup.py | 2 +- .../epilot/models/shared/customvariable.py | 1 - .../epilot/models/shared/variablecontext.py | 1 - template_variables/src/epilot/sdk.py | 9 +++-- .../src/epilot/sdkconfiguration.py | 7 ++-- template_variables/src/epilot/utils/utils.py | 33 ++++++++++++++++++- 14 files changed, 72 insertions(+), 49 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index c1dbeb8b9..ed602a3a8 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -28,9 +28,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'provident', - 'distinctio', - 'quibusdam', + 'corrupti', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index a015d1324..a9fcb97af 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -474,4 +474,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.2] template_variables \ No newline at end of file +- [python v1.44.2] template_variables + +## 2023-09-12 01:11:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.3] template_variables \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 2a0aa7c77..6da64a63a 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -17,9 +17,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'provident', - 'distinctio', - 'quibusdam', + 'corrupti', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', diff --git a/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md index 81c5ce4fb..95692fdad 100755 --- a/template_variables/docs/models/shared/customvariable.md +++ b/template_variables/docs/models/shared/customvariable.md @@ -1,7 +1,5 @@ # CustomVariable -Success - ## Fields diff --git a/template_variables/docs/models/shared/variablecontext.md b/template_variables/docs/models/shared/variablecontext.md index ddcb6e783..dd46173f8 100755 --- a/template_variables/docs/models/shared/variablecontext.md +++ b/template_variables/docs/models/shared/variablecontext.md @@ -1,7 +1,5 @@ # VariableContext -ok - ## Fields diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index 583bb2f0e..df892fef4 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -31,10 +31,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'corrupti', - 'illum', - 'vel', - 'error', + 'distinctio', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -186,7 +183,7 @@ s = epilot.Epilot( ) req = operations.DeleteCustomVariableRequest( - id='674e0f46-7cc8-4796-ad15-1a05dfc2ddf7', + id='9d8d69a6-74e0-4f46-bcc8-796ed151a05d', ) res = s.custom_variables.delete_custom_variable(req) @@ -253,7 +250,7 @@ s = epilot.Epilot( ) req = operations.GetCustomVariableRequest( - id='cc78ca1b-a928-4fc8-9674-2cb739205929', + id='fc2ddf7c-c78c-4a1b-a928-fc816742cb73', ) res = s.custom_variables.get_custom_variable(req) @@ -326,7 +323,7 @@ req = operations.UpdateCustomVariableRequest( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'natus', + 'excepturi', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -442,7 +439,7 @@ req = operations.UpdateCustomVariableRequest( updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ), - id='fea7596e-b10f-4aaa-a352-c5955907aff1', + id='05929396-fea7-4596-ab10-faaa2352c595', ) res = s.custom_variables.update_custom_variable(req) diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index e08d562ad..c87ea9c79 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -29,7 +29,7 @@ s = epilot.Epilot( ) req = operations.GenerateQRcodeRequest( - qrdata='mollitia', + qrdata='minima', ) res = s.variables.generate_q_rcode(req) @@ -119,14 +119,11 @@ req = operations.GetVariableContextRequestBody( ], language=shared.VariableParametersLanguage.DE, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='consequuntur', + template_name='accusantium', template_tags=[ - 'mollitia', - 'occaecati', - 'numquam', - 'commodi', + 'iure', ], - template_type=shared.TemplateType.EMAIL, + template_type=shared.TemplateType.DOCUMENT, user_id='50001', user_org_id='729224', ), @@ -173,10 +170,6 @@ req = operations.ReplaceTemplatesRequestBody( inputs=[ 'Hello, {{contact.first_name}}! - {{{brand.signature}}} - ', - 'Hello, {{contact.first_name}}! - {{{brand.signature}}} ', ], @@ -191,10 +184,9 @@ req = operations.ReplaceTemplatesRequestBody( ], language=shared.VariableParametersLanguage.DE, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='quia', + template_name='sapiente', template_tags=[ - 'vitae', - 'laborum', + 'architecto', ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', @@ -239,12 +231,11 @@ s = epilot.Epilot( req = operations.SearchVariablesRequestBody( entity_schemas=[ 'contact', - 'contact', ], - from_=138183, + from_=208876, lang=operations.SearchVariablesRequestBodyLang.DE, query='logo', - size=196582, + size=161309, template_type=shared.TemplateType.DOCUMENT, ) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index ef4665ea1..3101b4b9b 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 806ffbcd9..78d8831ac 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.44.2", + version="1.44.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index c7eaaab6c..7a77e024b 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -25,7 +25,6 @@ class CustomVariableType(str, Enum): @dataclasses.dataclass class CustomVariable: - r"""Success""" config: Optional[CustomVariableConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('config'), 'exclude': lambda f: f is None }}) r"""Variable configuration""" created_at: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('created_at'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py index caf6b3517..ad784a632 100755 --- a/template_variables/src/epilot/models/shared/variablecontext.py +++ b/template_variables/src/epilot/models/shared/variablecontext.py @@ -11,7 +11,6 @@ @dataclasses.dataclass class VariableContext: - r"""ok""" brand: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) contact: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) main: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 41f5480db..ac6f93fcf 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -20,7 +20,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. @@ -33,7 +34,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() @@ -44,7 +47,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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 116424462..63e90fb5d 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/src/epilot/sdkconfiguration.py @@ -3,6 +3,8 @@ import requests from dataclasses import dataclass +from .utils.retries import RetryConfig + SERVERS = [ 'https://template-variables-api.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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index c91b0c049..05eafba6c 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 802611348a536fe20c8173d061ce8503b6cc0631 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 16 Sep 2023 01:12:20 +0000 Subject: [PATCH 72/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.86.0 --- template_variables/README.md | 4 ++-- template_variables/RELEASES.md | 10 +++++++++- template_variables/docs/sdks/customvariables/README.md | 2 +- template_variables/docs/sdks/variables/README.md | 2 +- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 7 files changed, 20 insertions(+), 12 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index ed602a3a8..13c7ca412 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -156,7 +156,7 @@ if res.status_code == 200: ## Available Resources and Operations -### [custom_variables](docs/sdks/customvariables/README.md) +### [CustomVariables](docs/sdks/customvariables/README.md) * [create_custom_variable](docs/sdks/customvariables/README.md#create_custom_variable) - Create custom variable * [delete_custom_variable](docs/sdks/customvariables/README.md#delete_custom_variable) - Delete custom variable @@ -165,7 +165,7 @@ if res.status_code == 200: * [get_custom_variables](docs/sdks/customvariables/README.md#get_custom_variables) - Get custom variables * [update_custom_variable](docs/sdks/customvariables/README.md#update_custom_variable) - Update custom variable -### [variables](docs/sdks/variables/README.md) +### [Variables](docs/sdks/variables/README.md) * [generate_q_rcode](docs/sdks/variables/README.md#generate_q_rcode) - generateQRcode * [get_categories](docs/sdks/variables/README.md#get_categories) - getCategories diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index a9fcb97af..b42790bce 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -482,4 +482,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.3] template_variables \ No newline at end of file +- [python v1.44.3] template_variables + +## 2023-09-16 01:12:04 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.4] template_variables \ No newline at end of file diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index df892fef4..a35fc683a 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -1,4 +1,4 @@ -# custom_variables +# CustomVariables ### Available Operations diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index c87ea9c79..6c47c1e90 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -1,4 +1,4 @@ -# variables +# Variables ## Overview diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 3101b4b9b..c90225822 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 78d8831ac..87700774a 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.44.3", + version="1.44.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 63e90fb5d..602016237 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 f23b6da786c03c15ba96910d47a12c7679d9aa92 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 20 Sep 2023 01:14:20 +0000 Subject: [PATCH 73/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.88.0 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index b42790bce..21d3cff5c 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -490,4 +490,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.4] template_variables \ No newline at end of file +- [python v1.44.4] template_variables + +## 2023-09-20 01:14:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.5] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index c90225822..8a8fbe237 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 87700774a..cdf77a885 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.44.4", + version="1.44.5", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 602016237..a2aabf52f 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 08d75210f09d1be186ce91086011d7e1ec200d45 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 26 Sep 2023 01:15:23 +0000 Subject: [PATCH 74/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.0 --- template_variables/README.md | 30 +++++++++++++++++-- template_variables/RELEASES.md | 10 ++++++- .../createcustomvariableresponse.md | 6 ++-- .../deletecustomvariableresponse.md | 6 ++-- .../operations/generateqrcoderesponse.md | 6 ++-- .../getblueprinttableconfigresponse.md | 6 ++-- .../operations/getcategoriesresponse.md | 6 ++-- .../operations/getcustomvariableresponse.md | 6 ++-- .../operations/getcustomvariablesresponse.md | 6 ++-- .../operations/getvariablecontextresponse.md | 6 ++-- .../operations/replacetemplatesresponse.md | 6 ++-- .../operations/searchvariablesresponse.md | 6 ++-- .../updatecustomvariableresponse.md | 6 ++-- .../docs/sdks/customvariables/README.md | 10 +++---- .../docs/sdks/variables/README.md | 18 +++++------ template_variables/files.gen | 6 ++-- template_variables/gen.yaml | 8 ++--- template_variables/setup.py | 2 +- .../models/operations/createcustomvariable.py | 3 ++ .../models/operations/deletecustomvariable.py | 3 ++ .../models/operations/generateqrcode.py | 3 ++ .../operations/getblueprinttableconfig.py | 3 ++ .../epilot/models/operations/getcategories.py | 3 ++ .../models/operations/getcustomvariable.py | 3 ++ .../models/operations/getcustomvariables.py | 3 ++ .../models/operations/getvariablecontext.py | 3 ++ .../models/operations/replacetemplates.py | 3 ++ .../models/operations/searchvariables.py | 3 ++ .../models/operations/updatecustomvariable.py | 3 ++ .../src/epilot/sdkconfiguration.py | 4 +-- 30 files changed, 126 insertions(+), 61 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 13c7ca412..4083d005c 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -10,8 +10,6 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=templa ## SDK Example Usage - - ```python import epilot from epilot.models import shared @@ -28,7 +26,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'corrupti', + 'distinctio', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -174,4 +172,30 @@ if res.status_code == 200: * [search_variables](docs/sdks/variables/README.md#search_variables) - searchVariables + + + + + + + + + + + +# 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/template_variables/RELEASES.md b/template_variables/RELEASES.md index 21d3cff5c..f754f420b 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -498,4 +498,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.5] template_variables \ No newline at end of file +- [python v1.44.5] template_variables + +## 2023-09-26 01:15:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.0] template_variables \ No newline at end of file diff --git a/template_variables/docs/models/operations/createcustomvariableresponse.md b/template_variables/docs/models/operations/createcustomvariableresponse.md index e6555be0f..e299c214b 100755 --- a/template_variables/docs/models/operations/createcustomvariableresponse.md +++ b/template_variables/docs/models/operations/createcustomvariableresponse.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/template_variables/docs/models/operations/deletecustomvariableresponse.md b/template_variables/docs/models/operations/deletecustomvariableresponse.md index 9505f5882..c2430b586 100755 --- a/template_variables/docs/models/operations/deletecustomvariableresponse.md +++ b/template_variables/docs/models/operations/deletecustomvariableresponse.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/template_variables/docs/models/operations/generateqrcoderesponse.md b/template_variables/docs/models/operations/generateqrcoderesponse.md index 44254ae53..9777a0b8d 100755 --- a/template_variables/docs/models/operations/generateqrcoderesponse.md +++ b/template_variables/docs/models/operations/generateqrcoderesponse.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/template_variables/docs/models/operations/getblueprinttableconfigresponse.md b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md index 80c93e078..74ceda0ed 100755 --- a/template_variables/docs/models/operations/getblueprinttableconfigresponse.md +++ b/template_variables/docs/models/operations/getblueprinttableconfigresponse.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 | | `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :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/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md index 696a0af9c..964565941 100755 --- a/template_variables/docs/models/operations/getcategoriesresponse.md +++ b/template_variables/docs/models/operations/getcategoriesresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `category_results` | list[[shared.CategoryResult](../../models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | -| `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/template_variables/docs/models/operations/getcustomvariableresponse.md b/template_variables/docs/models/operations/getcustomvariableresponse.md index 9ffb80083..16be26387 100755 --- a/template_variables/docs/models/operations/getcustomvariableresponse.md +++ b/template_variables/docs/models/operations/getcustomvariableresponse.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 | | `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :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/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md index 96c7ec95e..5ab408d7f 100755 --- a/template_variables/docs/models/operations/getcustomvariablesresponse.md +++ b/template_variables/docs/models/operations/getcustomvariablesresponse.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 | | `custom_variables` | list[[shared.CustomVariable](../../models/shared/customvariable.md)] | :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/template_variables/docs/models/operations/getvariablecontextresponse.md b/template_variables/docs/models/operations/getvariablecontextresponse.md index f5095d87c..c1bd00835 100755 --- a/template_variables/docs/models/operations/getvariablecontextresponse.md +++ b/template_variables/docs/models/operations/getvariablecontextresponse.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 | | `variable_context` | [Optional[shared.VariableContext]](../../models/shared/variablecontext.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesresponse.md b/template_variables/docs/models/operations/replacetemplatesresponse.md index eb2accfbd..8d90c194e 100755 --- a/template_variables/docs/models/operations/replacetemplatesresponse.md +++ b/template_variables/docs/models/operations/replacetemplatesresponse.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 | | `replace_templates_200_application_json_object` | [Optional[ReplaceTemplates200ApplicationJSON]](../../models/operations/replacetemplates200applicationjson.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md index 2b49ba2dd..9ec55b0ba 100755 --- a/template_variables/docs/models/operations/searchvariablesresponse.md +++ b/template_variables/docs/models/operations/searchvariablesresponse.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 | | `variable_results` | list[[shared.VariableResult](../../models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariableresponse.md b/template_variables/docs/models/operations/updatecustomvariableresponse.md index f361fe056..d06f02ab5 100755 --- a/template_variables/docs/models/operations/updatecustomvariableresponse.md +++ b/template_variables/docs/models/operations/updatecustomvariableresponse.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/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index a35fc683a..e2cd0b4c5 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -31,7 +31,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'distinctio', + 'unde', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -183,7 +183,7 @@ s = epilot.Epilot( ) req = operations.DeleteCustomVariableRequest( - id='9d8d69a6-74e0-4f46-bcc8-796ed151a05d', + id='8d69a674-e0f4-467c-8879-6ed151a05dfc', ) res = s.custom_variables.delete_custom_variable(req) @@ -250,7 +250,7 @@ s = epilot.Epilot( ) req = operations.GetCustomVariableRequest( - id='fc2ddf7c-c78c-4a1b-a928-fc816742cb73', + id='2ddf7cc7-8ca1-4ba9-a8fc-816742cb7392', ) res = s.custom_variables.get_custom_variable(req) @@ -323,7 +323,7 @@ req = operations.UpdateCustomVariableRequest( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'excepturi', + 'perferendis', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -439,7 +439,7 @@ req = operations.UpdateCustomVariableRequest( updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ), - id='05929396-fea7-4596-ab10-faaa2352c595', + id='929396fe-a759-46eb-90fa-aa2352c59559', ) res = s.custom_variables.update_custom_variable(req) diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index 6c47c1e90..49238bfc8 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -29,7 +29,7 @@ s = epilot.Epilot( ) req = operations.GenerateQRcodeRequest( - qrdata='minima', + qrdata='accusantium', ) res = s.variables.generate_q_rcode(req) @@ -117,11 +117,11 @@ req = operations.GetVariableContextRequestBody( variable='{{craftsmen.invitation_link}}', ), ], - language=shared.VariableParametersLanguage.DE, + language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='accusantium', + template_name='culpa', template_tags=[ - 'iure', + 'doloribus', ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', @@ -182,11 +182,11 @@ req = operations.ReplaceTemplatesRequestBody( variable='{{craftsmen.invitation_link}}', ), ], - language=shared.VariableParametersLanguage.DE, + language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='sapiente', + template_name='mollitia', template_tags=[ - 'architecto', + 'dolorem', ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', @@ -232,10 +232,10 @@ req = operations.SearchVariablesRequestBody( entity_schemas=[ 'contact', ], - from_=208876, + from_=161309, lang=operations.SearchVariablesRequestBodyLang.DE, query='logo', - size=161309, + size=653108, template_type=shared.TemplateType.DOCUMENT, ) diff --git a/template_variables/files.gen b/template_variables/files.gen index 8eb49e30f..0e1278756 100755 --- a/template_variables/files.gen +++ b/template_variables/files.gen @@ -32,9 +32,6 @@ src/epilot/models/shared/variableresult.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/customvariables/README.md -docs/sdks/variables/README.md USAGE.md docs/models/operations/createcustomvariableresponse.md docs/models/operations/deletecustomvariablerequest.md @@ -71,4 +68,7 @@ docs/models/shared/externalcustomvariable.md docs/models/shared/variableresulttype.md docs/models/shared/variableresult.md docs/models/shared/security.md +docs/sdks/epilot/README.md +docs/sdks/customvariables/README.md +docs/sdks/variables/README.md .gitattributes \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 8a8fbe237..2e202765a 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index cdf77a885..4c1683968 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.44.5", + version="1.45.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py index c8043cccd..f297c4db5 100755 --- a/template_variables/src/epilot/models/operations/createcustomvariable.py +++ b/template_variables/src/epilot/models/operations/createcustomvariable.py @@ -10,7 +10,10 @@ @dataclasses.dataclass class CreateCustomVariableResponse: 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/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py index 7096a6273..91fd3efb0 100755 --- a/template_variables/src/epilot/models/operations/deletecustomvariable.py +++ b/template_variables/src/epilot/models/operations/deletecustomvariable.py @@ -19,7 +19,10 @@ class DeleteCustomVariableRequest: @dataclasses.dataclass class DeleteCustomVariableResponse: 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/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py index 69d69d306..5db8a7b4a 100755 --- a/template_variables/src/epilot/models/operations/generateqrcode.py +++ b/template_variables/src/epilot/models/operations/generateqrcode.py @@ -19,7 +19,10 @@ class GenerateQRcodeRequest: @dataclasses.dataclass class GenerateQRcodeResponse: 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/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py index 23ccdb147..8d521de37 100755 --- a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py +++ b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py @@ -11,9 +11,12 @@ @dataclasses.dataclass class GetBluePrintTableConfigResponse: 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""" custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index 5b784f90b..88751ec6f 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -26,9 +26,12 @@ class GetCategoriesRequest: @dataclasses.dataclass class GetCategoriesResponse: 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""" category_results: Optional[list[shared_categoryresult.CategoryResult]] = dataclasses.field(default=None) r"""ok""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py index 308275a94..750a6421f 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariable.py +++ b/template_variables/src/epilot/models/operations/getcustomvariable.py @@ -20,9 +20,12 @@ class GetCustomVariableRequest: @dataclasses.dataclass class GetCustomVariableResponse: 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""" custom_variable: Optional[shared_customvariable.CustomVariable] = 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/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py index 553dbe621..590a97ba6 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariables.py +++ b/template_variables/src/epilot/models/operations/getcustomvariables.py @@ -11,9 +11,12 @@ @dataclasses.dataclass class GetCustomVariablesResponse: 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""" custom_variables: Optional[list[shared_customvariable.CustomVariable]] = 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/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py index 261ae472c..4de56845d 100755 --- a/template_variables/src/epilot/models/operations/getvariablecontext.py +++ b/template_variables/src/epilot/models/operations/getvariablecontext.py @@ -23,8 +23,11 @@ class GetVariableContextRequestBody: @dataclasses.dataclass class GetVariableContextResponse: 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""" variable_context: Optional[shared_variablecontext.VariableContext] = dataclasses.field(default=None) r"""ok""" diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py index f4415b4dc..6f2ea13cd 100755 --- a/template_variables/src/epilot/models/operations/replacetemplates.py +++ b/template_variables/src/epilot/models/operations/replacetemplates.py @@ -33,8 +33,11 @@ class ReplaceTemplates200ApplicationJSON: @dataclasses.dataclass class ReplaceTemplatesResponse: 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""" replace_templates_200_application_json_object: Optional[ReplaceTemplates200ApplicationJSON] = dataclasses.field(default=None) r"""ok""" diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index 7b7266d8e..e2a570010 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -34,8 +34,11 @@ class SearchVariablesRequestBody: @dataclasses.dataclass class SearchVariablesResponse: 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""" variable_results: Optional[list[shared_variableresult.VariableResult]] = dataclasses.field(default=None) r"""ok""" diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py index d0257fb77..115f6dcac 100755 --- a/template_variables/src/epilot/models/operations/updatecustomvariable.py +++ b/template_variables/src/epilot/models/operations/updatecustomvariable.py @@ -21,7 +21,10 @@ class UpdateCustomVariableRequest: @dataclasses.dataclass class UpdateCustomVariableResponse: 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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index a2aabf52f..6aeec100d 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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 934af844fddfe6bf56a048799ccdc9c1088c67be Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Sep 2023 01:15:16 +0000 Subject: [PATCH 75/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.2 --- template_variables/README.md | 8 ++------ template_variables/RELEASES.md | 10 +++++++++- template_variables/docs/sdks/customvariables/README.md | 1 + template_variables/docs/sdks/epilot/README.md | 1 + template_variables/docs/sdks/variables/README.md | 1 + template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 4 ++-- template_variables/src/epilot/sdkconfiguration.py | 4 ++-- template_variables/src/epilot/utils/utils.py | 8 ++++++++ 9 files changed, 30 insertions(+), 15 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 4083d005c..441542032 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -154,7 +154,7 @@ if res.status_code == 200: ## Available Resources and Operations -### [CustomVariables](docs/sdks/customvariables/README.md) +### [custom_variables](docs/sdks/customvariables/README.md) * [create_custom_variable](docs/sdks/customvariables/README.md#create_custom_variable) - Create custom variable * [delete_custom_variable](docs/sdks/customvariables/README.md#delete_custom_variable) - Delete custom variable @@ -163,7 +163,7 @@ if res.status_code == 200: * [get_custom_variables](docs/sdks/customvariables/README.md#get_custom_variables) - Get custom variables * [update_custom_variable](docs/sdks/customvariables/README.md#update_custom_variable) - Update custom variable -### [Variables](docs/sdks/variables/README.md) +### [variables](docs/sdks/variables/README.md) * [generate_q_rcode](docs/sdks/variables/README.md#generate_q_rcode) - generateQRcode * [get_categories](docs/sdks/variables/README.md#get_categories) - getCategories @@ -176,8 +176,6 @@ if res.status_code == 200: - - @@ -190,8 +188,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/template_variables/RELEASES.md b/template_variables/RELEASES.md index f754f420b..166ae6f50 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -506,4 +506,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.0] template_variables \ No newline at end of file +- [python v1.45.0] template_variables + +## 2023-09-27 01:14:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.1] template_variables \ No newline at end of file diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index e2cd0b4c5..fc1e606a0 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -1,4 +1,5 @@ # CustomVariables +(*custom_variables*) ### Available Operations diff --git a/template_variables/docs/sdks/epilot/README.md b/template_variables/docs/sdks/epilot/README.md index 57db9ef09..06007ebbc 100755 --- a/template_variables/docs/sdks/epilot/README.md +++ b/template_variables/docs/sdks/epilot/README.md @@ -1,5 +1,6 @@ # Epilot SDK + ## Overview Template Variables API: API to provide variables for email and document templates. diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index 49238bfc8..770ff45f2 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -1,4 +1,5 @@ # Variables +(*variables*) ## Overview diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 2e202765a..b0bab640d 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 4c1683968..3d68c9294 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - 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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 6aeec100d..d7957990d 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 05eafba6c..b0aeb54de 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 77bd7196260a42ce5524e45a17af32a9586c3aed Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 29 Sep 2023 01:14:42 +0000 Subject: [PATCH 76/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.3 --- template_variables/README.md | 22 +++--- template_variables/RELEASES.md | 10 ++- template_variables/USAGE.md | 22 +++--- .../createcustomvariableresponse.md | 4 +- .../operations/deletecustomvariablerequest.md | 2 +- .../deletecustomvariableresponse.md | 4 +- .../operations/generateqrcoderesponse.md | 4 +- .../getblueprinttableconfigresponse.md | 6 +- .../models/operations/getcategoriesrequest.md | 6 +- .../operations/getcategoriesresponse.md | 6 +- .../operations/getcustomvariablerequest.md | 2 +- .../operations/getcustomvariableresponse.md | 6 +- .../operations/getcustomvariablesresponse.md | 6 +- .../getvariablecontextrequestbody.md | 6 +- .../operations/getvariablecontextresponse.md | 6 +- .../operations/replacetemplatesrequestbody.md | 8 +- .../operations/replacetemplatesresponse.md | 12 +-- .../operations/searchvariablesrequestbody.md | 16 ++-- .../operations/searchvariablesresponse.md | 6 +- .../operations/updatecustomvariablerequest.md | 8 +- .../updatecustomvariableresponse.md | 4 +- .../docs/models/shared/customvariable.md | 4 +- .../docs/models/shared/security.md | 2 +- .../docs/models/shared/variableparameters.md | 8 +- .../docs/models/shared/variableresult.md | 14 ++-- .../docs/sdks/customvariables/README.md | 50 ++++++------ .../docs/sdks/variables/README.md | 18 ++--- template_variables/gen.yaml | 8 +- template_variables/pylintrc | 4 +- template_variables/setup.py | 2 +- .../src/epilot/custom_variables.py | 16 ++-- .../models/operations/generateqrcode.py | 2 +- .../models/operations/searchvariables.py | 4 +- .../models/shared/variableparameters.py | 6 +- .../src/epilot/sdkconfiguration.py | 5 +- template_variables/src/epilot/utils/utils.py | 79 ++++++++++++++++--- template_variables/src/epilot/variables.py | 16 ++-- 37 files changed, 236 insertions(+), 168 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 441542032..3ead91062 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -26,7 +26,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'distinctio', + 'parse', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -51,7 +51,7 @@ req = shared.CustomVariable( {{/if}} {{#each @root.table_config.header.columns as |column|}} {{#if column.enable}} - {{#if (eq column.id 'item')}} + {{#if (eq column.id \'item\')}} {{#if @root.table_config.body.product_name.enable}} @@ -67,41 +67,41 @@ req = shared.CustomVariable( {{/if}} {{/if}} - {{#if (eq column.id 'quantity')}} + {{#if (eq column.id \'quantity\')}} {{product.price.quantity}} {{/if}} - {{#if (eq column.id 'tax')}} + {{#if (eq column.id \'tax\')}} {{product.price.tax_rate}} {{/if}} - {{#if (eq column.id 'unit_amount')}} + {{#if (eq column.id \'unit_amount\')}} {{product.price.unit_amount_net}} {{/if}} - {{#if (eq column.id 'net_total')}} + {{#if (eq column.id \'net_total\')}} {{product.price.amount_subtotal}} {{/if}} - {{#if (eq column.id 'amount_tax')}} + {{#if (eq column.id \'amount_tax\')}} {{product.price.amount_tax}} {{/if}} - {{#if (eq column.id 'gross_total')}} + {{#if (eq column.id \'gross_total\')}} {{product.price.amount_total}} {{#if @root.table_config.body.payment_type.enable}} - {{#if (eq product.price.type 'recurring')}} + {{#if (eq product.price.type \'recurring\')}}
{{product.price.billing_period}} {{/if}} @@ -120,7 +120,7 @@ req = shared.CustomVariable( {{#if @root.table_config.footer.payment_type.enable}} {{item.billing_period}} {{/if}} - {{#if (isColumnEnabled @root.table_config 'net_total')}} + {{#if (isColumnEnabled @root.table_config \'net_total\')}} {{#if @root.table_config.footer.net_total.enable}} {{item.amount_subtotal}} {{/if}} @@ -138,7 +138,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.CUSTOM, + type=shared.CustomVariableType.ORDER_TABLE, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 166ae6f50..1fc51d76b 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -514,4 +514,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.1] template_variables \ No newline at end of file +- [python v1.45.1] template_variables + +## 2023-09-29 01:14:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.46.0] template_variables \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 6da64a63a..915ab61b9 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -17,7 +17,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'corrupti', + 'parse', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -42,7 +42,7 @@ req = shared.CustomVariable( {{/if}} {{#each @root.table_config.header.columns as |column|}} {{#if column.enable}} - {{#if (eq column.id 'item')}} + {{#if (eq column.id \'item\')}} {{#if @root.table_config.body.product_name.enable}} @@ -58,41 +58,41 @@ req = shared.CustomVariable( {{/if}} {{/if}} - {{#if (eq column.id 'quantity')}} + {{#if (eq column.id \'quantity\')}} {{product.price.quantity}} {{/if}} - {{#if (eq column.id 'tax')}} + {{#if (eq column.id \'tax\')}} {{product.price.tax_rate}} {{/if}} - {{#if (eq column.id 'unit_amount')}} + {{#if (eq column.id \'unit_amount\')}} {{product.price.unit_amount_net}} {{/if}} - {{#if (eq column.id 'net_total')}} + {{#if (eq column.id \'net_total\')}} {{product.price.amount_subtotal}} {{/if}} - {{#if (eq column.id 'amount_tax')}} + {{#if (eq column.id \'amount_tax\')}} {{product.price.amount_tax}} {{/if}} - {{#if (eq column.id 'gross_total')}} + {{#if (eq column.id \'gross_total\')}} {{product.price.amount_total}} {{#if @root.table_config.body.payment_type.enable}} - {{#if (eq product.price.type 'recurring')}} + {{#if (eq product.price.type \'recurring\')}}
{{product.price.billing_period}} {{/if}} @@ -111,7 +111,7 @@ req = shared.CustomVariable( {{#if @root.table_config.footer.payment_type.enable}} {{item.billing_period}} {{/if}} - {{#if (isColumnEnabled @root.table_config 'net_total')}} + {{#if (isColumnEnabled @root.table_config \'net_total\')}} {{#if @root.table_config.footer.net_total.enable}} {{item.amount_subtotal}} {{/if}} @@ -129,7 +129,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.CUSTOM, + type=shared.CustomVariableType.ORDER_TABLE, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/docs/models/operations/createcustomvariableresponse.md b/template_variables/docs/models/operations/createcustomvariableresponse.md index e299c214b..90cfbe3dd 100755 --- a/template_variables/docs/models/operations/createcustomvariableresponse.md +++ b/template_variables/docs/models/operations/createcustomvariableresponse.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/template_variables/docs/models/operations/deletecustomvariablerequest.md b/template_variables/docs/models/operations/deletecustomvariablerequest.md index e1d80ec54..eedf8191f 100755 --- a/template_variables/docs/models/operations/deletecustomvariablerequest.md +++ b/template_variables/docs/models/operations/deletecustomvariablerequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *str* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file +| `id` | *Optional[str]* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/deletecustomvariableresponse.md b/template_variables/docs/models/operations/deletecustomvariableresponse.md index c2430b586..42f59312c 100755 --- a/template_variables/docs/models/operations/deletecustomvariableresponse.md +++ b/template_variables/docs/models/operations/deletecustomvariableresponse.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/template_variables/docs/models/operations/generateqrcoderesponse.md b/template_variables/docs/models/operations/generateqrcoderesponse.md index 9777a0b8d..98d68bf19 100755 --- a/template_variables/docs/models/operations/generateqrcoderesponse.md +++ b/template_variables/docs/models/operations/generateqrcoderesponse.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/template_variables/docs/models/operations/getblueprinttableconfigresponse.md b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md index 74ceda0ed..f83b40f8e 100755 --- a/template_variables/docs/models/operations/getblueprinttableconfigresponse.md +++ b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :heavy_minus_sign: | Success | -| `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 | +| `custom_variable` | [Optional[shared.CustomVariable]](undefined/models/shared/customvariable.md) | :heavy_minus_sign: | Success | +| `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/template_variables/docs/models/operations/getcategoriesrequest.md b/template_variables/docs/models/operations/getcategoriesrequest.md index d215ed7ae..dd2a89de5 100755 --- a/template_variables/docs/models/operations/getcategoriesrequest.md +++ b/template_variables/docs/models/operations/getcategoriesrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `lang` | [Optional[GetCategoriesLang]](../../models/operations/getcategorieslang.md) | :heavy_minus_sign: | Language | de | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `lang` | [Optional[operations.GetCategoriesLang]](undefined/models/operations/getcategorieslang.md) | :heavy_minus_sign: | Language | de | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md index 964565941..577387763 100755 --- a/template_variables/docs/models/operations/getcategoriesresponse.md +++ b/template_variables/docs/models/operations/getcategoriesresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `category_results` | list[[shared.CategoryResult](../../models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | -| `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 | +| `category_results` | list[[shared.CategoryResult](undefined/models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | +| `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/template_variables/docs/models/operations/getcustomvariablerequest.md b/template_variables/docs/models/operations/getcustomvariablerequest.md index bbf2995d8..a3ae30864 100755 --- a/template_variables/docs/models/operations/getcustomvariablerequest.md +++ b/template_variables/docs/models/operations/getcustomvariablerequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *str* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file +| `id` | *Optional[str]* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcustomvariableresponse.md b/template_variables/docs/models/operations/getcustomvariableresponse.md index 16be26387..769c76bd4 100755 --- a/template_variables/docs/models/operations/getcustomvariableresponse.md +++ b/template_variables/docs/models/operations/getcustomvariableresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :heavy_minus_sign: | Success | -| `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 | +| `custom_variable` | [Optional[shared.CustomVariable]](undefined/models/shared/customvariable.md) | :heavy_minus_sign: | Success | +| `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/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md index 5ab408d7f..209f0fcf3 100755 --- a/template_variables/docs/models/operations/getcustomvariablesresponse.md +++ b/template_variables/docs/models/operations/getcustomvariablesresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variables` | list[[shared.CustomVariable](../../models/shared/customvariable.md)] | :heavy_minus_sign: | Success | -| `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 | +| `custom_variables` | list[[shared.CustomVariable](undefined/models/shared/customvariable.md)] | :heavy_minus_sign: | Success | +| `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/template_variables/docs/models/operations/getvariablecontextrequestbody.md b/template_variables/docs/models/operations/getvariablecontextrequestbody.md index 0076f586b..4cfe24c7e 100755 --- a/template_variables/docs/models/operations/getvariablecontextrequestbody.md +++ b/template_variables/docs/models/operations/getvariablecontextrequestbody.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `parameters` | [Optional[shared.VariableParameters]](undefined/models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getvariablecontextresponse.md b/template_variables/docs/models/operations/getvariablecontextresponse.md index c1bd00835..81ce29045 100755 --- a/template_variables/docs/models/operations/getvariablecontextresponse.md +++ b/template_variables/docs/models/operations/getvariablecontextresponse.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 | -| `variable_context` | [Optional[shared.VariableContext]](../../models/shared/variablecontext.md) | :heavy_minus_sign: | ok | \ No newline at end of file +| `variable_context` | [Optional[shared.VariableContext]](undefined/models/shared/variablecontext.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md index bde05851f..e7ffdd0f2 100755 --- a/template_variables/docs/models/operations/replacetemplatesrequestbody.md +++ b/template_variables/docs/models/operations/replacetemplatesrequestbody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | -| `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | +| `parameters` | [Optional[shared.VariableParameters]](undefined/models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesresponse.md b/template_variables/docs/models/operations/replacetemplatesresponse.md index 8d90c194e..0bc098335 100755 --- a/template_variables/docs/models/operations/replacetemplatesresponse.md +++ b/template_variables/docs/models/operations/replacetemplatesresponse.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 | -| `replace_templates_200_application_json_object` | [Optional[ReplaceTemplates200ApplicationJSON]](../../models/operations/replacetemplates200applicationjson.md) | :heavy_minus_sign: | ok | \ 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 | +| `replace_templates_200_application_json_object` | [Optional[operations.ReplaceTemplates200ApplicationJSON]](undefined/models/operations/replacetemplates200applicationjson.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md index edfadbbd6..bbb2a741f 100755 --- a/template_variables/docs/models/operations/searchvariablesrequestbody.md +++ b/template_variables/docs/models/operations/searchvariablesrequestbody.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | | -| `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | -| `lang` | [Optional[SearchVariablesRequestBodyLang]](../../models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | -| `query` | *str* | :heavy_check_mark: | Search string | logo | -| `size` | *Optional[int]* | :heavy_minus_sign: | N/A | | -| `template_type` | [shared.TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | | +| `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | +| `lang` | [Optional[operations.SearchVariablesRequestBodyLang]](undefined/models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | +| `query` | *Optional[str]* | :heavy_check_mark: | Search string | logo | +| `size` | *Optional[int]* | :heavy_minus_sign: | N/A | | +| `template_type` | [Optional[shared.TemplateType]](undefined/models/shared/templatetype.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md index 9ec55b0ba..2b296e707 100755 --- a/template_variables/docs/models/operations/searchvariablesresponse.md +++ b/template_variables/docs/models/operations/searchvariablesresponse.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 | -| `variable_results` | list[[shared.VariableResult](../../models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file +| `variable_results` | list[[shared.VariableResult](undefined/models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariablerequest.md b/template_variables/docs/models/operations/updatecustomvariablerequest.md index 2f3bdd89f..33c554638 100755 --- a/template_variables/docs/models/operations/updatecustomvariablerequest.md +++ b/template_variables/docs/models/operations/updatecustomvariablerequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :heavy_minus_sign: | N/A | -| `id` | *str* | :heavy_check_mark: | Custom variable ID | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `custom_variable` | [Optional[shared.CustomVariable]](undefined/models/shared/customvariable.md) | :heavy_minus_sign: | N/A | +| `id` | *Optional[str]* | :heavy_check_mark: | Custom variable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariableresponse.md b/template_variables/docs/models/operations/updatecustomvariableresponse.md index d06f02ab5..ad52820df 100755 --- a/template_variables/docs/models/operations/updatecustomvariableresponse.md +++ b/template_variables/docs/models/operations/updatecustomvariableresponse.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/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md index 95692fdad..4b2faf067 100755 --- a/template_variables/docs/models/shared/customvariable.md +++ b/template_variables/docs/models/shared/customvariable.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `config` | [Optional[CustomVariableConfig]](../../models/shared/customvariableconfig.md) | :heavy_minus_sign: | Variable configuration | | +| `config` | [Optional[shared.CustomVariableConfig]](undefined/models/shared/customvariableconfig.md) | :heavy_minus_sign: | Variable configuration | | | `created_at` | *Optional[str]* | :heavy_minus_sign: | Creation time | 2022-04-19T12:41:43.662Z | | `created_by` | *Optional[str]* | :heavy_minus_sign: | Created by | 100042 | | `helper_logic` | *Optional[str]* | :heavy_minus_sign: | The helper function logic | return param1 * param2; | @@ -14,6 +14,6 @@ | `key` | *Optional[str]* | :heavy_minus_sign: | The key which is used for Handlebar variable syntax {{key}} | my_custom_table | | `name` | *Optional[str]* | :heavy_minus_sign: | Custom variable name | My Custom table | | `template` | *Optional[str]* | :heavy_minus_sign: | Handlebar template that used to generate the variable content |


{{#each table_config.header.columns as \|column\|}}
{{#if column.enable}}

{{/if}}
{{/each}}




{{#each order.products as \|product\|}}
{{#if @last}}

{{else}}

{{/if}}
{{#each @root.table_config.header.columns as \|column\|}}
{{#if column.enable}}
{{#if (eq column.id 'item')}}


{{/if}}
{{#if (eq column.id 'quantity')}}


{{/if}}
{{#if (eq column.id 'tax')}}


{{/if}}
{{#if (eq column.id 'unit_amount')}}


{{/if}}
{{#if (eq column.id 'net_total')}}


{{/if}}
{{#if (eq column.id 'amount_tax')}}


{{/if}}
{{#if (eq column.id 'gross_total')}}


{{/if}}
{{/if}}
{{/each}}

{{/each}}

{{#if table_config.footer.gross_total.enable}}
{{#each order.total_details.recurrences as \|item\|}}


{{#if @root.table_config.footer.payment_type.enable}}

{{/if}}
{{#if (isColumnEnabled @root.table_config 'net_total')}}
{{#if @root.table_config.footer.net_total.enable}}

{{/if}}
{{/if}}


{{/each}}
{{/if}}


{{column._label}}

{{#if @root.table_config.body.product_name.enable}}
{{product.name}}
{{/if}}
{{#if @root.table_config.body.price_description.enable}}


{{product.price.description}}
{{/if}}
{{#if @root.table_config.body.product_description.enable}}


{{product.description}}
{{/if}}
{{product.price.quantity}}

{{product.price.tax_rate}}

{{product.price.unit_amount_net}}

{{product.price.amount_subtotal}}

{{product.price.amount_tax}}

{{product.price.amount_total}}
{{#if @root.table_config.body.payment_type.enable}}
{{#if (eq product.price.type 'recurring')}}


{{product.price.billing_period}}
{{/if}}
{{/if}}
{{item.billing_period}} {{item.amount_subtotal}} {{item.amount_total}}
{{#if @root.table_config.footer.amount_tax.enable}}


{{item.full_amount_tax}}
{{/if}}

| -| `type` | [Optional[CustomVariableType]](../../models/shared/customvariabletype.md) | :heavy_minus_sign: | Custom variable type | rbse777b-3cf8-4bff-bb0c-253fd1123250 | +| `type` | [Optional[shared.CustomVariableType]](undefined/models/shared/customvariabletype.md) | :heavy_minus_sign: | Custom variable type | rbse777b-3cf8-4bff-bb0c-253fd1123250 | | `updated_at` | *Optional[str]* | :heavy_minus_sign: | Last update time | 2022-04-20T12:41:43.662Z | | `updated_by` | *Optional[str]* | :heavy_minus_sign: | Updated by | 100042 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/security.md b/template_variables/docs/models/shared/security.md index f06333390..9e84312f5 100755 --- a/template_variables/docs/models/shared/security.md +++ b/template_variables/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/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md index 378256e02..5c529040a 100755 --- a/template_variables/docs/models/shared/variableparameters.md +++ b/template_variables/docs/models/shared/variableparameters.md @@ -6,12 +6,12 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | `brand_id` | *Optional[float]* | :heavy_minus_sign: | Brand ID | 123451 | -| `context_data` | [Optional[VariableParametersContextData]](../../models/shared/variableparameterscontextdata.md) | :heavy_minus_sign: | If context data is avaialble, this data will be used for variable replace. | | -| `custom_variables` | list[[ExternalCustomVariable](../../models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | -| `language` | [Optional[VariableParametersLanguage]](../../models/shared/variableparameterslanguage.md) | :heavy_minus_sign: | N/A | | +| `context_data` | [Optional[shared.VariableParametersContextData]](undefined/models/shared/variableparameterscontextdata.md) | :heavy_minus_sign: | If context data is avaialble, this data will be used for variable replace. | | +| `custom_variables` | list[[shared.ExternalCustomVariable](undefined/models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | +| `language` | [Optional[shared.VariableParametersLanguage]](undefined/models/shared/variableparameterslanguage.md) | :heavy_minus_sign: | N/A | | | `main_entity_id` | *Optional[str]* | :heavy_minus_sign: | The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID. | 63753437-c9e2-4e83-82bb-b1c666514561 | | `template_name` | *Optional[str]* | :heavy_minus_sign: | The name of email template | | | `template_tags` | list[*str*] | :heavy_minus_sign: | The tags of email template | | -| `template_type` | [TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | +| `template_type` | [Optional[shared.TemplateType]](undefined/models/shared/templatetype.md) | :heavy_check_mark: | N/A | | | `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | | `user_org_id` | *Optional[str]* | :heavy_minus_sign: | Organization ID of the user | 729224 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableresult.md b/template_variables/docs/models/shared/variableresult.md index b640b9f77..aef821897 100755 --- a/template_variables/docs/models/shared/variableresult.md +++ b/template_variables/docs/models/shared/variableresult.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `description` | *Optional[str]* | :heavy_minus_sign: | Variable description | -| `group` | *Optional[str]* | :heavy_minus_sign: | Variable group | -| `insert` | *Optional[str]* | :heavy_minus_sign: | The value which is used to insert to template | -| `qrdata` | *Optional[str]* | :heavy_minus_sign: | Payload for the QR data | -| `type` | [Optional[VariableResultType]](../../models/shared/variableresulttype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `description` | *Optional[str]* | :heavy_minus_sign: | Variable description | +| `group` | *Optional[str]* | :heavy_minus_sign: | Variable group | +| `insert` | *Optional[str]* | :heavy_minus_sign: | The value which is used to insert to template | +| `qrdata` | *Optional[str]* | :heavy_minus_sign: | Payload for the QR data | +| `type` | [Optional[shared.VariableResultType]](undefined/models/shared/variableresulttype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index fc1e606a0..8524cd64f 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -32,7 +32,7 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'unde', + 'parse', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -57,7 +57,7 @@ req = shared.CustomVariable( {{/if}} {{#each @root.table_config.header.columns as |column|}} {{#if column.enable}} - {{#if (eq column.id 'item')}} + {{#if (eq column.id \'item\')}} {{#if @root.table_config.body.product_name.enable}} @@ -73,41 +73,41 @@ req = shared.CustomVariable( {{/if}} {{/if}} - {{#if (eq column.id 'quantity')}} + {{#if (eq column.id \'quantity\')}} {{product.price.quantity}} {{/if}} - {{#if (eq column.id 'tax')}} + {{#if (eq column.id \'tax\')}} {{product.price.tax_rate}} {{/if}} - {{#if (eq column.id 'unit_amount')}} + {{#if (eq column.id \'unit_amount\')}} {{product.price.unit_amount_net}} {{/if}} - {{#if (eq column.id 'net_total')}} + {{#if (eq column.id \'net_total\')}} {{product.price.amount_subtotal}} {{/if}} - {{#if (eq column.id 'amount_tax')}} + {{#if (eq column.id \'amount_tax\')}} {{product.price.amount_tax}} {{/if}} - {{#if (eq column.id 'gross_total')}} + {{#if (eq column.id \'gross_total\')}} {{product.price.amount_total}} {{#if @root.table_config.body.payment_type.enable}} - {{#if (eq product.price.type 'recurring')}} + {{#if (eq product.price.type \'recurring\')}}
{{product.price.billing_period}} {{/if}} @@ -126,7 +126,7 @@ req = shared.CustomVariable( {{#if @root.table_config.footer.payment_type.enable}} {{item.billing_period}} {{/if}} - {{#if (isColumnEnabled @root.table_config 'net_total')}} + {{#if (isColumnEnabled @root.table_config \'net_total\')}} {{#if @root.table_config.footer.net_total.enable}} {{item.amount_subtotal}} {{/if}} @@ -144,7 +144,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.CUSTOM, + type=shared.CustomVariableType.ORDER_TABLE, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) @@ -184,7 +184,7 @@ s = epilot.Epilot( ) req = operations.DeleteCustomVariableRequest( - id='8d69a674-e0f4-467c-8879-6ed151a05dfc', + id='', ) res = s.custom_variables.delete_custom_variable(req) @@ -251,7 +251,7 @@ s = epilot.Epilot( ) req = operations.GetCustomVariableRequest( - id='2ddf7cc7-8ca1-4ba9-a8fc-816742cb7392', + id='', ) res = s.custom_variables.get_custom_variable(req) @@ -324,7 +324,7 @@ req = operations.UpdateCustomVariableRequest( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'perferendis', + 'Rutherfordium', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -349,7 +349,7 @@ req = operations.UpdateCustomVariableRequest( {{/if}} {{#each @root.table_config.header.columns as |column|}} {{#if column.enable}} - {{#if (eq column.id 'item')}} + {{#if (eq column.id \'item\')}} {{#if @root.table_config.body.product_name.enable}} @@ -365,41 +365,41 @@ req = operations.UpdateCustomVariableRequest( {{/if}} {{/if}} - {{#if (eq column.id 'quantity')}} + {{#if (eq column.id \'quantity\')}} {{product.price.quantity}} {{/if}} - {{#if (eq column.id 'tax')}} + {{#if (eq column.id \'tax\')}} {{product.price.tax_rate}} {{/if}} - {{#if (eq column.id 'unit_amount')}} + {{#if (eq column.id \'unit_amount\')}} {{product.price.unit_amount_net}} {{/if}} - {{#if (eq column.id 'net_total')}} + {{#if (eq column.id \'net_total\')}} {{product.price.amount_subtotal}} {{/if}} - {{#if (eq column.id 'amount_tax')}} + {{#if (eq column.id \'amount_tax\')}} {{product.price.amount_tax}} {{/if}} - {{#if (eq column.id 'gross_total')}} + {{#if (eq column.id \'gross_total\')}} {{product.price.amount_total}} {{#if @root.table_config.body.payment_type.enable}} - {{#if (eq product.price.type 'recurring')}} + {{#if (eq product.price.type \'recurring\')}}
{{product.price.billing_period}} {{/if}} @@ -418,7 +418,7 @@ req = operations.UpdateCustomVariableRequest( {{#if @root.table_config.footer.payment_type.enable}} {{item.billing_period}} {{/if}} - {{#if (isColumnEnabled @root.table_config 'net_total')}} + {{#if (isColumnEnabled @root.table_config \'net_total\')}} {{#if @root.table_config.footer.net_total.enable}} {{item.amount_subtotal}} {{/if}} @@ -436,11 +436,11 @@ req = operations.UpdateCustomVariableRequest( ', - type=shared.CustomVariableType.ORDER_TABLE, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ), - id='929396fe-a759-46eb-90fa-aa2352c59559', + id='', ) res = s.custom_variables.update_custom_variable(req) diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index 770ff45f2..f0415cf0b 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -30,7 +30,7 @@ s = epilot.Epilot( ) req = operations.GenerateQRcodeRequest( - qrdata='accusantium', + qrdata='quantifying Crossing newton', ) res = s.variables.generate_q_rcode(req) @@ -120,9 +120,9 @@ req = operations.GetVariableContextRequestBody( ], language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='culpa', + template_name='Ruthenium quo', template_tags=[ - 'doloribus', + 'Chevrolet', ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', @@ -185,9 +185,9 @@ req = operations.ReplaceTemplatesRequestBody( ], language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='mollitia', + template_name='invoice Rubber', template_tags=[ - 'dolorem', + 'Northeast', ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', @@ -233,11 +233,11 @@ req = operations.SearchVariablesRequestBody( entity_schemas=[ 'contact', ], - from_=161309, - lang=operations.SearchVariablesRequestBodyLang.DE, + from_=968492, + lang=operations.SearchVariablesRequestBodyLang.EN, query='logo', - size=653108, - template_type=shared.TemplateType.DOCUMENT, + size=177431, + template_type=shared.TemplateType.EMAIL, ) res = s.variables.search_variables(req) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index b0bab640d..c094b988e 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/pylintrc b/template_variables/pylintrc index ab6495dd6..2a6cf6912 100755 --- a/template_variables/pylintrc +++ b/template_variables/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/template_variables/setup.py b/template_variables/setup.py index 3d68c9294..20453a4b7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.45.1", + version="1.46.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index 6c807aa3e..b009968ed 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -20,11 +20,11 @@ def create_custom_variable(self, request: shared.CustomVariable) -> operations.C url = base_url + '/v1/custom-variables' 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 @@ -46,7 +46,7 @@ def delete_custom_variable(self, request: operations.DeleteCustomVariableRequest url = utils.generate_url(operations.DeleteCustomVariableRequest, base_url, '/v1/custom-variables/{id}', 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 @@ -68,7 +68,7 @@ def get_blue_print_table_config(self) -> operations.GetBluePrintTableConfigRespo url = base_url + '/v1/custom-variables/order-table-blueprint' 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 @@ -98,7 +98,7 @@ def get_custom_variable(self, request: operations.GetCustomVariableRequest) -> o url = utils.generate_url(operations.GetCustomVariableRequest, base_url, '/v1/custom-variables/{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 @@ -128,7 +128,7 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: url = base_url + '/v1/custom-variables' 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 @@ -157,11 +157,11 @@ def update_custom_variable(self, request: operations.UpdateCustomVariableRequest url = utils.generate_url(operations.UpdateCustomVariableRequest, base_url, '/v1/custom-variables/{id}', request) headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "custom_variable", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "custom_variable", 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 diff --git a/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py index 5db8a7b4a..cc0275ea6 100755 --- a/template_variables/src/epilot/models/operations/generateqrcode.py +++ b/template_variables/src/epilot/models/operations/generateqrcode.py @@ -9,7 +9,7 @@ @dataclasses.dataclass class GenerateQRcodeRequest: - qrdata: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'qrdata', 'style': 'form', 'explode': True }}) + qrdata: Optional[str] = dataclasses.field(default='{{table_order_items}}', metadata={'query_param': { 'field_name': 'qrdata', 'style': 'form', 'explode': True }}) r"""Payload of the QR code""" diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index e2a570010..dd455a305 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -23,9 +23,9 @@ class SearchVariablesRequestBody: r"""Search string""" template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) entity_schemas: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) - from_: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) + from_: Optional[int] = dataclasses.field(default=0, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) lang: Optional[SearchVariablesRequestBodyLang] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) - size: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) + size: Optional[int] = dataclasses.field(default=25, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index c502ab261..a647b43ac 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -27,7 +27,7 @@ class VariableParametersLanguage(str, Enum): @dataclasses.dataclass class VariableParameters: template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) - brand_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand_id'), 'exclude': lambda f: f is None }}) + brand_id: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand_id') }}) r"""Brand ID""" context_data: Optional[VariableParametersContextData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) r"""If context data is avaialble, this data will be used for variable replace.""" @@ -40,9 +40,9 @@ class VariableParameters: r"""The name of email template""" template_tags: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_tags'), 'exclude': lambda f: f is None }}) r"""The tags of email template""" - user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id'), 'exclude': lambda f: f is None }}) + user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id') }}) r"""User ID""" - user_org_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_org_id'), 'exclude': lambda f: f is None }}) + user_org_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_org_id') }}) r"""Organization ID of the user""" diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index d7957990d..381c832f5 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: diff --git a/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index b0aeb54de..4388f3b74 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index f66980e9e..820a98827 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -23,7 +23,7 @@ def generate_q_rcode(self, request: operations.GenerateQRcodeRequest) -> operati headers = {} query_params = utils.get_query_params(operations.GenerateQRcodeRequest, request) 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 @@ -46,7 +46,7 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations headers = {} query_params = utils.get_query_params(operations.GetCategoriesRequest, 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 @@ -75,11 +75,11 @@ def get_variable_context(self, request: operations.GetVariableContextRequestBody url = base_url + '/v1/template-variables:context' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "request", False, True, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -108,11 +108,11 @@ def replace_templates(self, request: operations.ReplaceTemplatesRequestBody) -> url = base_url + '/v1/template-variables:replace' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "request", False, True, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -139,11 +139,11 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op url = base_url + '/v1/template-variables:search' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "request", False, True, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client From a8ab36821b79a322ac18ac308c7723980733f298 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 1 Oct 2023 01:24:08 +0000 Subject: [PATCH 77/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.2 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 1fc51d76b..6eb13b8d0 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -522,4 +522,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.46.0] template_variables \ No newline at end of file +- [python v1.46.0] template_variables + +## 2023-10-01 01:23:52 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.0] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index c094b988e..0131b15d0 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 20453a4b7..317234ab3 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.46.0", + version="1.47.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 381c832f5..1a98de92e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From b9073b6c1e0a0ef7df727a2b25b3cb6f5a8d4dd8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 2 Oct 2023 01:15:31 +0000 Subject: [PATCH 78/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.3 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 6eb13b8d0..faf291c38 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -530,4 +530,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.0] template_variables \ No newline at end of file +- [python v1.47.0] template_variables + +## 2023-10-02 01:15:14 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.1] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0131b15d0..4d9fe4b7c 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 317234ab3..8a9c56c56 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.47.0", + version="1.47.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 1a98de92e..9b0c30c0b 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 365cf6afe856fa01fbe47fa5f10c4031d1c5bdae Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 5 Oct 2023 01:15:19 +0000 Subject: [PATCH 79/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.94.0 --- template_variables/RELEASES.md | 10 +++++++++- template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index faf291c38..ffd480e58 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -538,4 +538,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.1] template_variables \ No newline at end of file +- [python v1.47.1] template_variables + +## 2023-10-05 01:15:04 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.2] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 4d9fe4b7c..038933c75 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 8a9c56c56..6d92f8760 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.47.1", + version="1.47.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 9b0c30c0b..19d97d205 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From aca8db441976578d011becd6314dc5d6dd523518 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 7 Oct 2023 01:14:20 +0000 Subject: [PATCH 80/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.96.1 --- template_variables/README.md | 5 +- template_variables/RELEASES.md | 10 ++- template_variables/USAGE.md | 5 +- .../replacetemplates200applicationjson.md | 6 +- .../operations/replacetemplatesrequestbody.md | 8 +- .../operations/searchvariablesrequestbody.md | 2 +- .../docs/models/shared/customvariable.md | 2 +- .../docs/models/shared/variablecontext.md | 6 +- .../docs/sdks/customvariables/README.md | 8 +- .../docs/sdks/variables/README.md | 86 +++++++++++++++---- template_variables/gen.yaml | 11 +-- template_variables/setup.py | 2 +- .../src/epilot/models/__init__.py | 1 + template_variables/src/epilot/sdk.py | 8 +- .../src/epilot/sdkconfiguration.py | 6 +- 15 files changed, 116 insertions(+), 50 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 3ead91062..929e3d50c 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -26,7 +26,8 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'parse', + 'param1', + 'param2', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -138,7 +139,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.ORDER_TABLE, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index ffd480e58..5317faaf0 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -546,4 +546,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.2] template_variables \ No newline at end of file +- [python v1.47.2] template_variables + +## 2023-10-07 01:14:03 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.0] template_variables \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index 915ab61b9..a0aa35bd7 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -17,7 +17,8 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'parse', + 'param1', + 'param2', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -129,7 +130,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.ORDER_TABLE, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) diff --git a/template_variables/docs/models/operations/replacetemplates200applicationjson.md b/template_variables/docs/models/operations/replacetemplates200applicationjson.md index 6a1ba7c12..686b92c58 100755 --- a/template_variables/docs/models/operations/replacetemplates200applicationjson.md +++ b/template_variables/docs/models/operations/replacetemplates200applicationjson.md @@ -5,6 +5,6 @@ ok ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `outputs` | list[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `outputs` | list[*str*] | :heavy_minus_sign: | N/A | "[Brand Name GmbH] Order confirmation",
"Hello Customer Name

Brand Name GmbH
Brand Name
imprint
"]
| \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md index e7ffdd0f2..a2e12a646 100755 --- a/template_variables/docs/models/operations/replacetemplatesrequestbody.md +++ b/template_variables/docs/models/operations/replacetemplatesrequestbody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | -| `parameters` | [Optional[shared.VariableParameters]](undefined/models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | Hello, {{contact.first_name}}!

{{{brand.signature}}}
| +| `parameters` | [Optional[shared.VariableParameters]](undefined/models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md index bbb2a741f..44f1a05bf 100755 --- a/template_variables/docs/models/operations/searchvariablesrequestbody.md +++ b/template_variables/docs/models/operations/searchvariablesrequestbody.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | | +| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | contact | | `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | | `lang` | [Optional[operations.SearchVariablesRequestBodyLang]](undefined/models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | | `query` | *Optional[str]* | :heavy_check_mark: | Search string | logo | diff --git a/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md index 4b2faf067..476dbc00c 100755 --- a/template_variables/docs/models/shared/customvariable.md +++ b/template_variables/docs/models/shared/customvariable.md @@ -9,7 +9,7 @@ | `created_at` | *Optional[str]* | :heavy_minus_sign: | Creation time | 2022-04-19T12:41:43.662Z | | `created_by` | *Optional[str]* | :heavy_minus_sign: | Created by | 100042 | | `helper_logic` | *Optional[str]* | :heavy_minus_sign: | The helper function logic | return param1 * param2; | -| `helper_params` | list[*str*] | :heavy_minus_sign: | The helper function parameter's names | | +| `helper_params` | list[*str*] | :heavy_minus_sign: | The helper function parameter's names | param1,param2 | | `id` | *Optional[str]* | :heavy_minus_sign: | ID | rbse777b-3cf8-4bff-bb0c-253fd1123250 | | `key` | *Optional[str]* | :heavy_minus_sign: | The key which is used for Handlebar variable syntax {{key}} | my_custom_table | | `name` | *Optional[str]* | :heavy_minus_sign: | Custom variable name | My Custom table | diff --git a/template_variables/docs/models/shared/variablecontext.md b/template_variables/docs/models/shared/variablecontext.md index dd46173f8..ec7ec8f8e 100755 --- a/template_variables/docs/models/shared/variablecontext.md +++ b/template_variables/docs/models/shared/variablecontext.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `brand` | dict[str, *Any*] | :heavy_minus_sign: | N/A | | -| `contact` | dict[str, *Any*] | :heavy_minus_sign: | N/A | | -| `main` | dict[str, *Any*] | :heavy_minus_sign: | N/A | | +| `brand` | dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `contact` | dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `main` | dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | | `unsubscribe_url` | *Optional[str]* | :heavy_minus_sign: | N/A | https://consent.sls.epilot.io/v1/unsubscribe?token=abc123 | \ No newline at end of file diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index 8524cd64f..b76df1087 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -32,7 +32,8 @@ req = shared.CustomVariable( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'parse', + 'param1', + 'param2', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', @@ -144,7 +145,7 @@ req = shared.CustomVariable( ', - type=shared.CustomVariableType.ORDER_TABLE, + type=shared.CustomVariableType.CUSTOM, updated_at='2022-04-20T12:41:43.662Z', updated_by='100042', ) @@ -324,7 +325,8 @@ req = operations.UpdateCustomVariableRequest( created_by='100042', helper_logic='return param1 * param2;', helper_params=[ - 'Rutherfordium', + 'param1', + 'param2', ], id='rbse777b-3cf8-4bff-bb0c-253fd1123250', key='my_custom_table', diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index f0415cf0b..f8acf3e39 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -29,9 +29,7 @@ s = epilot.Epilot( ), ) -req = operations.GenerateQRcodeRequest( - qrdata='quantifying Crossing newton', -) +req = operations.GenerateQRcodeRequest() res = s.variables.generate_q_rcode(req) @@ -118,13 +116,11 @@ req = operations.GetVariableContextRequestBody( variable='{{craftsmen.invitation_link}}', ), ], - language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='Ruthenium quo', template_tags=[ - 'Chevrolet', + 'Account', ], - template_type=shared.TemplateType.DOCUMENT, + template_type=shared.TemplateType.EMAIL, user_id='50001', user_org_id='729224', ), @@ -169,9 +165,62 @@ s = epilot.Epilot( req = operations.ReplaceTemplatesRequestBody( inputs=[ - 'Hello, {{contact.first_name}}! - - {{{brand.signature}}} + 'H', + 'e', + 'l', + 'l', + 'o', + ',', + ' ', + '{', + '{', + 'c', + 'o', + 'n', + 't', + 'a', + 'c', + 't', + '.', + 'f', + 'i', + 'r', + 's', + 't', + '_', + 'n', + 'a', + 'm', + 'e', + '}', + '}', + '!', + ' + ', + ' + ', + '{', + '{', + '{', + 'b', + 'r', + 'a', + 'n', + 'd', + '.', + 's', + 'i', + 'g', + 'n', + 'a', + 't', + 'u', + 'r', + 'e', + '}', + '}', + '}', + ' ', ], parameters=shared.VariableParameters( @@ -183,11 +232,9 @@ req = operations.ReplaceTemplatesRequestBody( variable='{{craftsmen.invitation_link}}', ), ], - language=shared.VariableParametersLanguage.EN, main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', - template_name='invoice Rubber', template_tags=[ - 'Northeast', + 'Recycled', ], template_type=shared.TemplateType.DOCUMENT, user_id='50001', @@ -231,13 +278,16 @@ s = epilot.Epilot( req = operations.SearchVariablesRequestBody( entity_schemas=[ - 'contact', + 'c', + 'o', + 'n', + 't', + 'a', + 'c', + 't', ], - from_=968492, - lang=operations.SearchVariablesRequestBodyLang.EN, query='logo', - size=177431, - template_type=shared.TemplateType.EMAIL, + template_type=shared.TemplateType.DOCUMENT, ) res = s.variables.search_variables(req) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 038933c75..c22fb51e9 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,20 +2,21 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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-template-variables diff --git a/template_variables/setup.py b/template_variables/setup.py index 6d92f8760..210590e74 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.47.2", + version="1.48.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/__init__.py b/template_variables/src/epilot/models/__init__.py index 889f8adcf..36628d6cc 100755 --- a/template_variables/src/epilot/models/__init__.py +++ b/template_variables/src/epilot/models/__init__.py @@ -1,2 +1,3 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +# __init__.py diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index ac6f93fcf..e1aaba1f6 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -16,7 +16,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, @@ -25,8 +25,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 @@ -41,8 +41,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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 19d97d205..dcf979ec3 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 39ff2bba7344f0bb045a242c86834d02bcd2ce68 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 13 Oct 2023 01:17:05 +0000 Subject: [PATCH 81/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.99.1 --- template_variables/README.md | 1 + template_variables/RELEASES.md | 10 +++++++++- template_variables/USAGE.md | 1 + .../operations/createcustomvariableresponse.md | 4 ++-- .../operations/deletecustomvariablerequest.md | 2 +- .../operations/deletecustomvariableresponse.md | 4 ++-- .../models/operations/generateqrcoderesponse.md | 4 ++-- .../getblueprinttableconfigresponse.md | 6 +++--- .../models/operations/getcategoriesrequest.md | 6 +++--- .../models/operations/getcategoriesresponse.md | 6 +++--- .../operations/getcustomvariablerequest.md | 2 +- .../operations/getcustomvariableresponse.md | 6 +++--- .../operations/getcustomvariablesresponse.md | 6 +++--- .../operations/getvariablecontextrequestbody.md | 6 +++--- .../operations/getvariablecontextresponse.md | 6 +++--- .../operations/replacetemplatesrequestbody.md | 8 ++++---- .../operations/replacetemplatesresponse.md | 12 ++++++------ .../operations/searchvariablesrequestbody.md | 16 ++++++++-------- .../models/operations/searchvariablesresponse.md | 6 +++--- .../operations/updatecustomvariablerequest.md | 8 ++++---- .../operations/updatecustomvariableresponse.md | 4 ++-- .../docs/models/shared/customvariable.md | 4 ++-- .../docs/models/shared/security.md | 2 +- .../docs/models/shared/variableparameters.md | 8 ++++---- .../docs/models/shared/variableresult.md | 14 +++++++------- .../docs/sdks/customvariables/README.md | 6 ++++++ template_variables/docs/sdks/variables/README.md | 5 +++++ template_variables/gen.yaml | 8 ++++---- template_variables/setup.py | 2 +- template_variables/src/epilot/sdk.py | 6 +++--- .../src/epilot/sdkconfiguration.py | 6 +++--- 31 files changed, 103 insertions(+), 82 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 929e3d50c..5b0f8e94c 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -148,6 +148,7 @@ res = s.custom_variables.create_custom_variable(req) if res.status_code == 200: # handle response + pass ``` diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 5317faaf0..3d9869a27 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -554,4 +554,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.0] template_variables \ No newline at end of file +- [python v1.48.0] template_variables + +## 2023-10-13 01:16:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.1] template_variables \ No newline at end of file diff --git a/template_variables/USAGE.md b/template_variables/USAGE.md index a0aa35bd7..3d821cd23 100755 --- a/template_variables/USAGE.md +++ b/template_variables/USAGE.md @@ -139,5 +139,6 @@ res = s.custom_variables.create_custom_variable(req) if res.status_code == 200: # handle response + pass ``` \ No newline at end of file diff --git a/template_variables/docs/models/operations/createcustomvariableresponse.md b/template_variables/docs/models/operations/createcustomvariableresponse.md index 90cfbe3dd..e299c214b 100755 --- a/template_variables/docs/models/operations/createcustomvariableresponse.md +++ b/template_variables/docs/models/operations/createcustomvariableresponse.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/template_variables/docs/models/operations/deletecustomvariablerequest.md b/template_variables/docs/models/operations/deletecustomvariablerequest.md index eedf8191f..e1d80ec54 100755 --- a/template_variables/docs/models/operations/deletecustomvariablerequest.md +++ b/template_variables/docs/models/operations/deletecustomvariablerequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *Optional[str]* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file +| `id` | *str* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/deletecustomvariableresponse.md b/template_variables/docs/models/operations/deletecustomvariableresponse.md index 42f59312c..c2430b586 100755 --- a/template_variables/docs/models/operations/deletecustomvariableresponse.md +++ b/template_variables/docs/models/operations/deletecustomvariableresponse.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/template_variables/docs/models/operations/generateqrcoderesponse.md b/template_variables/docs/models/operations/generateqrcoderesponse.md index 98d68bf19..9777a0b8d 100755 --- a/template_variables/docs/models/operations/generateqrcoderesponse.md +++ b/template_variables/docs/models/operations/generateqrcoderesponse.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/template_variables/docs/models/operations/getblueprinttableconfigresponse.md b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md index f83b40f8e..74ceda0ed 100755 --- a/template_variables/docs/models/operations/getblueprinttableconfigresponse.md +++ b/template_variables/docs/models/operations/getblueprinttableconfigresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variable` | [Optional[shared.CustomVariable]](undefined/models/shared/customvariable.md) | :heavy_minus_sign: | Success | -| `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 | +| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.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/template_variables/docs/models/operations/getcategoriesrequest.md b/template_variables/docs/models/operations/getcategoriesrequest.md index dd2a89de5..d215ed7ae 100755 --- a/template_variables/docs/models/operations/getcategoriesrequest.md +++ b/template_variables/docs/models/operations/getcategoriesrequest.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `lang` | [Optional[operations.GetCategoriesLang]](undefined/models/operations/getcategorieslang.md) | :heavy_minus_sign: | Language | de | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `lang` | [Optional[GetCategoriesLang]](../../models/operations/getcategorieslang.md) | :heavy_minus_sign: | Language | de | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md index 577387763..964565941 100755 --- a/template_variables/docs/models/operations/getcategoriesresponse.md +++ b/template_variables/docs/models/operations/getcategoriesresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `category_results` | list[[shared.CategoryResult](undefined/models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | -| `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 | +| `category_results` | list[[shared.CategoryResult](../../models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | +| `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/template_variables/docs/models/operations/getcustomvariablerequest.md b/template_variables/docs/models/operations/getcustomvariablerequest.md index a3ae30864..bbf2995d8 100755 --- a/template_variables/docs/models/operations/getcustomvariablerequest.md +++ b/template_variables/docs/models/operations/getcustomvariablerequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *Optional[str]* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file +| `id` | *str* | :heavy_check_mark: | Custom vairable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcustomvariableresponse.md b/template_variables/docs/models/operations/getcustomvariableresponse.md index 769c76bd4..16be26387 100755 --- a/template_variables/docs/models/operations/getcustomvariableresponse.md +++ b/template_variables/docs/models/operations/getcustomvariableresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variable` | [Optional[shared.CustomVariable]](undefined/models/shared/customvariable.md) | :heavy_minus_sign: | Success | -| `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 | +| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.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/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md index 209f0fcf3..5ab408d7f 100755 --- a/template_variables/docs/models/operations/getcustomvariablesresponse.md +++ b/template_variables/docs/models/operations/getcustomvariablesresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variables` | list[[shared.CustomVariable](undefined/models/shared/customvariable.md)] | :heavy_minus_sign: | Success | -| `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 | +| `custom_variables` | list[[shared.CustomVariable](../../models/shared/customvariable.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/template_variables/docs/models/operations/getvariablecontextrequestbody.md b/template_variables/docs/models/operations/getvariablecontextrequestbody.md index 4cfe24c7e..0076f586b 100755 --- a/template_variables/docs/models/operations/getvariablecontextrequestbody.md +++ b/template_variables/docs/models/operations/getvariablecontextrequestbody.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `parameters` | [Optional[shared.VariableParameters]](undefined/models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/models/operations/getvariablecontextresponse.md b/template_variables/docs/models/operations/getvariablecontextresponse.md index 81ce29045..c1bd00835 100755 --- a/template_variables/docs/models/operations/getvariablecontextresponse.md +++ b/template_variables/docs/models/operations/getvariablecontextresponse.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 | -| `variable_context` | [Optional[shared.VariableContext]](undefined/models/shared/variablecontext.md) | :heavy_minus_sign: | ok | \ No newline at end of file +| `variable_context` | [Optional[shared.VariableContext]](../../models/shared/variablecontext.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md index a2e12a646..b4523a356 100755 --- a/template_variables/docs/models/operations/replacetemplatesrequestbody.md +++ b/template_variables/docs/models/operations/replacetemplatesrequestbody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | Hello, {{contact.first_name}}!

{{{brand.signature}}}
| -| `parameters` | [Optional[shared.VariableParameters]](undefined/models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | Hello, {{contact.first_name}}!

{{{brand.signature}}}
| +| `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesresponse.md b/template_variables/docs/models/operations/replacetemplatesresponse.md index 0bc098335..8d90c194e 100755 --- a/template_variables/docs/models/operations/replacetemplatesresponse.md +++ b/template_variables/docs/models/operations/replacetemplatesresponse.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 | -| `replace_templates_200_application_json_object` | [Optional[operations.ReplaceTemplates200ApplicationJSON]](undefined/models/operations/replacetemplates200applicationjson.md) | :heavy_minus_sign: | ok | \ 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 | +| `replace_templates_200_application_json_object` | [Optional[ReplaceTemplates200ApplicationJSON]](../../models/operations/replacetemplates200applicationjson.md) | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md index 44f1a05bf..c153a5a68 100755 --- a/template_variables/docs/models/operations/searchvariablesrequestbody.md +++ b/template_variables/docs/models/operations/searchvariablesrequestbody.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | contact | -| `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | -| `lang` | [Optional[operations.SearchVariablesRequestBodyLang]](undefined/models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | -| `query` | *Optional[str]* | :heavy_check_mark: | Search string | logo | -| `size` | *Optional[int]* | :heavy_minus_sign: | N/A | | -| `template_type` | [Optional[shared.TemplateType]](undefined/models/shared/templatetype.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | contact | +| `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | +| `lang` | [Optional[SearchVariablesRequestBodyLang]](../../models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | +| `query` | *str* | :heavy_check_mark: | Search string | logo | +| `size` | *Optional[int]* | :heavy_minus_sign: | N/A | | +| `template_type` | [shared.TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md index 2b296e707..9ec55b0ba 100755 --- a/template_variables/docs/models/operations/searchvariablesresponse.md +++ b/template_variables/docs/models/operations/searchvariablesresponse.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 | -| `variable_results` | list[[shared.VariableResult](undefined/models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file +| `variable_results` | list[[shared.VariableResult](../../models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariablerequest.md b/template_variables/docs/models/operations/updatecustomvariablerequest.md index 33c554638..2f3bdd89f 100755 --- a/template_variables/docs/models/operations/updatecustomvariablerequest.md +++ b/template_variables/docs/models/operations/updatecustomvariablerequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `custom_variable` | [Optional[shared.CustomVariable]](undefined/models/shared/customvariable.md) | :heavy_minus_sign: | N/A | -| `id` | *Optional[str]* | :heavy_check_mark: | Custom variable ID | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `custom_variable` | [Optional[shared.CustomVariable]](../../models/shared/customvariable.md) | :heavy_minus_sign: | N/A | +| `id` | *str* | :heavy_check_mark: | Custom variable ID | \ No newline at end of file diff --git a/template_variables/docs/models/operations/updatecustomvariableresponse.md b/template_variables/docs/models/operations/updatecustomvariableresponse.md index ad52820df..d06f02ab5 100755 --- a/template_variables/docs/models/operations/updatecustomvariableresponse.md +++ b/template_variables/docs/models/operations/updatecustomvariableresponse.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/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md index 476dbc00c..d4e77fc99 100755 --- a/template_variables/docs/models/shared/customvariable.md +++ b/template_variables/docs/models/shared/customvariable.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `config` | [Optional[shared.CustomVariableConfig]](undefined/models/shared/customvariableconfig.md) | :heavy_minus_sign: | Variable configuration | | +| `config` | [Optional[CustomVariableConfig]](../../models/shared/customvariableconfig.md) | :heavy_minus_sign: | Variable configuration | | | `created_at` | *Optional[str]* | :heavy_minus_sign: | Creation time | 2022-04-19T12:41:43.662Z | | `created_by` | *Optional[str]* | :heavy_minus_sign: | Created by | 100042 | | `helper_logic` | *Optional[str]* | :heavy_minus_sign: | The helper function logic | return param1 * param2; | @@ -14,6 +14,6 @@ | `key` | *Optional[str]* | :heavy_minus_sign: | The key which is used for Handlebar variable syntax {{key}} | my_custom_table | | `name` | *Optional[str]* | :heavy_minus_sign: | Custom variable name | My Custom table | | `template` | *Optional[str]* | :heavy_minus_sign: | Handlebar template that used to generate the variable content |


{{#each table_config.header.columns as \|column\|}}
{{#if column.enable}}

{{/if}}
{{/each}}




{{#each order.products as \|product\|}}
{{#if @last}}

{{else}}

{{/if}}
{{#each @root.table_config.header.columns as \|column\|}}
{{#if column.enable}}
{{#if (eq column.id 'item')}}


{{/if}}
{{#if (eq column.id 'quantity')}}


{{/if}}
{{#if (eq column.id 'tax')}}


{{/if}}
{{#if (eq column.id 'unit_amount')}}


{{/if}}
{{#if (eq column.id 'net_total')}}


{{/if}}
{{#if (eq column.id 'amount_tax')}}


{{/if}}
{{#if (eq column.id 'gross_total')}}


{{/if}}
{{/if}}
{{/each}}

{{/each}}

{{#if table_config.footer.gross_total.enable}}
{{#each order.total_details.recurrences as \|item\|}}


{{#if @root.table_config.footer.payment_type.enable}}

{{/if}}
{{#if (isColumnEnabled @root.table_config 'net_total')}}
{{#if @root.table_config.footer.net_total.enable}}

{{/if}}
{{/if}}


{{/each}}
{{/if}}


{{column._label}}

{{#if @root.table_config.body.product_name.enable}}
{{product.name}}
{{/if}}
{{#if @root.table_config.body.price_description.enable}}


{{product.price.description}}
{{/if}}
{{#if @root.table_config.body.product_description.enable}}


{{product.description}}
{{/if}}
{{product.price.quantity}}

{{product.price.tax_rate}}

{{product.price.unit_amount_net}}

{{product.price.amount_subtotal}}

{{product.price.amount_tax}}

{{product.price.amount_total}}
{{#if @root.table_config.body.payment_type.enable}}
{{#if (eq product.price.type 'recurring')}}


{{product.price.billing_period}}
{{/if}}
{{/if}}
{{item.billing_period}} {{item.amount_subtotal}} {{item.amount_total}}
{{#if @root.table_config.footer.amount_tax.enable}}


{{item.full_amount_tax}}
{{/if}}

| -| `type` | [Optional[shared.CustomVariableType]](undefined/models/shared/customvariabletype.md) | :heavy_minus_sign: | Custom variable type | rbse777b-3cf8-4bff-bb0c-253fd1123250 | +| `type` | [Optional[CustomVariableType]](../../models/shared/customvariabletype.md) | :heavy_minus_sign: | Custom variable type | rbse777b-3cf8-4bff-bb0c-253fd1123250 | | `updated_at` | *Optional[str]* | :heavy_minus_sign: | Last update time | 2022-04-20T12:41:43.662Z | | `updated_by` | *Optional[str]* | :heavy_minus_sign: | Updated by | 100042 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/security.md b/template_variables/docs/models/shared/security.md index 9e84312f5..f06333390 100755 --- a/template_variables/docs/models/shared/security.md +++ b/template_variables/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/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md index 5c529040a..378256e02 100755 --- a/template_variables/docs/models/shared/variableparameters.md +++ b/template_variables/docs/models/shared/variableparameters.md @@ -6,12 +6,12 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | `brand_id` | *Optional[float]* | :heavy_minus_sign: | Brand ID | 123451 | -| `context_data` | [Optional[shared.VariableParametersContextData]](undefined/models/shared/variableparameterscontextdata.md) | :heavy_minus_sign: | If context data is avaialble, this data will be used for variable replace. | | -| `custom_variables` | list[[shared.ExternalCustomVariable](undefined/models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | -| `language` | [Optional[shared.VariableParametersLanguage]](undefined/models/shared/variableparameterslanguage.md) | :heavy_minus_sign: | N/A | | +| `context_data` | [Optional[VariableParametersContextData]](../../models/shared/variableparameterscontextdata.md) | :heavy_minus_sign: | If context data is avaialble, this data will be used for variable replace. | | +| `custom_variables` | list[[ExternalCustomVariable](../../models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | +| `language` | [Optional[VariableParametersLanguage]](../../models/shared/variableparameterslanguage.md) | :heavy_minus_sign: | N/A | | | `main_entity_id` | *Optional[str]* | :heavy_minus_sign: | The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID. | 63753437-c9e2-4e83-82bb-b1c666514561 | | `template_name` | *Optional[str]* | :heavy_minus_sign: | The name of email template | | | `template_tags` | list[*str*] | :heavy_minus_sign: | The tags of email template | | -| `template_type` | [Optional[shared.TemplateType]](undefined/models/shared/templatetype.md) | :heavy_check_mark: | N/A | | +| `template_type` | [TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | | `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | | `user_org_id` | *Optional[str]* | :heavy_minus_sign: | Organization ID of the user | 729224 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableresult.md b/template_variables/docs/models/shared/variableresult.md index aef821897..b640b9f77 100755 --- a/template_variables/docs/models/shared/variableresult.md +++ b/template_variables/docs/models/shared/variableresult.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `description` | *Optional[str]* | :heavy_minus_sign: | Variable description | -| `group` | *Optional[str]* | :heavy_minus_sign: | Variable group | -| `insert` | *Optional[str]* | :heavy_minus_sign: | The value which is used to insert to template | -| `qrdata` | *Optional[str]* | :heavy_minus_sign: | Payload for the QR data | -| `type` | [Optional[shared.VariableResultType]](undefined/models/shared/variableresulttype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `description` | *Optional[str]* | :heavy_minus_sign: | Variable description | +| `group` | *Optional[str]* | :heavy_minus_sign: | Variable group | +| `insert` | *Optional[str]* | :heavy_minus_sign: | The value which is used to insert to template | +| `qrdata` | *Optional[str]* | :heavy_minus_sign: | Payload for the QR data | +| `type` | [Optional[VariableResultType]](../../models/shared/variableresulttype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/template_variables/docs/sdks/customvariables/README.md b/template_variables/docs/sdks/customvariables/README.md index b76df1087..860021bc0 100755 --- a/template_variables/docs/sdks/customvariables/README.md +++ b/template_variables/docs/sdks/customvariables/README.md @@ -154,6 +154,7 @@ res = s.custom_variables.create_custom_variable(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -192,6 +193,7 @@ res = s.custom_variables.delete_custom_variable(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -227,6 +229,7 @@ res = s.custom_variables.get_blue_print_table_config() if res.custom_variable is not None: # handle response + pass ``` @@ -259,6 +262,7 @@ res = s.custom_variables.get_custom_variable(req) if res.custom_variable is not None: # handle response + pass ``` ### Parameters @@ -294,6 +298,7 @@ res = s.custom_variables.get_custom_variables() if res.custom_variables is not None: # handle response + pass ``` @@ -449,6 +454,7 @@ res = s.custom_variables.update_custom_variable(req) if res.status_code == 200: # handle response + pass ``` ### Parameters diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index f8acf3e39..76e8a3b56 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -35,6 +35,7 @@ res = s.variables.generate_q_rcode(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -73,6 +74,7 @@ res = s.variables.get_categories(req) if res.category_results is not None: # handle response + pass ``` ### Parameters @@ -130,6 +132,7 @@ res = s.variables.get_variable_context(req) if res.variable_context is not None: # handle response + pass ``` ### Parameters @@ -246,6 +249,7 @@ res = s.variables.replace_templates(req) if res.replace_templates_200_application_json_object is not None: # handle response + pass ``` ### Parameters @@ -294,6 +298,7 @@ res = s.variables.search_variables(req) if res.variable_results is not None: # handle response + pass ``` ### Parameters diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index c22fb51e9..ac6fc7240 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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/template_variables/setup.py b/template_variables/setup.py index 210590e74..477d03e54 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="1.48.0", + version="1.48.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index e1aaba1f6..2237af81d 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -16,7 +16,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, @@ -25,8 +25,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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index dcf979ec3..ad8008939 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 95e78fde812b542eee741ab6f7359be4eb20e5f2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Oct 2023 01:15:38 +0000 Subject: [PATCH 82/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.101.0 --- template_variables/RELEASES.md | 10 +- .../operations/getcategoriesresponse.md | 2 +- .../operations/getcustomvariablesresponse.md | 2 +- .../replacetemplates200applicationjson.md | 2 +- .../operations/replacetemplatesrequestbody.md | 2 +- .../operations/searchvariablesrequestbody.md | 2 +- .../operations/searchvariablesresponse.md | 2 +- .../docs/models/shared/customvariable.md | 2 +- .../docs/models/shared/variablecontext.md | 6 +- .../docs/models/shared/variableparameters.md | 4 +- template_variables/gen.yaml | 8 +- template_variables/pylintrc | 2 +- template_variables/setup.py | 26 ++-- .../src/epilot/custom_variables.py | 4 +- .../models/operations/createcustomvariable.py | 1 - .../models/operations/deletecustomvariable.py | 2 - .../models/operations/generateqrcode.py | 2 - .../operations/getblueprinttableconfig.py | 1 - .../epilot/models/operations/getcategories.py | 6 +- .../models/operations/getcustomvariable.py | 2 - .../models/operations/getcustomvariables.py | 5 +- .../models/operations/getvariablecontext.py | 2 - .../models/operations/replacetemplates.py | 9 +- .../models/operations/searchvariables.py | 8 +- .../models/operations/updatecustomvariable.py | 2 - .../epilot/models/shared/categoryresult.py | 1 - .../epilot/models/shared/customvariable.py | 6 +- .../models/shared/externalcustomvariable.py | 1 - .../src/epilot/models/shared/security.py | 1 - .../epilot/models/shared/variablecontext.py | 9 +- .../models/shared/variableparameters.py | 8 +- .../epilot/models/shared/variableresult.py | 1 - template_variables/src/epilot/sdk.py | 5 +- .../src/epilot/sdkconfiguration.py | 13 +- .../src/epilot/utils/retries.py | 5 +- template_variables/src/epilot/utils/utils.py | 117 ++++++++++-------- template_variables/src/epilot/variables.py | 6 +- 37 files changed, 137 insertions(+), 150 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 3d9869a27..3d2854734 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -562,4 +562,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.1] template_variables \ No newline at end of file +- [python v1.48.1] template_variables + +## 2023-10-18 01:15:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.0.0] template_variables \ No newline at end of file diff --git a/template_variables/docs/models/operations/getcategoriesresponse.md b/template_variables/docs/models/operations/getcategoriesresponse.md index 964565941..f6e2e4103 100755 --- a/template_variables/docs/models/operations/getcategoriesresponse.md +++ b/template_variables/docs/models/operations/getcategoriesresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `category_results` | list[[shared.CategoryResult](../../models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | +| `category_results` | List[[shared.CategoryResult](../../models/shared/categoryresult.md)] | :heavy_minus_sign: | ok | | `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/template_variables/docs/models/operations/getcustomvariablesresponse.md b/template_variables/docs/models/operations/getcustomvariablesresponse.md index 5ab408d7f..998b8b63a 100755 --- a/template_variables/docs/models/operations/getcustomvariablesresponse.md +++ b/template_variables/docs/models/operations/getcustomvariablesresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `custom_variables` | list[[shared.CustomVariable](../../models/shared/customvariable.md)] | :heavy_minus_sign: | Success | +| `custom_variables` | List[[shared.CustomVariable](../../models/shared/customvariable.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/template_variables/docs/models/operations/replacetemplates200applicationjson.md b/template_variables/docs/models/operations/replacetemplates200applicationjson.md index 686b92c58..617f0ca70 100755 --- a/template_variables/docs/models/operations/replacetemplates200applicationjson.md +++ b/template_variables/docs/models/operations/replacetemplates200applicationjson.md @@ -7,4 +7,4 @@ ok | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `outputs` | list[*str*] | :heavy_minus_sign: | N/A | "[Brand Name GmbH] Order confirmation",
"Hello Customer Name

Brand Name GmbH
Brand Name
imprint
"]
| \ No newline at end of file +| `outputs` | List[*str*] | :heavy_minus_sign: | N/A | "[Brand Name GmbH] Order confirmation",
"Hello Customer Name

Brand Name GmbH
Brand Name
imprint
"]
| \ No newline at end of file diff --git a/template_variables/docs/models/operations/replacetemplatesrequestbody.md b/template_variables/docs/models/operations/replacetemplatesrequestbody.md index b4523a356..e574f2121 100755 --- a/template_variables/docs/models/operations/replacetemplatesrequestbody.md +++ b/template_variables/docs/models/operations/replacetemplatesrequestbody.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `inputs` | list[*str*] | :heavy_minus_sign: | N/A | Hello, {{contact.first_name}}!

{{{brand.signature}}}
| +| `inputs` | List[*str*] | :heavy_minus_sign: | N/A | Hello, {{contact.first_name}}!

{{{brand.signature}}}
| | `parameters` | [Optional[shared.VariableParameters]](../../models/shared/variableparameters.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/template_variables/docs/models/operations/searchvariablesrequestbody.md b/template_variables/docs/models/operations/searchvariablesrequestbody.md index c153a5a68..12174d7cd 100755 --- a/template_variables/docs/models/operations/searchvariablesrequestbody.md +++ b/template_variables/docs/models/operations/searchvariablesrequestbody.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `entity_schemas` | list[*str*] | :heavy_minus_sign: | N/A | contact | +| `entity_schemas` | List[*str*] | :heavy_minus_sign: | N/A | contact | | `from_` | *Optional[int]* | :heavy_minus_sign: | N/A | | | `lang` | [Optional[SearchVariablesRequestBodyLang]](../../models/operations/searchvariablesrequestbodylang.md) | :heavy_minus_sign: | N/A | | | `query` | *str* | :heavy_check_mark: | Search string | logo | diff --git a/template_variables/docs/models/operations/searchvariablesresponse.md b/template_variables/docs/models/operations/searchvariablesresponse.md index 9ec55b0ba..fb665ae2d 100755 --- a/template_variables/docs/models/operations/searchvariablesresponse.md +++ b/template_variables/docs/models/operations/searchvariablesresponse.md @@ -8,4 +8,4 @@ | `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 | -| `variable_results` | list[[shared.VariableResult](../../models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file +| `variable_results` | List[[shared.VariableResult](../../models/shared/variableresult.md)] | :heavy_minus_sign: | ok | \ No newline at end of file diff --git a/template_variables/docs/models/shared/customvariable.md b/template_variables/docs/models/shared/customvariable.md index d4e77fc99..fd1b445b3 100755 --- a/template_variables/docs/models/shared/customvariable.md +++ b/template_variables/docs/models/shared/customvariable.md @@ -9,7 +9,7 @@ | `created_at` | *Optional[str]* | :heavy_minus_sign: | Creation time | 2022-04-19T12:41:43.662Z | | `created_by` | *Optional[str]* | :heavy_minus_sign: | Created by | 100042 | | `helper_logic` | *Optional[str]* | :heavy_minus_sign: | The helper function logic | return param1 * param2; | -| `helper_params` | list[*str*] | :heavy_minus_sign: | The helper function parameter's names | param1,param2 | +| `helper_params` | List[*str*] | :heavy_minus_sign: | The helper function parameter's names | param1,param2 | | `id` | *Optional[str]* | :heavy_minus_sign: | ID | rbse777b-3cf8-4bff-bb0c-253fd1123250 | | `key` | *Optional[str]* | :heavy_minus_sign: | The key which is used for Handlebar variable syntax {{key}} | my_custom_table | | `name` | *Optional[str]* | :heavy_minus_sign: | Custom variable name | My Custom table | diff --git a/template_variables/docs/models/shared/variablecontext.md b/template_variables/docs/models/shared/variablecontext.md index ec7ec8f8e..eb4b35f30 100755 --- a/template_variables/docs/models/shared/variablecontext.md +++ b/template_variables/docs/models/shared/variablecontext.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `brand` | dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | -| `contact` | dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | -| `main` | dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `brand` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `contact` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | +| `main` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | [object Object] | | `unsubscribe_url` | *Optional[str]* | :heavy_minus_sign: | N/A | https://consent.sls.epilot.io/v1/unsubscribe?token=abc123 | \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md index 378256e02..e0d68fde1 100755 --- a/template_variables/docs/models/shared/variableparameters.md +++ b/template_variables/docs/models/shared/variableparameters.md @@ -7,11 +7,11 @@ | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | `brand_id` | *Optional[float]* | :heavy_minus_sign: | Brand ID | 123451 | | `context_data` | [Optional[VariableParametersContextData]](../../models/shared/variableparameterscontextdata.md) | :heavy_minus_sign: | If context data is avaialble, this data will be used for variable replace. | | -| `custom_variables` | list[[ExternalCustomVariable](../../models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | +| `custom_variables` | List[[ExternalCustomVariable](../../models/shared/externalcustomvariable.md)] | :heavy_minus_sign: | Custom variables with specified values form other services. | | | `language` | [Optional[VariableParametersLanguage]](../../models/shared/variableparameterslanguage.md) | :heavy_minus_sign: | N/A | | | `main_entity_id` | *Optional[str]* | :heavy_minus_sign: | The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID. | 63753437-c9e2-4e83-82bb-b1c666514561 | | `template_name` | *Optional[str]* | :heavy_minus_sign: | The name of email template | | -| `template_tags` | list[*str*] | :heavy_minus_sign: | The tags of email template | | +| `template_tags` | List[*str*] | :heavy_minus_sign: | The tags of email template | | | `template_type` | [TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | | `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | | `user_org_id` | *Optional[str]* | :heavy_minus_sign: | Organization ID of the user | 729224 | \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index ac6fc7240..99ad60231 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 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 + 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/template_variables/pylintrc b/template_variables/pylintrc index 2a6cf6912..1ed32214e 100755 --- a/template_variables/pylintrc +++ b/template_variables/pylintrc @@ -88,7 +88,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.9 +py-version=3.8 # Discover python modules and packages in the file system subtree. recursive=no diff --git a/template_variables/setup.py b/template_variables/setup.py index 477d03e54..0b1e7b16d 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,33 +10,31 @@ setuptools.setup( name="epilot-template-variables", - 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/template_variables/src/epilot/custom_variables.py b/template_variables/src/epilot/custom_variables.py index b009968ed..8583ce9eb 100755 --- a/template_variables/src/epilot/custom_variables.py +++ b/template_variables/src/epilot/custom_variables.py @@ -3,7 +3,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils from epilot.models import errors, operations, shared -from typing import Optional +from typing import List, Optional class CustomVariables: sdk_configuration: SDKConfiguration @@ -139,7 +139,7 @@ def get_custom_variables(self) -> operations.GetCustomVariablesResponse: if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.CustomVariable]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.CustomVariable]]) res.custom_variables = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) diff --git a/template_variables/src/epilot/models/operations/createcustomvariable.py b/template_variables/src/epilot/models/operations/createcustomvariable.py index f297c4db5..8b1fe63b5 100755 --- a/template_variables/src/epilot/models/operations/createcustomvariable.py +++ b/template_variables/src/epilot/models/operations/createcustomvariable.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class CreateCustomVariableResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/deletecustomvariable.py b/template_variables/src/epilot/models/operations/deletecustomvariable.py index 91fd3efb0..d3df8e64e 100755 --- a/template_variables/src/epilot/models/operations/deletecustomvariable.py +++ b/template_variables/src/epilot/models/operations/deletecustomvariable.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class DeleteCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) @@ -15,7 +14,6 @@ class DeleteCustomVariableRequest: - @dataclasses.dataclass class DeleteCustomVariableResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/generateqrcode.py b/template_variables/src/epilot/models/operations/generateqrcode.py index cc0275ea6..35087ec86 100755 --- a/template_variables/src/epilot/models/operations/generateqrcode.py +++ b/template_variables/src/epilot/models/operations/generateqrcode.py @@ -6,7 +6,6 @@ from typing import Optional - @dataclasses.dataclass class GenerateQRcodeRequest: qrdata: Optional[str] = dataclasses.field(default='{{table_order_items}}', metadata={'query_param': { 'field_name': 'qrdata', 'style': 'form', 'explode': True }}) @@ -15,7 +14,6 @@ class GenerateQRcodeRequest: - @dataclasses.dataclass class GenerateQRcodeResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py index 8d521de37..5a35c51d7 100755 --- a/template_variables/src/epilot/models/operations/getblueprinttableconfig.py +++ b/template_variables/src/epilot/models/operations/getblueprinttableconfig.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class GetBluePrintTableConfigResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/getcategories.py b/template_variables/src/epilot/models/operations/getcategories.py index 88751ec6f..6d0711735 100755 --- a/template_variables/src/epilot/models/operations/getcategories.py +++ b/template_variables/src/epilot/models/operations/getcategories.py @@ -5,7 +5,7 @@ import requests as requests_http from ..shared import categoryresult as shared_categoryresult from enum import Enum -from typing import Optional +from typing import List, Optional class GetCategoriesLang(str, Enum): r"""Language""" @@ -13,7 +13,6 @@ class GetCategoriesLang(str, Enum): DE = 'de' - @dataclasses.dataclass class GetCategoriesRequest: lang: Optional[GetCategoriesLang] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'lang', 'style': 'form', 'explode': True }}) @@ -22,14 +21,13 @@ class GetCategoriesRequest: - @dataclasses.dataclass class GetCategoriesResponse: 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""" - category_results: Optional[list[shared_categoryresult.CategoryResult]] = dataclasses.field(default=None) + category_results: Optional[List[shared_categoryresult.CategoryResult]] = dataclasses.field(default=None) r"""ok""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/template_variables/src/epilot/models/operations/getcustomvariable.py b/template_variables/src/epilot/models/operations/getcustomvariable.py index 750a6421f..6452d7a4a 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariable.py +++ b/template_variables/src/epilot/models/operations/getcustomvariable.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class GetCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) @@ -16,7 +15,6 @@ class GetCustomVariableRequest: - @dataclasses.dataclass class GetCustomVariableResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/getcustomvariables.py b/template_variables/src/epilot/models/operations/getcustomvariables.py index 590a97ba6..298a26a45 100755 --- a/template_variables/src/epilot/models/operations/getcustomvariables.py +++ b/template_variables/src/epilot/models/operations/getcustomvariables.py @@ -4,8 +4,7 @@ import dataclasses import requests as requests_http from ..shared import customvariable as shared_customvariable -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass @@ -14,7 +13,7 @@ class GetCustomVariablesResponse: r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() r"""HTTP response status code for this operation""" - custom_variables: Optional[list[shared_customvariable.CustomVariable]] = dataclasses.field(default=None) + custom_variables: Optional[List[shared_customvariable.CustomVariable]] = 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/template_variables/src/epilot/models/operations/getvariablecontext.py b/template_variables/src/epilot/models/operations/getvariablecontext.py index 4de56845d..1b74838db 100755 --- a/template_variables/src/epilot/models/operations/getvariablecontext.py +++ b/template_variables/src/epilot/models/operations/getvariablecontext.py @@ -11,7 +11,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GetVariableContextRequestBody: parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) @@ -19,7 +18,6 @@ class GetVariableContextRequestBody: - @dataclasses.dataclass class GetVariableContextResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/replacetemplates.py b/template_variables/src/epilot/models/operations/replacetemplates.py index 6f2ea13cd..6e722e50f 100755 --- a/template_variables/src/epilot/models/operations/replacetemplates.py +++ b/template_variables/src/epilot/models/operations/replacetemplates.py @@ -6,30 +6,27 @@ from ..shared import variableparameters as shared_variableparameters from dataclasses_json import Undefined, dataclass_json from epilot import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ReplaceTemplatesRequestBody: - inputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('inputs'), 'exclude': lambda f: f is None }}) + inputs: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('inputs'), 'exclude': lambda f: f is None }}) parameters: Optional[shared_variableparameters.VariableParameters] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('parameters'), 'exclude': lambda f: f is None }}) @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ReplaceTemplates200ApplicationJSON: r"""ok""" - outputs: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('outputs'), 'exclude': lambda f: f is None }}) + outputs: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('outputs'), 'exclude': lambda f: f is None }}) - @dataclasses.dataclass class ReplaceTemplatesResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/operations/searchvariables.py b/template_variables/src/epilot/models/operations/searchvariables.py index dd455a305..5ccc9f422 100755 --- a/template_variables/src/epilot/models/operations/searchvariables.py +++ b/template_variables/src/epilot/models/operations/searchvariables.py @@ -8,7 +8,7 @@ from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils -from typing import Optional +from typing import List, Optional class SearchVariablesRequestBodyLang(str, Enum): EN = 'en' @@ -16,13 +16,12 @@ class SearchVariablesRequestBodyLang(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class SearchVariablesRequestBody: query: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('query') }}) r"""Search string""" template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) - entity_schemas: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) + entity_schemas: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entity_schemas'), 'exclude': lambda f: f is None }}) from_: Optional[int] = dataclasses.field(default=0, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('from'), 'exclude': lambda f: f is None }}) lang: Optional[SearchVariablesRequestBodyLang] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lang'), 'exclude': lambda f: f is None }}) size: Optional[int] = dataclasses.field(default=25, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('size'), 'exclude': lambda f: f is None }}) @@ -30,7 +29,6 @@ class SearchVariablesRequestBody: - @dataclasses.dataclass class SearchVariablesResponse: content_type: str = dataclasses.field() @@ -39,7 +37,7 @@ class SearchVariablesResponse: 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""" - variable_results: Optional[list[shared_variableresult.VariableResult]] = dataclasses.field(default=None) + variable_results: Optional[List[shared_variableresult.VariableResult]] = dataclasses.field(default=None) r"""ok""" diff --git a/template_variables/src/epilot/models/operations/updatecustomvariable.py b/template_variables/src/epilot/models/operations/updatecustomvariable.py index 115f6dcac..9a4a5ee34 100755 --- a/template_variables/src/epilot/models/operations/updatecustomvariable.py +++ b/template_variables/src/epilot/models/operations/updatecustomvariable.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class UpdateCustomVariableRequest: id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': False }}) @@ -17,7 +16,6 @@ class UpdateCustomVariableRequest: - @dataclasses.dataclass class UpdateCustomVariableResponse: content_type: str = dataclasses.field() diff --git a/template_variables/src/epilot/models/shared/categoryresult.py b/template_variables/src/epilot/models/shared/categoryresult.py index 0fa6a0f30..7be1841dd 100755 --- a/template_variables/src/epilot/models/shared/categoryresult.py +++ b/template_variables/src/epilot/models/shared/categoryresult.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class CategoryResult: category: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('category'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/customvariable.py b/template_variables/src/epilot/models/shared/customvariable.py index 7a77e024b..be866151a 100755 --- a/template_variables/src/epilot/models/shared/customvariable.py +++ b/template_variables/src/epilot/models/shared/customvariable.py @@ -5,8 +5,7 @@ from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass @@ -22,7 +21,6 @@ class CustomVariableType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class CustomVariable: config: Optional[CustomVariableConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('config'), 'exclude': lambda f: f is None }}) @@ -33,7 +31,7 @@ class CustomVariable: r"""Created by""" helper_logic: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_logic'), 'exclude': lambda f: f is None }}) r"""The helper function logic""" - helper_params: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_params'), 'exclude': lambda f: f is None }}) + helper_params: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('helper_params'), 'exclude': lambda f: f is None }}) r"""The helper function parameter's names""" id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) r"""ID""" diff --git a/template_variables/src/epilot/models/shared/externalcustomvariable.py b/template_variables/src/epilot/models/shared/externalcustomvariable.py index 00dcf4ba3..f2fd0bac7 100755 --- a/template_variables/src/epilot/models/shared/externalcustomvariable.py +++ b/template_variables/src/epilot/models/shared/externalcustomvariable.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ExternalCustomVariable: value: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('value'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/security.py b/template_variables/src/epilot/models/shared/security.py index e75e944ea..bb832caeb 100755 --- a/template_variables/src/epilot/models/shared/security.py +++ b/template_variables/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/template_variables/src/epilot/models/shared/variablecontext.py b/template_variables/src/epilot/models/shared/variablecontext.py index ad784a632..2efede057 100755 --- a/template_variables/src/epilot/models/shared/variablecontext.py +++ b/template_variables/src/epilot/models/shared/variablecontext.py @@ -4,16 +4,15 @@ import dataclasses from dataclasses_json import Undefined, dataclass_json from epilot import utils -from typing import Any, Optional +from typing import Any, Dict, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class VariableContext: - brand: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) - contact: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) - main: Optional[dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) + brand: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('brand'), 'exclude': lambda f: f is None }}) + contact: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contact'), 'exclude': lambda f: f is None }}) + main: Optional[Dict[str, Any]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main'), 'exclude': lambda f: f is None }}) unsubscribe_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('unsubscribe_url'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index a647b43ac..527caab55 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -7,8 +7,7 @@ from dataclasses_json import Undefined, dataclass_json from enum import Enum from epilot import utils -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass @@ -23,7 +22,6 @@ class VariableParametersLanguage(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class VariableParameters: template_type: shared_templatetype.TemplateType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_type') }}) @@ -31,14 +29,14 @@ class VariableParameters: r"""Brand ID""" context_data: Optional[VariableParametersContextData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_data'), 'exclude': lambda f: f is None }}) r"""If context data is avaialble, this data will be used for variable replace.""" - custom_variables: Optional[list[shared_externalcustomvariable.ExternalCustomVariable]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_variables'), 'exclude': lambda f: f is None }}) + custom_variables: Optional[List[shared_externalcustomvariable.ExternalCustomVariable]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('custom_variables'), 'exclude': lambda f: f is None }}) r"""Custom variables with specified values form other services.""" language: Optional[VariableParametersLanguage] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) main_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('main_entity_id'), 'exclude': lambda f: f is None }}) r"""The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.""" template_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_name'), 'exclude': lambda f: f is None }}) r"""The name of email template""" - template_tags: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_tags'), 'exclude': lambda f: f is None }}) + template_tags: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_tags'), 'exclude': lambda f: f is None }}) r"""The tags of email template""" user_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_id') }}) r"""User ID""" diff --git a/template_variables/src/epilot/models/shared/variableresult.py b/template_variables/src/epilot/models/shared/variableresult.py index cb36a8db3..912b297bf 100755 --- a/template_variables/src/epilot/models/shared/variableresult.py +++ b/template_variables/src/epilot/models/shared/variableresult.py @@ -13,7 +13,6 @@ class VariableResultType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class VariableResult: description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) diff --git a/template_variables/src/epilot/sdk.py b/template_variables/src/epilot/sdk.py index 2237af81d..d5f12bca4 100755 --- a/template_variables/src/epilot/sdk.py +++ b/template_variables/src/epilot/sdk.py @@ -6,6 +6,7 @@ from .variables import Variables from epilot import utils from epilot.models import shared +from typing import Dict class Epilot: r"""Template Variables API: API to provide variables for email and document templates.""" @@ -19,7 +20,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: @@ -32,7 +33,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/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index ad8008939..9e7ffdbfb 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' 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/template_variables/src/epilot/utils/retries.py b/template_variables/src/epilot/utils/retries.py index 2138c1b5e..25f49a1f2 100755 --- a/template_variables/src/epilot/utils/retries.py +++ b/template_variables/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/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index 4388f3b74..ccfad9f7a 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 diff --git a/template_variables/src/epilot/variables.py b/template_variables/src/epilot/variables.py index 820a98827..cc7ddebee 100755 --- a/template_variables/src/epilot/variables.py +++ b/template_variables/src/epilot/variables.py @@ -3,7 +3,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils from epilot.models import errors, operations, shared -from typing import Optional +from typing import List, Optional class Variables: r"""Variables""" @@ -57,7 +57,7 @@ def get_categories(self, request: operations.GetCategoriesRequest) -> operations if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.CategoryResult]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.CategoryResult]]) res.category_results = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) @@ -154,7 +154,7 @@ def search_variables(self, request: operations.SearchVariablesRequestBody) -> op if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.VariableResult]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.VariableResult]]) res.variable_results = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) From ef64d356b36295cc51b2f53208f15cf861f61277 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 20 Oct 2023 01:15:02 +0000 Subject: [PATCH 83/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.101.0 --- template_variables/RELEASES.md | 10 +++++++++- .../docs/models/shared/variableparameters.md | 3 ++- template_variables/docs/sdks/variables/README.md | 2 ++ template_variables/gen.yaml | 4 ++-- template_variables/setup.py | 2 +- .../src/epilot/models/shared/variableparameters.py | 2 ++ template_variables/src/epilot/sdkconfiguration.py | 4 ++-- 7 files changed, 20 insertions(+), 7 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 3d2854734..2ff032aad 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -570,4 +570,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.0.0] template_variables \ No newline at end of file +- [python v2.0.0] template_variables + +## 2023-10-20 01:14:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.0.1] template_variables \ No newline at end of file diff --git a/template_variables/docs/models/shared/variableparameters.md b/template_variables/docs/models/shared/variableparameters.md index e0d68fde1..605dd4598 100755 --- a/template_variables/docs/models/shared/variableparameters.md +++ b/template_variables/docs/models/shared/variableparameters.md @@ -14,4 +14,5 @@ | `template_tags` | List[*str*] | :heavy_minus_sign: | The tags of email template | | | `template_type` | [TemplateType](../../models/shared/templatetype.md) | :heavy_check_mark: | N/A | | | `user_id` | *Optional[str]* | :heavy_minus_sign: | User ID | 50001 | -| `user_org_id` | *Optional[str]* | :heavy_minus_sign: | Organization ID of the user | 729224 | \ No newline at end of file +| `user_org_id` | *Optional[str]* | :heavy_minus_sign: | Organization ID of the user | 729224 | +| `variables_version` | *Optional[str]* | :heavy_minus_sign: | The version of the variables syntax supported. Default is 1.0 | 2 | \ No newline at end of file diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index 76e8a3b56..decd12151 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -125,6 +125,7 @@ req = operations.GetVariableContextRequestBody( template_type=shared.TemplateType.EMAIL, user_id='50001', user_org_id='729224', + variables_version='2', ), ) @@ -242,6 +243,7 @@ req = operations.ReplaceTemplatesRequestBody( template_type=shared.TemplateType.DOCUMENT, user_id='50001', user_org_id='729224', + variables_version='2', ), ) diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 99ad60231..0ac291dee 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -1,6 +1,6 @@ configVersion: 1.0.0 management: - docChecksum: 5ab5fbd5d322b23c841f6974c88dab38 + docChecksum: 99fb691be183dc477e82f74876feafbf docVersion: 1.0.0 speakeasyVersion: 1.101.0 generationVersion: 2.161.0 @@ -14,7 +14,7 @@ features: globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 2.0.0 + version: 2.0.1 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false diff --git a/template_variables/setup.py b/template_variables/setup.py index 0b1e7b16d..b0562f843 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="2.0.0", + version="2.0.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/models/shared/variableparameters.py b/template_variables/src/epilot/models/shared/variableparameters.py index 527caab55..b3241f596 100755 --- a/template_variables/src/epilot/models/shared/variableparameters.py +++ b/template_variables/src/epilot/models/shared/variableparameters.py @@ -42,5 +42,7 @@ class VariableParameters: r"""User ID""" user_org_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('user_org_id') }}) r"""Organization ID of the user""" + variables_version: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variables_version'), 'exclude': lambda f: f is None }}) + r"""The version of the variables syntax supported. Default is 1.0""" diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 9e7ffdbfb..81205a247 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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' + sdk_version: str = '2.0.1' gen_version: str = '2.161.0' - user_agent: str = 'speakeasy-sdk/python 2.0.0 2.161.0 1.0.0 epilot-template-variables' + user_agent: str = 'speakeasy-sdk/python 2.0.1 2.161.0 1.0.0 epilot-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: From 259d9edcc487ca3c18cb8f901115a765007f4581 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 21 Oct 2023 01:13:01 +0000 Subject: [PATCH 84/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.104.0 --- template_variables/RELEASES.md | 10 +++++++++- .../docs/sdks/variables/README.md | 6 +++--- template_variables/gen.yaml | 11 ++++++---- template_variables/setup.py | 2 +- .../src/epilot/sdkconfiguration.py | 6 +++--- template_variables/src/epilot/utils/utils.py | 20 +++++++++++++++++++ 6 files changed, 43 insertions(+), 12 deletions(-) diff --git a/template_variables/RELEASES.md b/template_variables/RELEASES.md index 2ff032aad..396724caa 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -578,4 +578,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.0.1] template_variables \ No newline at end of file +- [python v2.0.1] template_variables + +## 2023-10-21 01:12:41 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.0] template_variables \ No newline at end of file diff --git a/template_variables/docs/sdks/variables/README.md b/template_variables/docs/sdks/variables/README.md index decd12151..40df651bf 100755 --- a/template_variables/docs/sdks/variables/README.md +++ b/template_variables/docs/sdks/variables/README.md @@ -120,7 +120,7 @@ req = operations.GetVariableContextRequestBody( ], main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', template_tags=[ - 'Account', + 'string', ], template_type=shared.TemplateType.EMAIL, user_id='50001', @@ -238,9 +238,9 @@ req = operations.ReplaceTemplatesRequestBody( ], main_entity_id='63753437-c9e2-4e83-82bb-b1c666514561', template_tags=[ - 'Recycled', + 'string', ], - template_type=shared.TemplateType.DOCUMENT, + template_type=shared.TemplateType.EMAIL, user_id='50001', user_org_id='729224', variables_version='2', diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 0ac291dee..1e4959a1b 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,21 +2,24 @@ configVersion: 1.0.0 management: docChecksum: 99fb691be183dc477e82f74876feafbf 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: - core: 3.0.2 + core: 3.3.0 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 2.0.1 + version: 2.1.0 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false + installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=template_variables maxMethodParams: 0 packageName: epilot-template-variables + repoSubDirectory: template_variables diff --git a/template_variables/setup.py b/template_variables/setup.py index b0562f843..f85ed92e7 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="2.0.1", + version="2.1.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 81205a247..1328cc174 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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.1' - gen_version: str = '2.161.0' - user_agent: str = 'speakeasy-sdk/python 2.0.1 2.161.0 1.0.0 epilot-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/template_variables/src/epilot/utils/utils.py b/template_variables/src/epilot/utils/utils.py index ccfad9f7a..3ab126104 100755 --- a/template_variables/src/epilot/utils/utils.py +++ b/template_variables/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 3231af0ca6981527c70989d71e02af9cb699856e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 28 Oct 2023 01:12:18 +0000 Subject: [PATCH 85/85] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.109.0 --- template_variables/README.md | 339 ++++++++++++++++++ template_variables/RELEASES.md | 10 +- template_variables/gen.yaml | 8 +- template_variables/setup.py | 2 +- .../src/epilot/sdkconfiguration.py | 6 +- 5 files changed, 356 insertions(+), 9 deletions(-) diff --git a/template_variables/README.md b/template_variables/README.md index 5b0f8e94c..3958f265c 100755 --- a/template_variables/README.md +++ b/template_variables/README.md @@ -192,6 +192,345 @@ 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://template-variables-api.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.CustomVariable( + config=shared.CustomVariableConfig(), + created_at='2022-04-19T12:41:43.662Z', + created_by='100042', + helper_logic='return param1 * param2;', + helper_params=[ + 'param1', + 'param2', + ], + id='rbse777b-3cf8-4bff-bb0c-253fd1123250', + key='my_custom_table', + name='My Custom table', + template=' + + + {{#each table_config.header.columns as |column|}} + {{#if column.enable}} + + {{/if}} + {{/each}} + + + + + {{#each order.products as |product|}} + {{#if @last}} + + {{else}} + + {{/if}} + {{#each @root.table_config.header.columns as |column|}} + {{#if column.enable}} + {{#if (eq column.id \'item\')}} + + + {{/if}} + {{#if (eq column.id \'quantity\')}} + + + {{/if}} + {{#if (eq column.id \'tax\')}} + + + {{/if}} + {{#if (eq column.id \'unit_amount\')}} + + + {{/if}} + {{#if (eq column.id \'net_total\')}} + + + {{/if}} + {{#if (eq column.id \'amount_tax\')}} + + + {{/if}} + {{#if (eq column.id \'gross_total\')}} + + + {{/if}} + {{/if}} + {{/each}} + + {{/each}} + + {{#if table_config.footer.gross_total.enable}} + {{#each order.total_details.recurrences as |item|}} + + + {{#if @root.table_config.footer.payment_type.enable}} + + {{/if}} + {{#if (isColumnEnabled @root.table_config \'net_total\')}} + {{#if @root.table_config.footer.net_total.enable}} + + {{/if}} + {{/if}} + + + {{/each}} + {{/if}} + + +
{{column._label}}
+ {{#if @root.table_config.body.product_name.enable}} + {{product.name}} + {{/if}} + {{#if @root.table_config.body.price_description.enable}} +
+ {{product.price.description}} + {{/if}} + {{#if @root.table_config.body.product_description.enable}} +
+ {{product.description}} + {{/if}} +
{{product.price.quantity}} + + {{product.price.tax_rate}} + + {{product.price.unit_amount_net}} + + {{product.price.amount_subtotal}} + + {{product.price.amount_tax}} + + {{product.price.amount_total}} + {{#if @root.table_config.body.payment_type.enable}} + {{#if (eq product.price.type \'recurring\')}} +
+ {{product.price.billing_period}} + {{/if}} + {{/if}} +
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}} + {{#if @root.table_config.footer.amount_tax.enable}} +
+ {{item.full_amount_tax}} + {{/if}} +
+', + type=shared.CustomVariableType.CUSTOM, + updated_at='2022-04-20T12:41:43.662Z', + updated_by='100042', +) + +res = s.custom_variables.create_custom_variable(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://template-variables-api.sls.epilot.io" +) + +req = shared.CustomVariable( + config=shared.CustomVariableConfig(), + created_at='2022-04-19T12:41:43.662Z', + created_by='100042', + helper_logic='return param1 * param2;', + helper_params=[ + 'param1', + 'param2', + ], + id='rbse777b-3cf8-4bff-bb0c-253fd1123250', + key='my_custom_table', + name='My Custom table', + template=' + + + {{#each table_config.header.columns as |column|}} + {{#if column.enable}} + + {{/if}} + {{/each}} + + + + + {{#each order.products as |product|}} + {{#if @last}} + + {{else}} + + {{/if}} + {{#each @root.table_config.header.columns as |column|}} + {{#if column.enable}} + {{#if (eq column.id \'item\')}} + + + {{/if}} + {{#if (eq column.id \'quantity\')}} + + + {{/if}} + {{#if (eq column.id \'tax\')}} + + + {{/if}} + {{#if (eq column.id \'unit_amount\')}} + + + {{/if}} + {{#if (eq column.id \'net_total\')}} + + + {{/if}} + {{#if (eq column.id \'amount_tax\')}} + + + {{/if}} + {{#if (eq column.id \'gross_total\')}} + + + {{/if}} + {{/if}} + {{/each}} + + {{/each}} + + {{#if table_config.footer.gross_total.enable}} + {{#each order.total_details.recurrences as |item|}} + + + {{#if @root.table_config.footer.payment_type.enable}} + + {{/if}} + {{#if (isColumnEnabled @root.table_config \'net_total\')}} + {{#if @root.table_config.footer.net_total.enable}} + + {{/if}} + {{/if}} + + + {{/each}} + {{/if}} + + +
{{column._label}}
+ {{#if @root.table_config.body.product_name.enable}} + {{product.name}} + {{/if}} + {{#if @root.table_config.body.price_description.enable}} +
+ {{product.price.description}} + {{/if}} + {{#if @root.table_config.body.product_description.enable}} +
+ {{product.description}} + {{/if}} +
{{product.price.quantity}} + + {{product.price.tax_rate}} + + {{product.price.unit_amount_net}} + + {{product.price.amount_subtotal}} + + {{product.price.amount_tax}} + + {{product.price.amount_total}} + {{#if @root.table_config.body.payment_type.enable}} + {{#if (eq product.price.type \'recurring\')}} +
+ {{product.price.billing_period}} + {{/if}} + {{/if}} +
{{item.billing_period}}{{item.amount_subtotal}}{{item.amount_total}} + {{#if @root.table_config.footer.amount_tax.enable}} +
+ {{item.full_amount_tax}} + {{/if}} +
+', + type=shared.CustomVariableType.CUSTOM, + updated_at='2022-04-20T12:41:43.662Z', + updated_by='100042', +) + +res = s.custom_variables.create_custom_variable(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/template_variables/RELEASES.md b/template_variables/RELEASES.md index 396724caa..0d96444b1 100644 --- a/template_variables/RELEASES.md +++ b/template_variables/RELEASES.md @@ -586,4 +586,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml - Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.1.0] template_variables \ No newline at end of file +- [python v2.1.0] template_variables + +## 2023-10-28 01:12:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml +- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.1] template_variables \ No newline at end of file diff --git a/template_variables/gen.yaml b/template_variables/gen.yaml index 1e4959a1b..f56202584 100644 --- a/template_variables/gen.yaml +++ b/template_variables/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 99fb691be183dc477e82f74876feafbf 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 @@ -11,11 +11,11 @@ generation: telemetryEnabled: false features: python: - 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/template_variables/setup.py b/template_variables/setup.py index f85ed92e7..57a8e4115 100755 --- a/template_variables/setup.py +++ b/template_variables/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-template-variables", - version="2.1.0", + version="2.1.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/template_variables/src/epilot/sdkconfiguration.py b/template_variables/src/epilot/sdkconfiguration.py index 1328cc174..b2d0f797e 100755 --- a/template_variables/src/epilot/sdkconfiguration.py +++ b/template_variables/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-template-variables' + 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-template-variables' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: