From 0bf41c86f14de1f8555d4c7b710e7ca590aa9be6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Apr 2023 01:02:35 +0000 Subject: [PATCH 01/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.3 --- document/README.md | 2 +- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/pylintrc | 12 +++++------- document/setup.py | 2 +- document/src/epilot/documents.py | 1 - document/src/epilot/sdk.py | 5 ++--- 7 files changed, 19 insertions(+), 17 deletions(-) diff --git a/document/README.md b/document/README.md index d9f5437d5..1727011b9 100755 --- a/document/README.md +++ b/document/README.md @@ -42,7 +42,7 @@ if res.generate_document_200_application_json_object is not None: -## SDK Available Operations +## Available Resources and Operations ### documents diff --git a/document/RELEASES.md b/document/RELEASES.md index a6066d95f..b85ffd7dc 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -34,4 +34,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:02:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 6da6ae8fe..d182a492d 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 8fe5464a1ad4d46ff34f4097ba4129f3 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-document diff --git a/document/pylintrc b/document/pylintrc index 81c63b93f..c2a020bfc 100755 --- a/document/pylintrc +++ b/document/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 @@ -438,7 +433,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/document/setup.py b/document/setup.py index 965ca9e0f..31246e70e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.2.2", + version="1.2.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index 9ae2c0b45..b8de18bab 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -33,7 +33,6 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> - .pdf Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. - """ base_url = self._server_url diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 32052cc4b..1132af7d4 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -14,7 +14,6 @@ class Epilot: r"""Generate documents with epilot data [Feature Documentation](https://docs.epilot.io/docs/files/document-generation) - """ documents: Documents r"""Document Generation""" @@ -23,8 +22,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.2.2" - _gen_version: str = "2.16.5" + _sdk_version: str = "1.2.3" + _gen_version: str = "2.16.7" def __init__(self, security: shared.Security = None, From 2d5a21dc3a5d73150937c86fe0491a19bef353ba Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Apr 2023 00:57:49 +0000 Subject: [PATCH 02/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.6 --- document/README.md | 1 + document/RELEASES.md | 8 +- document/files.gen | 1 + document/gen.yaml | 8 +- document/setup.py | 2 +- document/src/epilot/documents.py | 37 +++++ .../src/epilot/models/operations/__init__.py | 3 +- .../models/operations/generatedocumentv2.py | 148 ++++++++++++++++++ document/src/epilot/sdk.py | 4 +- 9 files changed, 203 insertions(+), 9 deletions(-) create mode 100755 document/src/epilot/models/operations/generatedocumentv2.py diff --git a/document/README.md b/document/README.md index 1727011b9..57783d19f 100755 --- a/document/README.md +++ b/document/README.md @@ -48,6 +48,7 @@ if res.generate_document_200_application_json_object is not None: ### documents * `generate_document` - generateDocument +* `generate_document_v2` - generateDocumentV2 ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/document/RELEASES.md b/document/RELEASES.md index b85ffd7dc..cede6b2a8 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -40,4 +40,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy + +## 2023-04-06 00:57:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index a629947ca..ceca1752c 100755 --- a/document/files.gen +++ b/document/files.gen @@ -8,6 +8,7 @@ src/epilot/utils/__init__.py src/epilot/utils/retries.py src/epilot/utils/utils.py src/epilot/models/operations/generatedocument.py +src/epilot/models/operations/generatedocumentv2.py src/epilot/models/operations/__init__.py src/epilot/models/shared/s3reference.py src/epilot/models/shared/security.py diff --git a/document/gen.yaml b/document/gen.yaml index d182a492d..32af98abb 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -1,16 +1,16 @@ configVersion: 1.0.0 management: - docChecksum: 8fe5464a1ad4d46ff34f4097ba4129f3 + docChecksum: 26af886126cd7b6b59e095c15fe8528f 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-document diff --git a/document/setup.py b/document/setup.py index 31246e70e..5200d9311 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.2.3", + version="1.3.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index b8de18bab..27c773e07 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -57,4 +57,41 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> return res + def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> operations.GenerateDocumentV2Response: + r"""generateDocumentV2 + Builds document generated from input document with variables. + + Supported input document types: + - .docx + + Supported output document types: + - .pdf + - .docx but limited to only text based variables + + Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. + """ + base_url = self._server_url + + url = base_url.removesuffix('/') + '/v2/documents:generate' + + headers = {} + req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json') + if req_content_type not in ('multipart/form-data', 'multipart/mixed'): + headers['content-type'] = req_content_type + query_params = utils.get_query_params(operations.GenerateDocumentV2Request, request) + + client = self._security_client + + http_res = client.request('POST', url, params=query_params, data=data, files=form, headers=headers) + content_type = http_res.headers.get('Content-Type') + + res = operations.GenerateDocumentV2Response(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) + + if http_res.status_code == 200: + if utils.match_content_type(content_type, 'application/json'): + out = utils.unmarshal_json(http_res.text, Optional[operations.GenerateDocumentV2200ApplicationJSON]) + res.generate_document_v2_200_application_json_object = out + + return res + \ No newline at end of file diff --git a/document/src/epilot/models/operations/__init__.py b/document/src/epilot/models/operations/__init__.py index 6e6164cc2..634ccff52 100755 --- a/document/src/epilot/models/operations/__init__.py +++ b/document/src/epilot/models/operations/__init__.py @@ -1,5 +1,6 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" from .generatedocument import * +from .generatedocumentv2 import * -__all__ = ["GenerateDocument200ApplicationJSON","GenerateDocument200ApplicationJSONOutputDocument","GenerateDocumentRequestBody","GenerateDocumentRequestBodyTemplateDocument","GenerateDocumentResponse"] +__all__ = ["GenerateDocument200ApplicationJSON","GenerateDocument200ApplicationJSONOutputDocument","GenerateDocumentRequestBody","GenerateDocumentRequestBodyTemplateDocument","GenerateDocumentResponse","GenerateDocumentV2200ApplicationJSON","GenerateDocumentV2200ApplicationJSONDocxOutput","GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument","GenerateDocumentV2200ApplicationJSONJobStatusEnum","GenerateDocumentV2200ApplicationJSONPdfOutput","GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument","GenerateDocumentV2200ApplicationJSONVariablePayload","GenerateDocumentV2ModeEnum","GenerateDocumentV2Request","GenerateDocumentV2RequestBody","GenerateDocumentV2RequestBodyLanguageEnum","GenerateDocumentV2RequestBodyTemplateDocument","GenerateDocumentV2RequestBodyVariablePayload","GenerateDocumentV2Response"] diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py new file mode 100755 index 000000000..fef34e54d --- /dev/null +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -0,0 +1,148 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from ..shared import s3reference as shared_s3reference +from dataclasses_json import Undefined, dataclass_json +from enum import Enum +from epilot import utils +from typing import Optional + +class GenerateDocumentV2RequestBodyLanguageEnum(str, Enum): + r"""Language to use""" + EN = 'en' + DE = 'de' + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2RequestBodyTemplateDocument: + r"""Input template document""" + + filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) + r"""Document original filename""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2RequestBodyVariablePayload: + r"""Custom values for variables in the template. Takes the higher precedence than others.""" + + additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2RequestBody: + + template_document: GenerateDocumentV2RequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) + r"""Input template document""" + context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) + r"""Entity to use for variable context""" + language: Optional[GenerateDocumentV2RequestBodyLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + r"""Language to use""" + 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 for variable context""" + variable_payload: Optional[GenerateDocumentV2RequestBodyVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) + r"""Custom values for variables in the template. Takes the higher precedence than others.""" + +class GenerateDocumentV2ModeEnum(str, Enum): + r"""Type of mode used for document generation flow. + Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. + Full - Goes through all the steps for the full generation of final document + """ + PARTIAL_GENERATION = 'partial_generation' + FULL_GENERATION = 'full_generation' + + +@dataclasses.dataclass +class GenerateDocumentV2Request: + + job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) + r"""Job ID for tracking the status of document generation action""" + mode: Optional[GenerateDocumentV2ModeEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) + r"""Type of mode used for document generation flow. + Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. + Full - Goes through all the steps for the full generation of final document + """ + request_body: Optional[GenerateDocumentV2RequestBody] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: + + filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) + r"""Generated document filename for DOCX""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2200ApplicationJSONDocxOutput: + + output_document: Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) + r"""Pre-signed S3 GET URL for DOCX preview""" + +class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): + r"""Status of the job""" + STARTED = 'STARTED' + PROCESSING = 'PROCESSING' + COMPLETED = 'COMPLETED' + FAILED = 'FAILED' + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: + + filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) + r"""Generated document filename for PDF""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2200ApplicationJSONPdfOutput: + + output_document: Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) + r"""Pre-signed S3 GET URL for PDF preview""" + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2200ApplicationJSONVariablePayload: + r"""List of variables and its corresponding replaced values from the document template""" + + additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class GenerateDocumentV2200ApplicationJSON: + r"""Generated document output""" + + docx_output: Optional[GenerateDocumentV2200ApplicationJSONDocxOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('docx_output'), 'exclude': lambda f: f is None }}) + job_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_id'), 'exclude': lambda f: f is None }}) + job_status: Optional[GenerateDocumentV2200ApplicationJSONJobStatusEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_status'), 'exclude': lambda f: f is None }}) + r"""Status of the job""" + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + r"""A message explaining the progress""" + pdf_output: Optional[GenerateDocumentV2200ApplicationJSONPdfOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('pdf_output'), 'exclude': lambda f: f is None }}) + variable_payload: Optional[GenerateDocumentV2200ApplicationJSONVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) + r"""List of variables and its corresponding replaced values from the document template""" + + +@dataclasses.dataclass +class GenerateDocumentV2Response: + + content_type: str = dataclasses.field() + status_code: int = dataclasses.field() + generate_document_v2_200_application_json_object: Optional[GenerateDocumentV2200ApplicationJSON] = dataclasses.field(default=None) + r"""Generated document output""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 1132af7d4..9d138d00e 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 810223c0d10459a7027ee928831b7c76f5b3d0ca Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Apr 2023 00:56:02 +0000 Subject: [PATCH 03/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.6 --- document/RELEASES.md | 6 ++++++ document/gen.yaml | 4 ++-- document/setup.py | 2 +- document/src/epilot/models/operations/generatedocumentv2.py | 2 +- document/src/epilot/sdk.py | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index cede6b2a8..0c455ff0c 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -46,4 +46,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy + +## 2023-04-07 00:55:50 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 32af98abb..b995b591b 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -1,6 +1,6 @@ configVersion: 1.0.0 management: - docChecksum: 26af886126cd7b6b59e095c15fe8528f + docChecksum: 6ac9612fc93de607d06a524eefab68ee docVersion: 1.0.0 speakeasyVersion: 1.19.6 generationVersion: 2.17.8 @@ -10,7 +10,7 @@ generation: sdkFlattening: true singleTagPerOp: false python: - version: 1.3.0 + version: 1.3.1 author: epilot description: Python Client SDK for Epilot packageName: epilot-document diff --git a/document/setup.py b/document/setup.py index 5200d9311..62ab5863c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.3.0", + version="1.3.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index fef34e54d..778b324ce 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -91,7 +91,7 @@ class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): r"""Status of the job""" STARTED = 'STARTED' PROCESSING = 'PROCESSING' - COMPLETED = 'COMPLETED' + SUCCESS = 'SUCCESS' FAILED = 'FAILED' diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 9d138d00e..a9e61c7ac 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,7 +22,7 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.3.0" + _sdk_version: str = "1.3.1" _gen_version: str = "2.17.8" def __init__(self, From 473cdddea470d9b0039859995aa7b20cded8b336 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Apr 2023 00:59:57 +0000 Subject: [PATCH 04/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.7 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 0c455ff0c..dddb2f7db 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -52,4 +52,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy + +## 2023-04-12 00:59:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index b995b591b..7f6d4562a 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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.1 + version: 1.3.2 author: epilot description: Python Client SDK for Epilot packageName: epilot-document diff --git a/document/setup.py b/document/setup.py index 62ab5863c..298b06b70 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.3.1", + version="1.3.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index a9e61c7ac..8038e982d 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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.8" + _sdk_version: str = "1.3.2" + _gen_version: str = "2.17.9" def __init__(self, security: shared.Security = None, From 8c7005a1ea73b1970bdc441abe47be90335498d8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Apr 2023 00:59:39 +0000 Subject: [PATCH 05/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.0 --- document/RELEASES.md | 8 +- document/gen.yaml | 6 +- document/pylintrc | 1 + document/setup.py | 2 +- document/src/epilot/sdk.py | 4 +- document/src/epilot/utils/utils.py | 127 ++++++++++++++++------------- 6 files changed, 84 insertions(+), 64 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index dddb2f7db..1fbddaf26 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -58,4 +58,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy + +## 2023-04-14 00:59:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 7f6d4562a..c787eb638 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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.2 + version: 1.4.0 author: epilot description: Python Client SDK for Epilot packageName: epilot-document diff --git a/document/pylintrc b/document/pylintrc index c2a020bfc..cf84a65c0 100755 --- a/document/pylintrc +++ b/document/pylintrc @@ -437,6 +437,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/document/setup.py b/document/setup.py index 298b06b70..796d42c23 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.3.2", + version="1.4.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 8038e982d..4bec25455 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.3.2" - _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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 9d4fba324..986a86937 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 bf18d024f46f5cc9e7b4aad086fcf0b86927c432 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Apr 2023 00:58:42 +0000 Subject: [PATCH 06/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 7 +++---- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 1fbddaf26..702094e02 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -64,4 +64,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy + +## 2023-04-18 00:58:31 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index c787eb638..ba60768e7 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,15 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 796d42c23..6d05a78fc 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.4.0", + version="1.4.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 4bec25455..68f80f3a4 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 0df34fbc05867345008bf49c16de9c4c35d110f3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Apr 2023 01:02:10 +0000 Subject: [PATCH 07/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.2 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 702094e02..890561f86 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -70,4 +70,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:01:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index ba60768e7..f8e129476 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 6d05a78fc..57116791f 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.4.1", + version="1.4.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 68f80f3a4..a2fbb7639 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 72d620f5d3e7a08f689267a551a68bc63fd9f1b6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 21 Apr 2023 00:59:46 +0000 Subject: [PATCH 08/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.21.4 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 890561f86..e70e66dfb 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -76,4 +76,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy + +## 2023-04-21 00:59:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index f8e129476..bee6eaa71 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 57116791f..4d5cd05e8 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.4.2", + version="1.5.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index a2fbb7639..75471c1bc 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 af1ff54b8045daf0023ccc9659b366e600deee12 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Apr 2023 01:00:50 +0000 Subject: [PATCH 09/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.22.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index e70e66dfb..b79d4055a 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -82,4 +82,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index bee6eaa71..45a0a77fd 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 4d5cd05e8..87c519e54 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.5.0", + version="1.6.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 75471c1bc..5fec514f5 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 18aaca5aa1a5b3bbb3079f7e2ffd6000a7261c70 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Apr 2023 01:00:50 +0000 Subject: [PATCH 10/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.23.1 --- document/README.md | 8 +-- document/RELEASES.md | 8 ++- document/USAGE.md | 2 +- document/docs/documents/README.md | 108 ++++++++++++++++++++++++++++++ document/docs/epilot/README.md | 11 +++ document/files.gen | 2 + document/gen.yaml | 6 +- document/setup.py | 4 +- document/src/epilot/sdk.py | 4 +- 9 files changed, 140 insertions(+), 13 deletions(-) create mode 100755 document/docs/documents/README.md create mode 100755 document/docs/epilot/README.md diff --git a/document/README.md b/document/README.md index 57783d19f..e61944e7e 100755 --- a/document/README.md +++ b/document/README.md @@ -33,7 +33,7 @@ req = operations.GenerateDocumentRequestBody( ), user_id="100321", ) - + res = s.documents.generate_document(req) if res.generate_document_200_application_json_object is not None: @@ -45,10 +45,10 @@ if res.generate_document_200_application_json_object is not None: ## Available Resources and Operations -### documents +### [documents](docs/documents/README.md) -* `generate_document` - generateDocument -* `generate_document_v2` - generateDocumentV2 +* [generate_document](docs/documents/README.md#generate_document) - generateDocument +* [generate_document_v2](docs/documents/README.md#generate_document_v2) - generateDocumentV2 ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/document/RELEASES.md b/document/RELEASES.md index b79d4055a..75cba14a2 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -88,4 +88,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index 7b2b27cc9..0b6a0a946 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -22,7 +22,7 @@ req = operations.GenerateDocumentRequestBody( ), user_id="100321", ) - + res = s.documents.generate_document(req) if res.generate_document_200_application_json_object is not None: diff --git a/document/docs/documents/README.md b/document/docs/documents/README.md new file mode 100755 index 000000000..d346689c4 --- /dev/null +++ b/document/docs/documents/README.md @@ -0,0 +1,108 @@ +# documents + +## Overview + +Document Generation + +### Available Operations + +* [generate_document](#generate_document) - generateDocument +* [generate_document_v2](#generate_document_v2) - generateDocumentV2 + +## generate_document + +Builds document generated from input document with variables. + +Supported input document types: +- .docx + +Supported output document types: +- .pdf + +Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. + + +### 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.GenerateDocumentRequestBody( + context_entity_id="bcd0aab9-b544-42b0-8bfb-6d449d02eacc", + language="de", + template_document=operations.GenerateDocumentRequestBodyTemplateDocument( + filename="my-template-{{order.order_number}}.docx", + s3ref=shared.S3Reference( + bucket="document-api-prod", + key="uploads/my-template.pdf", + ), + ), + user_id="100321", +) + +res = s.documents.generate_document(req) + +if res.generate_document_200_application_json_object is not None: + # handle response +``` + +## generate_document_v2 + +Builds document generated from input document with variables. + +Supported input document types: +- .docx + +Supported output document types: +- .pdf +- .docx but limited to only text based variables + +Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. + + +### 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.GenerateDocumentV2Request( + request_body=operations.GenerateDocumentV2RequestBody( + context_entity_id="bcd0aab9-b544-42b0-8bfb-6d449d02eacc", + language="de", + template_document=operations.GenerateDocumentV2RequestBodyTemplateDocument( + filename="my-template-{{order.order_number}}.docx", + s3ref=shared.S3Reference( + bucket="document-api-prod", + key="uploads/my-template.pdf", + ), + ), + user_id="100321", + variable_payload=operations.GenerateDocumentV2RequestBodyVariablePayload( + additional_properties="corrupti", + ), + ), + job_id="provident", + mode="full_generation", +) + +res = s.documents.generate_document_v2(req) + +if res.generate_document_v2_200_application_json_object is not None: + # handle response +``` diff --git a/document/docs/epilot/README.md b/document/docs/epilot/README.md new file mode 100755 index 000000000..672f4f04b --- /dev/null +++ b/document/docs/epilot/README.md @@ -0,0 +1,11 @@ +# Epilot SDK + +## Overview + +Generate documents with epilot data + +[Feature Documentation](https://docs.epilot.io/docs/files/document-generation) + + +### Available Operations + diff --git a/document/files.gen b/document/files.gen index ceca1752c..66a09915a 100755 --- a/document/files.gen +++ b/document/files.gen @@ -13,4 +13,6 @@ src/epilot/models/operations/__init__.py src/epilot/models/shared/s3reference.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py +docs/epilot/README.md +docs/documents/README.md USAGE.md \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 45a0a77fd..1d773e4a1 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 87c519e54..ec1aaf71c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,14 +10,14 @@ setuptools.setup( name="epilot-document", - 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/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 5fec514f5..5f746389e 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 afc0624b4707355bf7cd5fca40ccb21d0f4bcded Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Apr 2023 01:02:50 +0000 Subject: [PATCH 11/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.25.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 75cba14a2..152fa81f6 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -94,4 +94,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:02:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 1d773e4a1..9bed4276c 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index ec1aaf71c..13674b70f 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.7.0", + version="1.8.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 5f746389e..f5068e43e 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 4da84877303e11fc5af2068c51e9846c52c7fc2a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Apr 2023 01:02:34 +0000 Subject: [PATCH 12/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.2 --- document/RELEASES.md | 8 +- document/gen.yaml | 6 +- document/setup.py | 2 +- .../models/operations/generatedocument.py | 42 ++++++--- .../models/operations/generatedocumentv2.py | 90 ++++++++++++------- .../src/epilot/models/shared/s3reference.py | 6 +- document/src/epilot/models/shared/security.py | 3 +- document/src/epilot/sdk.py | 4 +- 8 files changed, 107 insertions(+), 54 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 152fa81f6..e4ba96e49 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -100,4 +100,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:02:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 9bed4276c..27df159bb 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 13674b70f..d65613df6 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.8.0", + version="1.9.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py index 903edcef8..e0ccc7677 100755 --- a/document/src/epilot/models/operations/generatedocument.py +++ b/document/src/epilot/models/operations/generatedocument.py @@ -15,8 +15,10 @@ class GenerateDocumentRequestBodyTemplateDocument: r"""Input template document""" filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Document original filename""" - s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + r"""Document original filename""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -24,13 +26,17 @@ class GenerateDocumentRequestBodyTemplateDocument: class GenerateDocumentRequestBody: template_document: GenerateDocumentRequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) - r"""Input template document""" + + r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) - r"""Entity to use for variable context""" + + r"""Entity to use for variable context""" language: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) - r"""Language to use""" + + r"""Language to use""" 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 for variable context""" + + r"""User Id for variable context""" @dataclass_json(undefined=Undefined.EXCLUDE) @@ -38,8 +44,10 @@ class GenerateDocumentRequestBody: class GenerateDocument200ApplicationJSONOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Generated document filename""" - s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + r"""Generated document filename""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -47,17 +55,23 @@ class GenerateDocument200ApplicationJSONOutputDocument: class GenerateDocument200ApplicationJSON: r"""Generated document output""" - output_document: Optional[GenerateDocument200ApplicationJSONOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + output_document: Optional[GenerateDocument200ApplicationJSONOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) - r"""Pre-signed S3 GET URL for preview""" + + r"""Pre-signed S3 GET URL for preview""" @dataclasses.dataclass class GenerateDocumentResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + generate_document_200_application_json_object: Optional[GenerateDocument200ApplicationJSON] = dataclasses.field(default=None) - r"""Generated document output""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Generated document output""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index 778b324ce..f0d488665 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -21,8 +21,10 @@ class GenerateDocumentV2RequestBodyTemplateDocument: r"""Input template document""" filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Document original filename""" - s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + r"""Document original filename""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -30,7 +32,8 @@ class GenerateDocumentV2RequestBodyTemplateDocument: class GenerateDocumentV2RequestBodyVariablePayload: r"""Custom values for variables in the template. Takes the higher precedence than others.""" - additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -38,15 +41,20 @@ class GenerateDocumentV2RequestBodyVariablePayload: class GenerateDocumentV2RequestBody: template_document: GenerateDocumentV2RequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) - r"""Input template document""" + + r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) - r"""Entity to use for variable context""" + + r"""Entity to use for variable context""" language: Optional[GenerateDocumentV2RequestBodyLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) - r"""Language to use""" + + r"""Language to use""" 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 for variable context""" + + r"""User Id for variable context""" variable_payload: Optional[GenerateDocumentV2RequestBodyVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) - r"""Custom values for variables in the template. Takes the higher precedence than others.""" + + r"""Custom values for variables in the template. Takes the higher precedence than others.""" class GenerateDocumentV2ModeEnum(str, Enum): r"""Type of mode used for document generation flow. @@ -61,13 +69,16 @@ class GenerateDocumentV2ModeEnum(str, Enum): class GenerateDocumentV2Request: job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) - r"""Job ID for tracking the status of document generation action""" + + r"""Job ID for tracking the status of document generation action""" mode: Optional[GenerateDocumentV2ModeEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) + r"""Type of mode used for document generation flow. Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. Full - Goes through all the steps for the full generation of final document - """ - request_body: Optional[GenerateDocumentV2RequestBody] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + """ + request_body: Optional[GenerateDocumentV2RequestBody] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -75,17 +86,21 @@ class GenerateDocumentV2Request: class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Generated document filename for DOCX""" - s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + r"""Generated document filename for DOCX""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONDocxOutput: - output_document: Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + output_document: Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) - r"""Pre-signed S3 GET URL for DOCX preview""" + + r"""Pre-signed S3 GET URL for DOCX preview""" class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): r"""Status of the job""" @@ -100,17 +115,21 @@ class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Generated document filename for PDF""" - s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + r"""Generated document filename for PDF""" + s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONPdfOutput: - output_document: Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + output_document: Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) + preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) - r"""Pre-signed S3 GET URL for PDF preview""" + + r"""Pre-signed S3 GET URL for PDF preview""" @dataclass_json(undefined=Undefined.EXCLUDE) @@ -118,7 +137,8 @@ class GenerateDocumentV2200ApplicationJSONPdfOutput: class GenerateDocumentV2200ApplicationJSONVariablePayload: r"""List of variables and its corresponding replaced values from the document template""" - additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @@ -126,23 +146,33 @@ class GenerateDocumentV2200ApplicationJSONVariablePayload: class GenerateDocumentV2200ApplicationJSON: r"""Generated document output""" - docx_output: Optional[GenerateDocumentV2200ApplicationJSONDocxOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('docx_output'), 'exclude': lambda f: f is None }}) - job_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_id'), 'exclude': lambda f: f is None }}) + docx_output: Optional[GenerateDocumentV2200ApplicationJSONDocxOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('docx_output'), 'exclude': lambda f: f is None }}) + + job_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_id'), 'exclude': lambda f: f is None }}) + job_status: Optional[GenerateDocumentV2200ApplicationJSONJobStatusEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_status'), 'exclude': lambda f: f is None }}) - r"""Status of the job""" + + r"""Status of the job""" message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) - r"""A message explaining the progress""" - pdf_output: Optional[GenerateDocumentV2200ApplicationJSONPdfOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('pdf_output'), 'exclude': lambda f: f is None }}) + + r"""A message explaining the progress""" + pdf_output: Optional[GenerateDocumentV2200ApplicationJSONPdfOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('pdf_output'), 'exclude': lambda f: f is None }}) + variable_payload: Optional[GenerateDocumentV2200ApplicationJSONVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) - r"""List of variables and its corresponding replaced values from the document template""" + + r"""List of variables and its corresponding replaced values from the document template""" @dataclasses.dataclass class GenerateDocumentV2Response: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + generate_document_v2_200_application_json_object: Optional[GenerateDocumentV2200ApplicationJSON] = dataclasses.field(default=None) - r"""Generated document output""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Generated document output""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/document/src/epilot/models/shared/s3reference.py b/document/src/epilot/models/shared/s3reference.py index a6848b7e0..df0e00c61 100755 --- a/document/src/epilot/models/shared/s3reference.py +++ b/document/src/epilot/models/shared/s3reference.py @@ -10,6 +10,8 @@ @dataclasses.dataclass class S3Reference: - bucket: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bucket') }}) - key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('key') }}) + bucket: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bucket') }}) + + key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('key') }}) + \ No newline at end of file diff --git a/document/src/epilot/models/shared/security.py b/document/src/epilot/models/shared/security.py index cca0d01c8..2157ebc16 100755 --- a/document/src/epilot/models/shared/security.py +++ b/document/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/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index f5068e43e..0cd0bd6f2 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 b74768e86a2650c39fd122e8f203b2ec564350b1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 29 Apr 2023 00:59:31 +0000 Subject: [PATCH 13/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.4 --- document/RELEASES.md | 8 ++++- document/gen.yaml | 6 ++-- document/setup.py | 2 +- .../models/operations/generatedocument.py | 14 --------- .../models/operations/generatedocumentv2.py | 30 ------------------- .../src/epilot/models/shared/s3reference.py | 2 -- document/src/epilot/models/shared/security.py | 1 - document/src/epilot/sdk.py | 4 +-- 8 files changed, 13 insertions(+), 54 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index e4ba96e49..9b2ca4665 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -106,4 +106,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy + +## 2023-04-29 00:59:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 27df159bb..ef193f300 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index d65613df6..4024a1481 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.9.0", + version="1.9.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py index e0ccc7677..6d93b90b2 100755 --- a/document/src/epilot/models/operations/generatedocument.py +++ b/document/src/epilot/models/operations/generatedocument.py @@ -15,10 +15,8 @@ class GenerateDocumentRequestBodyTemplateDocument: r"""Input template document""" filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Document original filename""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -26,16 +24,12 @@ class GenerateDocumentRequestBodyTemplateDocument: class GenerateDocumentRequestBody: template_document: GenerateDocumentRequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) - r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) - r"""Entity to use for variable context""" language: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) - r"""Language to use""" 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 for variable context""" @@ -44,10 +38,8 @@ class GenerateDocumentRequestBody: class GenerateDocument200ApplicationJSONOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Generated document filename""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -56,9 +48,7 @@ class GenerateDocument200ApplicationJSON: r"""Generated document output""" output_document: Optional[GenerateDocument200ApplicationJSONOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) - preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) - r"""Pre-signed S3 GET URL for preview""" @@ -66,12 +56,8 @@ class GenerateDocument200ApplicationJSON: class GenerateDocumentResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - generate_document_200_application_json_object: Optional[GenerateDocument200ApplicationJSON] = dataclasses.field(default=None) - r"""Generated document output""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index f0d488665..90a3b4773 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -21,10 +21,8 @@ class GenerateDocumentV2RequestBodyTemplateDocument: r"""Input template document""" filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Document original filename""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -33,7 +31,6 @@ class GenerateDocumentV2RequestBodyVariablePayload: r"""Custom values for variables in the template. Takes the higher precedence than others.""" additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -41,19 +38,14 @@ class GenerateDocumentV2RequestBodyVariablePayload: class GenerateDocumentV2RequestBody: template_document: GenerateDocumentV2RequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) - r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) - r"""Entity to use for variable context""" language: Optional[GenerateDocumentV2RequestBodyLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) - r"""Language to use""" 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 for variable context""" variable_payload: Optional[GenerateDocumentV2RequestBodyVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) - r"""Custom values for variables in the template. Takes the higher precedence than others.""" class GenerateDocumentV2ModeEnum(str, Enum): @@ -69,16 +61,13 @@ class GenerateDocumentV2ModeEnum(str, Enum): class GenerateDocumentV2Request: job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) - r"""Job ID for tracking the status of document generation action""" mode: Optional[GenerateDocumentV2ModeEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) - r"""Type of mode used for document generation flow. Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. Full - Goes through all the steps for the full generation of final document """ request_body: Optional[GenerateDocumentV2RequestBody] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -86,10 +75,8 @@ class GenerateDocumentV2Request: class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Generated document filename for DOCX""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -97,9 +84,7 @@ class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: class GenerateDocumentV2200ApplicationJSONDocxOutput: output_document: Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) - preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) - r"""Pre-signed S3 GET URL for DOCX preview""" class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): @@ -115,10 +100,8 @@ class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) - r"""Generated document filename for PDF""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -126,9 +109,7 @@ class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: class GenerateDocumentV2200ApplicationJSONPdfOutput: output_document: Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) - preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) - r"""Pre-signed S3 GET URL for PDF preview""" @@ -138,7 +119,6 @@ class GenerateDocumentV2200ApplicationJSONVariablePayload: r"""List of variables and its corresponding replaced values from the document template""" additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -147,19 +127,13 @@ class GenerateDocumentV2200ApplicationJSON: r"""Generated document output""" docx_output: Optional[GenerateDocumentV2200ApplicationJSONDocxOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('docx_output'), 'exclude': lambda f: f is None }}) - job_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_id'), 'exclude': lambda f: f is None }}) - job_status: Optional[GenerateDocumentV2200ApplicationJSONJobStatusEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_status'), 'exclude': lambda f: f is None }}) - r"""Status of the job""" message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) - r"""A message explaining the progress""" pdf_output: Optional[GenerateDocumentV2200ApplicationJSONPdfOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('pdf_output'), 'exclude': lambda f: f is None }}) - variable_payload: Optional[GenerateDocumentV2200ApplicationJSONVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) - r"""List of variables and its corresponding replaced values from the document template""" @@ -167,12 +141,8 @@ class GenerateDocumentV2200ApplicationJSON: class GenerateDocumentV2Response: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - generate_document_v2_200_application_json_object: Optional[GenerateDocumentV2200ApplicationJSON] = dataclasses.field(default=None) - r"""Generated document output""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/document/src/epilot/models/shared/s3reference.py b/document/src/epilot/models/shared/s3reference.py index df0e00c61..9bd1ab641 100755 --- a/document/src/epilot/models/shared/s3reference.py +++ b/document/src/epilot/models/shared/s3reference.py @@ -11,7 +11,5 @@ class S3Reference: bucket: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bucket') }}) - key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('key') }}) - \ No newline at end of file diff --git a/document/src/epilot/models/shared/security.py b/document/src/epilot/models/shared/security.py index 2157ebc16..7be3d6e93 100755 --- a/document/src/epilot/models/shared/security.py +++ b/document/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/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 0cd0bd6f2..b6666a9d4 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 7b135f9bdacbe815370525d3a1a1b61865f2ad03 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 2 May 2023 01:01:56 +0000 Subject: [PATCH 14/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.5 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 9b2ca4665..0ba80d73f 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -112,4 +112,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:01:45 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index ef193f300..4a2227f99 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 4024a1481..d342db909 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.9.1", + version="1.9.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index b6666a9d4..c08535a85 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 34b22bfb738756509d9e78f1d5063b11d6eeef50 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 3 May 2023 01:01:01 +0000 Subject: [PATCH 15/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.27.0 --- document/README.md | 12 ++++++------ document/RELEASES.md | 8 +++++++- document/USAGE.md | 12 ++++++------ document/docs/documents/README.md | 30 +++++++++++++++--------------- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- document/src/epilot/utils/utils.py | 2 +- 8 files changed, 41 insertions(+), 35 deletions(-) diff --git a/document/README.md b/document/README.md index e61944e7e..7e4b066ba 100755 --- a/document/README.md +++ b/document/README.md @@ -22,16 +22,16 @@ s = epilot.Epilot( req = operations.GenerateDocumentRequestBody( - context_entity_id="bcd0aab9-b544-42b0-8bfb-6d449d02eacc", - language="de", + context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', + language='de', template_document=operations.GenerateDocumentRequestBodyTemplateDocument( - filename="my-template-{{order.order_number}}.docx", + filename='my-template-{{order.order_number}}.docx', s3ref=shared.S3Reference( - bucket="document-api-prod", - key="uploads/my-template.pdf", + bucket='document-api-prod', + key='uploads/my-template.pdf', ), ), - user_id="100321", + user_id='100321', ) res = s.documents.generate_document(req) diff --git a/document/RELEASES.md b/document/RELEASES.md index 0ba80d73f..a4978e622 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -118,4 +118,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:50 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index 0b6a0a946..d70be442f 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -11,16 +11,16 @@ s = epilot.Epilot( req = operations.GenerateDocumentRequestBody( - context_entity_id="bcd0aab9-b544-42b0-8bfb-6d449d02eacc", - language="de", + context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', + language='de', template_document=operations.GenerateDocumentRequestBodyTemplateDocument( - filename="my-template-{{order.order_number}}.docx", + filename='my-template-{{order.order_number}}.docx', s3ref=shared.S3Reference( - bucket="document-api-prod", - key="uploads/my-template.pdf", + bucket='document-api-prod', + key='uploads/my-template.pdf', ), ), - user_id="100321", + user_id='100321', ) res = s.documents.generate_document(req) diff --git a/document/docs/documents/README.md b/document/docs/documents/README.md index d346689c4..c4cebbea4 100755 --- a/document/docs/documents/README.md +++ b/document/docs/documents/README.md @@ -36,16 +36,16 @@ s = epilot.Epilot( req = operations.GenerateDocumentRequestBody( - context_entity_id="bcd0aab9-b544-42b0-8bfb-6d449d02eacc", - language="de", + context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', + language='de', template_document=operations.GenerateDocumentRequestBodyTemplateDocument( - filename="my-template-{{order.order_number}}.docx", + filename='my-template-{{order.order_number}}.docx', s3ref=shared.S3Reference( - bucket="document-api-prod", - key="uploads/my-template.pdf", + bucket='document-api-prod', + key='uploads/my-template.pdf', ), ), - user_id="100321", + user_id='100321', ) res = s.documents.generate_document(req) @@ -83,22 +83,22 @@ s = epilot.Epilot( req = operations.GenerateDocumentV2Request( request_body=operations.GenerateDocumentV2RequestBody( - context_entity_id="bcd0aab9-b544-42b0-8bfb-6d449d02eacc", - language="de", + context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', + language=operations.GenerateDocumentV2RequestBodyLanguageEnum.DE, template_document=operations.GenerateDocumentV2RequestBodyTemplateDocument( - filename="my-template-{{order.order_number}}.docx", + filename='my-template-{{order.order_number}}.docx', s3ref=shared.S3Reference( - bucket="document-api-prod", - key="uploads/my-template.pdf", + bucket='document-api-prod', + key='uploads/my-template.pdf', ), ), - user_id="100321", + user_id='100321', variable_payload=operations.GenerateDocumentV2RequestBodyVariablePayload( - additional_properties="corrupti", + additional_properties='corrupti', ), ), - job_id="provident", - mode="full_generation", + job_id='provident', + mode=operations.GenerateDocumentV2ModeEnum.FULL_GENERATION, ) res = s.documents.generate_document_v2(req) diff --git a/document/gen.yaml b/document/gen.yaml index 4a2227f99..803965d3f 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index d342db909..bb44604d7 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.9.2", + version="1.10.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index c08535a85..ba00e4305 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 986a86937..63dce946b 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 d2257cb0641113ff600ac4e84265fa1362871e4f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 5 May 2023 00:56:19 +0000 Subject: [PATCH 16/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.0 --- document/README.md | 1 - document/RELEASES.md | 8 ++++- document/USAGE.md | 1 - document/docs/documents/README.md | 2 -- document/gen.yaml | 7 ++-- document/setup.py | 2 +- document/src/epilot/documents.py | 2 ++ document/src/epilot/sdk.py | 4 +-- document/src/epilot/utils/utils.py | 53 +++++++++++++++++++----------- 9 files changed, 49 insertions(+), 31 deletions(-) diff --git a/document/README.md b/document/README.md index 7e4b066ba..d7812a501 100755 --- a/document/README.md +++ b/document/README.md @@ -20,7 +20,6 @@ s = epilot.Epilot( ), ) - req = operations.GenerateDocumentRequestBody( context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', language='de', diff --git a/document/RELEASES.md b/document/RELEASES.md index a4978e622..671e1836f 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -124,4 +124,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-05 00:56:08 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index d70be442f..1ebe17832 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -9,7 +9,6 @@ s = epilot.Epilot( ), ) - req = operations.GenerateDocumentRequestBody( context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', language='de', diff --git a/document/docs/documents/README.md b/document/docs/documents/README.md index c4cebbea4..6286ada9b 100755 --- a/document/docs/documents/README.md +++ b/document/docs/documents/README.md @@ -34,7 +34,6 @@ s = epilot.Epilot( ), ) - req = operations.GenerateDocumentRequestBody( context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', language='de', @@ -80,7 +79,6 @@ s = epilot.Epilot( ), ) - req = operations.GenerateDocumentV2Request( request_body=operations.GenerateDocumentV2RequestBody( context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', diff --git a/document/gen.yaml b/document/gen.yaml index 803965d3f..633d33bd1 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index bb44604d7..62172fad1 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.10.0", + version="1.11.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index 27c773e07..13785eb1e 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.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_document(self, request: operations.GenerateDocumentRequestBody) -> operations.GenerateDocumentResponse: r"""generateDocument Builds document generated from input document with variables. @@ -57,6 +58,7 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> return res + def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> operations.GenerateDocumentV2Response: r"""generateDocumentV2 Builds document generated from input document with variables. diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index ba00e4305..dd5fc8c02 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 63dce946b..a8b0d8f14 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/src/epilot/utils/utils.py @@ -141,7 +141,8 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): client.client.headers['Authorization'] = f'Basic {base64.b64encode(data).decode()}' -def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: +def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, + gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -233,7 +234,8 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[str, list[str]]: +def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ + str, list[str]]: params: dict[str, list[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) @@ -267,8 +269,11 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ params = params | _get_deep_object_query_params( metadata, f_name, value) elif style == 'form': - params = params | _get_form_query_params( - metadata, f_name, value) + params = params | _get_delimited_query_params( + metadata, f_name, value, ",") + elif style == 'pipeDelimited': + params = params | _get_delimited_query_params( + metadata, f_name, value, "|") else: raise Exception('not yet implemented') return params @@ -327,12 +332,15 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if val is None: continue - if params.get(f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]') is None: - params[f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ + if params.get( + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]') is None: + params[ + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ ] params[ - f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'].append(_val_to_string(val)) + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'].append( + _val_to_string(val)) else: params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ @@ -368,25 +376,28 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_form_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name) +def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, array_delimiter: str) -> dict[ + str, list[str]]: + return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, array_delimiter) SERIALIZATION_METHOD_TO_CONTENT_TYPE = { - 'json': 'application/json', - 'form': 'application/x-www-form-urlencoded', + 'json': 'application/json', + 'form': 'application/x-www-form-urlencoded', 'multipart': 'multipart/form-data', - 'raw': 'application/octet-stream', - 'string': 'text/plain', + 'raw': 'application/octet-stream', + 'string': 'text/plain', } -def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[str, any, any]: +def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[ + str, any, any]: if request is None: return None, None, None, None if not is_dataclass(request) or not hasattr(request, request_field_name): - return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request) + return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], + request) request_val = getattr(request, request_field_name) @@ -401,7 +412,8 @@ def serialize_request_body(request: dataclass, request_field_name: str, serializ if request_metadata is None: raise Exception('invalid request type') - return serialize_content_type(request_field_name, request_metadata.get('media_type', 'application/octet-stream'), request_val) + return serialize_content_type(request_field_name, request_metadata.get('media_type', 'application/octet-stream'), + request_val) def serialize_content_type(field_name: str, media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: @@ -474,7 +486,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[ - str, list[str]]: + str, list[str]]: if existing is None: existing = [] @@ -514,7 +526,7 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: else: if metadata.get('style', 'form') == 'form': form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name) + field_name, metadata.get('explode', True), val, _get_form_field_name, ",") else: raise Exception( f'Invalid form style for field {field.name}') @@ -536,7 +548,8 @@ def _get_form_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable) -> dict[str, list[str]]: +def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, array_delimiter: str) -> \ + dict[str, list[str]]: params: dict[str, list[str]] = {} if obj is None: @@ -591,7 +604,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f items.append(_val_to_string(value)) if len(items) > 0: - params[field_name] = [','.join([str(item) for item in items])] + params[field_name] = [array_delimiter.join([str(item) for item in items])] else: params[field_name] = [_val_to_string(obj)] From 9e95a4c84b3e8565354986c3059f33a6b4d2019d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 6 May 2023 00:56:56 +0000 Subject: [PATCH 17/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 671e1836f..f4fe3c074 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -130,4 +130,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-06 00:56:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 633d33bd1..80d150721 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 62172fad1..f98493abf 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.11.0", + version="1.11.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index dd5fc8c02..ec3b6d89e 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 42a985cd683b0d7ed1280c2cf18ad72f0d6d6b8b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 10 May 2023 00:59:54 +0000 Subject: [PATCH 18/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.2 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index f4fe3c074..9c606cba6 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -136,4 +136,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy + +## 2023-05-10 00:59:39 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 80d150721..09e279261 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index f98493abf..705f9293e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.11.1", + version="1.11.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index ec3b6d89e..cd4366620 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 a22bea4365f2af071a260b8741e39521d1f2c24b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 11 May 2023 01:00:55 +0000 Subject: [PATCH 19/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 9c606cba6..de130bb5d 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -142,4 +142,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 09e279261..99968c67d 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 705f9293e..79a197b52 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.11.2", + version="1.11.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index cd4366620..b38de3675 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 d81b2dd287585030ef14e12d6a153bf24ca74ebb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 12 May 2023 01:00:33 +0000 Subject: [PATCH 20/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- document/src/epilot/utils/utils.py | 16 ++++++++-------- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index de130bb5d..1863ba50b 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -148,4 +148,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:22 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 99968c67d..5e1479f90 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 79a197b52..e75bd1a3c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.11.3", + version="1.11.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index b38de3675..099af39ce 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index a8b0d8f14..98719fbf7 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 c19bd1fd759ed3773974e90ce1cb890f7ab2a7f2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 13 May 2023 00:58:48 +0000 Subject: [PATCH 21/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.31.1 --- document/README.md | 2 +- document/RELEASES.md | 8 +++++++- document/USAGE.md | 2 +- document/docs/documents/README.md | 4 ++-- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- document/src/epilot/utils/utils.py | 2 +- 8 files changed, 18 insertions(+), 12 deletions(-) diff --git a/document/README.md b/document/README.md index d7812a501..4ed6632f9 100755 --- a/document/README.md +++ b/document/README.md @@ -16,7 +16,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/document/RELEASES.md b/document/RELEASES.md index 1863ba50b..328cafcad 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -154,4 +154,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy + +## 2023-05-13 00:58:37 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index 1ebe17832..cf8c3cc26 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -5,7 +5,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/document/docs/documents/README.md b/document/docs/documents/README.md index 6286ada9b..9e8fa76cf 100755 --- a/document/docs/documents/README.md +++ b/document/docs/documents/README.md @@ -30,7 +30,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", ), ) @@ -75,7 +75,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/document/gen.yaml b/document/gen.yaml index 5e1479f90..a5f325127 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index e75bd1a3c..7bfc20a91 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.11.4", + version="1.12.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 099af39ce..1db4cea6a 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 98719fbf7..6b39ecf74 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 bcaa3188a364a4a9f8eab654e2104916c812881d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 16 May 2023 01:02:06 +0000 Subject: [PATCH 22/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.32.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 328cafcad..8d245e5f1 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -160,4 +160,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:01:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index a5f325127..efa5613f5 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 7bfc20a91..480d4f979 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.12.0", + version="1.13.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 1db4cea6a..a3ca58840 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 5ebab5629e2280d2d5b83d6e8a3cdea1ce3b582a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 May 2023 01:03:38 +0000 Subject: [PATCH 23/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.33.2 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 8d245e5f1..d4b1a4426 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -166,4 +166,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:03:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index efa5613f5..b16e17de9 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 480d4f979..79de147f6 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.13.0", + version="1.14.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index a3ca58840..ec9c2b7d5 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 25a97b0f667814c0da3721b0d4aa3e30fd50ab44 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 18 May 2023 01:01:03 +0000 Subject: [PATCH 24/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.34.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/documents.py | 4 ++-- document/src/epilot/sdk.py | 4 ++-- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index d4b1a4426..e99d5f36c 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -172,4 +172,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index b16e17de9..11bd07db4 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 79de147f6..efa4c5fc5 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.14.0", + version="1.15.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index 13785eb1e..ef66eb49d 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -38,11 +38,11 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> base_url = self._server_url url = base_url.removesuffix('/') + '/v1/documents:generate' - 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 @@ -75,12 +75,12 @@ def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> base_url = self._server_url url = base_url.removesuffix('/') + '/v2/documents:generate' - headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type query_params = utils.get_query_params(operations.GenerateDocumentV2Request, request) + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index ec9c2b7d5..49b5660ab 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.14.0" - _gen_version: str = "2.29.0" + _sdk_version: str = "1.15.0" + _gen_version: str = "2.30.0" def __init__(self, security: shared.Security = None, From 22820f9fd6902bee08931a2638990e0ab782ba7c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 19 May 2023 01:02:32 +0000 Subject: [PATCH 25/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.35.0 --- document/RELEASES.md | 8 +++++++- document/docs/documents/README.md | 4 ++-- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/documents.py | 2 ++ document/src/epilot/models/operations/__init__.py | 2 +- .../epilot/models/operations/generatedocumentv2.py | 12 ++++++------ document/src/epilot/sdk.py | 4 ++-- 8 files changed, 24 insertions(+), 16 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index e99d5f36c..987c90607 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -178,4 +178,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:02:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/docs/documents/README.md b/document/docs/documents/README.md index 9e8fa76cf..4b9598f1d 100755 --- a/document/docs/documents/README.md +++ b/document/docs/documents/README.md @@ -82,7 +82,7 @@ s = epilot.Epilot( req = operations.GenerateDocumentV2Request( request_body=operations.GenerateDocumentV2RequestBody( context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', - language=operations.GenerateDocumentV2RequestBodyLanguageEnum.DE, + language=operations.GenerateDocumentV2RequestBodyLanguage.DE, template_document=operations.GenerateDocumentV2RequestBodyTemplateDocument( filename='my-template-{{order.order_number}}.docx', s3ref=shared.S3Reference( @@ -96,7 +96,7 @@ req = operations.GenerateDocumentV2Request( ), ), job_id='provident', - mode=operations.GenerateDocumentV2ModeEnum.FULL_GENERATION, + mode=operations.GenerateDocumentV2Mode.FULL_GENERATION, ) res = s.documents.generate_document_v2(req) diff --git a/document/gen.yaml b/document/gen.yaml index 11bd07db4..01b2de689 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index efa4c5fc5..769e0679c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.15.0", + version="1.16.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index ef66eb49d..1e6268631 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -42,6 +42,7 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> 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 @@ -80,6 +81,7 @@ def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type query_params = utils.get_query_params(operations.GenerateDocumentV2Request, request) + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client diff --git a/document/src/epilot/models/operations/__init__.py b/document/src/epilot/models/operations/__init__.py index 634ccff52..ba2e489b1 100755 --- a/document/src/epilot/models/operations/__init__.py +++ b/document/src/epilot/models/operations/__init__.py @@ -3,4 +3,4 @@ from .generatedocument import * from .generatedocumentv2 import * -__all__ = ["GenerateDocument200ApplicationJSON","GenerateDocument200ApplicationJSONOutputDocument","GenerateDocumentRequestBody","GenerateDocumentRequestBodyTemplateDocument","GenerateDocumentResponse","GenerateDocumentV2200ApplicationJSON","GenerateDocumentV2200ApplicationJSONDocxOutput","GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument","GenerateDocumentV2200ApplicationJSONJobStatusEnum","GenerateDocumentV2200ApplicationJSONPdfOutput","GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument","GenerateDocumentV2200ApplicationJSONVariablePayload","GenerateDocumentV2ModeEnum","GenerateDocumentV2Request","GenerateDocumentV2RequestBody","GenerateDocumentV2RequestBodyLanguageEnum","GenerateDocumentV2RequestBodyTemplateDocument","GenerateDocumentV2RequestBodyVariablePayload","GenerateDocumentV2Response"] +__all__ = ["GenerateDocument200ApplicationJSON","GenerateDocument200ApplicationJSONOutputDocument","GenerateDocumentRequestBody","GenerateDocumentRequestBodyTemplateDocument","GenerateDocumentResponse","GenerateDocumentV2200ApplicationJSON","GenerateDocumentV2200ApplicationJSONDocxOutput","GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument","GenerateDocumentV2200ApplicationJSONJobStatus","GenerateDocumentV2200ApplicationJSONPdfOutput","GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument","GenerateDocumentV2200ApplicationJSONVariablePayload","GenerateDocumentV2Mode","GenerateDocumentV2Request","GenerateDocumentV2RequestBody","GenerateDocumentV2RequestBodyLanguage","GenerateDocumentV2RequestBodyTemplateDocument","GenerateDocumentV2RequestBodyVariablePayload","GenerateDocumentV2Response"] diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index 90a3b4773..ccf23247b 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -9,7 +9,7 @@ from epilot import utils from typing import Optional -class GenerateDocumentV2RequestBodyLanguageEnum(str, Enum): +class GenerateDocumentV2RequestBodyLanguage(str, Enum): r"""Language to use""" EN = 'en' DE = 'de' @@ -41,14 +41,14 @@ class GenerateDocumentV2RequestBody: r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) r"""Entity to use for variable context""" - language: Optional[GenerateDocumentV2RequestBodyLanguageEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + language: Optional[GenerateDocumentV2RequestBodyLanguage] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) r"""Language to use""" 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 for variable context""" variable_payload: Optional[GenerateDocumentV2RequestBodyVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) r"""Custom values for variables in the template. Takes the higher precedence than others.""" -class GenerateDocumentV2ModeEnum(str, Enum): +class GenerateDocumentV2Mode(str, Enum): r"""Type of mode used for document generation flow. Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. Full - Goes through all the steps for the full generation of final document @@ -62,7 +62,7 @@ class GenerateDocumentV2Request: job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) r"""Job ID for tracking the status of document generation action""" - mode: Optional[GenerateDocumentV2ModeEnum] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) + mode: Optional[GenerateDocumentV2Mode] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) r"""Type of mode used for document generation flow. Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. Full - Goes through all the steps for the full generation of final document @@ -87,7 +87,7 @@ class GenerateDocumentV2200ApplicationJSONDocxOutput: preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) r"""Pre-signed S3 GET URL for DOCX preview""" -class GenerateDocumentV2200ApplicationJSONJobStatusEnum(str, Enum): +class GenerateDocumentV2200ApplicationJSONJobStatus(str, Enum): r"""Status of the job""" STARTED = 'STARTED' PROCESSING = 'PROCESSING' @@ -128,7 +128,7 @@ class GenerateDocumentV2200ApplicationJSON: docx_output: Optional[GenerateDocumentV2200ApplicationJSONDocxOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('docx_output'), 'exclude': lambda f: f is None }}) job_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_id'), 'exclude': lambda f: f is None }}) - job_status: Optional[GenerateDocumentV2200ApplicationJSONJobStatusEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_status'), 'exclude': lambda f: f is None }}) + job_status: Optional[GenerateDocumentV2200ApplicationJSONJobStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_status'), 'exclude': lambda f: f is None }}) r"""Status of the job""" message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) r"""A message explaining the progress""" diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 49b5660ab..a14bad10a 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,8 @@ class Epilot: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.15.0" - _gen_version: str = "2.30.0" + _sdk_version: str = "1.16.0" + _gen_version: str = "2.31.0" def __init__(self, security: shared.Security = None, From 7c7d4474cb41922a82e2cce5588bd20698d2bbd1 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 23 May 2023 01:01:34 +0000 Subject: [PATCH 26/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.37.5 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 987c90607..f8c16947e 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -184,4 +184,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:01:22 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 01b2de689..7094f4725 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 769e0679c..604001a81 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.16.0", + version="1.17.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index a14bad10a..6d02bec9d 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 536d00644911964fa92e0c2a51aece024226743f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 27 May 2023 01:03:28 +0000 Subject: [PATCH 27/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.39.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index f8c16947e..7ee13c21a 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -190,4 +190,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:03:15 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 7094f4725..7ca8bc89d 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 604001a81..9e2be3f46 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.17.0", + version="1.17.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 6d02bec9d..29f5f93c6 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 c728930d7cdad22d18a2430592693fac8134d776 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Jun 2023 01:23:59 +0000 Subject: [PATCH 28/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.2 --- document/.gitignore | 5 +++++ document/RELEASES.md | 8 +++++++- document/files.gen | 1 + document/gen.yaml | 6 +++--- document/setup.py | 7 +++++-- document/src/epilot/sdk.py | 4 ++-- 6 files changed, 23 insertions(+), 8 deletions(-) create mode 100755 document/.gitignore diff --git a/document/.gitignore b/document/.gitignore new file mode 100755 index 000000000..9072ad43b --- /dev/null +++ b/document/.gitignore @@ -0,0 +1,5 @@ +venv/ +src/*.egg-info/ +__pycache__/ +.pytest_cache/ +.python-version` \ No newline at end of file diff --git a/document/RELEASES.md b/document/RELEASES.md index 7ee13c21a..6ee9ab314 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -196,4 +196,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy + +## 2023-06-01 01:23:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index 66a09915a..d0dcd4dd5 100755 --- a/document/files.gen +++ b/document/files.gen @@ -1,5 +1,6 @@ src/epilot/documents.py src/epilot/sdk.py +.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/document/gen.yaml b/document/gen.yaml index 7ca8bc89d..8b65a2594 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 9e2be3f46..ba1ee7769 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - 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/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 29f5f93c6..780a6b1fb 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 680d19e31ee8ef308463fc2a029aed391f2bdf77 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 2 Jun 2023 01:11:53 +0000 Subject: [PATCH 29/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.3 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 34 +++++++++++++++++----------------- document/src/epilot/sdk.py | 4 ++-- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 6ee9ab314..3965ec0f5 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -202,4 +202,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:11:39 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 8b65a2594..2fc02587e 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index ba1ee7769..6c64b63df 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,29 +10,29 @@ setuptools.setup( name="epilot-document", - 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/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 780a6b1fb..2611d1aa1 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -22,8 +22,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 3d1fa54153eea84d997503612256c430e20c97c5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 3 Jun 2023 01:10:34 +0000 Subject: [PATCH 30/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.43.0 --- document/RELEASES.md | 8 ++++- document/files.gen | 1 + document/gen.yaml | 6 ++-- document/setup.py | 2 +- document/src/epilot/__init__.py | 1 + document/src/epilot/documents.py | 36 ++++++++------------ document/src/epilot/sdk.py | 44 ++++++++----------------- document/src/epilot/sdkconfiguration.py | 27 +++++++++++++++ 8 files changed, 66 insertions(+), 59 deletions(-) create mode 100755 document/src/epilot/sdkconfiguration.py diff --git a/document/RELEASES.md b/document/RELEASES.md index 3965ec0f5..14667f0c1 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -208,4 +208,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:10:19 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index d0dcd4dd5..966875d22 100755 --- a/document/files.gen +++ b/document/files.gen @@ -1,3 +1,4 @@ +src/epilot/sdkconfiguration.py src/epilot/documents.py src/epilot/sdk.py .gitignore diff --git a/document/gen.yaml b/document/gen.yaml index 2fc02587e..93e96e18d 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 6c64b63df..f20f2e61c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.18.1", + version="1.19.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/__init__.py b/document/src/epilot/__init__.py index b9e232018..e6c0deeb6 100755 --- a/document/src/epilot/__init__.py +++ b/document/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/document/src/epilot/documents.py b/document/src/epilot/documents.py index 1e6268631..616303a71 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -1,26 +1,16 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import requests as requests_http -from . import utils +from .sdkconfiguration import SDKConfiguration +from epilot import utils from epilot.models import operations from typing import Optional class Documents: r"""Document Generation""" - _client: requests_http.Session - _security_client: requests_http.Session - _server_url: str - _language: str - _sdk_version: str - _gen_version: str + sdk_configuration: SDKConfiguration - 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 + def __init__(self, sdk_config: SDKConfiguration) -> None: + self.sdk_configuration = sdk_config def generate_document(self, request: operations.GenerateDocumentRequestBody) -> operations.GenerateDocumentResponse: @@ -35,17 +25,17 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/documents:generate' + url = base_url + '/v1/documents:generate' 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') @@ -73,18 +63,18 @@ def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v2/documents:generate' + url = base_url + '/v2/documents:generate' headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type query_params = utils.get_query_params(operations.GenerateDocumentV2Request, 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('POST', url, params=query_params, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 2611d1aa1..4b8fd923f 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -1,15 +1,11 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" import requests as requests_http -from . import utils from .documents import Documents +from .sdkconfiguration import SDKConfiguration +from epilot import utils from epilot.models import shared -SERVERS = [ - "https://document.sls.epilot.io", -] -"""Contains the list of servers available to the SDK""" - class Epilot: r"""Generate documents with epilot data @@ -18,15 +14,11 @@ class Epilot: documents: Documents r"""Document Generation""" - _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 @@ -35,6 +27,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 @@ -42,31 +36,19 @@ def __init__(self, :param client: The requests.Session HTTP client to use for all operations :type client: requests_http.Session """ - self._client = requests_http.Session() + if client is None: + client = requests_http.Session() + security_client = utils.configure_security_client(client, security) if server_url is not None: if url_params is not None: - self._server_url = utils.template_url(server_url, url_params) - else: - self._server_url = server_url - - if client is not None: - self._client = client - - self._security_client = utils.configure_security_client(self._client, security) - + server_url = utils.template_url(server_url, url_params) + self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx) + self._init_sdks() def _init_sdks(self): - self.documents = Documents( - self._client, - self._security_client, - self._server_url, - self._language, - self._sdk_version, - self._gen_version - ) - + self.documents = Documents(self.sdk_configuration) \ No newline at end of file diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py new file mode 100755 index 000000000..ffa68a025 --- /dev/null +++ b/document/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://document.sls.epilot.io', +] +"""Contains the list of servers available to the SDK""" + +@dataclass +class SDKConfiguration: + client: requests.Session + security_client: requests.Session + server_url: str = '' + server_idx: int = 0 + language: str = 'python' + sdk_version: str = '1.19.0' + gen_version: str = '2.35.3' + + def get_server_details(self) -> tuple[str, dict[str, str]]: + if self.server_url: + return self.server_url.removesuffix('/'), {} + if self.server_idx is None: + self.server_idx = 0 + + return SERVERS[self.server_idx], {} From e3531142072886bf1f2db07fcc508074bcb9ca0f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 7 Jun 2023 01:13:11 +0000 Subject: [PATCH 31/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.44.2 --- document/RELEASES.md | 8 +++++++- document/docs/epilot/README.md | 2 +- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 2 +- document/src/epilot/sdkconfiguration.py | 5 +++-- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 14667f0c1..56e4dd6c8 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -214,4 +214,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:12:56 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/docs/epilot/README.md b/document/docs/epilot/README.md index 672f4f04b..07faec1a4 100755 --- a/document/docs/epilot/README.md +++ b/document/docs/epilot/README.md @@ -2,7 +2,7 @@ ## Overview -Generate documents with epilot data +Document API: Generate documents with epilot data [Feature Documentation](https://docs.epilot.io/docs/files/document-generation) diff --git a/document/gen.yaml b/document/gen.yaml index 93e96e18d..23c1b4d6e 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index f20f2e61c..e1fb265a3 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.19.0", + version="1.19.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 4b8fd923f..50def7fe0 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -7,7 +7,7 @@ from epilot.models import shared class Epilot: - r"""Generate documents with epilot data + r"""Document API: Generate documents with epilot data [Feature Documentation](https://docs.epilot.io/docs/files/document-generation) """ diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index ffa68a025..e1f7d7a37 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -3,6 +3,7 @@ import requests from dataclasses import dataclass + SERVERS = [ 'https://document.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 04de4045211ba5b6b47ffd79107448d20c28fa84 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 8 Jun 2023 01:11:55 +0000 Subject: [PATCH 32/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.0 --- document/README.md | 2 +- document/RELEASES.md | 8 +++++++- document/USAGE.md | 2 +- document/docs/documents/README.md | 4 ++-- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/documents.py | 4 ++-- document/src/epilot/sdkconfiguration.py | 5 +++-- 8 files changed, 20 insertions(+), 13 deletions(-) diff --git a/document/README.md b/document/README.md index 4ed6632f9..911394f1f 100755 --- a/document/README.md +++ b/document/README.md @@ -16,7 +16,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/document/RELEASES.md b/document/RELEASES.md index 56e4dd6c8..3b30fb4f6 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -220,4 +220,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:11:42 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index cf8c3cc26..18fbde8a2 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -5,7 +5,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/document/docs/documents/README.md b/document/docs/documents/README.md index 4b9598f1d..feb203020 100755 --- a/document/docs/documents/README.md +++ b/document/docs/documents/README.md @@ -30,7 +30,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) @@ -75,7 +75,7 @@ from epilot.models import operations, shared s = epilot.Epilot( security=shared.Security( - epilot_auth="YOUR_BEARER_TOKEN_HERE", + epilot_auth="", ), ) diff --git a/document/gen.yaml b/document/gen.yaml index 23c1b4d6e..568720f52 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index e1fb265a3..dc3612aed 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.19.1", + version="1.20.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index 616303a71..2fc406f8b 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -33,7 +33,7 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> 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 @@ -72,7 +72,7 @@ def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> headers['content-type'] = req_content_type query_params = utils.get_query_params(operations.GenerateDocumentV2Request, 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 diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index e1f7d7a37..56e7a631f 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -16,8 +16,9 @@ class SDKConfiguration: server_url: str = '' server_idx: int = 0 language: str = 'python' - sdk_version: str = '1.19.1' - gen_version: str = '2.35.9' + openapi_doc_version: str = '1.0.0' + sdk_version: str = '1.20.0' + gen_version: str = '2.37.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 4924d9b604a0e31c4b363b7dc01fc054e527b771 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 9 Jun 2023 01:15:52 +0000 Subject: [PATCH 33/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.2 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 3b30fb4f6..1ac48c743 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -226,4 +226,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:15:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 568720f52..ef3122aef 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index dc3612aed..f913a11c2 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.20.0", + version="1.20.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 56e7a631f..249566d87 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 aec712b600f3f895215ab6ef4b656631dd537df8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 10 Jun 2023 01:05:54 +0000 Subject: [PATCH 34/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.0 --- document/README.md | 6 +-- document/RELEASES.md | 8 +++- .../generatedocument200applicationjson.md | 11 +++++ ...ocument200applicationjsonoutputdocument.md | 9 ++++ .../operations/generatedocumentrequestbody.md | 11 +++++ ...ratedocumentrequestbodytemplatedocument.md | 11 +++++ .../operations/generatedocumentresponse.md | 11 +++++ .../generatedocumentv2200applicationjson.md | 15 +++++++ ...edocumentv2200applicationjsondocxoutput.md | 9 ++++ ...applicationjsondocxoutputoutputdocument.md | 9 ++++ ...tedocumentv2200applicationjsonjobstatus.md | 13 ++++++ ...tedocumentv2200applicationjsonpdfoutput.md | 9 ++++ ...0applicationjsonpdfoutputoutputdocument.md | 9 ++++ ...mentv2200applicationjsonvariablepayload.md | 10 +++++ .../operations/generatedocumentv2mode.md | 14 ++++++ .../operations/generatedocumentv2request.md | 10 +++++ .../generatedocumentv2requestbody.md | 12 +++++ .../generatedocumentv2requestbodylanguage.md | 11 +++++ ...tedocumentv2requestbodytemplatedocument.md | 11 +++++ ...atedocumentv2requestbodyvariablepayload.md | 10 +++++ .../operations/generatedocumentv2response.md | 11 +++++ document/docs/models/shared/s3reference.md | 9 ++++ document/docs/models/shared/security.md | 8 ++++ document/docs/{ => sdks}/documents/README.md | 24 ++++++++++ document/docs/{ => sdks}/epilot/README.md | 0 document/files.gen | 27 +++++++++-- document/gen.yaml | 6 +-- document/setup.py | 2 +- .../models/operations/generatedocument.py | 21 ++++++--- .../models/operations/generatedocumentv2.py | 45 ++++++++++++++----- .../src/epilot/models/shared/s3reference.py | 5 ++- document/src/epilot/models/shared/security.py | 5 ++- document/src/epilot/sdkconfiguration.py | 4 +- 33 files changed, 341 insertions(+), 35 deletions(-) create mode 100755 document/docs/models/operations/generatedocument200applicationjson.md create mode 100755 document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md create mode 100755 document/docs/models/operations/generatedocumentrequestbody.md create mode 100755 document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md create mode 100755 document/docs/models/operations/generatedocumentresponse.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjson.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md create mode 100755 document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md create mode 100755 document/docs/models/operations/generatedocumentv2mode.md create mode 100755 document/docs/models/operations/generatedocumentv2request.md create mode 100755 document/docs/models/operations/generatedocumentv2requestbody.md create mode 100755 document/docs/models/operations/generatedocumentv2requestbodylanguage.md create mode 100755 document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md create mode 100755 document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md create mode 100755 document/docs/models/operations/generatedocumentv2response.md create mode 100755 document/docs/models/shared/s3reference.md create mode 100755 document/docs/models/shared/security.md rename document/docs/{ => sdks}/documents/README.md (50%) rename document/docs/{ => sdks}/epilot/README.md (100%) diff --git a/document/README.md b/document/README.md index 911394f1f..39a15d6e9 100755 --- a/document/README.md +++ b/document/README.md @@ -44,10 +44,10 @@ if res.generate_document_200_application_json_object is not None: ## Available Resources and Operations -### [documents](docs/documents/README.md) +### [documents](docs/sdks/documents/README.md) -* [generate_document](docs/documents/README.md#generate_document) - generateDocument -* [generate_document_v2](docs/documents/README.md#generate_document_v2) - generateDocumentV2 +* [generate_document](docs/sdks/documents/README.md#generate_document) - generateDocument +* [generate_document_v2](docs/sdks/documents/README.md#generate_document_v2) - generateDocumentV2 ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/document/RELEASES.md b/document/RELEASES.md index 1ac48c743..a832698e8 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -232,4 +232,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:05:41 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/docs/models/operations/generatedocument200applicationjson.md b/document/docs/models/operations/generatedocument200applicationjson.md new file mode 100755 index 000000000..5ce865139 --- /dev/null +++ b/document/docs/models/operations/generatedocument200applicationjson.md @@ -0,0 +1,11 @@ +# GenerateDocument200ApplicationJSON + +Generated document output + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[GenerateDocument200ApplicationJSONOutputDocument]](../../models/operations/generatedocument200applicationjsonoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md new file mode 100755 index 000000000..7a49270ea --- /dev/null +++ b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md @@ -0,0 +1,9 @@ +# GenerateDocument200ApplicationJSONOutputDocument + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename | my-template-OR-001.pdf | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentrequestbody.md b/document/docs/models/operations/generatedocumentrequestbody.md new file mode 100755 index 000000000..ef5f64d80 --- /dev/null +++ b/document/docs/models/operations/generatedocumentrequestbody.md @@ -0,0 +1,11 @@ +# GenerateDocumentRequestBody + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | +| `language` | *Optional[str]* | :heavy_minus_sign: | Language to use | de | +| `template_document` | [GenerateDocumentRequestBodyTemplateDocument](../../models/operations/generatedocumentrequestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md new file mode 100755 index 000000000..baca2675b --- /dev/null +++ b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md @@ -0,0 +1,11 @@ +# GenerateDocumentRequestBodyTemplateDocument + +Input template document + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentresponse.md b/document/docs/models/operations/generatedocumentresponse.md new file mode 100755 index 000000000..65e768e19 --- /dev/null +++ b/document/docs/models/operations/generatedocumentresponse.md @@ -0,0 +1,11 @@ +# GenerateDocumentResponse + + +## 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 | +| `generate_document_200_application_json_object` | [Optional[GenerateDocument200ApplicationJSON]](../../models/operations/generatedocument200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjson.md b/document/docs/models/operations/generatedocumentv2200applicationjson.md new file mode 100755 index 000000000..fdeefeafb --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjson.md @@ -0,0 +1,15 @@ +# GenerateDocumentV2200ApplicationJSON + +Generated document output + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `docx_output` | [Optional[GenerateDocumentV2200ApplicationJSONDocxOutput]](../../models/operations/generatedocumentv2200applicationjsondocxoutput.md) | :heavy_minus_sign: | N/A | +| `job_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `job_status` | [Optional[GenerateDocumentV2200ApplicationJSONJobStatus]](../../models/operations/generatedocumentv2200applicationjsonjobstatus.md) | :heavy_minus_sign: | Status of the job | +| `message` | *Optional[str]* | :heavy_minus_sign: | A message explaining the progress | +| `pdf_output` | [Optional[GenerateDocumentV2200ApplicationJSONPdfOutput]](../../models/operations/generatedocumentv2200applicationjsonpdfoutput.md) | :heavy_minus_sign: | N/A | +| `variable_payload` | [Optional[GenerateDocumentV2200ApplicationJSONVariablePayload]](../../models/operations/generatedocumentv2200applicationjsonvariablepayload.md) | :heavy_minus_sign: | List of variables and its corresponding replaced values from the document template | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md new file mode 100755 index 000000000..bcb556461 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md @@ -0,0 +1,9 @@ +# GenerateDocumentV2200ApplicationJSONDocxOutput + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument]](../../models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for DOCX preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md new file mode 100755 index 000000000..a5554287f --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md @@ -0,0 +1,9 @@ +# GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for DOCX | my-template-OR-001.docx | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md b/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md new file mode 100755 index 000000000..ef77f21af --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md @@ -0,0 +1,13 @@ +# GenerateDocumentV2200ApplicationJSONJobStatus + +Status of the job + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `STARTED` | STARTED | +| `PROCESSING` | PROCESSING | +| `SUCCESS` | SUCCESS | +| `FAILED` | FAILED | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md new file mode 100755 index 000000000..8c3f453f9 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md @@ -0,0 +1,9 @@ +# GenerateDocumentV2200ApplicationJSONPdfOutput + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument]](../../models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for PDF preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md new file mode 100755 index 000000000..8e6ba8c0f --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md @@ -0,0 +1,9 @@ +# GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for PDF | my-template-OR-001.pdf | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md b/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md new file mode 100755 index 000000000..fb4de1087 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md @@ -0,0 +1,10 @@ +# GenerateDocumentV2200ApplicationJSONVariablePayload + +List of variables and its corresponding replaced values from the document template + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `additional_properties` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2mode.md b/document/docs/models/operations/generatedocumentv2mode.md new file mode 100755 index 000000000..6e8c4ec4f --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2mode.md @@ -0,0 +1,14 @@ +# GenerateDocumentV2Mode + +Type of mode used for document generation flow. +Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. +Full - Goes through all the steps for the full generation of final document + + + +## Values + +| Name | Value | +| -------------------- | -------------------- | +| `PARTIAL_GENERATION` | partial_generation | +| `FULL_GENERATION` | full_generation | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2request.md b/document/docs/models/operations/generatedocumentv2request.md new file mode 100755 index 000000000..de07f8652 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2request.md @@ -0,0 +1,10 @@ +# GenerateDocumentV2Request + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request_body` | [Optional[GenerateDocumentV2RequestBody]](../../models/operations/generatedocumentv2requestbody.md) | :heavy_minus_sign: | N/A | +| `job_id` | *Optional[str]* | :heavy_minus_sign: | Job ID for tracking the status of document generation action | +| `mode` | [Optional[GenerateDocumentV2Mode]](../../models/operations/generatedocumentv2mode.md) | :heavy_minus_sign: | Type of mode used for document generation flow.
Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document.
Full - Goes through all the steps for the full generation of final document
| \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbody.md b/document/docs/models/operations/generatedocumentv2requestbody.md new file mode 100755 index 000000000..5e6af6ed5 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2requestbody.md @@ -0,0 +1,12 @@ +# GenerateDocumentV2RequestBody + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | +| `language` | [Optional[GenerateDocumentV2RequestBodyLanguage]](../../models/operations/generatedocumentv2requestbodylanguage.md) | :heavy_minus_sign: | Language to use | de | +| `template_document` | [GenerateDocumentV2RequestBodyTemplateDocument](../../models/operations/generatedocumentv2requestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | +| `variable_payload` | [Optional[GenerateDocumentV2RequestBodyVariablePayload]](../../models/operations/generatedocumentv2requestbodyvariablepayload.md) | :heavy_minus_sign: | Custom values for variables in the template. Takes the higher precedence than others. | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbodylanguage.md b/document/docs/models/operations/generatedocumentv2requestbodylanguage.md new file mode 100755 index 000000000..3a911aa25 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2requestbodylanguage.md @@ -0,0 +1,11 @@ +# GenerateDocumentV2RequestBodyLanguage + +Language to use + + +## Values + +| Name | Value | +| ----- | ----- | +| `EN` | en | +| `DE` | de | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md new file mode 100755 index 000000000..7674cee01 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md @@ -0,0 +1,11 @@ +# GenerateDocumentV2RequestBodyTemplateDocument + +Input template document + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md b/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md new file mode 100755 index 000000000..5fe6c3ba6 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md @@ -0,0 +1,10 @@ +# GenerateDocumentV2RequestBodyVariablePayload + +Custom values for variables in the template. Takes the higher precedence than others. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `additional_properties` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2response.md b/document/docs/models/operations/generatedocumentv2response.md new file mode 100755 index 000000000..e1c09a5e6 --- /dev/null +++ b/document/docs/models/operations/generatedocumentv2response.md @@ -0,0 +1,11 @@ +# GenerateDocumentV2Response + + +## 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 | +| `generate_document_v2_200_application_json_object` | [Optional[GenerateDocumentV2200ApplicationJSON]](../../models/operations/generatedocumentv2200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/shared/s3reference.md b/document/docs/models/shared/s3reference.md new file mode 100755 index 000000000..ef2fc6fcd --- /dev/null +++ b/document/docs/models/shared/s3reference.md @@ -0,0 +1,9 @@ +# S3Reference + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `bucket` | *str* | :heavy_check_mark: | N/A | document-api-prod | +| `key` | *str* | :heavy_check_mark: | N/A | uploads/my-template.pdf | \ No newline at end of file diff --git a/document/docs/models/shared/security.md b/document/docs/models/shared/security.md new file mode 100755 index 000000000..f06333390 --- /dev/null +++ b/document/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/document/docs/documents/README.md b/document/docs/sdks/documents/README.md similarity index 50% rename from document/docs/documents/README.md rename to document/docs/sdks/documents/README.md index feb203020..7b149f44c 100755 --- a/document/docs/documents/README.md +++ b/document/docs/sdks/documents/README.md @@ -53,6 +53,18 @@ if res.generate_document_200_application_json_object is not None: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [operations.GenerateDocumentRequestBody](../../models/operations/generatedocumentrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GenerateDocumentResponse](../../models/operations/generatedocumentresponse.md)** + + ## generate_document_v2 Builds document generated from input document with variables. @@ -104,3 +116,15 @@ res = s.documents.generate_document_v2(req) if res.generate_document_v2_200_application_json_object is not None: # handle response ``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.GenerateDocumentV2Request](../../models/operations/generatedocumentv2request.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GenerateDocumentV2Response](../../models/operations/generatedocumentv2response.md)** + diff --git a/document/docs/epilot/README.md b/document/docs/sdks/epilot/README.md similarity index 100% rename from document/docs/epilot/README.md rename to document/docs/sdks/epilot/README.md diff --git a/document/files.gen b/document/files.gen index 966875d22..b93669144 100755 --- a/document/files.gen +++ b/document/files.gen @@ -15,6 +15,27 @@ src/epilot/models/operations/__init__.py src/epilot/models/shared/s3reference.py src/epilot/models/shared/security.py src/epilot/models/shared/__init__.py -docs/epilot/README.md -docs/documents/README.md -USAGE.md \ No newline at end of file +docs/sdks/epilot/README.md +docs/sdks/documents/README.md +USAGE.md +docs/models/operations/generatedocumentrequestbodytemplatedocument.md +docs/models/operations/generatedocumentrequestbody.md +docs/models/operations/generatedocument200applicationjsonoutputdocument.md +docs/models/operations/generatedocument200applicationjson.md +docs/models/operations/generatedocumentresponse.md +docs/models/operations/generatedocumentv2requestbodylanguage.md +docs/models/operations/generatedocumentv2requestbodytemplatedocument.md +docs/models/operations/generatedocumentv2requestbodyvariablepayload.md +docs/models/operations/generatedocumentv2requestbody.md +docs/models/operations/generatedocumentv2mode.md +docs/models/operations/generatedocumentv2request.md +docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md +docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md +docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md +docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md +docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md +docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md +docs/models/operations/generatedocumentv2200applicationjson.md +docs/models/operations/generatedocumentv2response.md +docs/models/shared/s3reference.md +docs/models/shared/security.md \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index ef3122aef..ec461769a 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index f913a11c2..786b6ffcf 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.20.1", + version="1.21.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py index 6d93b90b2..13c94f3d0 100755 --- a/document/src/epilot/models/operations/generatedocument.py +++ b/document/src/epilot/models/operations/generatedocument.py @@ -10,19 +10,21 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentRequestBodyTemplateDocument: r"""Input template document""" - filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) r"""Document original filename""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentRequestBody: - template_document: GenerateDocumentRequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) @@ -33,31 +35,38 @@ class GenerateDocumentRequestBody: r"""User Id for variable context""" + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocument200ApplicationJSONOutputDocument: - filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) r"""Generated document filename""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocument200ApplicationJSON: r"""Generated document output""" - output_document: Optional[GenerateDocument200ApplicationJSONOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) r"""Pre-signed S3 GET URL for preview""" + + + @dataclasses.dataclass class GenerateDocumentResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() generate_document_200_application_json_object: Optional[GenerateDocument200ApplicationJSON] = dataclasses.field(default=None) r"""Generated document output""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index ccf23247b..0296bfc80 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -16,27 +16,31 @@ class GenerateDocumentV2RequestBodyLanguage(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2RequestBodyTemplateDocument: r"""Input template document""" - filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) r"""Document original filename""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2RequestBodyVariablePayload: r"""Custom values for variables in the template. Takes the higher precedence than others.""" - additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2RequestBody: - template_document: GenerateDocumentV2RequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) @@ -48,6 +52,8 @@ class GenerateDocumentV2RequestBody: variable_payload: Optional[GenerateDocumentV2RequestBodyVariablePayload] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('variable_payload'), 'exclude': lambda f: f is None }}) r"""Custom values for variables in the template. Takes the higher precedence than others.""" + + class GenerateDocumentV2Mode(str, Enum): r"""Type of mode used for document generation flow. Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. @@ -57,9 +63,9 @@ class GenerateDocumentV2Mode(str, Enum): FULL_GENERATION = 'full_generation' + @dataclasses.dataclass class GenerateDocumentV2Request: - job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) r"""Job ID for tracking the status of document generation action""" mode: Optional[GenerateDocumentV2Mode] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) @@ -70,23 +76,29 @@ class GenerateDocumentV2Request: request_body: Optional[GenerateDocumentV2RequestBody] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: - filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) r"""Generated document filename for DOCX""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONDocxOutput: - output_document: Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) r"""Pre-signed S3 GET URL for DOCX preview""" + + class GenerateDocumentV2200ApplicationJSONJobStatus(str, Enum): r"""Status of the job""" STARTED = 'STARTED' @@ -96,36 +108,42 @@ class GenerateDocumentV2200ApplicationJSONJobStatus(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: - filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) r"""Generated document filename for PDF""" s3ref: Optional[shared_s3reference.S3Reference] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('s3ref'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONPdfOutput: - output_document: Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) preview_url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('preview_url'), 'exclude': lambda f: f is None }}) r"""Pre-signed S3 GET URL for PDF preview""" + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONVariablePayload: r"""List of variables and its corresponding replaced values from the document template""" - additional_properties: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('additionalProperties'), 'exclude': lambda f: f is None }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSON: r"""Generated document output""" - docx_output: Optional[GenerateDocumentV2200ApplicationJSONDocxOutput] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('docx_output'), 'exclude': lambda f: f is None }}) job_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_id'), 'exclude': lambda f: f is None }}) job_status: Optional[GenerateDocumentV2200ApplicationJSONJobStatus] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('job_status'), 'exclude': lambda f: f is None }}) @@ -137,12 +155,15 @@ class GenerateDocumentV2200ApplicationJSON: r"""List of variables and its corresponding replaced values from the document template""" + + + @dataclasses.dataclass class GenerateDocumentV2Response: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() generate_document_v2_200_application_json_object: Optional[GenerateDocumentV2200ApplicationJSON] = dataclasses.field(default=None) r"""Generated document output""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/document/src/epilot/models/shared/s3reference.py b/document/src/epilot/models/shared/s3reference.py index 9bd1ab641..e90a2b0fc 100755 --- a/document/src/epilot/models/shared/s3reference.py +++ b/document/src/epilot/models/shared/s3reference.py @@ -7,9 +7,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class S3Reference: - bucket: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bucket') }}) key: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('key') }}) - \ No newline at end of file + + diff --git a/document/src/epilot/models/shared/security.py b/document/src/epilot/models/shared/security.py index 7be3d6e93..e75e944ea 100755 --- a/document/src/epilot/models/shared/security.py +++ b/document/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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 249566d87..0ae6f5dca 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 32910cec284729d6893aa8368f9a5b4aa0aec2f5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 11 Jun 2023 01:17:46 +0000 Subject: [PATCH 35/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index a832698e8..04c0e8264 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -238,4 +238,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:17:33 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index ec461769a..324f42e78 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 786b6ffcf..657750445 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.21.0", + version="1.21.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 0ae6f5dca..390a95272 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 b8da7bf8b5121018c6c484a4c8dc03fc3265eef5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 14 Jun 2023 01:07:39 +0000 Subject: [PATCH 36/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.3 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/retries.py | 3 ++- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 04c0e8264..40028ac96 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -244,4 +244,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:07:27 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 324f42e78..cb4042d19 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 657750445..617e93a63 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.21.1", + version="1.22.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 390a95272..d1dc6c091 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/retries.py b/document/src/epilot/utils/retries.py index c6251d948..2138c1b5e 100755 --- a/document/src/epilot/utils/retries.py +++ b/document/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 6ba46941e7b4ac5ebb01bd208ac9a74400b2c32b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 16 Jun 2023 01:08:45 +0000 Subject: [PATCH 37/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.48.0 --- document/.gitignore | 2 +- document/RELEASES.md | 8 +++++++- document/files.gen | 1 - document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/document/.gitignore b/document/.gitignore index 9072ad43b..648876d29 100755 --- a/document/.gitignore +++ b/document/.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/document/RELEASES.md b/document/RELEASES.md index 40028ac96..257b58c37 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -250,4 +250,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:08:28 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index b93669144..d7c4aa1c9 100755 --- a/document/files.gen +++ b/document/files.gen @@ -1,7 +1,6 @@ src/epilot/sdkconfiguration.py src/epilot/documents.py src/epilot/sdk.py -.gitignore pylintrc setup.py src/epilot/__init__.py diff --git a/document/gen.yaml b/document/gen.yaml index cb4042d19..7dc04ebc8 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 617e93a63..546833168 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.22.0", + version="1.23.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index d1dc6c091..0a83951a4 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 0f48e6d202ae73e7841de0aa29b8c48e78bb59c0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 20 Jun 2023 01:06:29 +0000 Subject: [PATCH 38/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.0 --- document/.gitignore | 2 ++ document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/document/.gitignore b/document/.gitignore index 648876d29..8ac3f51d4 100755 --- a/document/.gitignore +++ b/document/.gitignore @@ -1,3 +1,5 @@ +.python-version +.DS_Store venv/ src/*.egg-info/ __pycache__/ diff --git a/document/RELEASES.md b/document/RELEASES.md index 257b58c37..671170055 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -256,4 +256,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:06:16 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 7dc04ebc8..0404b5620 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 546833168..a7ff4ae92 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.23.0", + version="1.23.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 0a83951a4..4a3e25641 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 5032f17d9e375838b5d0545798bb340def38f180 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 21 Jun 2023 01:08:22 +0000 Subject: [PATCH 39/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 671170055..3ee9b084d 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -262,4 +262,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:08:09 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 0404b5620..58cb61cac 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index a7ff4ae92..5cf63df08 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.23.1", + version="1.23.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 4a3e25641..753be1d82 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 75b5cd78a3fbb432444f8dc7f4ef06ba0c40b92b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 23 Jun 2023 01:16:32 +0000 Subject: [PATCH 40/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.50.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 3ee9b084d..c0d64e9c7 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -268,4 +268,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:16:19 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 58cb61cac..71c3665f3 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 5cf63df08..fa8d3ad60 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.23.2", + version="1.24.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 753be1d82..037df2214 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 b94545cb4ba2fdb7e1f1d40bf004e9c5f75acf43 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 27 Jun 2023 01:17:37 +0000 Subject: [PATCH 41/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index c0d64e9c7..57a64e89b 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -274,4 +274,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:17:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 71c3665f3..db9f8e537 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index fa8d3ad60..5146099ad 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.24.0", + version="1.25.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 037df2214..359737d61 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 94e76bdddef065eb9a2d77beeca1281b6a61bd39 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 29 Jun 2023 01:15:20 +0000 Subject: [PATCH 42/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.3 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 57a64e89b..4d8d74611 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -280,4 +280,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:15:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index db9f8e537..82078bb37 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 5146099ad..d9d7df9ad 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.25.0", + version="1.26.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 359737d61..046e8c11f 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 ffe4f7529bc58d09d6c89391655254f7ed7aa7df Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Jul 2023 01:23:02 +0000 Subject: [PATCH 43/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 4d8d74611..5ecf2bc04 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -286,4 +286,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy + +## 2023-07-01 01:22:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 82078bb37..326e4bbdf 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index d9d7df9ad..2ddac6b5a 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.26.0", + version="1.27.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 046e8c11f..58f725df3 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 97bda1131d27d707683f328bd64c6d6ff00000e4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Jul 2023 01:18:39 +0000 Subject: [PATCH 44/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.2 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 5ecf2bc04..ef4b1c092 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -292,4 +292,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:18:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 326e4bbdf..58e34d45d 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 2ddac6b5a..bfa25a883 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.27.0", + version="1.28.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 58f725df3..2f56e2266 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 289de304a585f17927dff80d2d79b0d1626d002d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Jul 2023 01:19:23 +0000 Subject: [PATCH 45/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index ef4b1c092..58f9813e9 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -298,4 +298,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:19:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 58e34d45d..795a69a3b 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index bfa25a883..7de3c693a 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.28.0", + version="1.29.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 2f56e2266..76607d1be 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 645fa853e45c9edc46ab1d4506d18e39b571a776 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 8 Jul 2023 01:17:48 +0000 Subject: [PATCH 46/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 58f9813e9..21f52abe3 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -304,4 +304,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:17:34 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 795a69a3b..2e245511e 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 7de3c693a..4ae7f2e0e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.29.0", + version="1.29.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 76607d1be..f1a61baf2 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 e13be40664aa13c28be4d1006a8f87592f7cae04 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 11 Jul 2023 01:10:15 +0000 Subject: [PATCH 47/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 21f52abe3..b274a7442 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -310,4 +310,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:10:00 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 2e245511e..3b87ecd52 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 4ae7f2e0e..b5ac4330e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.29.1", + version="1.30.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index f1a61baf2..b6ea8d763 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 1ede2a9c345918aab54a6861cd7dd7d30ab061f7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Jul 2023 01:16:05 +0000 Subject: [PATCH 48/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.4 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index b274a7442..39b8f884f 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -316,4 +316,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:15:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.56.4 (2.61.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 3b87ecd52..134210331 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index b5ac4330e..2a24acbf4 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.30.0", + version="1.30.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index b6ea8d763..ed4579091 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 7fbb2bc67fc53d35874ffcc8b3360b736c5c80b0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 13 Jul 2023 01:19:05 +0000 Subject: [PATCH 49/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.57.0 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/documents.py | 12 ++++++------ document/src/epilot/sdk.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 20 insertions(+), 14 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 39b8f884f..7f23567d2 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -322,4 +322,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:18:50 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 134210331..604ea8a31 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 2a24acbf4..6b79d83f3 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.30.1", + version="1.31.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index 2fc406f8b..a6ea46f4a 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -16,13 +16,13 @@ def __init__(self, sdk_config: SDKConfiguration) -> None: def generate_document(self, request: operations.GenerateDocumentRequestBody) -> operations.GenerateDocumentResponse: r"""generateDocument Builds document generated from input document with variables. - + Supported input document types: - .docx - + Supported output document types: - .pdf - + Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) @@ -53,14 +53,14 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> operations.GenerateDocumentV2Response: r"""generateDocumentV2 Builds document generated from input document with variables. - + Supported input document types: - .docx - + Supported output document types: - .pdf - .docx but limited to only text based variables - + Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the document. """ base_url = utils.template_url(*self.sdk_configuration.get_server_details()) diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 50def7fe0..1adaa54ab 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -8,7 +8,7 @@ class Epilot: r"""Document API: Generate documents with epilot data - + [Feature Documentation](https://docs.epilot.io/docs/files/document-generation) """ documents: Documents diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index ed4579091..c3ce57001 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.30.1' - gen_version: str = '2.61.5' + sdk_version: str = '1.31.0' + gen_version: str = '2.62.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 4bab67e874a798dd4e3d63f903ea27f931960e0e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Jul 2023 01:18:27 +0000 Subject: [PATCH 50/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.59.0 --- document/README.md | 2 ++ document/RELEASES.md | 8 +++++++- document/USAGE.md | 2 ++ document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/document/README.md b/document/README.md index 39a15d6e9..ede46b212 100755 --- a/document/README.md +++ b/document/README.md @@ -10,6 +10,8 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=docume ## SDK Example Usage + + ```python import epilot from epilot.models import operations, shared diff --git a/document/RELEASES.md b/document/RELEASES.md index 7f23567d2..700ec3010 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -328,4 +328,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:18:12 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index 18fbde8a2..91099df62 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -1,4 +1,6 @@ + + ```python import epilot from epilot.models import operations, shared diff --git a/document/gen.yaml b/document/gen.yaml index 604ea8a31..1c74159ea 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 6b79d83f3..240826a53 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.31.0", + version="1.32.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index c3ce57001..e362b63c5 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 a4688675de68a151c8d7fdc599f32c86eb707cc9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 17 Jul 2023 01:19:40 +0000 Subject: [PATCH 51/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.60.0 --- document/RELEASES.md | 8 ++++++- document/files.gen | 1 + document/gen.yaml | 6 ++--- document/pylintrc | 4 +++- document/setup.py | 2 +- document/src/epilot/documents.py | 4 ++++ document/src/epilot/models/errors/sdkerror.py | 24 +++++++++++++++++++ document/src/epilot/sdkconfiguration.py | 4 ++-- 8 files changed, 45 insertions(+), 8 deletions(-) create mode 100755 document/src/epilot/models/errors/sdkerror.py diff --git a/document/RELEASES.md b/document/RELEASES.md index 700ec3010..3f32db39c 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -334,4 +334,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-17 01:19:27 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index d7c4aa1c9..77b2902f8 100755 --- a/document/files.gen +++ b/document/files.gen @@ -5,6 +5,7 @@ pylintrc setup.py src/epilot/__init__.py src/epilot/models/__init__.py +src/epilot/models/errors/sdkerror.py src/epilot/utils/__init__.py src/epilot/utils/retries.py src/epilot/utils/utils.py diff --git a/document/gen.yaml b/document/gen.yaml index 1c74159ea..6f13d6fac 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/pylintrc b/document/pylintrc index cf84a65c0..138217e87 100755 --- a/document/pylintrc +++ b/document/pylintrc @@ -437,7 +437,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/document/setup.py b/document/setup.py index 240826a53..7db4c4b24 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.32.0", + version="1.33.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index a6ea46f4a..7fa96f0a3 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -46,6 +46,8 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GenerateDocument200ApplicationJSON]) res.generate_document_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 @@ -85,6 +87,8 @@ def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[operations.GenerateDocumentV2200ApplicationJSON]) res.generate_document_v2_200_application_json_object = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res diff --git a/document/src/epilot/models/errors/sdkerror.py b/document/src/epilot/models/errors/sdkerror.py new file mode 100755 index 000000000..6bb02bbd6 --- /dev/null +++ b/document/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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index e362b63c5..872ce2acd 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.32.0' - gen_version: str = '2.65.0' + sdk_version: str = '1.33.0' + gen_version: str = '2.66.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From d2c3df8267e90ae74cee93fd7848ec0590f2e87c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Jul 2023 01:39:46 +0000 Subject: [PATCH 52/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.61.0 --- document/RELEASES.md | 8 +++++++- document/files.gen | 1 + document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/documents.py | 2 +- document/src/epilot/models/errors/__init__.py | 4 ++++ document/src/epilot/sdkconfiguration.py | 4 ++-- 7 files changed, 19 insertions(+), 8 deletions(-) create mode 100755 document/src/epilot/models/errors/__init__.py diff --git a/document/RELEASES.md b/document/RELEASES.md index 3f32db39c..3d7c2f5e6 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -340,4 +340,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-18 01:39:32 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index 77b2902f8..ef1ab4c54 100755 --- a/document/files.gen +++ b/document/files.gen @@ -15,6 +15,7 @@ src/epilot/models/operations/__init__.py src/epilot/models/shared/s3reference.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/documents/README.md USAGE.md diff --git a/document/gen.yaml b/document/gen.yaml index 6f13d6fac..0fc7d6210 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 7db4c4b24..7f5fb071e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.33.0", + version="1.34.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index 7fa96f0a3..e51a50e28 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils -from epilot.models import operations +from epilot.models import errors, operations from typing import Optional class Documents: diff --git a/document/src/epilot/models/errors/__init__.py b/document/src/epilot/models/errors/__init__.py new file mode 100755 index 000000000..cfd848441 --- /dev/null +++ b/document/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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 872ce2acd..1ca822767 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.33.0' - gen_version: str = '2.66.0' + sdk_version: str = '1.34.0' + gen_version: str = '2.70.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 884b055c91a588926a70bcb0db7b6071ab132e5f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Jul 2023 02:18:26 +0000 Subject: [PATCH 53/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.62.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 3d7c2f5e6..b97a921a6 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -346,4 +346,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:18:08 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 0fc7d6210..b1421f72c 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 7f5fb071e..1ca9ea406 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.34.0", + version="1.34.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 1ca822767..f82a85d6e 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 06fa7a4e22775312ca3a7995200276993a16be19 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Jul 2023 01:06:27 +0000 Subject: [PATCH 54/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.64.0 --- document/RELEASES.md | 8 +++++++- document/USAGE.md | 0 .../operations/generatedocument200applicationjson.md | 0 .../generatedocument200applicationjsonoutputdocument.md | 0 .../docs/models/operations/generatedocumentrequestbody.md | 0 .../generatedocumentrequestbodytemplatedocument.md | 0 .../docs/models/operations/generatedocumentresponse.md | 0 .../operations/generatedocumentv2200applicationjson.md | 0 .../generatedocumentv2200applicationjsondocxoutput.md | 0 ...ocumentv2200applicationjsondocxoutputoutputdocument.md | 0 .../generatedocumentv2200applicationjsonjobstatus.md | 0 .../generatedocumentv2200applicationjsonpdfoutput.md | 0 ...documentv2200applicationjsonpdfoutputoutputdocument.md | 0 ...generatedocumentv2200applicationjsonvariablepayload.md | 0 document/docs/models/operations/generatedocumentv2mode.md | 0 .../docs/models/operations/generatedocumentv2request.md | 0 .../models/operations/generatedocumentv2requestbody.md | 0 .../operations/generatedocumentv2requestbodylanguage.md | 0 .../generatedocumentv2requestbodytemplatedocument.md | 0 .../generatedocumentv2requestbodyvariablepayload.md | 0 .../docs/models/operations/generatedocumentv2response.md | 0 document/docs/models/shared/s3reference.md | 0 document/docs/models/shared/security.md | 0 document/docs/sdks/documents/README.md | 0 document/docs/sdks/epilot/README.md | 0 document/gen.yaml | 6 +++--- document/pylintrc | 0 document/setup.py | 4 ++-- document/src/epilot/__init__.py | 0 document/src/epilot/documents.py | 0 document/src/epilot/models/__init__.py | 0 document/src/epilot/models/errors/__init__.py | 0 document/src/epilot/models/errors/sdkerror.py | 0 document/src/epilot/models/operations/__init__.py | 0 document/src/epilot/models/operations/generatedocument.py | 0 .../src/epilot/models/operations/generatedocumentv2.py | 0 document/src/epilot/models/shared/__init__.py | 0 document/src/epilot/models/shared/s3reference.py | 0 document/src/epilot/models/shared/security.py | 0 document/src/epilot/sdk.py | 0 document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/__init__.py | 0 document/src/epilot/utils/retries.py | 0 document/src/epilot/utils/utils.py | 0 44 files changed, 14 insertions(+), 8 deletions(-) mode change 100755 => 100644 document/USAGE.md mode change 100755 => 100644 document/docs/models/operations/generatedocument200applicationjson.md mode change 100755 => 100644 document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentrequestbody.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentresponse.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjson.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2mode.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2request.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2requestbody.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2requestbodylanguage.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md mode change 100755 => 100644 document/docs/models/operations/generatedocumentv2response.md mode change 100755 => 100644 document/docs/models/shared/s3reference.md mode change 100755 => 100644 document/docs/models/shared/security.md mode change 100755 => 100644 document/docs/sdks/documents/README.md mode change 100755 => 100644 document/docs/sdks/epilot/README.md mode change 100755 => 100644 document/pylintrc mode change 100755 => 100644 document/setup.py mode change 100755 => 100644 document/src/epilot/__init__.py mode change 100755 => 100644 document/src/epilot/documents.py mode change 100755 => 100644 document/src/epilot/models/__init__.py mode change 100755 => 100644 document/src/epilot/models/errors/__init__.py mode change 100755 => 100644 document/src/epilot/models/errors/sdkerror.py mode change 100755 => 100644 document/src/epilot/models/operations/__init__.py mode change 100755 => 100644 document/src/epilot/models/operations/generatedocument.py mode change 100755 => 100644 document/src/epilot/models/operations/generatedocumentv2.py mode change 100755 => 100644 document/src/epilot/models/shared/__init__.py mode change 100755 => 100644 document/src/epilot/models/shared/s3reference.py mode change 100755 => 100644 document/src/epilot/models/shared/security.py mode change 100755 => 100644 document/src/epilot/sdk.py mode change 100755 => 100644 document/src/epilot/sdkconfiguration.py mode change 100755 => 100644 document/src/epilot/utils/__init__.py mode change 100755 => 100644 document/src/epilot/utils/retries.py mode change 100755 => 100644 document/src/epilot/utils/utils.py diff --git a/document/RELEASES.md b/document/RELEASES.md index b97a921a6..9337e2cc8 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -352,4 +352,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:06:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocument200applicationjson.md b/document/docs/models/operations/generatedocument200applicationjson.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentrequestbody.md b/document/docs/models/operations/generatedocumentrequestbody.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentresponse.md b/document/docs/models/operations/generatedocumentresponse.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjson.md b/document/docs/models/operations/generatedocumentv2200applicationjson.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md b/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md b/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2mode.md b/document/docs/models/operations/generatedocumentv2mode.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2request.md b/document/docs/models/operations/generatedocumentv2request.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2requestbody.md b/document/docs/models/operations/generatedocumentv2requestbody.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2requestbodylanguage.md b/document/docs/models/operations/generatedocumentv2requestbodylanguage.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md b/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md old mode 100755 new mode 100644 diff --git a/document/docs/models/operations/generatedocumentv2response.md b/document/docs/models/operations/generatedocumentv2response.md old mode 100755 new mode 100644 diff --git a/document/docs/models/shared/s3reference.md b/document/docs/models/shared/s3reference.md old mode 100755 new mode 100644 diff --git a/document/docs/models/shared/security.md b/document/docs/models/shared/security.md old mode 100755 new mode 100644 diff --git a/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md old mode 100755 new mode 100644 diff --git a/document/docs/sdks/epilot/README.md b/document/docs/sdks/epilot/README.md old mode 100755 new mode 100644 diff --git a/document/gen.yaml b/document/gen.yaml index b1421f72c..24689b1df 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/pylintrc b/document/pylintrc old mode 100755 new mode 100644 diff --git a/document/setup.py b/document/setup.py old mode 100755 new mode 100644 index 1ca9ea406..fc3cb186c --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - 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/document/src/epilot/__init__.py b/document/src/epilot/__init__.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/__init__.py b/document/src/epilot/models/__init__.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/errors/__init__.py b/document/src/epilot/models/errors/__init__.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/errors/sdkerror.py b/document/src/epilot/models/errors/sdkerror.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/operations/__init__.py b/document/src/epilot/models/operations/__init__.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/shared/__init__.py b/document/src/epilot/models/shared/__init__.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/shared/s3reference.py b/document/src/epilot/models/shared/s3reference.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/models/shared/security.py b/document/src/epilot/models/shared/security.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py old mode 100755 new mode 100644 index f82a85d6e..d17c41cdc --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/__init__.py b/document/src/epilot/utils/__init__.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/utils/retries.py b/document/src/epilot/utils/retries.py old mode 100755 new mode 100644 diff --git a/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py old mode 100755 new mode 100644 From 786602f92344dd3024638ab746924836b69c29c2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Jul 2023 01:06:14 +0000 Subject: [PATCH 55/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.0 --- document/RELEASES.md | 8 +++++++- document/USAGE.md | 0 .../operations/generatedocument200applicationjson.md | 0 .../generatedocument200applicationjsonoutputdocument.md | 0 .../docs/models/operations/generatedocumentrequestbody.md | 0 .../generatedocumentrequestbodytemplatedocument.md | 0 .../docs/models/operations/generatedocumentresponse.md | 0 .../operations/generatedocumentv2200applicationjson.md | 0 .../generatedocumentv2200applicationjsondocxoutput.md | 0 ...ocumentv2200applicationjsondocxoutputoutputdocument.md | 0 .../generatedocumentv2200applicationjsonjobstatus.md | 0 .../generatedocumentv2200applicationjsonpdfoutput.md | 0 ...documentv2200applicationjsonpdfoutputoutputdocument.md | 0 ...generatedocumentv2200applicationjsonvariablepayload.md | 0 document/docs/models/operations/generatedocumentv2mode.md | 0 .../docs/models/operations/generatedocumentv2request.md | 0 .../models/operations/generatedocumentv2requestbody.md | 0 .../operations/generatedocumentv2requestbodylanguage.md | 0 .../generatedocumentv2requestbodytemplatedocument.md | 0 .../generatedocumentv2requestbodyvariablepayload.md | 0 .../docs/models/operations/generatedocumentv2response.md | 0 document/docs/models/shared/s3reference.md | 0 document/docs/models/shared/security.md | 0 document/docs/sdks/documents/README.md | 0 document/docs/sdks/epilot/README.md | 0 document/gen.yaml | 6 +++--- document/pylintrc | 0 document/setup.py | 2 +- document/src/epilot/__init__.py | 0 document/src/epilot/documents.py | 0 document/src/epilot/models/__init__.py | 0 document/src/epilot/models/errors/__init__.py | 0 document/src/epilot/models/errors/sdkerror.py | 0 document/src/epilot/models/operations/__init__.py | 0 document/src/epilot/models/operations/generatedocument.py | 0 .../src/epilot/models/operations/generatedocumentv2.py | 0 document/src/epilot/models/shared/__init__.py | 0 document/src/epilot/models/shared/s3reference.py | 0 document/src/epilot/models/shared/security.py | 0 document/src/epilot/sdk.py | 0 document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/__init__.py | 0 document/src/epilot/utils/retries.py | 0 document/src/epilot/utils/utils.py | 0 44 files changed, 13 insertions(+), 7 deletions(-) mode change 100644 => 100755 document/USAGE.md mode change 100644 => 100755 document/docs/models/operations/generatedocument200applicationjson.md mode change 100644 => 100755 document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentrequestbody.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentresponse.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjson.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2mode.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2request.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2requestbody.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2requestbodylanguage.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md mode change 100644 => 100755 document/docs/models/operations/generatedocumentv2response.md mode change 100644 => 100755 document/docs/models/shared/s3reference.md mode change 100644 => 100755 document/docs/models/shared/security.md mode change 100644 => 100755 document/docs/sdks/documents/README.md mode change 100644 => 100755 document/docs/sdks/epilot/README.md mode change 100644 => 100755 document/pylintrc mode change 100644 => 100755 document/setup.py mode change 100644 => 100755 document/src/epilot/__init__.py mode change 100644 => 100755 document/src/epilot/documents.py mode change 100644 => 100755 document/src/epilot/models/__init__.py mode change 100644 => 100755 document/src/epilot/models/errors/__init__.py mode change 100644 => 100755 document/src/epilot/models/errors/sdkerror.py mode change 100644 => 100755 document/src/epilot/models/operations/__init__.py mode change 100644 => 100755 document/src/epilot/models/operations/generatedocument.py mode change 100644 => 100755 document/src/epilot/models/operations/generatedocumentv2.py mode change 100644 => 100755 document/src/epilot/models/shared/__init__.py mode change 100644 => 100755 document/src/epilot/models/shared/s3reference.py mode change 100644 => 100755 document/src/epilot/models/shared/security.py mode change 100644 => 100755 document/src/epilot/sdk.py mode change 100644 => 100755 document/src/epilot/sdkconfiguration.py mode change 100644 => 100755 document/src/epilot/utils/__init__.py mode change 100644 => 100755 document/src/epilot/utils/retries.py mode change 100644 => 100755 document/src/epilot/utils/utils.py diff --git a/document/RELEASES.md b/document/RELEASES.md index 9337e2cc8..ff8f60580 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -358,4 +358,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:05:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocument200applicationjson.md b/document/docs/models/operations/generatedocument200applicationjson.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentrequestbody.md b/document/docs/models/operations/generatedocumentrequestbody.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentresponse.md b/document/docs/models/operations/generatedocumentresponse.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjson.md b/document/docs/models/operations/generatedocumentv2200applicationjson.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md b/document/docs/models/operations/generatedocumentv2200applicationjsonjobstatus.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md b/document/docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2mode.md b/document/docs/models/operations/generatedocumentv2mode.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2request.md b/document/docs/models/operations/generatedocumentv2request.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2requestbody.md b/document/docs/models/operations/generatedocumentv2requestbody.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2requestbodylanguage.md b/document/docs/models/operations/generatedocumentv2requestbodylanguage.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md b/document/docs/models/operations/generatedocumentv2requestbodyvariablepayload.md old mode 100644 new mode 100755 diff --git a/document/docs/models/operations/generatedocumentv2response.md b/document/docs/models/operations/generatedocumentv2response.md old mode 100644 new mode 100755 diff --git a/document/docs/models/shared/s3reference.md b/document/docs/models/shared/s3reference.md old mode 100644 new mode 100755 diff --git a/document/docs/models/shared/security.md b/document/docs/models/shared/security.md old mode 100644 new mode 100755 diff --git a/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md old mode 100644 new mode 100755 diff --git a/document/docs/sdks/epilot/README.md b/document/docs/sdks/epilot/README.md old mode 100644 new mode 100755 diff --git a/document/gen.yaml b/document/gen.yaml index 24689b1df..ea590e8aa 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/pylintrc b/document/pylintrc old mode 100644 new mode 100755 diff --git a/document/setup.py b/document/setup.py old mode 100644 new mode 100755 index fc3cb186c..511977d07 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.35.0", + version="1.36.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/__init__.py b/document/src/epilot/__init__.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/__init__.py b/document/src/epilot/models/__init__.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/errors/__init__.py b/document/src/epilot/models/errors/__init__.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/errors/sdkerror.py b/document/src/epilot/models/errors/sdkerror.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/operations/__init__.py b/document/src/epilot/models/operations/__init__.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/shared/__init__.py b/document/src/epilot/models/shared/__init__.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/shared/s3reference.py b/document/src/epilot/models/shared/s3reference.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/models/shared/security.py b/document/src/epilot/models/shared/security.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py old mode 100644 new mode 100755 index d17c41cdc..f13e976c3 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/__init__.py b/document/src/epilot/utils/__init__.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/utils/retries.py b/document/src/epilot/utils/retries.py old mode 100644 new mode 100755 diff --git a/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py old mode 100644 new mode 100755 From 3b3758355c2195875c3aaf8d67cbac467fb82082 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Jul 2023 00:59:12 +0000 Subject: [PATCH 56/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index ff8f60580..f3fcb4bbd 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -364,4 +364,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-27 00:58:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index ea590e8aa..cdba79cda 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 511977d07..10343a748 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.36.0", + version="1.36.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index f13e976c3..826a6418b 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 14ce9b5c8354d332a52d9207bd52135b248c77cc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Jul 2023 01:00:26 +0000 Subject: [PATCH 57/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.2 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index f3fcb4bbd..f30d70390 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -370,4 +370,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:00:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index cdba79cda..3036c093a 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 10343a748..ab62a1fdc 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.36.1", + version="1.37.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 826a6418b..648320bdb 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 a334472618bb0a25f85237ca0d0276b55e0634b0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Aug 2023 01:07:28 +0000 Subject: [PATCH 58/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.66.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index f30d70390..c6b82629d 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -376,4 +376,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:07:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 3036c093a..edf12690c 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index ab62a1fdc..47f4d9a3e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.37.0", + version="1.37.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 648320bdb..c8526ecf8 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 96b2a5c4251484cb2709bb08b750424f713ef11d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Aug 2023 01:01:39 +0000 Subject: [PATCH 59/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index c6b82629d..619ea3b88 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -382,4 +382,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:01:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index edf12690c..c964b620b 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 47f4d9a3e..5873f7b1e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.37.1", + version="1.38.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index c8526ecf8..abecb96be 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 141acbdbdfdf44e1b7968d193c3b0329769abc9b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 4 Aug 2023 01:03:21 +0000 Subject: [PATCH 60/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.3 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 6 +++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/utils.py | 5 ++++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 619ea3b88..cea4a9b8c 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -388,4 +388,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.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:03:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index c964b620b..ddcce1e39 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 5873f7b1e..9b4b361ed 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.38.0", + version="1.39.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index abecb96be..9f24cb25c 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 6b39ecf74..3456af651 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 c04a316ae54956dbeb7ad911904f28aa21d98067 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 8 Aug 2023 01:00:04 +0000 Subject: [PATCH 61/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.69.1 --- document/RELEASES.md | 8 +++++++- document/gen.yaml | 11 ++++++++--- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index cea4a9b8c..9c4ff6629 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -394,4 +394,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy + +## 2023-08-08 00:59:49 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index ddcce1e39..49b757697 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,14 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 9b4b361ed..2ffce8bc7 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.39.0", + version="1.40.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 9f24cb25c..f0a2c160d 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 f78897066a1263b434299f6d70d5a63a690e6695 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 15 Aug 2023 00:51:13 +0000 Subject: [PATCH 62/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.72.0 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 9c4ff6629..fe5efc3c7 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -400,4 +400,12 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml -- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy + +## 2023-08-15 00:50:58 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.0] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 49b757697..64779746f 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 2ffce8bc7..b2fdda4e9 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.40.0", + version="1.41.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index f0a2c160d..afaf40bb0 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 505c2ad183b3e8f5ef5a2a96e823f4b91fe28830 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 19 Aug 2023 00:49:08 +0000 Subject: [PATCH 63/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.3 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/utils.py | 4 ++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index fe5efc3c7..e3d9e630e 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -408,4 +408,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.0] document \ No newline at end of file +- [python v1.41.0] document + +## 2023-08-19 00:48:52 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.1] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 64779746f..32ed7e863 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index b2fdda4e9..3c81b48b9 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.41.0", + version="1.41.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index afaf40bb0..4e60f650b 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 3456af651..ea9792d0d 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 932c32782969b14807d706900084015242ade0ab Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 25 Aug 2023 00:52:05 +0000 Subject: [PATCH 64/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.11 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index e3d9e630e..67e6ab673 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -416,4 +416,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.1] document \ No newline at end of file +- [python v1.41.1] document + +## 2023-08-25 00:51:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.2] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 32ed7e863..554ac8980 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee docVersion: 1.0.0 - speakeasyVersion: 1.74.3 - generationVersion: 2.86.6 + speakeasyVersion: 1.74.11 + generationVersion: 2.87.1 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.1 + core: 2.82.2 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.41.1 + version: 1.41.2 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/document/setup.py b/document/setup.py index 3c81b48b9..ed550437c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.41.1", + version="1.41.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 4e60f650b..0d6199a44 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.41.1' - gen_version: str = '2.86.6' + sdk_version: str = '1.41.2' + gen_version: str = '2.87.1' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From c3df76f1bb95c568e0647b080aaaaf8e0f4776fa Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 26 Aug 2023 00:49:52 +0000 Subject: [PATCH 65/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.16 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 67e6ab673..402e3bfbc 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -424,4 +424,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.2] document \ No newline at end of file +- [python v1.41.2] document + +## 2023-08-26 00:49:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.0] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 554ac8980..5b7ec6b4b 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee docVersion: 1.0.0 - speakeasyVersion: 1.74.11 - generationVersion: 2.87.1 + speakeasyVersion: 1.74.16 + generationVersion: 2.88.2 generation: sdkClassName: epilot singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.2 + core: 2.83.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.41.2 + version: 1.42.0 author: epilot description: Python Client SDK for Epilot maxMethodParams: 0 diff --git a/document/setup.py b/document/setup.py index ed550437c..2781e9acb 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.41.2", + version="1.42.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 0d6199a44..261b6b602 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.41.2' - gen_version: str = '2.87.1' + sdk_version: str = '1.42.0' + gen_version: str = '2.88.2' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: From 194231f6d33466d84e34cb7b34362ab4050d6c29 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 29 Aug 2023 00:52:25 +0000 Subject: [PATCH 66/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.17 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/pylintrc | 2 +- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 402e3bfbc..303119eae 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -432,4 +432,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.0] document \ No newline at end of file +- [python v1.42.0] document + +## 2023-08-29 00:52:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.1] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 5b7ec6b4b..6cc6a6aeb 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/pylintrc b/document/pylintrc index 138217e87..8307335ef 100755 --- a/document/pylintrc +++ b/document/pylintrc @@ -620,7 +620,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/document/setup.py b/document/setup.py index 2781e9acb..b19868081 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.42.0", + version="1.42.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 261b6b602..afba4d0e0 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 9b218e05897ad00ffe35ae9538390357402864a5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 31 Aug 2023 00:52:27 +0000 Subject: [PATCH 67/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.76.1 --- document/.gitattributes | 2 ++ document/RELEASES.md | 10 +++++++++- document/files.gen | 3 ++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 document/.gitattributes diff --git a/document/.gitattributes b/document/.gitattributes new file mode 100755 index 000000000..4d75d5900 --- /dev/null +++ b/document/.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/document/RELEASES.md b/document/RELEASES.md index 303119eae..ca2ca7e08 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -440,4 +440,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.1] document \ No newline at end of file +- [python v1.42.1] document + +## 2023-08-31 00:52:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.0] document \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index ef1ab4c54..b384d70a8 100755 --- a/document/files.gen +++ b/document/files.gen @@ -39,4 +39,5 @@ docs/models/operations/generatedocumentv2200applicationjsonvariablepayload.md docs/models/operations/generatedocumentv2200applicationjson.md docs/models/operations/generatedocumentv2response.md docs/models/shared/s3reference.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/document/gen.yaml b/document/gen.yaml index 6cc6a6aeb..b996cb1c9 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index b19868081..dde0d2628 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.42.1", + version="1.43.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index afba4d0e0..86a618e0e 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 08baec459b983ba03317dcc0c94bf9f395264dfd Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 1 Sep 2023 00:55:44 +0000 Subject: [PATCH 68/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.0 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index ca2ca7e08..7b2aa1748 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -448,4 +448,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.0] document \ No newline at end of file +- [python v1.43.0] document + +## 2023-09-01 00:55:30 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.0] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index b996cb1c9..13b63adee 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index dde0d2628..71f5cf99f 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.43.0", + version="1.44.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 86a618e0e..d20042ce3 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 39ae88ea7e2258bb9c2bf363814c01489d4f2169 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 2 Sep 2023 00:50:19 +0000 Subject: [PATCH 69/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.2 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 7b2aa1748..77d3b09be 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -456,4 +456,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.0] document \ No newline at end of file +- [python v1.44.0] document + +## 2023-09-02 00:50:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.1] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 13b63adee..bcd5037ea 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 71f5cf99f..b42f7a1f9 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.44.0", + version="1.44.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index d20042ce3..1a83f0992 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 b119a0757ac0c8feaf1c63cb153a20e583756c80 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 5 Sep 2023 00:51:23 +0000 Subject: [PATCH 70/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.78.3 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/utils.py | 19 +++++++++++-------- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 77d3b09be..6e74be22e 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -464,4 +464,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.1] document \ No newline at end of file +- [python v1.44.1] document + +## 2023-09-05 00:51:08 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.2] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index bcd5037ea..63ccaeadf 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index b42f7a1f9..b580fe782 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.44.1", + version="1.44.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 1a83f0992..e743d0c18 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index ea9792d0d..c91b0c049 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 de126cbc3cd419a2ba9b0f70fd8d1b3b95f0e375 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 12 Sep 2023 00:51:05 +0000 Subject: [PATCH 71/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.82.5 --- document/RELEASES.md | 10 +++++++- document/gen.yaml | 8 +++--- document/setup.py | 2 +- document/src/epilot/sdk.py | 9 ++++--- document/src/epilot/sdkconfiguration.py | 7 ++++-- document/src/epilot/utils/utils.py | 33 ++++++++++++++++++++++++- 6 files changed, 57 insertions(+), 12 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 6e74be22e..834a71c52 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -472,4 +472,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.2] document \ No newline at end of file +- [python v1.44.2] document + +## 2023-09-12 00:50:48 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.3] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 63ccaeadf..27dbb407e 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index b580fe782..59f954cab 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.44.2", + version="1.44.3", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 1adaa54ab..076bc56c9 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -21,7 +21,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. @@ -34,7 +35,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() @@ -45,7 +48,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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index e743d0c18..1751cf597 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -3,6 +3,8 @@ import requests from dataclasses import dataclass +from .utils.retries import RetryConfig + SERVERS = [ 'https://document.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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index c91b0c049..05eafba6c 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 8494ee87699c3f63717abfc801af8544a25dcc34 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 16 Sep 2023 00:51:30 +0000 Subject: [PATCH 72/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.86.0 --- document/README.md | 2 +- document/RELEASES.md | 10 +++++++++- document/docs/sdks/documents/README.md | 2 +- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 6 files changed, 18 insertions(+), 10 deletions(-) diff --git a/document/README.md b/document/README.md index ede46b212..147738312 100755 --- a/document/README.md +++ b/document/README.md @@ -46,7 +46,7 @@ if res.generate_document_200_application_json_object is not None: ## Available Resources and Operations -### [documents](docs/sdks/documents/README.md) +### [Documents](docs/sdks/documents/README.md) * [generate_document](docs/sdks/documents/README.md#generate_document) - generateDocument * [generate_document_v2](docs/sdks/documents/README.md#generate_document_v2) - generateDocumentV2 diff --git a/document/RELEASES.md b/document/RELEASES.md index 834a71c52..5f4a456f0 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -480,4 +480,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.3] document \ No newline at end of file +- [python v1.44.3] document + +## 2023-09-16 00:51:15 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.4] document \ No newline at end of file diff --git a/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md index 7b149f44c..24ae39cd7 100755 --- a/document/docs/sdks/documents/README.md +++ b/document/docs/sdks/documents/README.md @@ -1,4 +1,4 @@ -# documents +# Documents ## Overview diff --git a/document/gen.yaml b/document/gen.yaml index 27dbb407e..62885a949 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 59f954cab..f3ed1d62d 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.44.3", + version="1.44.4", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 1751cf597..6426a8990 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 0d5ccd851a824fdfc6909f67a809d5fa66569a7e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 20 Sep 2023 00:52:50 +0000 Subject: [PATCH 73/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.88.0 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 5f4a456f0..7c90f9172 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -488,4 +488,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.4] document \ No newline at end of file +- [python v1.44.4] document + +## 2023-09-20 00:52:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.5] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 62885a949..7aac8c31f 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index f3ed1d62d..ceb058e4b 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.44.4", + version="1.44.5", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 6426a8990..01b698dc7 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 7be67d51f385b933e06d0f14f49a52847cc2f6f8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 26 Sep 2023 00:53:39 +0000 Subject: [PATCH 74/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.0 --- document/README.md | 28 +++++++++++++++++-- document/RELEASES.md | 10 ++++++- .../operations/generatedocumentresponse.md | 6 ++-- .../operations/generatedocumentv2response.md | 6 ++-- document/files.gen | 4 +-- document/gen.yaml | 8 +++--- document/setup.py | 2 +- .../models/operations/generatedocument.py | 3 ++ .../models/operations/generatedocumentv2.py | 3 ++ document/src/epilot/sdkconfiguration.py | 4 +-- 10 files changed, 56 insertions(+), 18 deletions(-) diff --git a/document/README.md b/document/README.md index 147738312..d6ce6aaa0 100755 --- a/document/README.md +++ b/document/README.md @@ -10,8 +10,6 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=docume ## SDK Example Usage - - ```python import epilot from epilot.models import operations, shared @@ -52,4 +50,30 @@ if res.generate_document_200_application_json_object is not None: * [generate_document_v2](docs/sdks/documents/README.md#generate_document_v2) - generateDocumentV2 + + + + + + + + + + + +# 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/document/RELEASES.md b/document/RELEASES.md index 7c90f9172..d3b930a88 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -496,4 +496,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.5] document \ No newline at end of file +- [python v1.44.5] document + +## 2023-09-26 00:53:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.0] document \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentresponse.md b/document/docs/models/operations/generatedocumentresponse.md index 65e768e19..a53c87eab 100755 --- a/document/docs/models/operations/generatedocumentresponse.md +++ b/document/docs/models/operations/generatedocumentresponse.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 | | `generate_document_200_application_json_object` | [Optional[GenerateDocument200ApplicationJSON]](../../models/operations/generatedocument200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2response.md b/document/docs/models/operations/generatedocumentv2response.md index e1c09a5e6..3e1029823 100755 --- a/document/docs/models/operations/generatedocumentv2response.md +++ b/document/docs/models/operations/generatedocumentv2response.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 | | `generate_document_v2_200_application_json_object` | [Optional[GenerateDocumentV2200ApplicationJSON]](../../models/operations/generatedocumentv2200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/files.gen b/document/files.gen index b384d70a8..0d5b5f59f 100755 --- a/document/files.gen +++ b/document/files.gen @@ -16,8 +16,6 @@ src/epilot/models/shared/s3reference.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/documents/README.md USAGE.md docs/models/operations/generatedocumentrequestbodytemplatedocument.md docs/models/operations/generatedocumentrequestbody.md @@ -40,4 +38,6 @@ docs/models/operations/generatedocumentv2200applicationjson.md docs/models/operations/generatedocumentv2response.md docs/models/shared/s3reference.md docs/models/shared/security.md +docs/sdks/epilot/README.md +docs/sdks/documents/README.md .gitattributes \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 7aac8c31f..f2bb3e168 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index ceb058e4b..b1d98afd5 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.44.5", + version="1.45.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py index 13c94f3d0..8f4a17954 100755 --- a/document/src/epilot/models/operations/generatedocument.py +++ b/document/src/epilot/models/operations/generatedocument.py @@ -64,9 +64,12 @@ class GenerateDocument200ApplicationJSON: @dataclasses.dataclass class GenerateDocumentResponse: 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""" generate_document_200_application_json_object: Optional[GenerateDocument200ApplicationJSON] = dataclasses.field(default=None) r"""Generated document output""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index 0296bfc80..1772bd164 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -161,9 +161,12 @@ class GenerateDocumentV2200ApplicationJSON: @dataclasses.dataclass class GenerateDocumentV2Response: 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""" generate_document_v2_200_application_json_object: Optional[GenerateDocumentV2200ApplicationJSON] = dataclasses.field(default=None) r"""Generated document output""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 01b698dc7..31ed3c3f2 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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 30654f8c08dd1d5d173c50d9879f510a48f00ae9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Sep 2023 00:53:30 +0000 Subject: [PATCH 75/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.2 --- document/README.md | 6 +----- document/RELEASES.md | 10 +++++++++- document/docs/sdks/documents/README.md | 1 + document/docs/sdks/epilot/README.md | 1 + document/gen.yaml | 8 ++++---- document/setup.py | 4 ++-- document/src/epilot/sdkconfiguration.py | 4 ++-- document/src/epilot/utils/utils.py | 8 ++++++++ 8 files changed, 28 insertions(+), 14 deletions(-) diff --git a/document/README.md b/document/README.md index d6ce6aaa0..5cce228dc 100755 --- a/document/README.md +++ b/document/README.md @@ -44,7 +44,7 @@ if res.generate_document_200_application_json_object is not None: ## Available Resources and Operations -### [Documents](docs/sdks/documents/README.md) +### [documents](docs/sdks/documents/README.md) * [generate_document](docs/sdks/documents/README.md#generate_document) - generateDocument * [generate_document_v2](docs/sdks/documents/README.md#generate_document_v2) - generateDocumentV2 @@ -54,8 +54,6 @@ if res.generate_document_200_application_json_object is not None: - - @@ -68,8 +66,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/document/RELEASES.md b/document/RELEASES.md index d3b930a88..e848dd8e5 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -504,4 +504,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.0] document \ No newline at end of file +- [python v1.45.0] document + +## 2023-09-27 00:53:14 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.1] document \ No newline at end of file diff --git a/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md index 24ae39cd7..3e5dbcaa2 100755 --- a/document/docs/sdks/documents/README.md +++ b/document/docs/sdks/documents/README.md @@ -1,4 +1,5 @@ # Documents +(*documents*) ## Overview diff --git a/document/docs/sdks/epilot/README.md b/document/docs/sdks/epilot/README.md index 07faec1a4..3fa583376 100755 --- a/document/docs/sdks/epilot/README.md +++ b/document/docs/sdks/epilot/README.md @@ -1,5 +1,6 @@ # Epilot SDK + ## Overview Document API: Generate documents with epilot data diff --git a/document/gen.yaml b/document/gen.yaml index f2bb3e168..605ba223f 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index b1d98afd5..579622673 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - 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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 31ed3c3f2..9a743f33c 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 05eafba6c..b0aeb54de 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 d801fc4394b361f46a2c8b0ae511d364a25daaeb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 29 Sep 2023 00:53:21 +0000 Subject: [PATCH 76/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.3 --- document/RELEASES.md | 10 ++- .../generatedocument200applicationjson.md | 8 +- ...ocument200applicationjsonoutputdocument.md | 8 +- .../operations/generatedocumentrequestbody.md | 12 +-- ...ratedocumentrequestbodytemplatedocument.md | 8 +- .../operations/generatedocumentresponse.md | 12 +-- .../generatedocumentv2200applicationjson.md | 16 ++-- ...edocumentv2200applicationjsondocxoutput.md | 8 +- ...applicationjsondocxoutputoutputdocument.md | 8 +- ...tedocumentv2200applicationjsonpdfoutput.md | 8 +- ...0applicationjsonpdfoutputoutputdocument.md | 8 +- .../operations/generatedocumentv2request.md | 4 +- .../generatedocumentv2requestbody.md | 14 ++-- ...tedocumentv2requestbodytemplatedocument.md | 8 +- .../operations/generatedocumentv2response.md | 12 +-- document/docs/models/shared/s3reference.md | 4 +- document/docs/models/shared/security.md | 2 +- document/docs/sdks/documents/README.md | 6 +- document/gen.yaml | 8 +- document/pylintrc | 4 +- document/setup.py | 2 +- document/src/epilot/documents.py | 8 +- .../models/operations/generatedocument.py | 2 +- .../models/operations/generatedocumentv2.py | 4 +- document/src/epilot/sdkconfiguration.py | 5 +- document/src/epilot/utils/utils.py | 79 ++++++++++++++++--- 26 files changed, 168 insertions(+), 100 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index e848dd8e5..11e5e32c2 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -512,4 +512,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.1] document \ No newline at end of file +- [python v1.45.1] document + +## 2023-09-29 00:53:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.46.0] document \ No newline at end of file diff --git a/document/docs/models/operations/generatedocument200applicationjson.md b/document/docs/models/operations/generatedocument200applicationjson.md index 5ce865139..84eeba364 100755 --- a/document/docs/models/operations/generatedocument200applicationjson.md +++ b/document/docs/models/operations/generatedocument200applicationjson.md @@ -5,7 +5,7 @@ Generated document output ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `output_document` | [Optional[GenerateDocument200ApplicationJSONOutputDocument]](../../models/operations/generatedocument200applicationjsonoutputdocument.md) | :heavy_minus_sign: | N/A | | -| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[operations.GenerateDocument200ApplicationJSONOutputDocument]](undefined/models/operations/generatedocument200applicationjsonoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md index 7a49270ea..fbc34675f 100755 --- a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md +++ b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename | my-template-OR-001.pdf | -| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename | my-template-OR-001.pdf | +| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentrequestbody.md b/document/docs/models/operations/generatedocumentrequestbody.md index ef5f64d80..bd853b1f3 100755 --- a/document/docs/models/operations/generatedocumentrequestbody.md +++ b/document/docs/models/operations/generatedocumentrequestbody.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | -| `language` | *Optional[str]* | :heavy_minus_sign: | Language to use | de | -| `template_document` | [GenerateDocumentRequestBodyTemplateDocument](../../models/operations/generatedocumentrequestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | -| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | +| `language` | *Optional[str]* | :heavy_minus_sign: | Language to use | de | +| `template_document` | [Optional[operations.GenerateDocumentRequestBodyTemplateDocument]](undefined/models/operations/generatedocumentrequestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md index baca2675b..96c0ed231 100755 --- a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md +++ b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md @@ -5,7 +5,7 @@ Input template document ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | -| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | +| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentresponse.md b/document/docs/models/operations/generatedocumentresponse.md index a53c87eab..99038dbec 100755 --- a/document/docs/models/operations/generatedocumentresponse.md +++ b/document/docs/models/operations/generatedocumentresponse.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 | -| `generate_document_200_application_json_object` | [Optional[GenerateDocument200ApplicationJSON]](../../models/operations/generatedocument200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ 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 | +| `generate_document_200_application_json_object` | [Optional[operations.GenerateDocument200ApplicationJSON]](undefined/models/operations/generatedocument200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjson.md b/document/docs/models/operations/generatedocumentv2200applicationjson.md index fdeefeafb..9ffea1461 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjson.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjson.md @@ -5,11 +5,11 @@ Generated document output ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `docx_output` | [Optional[GenerateDocumentV2200ApplicationJSONDocxOutput]](../../models/operations/generatedocumentv2200applicationjsondocxoutput.md) | :heavy_minus_sign: | N/A | -| `job_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `job_status` | [Optional[GenerateDocumentV2200ApplicationJSONJobStatus]](../../models/operations/generatedocumentv2200applicationjsonjobstatus.md) | :heavy_minus_sign: | Status of the job | -| `message` | *Optional[str]* | :heavy_minus_sign: | A message explaining the progress | -| `pdf_output` | [Optional[GenerateDocumentV2200ApplicationJSONPdfOutput]](../../models/operations/generatedocumentv2200applicationjsonpdfoutput.md) | :heavy_minus_sign: | N/A | -| `variable_payload` | [Optional[GenerateDocumentV2200ApplicationJSONVariablePayload]](../../models/operations/generatedocumentv2200applicationjsonvariablepayload.md) | :heavy_minus_sign: | List of variables and its corresponding replaced values from the document template | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `docx_output` | [Optional[operations.GenerateDocumentV2200ApplicationJSONDocxOutput]](undefined/models/operations/generatedocumentv2200applicationjsondocxoutput.md) | :heavy_minus_sign: | N/A | +| `job_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `job_status` | [Optional[operations.GenerateDocumentV2200ApplicationJSONJobStatus]](undefined/models/operations/generatedocumentv2200applicationjsonjobstatus.md) | :heavy_minus_sign: | Status of the job | +| `message` | *Optional[str]* | :heavy_minus_sign: | A message explaining the progress | +| `pdf_output` | [Optional[operations.GenerateDocumentV2200ApplicationJSONPdfOutput]](undefined/models/operations/generatedocumentv2200applicationjsonpdfoutput.md) | :heavy_minus_sign: | N/A | +| `variable_payload` | [Optional[operations.GenerateDocumentV2200ApplicationJSONVariablePayload]](undefined/models/operations/generatedocumentv2200applicationjsonvariablepayload.md) | :heavy_minus_sign: | List of variables and its corresponding replaced values from the document template | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md index bcb556461..b85d518a2 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `output_document` | [Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument]](../../models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | -| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for DOCX preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[operations.GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument]](undefined/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for DOCX preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md index a5554287f..132ec8ca9 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for DOCX | my-template-OR-001.docx | -| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for DOCX | my-template-OR-001.docx | +| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md index 8c3f453f9..8be0a1183 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `output_document` | [Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument]](../../models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | -| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for PDF preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `output_document` | [Optional[operations.GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument]](undefined/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for PDF preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md index 8e6ba8c0f..ea3963d24 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for PDF | my-template-OR-001.pdf | -| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for PDF | my-template-OR-001.pdf | +| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2request.md b/document/docs/models/operations/generatedocumentv2request.md index de07f8652..014b590ff 100755 --- a/document/docs/models/operations/generatedocumentv2request.md +++ b/document/docs/models/operations/generatedocumentv2request.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `request_body` | [Optional[GenerateDocumentV2RequestBody]](../../models/operations/generatedocumentv2requestbody.md) | :heavy_minus_sign: | N/A | +| `request_body` | [Optional[operations.GenerateDocumentV2RequestBody]](undefined/models/operations/generatedocumentv2requestbody.md) | :heavy_minus_sign: | N/A | | `job_id` | *Optional[str]* | :heavy_minus_sign: | Job ID for tracking the status of document generation action | -| `mode` | [Optional[GenerateDocumentV2Mode]](../../models/operations/generatedocumentv2mode.md) | :heavy_minus_sign: | Type of mode used for document generation flow.
Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document.
Full - Goes through all the steps for the full generation of final document
| \ No newline at end of file +| `mode` | [Optional[operations.GenerateDocumentV2Mode]](undefined/models/operations/generatedocumentv2mode.md) | :heavy_minus_sign: | Type of mode used for document generation flow.
Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document.
Full - Goes through all the steps for the full generation of final document
| \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbody.md b/document/docs/models/operations/generatedocumentv2requestbody.md index 5e6af6ed5..5fcc827af 100755 --- a/document/docs/models/operations/generatedocumentv2requestbody.md +++ b/document/docs/models/operations/generatedocumentv2requestbody.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | -| `language` | [Optional[GenerateDocumentV2RequestBodyLanguage]](../../models/operations/generatedocumentv2requestbodylanguage.md) | :heavy_minus_sign: | Language to use | de | -| `template_document` | [GenerateDocumentV2RequestBodyTemplateDocument](../../models/operations/generatedocumentv2requestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | -| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | -| `variable_payload` | [Optional[GenerateDocumentV2RequestBodyVariablePayload]](../../models/operations/generatedocumentv2requestbodyvariablepayload.md) | :heavy_minus_sign: | Custom values for variables in the template. Takes the higher precedence than others. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | +| `language` | [Optional[operations.GenerateDocumentV2RequestBodyLanguage]](undefined/models/operations/generatedocumentv2requestbodylanguage.md) | :heavy_minus_sign: | Language to use | de | +| `template_document` | [Optional[operations.GenerateDocumentV2RequestBodyTemplateDocument]](undefined/models/operations/generatedocumentv2requestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | +| `variable_payload` | [Optional[operations.GenerateDocumentV2RequestBodyVariablePayload]](undefined/models/operations/generatedocumentv2requestbodyvariablepayload.md) | :heavy_minus_sign: | Custom values for variables in the template. Takes the higher precedence than others. | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md index 7674cee01..17d8c4f2b 100755 --- a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md +++ b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md @@ -5,7 +5,7 @@ Input template document ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | -| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | +| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2response.md b/document/docs/models/operations/generatedocumentv2response.md index 3e1029823..c052e8f87 100755 --- a/document/docs/models/operations/generatedocumentv2response.md +++ b/document/docs/models/operations/generatedocumentv2response.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 | -| `generate_document_v2_200_application_json_object` | [Optional[GenerateDocumentV2200ApplicationJSON]](../../models/operations/generatedocumentv2200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ 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 | +| `generate_document_v2_200_application_json_object` | [Optional[operations.GenerateDocumentV2200ApplicationJSON]](undefined/models/operations/generatedocumentv2200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/shared/s3reference.md b/document/docs/models/shared/s3reference.md index ef2fc6fcd..e9bcae7bd 100755 --- a/document/docs/models/shared/s3reference.md +++ b/document/docs/models/shared/s3reference.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `bucket` | *str* | :heavy_check_mark: | N/A | document-api-prod | -| `key` | *str* | :heavy_check_mark: | N/A | uploads/my-template.pdf | \ No newline at end of file +| `bucket` | *Optional[str]* | :heavy_check_mark: | N/A | document-api-prod | +| `key` | *Optional[str]* | :heavy_check_mark: | N/A | uploads/my-template.pdf | \ No newline at end of file diff --git a/document/docs/models/shared/security.md b/document/docs/models/shared/security.md index f06333390..9e84312f5 100755 --- a/document/docs/models/shared/security.md +++ b/document/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/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md index 3e5dbcaa2..115cda113 100755 --- a/document/docs/sdks/documents/README.md +++ b/document/docs/sdks/documents/README.md @@ -105,11 +105,11 @@ req = operations.GenerateDocumentV2Request( ), user_id='100321', variable_payload=operations.GenerateDocumentV2RequestBodyVariablePayload( - additional_properties='corrupti', + additional_properties='Jewelery invoice', ), ), - job_id='provident', - mode=operations.GenerateDocumentV2Mode.FULL_GENERATION, + job_id='Toys', + mode=operations.GenerateDocumentV2Mode.PARTIAL_GENERATION, ) res = s.documents.generate_document_v2(req) diff --git a/document/gen.yaml b/document/gen.yaml index 605ba223f..9fb01a73a 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/pylintrc b/document/pylintrc index 8307335ef..0504e9e6b 100755 --- a/document/pylintrc +++ b/document/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/document/setup.py b/document/setup.py index 579622673..8dfe3d813 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.45.1", + version="1.46.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/documents.py b/document/src/epilot/documents.py index e51a50e28..14d8855c5 100755 --- a/document/src/epilot/documents.py +++ b/document/src/epilot/documents.py @@ -29,11 +29,11 @@ def generate_document(self, request: operations.GenerateDocumentRequestBody) -> url = base_url + '/v1/documents:generate' 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 @@ -69,12 +69,12 @@ def generate_document_v2(self, request: operations.GenerateDocumentV2Request) -> url = base_url + '/v2/documents:generate' headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "request_body", False, True, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type query_params = utils.get_query_params(operations.GenerateDocumentV2Request, 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 diff --git a/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py index 8f4a17954..789ce8bc4 100755 --- a/document/src/epilot/models/operations/generatedocument.py +++ b/document/src/epilot/models/operations/generatedocument.py @@ -29,7 +29,7 @@ class GenerateDocumentRequestBody: r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) r"""Entity to use for variable context""" - language: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + language: Optional[str] = dataclasses.field(default='en', metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) r"""Language to use""" 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 for variable context""" diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index 1772bd164..6e832269e 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -45,7 +45,7 @@ class GenerateDocumentV2RequestBody: r"""Input template document""" context_entity_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('context_entity_id'), 'exclude': lambda f: f is None }}) r"""Entity to use for variable context""" - language: Optional[GenerateDocumentV2RequestBodyLanguage] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) + language: Optional[GenerateDocumentV2RequestBodyLanguage] = dataclasses.field(default=GenerateDocumentV2RequestBodyLanguage.EN, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('language'), 'exclude': lambda f: f is None }}) r"""Language to use""" 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 for variable context""" @@ -68,7 +68,7 @@ class GenerateDocumentV2Mode(str, Enum): class GenerateDocumentV2Request: job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) r"""Job ID for tracking the status of document generation action""" - mode: Optional[GenerateDocumentV2Mode] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) + mode: Optional[GenerateDocumentV2Mode] = dataclasses.field(default=GenerateDocumentV2Mode.undefined, metadata={'query_param': { 'field_name': 'mode', 'style': 'form', 'explode': True }}) r"""Type of mode used for document generation flow. Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document. Full - Goes through all the steps for the full generation of final document diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 9a743f33c..cd74d6b50 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: diff --git a/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index b0aeb54de..4388f3b74 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/src/epilot/utils/utils.py @@ -1,9 +1,9 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import sys import base64 import json import re +import sys from dataclasses import Field, dataclass, fields, is_dataclass, make_dataclass from datetime import date, datetime from decimal import Decimal @@ -393,17 +393,22 @@ def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delim } -def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[ +def serialize_request_body(request: dataclass, request_field_name: str, nullable: bool, optional: bool, serialization_method: str, encoder=None) -> Tuple[ str, any, any]: if request is None: - return None, None, None + if not nullable and optional: + return None, None, None if not is_dataclass(request) or not hasattr(request, request_field_name): return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], - request) + request, encoder) request_val = getattr(request, request_field_name) + if request_val is None: + if not nullable and optional: + return None, None, None + request_fields: Tuple[Field, ...] = fields(request) request_metadata = None @@ -419,9 +424,9 @@ def serialize_request_body(request: dataclass, request_field_name: str, serializ request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: - return media_type, marshal_json(request), None + return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: return serialize_multipart_form(media_type, request) if re.match(r'application\/x-www-form-urlencoded.*', media_type) is not None: @@ -678,7 +683,7 @@ def _serialize_header(explode: bool, obj: any) -> str: return '' -def unmarshal_json(data, typ): +def unmarshal_json(data, typ, decoder=None): unmarshal = make_dataclass('Unmarshal', [('res', typ)], bases=(DataClassJsonMixin,)) json_dict = json.loads(data) @@ -687,15 +692,19 @@ def unmarshal_json(data, typ): except AttributeError as attr_err: raise AttributeError( f'unable to unmarshal {data} as {typ}') from attr_err - return out.res + + return out.res if decoder is None else decoder(out.res) -def marshal_json(val): +def marshal_json(val, encoder=None): marshal = make_dataclass('Marshal', [('res', type(val))], bases=(DataClassJsonMixin,)) marshaller = marshal(res=val) json_dict = marshaller.to_dict() - return json.dumps(json_dict["res"]) + + val = json_dict["res"] if encoder is None else encoder(json_dict["res"]) + + return json.dumps(val) def match_content_type(content_type: str, pattern: str) -> boolean: @@ -769,6 +778,56 @@ def decimaldecoder(val): return Decimal(str(val)) +def map_encoder(optional: bool, value_encoder: Callable): + def map_encode(val: dict): + if optional and val is None: + return None + + encoded = {} + for key, value in val.items(): + encoded[key] = value_encoder(value) + + return encoded + + return map_encode + + +def map_decoder(value_decoder: Callable): + def map_decode(val: dict): + decoded = {} + for key, value in val.items(): + decoded[key] = value_decoder(value) + + return decoded + + return map_decode + + +def list_encoder(optional: bool, value_encoder: Callable): + def list_encode(val: list): + if optional and val is None: + return None + + encoded = [] + for value in val: + encoded.append(value_encoder(value)) + + return encoded + + return list_encode + + +def list_decoder(value_decoder: Callable): + def list_decode(val: list): + decoded = [] + for value in val: + decoded.append(value_decoder(value)) + + return decoded + + return list_decode + + def get_field_name(name): def override(_, _field_name=name): return _field_name From d5bc78d1a118f0ed103ea5c5eed97d8ef9016ce3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 1 Oct 2023 01:00:20 +0000 Subject: [PATCH 77/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.2 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 11e5e32c2..9ddeb7fc3 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -520,4 +520,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.46.0] document \ No newline at end of file +- [python v1.46.0] document + +## 2023-10-01 00:59:58 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.0] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 9fb01a73a..6955cd540 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 8dfe3d813..36746c54e 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.46.0", + version="1.47.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index cd74d6b50..f4de384bc 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From f6cef7485b6041b9126d0f0f83d1db23d8775d0a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 2 Oct 2023 00:54:09 +0000 Subject: [PATCH 78/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.3 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 9ddeb7fc3..d1fb605ad 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -528,4 +528,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.0] document \ No newline at end of file +- [python v1.47.0] document + +## 2023-10-02 00:53:50 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.1] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 6955cd540..9dd1a40c6 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 36746c54e..f890fb26d 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.47.0", + version="1.47.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index f4de384bc..af7853b24 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 55fc4bbe90bd81b71c59073fcf963af89f9a8772 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 5 Oct 2023 00:53:25 +0000 Subject: [PATCH 79/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.94.0 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index d1fb605ad..64b94c74d 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -536,4 +536,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.1] document \ No newline at end of file +- [python v1.47.1] document + +## 2023-10-05 00:53:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.2] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 9dd1a40c6..3997aeb0f 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index f890fb26d..0ee25b111 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.47.1", + version="1.47.2", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index af7853b24..80d23d072 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 6dd769b91eb2b571268e95b6fa1819e47228b1f6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 7 Oct 2023 00:52:45 +0000 Subject: [PATCH 80/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.96.1 --- document/RELEASES.md | 10 +++++++++- document/docs/sdks/documents/README.md | 6 +----- document/gen.yaml | 11 ++++++----- document/setup.py | 2 +- document/src/epilot/models/__init__.py | 1 + document/src/epilot/sdk.py | 8 +++++--- document/src/epilot/sdkconfiguration.py | 6 +++--- 7 files changed, 26 insertions(+), 18 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 64b94c74d..43d70a057 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -544,4 +544,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.2] document \ No newline at end of file +- [python v1.47.2] document + +## 2023-10-07 00:52:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.0] document \ No newline at end of file diff --git a/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md index 115cda113..d9cfeb7ca 100755 --- a/document/docs/sdks/documents/README.md +++ b/document/docs/sdks/documents/README.md @@ -104,12 +104,8 @@ req = operations.GenerateDocumentV2Request( ), ), user_id='100321', - variable_payload=operations.GenerateDocumentV2RequestBodyVariablePayload( - additional_properties='Jewelery invoice', - ), + variable_payload=operations.GenerateDocumentV2RequestBodyVariablePayload(), ), - job_id='Toys', - mode=operations.GenerateDocumentV2Mode.PARTIAL_GENERATION, ) res = s.documents.generate_document_v2(req) diff --git a/document/gen.yaml b/document/gen.yaml index 3997aeb0f..1b591bcf4 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,20 +2,21 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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-document diff --git a/document/setup.py b/document/setup.py index 0ee25b111..0547e762f 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.47.2", + version="1.48.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/models/__init__.py b/document/src/epilot/models/__init__.py index 889f8adcf..36628d6cc 100755 --- a/document/src/epilot/models/__init__.py +++ b/document/src/epilot/models/__init__.py @@ -1,2 +1,3 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +# __init__.py diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 076bc56c9..2d1841660 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -17,7 +17,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, @@ -26,8 +26,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 @@ -42,8 +42,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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 80d23d072..dd9ea95e7 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 45b8a1a7315ae36b0631dd0edf014368821cd889 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 13 Oct 2023 00:54:53 +0000 Subject: [PATCH 81/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.99.1 --- document/README.md | 1 + document/RELEASES.md | 10 +++++++++- document/USAGE.md | 1 + .../generatedocument200applicationjson.md | 8 ++++---- ...tedocument200applicationjsonoutputdocument.md | 8 ++++---- .../operations/generatedocumentrequestbody.md | 12 ++++++------ ...eneratedocumentrequestbodytemplatedocument.md | 8 ++++---- .../operations/generatedocumentresponse.md | 12 ++++++------ .../generatedocumentv2200applicationjson.md | 16 ++++++++-------- ...ratedocumentv2200applicationjsondocxoutput.md | 8 ++++---- ...200applicationjsondocxoutputoutputdocument.md | 8 ++++---- ...eratedocumentv2200applicationjsonpdfoutput.md | 8 ++++---- ...2200applicationjsonpdfoutputoutputdocument.md | 8 ++++---- .../operations/generatedocumentv2request.md | 4 ++-- .../operations/generatedocumentv2requestbody.md | 14 +++++++------- ...eratedocumentv2requestbodytemplatedocument.md | 8 ++++---- .../operations/generatedocumentv2response.md | 12 ++++++------ document/docs/models/shared/s3reference.md | 4 ++-- document/docs/models/shared/security.md | 2 +- document/docs/sdks/documents/README.md | 2 ++ document/gen.yaml | 8 ++++---- document/setup.py | 2 +- document/src/epilot/sdk.py | 6 +++--- document/src/epilot/sdkconfiguration.py | 6 +++--- 24 files changed, 94 insertions(+), 82 deletions(-) diff --git a/document/README.md b/document/README.md index 5cce228dc..72f936509 100755 --- a/document/README.md +++ b/document/README.md @@ -37,6 +37,7 @@ res = s.documents.generate_document(req) if res.generate_document_200_application_json_object is not None: # handle response + pass ``` diff --git a/document/RELEASES.md b/document/RELEASES.md index 43d70a057..2d6bee374 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -552,4 +552,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.0] document \ No newline at end of file +- [python v1.48.0] document + +## 2023-10-13 00:54:38 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.1] document \ No newline at end of file diff --git a/document/USAGE.md b/document/USAGE.md index 91099df62..58c306f7e 100755 --- a/document/USAGE.md +++ b/document/USAGE.md @@ -28,5 +28,6 @@ res = s.documents.generate_document(req) if res.generate_document_200_application_json_object is not None: # handle response + pass ``` \ No newline at end of file diff --git a/document/docs/models/operations/generatedocument200applicationjson.md b/document/docs/models/operations/generatedocument200applicationjson.md index 84eeba364..5ce865139 100755 --- a/document/docs/models/operations/generatedocument200applicationjson.md +++ b/document/docs/models/operations/generatedocument200applicationjson.md @@ -5,7 +5,7 @@ Generated document output ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `output_document` | [Optional[operations.GenerateDocument200ApplicationJSONOutputDocument]](undefined/models/operations/generatedocument200applicationjsonoutputdocument.md) | :heavy_minus_sign: | N/A | | -| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[GenerateDocument200ApplicationJSONOutputDocument]](../../models/operations/generatedocument200applicationjsonoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md index fbc34675f..7a49270ea 100755 --- a/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md +++ b/document/docs/models/operations/generatedocument200applicationjsonoutputdocument.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename | my-template-OR-001.pdf | -| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename | my-template-OR-001.pdf | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentrequestbody.md b/document/docs/models/operations/generatedocumentrequestbody.md index bd853b1f3..ef5f64d80 100755 --- a/document/docs/models/operations/generatedocumentrequestbody.md +++ b/document/docs/models/operations/generatedocumentrequestbody.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | -| `language` | *Optional[str]* | :heavy_minus_sign: | Language to use | de | -| `template_document` | [Optional[operations.GenerateDocumentRequestBodyTemplateDocument]](undefined/models/operations/generatedocumentrequestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | -| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | +| `language` | *Optional[str]* | :heavy_minus_sign: | Language to use | de | +| `template_document` | [GenerateDocumentRequestBodyTemplateDocument](../../models/operations/generatedocumentrequestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md index 96c0ed231..baca2675b 100755 --- a/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md +++ b/document/docs/models/operations/generatedocumentrequestbodytemplatedocument.md @@ -5,7 +5,7 @@ Input template document ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | -| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentresponse.md b/document/docs/models/operations/generatedocumentresponse.md index 99038dbec..a53c87eab 100755 --- a/document/docs/models/operations/generatedocumentresponse.md +++ b/document/docs/models/operations/generatedocumentresponse.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 | -| `generate_document_200_application_json_object` | [Optional[operations.GenerateDocument200ApplicationJSON]](undefined/models/operations/generatedocument200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ 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 | +| `generate_document_200_application_json_object` | [Optional[GenerateDocument200ApplicationJSON]](../../models/operations/generatedocument200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjson.md b/document/docs/models/operations/generatedocumentv2200applicationjson.md index 9ffea1461..fdeefeafb 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjson.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjson.md @@ -5,11 +5,11 @@ Generated document output ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `docx_output` | [Optional[operations.GenerateDocumentV2200ApplicationJSONDocxOutput]](undefined/models/operations/generatedocumentv2200applicationjsondocxoutput.md) | :heavy_minus_sign: | N/A | -| `job_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `job_status` | [Optional[operations.GenerateDocumentV2200ApplicationJSONJobStatus]](undefined/models/operations/generatedocumentv2200applicationjsonjobstatus.md) | :heavy_minus_sign: | Status of the job | -| `message` | *Optional[str]* | :heavy_minus_sign: | A message explaining the progress | -| `pdf_output` | [Optional[operations.GenerateDocumentV2200ApplicationJSONPdfOutput]](undefined/models/operations/generatedocumentv2200applicationjsonpdfoutput.md) | :heavy_minus_sign: | N/A | -| `variable_payload` | [Optional[operations.GenerateDocumentV2200ApplicationJSONVariablePayload]](undefined/models/operations/generatedocumentv2200applicationjsonvariablepayload.md) | :heavy_minus_sign: | List of variables and its corresponding replaced values from the document template | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `docx_output` | [Optional[GenerateDocumentV2200ApplicationJSONDocxOutput]](../../models/operations/generatedocumentv2200applicationjsondocxoutput.md) | :heavy_minus_sign: | N/A | +| `job_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `job_status` | [Optional[GenerateDocumentV2200ApplicationJSONJobStatus]](../../models/operations/generatedocumentv2200applicationjsonjobstatus.md) | :heavy_minus_sign: | Status of the job | +| `message` | *Optional[str]* | :heavy_minus_sign: | A message explaining the progress | +| `pdf_output` | [Optional[GenerateDocumentV2200ApplicationJSONPdfOutput]](../../models/operations/generatedocumentv2200applicationjsonpdfoutput.md) | :heavy_minus_sign: | N/A | +| `variable_payload` | [Optional[GenerateDocumentV2200ApplicationJSONVariablePayload]](../../models/operations/generatedocumentv2200applicationjsonvariablepayload.md) | :heavy_minus_sign: | List of variables and its corresponding replaced values from the document template | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md index b85d518a2..bcb556461 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutput.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `output_document` | [Optional[operations.GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument]](undefined/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | -| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for DOCX preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument]](../../models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for DOCX preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md index 132ec8ca9..a5554287f 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsondocxoutputoutputdocument.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for DOCX | my-template-OR-001.docx | -| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for DOCX | my-template-OR-001.docx | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md index 8be0a1183..8c3f453f9 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutput.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `output_document` | [Optional[operations.GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument]](undefined/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | -| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for PDF preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `output_document` | [Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument]](../../models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md) | :heavy_minus_sign: | N/A | | +| `preview_url` | *Optional[str]* | :heavy_minus_sign: | Pre-signed S3 GET URL for PDF preview | https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md index ea3963d24..8e6ba8c0f 100755 --- a/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md +++ b/document/docs/models/operations/generatedocumentv2200applicationjsonpdfoutputoutputdocument.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for PDF | my-template-OR-001.pdf | -| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Generated document filename for PDF | my-template-OR-001.pdf | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2request.md b/document/docs/models/operations/generatedocumentv2request.md index 014b590ff..de07f8652 100755 --- a/document/docs/models/operations/generatedocumentv2request.md +++ b/document/docs/models/operations/generatedocumentv2request.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `request_body` | [Optional[operations.GenerateDocumentV2RequestBody]](undefined/models/operations/generatedocumentv2requestbody.md) | :heavy_minus_sign: | N/A | +| `request_body` | [Optional[GenerateDocumentV2RequestBody]](../../models/operations/generatedocumentv2requestbody.md) | :heavy_minus_sign: | N/A | | `job_id` | *Optional[str]* | :heavy_minus_sign: | Job ID for tracking the status of document generation action | -| `mode` | [Optional[operations.GenerateDocumentV2Mode]](undefined/models/operations/generatedocumentv2mode.md) | :heavy_minus_sign: | Type of mode used for document generation flow.
Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document.
Full - Goes through all the steps for the full generation of final document
| \ No newline at end of file +| `mode` | [Optional[GenerateDocumentV2Mode]](../../models/operations/generatedocumentv2mode.md) | :heavy_minus_sign: | Type of mode used for document generation flow.
Partial - Will have a intermediate step for users to validate and replace the variable values before generating the final document.
Full - Goes through all the steps for the full generation of final document
| \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbody.md b/document/docs/models/operations/generatedocumentv2requestbody.md index 5fcc827af..5e6af6ed5 100755 --- a/document/docs/models/operations/generatedocumentv2requestbody.md +++ b/document/docs/models/operations/generatedocumentv2requestbody.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | -| `language` | [Optional[operations.GenerateDocumentV2RequestBodyLanguage]](undefined/models/operations/generatedocumentv2requestbodylanguage.md) | :heavy_minus_sign: | Language to use | de | -| `template_document` | [Optional[operations.GenerateDocumentV2RequestBodyTemplateDocument]](undefined/models/operations/generatedocumentv2requestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | -| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | -| `variable_payload` | [Optional[operations.GenerateDocumentV2RequestBodyVariablePayload]](undefined/models/operations/generatedocumentv2requestbodyvariablepayload.md) | :heavy_minus_sign: | Custom values for variables in the template. Takes the higher precedence than others. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `context_entity_id` | *Optional[str]* | :heavy_minus_sign: | Entity to use for variable context | bcd0aab9-b544-42b0-8bfb-6d449d02eacc | +| `language` | [Optional[GenerateDocumentV2RequestBodyLanguage]](../../models/operations/generatedocumentv2requestbodylanguage.md) | :heavy_minus_sign: | Language to use | de | +| `template_document` | [GenerateDocumentV2RequestBodyTemplateDocument](../../models/operations/generatedocumentv2requestbodytemplatedocument.md) | :heavy_check_mark: | Input template document | | +| `user_id` | *Optional[str]* | :heavy_minus_sign: | User Id for variable context | 100321 | +| `variable_payload` | [Optional[GenerateDocumentV2RequestBodyVariablePayload]](../../models/operations/generatedocumentv2requestbodyvariablepayload.md) | :heavy_minus_sign: | Custom values for variables in the template. Takes the higher precedence than others. | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md index 17d8c4f2b..7674cee01 100755 --- a/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md +++ b/document/docs/models/operations/generatedocumentv2requestbodytemplatedocument.md @@ -5,7 +5,7 @@ Input template document ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | -| `s3ref` | [Optional[shared.S3Reference]](undefined/models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `filename` | *Optional[str]* | :heavy_minus_sign: | Document original filename | my-template-{{order.order_number}}.docx | +| `s3ref` | [Optional[shared.S3Reference]](../../models/shared/s3reference.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/document/docs/models/operations/generatedocumentv2response.md b/document/docs/models/operations/generatedocumentv2response.md index c052e8f87..3e1029823 100755 --- a/document/docs/models/operations/generatedocumentv2response.md +++ b/document/docs/models/operations/generatedocumentv2response.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 | -| `generate_document_v2_200_application_json_object` | [Optional[operations.GenerateDocumentV2200ApplicationJSON]](undefined/models/operations/generatedocumentv2200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ 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 | +| `generate_document_v2_200_application_json_object` | [Optional[GenerateDocumentV2200ApplicationJSON]](../../models/operations/generatedocumentv2200applicationjson.md) | :heavy_minus_sign: | Generated document output | \ No newline at end of file diff --git a/document/docs/models/shared/s3reference.md b/document/docs/models/shared/s3reference.md index e9bcae7bd..ef2fc6fcd 100755 --- a/document/docs/models/shared/s3reference.md +++ b/document/docs/models/shared/s3reference.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `bucket` | *Optional[str]* | :heavy_check_mark: | N/A | document-api-prod | -| `key` | *Optional[str]* | :heavy_check_mark: | N/A | uploads/my-template.pdf | \ No newline at end of file +| `bucket` | *str* | :heavy_check_mark: | N/A | document-api-prod | +| `key` | *str* | :heavy_check_mark: | N/A | uploads/my-template.pdf | \ No newline at end of file diff --git a/document/docs/models/shared/security.md b/document/docs/models/shared/security.md index 9e84312f5..f06333390 100755 --- a/document/docs/models/shared/security.md +++ b/document/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/document/docs/sdks/documents/README.md b/document/docs/sdks/documents/README.md index d9cfeb7ca..cf27a78cb 100755 --- a/document/docs/sdks/documents/README.md +++ b/document/docs/sdks/documents/README.md @@ -52,6 +52,7 @@ res = s.documents.generate_document(req) if res.generate_document_200_application_json_object is not None: # handle response + pass ``` ### Parameters @@ -112,6 +113,7 @@ res = s.documents.generate_document_v2(req) if res.generate_document_v2_200_application_json_object is not None: # handle response + pass ``` ### Parameters diff --git a/document/gen.yaml b/document/gen.yaml index 1b591bcf4..f2fdc7abf 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index 0547e762f..13607d255 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="1.48.0", + version="1.48.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 2d1841660..00363929f 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -17,7 +17,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, @@ -26,8 +26,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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index dd9ea95e7..29ce5d0b6 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 97defe5a388c0c295b762c72d2fc701b220ba158 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Oct 2023 00:53:48 +0000 Subject: [PATCH 82/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.101.0 --- document/RELEASES.md | 10 +- document/gen.yaml | 8 +- document/pylintrc | 2 +- document/setup.py | 26 ++-- .../models/operations/generatedocument.py | 5 - .../models/operations/generatedocumentv2.py | 11 -- .../src/epilot/models/shared/s3reference.py | 1 - document/src/epilot/models/shared/security.py | 1 - document/src/epilot/sdk.py | 5 +- document/src/epilot/sdkconfiguration.py | 13 +- document/src/epilot/utils/retries.py | 5 +- document/src/epilot/utils/utils.py | 117 ++++++++++-------- 12 files changed, 101 insertions(+), 103 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 2d6bee374..6ae72f7f2 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -560,4 +560,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.1] document \ No newline at end of file +- [python v1.48.1] document + +## 2023-10-18 00:53:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.0.0] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index f2fdc7abf..789641629 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,19 +2,19 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/pylintrc b/document/pylintrc index 0504e9e6b..d5760436d 100755 --- a/document/pylintrc +++ b/document/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/document/setup.py b/document/setup.py index 13607d255..1b7000c08 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,33 +10,31 @@ setuptools.setup( name="epilot-document", - 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/document/src/epilot/models/operations/generatedocument.py b/document/src/epilot/models/operations/generatedocument.py index 789ce8bc4..f123343ba 100755 --- a/document/src/epilot/models/operations/generatedocument.py +++ b/document/src/epilot/models/operations/generatedocument.py @@ -10,7 +10,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentRequestBodyTemplateDocument: r"""Input template document""" @@ -22,7 +21,6 @@ class GenerateDocumentRequestBodyTemplateDocument: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentRequestBody: template_document: GenerateDocumentRequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) @@ -38,7 +36,6 @@ class GenerateDocumentRequestBody: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocument200ApplicationJSONOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) @@ -49,7 +46,6 @@ class GenerateDocument200ApplicationJSONOutputDocument: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocument200ApplicationJSON: r"""Generated document output""" @@ -60,7 +56,6 @@ class GenerateDocument200ApplicationJSON: - @dataclasses.dataclass class GenerateDocumentResponse: content_type: str = dataclasses.field() diff --git a/document/src/epilot/models/operations/generatedocumentv2.py b/document/src/epilot/models/operations/generatedocumentv2.py index 6e832269e..119785aaf 100755 --- a/document/src/epilot/models/operations/generatedocumentv2.py +++ b/document/src/epilot/models/operations/generatedocumentv2.py @@ -16,7 +16,6 @@ class GenerateDocumentV2RequestBodyLanguage(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2RequestBodyTemplateDocument: r"""Input template document""" @@ -28,7 +27,6 @@ class GenerateDocumentV2RequestBodyTemplateDocument: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2RequestBodyVariablePayload: r"""Custom values for variables in the template. Takes the higher precedence than others.""" @@ -38,7 +36,6 @@ class GenerateDocumentV2RequestBodyVariablePayload: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2RequestBody: template_document: GenerateDocumentV2RequestBodyTemplateDocument = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('template_document') }}) @@ -63,7 +60,6 @@ class GenerateDocumentV2Mode(str, Enum): FULL_GENERATION = 'full_generation' - @dataclasses.dataclass class GenerateDocumentV2Request: job_id: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'job_id', 'style': 'form', 'explode': True }}) @@ -79,7 +75,6 @@ class GenerateDocumentV2Request: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) @@ -90,7 +85,6 @@ class GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONDocxOutput: output_document: Optional[GenerateDocumentV2200ApplicationJSONDocxOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) @@ -108,7 +102,6 @@ class GenerateDocumentV2200ApplicationJSONJobStatus(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: filename: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('filename'), 'exclude': lambda f: f is None }}) @@ -119,7 +112,6 @@ class GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONPdfOutput: output_document: Optional[GenerateDocumentV2200ApplicationJSONPdfOutputOutputDocument] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('output_document'), 'exclude': lambda f: f is None }}) @@ -130,7 +122,6 @@ class GenerateDocumentV2200ApplicationJSONPdfOutput: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSONVariablePayload: r"""List of variables and its corresponding replaced values from the document template""" @@ -140,7 +131,6 @@ class GenerateDocumentV2200ApplicationJSONVariablePayload: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class GenerateDocumentV2200ApplicationJSON: r"""Generated document output""" @@ -157,7 +147,6 @@ class GenerateDocumentV2200ApplicationJSON: - @dataclasses.dataclass class GenerateDocumentV2Response: content_type: str = dataclasses.field() diff --git a/document/src/epilot/models/shared/s3reference.py b/document/src/epilot/models/shared/s3reference.py index e90a2b0fc..3be71c8e3 100755 --- a/document/src/epilot/models/shared/s3reference.py +++ b/document/src/epilot/models/shared/s3reference.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class S3Reference: bucket: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('bucket') }}) diff --git a/document/src/epilot/models/shared/security.py b/document/src/epilot/models/shared/security.py index e75e944ea..bb832caeb 100755 --- a/document/src/epilot/models/shared/security.py +++ b/document/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/document/src/epilot/sdk.py b/document/src/epilot/sdk.py index 00363929f..55483d03b 100755 --- a/document/src/epilot/sdk.py +++ b/document/src/epilot/sdk.py @@ -5,6 +5,7 @@ from .sdkconfiguration import SDKConfiguration from epilot import utils from epilot.models import shared +from typing import Dict class Epilot: r"""Document API: Generate documents with epilot data @@ -20,7 +21,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: @@ -33,7 +34,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/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 29ce5d0b6..3a1cec947 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' 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/document/src/epilot/utils/retries.py b/document/src/epilot/utils/retries.py index 2138c1b5e..25f49a1f2 100755 --- a/document/src/epilot/utils/retries.py +++ b/document/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/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index 4388f3b74..ccfad9f7a 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/src/epilot/utils/utils.py @@ -9,7 +9,8 @@ from decimal import Decimal from email.message import Message from enum import Enum -from typing import Any, Callable, Optional, Tuple, Union, get_args, get_origin +from typing import (Any, Callable, Dict, List, Optional, Tuple, Union, + get_args, get_origin) from xmlrpc.client import boolean import dateutil.parser @@ -19,14 +20,14 @@ class SecurityClient: client: requests.Session - query_params: dict[str, str] = {} + query_params: Dict[str, str] = {} def __init__(self, client: requests.Session): self.client = client def request(self, method, url, **kwargs): params = kwargs.get('params', {}) - kwargs["params"] = self.query_params | params + kwargs["params"] = {**self.query_params, **params} return self.client.request(method, url, **kwargs) @@ -69,7 +70,7 @@ def _parse_security_option(client: SecurityClient, option: dataclass): client, metadata, getattr(option, opt_field.name)) -def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme: any): +def _parse_security_scheme(client: SecurityClient, scheme_metadata: Dict, scheme: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -93,7 +94,7 @@ def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme client, scheme_metadata, scheme_metadata, scheme) -def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict, security_metadata: dict, value: any): +def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: Dict, security_metadata: Dict, value: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -145,7 +146,7 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, - gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: + gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -174,16 +175,16 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass '{' + key + '}', value, 1) else: if param_metadata.get('style', 'simple') == 'simple': - if isinstance(param, list): - pp_vals: list[str] = [] + if isinstance(param, List): + pp_vals: List[str] = [] for pp_val in param: if pp_val is None: continue pp_vals.append(_val_to_string(pp_val)) path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) - elif isinstance(param, dict): - pp_vals: list[str] = [] + elif isinstance(param, Dict): + pp_vals: List[str] = [] for pp_key in param: if param[pp_key] is None: continue @@ -196,7 +197,7 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) elif not isinstance(param, (str, int, float, complex, bool, Decimal)): - pp_vals: list[str] = [] + pp_vals: List[str] = [] param_fields: Tuple[Field, ...] = fields(param) for param_field in param_fields: param_value_metadata = param_field.metadata.get( @@ -222,14 +223,14 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', _val_to_string(param), 1) - return server_url.removesuffix("/") + path + return remove_suffix(server_url, '/') + path def is_optional(field): return get_origin(field) is Union and type(None) in get_args(field) -def template_url(url_with_params: str, params: dict[str, str]) -> str: +def template_url(url_with_params: str, params: Dict[str, str]) -> str: for key, value in params.items(): url_with_params = url_with_params.replace( '{' + key + '}', value) @@ -237,9 +238,9 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ - str, list[str]]: - params: dict[str, list[str]] = {} +def get_query_params(clazz: type, query_params: dataclass, gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> Dict[ + str, List[str]]: + params: Dict[str, List[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) for field in param_fields: @@ -269,24 +270,24 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ else: style = metadata.get('style', 'form') if style == 'deepObject': - params = params | _get_deep_object_query_params( - metadata, f_name, value) + params = {**params, **_get_deep_object_query_params( + metadata, f_name, value)} elif style == 'form': - params = params | _get_delimited_query_params( - metadata, f_name, value, ",") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, ",")} elif style == 'pipeDelimited': - params = params | _get_delimited_query_params( - metadata, f_name, value, "|") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, "|")} else: raise Exception('not yet implemented') return params -def get_headers(headers_params: dataclass) -> dict[str, str]: +def get_headers(headers_params: dataclass) -> Dict[str, str]: if headers_params is None: return {} - headers: dict[str, str] = {} + headers: Dict[str, str] = {} param_fields: Tuple[Field, ...] = fields(headers_params) for field in param_fields: @@ -303,8 +304,8 @@ def get_headers(headers_params: dataclass) -> dict[str, str]: return headers -def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[str, str]: - params: dict[str, str] = {} +def _get_serialized_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, str]: + params: Dict[str, str] = {} serialization = metadata.get('serialization', '') if serialization == 'json': @@ -313,8 +314,8 @@ def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[st return params -def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - params: dict[str, list[str]] = {} +def _get_deep_object_query_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -330,7 +331,7 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if obj_val is None: continue - if isinstance(obj_val, list): + if isinstance(obj_val, List): for val in obj_val: if val is None: continue @@ -348,12 +349,12 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ _val_to_string(obj_val)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): for key, value in obj.items(): if value is None: continue - if isinstance(value, list): + if isinstance(value, List): for val in value: if val is None: continue @@ -379,8 +380,8 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[ - str, list[str]]: +def _get_delimited_query_params(metadata: Dict, field_name: str, obj: any, delimiter: str) -> Dict[ + str, List[str]]: return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter) @@ -424,7 +425,7 @@ def serialize_request_body(request: dataclass, request_field_name: str, nullable request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, List[List[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: @@ -440,8 +441,8 @@ def serialize_content_type(field_name: str, media_type: str, request: dataclass, f"invalid request body type {type(request)} for mediaType {media_type}") -def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: - form: list[list[any]] = [] +def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, List[List[any]]]: + form: List[List[any]] = [] request_fields = fields(request) for field in request_fields: @@ -482,7 +483,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, else: field_name = field_metadata.get( "field_name", field.name) - if isinstance(val, list): + if isinstance(val, List): for value in val: if value is None: continue @@ -493,8 +494,8 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, return media_type, None, form -def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[ - str, list[str]]: +def serialize_dict(original: Dict, explode: bool, field_name, existing: Optional[Dict[str, List[str]]]) -> Dict[ + str, List[str]]: if existing is None: existing = [] @@ -514,8 +515,8 @@ def serialize_dict(original: dict, explode: bool, field_name, existing: Optional return existing -def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: - form: dict[str, list[str]] = {} +def serialize_form_data(field_name: str, data: dataclass) -> Dict[str, any]: + form: Dict[str, List[str]] = {} if is_dataclass(data): for field in fields(data): @@ -533,12 +534,12 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: form[field_name] = [marshal_json(val)] else: if metadata.get('style', 'form') == 'form': - form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name, ",") + form = {**form, **_populate_form( + field_name, metadata.get('explode', True), val, _get_form_field_name, ",")} else: raise Exception( f'Invalid form style for field {field.name}') - elif isinstance(data, dict): + elif isinstance(data, Dict): for key, value in data.items(): form[key] = [_val_to_string(value)] else: @@ -557,8 +558,8 @@ def _get_form_field_name(obj_field: Field) -> str: def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, delimiter: str) -> \ - dict[str, list[str]]: - params: dict[str, list[str]] = {} + Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -584,7 +585,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): if value is None: @@ -597,7 +598,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -651,7 +652,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join(items) - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): @@ -666,7 +667,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join([str(item) for item in items]) - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -779,7 +780,7 @@ def decimaldecoder(val): def map_encoder(optional: bool, value_encoder: Callable): - def map_encode(val: dict): + def map_encode(val: Dict): if optional and val is None: return None @@ -793,7 +794,7 @@ def map_encode(val: dict): def map_decoder(value_decoder: Callable): - def map_decode(val: dict): + def map_decode(val: Dict): decoded = {} for key, value in val.items(): decoded[key] = value_decoder(value) @@ -804,7 +805,7 @@ def map_decode(val: dict): def list_encoder(optional: bool, value_encoder: Callable): - def list_encode(val: list): + def list_encode(val: List): if optional and val is None: return None @@ -818,7 +819,7 @@ def list_encode(val: list): def list_decoder(value_decoder: Callable): - def list_decode(val: list): + def list_decode(val: List): decoded = [] for value in val: decoded.append(value_decoder(value)) @@ -846,7 +847,7 @@ def _val_to_string(val): return str(val) -def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: dict[str, dict[str, dict[str, Any]]]): +def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: Dict[str, Dict[str, Dict[str, Any]]]): if value is None and gbls is not None: if 'parameters' in gbls: if param_type in gbls['parameters']: @@ -863,3 +864,9 @@ def decode_fx(obj): kls = getattr(sys.modules['sdk.models.shared'], obj[field_name]) return unmarshal_json(json.dumps(obj), kls) return decode_fx + + +def remove_suffix(input_string, suffix): + if suffix and input_string.endswith(suffix): + return input_string[:-len(suffix)] + return input_string From f8ea07b728cd4ccfca23c2d1858b4c0bda2e5da3 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 21 Oct 2023 00:51:50 +0000 Subject: [PATCH 83/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.104.0 --- document/RELEASES.md | 10 +++++++++- document/gen.yaml | 11 +++++++---- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 6 +++--- document/src/epilot/utils/utils.py | 20 ++++++++++++++++++++ 5 files changed, 40 insertions(+), 9 deletions(-) diff --git a/document/RELEASES.md b/document/RELEASES.md index 6ae72f7f2..7b257fcce 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -568,4 +568,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.0.0] document \ No newline at end of file +- [python v2.0.0] document + +## 2023-10-21 00:51:35 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.0] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 789641629..1fb2d28b1 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,21 +2,24 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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.0 + version: 2.1.0 author: epilot description: Python Client SDK for Epilot flattenGlobalSecurity: false + installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=document maxMethodParams: 0 packageName: epilot-document + repoSubDirectory: document diff --git a/document/setup.py b/document/setup.py index 1b7000c08..a96e7757c 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="2.0.0", + version="2.1.0", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index 3a1cec947..e93e8f112 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/src/epilot/sdkconfiguration.py @@ -20,9 +20,9 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '2.0.0' - gen_version: str = '2.161.0' - user_agent: str = 'speakeasy-sdk/python 2.0.0 2.161.0 1.0.0 epilot-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/document/src/epilot/utils/utils.py b/document/src/epilot/utils/utils.py index ccfad9f7a..3ab126104 100755 --- a/document/src/epilot/utils/utils.py +++ b/document/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 b3a1e096f6a8208148dd4fd3778f14885a7a2236 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 28 Oct 2023 00:51:37 +0000 Subject: [PATCH 84/84] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.109.0 --- document/README.md | 117 ++++++++++++++++++++++++ document/RELEASES.md | 10 +- document/gen.yaml | 8 +- document/setup.py | 2 +- document/src/epilot/sdkconfiguration.py | 6 +- 5 files changed, 134 insertions(+), 9 deletions(-) diff --git a/document/README.md b/document/README.md index 72f936509..1df7dcf1c 100755 --- a/document/README.md +++ b/document/README.md @@ -69,6 +69,123 @@ 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://document.sls.epilot.io` | None | + +For example: + + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), + server_idx=0 +) + +req = operations.GenerateDocumentRequestBody( + context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', + language='de', + template_document=operations.GenerateDocumentRequestBodyTemplateDocument( + filename='my-template-{{order.order_number}}.docx', + s3ref=shared.S3Reference( + bucket='document-api-prod', + key='uploads/my-template.pdf', + ), + ), + user_id='100321', +) + +res = s.documents.generate_document(req) + +if res.generate_document_200_application_json_object is not None: + # handle response + pass +``` + + +## Override Server URL Per-Client + +The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: + + +```python +import epilot +from epilot.models import operations, shared + +s = epilot.Epilot( + security=shared.Security( + epilot_auth="", + ), + server_url="https://document.sls.epilot.io" +) + +req = operations.GenerateDocumentRequestBody( + context_entity_id='bcd0aab9-b544-42b0-8bfb-6d449d02eacc', + language='de', + template_document=operations.GenerateDocumentRequestBodyTemplateDocument( + filename='my-template-{{order.order_number}}.docx', + s3ref=shared.S3Reference( + bucket='document-api-prod', + key='uploads/my-template.pdf', + ), + ), + user_id='100321', +) + +res = s.documents.generate_document(req) + +if res.generate_document_200_application_json_object is not None: + # handle response + pass +``` + + + + + +# Custom HTTP Client + +The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object. + + +For example, you could specify a header for every request that your sdk makes as follows: + +```python +import epilot +import requests + +http_client = requests.Session() +http_client.headers.update({'x-custom-header': 'someValue'}) +s = epilot.Epilot(client: http_client) +``` + + + + diff --git a/document/RELEASES.md b/document/RELEASES.md index 7b257fcce..0ed0d4be3 100644 --- a/document/RELEASES.md +++ b/document/RELEASES.md @@ -576,4 +576,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml - Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.1.0] document \ No newline at end of file +- [python v2.1.0] document + +## 2023-10-28 00:51:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/document.yaml +- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.1] document \ No newline at end of file diff --git a/document/gen.yaml b/document/gen.yaml index 1fb2d28b1..4535c4225 100644 --- a/document/gen.yaml +++ b/document/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 6ac9612fc93de607d06a524eefab68ee 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/document/setup.py b/document/setup.py index a96e7757c..e48b9d27a 100755 --- a/document/setup.py +++ b/document/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="epilot-document", - version="2.1.0", + version="2.1.1", author="epilot", description="Python Client SDK for Epilot", long_description=long_description, diff --git a/document/src/epilot/sdkconfiguration.py b/document/src/epilot/sdkconfiguration.py index e93e8f112..57a0b8773 100755 --- a/document/src/epilot/sdkconfiguration.py +++ b/document/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-document' + 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-document' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: