From 1b198fe625af5bfe23bfd3d143b9d9d7f3a9b1f6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Apr 2023 01:35:12 +0000 Subject: [PATCH 01/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.3 --- workflows_definition/README.md | 4 ++-- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/USAGE.md | 2 +- workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 6 +++--- workflows_definition/pylintrc | 12 +++++------- workflows_definition/setup.py | 2 +- .../src/sdk/models/operations/getdefinition.py | 5 +++-- .../src/sdk/models/shared/__init__.py | 3 ++- .../models/shared/closingreasonsstatus_enum.py | 4 ++-- .../sdk/models/shared/definitionnotfoundresp.py | 16 ++++++++++++++++ .../src/sdk/models/shared/dynamicduedate.py | 10 +++++----- .../src/sdk/models/shared/itemtype_enum.py | 4 ++-- .../src/sdk/models/shared/steprequirement.py | 2 +- .../src/sdk/models/shared/steptype_enum.py | 4 ++-- .../sdk/models/shared/updateentityattributes.py | 6 +++--- workflows_definition/src/sdk/sdk.py | 8 +++----- workflows_definition/src/sdk/workflows.py | 6 ++---- 18 files changed, 61 insertions(+), 42 deletions(-) create mode 100755 workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py diff --git a/workflows_definition/README.md b/workflows_definition/README.md index a1825dc80..4e22b681d 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -25,7 +25,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status="INACTIVE", ), - reason_id="deserunt", + reason_id="provident", ) res = s.closing_reason.change_reason_status(req) @@ -36,7 +36,7 @@ if res.status_code == 200: -## SDK Available Operations +## Available Resources and Operations ### closing_reason diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 123baccfc..f78640eec 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -34,4 +34,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:34:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index bc7b4fadb..932ea9e20 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -14,7 +14,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status="INACTIVE", ), - reason_id="deserunt", + reason_id="provident", ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 10dfa7951..2e0303d4c 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -35,6 +35,7 @@ src/sdk/models/shared/steptype_enum.py src/sdk/models/shared/ecpdetails.py src/sdk/models/shared/dynamicduedate.py src/sdk/models/shared/closingreasonid.py +src/sdk/models/shared/definitionnotfoundresp.py src/sdk/models/shared/maxallowedlimit.py src/sdk/models/shared/closingreasonsids.py src/sdk/models/shared/security.py diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 38abb52c1..d26498333 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.19.2 - generationVersion: 2.16.5 + speakeasyVersion: 1.19.3 + generationVersion: 2.16.7 generation: telemetryEnabled: false sdkClassName: SDK sdkFlattening: true singleTagPerOp: false python: - version: 1.2.2 + version: 1.2.3 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc index 79b8008d0..1a0ea35b7 100755 --- a/workflows_definition/pylintrc +++ b/workflows_definition/pylintrc @@ -124,12 +124,7 @@ attr-naming-style=snake_case #attr-rgx= # Bad variable names which should always be refused, separated by a comma. -bad-names=foo, - bar, - baz, - toto, - tutu, - tata +bad-names= # Bad variable names regexes, separated by a comma. If names match any regex, # they will always be refused @@ -439,7 +434,10 @@ disable=raw-checker-failed, trailing-newlines, too-many-public-methods, too-many-locals, - too-many-lines + too-many-lines, + using-constant-test, + too-many-statements, + cyclic-import, # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 997ae148d..440228332 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.2.2", + version="1.2.3", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py index 75129d9df..adc73b8e6 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinition.py +++ b/workflows_definition/src/sdk/models/operations/getdefinition.py @@ -3,9 +3,10 @@ from __future__ import annotations import dataclasses import requests as requests_http +from ..shared import definitionnotfoundresp as shared_definitionnotfoundresp from ..shared import errorresp as shared_errorresp from ..shared import workflowdefinition as shared_workflowdefinition -from typing import Any, Optional +from typing import Optional @dataclasses.dataclass @@ -20,7 +21,7 @@ class GetDefinitionResponse: content_type: str = dataclasses.field() status_code: int = dataclasses.field() - definition_not_found_resp: Optional[Any] = dataclasses.field(default=None) + definition_not_found_resp: Optional[shared_definitionnotfoundresp.DefinitionNotFoundResp] = dataclasses.field(default=None) r"""Definition Not found""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Validation Errors""" diff --git a/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py index e2d4de35c..6c79e53c0 100755 --- a/workflows_definition/src/sdk/models/shared/__init__.py +++ b/workflows_definition/src/sdk/models/shared/__init__.py @@ -6,6 +6,7 @@ from .closingreasons import * from .closingreasonsids import * from .closingreasonsstatus_enum import * +from .definitionnotfoundresp import * from .dynamicduedate import * from .ecpdetails import * from .errorresp import * @@ -19,4 +20,4 @@ from .updateentityattributes import * from .workflowdefinition import * -__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatusEnum","DynamicDueDate","DynamicDueDateActionTypeConditionEnum","DynamicDueDateTimePeriodEnum","ECPDetails","ErrorResp","ItemTypeEnum","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementConditionEnum","StepTypeEnum","UpdateEntityAttributes","UpdateEntityAttributesSourceEnum","UpdateEntityAttributesTarget","WorkflowDefinition"] +__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatusEnum","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeConditionEnum","DynamicDueDateTimePeriodEnum","ECPDetails","ErrorResp","ItemTypeEnum","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementConditionEnum","StepTypeEnum","UpdateEntityAttributes","UpdateEntityAttributesSourceEnum","UpdateEntityAttributesTarget","WorkflowDefinition"] diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py b/workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py index c38dcb022..8e09a5124 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py @@ -4,5 +4,5 @@ from enum import Enum class ClosingReasonsStatusEnum(str, Enum): - ACTIVE = "ACTIVE" - INACTIVE = "INACTIVE" + ACTIVE = 'ACTIVE' + INACTIVE = 'INACTIVE' diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py new file mode 100755 index 000000000..6a28a577e --- /dev/null +++ b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from dataclasses_json import Undefined, dataclass_json +from sdk import utils +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class DefinitionNotFoundResp: + r"""Definition could be not found""" + + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py index 9168c322c..e77d75ce7 100755 --- a/workflows_definition/src/sdk/models/shared/dynamicduedate.py +++ b/workflows_definition/src/sdk/models/shared/dynamicduedate.py @@ -8,13 +8,13 @@ from typing import Optional class DynamicDueDateActionTypeConditionEnum(str, Enum): - WORKFLOW_STARTED = "WORKFLOW_STARTED" - STEP_CLOSED = "STEP_CLOSED" + WORKFLOW_STARTED = 'WORKFLOW_STARTED' + STEP_CLOSED = 'STEP_CLOSED' class DynamicDueDateTimePeriodEnum(str, Enum): - DAYS = "days" - WEEKS = "weeks" - MONTHS = "months" + DAYS = 'days' + WEEKS = 'weeks' + MONTHS = 'months' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/workflows_definition/src/sdk/models/shared/itemtype_enum.py b/workflows_definition/src/sdk/models/shared/itemtype_enum.py index 0449374b7..e4f4e9f4b 100755 --- a/workflows_definition/src/sdk/models/shared/itemtype_enum.py +++ b/workflows_definition/src/sdk/models/shared/itemtype_enum.py @@ -4,5 +4,5 @@ from enum import Enum class ItemTypeEnum(str, Enum): - STEP = "STEP" - SECTION = "SECTION" + STEP = 'STEP' + SECTION = 'SECTION' diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index da66f0075..dd77a1b4f 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -8,7 +8,7 @@ from sdk import utils class StepRequirementConditionEnum(str, Enum): - CLOSED = "CLOSED" + CLOSED = 'CLOSED' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/workflows_definition/src/sdk/models/shared/steptype_enum.py b/workflows_definition/src/sdk/models/shared/steptype_enum.py index bd26773ba..79c54fe8e 100755 --- a/workflows_definition/src/sdk/models/shared/steptype_enum.py +++ b/workflows_definition/src/sdk/models/shared/steptype_enum.py @@ -4,5 +4,5 @@ from enum import Enum class StepTypeEnum(str, Enum): - MANUAL = "MANUAL" - AUTOMATION = "AUTOMATION" + MANUAL = 'MANUAL' + AUTOMATION = 'AUTOMATION' diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py index 8092aca87..3ae2a7143 100755 --- a/workflows_definition/src/sdk/models/shared/updateentityattributes.py +++ b/workflows_definition/src/sdk/models/shared/updateentityattributes.py @@ -7,9 +7,9 @@ from sdk import utils class UpdateEntityAttributesSourceEnum(str, Enum): - WORKFLOW_STATUS = "workflow_status" - CURRENT_SECTION = "current_section" - CURRENT_STEP = "current_step" + WORKFLOW_STATUS = 'workflow_status' + CURRENT_SECTION = 'current_section' + CURRENT_STEP = 'current_step' @dataclass_json(undefined=Undefined.EXCLUDE) diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 4ea77f02e..c5eb3091d 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -12,9 +12,7 @@ """Contains the list of servers available to the SDK""" class SDK: - r"""Service for Workflow Definitions for different processes inside of an Organization - - """ + r"""Service for Workflow Definitions for different processes inside of an Organization""" closing_reason: ClosingReason workflows: Workflows @@ -22,8 +20,8 @@ class SDK: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.2.2" - _gen_version: str = "2.16.5" + _sdk_version: str = "1.2.3" + _gen_version: str = "2.16.7" def __init__(self, security: shared.Security = None, diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index b442b7f15..c0076c68e 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -3,7 +3,7 @@ import requests as requests_http from . import utils from sdk.models import operations, shared -from typing import Any, Optional +from typing import Optional class Workflows: _client: requests_http.Session @@ -105,7 +105,7 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations res.error_resp = out elif http_res.status_code == 404: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[Any]) + out = utils.unmarshal_json(http_res.text, Optional[shared.DefinitionNotFoundResp]) res.definition_not_found_resp = out return res @@ -209,8 +209,6 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea res = operations.SetWorkflowClosingReasonsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) - if http_res.status_code == 201: - pass return res From 19394186082ab4b91a67f659ec8afa41c7ce18c5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Apr 2023 01:25:20 +0000 Subject: [PATCH 02/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.6 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index f78640eec..e9c4ec031 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -40,4 +40,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.3 (2.16.7) https://github.com/speakeasy-api/speakeasy + +## 2023-04-06 01:25:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d26498333..efd89762e 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.19.3 - generationVersion: 2.16.7 + speakeasyVersion: 1.19.6 + generationVersion: 2.17.8 generation: telemetryEnabled: false sdkClassName: SDK sdkFlattening: true singleTagPerOp: false python: - version: 1.2.3 + version: 1.3.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 440228332..3339de7e4 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.2.3", + version="1.3.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index c5eb3091d..b12451473 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 5f5170ffa0b0d7650665f828b1beb44bcc254188 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Apr 2023 01:27:13 +0000 Subject: [PATCH 03/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.19.7 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index e9c4ec031..175bd163c 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -46,4 +46,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.6 (2.17.8) https://github.com/speakeasy-api/speakeasy + +## 2023-04-12 01:27:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index efd89762e..fe46387a2 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.19.6 - generationVersion: 2.17.8 + speakeasyVersion: 1.19.7 + generationVersion: 2.17.9 generation: telemetryEnabled: false sdkClassName: SDK - sdkFlattening: true + sdkFlattening: false singleTagPerOp: false python: - version: 1.3.0 + version: 1.3.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 3339de7e4..f89c06699 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.3.0", + version="1.3.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index b12451473..f1ed8a193 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.3.0" - _gen_version: str = "2.17.8" + _sdk_version: str = "1.3.1" + _gen_version: str = "2.17.9" def __init__(self, security: shared.Security = None, From 7a8d5d730c2e5db98097efe07ac3a99bad190452 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Apr 2023 01:26:08 +0000 Subject: [PATCH 04/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.0 --- workflows_definition/RELEASES.md | 8 +- workflows_definition/gen.yaml | 6 +- workflows_definition/pylintrc | 1 + workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 +- workflows_definition/src/sdk/utils/utils.py | 127 +++++++++++--------- 6 files changed, 84 insertions(+), 64 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 175bd163c..871b1f737 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -52,4 +52,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.19.7 (2.17.9) https://github.com/speakeasy-api/speakeasy + +## 2023-04-14 01:25:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index fe46387a2..02bde9805 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,15 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.19.7 - generationVersion: 2.17.9 + speakeasyVersion: 1.20.0 + generationVersion: 2.18.0 generation: telemetryEnabled: false sdkClassName: SDK sdkFlattening: false singleTagPerOp: false python: - version: 1.3.1 + version: 1.4.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc index 1a0ea35b7..1ce47d88d 100755 --- a/workflows_definition/pylintrc +++ b/workflows_definition/pylintrc @@ -438,6 +438,7 @@ disable=raw-checker-failed, using-constant-test, too-many-statements, cyclic-import, + too-many-nested-blocks # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f89c06699..62c8e7215 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.3.1", + version="1.4.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index f1ed8a193..23b0134e7 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.3.1" - _gen_version: str = "2.17.9" + _sdk_version: str = "1.4.0" + _gen_version: str = "2.18.0" def __init__(self, security: shared.Security = None, diff --git a/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 9d4fba324..986a86937 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 56b6e327b4934ee501e3479d332fd6abff9b6d3d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Apr 2023 01:26:09 +0000 Subject: [PATCH 05/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 7 +++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 871b1f737..1f29baa28 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -58,4 +58,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.0 (2.18.0) https://github.com/speakeasy-api/speakeasy + +## 2023-04-18 01:25:56 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 02bde9805..77e05af8e 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,15 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.20.0 - generationVersion: 2.18.0 + speakeasyVersion: 1.20.1 + generationVersion: 2.18.1 generation: telemetryEnabled: false sdkClassName: SDK - sdkFlattening: false singleTagPerOp: false python: - version: 1.4.0 + version: 1.4.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 62c8e7215..6b4d7d0e9 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.4.0", + version="1.4.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 23b0134e7..9502bdc59 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 333044be9c620d18a92f5acb7bcfee87d68b3b0b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Apr 2023 01:35:19 +0000 Subject: [PATCH 06/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.20.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 1f29baa28..c0278222f 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -64,4 +64,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:35:08 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 77e05af8e..fc8e8235c 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.20.1 - generationVersion: 2.18.1 + speakeasyVersion: 1.20.2 + generationVersion: 2.18.2 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.4.1 + version: 1.4.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 6b4d7d0e9..25aa481c7 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.4.1", + version="1.4.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 9502bdc59..90209cff0 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 e1dce59f1c44b8c7939b40a871eafeb28e48333f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 21 Apr 2023 01:26:07 +0000 Subject: [PATCH 07/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.21.4 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index c0278222f..ca2e7a2cf 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -70,4 +70,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.20.2 (2.18.2) https://github.com/speakeasy-api/speakeasy + +## 2023-04-21 01:25:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.21.4 (2.19.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index fc8e8235c..d6a79463c 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.20.2 - generationVersion: 2.18.2 + speakeasyVersion: 1.21.4 + generationVersion: 2.19.1 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.4.2 + version: 1.5.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 25aa481c7..bec71e2b6 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.4.2", + version="1.5.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 90209cff0..fa8f60958 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 f95deb343da01ec87c9293abdb7d8e7f80e4ff2f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Apr 2023 01:29:36 +0000 Subject: [PATCH 08/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.22.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index ca2e7a2cf..f42fe6830 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -76,4 +76,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:29:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.22.1 (2.20.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d6a79463c..8ee9d19b9 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.21.4 - generationVersion: 2.19.1 + speakeasyVersion: 1.22.1 + generationVersion: 2.20.1 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.5.0 + version: 1.6.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index bec71e2b6..5f5c51e52 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.5.0", + version="1.6.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index fa8f60958..8fc7ebc67 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 a1cdf819c916f62b4b3ad0b69e80299ca7ff997c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Apr 2023 01:33:41 +0000 Subject: [PATCH 09/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.23.1 --- workflows_definition/README.md | 28 +- workflows_definition/RELEASES.md | 8 +- workflows_definition/USAGE.md | 2 +- .../docs/closingreason/README.md | 95 +++ workflows_definition/docs/sdk/README.md | 9 + workflows_definition/docs/workflows/README.md | 720 ++++++++++++++++++ workflows_definition/files.gen | 3 + workflows_definition/gen.yaml | 6 +- workflows_definition/setup.py | 4 +- workflows_definition/src/sdk/sdk.py | 4 +- 10 files changed, 856 insertions(+), 23 deletions(-) create mode 100755 workflows_definition/docs/closingreason/README.md create mode 100755 workflows_definition/docs/sdk/README.md create mode 100755 workflows_definition/docs/workflows/README.md diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 4e22b681d..29c4b72a2 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -27,7 +27,7 @@ req = operations.ChangeReasonStatusRequest( ), reason_id="provident", ) - + res = s.closing_reason.change_reason_status(req) if res.status_code == 200: @@ -39,22 +39,22 @@ if res.status_code == 200: ## Available Resources and Operations -### closing_reason +### [closing_reason](docs/closingreason/README.md) -* `change_reason_status` - changeReasonStatus -* `create_closing_reason` - createClosingReason -* `get_all_closing_reasons` - getAllClosingReasons +* [change_reason_status](docs/closingreason/README.md#change_reason_status) - changeReasonStatus +* [create_closing_reason](docs/closingreason/README.md#create_closing_reason) - createClosingReason +* [get_all_closing_reasons](docs/closingreason/README.md#get_all_closing_reasons) - getAllClosingReasons -### workflows +### [workflows](docs/workflows/README.md) -* `create_definition` - createDefinition -* `delete_definition` - deleteDefinition -* `get_definition` - getDefinition -* `get_definitions` - getDefinitions -* `get_max_allowed_limit` - getMaxAllowedLimit -* `get_workflow_closing_reasons` - getWorkflowClosingReasons -* `set_workflow_closing_reasons` - setWorkflowClosingReasons -* `update_definition` - updateDefinition +* [create_definition](docs/workflows/README.md#create_definition) - createDefinition +* [delete_definition](docs/workflows/README.md#delete_definition) - deleteDefinition +* [get_definition](docs/workflows/README.md#get_definition) - getDefinition +* [get_definitions](docs/workflows/README.md#get_definitions) - getDefinitions +* [get_max_allowed_limit](docs/workflows/README.md#get_max_allowed_limit) - getMaxAllowedLimit +* [get_workflow_closing_reasons](docs/workflows/README.md#get_workflow_closing_reasons) - getWorkflowClosingReasons +* [set_workflow_closing_reasons](docs/workflows/README.md#set_workflow_closing_reasons) - setWorkflowClosingReasons +* [update_definition](docs/workflows/README.md#update_definition) - updateDefinition ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index f42fe6830..3a4e215e9 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -82,4 +82,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:33:29 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 932ea9e20..0845926de 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -16,7 +16,7 @@ req = operations.ChangeReasonStatusRequest( ), reason_id="provident", ) - + res = s.closing_reason.change_reason_status(req) if res.status_code == 200: diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md new file mode 100755 index 000000000..6bf7917ad --- /dev/null +++ b/workflows_definition/docs/closingreason/README.md @@ -0,0 +1,95 @@ +# closing_reason + +### Available Operations + +* [change_reason_status](#change_reason_status) - changeReasonStatus +* [create_closing_reason](#create_closing_reason) - createClosingReason +* [get_all_closing_reasons](#get_all_closing_reasons) - getAllClosingReasons + +## change_reason_status + +Change the status of a Closing Reason (eg. ACTIVE to INACTIVE). + +### Example Usage + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.ChangeReasonStatusRequest( + change_reason_status_req=shared.ChangeReasonStatusReq( + status="INACTIVE", + ), + reason_id="quibusdam", +) + +res = s.closing_reason.change_reason_status(req) + +if res.status_code == 200: + # handle response +``` + +## create_closing_reason + +A created Closing Reason is stored for the organization and will be displayed in the library of reasons. + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = shared.ClosingReason( + creation_time="unde", + id="d8d69a67-4e0f-4467-8c87-96ed151a05df", + last_update_time="quo", + status="ACTIVE", + title="Dr.", +) + +res = s.closing_reason.create_closing_reason(req) + +if res.closing_reason is not None: + # handle response +``` + +## get_all_closing_reasons + +Get all Closing Reasons defined in the organization by default all Active. + +### Example Usage + +```python +import sdk +from sdk.models import operations + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.GetAllClosingReasonsRequest( + include_inactive=False, +) + +res = s.closing_reason.get_all_closing_reasons(req) + +if res.closing_reasons is not None: + # handle response +``` diff --git a/workflows_definition/docs/sdk/README.md b/workflows_definition/docs/sdk/README.md new file mode 100755 index 000000000..5824972a4 --- /dev/null +++ b/workflows_definition/docs/sdk/README.md @@ -0,0 +1,9 @@ +# SDK + +## Overview + +Service for Workflow Definitions for different processes inside of an Organization + + +### Available Operations + diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/workflows/README.md new file mode 100755 index 000000000..7d55de81f --- /dev/null +++ b/workflows_definition/docs/workflows/README.md @@ -0,0 +1,720 @@ +# workflows + +### Available Operations + +* [create_definition](#create_definition) - createDefinition +* [delete_definition](#delete_definition) - deleteDefinition +* [get_definition](#get_definition) - getDefinition +* [get_definitions](#get_definitions) - getDefinitions +* [get_max_allowed_limit](#get_max_allowed_limit) - getMaxAllowedLimit +* [get_workflow_closing_reasons](#get_workflow_closing_reasons) - getWorkflowClosingReasons +* [set_workflow_closing_reasons](#set_workflow_closing_reasons) - setWorkflowClosingReasons +* [update_definition](#update_definition) - updateDefinition + +## create_definition + +Create a Workflow Definition. + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = shared.WorkflowDefinition( + assigned_to=[ + "maiores", + "molestiae", + "quod", + "quod", + ], + closing_reasons=[ + shared.ClosingReasonID( + id="x739cew", + ), + shared.ClosingReasonID( + id="x739cew", + ), + ], + creation_time="2021-04-27T12:01:13.000Z", + description="totam", + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="STEP_CLOSED", + number_of_units=6788.8, + step_id="dicta", + time_period="months", + ), + enable_ecp_workflow=False, + flow=[ + shared.Step( + assigned_to=[ + "deleniti", + ], + automation_config=shared.StepAutomationConfig( + flow_id="hic", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="STEP_CLOSED", + number_of_units=5218.48, + step_id="beatae", + time_period="weeks", + ), + ecp=shared.ECPDetails( + label="molestiae", + ), + execution_type="MANUAL", + id="2cb73920-5929-4396-bea7-596eb10faaa2", + name="Stacy Champlin", + order=6078.31, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="minima", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="accusantium", + type="STEP", + ), + ], + type="SECTION", + user_ids=[ + 9589.5, + 1020.44, + 6527.9, + 2088.76, + ], + ), + shared.Step( + assigned_to=[ + "repellat", + ], + automation_config=shared.StepAutomationConfig( + flow_id="mollitia", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="STEP_CLOSED", + number_of_units=2532.91, + step_id="commodi", + time_period="weeks", + ), + ecp=shared.ECPDetails( + label="molestiae", + ), + execution_type="MANUAL", + id="9251aa52-c3f5-4ad0-99da-1ffe78f097b0", + name="Bessie Grady II", + order=2961.4, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="dicta", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="enim", + type="SECTION", + ), + ], + type="STEP", + user_ids=[ + 641.47, + 2168.22, + 6924.72, + 5651.89, + ], + ), + shared.Step( + assigned_to=[ + "modi", + "praesentium", + "rem", + "voluptates", + ], + automation_config=shared.StepAutomationConfig( + flow_id="quasi", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="STEP_CLOSED", + number_of_units=5759.47, + step_id="veritatis", + time_period="months", + ), + ecp=shared.ECPDetails( + label="incidunt", + ), + execution_type="MANUAL", + id="0ad2abd4-4269-4802-9502-a94bb4f63c96", + name="Terence Marquardt", + order=8915.55, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="dolorum", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="in", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="maiores", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="dicta", + type="STEP", + ), + ], + type="SECTION", + user_ids=[ + 4118.2, + 3965.06, + 6754.39, + 8811.04, + ], + ), + ], + id="395efb9b-a88f-43a6-a997-074ba4469b6e", + last_update_time="2021-04-27T12:01:13.000Z", + name="Ms. Julie Gusikowski", + update_entity_attributes=[ + shared.UpdateEntityAttributes( + source="current_section", + target=shared.UpdateEntityAttributesTarget( + entity_attribute="my_status", + entity_schema="opportunity", + ), + ), + shared.UpdateEntityAttributes( + source="current_section", + target=shared.UpdateEntityAttributesTarget( + entity_attribute="my_status", + entity_schema="opportunity", + ), + ), + shared.UpdateEntityAttributes( + source="workflow_status", + target=shared.UpdateEntityAttributesTarget( + entity_attribute="my_status", + entity_schema="opportunity", + ), + ), + ], + user_ids=[ + 9689.62, + 6521.03, + 3209.97, + ], +) + +res = s.workflows.create_definition(req) + +if res.workflow_definition is not None: + # handle response +``` + +## delete_definition + +Delete Workflow Definition. + +### Example Usage + +```python +import sdk +from sdk.models import operations + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.DeleteDefinitionRequest( + definition_id="eum", +) + +res = s.workflows.delete_definition(req) + +if res.status_code == 200: + # handle response +``` + +## get_definition + +Get specific Definition by id from the Organization. + +### Example Usage + +```python +import sdk +from sdk.models import operations + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.GetDefinitionRequest( + definition_id="dolor", +) + +res = s.workflows.get_definition(req) + +if res.workflow_definition is not None: + # handle response +``` + +## get_definitions + +Retrieve all Workflow Definitions from an Organization + +### Example Usage + +```python +import sdk + + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +res = s.workflows.get_definitions() + +if res.workflow_definitions is not None: + # handle response +``` + +## get_max_allowed_limit + +Get limits and number of created executions for an Organization. + +### Example Usage + +```python +import sdk + + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +res = s.workflows.get_max_allowed_limit() + +if res.max_allowed_limit is not None: + # handle response +``` + +## get_workflow_closing_reasons + +Returns all closing reasons defined for the workflow. + +### Example Usage + +```python +import sdk +from sdk.models import operations + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.GetWorkflowClosingReasonsRequest( + definition_id="necessitatibus", +) + +res = s.workflows.get_workflow_closing_reasons(req) + +if res.closing_reasons_ids is not None: + # handle response +``` + +## set_workflow_closing_reasons + +Sets which closing reasons are defined for this workflow, based on the entire closing reasons catalog. + +### Example Usage + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.SetWorkflowClosingReasonsRequest( + closing_reasons_ids=shared.ClosingReasonsIds( + reasons=[ + shared.ClosingReasonID( + id="x739cew", + ), + ], + ), + definition_id="nemo", +) + +res = s.workflows.set_workflow_closing_reasons(req) + +if res.status_code == 200: + # handle response +``` + +## update_definition + +Update Workflow Definition. + +### Example Usage + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + ), +) + + +req = operations.UpdateDefinitionRequest( + workflow_definition=shared.WorkflowDefinition( + assigned_to=[ + "iure", + ], + closing_reasons=[ + shared.ClosingReasonID( + id="x739cew", + ), + shared.ClosingReasonID( + id="x739cew", + ), + shared.ClosingReasonID( + id="x739cew", + ), + shared.ClosingReasonID( + id="x739cew", + ), + ], + creation_time="2021-04-27T12:01:13.000Z", + description="debitis", + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="WORKFLOW_STARTED", + number_of_units=8061.94, + step_id="deleniti", + time_period="months", + ), + enable_ecp_workflow=False, + flow=[ + shared.Section( + id="1e5b7fd2-ed02-4892-9cdd-c692601fb576", + name="Gary Streich", + order=166.27, + steps=[ + shared.Step( + assigned_to=[ + "aut", + ], + automation_config=shared.StepAutomationConfig( + flow_id="cumque", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="WORKFLOW_STARTED", + number_of_units=9441.24, + step_id="libero", + time_period="months", + ), + ecp=shared.ECPDetails( + label="dolores", + ), + execution_type="MANUAL", + id="87053202-c73d-45fe-9b90-c28909b3fe49", + name="Casey Stracke", + order=7301.22, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="quaerat", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="aliquid", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="dolorem", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="qui", + type="STEP", + ), + ], + type="SECTION", + user_ids=[ + 7395.51, + 4521.09, + 4904.59, + ], + ), + shared.Step( + assigned_to=[ + "amet", + "dolorum", + "numquam", + "veritatis", + ], + automation_config=shared.StepAutomationConfig( + flow_id="ipsa", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="WORKFLOW_STARTED", + number_of_units=4344.17, + step_id="odio", + time_period="days", + ), + ecp=shared.ECPDetails( + label="accusamus", + ), + execution_type="AUTOMATION", + id="f69280d1-ba77-4a89-abf7-37ae4203ce5e", + name="Rosie McKenzie", + order=5197.11, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="alias", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="quaerat", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="vel", + type="SECTION", + ), + ], + type="SECTION", + user_ids=[ + 6798.8, + ], + ), + shared.Step( + assigned_to=[ + "esse", + "harum", + "iusto", + "ipsum", + ], + automation_config=shared.StepAutomationConfig( + flow_id="quisquam", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="STEP_CLOSED", + number_of_units=2294.42, + step_id="tempore", + time_period="months", + ), + ecp=shared.ECPDetails( + label="numquam", + ), + execution_type="MANUAL", + id="3f870b32-6b5a-4734-a9cd-b1a8422bb679", + name="Shawn Doyle", + order=4880.56, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="ullam", + type="SECTION", + ), + ], + type="SECTION", + user_ids=[ + 7653.26, + ], + ), + shared.Step( + assigned_to=[ + "nobis", + "et", + "saepe", + ], + automation_config=shared.StepAutomationConfig( + flow_id="ipsum", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="WORKFLOW_STARTED", + number_of_units=7492.55, + step_id="quos", + time_period="months", + ), + ecp=shared.ECPDetails( + label="cupiditate", + ), + execution_type="MANUAL", + id="f3443a11-08e0-4adc-b4b9-21879fce953f", + name="Victoria Thiel", + order=9413.78, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="quod", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="similique", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="vero", + type="STEP", + ), + ], + type="STEP", + user_ids=[ + 8489.44, + 1943.42, + 6178.77, + 7733.26, + ], + ), + ], + type="STEP", + ), + shared.Step( + assigned_to=[ + "nulla", + "fugit", + ], + automation_config=shared.StepAutomationConfig( + flow_id="porro", + ), + due_date="2021-04-27T12:00:00.000Z", + dynamic_due_date=shared.DynamicDueDate( + action_type_condition="STEP_CLOSED", + number_of_units=9850.33, + step_id="iusto", + time_period="months", + ), + ecp=shared.ECPDetails( + label="ducimus", + ), + execution_type="MANUAL", + id="a45626d4-3681-43f1-ad9f-5fce6c556146", + name="Glenn Walter", + order=534.27, + requirements=[ + shared.StepRequirement( + condition="CLOSED", + definition_id="libero", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="aut", + type="SECTION", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="impedit", + type="STEP", + ), + shared.StepRequirement( + condition="CLOSED", + definition_id="fugit", + type="SECTION", + ), + ], + type="STEP", + user_ids=[ + 896.03, + 6774.12, + ], + ), + ], + id="ac366c8d-d6b1-4442-9074-74778a7bd466", + last_update_time="2021-04-27T12:01:13.000Z", + name="Alan Lang Jr.", + update_entity_attributes=[ + shared.UpdateEntityAttributes( + source="current_step", + target=shared.UpdateEntityAttributesTarget( + entity_attribute="my_status", + entity_schema="opportunity", + ), + ), + shared.UpdateEntityAttributes( + source="workflow_status", + target=shared.UpdateEntityAttributesTarget( + entity_attribute="my_status", + entity_schema="opportunity", + ), + ), + shared.UpdateEntityAttributes( + source="current_step", + target=shared.UpdateEntityAttributesTarget( + entity_attribute="my_status", + entity_schema="opportunity", + ), + ), + ], + user_ids=[ + 7774.08, + 6813.59, + 2594.22, + 1783.67, + ], + ), + definition_id="voluptas", +) + +res = s.workflows.update_definition(req) + +if res.workflow_definition is not None: + # handle response +``` diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 2e0303d4c..fc8878fb1 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -40,4 +40,7 @@ src/sdk/models/shared/maxallowedlimit.py src/sdk/models/shared/closingreasonsids.py src/sdk/models/shared/security.py src/sdk/models/shared/__init__.py +docs/sdk/README.md +docs/closingreason/README.md +docs/workflows/README.md USAGE.md \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 8ee9d19b9..0cfe11765 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.22.1 - generationVersion: 2.20.1 + speakeasyVersion: 1.23.1 + generationVersion: 2.21.1 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.6.0 + version: 1.7.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 5f5c51e52..a62747563 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,14 +10,14 @@ setuptools.setup( name="openapi", - version="1.6.0", + version="1.7.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", 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/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 8fc7ebc67..7ee1892d9 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 c64b3143e0bc860c94d5a08577aecb5dda708016 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Apr 2023 01:35:11 +0000 Subject: [PATCH 10/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.25.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 3a4e215e9..f4444d02d 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -88,4 +88,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:34:59 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 0cfe11765..792f9ff50 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.23.1 - generationVersion: 2.21.1 + speakeasyVersion: 1.25.1 + generationVersion: 2.22.0 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.7.0 + version: 1.8.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index a62747563..3cabd8575 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.7.0", + version="1.8.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 7ee1892d9..b5eda2b81 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 3fc913f19e7db4accca29a9dbadc5719ddcb61fb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Apr 2023 01:35:59 +0000 Subject: [PATCH 11/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.2 --- workflows_definition/RELEASES.md | 8 +++- workflows_definition/gen.yaml | 6 +-- workflows_definition/setup.py | 2 +- .../models/operations/changereasonstatus.py | 18 ++++++--- .../models/operations/createclosingreason.py | 12 ++++-- .../sdk/models/operations/createdefinition.py | 15 ++++--- .../sdk/models/operations/deletedefinition.py | 15 ++++--- .../models/operations/getallclosingreasons.py | 15 ++++--- .../sdk/models/operations/getdefinition.py | 21 ++++++---- .../sdk/models/operations/getdefinitions.py | 15 ++++--- .../models/operations/getmaxallowedlimit.py | 15 ++++--- .../operations/getworkflowclosingreasons.py | 15 ++++--- .../operations/setworkflowclosingreasons.py | 15 ++++--- .../sdk/models/operations/updatedefinition.py | 21 ++++++---- .../models/shared/changereasonstatusreq.py | 3 +- .../src/sdk/models/shared/closingreason.py | 15 ++++--- .../src/sdk/models/shared/closingreasonid.py | 3 +- .../src/sdk/models/shared/closingreasons.py | 3 +- .../sdk/models/shared/closingreasonsids.py | 3 +- .../models/shared/definitionnotfoundresp.py | 3 +- .../src/sdk/models/shared/dynamicduedate.py | 12 ++++-- .../src/sdk/models/shared/ecpdetails.py | 3 +- .../src/sdk/models/shared/errorresp.py | 3 +- .../src/sdk/models/shared/maxallowedlimit.py | 6 ++- .../src/sdk/models/shared/section.py | 15 ++++--- .../src/sdk/models/shared/security.py | 3 +- .../src/sdk/models/shared/step.py | 39 ++++++++++++------- .../src/sdk/models/shared/steprequirement.py | 9 +++-- .../models/shared/updateentityattributes.py | 12 ++++-- .../sdk/models/shared/workflowdefinition.py | 39 ++++++++++++------- workflows_definition/src/sdk/sdk.py | 4 +- 31 files changed, 245 insertions(+), 123 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index f4444d02d..1e90633a2 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -94,4 +94,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:35:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 792f9ff50..cda4f49cb 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.25.1 - generationVersion: 2.22.0 + speakeasyVersion: 1.26.2 + generationVersion: 2.23.2 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.8.0 + version: 1.9.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 3cabd8575..f620101c6 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.8.0", + version="1.9.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py index a6a129510..caa76ce43 100755 --- a/workflows_definition/src/sdk/models/operations/changereasonstatus.py +++ b/workflows_definition/src/sdk/models/operations/changereasonstatus.py @@ -11,17 +11,23 @@ @dataclasses.dataclass class ChangeReasonStatusRequest: - reason_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'reasonId', 'style': 'simple', 'explode': False }}) + reason_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'reasonId', 'style': 'simple', 'explode': False }}) + change_reason_status_req: Optional[shared_changereasonstatusreq.ChangeReasonStatusReq] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) - r"""change the status of a closing reason""" + + r"""change the status of a closing reason""" @dataclasses.dataclass class ChangeReasonStatusResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""bad request""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""bad request""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py index c4e398006..6be65d44b 100755 --- a/workflows_definition/src/sdk/models/operations/createclosingreason.py +++ b/workflows_definition/src/sdk/models/operations/createclosingreason.py @@ -10,9 +10,13 @@ @dataclasses.dataclass class CreateClosingReasonResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + closing_reason: Optional[shared_closingreason.ClosingReason] = dataclasses.field(default=None) - r"""closing reason is stored successfully in the repository""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""closing reason is stored successfully in the repository""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py index 684e8b7b3..c3374d28b 100755 --- a/workflows_definition/src/sdk/models/operations/createdefinition.py +++ b/workflows_definition/src/sdk/models/operations/createdefinition.py @@ -11,11 +11,16 @@ @dataclasses.dataclass class CreateDefinitionResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Validation Errors""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Validation Errors""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) - r"""Success - if the definition is created successfully""" + + r"""Success - if the definition is created successfully""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py index 072a47c07..826b7f682 100755 --- a/workflows_definition/src/sdk/models/operations/deletedefinition.py +++ b/workflows_definition/src/sdk/models/operations/deletedefinition.py @@ -11,15 +11,20 @@ class DeleteDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""Id of the definition to de deleted.""" + + r"""Id of the definition to de deleted.""" @dataclasses.dataclass class DeleteDefinitionResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Failed to authenticate""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Failed to authenticate""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py index eb38791a4..6e7d3bd51 100755 --- a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py @@ -11,15 +11,20 @@ class GetAllClosingReasonsRequest: include_inactive: Optional[bool] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'includeInactive', 'style': 'form', 'explode': True }}) - r"""Filter Closing Reasons by status like active inactiv""" + + r"""Filter Closing Reasons by status like active inactiv""" @dataclasses.dataclass class GetAllClosingReasonsResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + closing_reasons: Optional[shared_closingreasons.ClosingReasons] = dataclasses.field(default=None) - r"""Returns the entire catalog of closing reasons per organization""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Returns the entire catalog of closing reasons per organization""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py index adc73b8e6..d4d09d0e3 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinition.py +++ b/workflows_definition/src/sdk/models/operations/getdefinition.py @@ -13,19 +13,26 @@ class GetDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""Short uuid (length 8) to identify the Workflow Definition.""" + + r"""Short uuid (length 8) to identify the Workflow Definition.""" @dataclasses.dataclass class GetDefinitionResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + definition_not_found_resp: Optional[shared_definitionnotfoundresp.DefinitionNotFoundResp] = dataclasses.field(default=None) - r"""Definition Not found""" + + r"""Definition Not found""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Validation Errors""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Validation Errors""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) - r"""Returns the Workflow definition""" + + r"""Returns the Workflow definition""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py index a4c55c890..a91d2be7a 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinitions.py +++ b/workflows_definition/src/sdk/models/operations/getdefinitions.py @@ -11,11 +11,16 @@ @dataclasses.dataclass class GetDefinitionsResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Other errors""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Other errors""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + workflow_definitions: Optional[list[shared_workflowdefinition.WorkflowDefinition]] = dataclasses.field(default=None) - r"""Success - definitions loaded with success. Empty array if org has no definitions.""" + + r"""Success - definitions loaded with success. Empty array if org has no definitions.""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py index 0ecca4374..bc5d7418d 100755 --- a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py +++ b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py @@ -11,11 +11,16 @@ @dataclasses.dataclass class GetMaxAllowedLimitResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Other errors""" + + r"""Other errors""" max_allowed_limit: Optional[shared_maxallowedlimit.MaxAllowedLimit] = dataclasses.field(default=None) - r"""A combo of current number of workflows, and the max allowed number of workflows.""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""A combo of current number of workflows, and the max allowed number of workflows.""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py index 7d3fdd9b8..169c6f030 100755 --- a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py @@ -11,15 +11,20 @@ class GetWorkflowClosingReasonsRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""ID of a workflow definition""" + + r"""ID of a workflow definition""" @dataclasses.dataclass class GetWorkflowClosingReasonsResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + closing_reasons_ids: Optional[shared_closingreasonsids.ClosingReasonsIds] = dataclasses.field(default=None) - r"""Returns the entire catalog of closing reasons for a specific workflow""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Returns the entire catalog of closing reasons for a specific workflow""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py index 73d4a13e3..c0bd85879 100755 --- a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py @@ -11,15 +11,20 @@ class SetWorkflowClosingReasonsRequest: closing_reasons_ids: shared_closingreasonsids.ClosingReasonsIds = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) - r"""set all closing reasons for a specific definition""" + + r"""set all closing reasons for a specific definition""" definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""ID of a workflow definition""" + + r"""ID of a workflow definition""" @dataclasses.dataclass class SetWorkflowClosingReasonsResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py index 793dbe7b9..5b97148a4 100755 --- a/workflows_definition/src/sdk/models/operations/updatedefinition.py +++ b/workflows_definition/src/sdk/models/operations/updatedefinition.py @@ -12,19 +12,26 @@ class UpdateDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""Short uuid (length 8) to identify the Workflow Definition.""" + + r"""Short uuid (length 8) to identify the Workflow Definition.""" workflow_definition: shared_workflowdefinition.WorkflowDefinition = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) - r"""Workflow Definition payload""" + + r"""Workflow Definition payload""" @dataclasses.dataclass class UpdateDefinitionResponse: - content_type: str = dataclasses.field() - status_code: int = dataclasses.field() + content_type: str = dataclasses.field() + + status_code: int = dataclasses.field() + error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Validation Errors""" - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + r"""Validation Errors""" + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) - r"""Success - if the definition is updated successfully""" + + r"""Success - if the definition is updated successfully""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py index 778594aa8..15525c728 100755 --- a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py +++ b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py @@ -12,5 +12,6 @@ class ChangeReasonStatusReq: r"""change the status of a closing reason""" - status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) + status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py index 5de90d015..634571fc7 100755 --- a/workflows_definition/src/sdk/models/shared/closingreason.py +++ b/workflows_definition/src/sdk/models/shared/closingreason.py @@ -13,9 +13,14 @@ class ClosingReason: r"""One Closing reason for a workflow""" - status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) - title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) - creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) + status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) + + title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) + + creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) + + id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + + last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreasonid.py b/workflows_definition/src/sdk/models/shared/closingreasonid.py index 4be444c3f..13166fd57 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonid.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonid.py @@ -10,5 +10,6 @@ @dataclasses.dataclass class ClosingReasonID: - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) + id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py index f596d73e5..e284cd1d7 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasons.py +++ b/workflows_definition/src/sdk/models/shared/closingreasons.py @@ -12,5 +12,6 @@ class ClosingReasons: r"""Returns the entire catalog of closing reasons per organization""" - reasons: list[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) + reasons: list[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py index e09a20598..9e1f3c907 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsids.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsids.py @@ -12,5 +12,6 @@ class ClosingReasonsIds: r"""Returns the entire catalog of closing reasons for a specific workflow""" - reasons: list[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) + reasons: list[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py index 6a28a577e..82f83967e 100755 --- a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py +++ b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py @@ -12,5 +12,6 @@ class DefinitionNotFoundResp: r"""Definition could be not found""" - message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py index e77d75ce7..aeb636ad5 100755 --- a/workflows_definition/src/sdk/models/shared/dynamicduedate.py +++ b/workflows_definition/src/sdk/models/shared/dynamicduedate.py @@ -22,8 +22,12 @@ class DynamicDueDateTimePeriodEnum(str, Enum): class DynamicDueDate: r"""set a Duedate for a step then a specific""" - action_type_condition: DynamicDueDateActionTypeConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('actionTypeCondition') }}) - number_of_units: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numberOfUnits') }}) - time_period: DynamicDueDateTimePeriodEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timePeriod') }}) - step_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('stepId'), 'exclude': lambda f: f is None }}) + action_type_condition: DynamicDueDateActionTypeConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('actionTypeCondition') }}) + + number_of_units: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numberOfUnits') }}) + + time_period: DynamicDueDateTimePeriodEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timePeriod') }}) + + step_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('stepId'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/ecpdetails.py b/workflows_definition/src/sdk/models/shared/ecpdetails.py index 9862030a0..7500c0772 100755 --- a/workflows_definition/src/sdk/models/shared/ecpdetails.py +++ b/workflows_definition/src/sdk/models/shared/ecpdetails.py @@ -12,5 +12,6 @@ class ECPDetails: r"""Details regarding ECP for the workflow step""" - label: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('label'), 'exclude': lambda f: f is None }}) + label: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('label'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py index 50110f530..fb5cc9475 100755 --- a/workflows_definition/src/sdk/models/shared/errorresp.py +++ b/workflows_definition/src/sdk/models/shared/errorresp.py @@ -12,5 +12,6 @@ class ErrorResp: r"""bad request""" - message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py index 27a27b3f1..c4c387d11 100755 --- a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py +++ b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py @@ -12,6 +12,8 @@ class MaxAllowedLimit: r"""A combo of current number of workflows, and the max allowed number of workflows.""" - current_no_of_workflows: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentNoOfWorkflows'), 'exclude': lambda f: f is None }}) - max_allowed: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maxAllowed'), 'exclude': lambda f: f is None }}) + current_no_of_workflows: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentNoOfWorkflows'), 'exclude': lambda f: f is None }}) + + max_allowed: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maxAllowed'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py index 7d3aaaded..d82c788b3 100755 --- a/workflows_definition/src/sdk/models/shared/section.py +++ b/workflows_definition/src/sdk/models/shared/section.py @@ -14,9 +14,14 @@ class Section: r"""A group of Steps that define the progress of the Workflow""" - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) - steps: list[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) + + order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) + + steps: list[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) + + type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + + id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/security.py b/workflows_definition/src/sdk/models/shared/security.py index e41721b57..01b35706f 100755 --- a/workflows_definition/src/sdk/models/shared/security.py +++ b/workflows_definition/src/sdk/models/shared/security.py @@ -7,5 +7,6 @@ @dataclasses.dataclass class Security: - bearer_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) + bearer_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/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index 721ab3632..999694e4e 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -17,7 +17,8 @@ class StepAutomationConfig: flow_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flowId') }}) - r"""Id of the configured automation to run""" + + r"""Id of the configured automation to run""" @dataclass_json(undefined=Undefined.EXCLUDE) @@ -25,20 +26,32 @@ class StepAutomationConfig: class Step: r"""Action that needs to be done in a Workflow""" - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) - automation_config: Optional[StepAutomationConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('automationConfig'), 'exclude': lambda f: f is None }}) - due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) + name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) + + order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) + + type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + + assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) + + automation_config: Optional[StepAutomationConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('automationConfig'), 'exclude': lambda f: f is None }}) + + due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) + dynamic_due_date: Optional[shared_dynamicduedate.DynamicDueDate] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dynamicDueDate'), 'exclude': lambda f: f is None }}) - r"""set a Duedate for a step then a specific""" + + r"""set a Duedate for a step then a specific""" ecp: Optional[shared_ecpdetails.ECPDetails] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ecp'), 'exclude': lambda f: f is None }}) - r"""Details regarding ECP for the workflow step""" - execution_type: Optional[shared_steptype_enum.StepTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('executionType'), 'exclude': lambda f: f is None }}) - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + + r"""Details regarding ECP for the workflow step""" + execution_type: Optional[shared_steptype_enum.StepTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('executionType'), 'exclude': lambda f: f is None }}) + + id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + requirements: Optional[list[shared_steprequirement.StepRequirement]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('requirements'), 'exclude': lambda f: f is None }}) - r"""requirements that need to be fulfilled in order to enable the step execution""" + + r"""requirements that need to be fulfilled in order to enable the step execution""" user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) - r"""This field is deprecated. Please use assignedTo""" + + r"""This field is deprecated. Please use assignedTo""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index dd77a1b4f..93666e3cd 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -16,7 +16,10 @@ class StepRequirementConditionEnum(str, Enum): class StepRequirement: r"""describe the requirement for step enablement""" - condition: StepRequirementConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) - definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + condition: StepRequirementConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) + + definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) + + type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py index 3ae2a7143..574fe31dc 100755 --- a/workflows_definition/src/sdk/models/shared/updateentityattributes.py +++ b/workflows_definition/src/sdk/models/shared/updateentityattributes.py @@ -16,14 +16,18 @@ class UpdateEntityAttributesSourceEnum(str, Enum): @dataclasses.dataclass class UpdateEntityAttributesTarget: - entity_attribute: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entityAttribute') }}) - entity_schema: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entitySchema') }}) + entity_attribute: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entityAttribute') }}) + + entity_schema: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entitySchema') }}) + @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class UpdateEntityAttributes: - source: UpdateEntityAttributesSourceEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) - target: UpdateEntityAttributesTarget = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('target') }}) + source: UpdateEntityAttributesSourceEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) + + target: UpdateEntityAttributesTarget = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('target') }}) + \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 1ca247d15..3d7d5da0a 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -15,22 +15,35 @@ class WorkflowDefinition: r"""Workflow Definition payload""" - flow: list[Any] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) - closing_reasons: Optional[list[shared_closingreasonid.ClosingReasonID]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closingReasons'), 'exclude': lambda f: f is None }}) + flow: list[Any] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) + + name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) + + assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) + + closing_reasons: Optional[list[shared_closingreasonid.ClosingReasonID]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closingReasons'), 'exclude': lambda f: f is None }}) + creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) - r"""ISO String Date & Time""" - description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) - due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) + + r"""ISO String Date & Time""" + description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) + + due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) + dynamic_due_date: Optional[shared_dynamicduedate.DynamicDueDate] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dynamicDueDate'), 'exclude': lambda f: f is None }}) - r"""set a Duedate for a step then a specific""" + + r"""set a Duedate for a step then a specific""" enable_ecp_workflow: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('enableECPWorkflow'), 'exclude': lambda f: f is None }}) - r"""Indicates whether this workflow is available for End Customer Portal or not. By default it's not.""" - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + + r"""Indicates whether this workflow is available for End Customer Portal or not. By default it's not.""" + id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) - r"""ISO String Date & Time""" - update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) + + r"""ISO String Date & Time""" + update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) + user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) - r"""This field is deprecated. Please use assignedTo""" + + r"""This field is deprecated. Please use assignedTo""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index b5eda2b81..d2cc320c0 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 ed757baf5136e665985a63941ea8766f7c14a46f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 29 Apr 2023 01:27:51 +0000 Subject: [PATCH 12/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.4 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- .../src/sdk/models/operations/changereasonstatus.py | 6 ------ .../sdk/models/operations/createclosingreason.py | 4 ---- .../src/sdk/models/operations/createdefinition.py | 5 ----- .../src/sdk/models/operations/deletedefinition.py | 5 ----- .../sdk/models/operations/getallclosingreasons.py | 5 ----- .../src/sdk/models/operations/getdefinition.py | 7 ------- .../src/sdk/models/operations/getdefinitions.py | 5 ----- .../src/sdk/models/operations/getmaxallowedlimit.py | 5 ----- .../models/operations/getworkflowclosingreasons.py | 5 ----- .../models/operations/setworkflowclosingreasons.py | 5 ----- .../src/sdk/models/operations/updatedefinition.py | 7 ------- .../src/sdk/models/shared/changereasonstatusreq.py | 1 - .../src/sdk/models/shared/closingreason.py | 5 ----- .../src/sdk/models/shared/closingreasonid.py | 1 - .../src/sdk/models/shared/closingreasons.py | 1 - .../src/sdk/models/shared/closingreasonsids.py | 1 - .../src/sdk/models/shared/definitionnotfoundresp.py | 1 - .../src/sdk/models/shared/dynamicduedate.py | 4 ---- .../src/sdk/models/shared/ecpdetails.py | 1 - .../src/sdk/models/shared/errorresp.py | 1 - .../src/sdk/models/shared/maxallowedlimit.py | 2 -- .../src/sdk/models/shared/section.py | 5 ----- .../src/sdk/models/shared/security.py | 1 - workflows_definition/src/sdk/models/shared/step.py | 13 ------------- .../src/sdk/models/shared/steprequirement.py | 3 --- .../src/sdk/models/shared/updateentityattributes.py | 4 ---- .../src/sdk/models/shared/workflowdefinition.py | 13 ------------- workflows_definition/src/sdk/sdk.py | 4 ++-- 31 files changed, 13 insertions(+), 123 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 1e90633a2..2606d822d 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -100,4 +100,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.26.2 (2.23.2) https://github.com/speakeasy-api/speakeasy + +## 2023-04-29 01:27:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.26.4 (2.23.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index cda4f49cb..06e6e05a6 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.26.2 - generationVersion: 2.23.2 + speakeasyVersion: 1.26.4 + generationVersion: 2.23.4 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.9.0 + version: 1.9.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f620101c6..156f6b5fe 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.9.0", + version="1.9.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py index caa76ce43..a348ab6d9 100755 --- a/workflows_definition/src/sdk/models/operations/changereasonstatus.py +++ b/workflows_definition/src/sdk/models/operations/changereasonstatus.py @@ -12,9 +12,7 @@ class ChangeReasonStatusRequest: reason_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'reasonId', 'style': 'simple', 'explode': False }}) - change_reason_status_req: Optional[shared_changereasonstatusreq.ChangeReasonStatusReq] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) - r"""change the status of a closing reason""" @@ -22,12 +20,8 @@ class ChangeReasonStatusRequest: class ChangeReasonStatusResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""bad request""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py index 6be65d44b..5d8e9c330 100755 --- a/workflows_definition/src/sdk/models/operations/createclosingreason.py +++ b/workflows_definition/src/sdk/models/operations/createclosingreason.py @@ -11,12 +11,8 @@ class CreateClosingReasonResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - closing_reason: Optional[shared_closingreason.ClosingReason] = dataclasses.field(default=None) - r"""closing reason is stored successfully in the repository""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py index c3374d28b..bb0f40beb 100755 --- a/workflows_definition/src/sdk/models/operations/createdefinition.py +++ b/workflows_definition/src/sdk/models/operations/createdefinition.py @@ -12,15 +12,10 @@ class CreateDefinitionResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Validation Errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) - r"""Success - if the definition is created successfully""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py index 826b7f682..c0e4513f7 100755 --- a/workflows_definition/src/sdk/models/operations/deletedefinition.py +++ b/workflows_definition/src/sdk/models/operations/deletedefinition.py @@ -11,7 +11,6 @@ class DeleteDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""Id of the definition to de deleted.""" @@ -19,12 +18,8 @@ class DeleteDefinitionRequest: class DeleteDefinitionResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Failed to authenticate""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py index 6e7d3bd51..f1aef84a8 100755 --- a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py @@ -11,7 +11,6 @@ class GetAllClosingReasonsRequest: include_inactive: Optional[bool] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'includeInactive', 'style': 'form', 'explode': True }}) - r"""Filter Closing Reasons by status like active inactiv""" @@ -19,12 +18,8 @@ class GetAllClosingReasonsRequest: class GetAllClosingReasonsResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - closing_reasons: Optional[shared_closingreasons.ClosingReasons] = dataclasses.field(default=None) - r"""Returns the entire catalog of closing reasons per organization""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py index d4d09d0e3..006dcd093 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinition.py +++ b/workflows_definition/src/sdk/models/operations/getdefinition.py @@ -13,7 +13,6 @@ class GetDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""Short uuid (length 8) to identify the Workflow Definition.""" @@ -21,18 +20,12 @@ class GetDefinitionRequest: class GetDefinitionResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - definition_not_found_resp: Optional[shared_definitionnotfoundresp.DefinitionNotFoundResp] = dataclasses.field(default=None) - r"""Definition Not found""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Validation Errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) - r"""Returns the Workflow definition""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py index a91d2be7a..c8e2ff92e 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinitions.py +++ b/workflows_definition/src/sdk/models/operations/getdefinitions.py @@ -12,15 +12,10 @@ class GetDefinitionsResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Other errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - workflow_definitions: Optional[list[shared_workflowdefinition.WorkflowDefinition]] = dataclasses.field(default=None) - r"""Success - definitions loaded with success. Empty array if org has no definitions.""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py index bc5d7418d..47a0dd570 100755 --- a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py +++ b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py @@ -12,15 +12,10 @@ class GetMaxAllowedLimitResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Other errors""" max_allowed_limit: Optional[shared_maxallowedlimit.MaxAllowedLimit] = dataclasses.field(default=None) - r"""A combo of current number of workflows, and the max allowed number of workflows.""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py index 169c6f030..a84825498 100755 --- a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py @@ -11,7 +11,6 @@ class GetWorkflowClosingReasonsRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""ID of a workflow definition""" @@ -19,12 +18,8 @@ class GetWorkflowClosingReasonsRequest: class GetWorkflowClosingReasonsResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - closing_reasons_ids: Optional[shared_closingreasonsids.ClosingReasonsIds] = dataclasses.field(default=None) - r"""Returns the entire catalog of closing reasons for a specific workflow""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py index c0bd85879..b5eb4d49b 100755 --- a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py @@ -11,10 +11,8 @@ class SetWorkflowClosingReasonsRequest: closing_reasons_ids: shared_closingreasonsids.ClosingReasonsIds = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) - r"""set all closing reasons for a specific definition""" definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""ID of a workflow definition""" @@ -22,9 +20,6 @@ class SetWorkflowClosingReasonsRequest: class SetWorkflowClosingReasonsResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py index 5b97148a4..a3143a7e0 100755 --- a/workflows_definition/src/sdk/models/operations/updatedefinition.py +++ b/workflows_definition/src/sdk/models/operations/updatedefinition.py @@ -12,10 +12,8 @@ class UpdateDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) - r"""Short uuid (length 8) to identify the Workflow Definition.""" workflow_definition: shared_workflowdefinition.WorkflowDefinition = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) - r"""Workflow Definition payload""" @@ -23,15 +21,10 @@ class UpdateDefinitionRequest: class UpdateDefinitionResponse: content_type: str = dataclasses.field() - status_code: int = dataclasses.field() - error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) - r"""Validation Errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) - r"""Success - if the definition is updated successfully""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py index 15525c728..8d435c158 100755 --- a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py +++ b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py @@ -13,5 +13,4 @@ class ChangeReasonStatusReq: r"""change the status of a closing reason""" status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py index 634571fc7..e3d7624dc 100755 --- a/workflows_definition/src/sdk/models/shared/closingreason.py +++ b/workflows_definition/src/sdk/models/shared/closingreason.py @@ -14,13 +14,8 @@ class ClosingReason: r"""One Closing reason for a workflow""" status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) - title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) - creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreasonid.py b/workflows_definition/src/sdk/models/shared/closingreasonid.py index 13166fd57..45ecb770d 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonid.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonid.py @@ -11,5 +11,4 @@ class ClosingReasonID: id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py index e284cd1d7..d2b79fa55 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasons.py +++ b/workflows_definition/src/sdk/models/shared/closingreasons.py @@ -13,5 +13,4 @@ class ClosingReasons: r"""Returns the entire catalog of closing reasons per organization""" reasons: list[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py index 9e1f3c907..e66ee2fed 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsids.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsids.py @@ -13,5 +13,4 @@ class ClosingReasonsIds: r"""Returns the entire catalog of closing reasons for a specific workflow""" reasons: list[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py index 82f83967e..502806a5d 100755 --- a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py +++ b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py @@ -13,5 +13,4 @@ class DefinitionNotFoundResp: r"""Definition could be not found""" message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py index aeb636ad5..38ea43d3a 100755 --- a/workflows_definition/src/sdk/models/shared/dynamicduedate.py +++ b/workflows_definition/src/sdk/models/shared/dynamicduedate.py @@ -23,11 +23,7 @@ class DynamicDueDate: r"""set a Duedate for a step then a specific""" action_type_condition: DynamicDueDateActionTypeConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('actionTypeCondition') }}) - number_of_units: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numberOfUnits') }}) - time_period: DynamicDueDateTimePeriodEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timePeriod') }}) - step_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('stepId'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/ecpdetails.py b/workflows_definition/src/sdk/models/shared/ecpdetails.py index 7500c0772..de1fc09c8 100755 --- a/workflows_definition/src/sdk/models/shared/ecpdetails.py +++ b/workflows_definition/src/sdk/models/shared/ecpdetails.py @@ -13,5 +13,4 @@ class ECPDetails: r"""Details regarding ECP for the workflow step""" label: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('label'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py index fb5cc9475..3c1ed3265 100755 --- a/workflows_definition/src/sdk/models/shared/errorresp.py +++ b/workflows_definition/src/sdk/models/shared/errorresp.py @@ -13,5 +13,4 @@ class ErrorResp: r"""bad request""" message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py index c4c387d11..5e4d864cd 100755 --- a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py +++ b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py @@ -13,7 +13,5 @@ class MaxAllowedLimit: r"""A combo of current number of workflows, and the max allowed number of workflows.""" current_no_of_workflows: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentNoOfWorkflows'), 'exclude': lambda f: f is None }}) - max_allowed: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maxAllowed'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py index d82c788b3..b36b2beb2 100755 --- a/workflows_definition/src/sdk/models/shared/section.py +++ b/workflows_definition/src/sdk/models/shared/section.py @@ -15,13 +15,8 @@ class Section: r"""A group of Steps that define the progress of the Workflow""" name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) - steps: list[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/security.py b/workflows_definition/src/sdk/models/shared/security.py index 01b35706f..cc58cbf76 100755 --- a/workflows_definition/src/sdk/models/shared/security.py +++ b/workflows_definition/src/sdk/models/shared/security.py @@ -8,5 +8,4 @@ class Security: bearer_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/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index 999694e4e..785d712bd 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -17,7 +17,6 @@ class StepAutomationConfig: flow_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flowId') }}) - r"""Id of the configured automation to run""" @@ -27,31 +26,19 @@ class Step: r"""Action that needs to be done in a Workflow""" name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) - automation_config: Optional[StepAutomationConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('automationConfig'), 'exclude': lambda f: f is None }}) - due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) - dynamic_due_date: Optional[shared_dynamicduedate.DynamicDueDate] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dynamicDueDate'), 'exclude': lambda f: f is None }}) - r"""set a Duedate for a step then a specific""" ecp: Optional[shared_ecpdetails.ECPDetails] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ecp'), 'exclude': lambda f: f is None }}) - r"""Details regarding ECP for the workflow step""" execution_type: Optional[shared_steptype_enum.StepTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('executionType'), 'exclude': lambda f: f is None }}) - id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - requirements: Optional[list[shared_steprequirement.StepRequirement]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('requirements'), 'exclude': lambda f: f is None }}) - r"""requirements that need to be fulfilled in order to enable the step execution""" user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) - r"""This field is deprecated. Please use assignedTo""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index 93666e3cd..bc946a706 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -17,9 +17,6 @@ class StepRequirement: r"""describe the requirement for step enablement""" condition: StepRequirementConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) - definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py index 574fe31dc..5b66e787c 100755 --- a/workflows_definition/src/sdk/models/shared/updateentityattributes.py +++ b/workflows_definition/src/sdk/models/shared/updateentityattributes.py @@ -17,9 +17,7 @@ class UpdateEntityAttributesSourceEnum(str, Enum): class UpdateEntityAttributesTarget: entity_attribute: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entityAttribute') }}) - entity_schema: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entitySchema') }}) - @dataclass_json(undefined=Undefined.EXCLUDE) @@ -27,7 +25,5 @@ class UpdateEntityAttributesTarget: class UpdateEntityAttributes: source: UpdateEntityAttributesSourceEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) - target: UpdateEntityAttributesTarget = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('target') }}) - \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 3d7d5da0a..87401399f 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -16,34 +16,21 @@ class WorkflowDefinition: r"""Workflow Definition payload""" flow: list[Any] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) - closing_reasons: Optional[list[shared_closingreasonid.ClosingReasonID]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closingReasons'), 'exclude': lambda f: f is None }}) - creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) - r"""ISO String Date & Time""" description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) - due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) - dynamic_due_date: Optional[shared_dynamicduedate.DynamicDueDate] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dynamicDueDate'), 'exclude': lambda f: f is None }}) - r"""set a Duedate for a step then a specific""" enable_ecp_workflow: Optional[bool] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('enableECPWorkflow'), 'exclude': lambda f: f is None }}) - r"""Indicates whether this workflow is available for End Customer Portal or not. By default it's not.""" id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) - r"""ISO String Date & Time""" update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) - user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) - r"""This field is deprecated. Please use assignedTo""" \ No newline at end of file diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index d2cc320c0..b0056dafb 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 4c2b29ade7d94f0dadb49f1c0ff7cf1196b04d2f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 2 May 2023 01:34:20 +0000 Subject: [PATCH 13/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.26.5 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 2606d822d..6aedfdb80 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -106,4 +106,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:34:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.26.5 (2.23.6) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 06e6e05a6..6cc56b817 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.26.4 - generationVersion: 2.23.4 + speakeasyVersion: 1.26.5 + generationVersion: 2.23.6 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.9.1 + version: 1.9.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 156f6b5fe..ba658e84c 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.9.1", + version="1.9.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index b0056dafb..b30efb9aa 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 858e4bf68e9d7f556af9513775ab4ef6ab03b1de Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 3 May 2023 01:34:05 +0000 Subject: [PATCH 14/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.27.0 --- workflows_definition/README.md | 4 +- workflows_definition/RELEASES.md | 8 +- workflows_definition/USAGE.md | 4 +- .../docs/closingreason/README.md | 14 +- workflows_definition/docs/workflows/README.md | 450 +++++++++--------- workflows_definition/gen.yaml | 6 +- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 +- workflows_definition/src/sdk/utils/utils.py | 2 +- 9 files changed, 250 insertions(+), 244 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 29c4b72a2..d8466f00c 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -23,9 +23,9 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status="INACTIVE", + status=shared.ClosingReasonsStatusEnum.INACTIVE, ), - reason_id="provident", + reason_id='provident', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 6aedfdb80..15efbae00 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -112,4 +112,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:33:54 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 0845926de..7a5093b4e 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -12,9 +12,9 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status="INACTIVE", + status=shared.ClosingReasonsStatusEnum.INACTIVE, ), - reason_id="provident", + reason_id='provident', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md index 6bf7917ad..eec83d954 100755 --- a/workflows_definition/docs/closingreason/README.md +++ b/workflows_definition/docs/closingreason/README.md @@ -25,9 +25,9 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status="INACTIVE", + status=shared.ClosingReasonsStatusEnum.INACTIVE, ), - reason_id="quibusdam", + reason_id='quibusdam', ) res = s.closing_reason.change_reason_status(req) @@ -54,11 +54,11 @@ s = sdk.SDK( req = shared.ClosingReason( - creation_time="unde", - id="d8d69a67-4e0f-4467-8c87-96ed151a05df", - last_update_time="quo", - status="ACTIVE", - title="Dr.", + creation_time='unde', + id='d8d69a67-4e0f-4467-8c87-96ed151a05df', + last_update_time='quo', + status=shared.ClosingReasonsStatusEnum.ACTIVE, + title='Dr.', ) res = s.closing_reason.create_closing_reason(req) diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/workflows/README.md index 7d55de81f..0e67342b5 100755 --- a/workflows_definition/docs/workflows/README.md +++ b/workflows_definition/docs/workflows/README.md @@ -30,64 +30,64 @@ s = sdk.SDK( req = shared.WorkflowDefinition( assigned_to=[ - "maiores", - "molestiae", - "quod", - "quod", + 'maiores', + 'molestiae', + 'quod', + 'quod', ], closing_reasons=[ shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), ], - creation_time="2021-04-27T12:01:13.000Z", - description="totam", - due_date="2021-04-27T12:00:00.000Z", + creation_time='2021-04-27T12:01:13.000Z', + description='totam', + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="STEP_CLOSED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, number_of_units=6788.8, - step_id="dicta", - time_period="months", + step_id='dicta', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), enable_ecp_workflow=False, flow=[ shared.Step( assigned_to=[ - "deleniti", + 'deleniti', ], automation_config=shared.StepAutomationConfig( - flow_id="hic", + flow_id='hic', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="STEP_CLOSED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, number_of_units=5218.48, - step_id="beatae", - time_period="weeks", + step_id='beatae', + time_period=shared.DynamicDueDateTimePeriodEnum.WEEKS, ), ecp=shared.ECPDetails( - label="molestiae", + label='molestiae', ), - execution_type="MANUAL", - id="2cb73920-5929-4396-bea7-596eb10faaa2", - name="Stacy Champlin", + execution_type=shared.StepTypeEnum.MANUAL, + id='2cb73920-5929-4396-bea7-596eb10faaa2', + name='Stacy Champlin', order=6078.31, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="minima", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='minima', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="accusantium", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='accusantium', + type=shared.ItemTypeEnum.STEP, ), ], - type="SECTION", + type=shared.ItemTypeEnum.SECTION, user_ids=[ 9589.5, 1020.44, @@ -97,38 +97,38 @@ req = shared.WorkflowDefinition( ), shared.Step( assigned_to=[ - "repellat", + 'repellat', ], automation_config=shared.StepAutomationConfig( - flow_id="mollitia", + flow_id='mollitia', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="STEP_CLOSED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, number_of_units=2532.91, - step_id="commodi", - time_period="weeks", + step_id='commodi', + time_period=shared.DynamicDueDateTimePeriodEnum.WEEKS, ), ecp=shared.ECPDetails( - label="molestiae", + label='molestiae', ), - execution_type="MANUAL", - id="9251aa52-c3f5-4ad0-99da-1ffe78f097b0", - name="Bessie Grady II", + execution_type=shared.StepTypeEnum.MANUAL, + id='9251aa52-c3f5-4ad0-99da-1ffe78f097b0', + name='Bessie Grady II', order=2961.4, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="dicta", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='dicta', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="enim", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='enim', + type=shared.ItemTypeEnum.SECTION, ), ], - type="STEP", + type=shared.ItemTypeEnum.STEP, user_ids=[ 641.47, 2168.22, @@ -138,51 +138,51 @@ req = shared.WorkflowDefinition( ), shared.Step( assigned_to=[ - "modi", - "praesentium", - "rem", - "voluptates", + 'modi', + 'praesentium', + 'rem', + 'voluptates', ], automation_config=shared.StepAutomationConfig( - flow_id="quasi", + flow_id='quasi', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="STEP_CLOSED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, number_of_units=5759.47, - step_id="veritatis", - time_period="months", + step_id='veritatis', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), ecp=shared.ECPDetails( - label="incidunt", + label='incidunt', ), - execution_type="MANUAL", - id="0ad2abd4-4269-4802-9502-a94bb4f63c96", - name="Terence Marquardt", + execution_type=shared.StepTypeEnum.MANUAL, + id='0ad2abd4-4269-4802-9502-a94bb4f63c96', + name='Terence Marquardt', order=8915.55, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="dolorum", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='dolorum', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="in", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='in', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="maiores", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='maiores', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="dicta", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='dicta', + type=shared.ItemTypeEnum.STEP, ), ], - type="SECTION", + type=shared.ItemTypeEnum.SECTION, user_ids=[ 4118.2, 3965.06, @@ -191,29 +191,29 @@ req = shared.WorkflowDefinition( ], ), ], - id="395efb9b-a88f-43a6-a997-074ba4469b6e", - last_update_time="2021-04-27T12:01:13.000Z", - name="Ms. Julie Gusikowski", + id='395efb9b-a88f-43a6-a997-074ba4469b6e', + last_update_time='2021-04-27T12:01:13.000Z', + name='Ms. Julie Gusikowski', update_entity_attributes=[ shared.UpdateEntityAttributes( - source="current_section", + source=shared.UpdateEntityAttributesSourceEnum.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( - entity_attribute="my_status", - entity_schema="opportunity", + entity_attribute='my_status', + entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source="current_section", + source=shared.UpdateEntityAttributesSourceEnum.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( - entity_attribute="my_status", - entity_schema="opportunity", + entity_attribute='my_status', + entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source="workflow_status", + source=shared.UpdateEntityAttributesSourceEnum.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( - entity_attribute="my_status", - entity_schema="opportunity", + entity_attribute='my_status', + entity_schema='opportunity', ), ), ], @@ -248,7 +248,7 @@ s = sdk.SDK( req = operations.DeleteDefinitionRequest( - definition_id="eum", + definition_id='eum', ) res = s.workflows.delete_definition(req) @@ -275,7 +275,7 @@ s = sdk.SDK( req = operations.GetDefinitionRequest( - definition_id="dolor", + definition_id='dolor', ) res = s.workflows.get_definition(req) @@ -348,7 +348,7 @@ s = sdk.SDK( req = operations.GetWorkflowClosingReasonsRequest( - definition_id="necessitatibus", + definition_id='necessitatibus', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -378,11 +378,11 @@ req = operations.SetWorkflowClosingReasonsRequest( closing_reasons_ids=shared.ClosingReasonsIds( reasons=[ shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), ], ), - definition_id="nemo", + definition_id='nemo', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -411,82 +411,82 @@ s = sdk.SDK( req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ - "iure", + 'iure', ], closing_reasons=[ shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), shared.ClosingReasonID( - id="x739cew", + id='x739cew', ), ], - creation_time="2021-04-27T12:01:13.000Z", - description="debitis", - due_date="2021-04-27T12:00:00.000Z", + creation_time='2021-04-27T12:01:13.000Z', + description='debitis', + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="WORKFLOW_STARTED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, number_of_units=8061.94, - step_id="deleniti", - time_period="months", + step_id='deleniti', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), enable_ecp_workflow=False, flow=[ shared.Section( - id="1e5b7fd2-ed02-4892-9cdd-c692601fb576", - name="Gary Streich", + id='1e5b7fd2-ed02-4892-9cdd-c692601fb576', + name='Gary Streich', order=166.27, steps=[ shared.Step( assigned_to=[ - "aut", + 'aut', ], automation_config=shared.StepAutomationConfig( - flow_id="cumque", + flow_id='cumque', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="WORKFLOW_STARTED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, number_of_units=9441.24, - step_id="libero", - time_period="months", + step_id='libero', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), ecp=shared.ECPDetails( - label="dolores", + label='dolores', ), - execution_type="MANUAL", - id="87053202-c73d-45fe-9b90-c28909b3fe49", - name="Casey Stracke", + execution_type=shared.StepTypeEnum.MANUAL, + id='87053202-c73d-45fe-9b90-c28909b3fe49', + name='Casey Stracke', order=7301.22, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="quaerat", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='quaerat', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="aliquid", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='aliquid', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="dolorem", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='dolorem', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="qui", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='qui', + type=shared.ItemTypeEnum.STEP, ), ], - type="SECTION", + type=shared.ItemTypeEnum.SECTION, user_ids=[ 7395.51, 4521.09, @@ -495,127 +495,127 @@ req = operations.UpdateDefinitionRequest( ), shared.Step( assigned_to=[ - "amet", - "dolorum", - "numquam", - "veritatis", + 'amet', + 'dolorum', + 'numquam', + 'veritatis', ], automation_config=shared.StepAutomationConfig( - flow_id="ipsa", + flow_id='ipsa', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="WORKFLOW_STARTED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, number_of_units=4344.17, - step_id="odio", - time_period="days", + step_id='odio', + time_period=shared.DynamicDueDateTimePeriodEnum.DAYS, ), ecp=shared.ECPDetails( - label="accusamus", + label='accusamus', ), - execution_type="AUTOMATION", - id="f69280d1-ba77-4a89-abf7-37ae4203ce5e", - name="Rosie McKenzie", + execution_type=shared.StepTypeEnum.AUTOMATION, + id='f69280d1-ba77-4a89-abf7-37ae4203ce5e', + name='Rosie McKenzie', order=5197.11, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="alias", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='alias', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="quaerat", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='quaerat', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="vel", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='vel', + type=shared.ItemTypeEnum.SECTION, ), ], - type="SECTION", + type=shared.ItemTypeEnum.SECTION, user_ids=[ 6798.8, ], ), shared.Step( assigned_to=[ - "esse", - "harum", - "iusto", - "ipsum", + 'esse', + 'harum', + 'iusto', + 'ipsum', ], automation_config=shared.StepAutomationConfig( - flow_id="quisquam", + flow_id='quisquam', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="STEP_CLOSED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, number_of_units=2294.42, - step_id="tempore", - time_period="months", + step_id='tempore', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), ecp=shared.ECPDetails( - label="numquam", + label='numquam', ), - execution_type="MANUAL", - id="3f870b32-6b5a-4734-a9cd-b1a8422bb679", - name="Shawn Doyle", + execution_type=shared.StepTypeEnum.MANUAL, + id='3f870b32-6b5a-4734-a9cd-b1a8422bb679', + name='Shawn Doyle', order=4880.56, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="ullam", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='ullam', + type=shared.ItemTypeEnum.SECTION, ), ], - type="SECTION", + type=shared.ItemTypeEnum.SECTION, user_ids=[ 7653.26, ], ), shared.Step( assigned_to=[ - "nobis", - "et", - "saepe", + 'nobis', + 'et', + 'saepe', ], automation_config=shared.StepAutomationConfig( - flow_id="ipsum", + flow_id='ipsum', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="WORKFLOW_STARTED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, number_of_units=7492.55, - step_id="quos", - time_period="months", + step_id='quos', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), ecp=shared.ECPDetails( - label="cupiditate", + label='cupiditate', ), - execution_type="MANUAL", - id="f3443a11-08e0-4adc-b4b9-21879fce953f", - name="Victoria Thiel", + execution_type=shared.StepTypeEnum.MANUAL, + id='f3443a11-08e0-4adc-b4b9-21879fce953f', + name='Victoria Thiel', order=9413.78, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="quod", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='quod', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="similique", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='similique', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="vero", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='vero', + type=shared.ItemTypeEnum.STEP, ), ], - type="STEP", + type=shared.ItemTypeEnum.STEP, user_ids=[ 8489.44, 1943.42, @@ -624,82 +624,82 @@ req = operations.UpdateDefinitionRequest( ], ), ], - type="STEP", + type=shared.ItemTypeEnum.STEP, ), shared.Step( assigned_to=[ - "nulla", - "fugit", + 'nulla', + 'fugit', ], automation_config=shared.StepAutomationConfig( - flow_id="porro", + flow_id='porro', ), - due_date="2021-04-27T12:00:00.000Z", + due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition="STEP_CLOSED", + action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, number_of_units=9850.33, - step_id="iusto", - time_period="months", + step_id='iusto', + time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, ), ecp=shared.ECPDetails( - label="ducimus", + label='ducimus', ), - execution_type="MANUAL", - id="a45626d4-3681-43f1-ad9f-5fce6c556146", - name="Glenn Walter", + execution_type=shared.StepTypeEnum.MANUAL, + id='a45626d4-3681-43f1-ad9f-5fce6c556146', + name='Glenn Walter', order=534.27, requirements=[ shared.StepRequirement( - condition="CLOSED", - definition_id="libero", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='libero', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="aut", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='aut', + type=shared.ItemTypeEnum.SECTION, ), shared.StepRequirement( - condition="CLOSED", - definition_id="impedit", - type="STEP", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='impedit', + type=shared.ItemTypeEnum.STEP, ), shared.StepRequirement( - condition="CLOSED", - definition_id="fugit", - type="SECTION", + condition=shared.StepRequirementConditionEnum.CLOSED, + definition_id='fugit', + type=shared.ItemTypeEnum.SECTION, ), ], - type="STEP", + type=shared.ItemTypeEnum.STEP, user_ids=[ 896.03, 6774.12, ], ), ], - id="ac366c8d-d6b1-4442-9074-74778a7bd466", - last_update_time="2021-04-27T12:01:13.000Z", - name="Alan Lang Jr.", + id='ac366c8d-d6b1-4442-9074-74778a7bd466', + last_update_time='2021-04-27T12:01:13.000Z', + name='Alan Lang Jr.', update_entity_attributes=[ shared.UpdateEntityAttributes( - source="current_step", + source=shared.UpdateEntityAttributesSourceEnum.CURRENT_STEP, target=shared.UpdateEntityAttributesTarget( - entity_attribute="my_status", - entity_schema="opportunity", + entity_attribute='my_status', + entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source="workflow_status", + source=shared.UpdateEntityAttributesSourceEnum.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( - entity_attribute="my_status", - entity_schema="opportunity", + entity_attribute='my_status', + entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source="current_step", + source=shared.UpdateEntityAttributesSourceEnum.CURRENT_STEP, target=shared.UpdateEntityAttributesTarget( - entity_attribute="my_status", - entity_schema="opportunity", + entity_attribute='my_status', + entity_schema='opportunity', ), ), ], @@ -710,7 +710,7 @@ req = operations.UpdateDefinitionRequest( 1783.67, ], ), - definition_id="voluptas", + definition_id='voluptas', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 6cc56b817..2a1d89690 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.26.5 - generationVersion: 2.23.6 + speakeasyVersion: 1.27.0 + generationVersion: 2.24.0 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.9.2 + version: 1.10.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index ba658e84c..dee2b69a1 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.9.2", + version="1.10.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index b30efb9aa..82ec930d1 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 986a86937..63dce946b 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 a80f25fb8505e9e01acbc382b033d9034003bdc9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 5 May 2023 01:22:53 +0000 Subject: [PATCH 15/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.0 --- workflows_definition/README.md | 1 - workflows_definition/RELEASES.md | 8 ++- workflows_definition/USAGE.md | 1 - .../docs/closingreason/README.md | 3 -- workflows_definition/docs/workflows/README.md | 6 --- workflows_definition/gen.yaml | 7 +-- workflows_definition/setup.py | 2 +- .../src/sdk/closing_reason.py | 3 ++ workflows_definition/src/sdk/sdk.py | 4 +- workflows_definition/src/sdk/utils/utils.py | 53 ++++++++++++------- workflows_definition/src/sdk/workflows.py | 8 +++ 11 files changed, 58 insertions(+), 38 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index d8466f00c..3e83a446f 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -20,7 +20,6 @@ s = sdk.SDK( ), ) - req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatusEnum.INACTIVE, diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 15efbae00..1cf2c0cac 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -118,4 +118,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.27.0 (2.24.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-05 01:22:41 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 7a5093b4e..b80538da6 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -9,7 +9,6 @@ s = sdk.SDK( ), ) - req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatusEnum.INACTIVE, diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md index eec83d954..024209937 100755 --- a/workflows_definition/docs/closingreason/README.md +++ b/workflows_definition/docs/closingreason/README.md @@ -22,7 +22,6 @@ s = sdk.SDK( ), ) - req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatusEnum.INACTIVE, @@ -52,7 +51,6 @@ s = sdk.SDK( ), ) - req = shared.ClosingReason( creation_time='unde', id='d8d69a67-4e0f-4467-8c87-96ed151a05df', @@ -83,7 +81,6 @@ s = sdk.SDK( ), ) - req = operations.GetAllClosingReasonsRequest( include_inactive=False, ) diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/workflows/README.md index 0e67342b5..7fef04ac3 100755 --- a/workflows_definition/docs/workflows/README.md +++ b/workflows_definition/docs/workflows/README.md @@ -27,7 +27,6 @@ s = sdk.SDK( ), ) - req = shared.WorkflowDefinition( assigned_to=[ 'maiores', @@ -246,7 +245,6 @@ s = sdk.SDK( ), ) - req = operations.DeleteDefinitionRequest( definition_id='eum', ) @@ -273,7 +271,6 @@ s = sdk.SDK( ), ) - req = operations.GetDefinitionRequest( definition_id='dolor', ) @@ -346,7 +343,6 @@ s = sdk.SDK( ), ) - req = operations.GetWorkflowClosingReasonsRequest( definition_id='necessitatibus', ) @@ -373,7 +369,6 @@ s = sdk.SDK( ), ) - req = operations.SetWorkflowClosingReasonsRequest( closing_reasons_ids=shared.ClosingReasonsIds( reasons=[ @@ -407,7 +402,6 @@ s = sdk.SDK( ), ) - req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2a1d89690..d95e8fa17 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,15 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.27.0 - generationVersion: 2.24.0 + speakeasyVersion: 1.29.0 + generationVersion: 2.26.0 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.10.0 + version: 1.11.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy + maxMethodParams: 0 packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index dee2b69a1..25e73d740 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.10.0", + version="1.11.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index f36c81d19..3d5549124 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -21,6 +21,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http self._sdk_version = sdk_version self._gen_version = gen_version + def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> operations.ChangeReasonStatusResponse: r"""changeReasonStatus Change the status of a Closing Reason (eg. ACTIVE to INACTIVE). @@ -50,6 +51,7 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> return res + def create_closing_reason(self, request: shared.ClosingReason) -> operations.CreateClosingReasonResponse: r"""createClosingReason A created Closing Reason is stored for the organization and will be displayed in the library of reasons. @@ -79,6 +81,7 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre return res + def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsRequest) -> operations.GetAllClosingReasonsResponse: r"""getAllClosingReasons Get all Closing Reasons defined in the organization by default all Active. diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 82ec930d1..c7b8f2f9b 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 63dce946b..a8b0d8f14 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/utils/utils.py @@ -141,7 +141,8 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): client.client.headers['Authorization'] = f'Basic {base64.b64encode(data).decode()}' -def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: +def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, + gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -233,7 +234,8 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[str, list[str]]: +def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ + str, list[str]]: params: dict[str, list[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) @@ -267,8 +269,11 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ params = params | _get_deep_object_query_params( metadata, f_name, value) elif style == 'form': - params = params | _get_form_query_params( - metadata, f_name, value) + params = params | _get_delimited_query_params( + metadata, f_name, value, ",") + elif style == 'pipeDelimited': + params = params | _get_delimited_query_params( + metadata, f_name, value, "|") else: raise Exception('not yet implemented') return params @@ -327,12 +332,15 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if val is None: continue - if params.get(f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]') is None: - params[f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ + if params.get( + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]') is None: + params[ + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ ] params[ - f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'].append(_val_to_string(val)) + f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'].append( + _val_to_string(val)) else: params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ @@ -368,25 +376,28 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_form_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name) +def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, array_delimiter: str) -> dict[ + str, list[str]]: + return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, array_delimiter) SERIALIZATION_METHOD_TO_CONTENT_TYPE = { - 'json': 'application/json', - 'form': 'application/x-www-form-urlencoded', + 'json': 'application/json', + 'form': 'application/x-www-form-urlencoded', 'multipart': 'multipart/form-data', - 'raw': 'application/octet-stream', - 'string': 'text/plain', + 'raw': 'application/octet-stream', + 'string': 'text/plain', } -def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[str, any, any]: +def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[ + str, any, any]: if request is None: return None, None, None, None if not is_dataclass(request) or not hasattr(request, request_field_name): - return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], request) + return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], + request) request_val = getattr(request, request_field_name) @@ -401,7 +412,8 @@ def serialize_request_body(request: dataclass, request_field_name: str, serializ if request_metadata is None: raise Exception('invalid request type') - return serialize_content_type(request_field_name, request_metadata.get('media_type', 'application/octet-stream'), request_val) + return serialize_content_type(request_field_name, request_metadata.get('media_type', 'application/octet-stream'), + request_val) def serialize_content_type(field_name: str, media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: @@ -474,7 +486,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[ - str, list[str]]: + str, list[str]]: if existing is None: existing = [] @@ -514,7 +526,7 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: else: if metadata.get('style', 'form') == 'form': form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name) + field_name, metadata.get('explode', True), val, _get_form_field_name, ",") else: raise Exception( f'Invalid form style for field {field.name}') @@ -536,7 +548,8 @@ def _get_form_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable) -> dict[str, list[str]]: +def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, array_delimiter: str) -> \ + dict[str, list[str]]: params: dict[str, list[str]] = {} if obj is None: @@ -591,7 +604,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f items.append(_val_to_string(value)) if len(items) > 0: - params[field_name] = [','.join([str(item) for item in items])] + params[field_name] = [array_delimiter.join([str(item) for item in items])] else: params[field_name] = [_val_to_string(obj)] diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index c0076c68e..81fe5354a 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -21,6 +21,7 @@ def __init__(self, client: requests_http.Session, security_client: requests_http self._sdk_version = sdk_version self._gen_version = gen_version + def create_definition(self, request: shared.WorkflowDefinition) -> operations.CreateDefinitionResponse: r"""createDefinition Create a Workflow Definition. @@ -54,6 +55,7 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr return res + def delete_definition(self, request: operations.DeleteDefinitionRequest) -> operations.DeleteDefinitionResponse: r"""deleteDefinition Delete Workflow Definition. @@ -79,6 +81,7 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper return res + def get_definition(self, request: operations.GetDefinitionRequest) -> operations.GetDefinitionResponse: r"""getDefinition Get specific Definition by id from the Organization. @@ -110,6 +113,7 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations return res + def get_definitions(self) -> operations.GetDefinitionsResponse: r"""getDefinitions Retrieve all Workflow Definitions from an Organization @@ -137,6 +141,7 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: return res + def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: r"""getMaxAllowedLimit Get limits and number of created executions for an Organization. @@ -164,6 +169,7 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: return res + def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingReasonsRequest) -> operations.GetWorkflowClosingReasonsResponse: r"""getWorkflowClosingReasons Returns all closing reasons defined for the workflow. @@ -187,6 +193,7 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea return res + def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingReasonsRequest) -> operations.SetWorkflowClosingReasonsResponse: r"""setWorkflowClosingReasons Sets which closing reasons are defined for this workflow, based on the entire closing reasons catalog. @@ -212,6 +219,7 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea return res + def update_definition(self, request: operations.UpdateDefinitionRequest) -> operations.UpdateDefinitionResponse: r"""updateDefinition Update Workflow Definition. From 2deca8b0449a5dc7d023efb73e0f4aa77c4e7fb6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 6 May 2023 01:23:05 +0000 Subject: [PATCH 16/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 1cf2c0cac..5749aa968 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -124,4 +124,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy + +## 2023-05-06 01:22:51 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d95e8fa17..9f0fc4a13 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.29.0 - generationVersion: 2.26.0 + speakeasyVersion: 1.29.1 + generationVersion: 2.26.1 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.11.0 + version: 1.11.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 25e73d740..17b561230 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.11.0", + version="1.11.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index c7b8f2f9b..889d03c96 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 30408567e95ea456f1381481e7bf3988e5c1eee6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 10 May 2023 01:25:29 +0000 Subject: [PATCH 17/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.29.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 5749aa968..ffd2970d2 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -130,4 +130,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.29.1 (2.26.1) https://github.com/speakeasy-api/speakeasy + +## 2023-05-10 01:25:17 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 9f0fc4a13..c7ca82257 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.29.1 - generationVersion: 2.26.1 + speakeasyVersion: 1.29.2 + generationVersion: 2.26.2 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.11.1 + version: 1.11.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 17b561230..0532167f5 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.11.1", + version="1.11.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 889d03c96..bc1ca8d17 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 4d35933e8a38b1fcab8bd04d39824de888cf0bda Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 11 May 2023 01:34:01 +0000 Subject: [PATCH 18/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index ffd2970d2..eb7dbcd01 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -136,4 +136,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:33:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.30.0 (2.26.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index c7ca82257..90203cfc9 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.29.2 - generationVersion: 2.26.2 + speakeasyVersion: 1.30.0 + generationVersion: 2.26.3 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.11.2 + version: 1.11.3 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 0532167f5..f706c71c6 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.11.2", + version="1.11.3", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index bc1ca8d17..f9c3dfbad 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 28e6872d9d745cc02f7c99396a003862c258b575 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 12 May 2023 01:26:35 +0000 Subject: [PATCH 19/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.30.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- workflows_definition/src/sdk/utils/utils.py | 16 ++++++++-------- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index eb7dbcd01..07c78d64b 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -142,4 +142,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:26:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 90203cfc9..755784b5c 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.30.0 - generationVersion: 2.26.3 + speakeasyVersion: 1.30.1 + generationVersion: 2.26.4 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.11.3 + version: 1.11.4 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f706c71c6..d77e9b667 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.11.3", + version="1.11.4", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index f9c3dfbad..0961dd794 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index a8b0d8f14..98719fbf7 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 4a6363165d826e7f23d3aaa7978c35241d2a33d4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 13 May 2023 01:25:48 +0000 Subject: [PATCH 20/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.31.1 --- workflows_definition/README.md | 2 +- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/USAGE.md | 2 +- .../docs/closingreason/README.md | 6 +++--- workflows_definition/docs/workflows/README.md | 16 ++++++++-------- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- workflows_definition/src/sdk/utils/utils.py | 2 +- 9 files changed, 27 insertions(+), 21 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 3e83a446f..59b7be156 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -16,7 +16,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 07c78d64b..20829b170 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -148,4 +148,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy + +## 2023-05-13 01:25:35 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index b80538da6..ec8242e7e 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -5,7 +5,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md index 024209937..136b42b44 100755 --- a/workflows_definition/docs/closingreason/README.md +++ b/workflows_definition/docs/closingreason/README.md @@ -18,7 +18,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -47,7 +47,7 @@ from sdk.models import shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -77,7 +77,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/workflows/README.md index 7fef04ac3..0d6d0648e 100755 --- a/workflows_definition/docs/workflows/README.md +++ b/workflows_definition/docs/workflows/README.md @@ -23,7 +23,7 @@ from sdk.models import shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -241,7 +241,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -267,7 +267,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -293,7 +293,7 @@ import sdk s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -316,7 +316,7 @@ import sdk s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -339,7 +339,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -365,7 +365,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) @@ -398,7 +398,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE", + bearer_auth="YOUR_BEARER_TOKEN_HERE", ), ) diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 755784b5c..61ea96209 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.30.1 - generationVersion: 2.26.4 + speakeasyVersion: 1.31.1 + generationVersion: 2.27.0 generation: telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false python: - version: 1.11.4 + version: 1.12.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index d77e9b667..badb3121a 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.11.4", + version="1.12.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 0961dd794..42bc65684 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 98719fbf7..6b39ecf74 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 3b280902b789c24dba952d93bb5f800eeac56afb Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 16 May 2023 01:37:03 +0000 Subject: [PATCH 21/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.32.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 20829b170..5b816a5d7 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -154,4 +154,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:36:51 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.32.0 (2.28.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 61ea96209..d1cf698d4 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.31.1 - generationVersion: 2.27.0 + speakeasyVersion: 1.32.0 + generationVersion: 2.28.0 generation: - telemetryEnabled: false sdkClassName: SDK singleTagPerOp: false + telemetryEnabled: false python: - version: 1.12.0 + version: 1.13.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index badb3121a..4d19f5002 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.12.0", + version="1.13.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 42bc65684..f1010071c 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 5cab9332d3b21ade73faab668a83e2b688139e96 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 May 2023 01:37:22 +0000 Subject: [PATCH 22/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.33.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 5b816a5d7..76083bcbd 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -160,4 +160,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:37:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d1cf698d4..70a2d27ac 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.32.0 - generationVersion: 2.28.0 + speakeasyVersion: 1.33.2 + generationVersion: 2.29.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.13.0 + version: 1.14.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4d19f5002..a0ea97546 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.13.0", + version="1.14.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index f1010071c..1864388ec 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 b26db0297378486cf5433cc18e3b8179f07f9097 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 18 May 2023 01:34:42 +0000 Subject: [PATCH 23/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.34.0 --- workflows_definition/RELEASES.md | 8 ++++- workflows_definition/gen.yaml | 6 ++-- workflows_definition/setup.py | 2 +- .../src/sdk/closing_reason.py | 9 +++--- workflows_definition/src/sdk/sdk.py | 4 +-- workflows_definition/src/sdk/workflows.py | 31 +++++++++++-------- 6 files changed, 36 insertions(+), 24 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 76083bcbd..f7124f962 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -166,4 +166,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:34:30 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 70a2d27ac..7bf3a18fb 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.33.2 - generationVersion: 2.29.0 + speakeasyVersion: 1.34.0 + generationVersion: 2.30.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.14.0 + version: 1.15.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index a0ea97546..f1aed6e5c 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.14.0", + version="1.15.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index 3d5549124..40b53bbda 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -29,11 +29,11 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> base_url = self._server_url url = utils.generate_url(operations.ChangeReasonStatusRequest, base_url, '/v1/workflows/closing-reasons/{reasonId}', request) - headers = {} req_content_type, data, form = utils.serialize_request_body(request, "change_reason_status_req", '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 @@ -59,13 +59,13 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre base_url = self._server_url url = base_url.removesuffix('/') + '/v1/workflows/closing-reasons' - 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 if data is None and form is None: raise Exception('request body is required') + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -89,12 +89,13 @@ def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsReques base_url = self._server_url url = base_url.removesuffix('/') + '/v1/workflows/closing-reasons' - + headers = {} query_params = utils.get_query_params(operations.GetAllClosingReasonsRequest, request) + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('GET', url, params=query_params) + http_res = client.request('GET', url, params=query_params, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetAllClosingReasonsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 1864388ec..383e14ab8 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.14.0" - _gen_version: str = "2.29.0" + _sdk_version: str = "1.15.0" + _gen_version: str = "2.30.0" def __init__(self, security: shared.Security = None, diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index 81fe5354a..b4625132a 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -29,13 +29,13 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr base_url = self._server_url url = base_url.removesuffix('/') + '/v1/workflows/definitions' - 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 if data is None and form is None: raise Exception('request body is required') + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -63,11 +63,12 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper base_url = self._server_url url = utils.generate_url(operations.DeleteDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('DELETE', url) + http_res = client.request('DELETE', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.DeleteDefinitionResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -89,11 +90,12 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations base_url = self._server_url url = utils.generate_url(operations.GetDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetDefinitionResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -121,11 +123,12 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: base_url = self._server_url url = base_url.removesuffix('/') + '/v1/workflows/definitions' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetDefinitionsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -149,11 +152,12 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: base_url = self._server_url url = base_url.removesuffix('/') + '/v1/workflows/limits/max-allowed' - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetMaxAllowedLimitResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -177,11 +181,12 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea base_url = self._server_url url = utils.generate_url(operations.GetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) - + headers = {} + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client - http_res = client.request('GET', url) + http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') res = operations.GetWorkflowClosingReasonsResponse(status_code=http_res.status_code, content_type=content_type, raw_response=http_res) @@ -201,13 +206,13 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea base_url = self._server_url url = utils.generate_url(operations.SetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) - headers = {} req_content_type, data, form = utils.serialize_request_body(request, "closing_reasons_ids", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -227,13 +232,13 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper base_url = self._server_url url = utils.generate_url(operations.UpdateDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) - headers = {} req_content_type, data, form = utils.serialize_request_body(request, "workflow_definition", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') + headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client From f618c32762f02896b7a3759d712644a444a4bf45 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 19 May 2023 01:35:25 +0000 Subject: [PATCH 24/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.35.0 --- workflows_definition/README.md | 2 +- workflows_definition/RELEASES.md | 8 +- workflows_definition/USAGE.md | 2 +- .../docs/closingreason/README.md | 4 +- workflows_definition/docs/workflows/README.md | 178 +++++++++--------- workflows_definition/files.gen | 6 +- workflows_definition/gen.yaml | 6 +- workflows_definition/setup.py | 2 +- .../src/sdk/closing_reason.py | 3 + .../src/sdk/models/shared/__init__.py | 8 +- .../models/shared/changereasonstatusreq.py | 4 +- .../src/sdk/models/shared/closingreason.py | 4 +- ...status_enum.py => closingreasonsstatus.py} | 2 +- .../src/sdk/models/shared/dynamicduedate.py | 8 +- .../shared/{itemtype_enum.py => itemtype.py} | 2 +- .../src/sdk/models/shared/section.py | 4 +- .../src/sdk/models/shared/step.py | 8 +- .../src/sdk/models/shared/steprequirement.py | 8 +- .../shared/{steptype_enum.py => steptype.py} | 2 +- .../models/shared/updateentityattributes.py | 4 +- workflows_definition/src/sdk/sdk.py | 4 +- workflows_definition/src/sdk/workflows.py | 8 + 22 files changed, 147 insertions(+), 130 deletions(-) rename workflows_definition/src/sdk/models/shared/{closingreasonsstatus_enum.py => closingreasonsstatus.py} (80%) rename workflows_definition/src/sdk/models/shared/{itemtype_enum.py => itemtype.py} (85%) rename workflows_definition/src/sdk/models/shared/{steptype_enum.py => steptype.py} (85%) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 59b7be156..068fca692 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -22,7 +22,7 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatusEnum.INACTIVE, + status=shared.ClosingReasonsStatus.INACTIVE, ), reason_id='provident', ) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index f7124f962..319dbcb59 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -172,4 +172,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:35:13 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index ec8242e7e..9ed1f5542 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -11,7 +11,7 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatusEnum.INACTIVE, + status=shared.ClosingReasonsStatus.INACTIVE, ), reason_id='provident', ) diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md index 136b42b44..436ac5e83 100755 --- a/workflows_definition/docs/closingreason/README.md +++ b/workflows_definition/docs/closingreason/README.md @@ -24,7 +24,7 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatusEnum.INACTIVE, + status=shared.ClosingReasonsStatus.INACTIVE, ), reason_id='quibusdam', ) @@ -55,7 +55,7 @@ req = shared.ClosingReason( creation_time='unde', id='d8d69a67-4e0f-4467-8c87-96ed151a05df', last_update_time='quo', - status=shared.ClosingReasonsStatusEnum.ACTIVE, + status=shared.ClosingReasonsStatus.ACTIVE, title='Dr.', ) diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/workflows/README.md index 0d6d0648e..104bff0c0 100755 --- a/workflows_definition/docs/workflows/README.md +++ b/workflows_definition/docs/workflows/README.md @@ -46,10 +46,10 @@ req = shared.WorkflowDefinition( description='totam', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, number_of_units=6788.8, step_id='dicta', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), enable_ecp_workflow=False, flow=[ @@ -62,31 +62,31 @@ req = shared.WorkflowDefinition( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, number_of_units=5218.48, step_id='beatae', - time_period=shared.DynamicDueDateTimePeriodEnum.WEEKS, + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), ecp=shared.ECPDetails( label='molestiae', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='2cb73920-5929-4396-bea7-596eb10faaa2', name='Stacy Champlin', order=6078.31, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='minima', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='accusantium', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), ], - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, user_ids=[ 9589.5, 1020.44, @@ -103,31 +103,31 @@ req = shared.WorkflowDefinition( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, number_of_units=2532.91, step_id='commodi', - time_period=shared.DynamicDueDateTimePeriodEnum.WEEKS, + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), ecp=shared.ECPDetails( label='molestiae', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='9251aa52-c3f5-4ad0-99da-1ffe78f097b0', name='Bessie Grady II', order=2961.4, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='dicta', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='enim', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), ], - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, user_ids=[ 641.47, 2168.22, @@ -147,41 +147,41 @@ req = shared.WorkflowDefinition( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, number_of_units=5759.47, step_id='veritatis', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), ecp=shared.ECPDetails( label='incidunt', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='0ad2abd4-4269-4802-9502-a94bb4f63c96', name='Terence Marquardt', order=8915.55, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='dolorum', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='in', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='maiores', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='dicta', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), ], - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, user_ids=[ 4118.2, 3965.06, @@ -195,21 +195,21 @@ req = shared.WorkflowDefinition( name='Ms. Julie Gusikowski', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSourceEnum.CURRENT_SECTION, + source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSourceEnum.CURRENT_SECTION, + source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSourceEnum.WORKFLOW_STATUS, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -425,10 +425,10 @@ req = operations.UpdateDefinitionRequest( description='debitis', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, number_of_units=8061.94, step_id='deleniti', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), enable_ecp_workflow=False, flow=[ @@ -446,41 +446,41 @@ req = operations.UpdateDefinitionRequest( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, number_of_units=9441.24, step_id='libero', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), ecp=shared.ECPDetails( label='dolores', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='87053202-c73d-45fe-9b90-c28909b3fe49', name='Casey Stracke', order=7301.22, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='quaerat', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='aliquid', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='dolorem', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='qui', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), ], - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, user_ids=[ 7395.51, 4521.09, @@ -499,36 +499,36 @@ req = operations.UpdateDefinitionRequest( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, number_of_units=4344.17, step_id='odio', - time_period=shared.DynamicDueDateTimePeriodEnum.DAYS, + time_period=shared.DynamicDueDateTimePeriod.DAYS, ), ecp=shared.ECPDetails( label='accusamus', ), - execution_type=shared.StepTypeEnum.AUTOMATION, + execution_type=shared.StepType.AUTOMATION, id='f69280d1-ba77-4a89-abf7-37ae4203ce5e', name='Rosie McKenzie', order=5197.11, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='alias', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='quaerat', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='vel', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), ], - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, user_ids=[ 6798.8, ], @@ -545,26 +545,26 @@ req = operations.UpdateDefinitionRequest( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, number_of_units=2294.42, step_id='tempore', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), ecp=shared.ECPDetails( label='numquam', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='3f870b32-6b5a-4734-a9cd-b1a8422bb679', name='Shawn Doyle', order=4880.56, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='ullam', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), ], - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, user_ids=[ 7653.26, ], @@ -580,36 +580,36 @@ req = operations.UpdateDefinitionRequest( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.WORKFLOW_STARTED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, number_of_units=7492.55, step_id='quos', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), ecp=shared.ECPDetails( label='cupiditate', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='f3443a11-08e0-4adc-b4b9-21879fce953f', name='Victoria Thiel', order=9413.78, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='quod', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='similique', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='vero', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), ], - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, user_ids=[ 8489.44, 1943.42, @@ -618,7 +618,7 @@ req = operations.UpdateDefinitionRequest( ], ), ], - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.Step( assigned_to=[ @@ -630,41 +630,41 @@ req = operations.UpdateDefinitionRequest( ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeConditionEnum.STEP_CLOSED, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, number_of_units=9850.33, step_id='iusto', - time_period=shared.DynamicDueDateTimePeriodEnum.MONTHS, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), ecp=shared.ECPDetails( label='ducimus', ), - execution_type=shared.StepTypeEnum.MANUAL, + execution_type=shared.StepType.MANUAL, id='a45626d4-3681-43f1-ad9f-5fce6c556146', name='Glenn Walter', order=534.27, requirements=[ shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='libero', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='aut', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='impedit', - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, ), shared.StepRequirement( - condition=shared.StepRequirementConditionEnum.CLOSED, + condition=shared.StepRequirementCondition.CLOSED, definition_id='fugit', - type=shared.ItemTypeEnum.SECTION, + type=shared.ItemType.SECTION, ), ], - type=shared.ItemTypeEnum.STEP, + type=shared.ItemType.STEP, user_ids=[ 896.03, 6774.12, @@ -676,21 +676,21 @@ req = operations.UpdateDefinitionRequest( name='Alan Lang Jr.', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSourceEnum.CURRENT_STEP, + source=shared.UpdateEntityAttributesSource.CURRENT_STEP, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSourceEnum.WORKFLOW_STATUS, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', ), ), shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSourceEnum.CURRENT_STEP, + source=shared.UpdateEntityAttributesSource.CURRENT_STEP, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index fc8878fb1..08b3a9f4f 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -22,16 +22,16 @@ src/sdk/models/operations/updatedefinition.py src/sdk/models/operations/__init__.py src/sdk/models/shared/errorresp.py src/sdk/models/shared/changereasonstatusreq.py -src/sdk/models/shared/closingreasonsstatus_enum.py +src/sdk/models/shared/closingreasonsstatus.py src/sdk/models/shared/closingreason.py src/sdk/models/shared/closingreasons.py src/sdk/models/shared/workflowdefinition.py src/sdk/models/shared/updateentityattributes.py src/sdk/models/shared/section.py -src/sdk/models/shared/itemtype_enum.py +src/sdk/models/shared/itemtype.py src/sdk/models/shared/step.py src/sdk/models/shared/steprequirement.py -src/sdk/models/shared/steptype_enum.py +src/sdk/models/shared/steptype.py src/sdk/models/shared/ecpdetails.py src/sdk/models/shared/dynamicduedate.py src/sdk/models/shared/closingreasonid.py diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 7bf3a18fb..c13eb364b 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.34.0 - generationVersion: 2.30.0 + speakeasyVersion: 1.35.0 + generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.15.0 + version: 1.16.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f1aed6e5c..4f265ffa5 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.15.0", + version="1.16.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index 40b53bbda..181a3f0b2 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -33,6 +33,7 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> req_content_type, data, form = utils.serialize_request_body(request, "change_reason_status_req", '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 @@ -65,6 +66,7 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -91,6 +93,7 @@ def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsReques url = base_url.removesuffix('/') + '/v1/workflows/closing-reasons' headers = {} query_params = utils.get_query_params(operations.GetAllClosingReasonsRequest, 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/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py index 6c79e53c0..fc2f40e15 100755 --- a/workflows_definition/src/sdk/models/shared/__init__.py +++ b/workflows_definition/src/sdk/models/shared/__init__.py @@ -5,19 +5,19 @@ from .closingreasonid import * from .closingreasons import * from .closingreasonsids import * -from .closingreasonsstatus_enum import * +from .closingreasonsstatus import * from .definitionnotfoundresp import * from .dynamicduedate import * from .ecpdetails import * from .errorresp import * -from .itemtype_enum import * +from .itemtype import * from .maxallowedlimit import * from .section import * from .security import * from .step import * from .steprequirement import * -from .steptype_enum import * +from .steptype import * from .updateentityattributes import * from .workflowdefinition import * -__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatusEnum","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeConditionEnum","DynamicDueDateTimePeriodEnum","ECPDetails","ErrorResp","ItemTypeEnum","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementConditionEnum","StepTypeEnum","UpdateEntityAttributes","UpdateEntityAttributesSourceEnum","UpdateEntityAttributesTarget","WorkflowDefinition"] +__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition"] diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py index 8d435c158..faaf340bd 100755 --- a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py +++ b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import closingreasonsstatus_enum as shared_closingreasonsstatus_enum +from ..shared import closingreasonsstatus as shared_closingreasonsstatus from dataclasses_json import Undefined, dataclass_json from sdk import utils @@ -12,5 +12,5 @@ class ChangeReasonStatusReq: r"""change the status of a closing reason""" - status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) + status: shared_closingreasonsstatus.ClosingReasonsStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py index e3d7624dc..02e3e99fe 100755 --- a/workflows_definition/src/sdk/models/shared/closingreason.py +++ b/workflows_definition/src/sdk/models/shared/closingreason.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import closingreasonsstatus_enum as shared_closingreasonsstatus_enum +from ..shared import closingreasonsstatus as shared_closingreasonsstatus from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @@ -13,7 +13,7 @@ class ClosingReason: r"""One Closing reason for a workflow""" - status: shared_closingreasonsstatus_enum.ClosingReasonsStatusEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) + status: shared_closingreasonsstatus.ClosingReasonsStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py b/workflows_definition/src/sdk/models/shared/closingreasonsstatus.py similarity index 80% rename from workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py rename to workflows_definition/src/sdk/models/shared/closingreasonsstatus.py index 8e09a5124..78cb07893 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsstatus_enum.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsstatus.py @@ -3,6 +3,6 @@ from __future__ import annotations from enum import Enum -class ClosingReasonsStatusEnum(str, Enum): +class ClosingReasonsStatus(str, Enum): ACTIVE = 'ACTIVE' INACTIVE = 'INACTIVE' diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py index 38ea43d3a..be7f3c50b 100755 --- a/workflows_definition/src/sdk/models/shared/dynamicduedate.py +++ b/workflows_definition/src/sdk/models/shared/dynamicduedate.py @@ -7,11 +7,11 @@ from sdk import utils from typing import Optional -class DynamicDueDateActionTypeConditionEnum(str, Enum): +class DynamicDueDateActionTypeCondition(str, Enum): WORKFLOW_STARTED = 'WORKFLOW_STARTED' STEP_CLOSED = 'STEP_CLOSED' -class DynamicDueDateTimePeriodEnum(str, Enum): +class DynamicDueDateTimePeriod(str, Enum): DAYS = 'days' WEEKS = 'weeks' MONTHS = 'months' @@ -22,8 +22,8 @@ class DynamicDueDateTimePeriodEnum(str, Enum): class DynamicDueDate: r"""set a Duedate for a step then a specific""" - action_type_condition: DynamicDueDateActionTypeConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('actionTypeCondition') }}) + action_type_condition: DynamicDueDateActionTypeCondition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('actionTypeCondition') }}) number_of_units: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numberOfUnits') }}) - time_period: DynamicDueDateTimePeriodEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timePeriod') }}) + time_period: DynamicDueDateTimePeriod = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timePeriod') }}) step_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('stepId'), 'exclude': lambda f: f is None }}) \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/itemtype_enum.py b/workflows_definition/src/sdk/models/shared/itemtype.py similarity index 85% rename from workflows_definition/src/sdk/models/shared/itemtype_enum.py rename to workflows_definition/src/sdk/models/shared/itemtype.py index e4f4e9f4b..9c9bb00b2 100755 --- a/workflows_definition/src/sdk/models/shared/itemtype_enum.py +++ b/workflows_definition/src/sdk/models/shared/itemtype.py @@ -3,6 +3,6 @@ from __future__ import annotations from enum import Enum -class ItemTypeEnum(str, Enum): +class ItemType(str, Enum): STEP = 'STEP' SECTION = 'SECTION' diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py index b36b2beb2..a8a709864 100755 --- a/workflows_definition/src/sdk/models/shared/section.py +++ b/workflows_definition/src/sdk/models/shared/section.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import itemtype_enum as shared_itemtype_enum +from ..shared import itemtype as shared_itemtype from ..shared import step as shared_step from dataclasses_json import Undefined, dataclass_json from sdk import utils @@ -17,6 +17,6 @@ class Section: name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) steps: list[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index 785d712bd..ded8e4946 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -4,9 +4,9 @@ import dataclasses from ..shared import dynamicduedate as shared_dynamicduedate from ..shared import ecpdetails as shared_ecpdetails -from ..shared import itemtype_enum as shared_itemtype_enum +from ..shared import itemtype as shared_itemtype from ..shared import steprequirement as shared_steprequirement -from ..shared import steptype_enum as shared_steptype_enum +from ..shared import steptype as shared_steptype from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @@ -27,7 +27,7 @@ class Step: name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) automation_config: Optional[StepAutomationConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('automationConfig'), 'exclude': lambda f: f is None }}) due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) @@ -35,7 +35,7 @@ class Step: r"""set a Duedate for a step then a specific""" ecp: Optional[shared_ecpdetails.ECPDetails] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ecp'), 'exclude': lambda f: f is None }}) r"""Details regarding ECP for the workflow step""" - execution_type: Optional[shared_steptype_enum.StepTypeEnum] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('executionType'), 'exclude': lambda f: f is None }}) + execution_type: Optional[shared_steptype.StepType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('executionType'), 'exclude': lambda f: f is None }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) requirements: Optional[list[shared_steprequirement.StepRequirement]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('requirements'), 'exclude': lambda f: f is None }}) r"""requirements that need to be fulfilled in order to enable the step execution""" diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index bc946a706..9d455e1e9 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -2,12 +2,12 @@ from __future__ import annotations import dataclasses -from ..shared import itemtype_enum as shared_itemtype_enum +from ..shared import itemtype as shared_itemtype from dataclasses_json import Undefined, dataclass_json from enum import Enum from sdk import utils -class StepRequirementConditionEnum(str, Enum): +class StepRequirementCondition(str, Enum): CLOSED = 'CLOSED' @@ -16,7 +16,7 @@ class StepRequirementConditionEnum(str, Enum): class StepRequirement: r"""describe the requirement for step enablement""" - condition: StepRequirementConditionEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) + condition: StepRequirementCondition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) - type: shared_itemtype_enum.ItemTypeEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) \ No newline at end of file diff --git a/workflows_definition/src/sdk/models/shared/steptype_enum.py b/workflows_definition/src/sdk/models/shared/steptype.py similarity index 85% rename from workflows_definition/src/sdk/models/shared/steptype_enum.py rename to workflows_definition/src/sdk/models/shared/steptype.py index 79c54fe8e..178c7ab17 100755 --- a/workflows_definition/src/sdk/models/shared/steptype_enum.py +++ b/workflows_definition/src/sdk/models/shared/steptype.py @@ -3,6 +3,6 @@ from __future__ import annotations from enum import Enum -class StepTypeEnum(str, Enum): +class StepType(str, Enum): MANUAL = 'MANUAL' AUTOMATION = 'AUTOMATION' diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py index 5b66e787c..de4e33b2a 100755 --- a/workflows_definition/src/sdk/models/shared/updateentityattributes.py +++ b/workflows_definition/src/sdk/models/shared/updateentityattributes.py @@ -6,7 +6,7 @@ from enum import Enum from sdk import utils -class UpdateEntityAttributesSourceEnum(str, Enum): +class UpdateEntityAttributesSource(str, Enum): WORKFLOW_STATUS = 'workflow_status' CURRENT_SECTION = 'current_section' CURRENT_STEP = 'current_step' @@ -24,6 +24,6 @@ class UpdateEntityAttributesTarget: @dataclasses.dataclass class UpdateEntityAttributes: - source: UpdateEntityAttributesSourceEnum = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) + source: UpdateEntityAttributesSource = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) target: UpdateEntityAttributesTarget = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('target') }}) \ No newline at end of file diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 383e14ab8..9648a0f58 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.15.0" - _gen_version: str = "2.30.0" + _sdk_version: str = "1.16.0" + _gen_version: str = "2.31.0" def __init__(self, security: shared.Security = None, diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index b4625132a..f6fd99051 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -35,6 +35,7 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') + headers['Accept'] = 'application/json;q=1, application/json;q=0' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -64,6 +65,7 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper url = utils.generate_url(operations.DeleteDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -91,6 +93,7 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations url = utils.generate_url(operations.GetDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} + headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -124,6 +127,7 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: url = base_url.removesuffix('/') + '/v1/workflows/definitions' headers = {} + headers['Accept'] = 'application/json;q=1, application/json;q=0' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -153,6 +157,7 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: url = base_url.removesuffix('/') + '/v1/workflows/limits/max-allowed' headers = {} + headers['Accept'] = 'application/json;q=1, application/json;q=0' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -182,6 +187,7 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea url = utils.generate_url(operations.GetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) headers = {} + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -212,6 +218,7 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') + headers['Accept'] = '*/*' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client @@ -238,6 +245,7 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') + headers['Accept'] = 'application/json;q=1, application/json;q=0' headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' client = self._security_client From 4ecd2b9ecbc5dbbaae9a6ca08655269461664b3b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 23 May 2023 01:36:19 +0000 Subject: [PATCH 25/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.37.5 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 319dbcb59..973d09ced 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -178,4 +178,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:36:05 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.37.5 (2.32.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index c13eb364b..d172c35be 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.35.0 - generationVersion: 2.31.0 + speakeasyVersion: 1.37.5 + generationVersion: 2.32.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.16.0 + version: 1.17.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4f265ffa5..d10e0b6bd 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.16.0", + version="1.17.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 9648a0f58..dc1916298 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 dc35f6709201a8237cbede9d8ede7d7a2acdd158 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 27 May 2023 01:35:27 +0000 Subject: [PATCH 26/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.39.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 973d09ced..707a6f63d 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -184,4 +184,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:35:11 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d172c35be..ee3d363cf 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.37.5 - generationVersion: 2.32.2 + speakeasyVersion: 1.39.0 + generationVersion: 2.32.7 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.17.0 + version: 1.17.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index d10e0b6bd..d0886f1d8 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.17.0", + version="1.17.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index dc1916298..6538cdbe3 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 23299a7ebea9a4a88c792ee131b3e170159354f4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Jun 2023 02:10:40 +0000 Subject: [PATCH 27/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.40.2 --- workflows_definition/.gitignore | 5 +++++ workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 7 +++++-- workflows_definition/src/sdk/sdk.py | 4 ++-- 6 files changed, 23 insertions(+), 8 deletions(-) create mode 100755 workflows_definition/.gitignore diff --git a/workflows_definition/.gitignore b/workflows_definition/.gitignore new file mode 100755 index 000000000..9072ad43b --- /dev/null +++ b/workflows_definition/.gitignore @@ -0,0 +1,5 @@ +venv/ +src/*.egg-info/ +__pycache__/ +.pytest_cache/ +.python-version` \ No newline at end of file diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 707a6f63d..5c53a16c8 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -190,4 +190,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy + +## 2023-06-01 02:10:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.40.2 (2.34.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 08b3a9f4f..bd768b27a 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -1,6 +1,7 @@ src/sdk/closing_reason.py src/sdk/workflows.py src/sdk/sdk.py +.gitignore pylintrc setup.py src/sdk/__init__.py diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index ee3d363cf..0db3e86d6 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.39.0 - generationVersion: 2.32.7 + speakeasyVersion: 1.40.2 + generationVersion: 2.34.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.17.1 + version: 1.18.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index d0886f1d8..d959cb91f 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.17.1", + version="1.18.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", 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/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 6538cdbe3..9e0f6d1e7 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 3b2058c82d8e8a9d73b139f30df9b38183666c71 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 2 Jun 2023 01:52:56 +0000 Subject: [PATCH 28/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.41.0 --- workflows_definition/RELEASES.md | 8 ++++++- workflows_definition/gen.yaml | 6 ++--- workflows_definition/setup.py | 34 ++++++++++++++--------------- workflows_definition/src/sdk/sdk.py | 4 ++-- 4 files changed, 29 insertions(+), 23 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 5c53a16c8..0b3e363c3 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -196,4 +196,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:52:42 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.41.0 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 0db3e86d6..4f91a72c5 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.40.2 - generationVersion: 2.34.2 + speakeasyVersion: 1.41.0 + generationVersion: 2.34.7 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.18.0 + version: 1.18.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index d959cb91f..fb44ea620 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,29 +10,29 @@ setuptools.setup( name="openapi", - version="1.18.0", + version="1.18.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", 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/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 9e0f6d1e7..84572e8dc 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -20,8 +20,8 @@ class SDK: _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 a58998d28cb82caa8c318ff8453869beb1a3b49c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 3 Jun 2023 01:49:24 +0000 Subject: [PATCH 29/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.43.0 --- workflows_definition/RELEASES.md | 8 +- workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 6 +- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/__init__.py | 1 + .../src/sdk/closing_reason.py | 42 ++++------- workflows_definition/src/sdk/sdk.py | 54 ++++---------- .../src/sdk/sdkconfiguration.py | 27 +++++++ workflows_definition/src/sdk/workflows.py | 74 ++++++++----------- 9 files changed, 102 insertions(+), 113 deletions(-) create mode 100755 workflows_definition/src/sdk/sdkconfiguration.py diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 0b3e363c3..0edf98aa3 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -202,4 +202,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.41.0 (2.34.7) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.41.0 (2.34.7) https://github.com/speakeasy-api/speakeasy + +## 2023-06-03 01:49:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.43.0 (2.35.3) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index bd768b27a..c9b0762ed 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -1,3 +1,4 @@ +src/sdk/sdkconfiguration.py src/sdk/closing_reason.py src/sdk/workflows.py src/sdk/sdk.py diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 4f91a72c5..b0f05cb6e 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.41.0 - generationVersion: 2.34.7 + speakeasyVersion: 1.43.0 + generationVersion: 2.35.3 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.18.1 + version: 1.19.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index fb44ea620..ed8e5eb28 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.18.1", + version="1.19.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/__init__.py b/workflows_definition/src/sdk/__init__.py index b9e232018..e6c0deeb6 100755 --- a/workflows_definition/src/sdk/__init__.py +++ b/workflows_definition/src/sdk/__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/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index 181a3f0b2..4c51f6975 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -1,32 +1,22 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import requests as requests_http -from . import utils +from .sdkconfiguration import SDKConfiguration +from sdk import utils from sdk.models import operations, shared from typing import Optional class ClosingReason: - _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 change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> operations.ChangeReasonStatusResponse: r"""changeReasonStatus Change the status of a Closing Reason (eg. ACTIVE to INACTIVE). """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.ChangeReasonStatusRequest, base_url, '/v1/workflows/closing-reasons/{reasonId}', request) headers = {} @@ -34,9 +24,9 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> 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('PATCH', url, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -57,9 +47,9 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre r"""createClosingReason A created Closing Reason is stored for the organization and will be displayed in the library of reasons. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/workflows/closing-reasons' + url = base_url + '/v1/workflows/closing-reasons' headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): @@ -67,9 +57,9 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre if data is None and form is None: raise Exception('request body is required') 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') @@ -88,15 +78,15 @@ def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsReques r"""getAllClosingReasons Get all Closing Reasons defined in the organization by default all Active. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/workflows/closing-reasons' + url = base_url + '/v1/workflows/closing-reasons' headers = {} query_params = utils.get_query_params(operations.GetAllClosingReasonsRequest, request) headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, params=query_params, headers=headers) content_type = http_res.headers.get('Content-Type') diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 84572e8dc..5876e446b 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -1,30 +1,22 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" import requests as requests_http -from . import utils from .closing_reason import ClosingReason +from .sdkconfiguration import SDKConfiguration from .workflows import Workflows +from sdk import utils from sdk.models import shared -SERVERS = [ - "https://workflows-definition.sls.epilot.io", -] -"""Contains the list of servers available to the SDK""" - class SDK: r"""Service for Workflow Definitions for different processes inside of an Organization""" closing_reason: ClosingReason workflows: Workflows - _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 @@ -33,6 +25,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 @@ -40,40 +34,20 @@ def __init__(self, :param client: The requests.Session HTTP client to use for all operations :type client: requests_http.Session """ - self._client = requests_http.Session() + if client is None: + client = requests_http.Session() + security_client = utils.configure_security_client(client, security) if server_url is not None: if url_params is not None: - self._server_url = utils.template_url(server_url, url_params) - else: - self._server_url = server_url - - if client is not None: - self._client = client - - self._security_client = utils.configure_security_client(self._client, security) - + server_url = utils.template_url(server_url, url_params) + self.sdk_configuration = SDKConfiguration(client, security_client, server_url, server_idx) + self._init_sdks() def _init_sdks(self): - self.closing_reason = ClosingReason( - self._client, - self._security_client, - self._server_url, - self._language, - self._sdk_version, - self._gen_version - ) - - self.workflows = Workflows( - self._client, - self._security_client, - self._server_url, - self._language, - self._sdk_version, - self._gen_version - ) - + self.closing_reason = ClosingReason(self.sdk_configuration) + self.workflows = Workflows(self.sdk_configuration) \ No newline at end of file diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py new file mode 100755 index 000000000..070a17bbd --- /dev/null +++ b/workflows_definition/src/sdk/sdkconfiguration.py @@ -0,0 +1,27 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +import requests +from dataclasses import dataclass + +SERVERS = [ + 'https://workflows-definition.sls.epilot.io', +] +"""Contains the list of servers available to the SDK""" + +@dataclass +class SDKConfiguration: + client: requests.Session + security_client: requests.Session + server_url: str = '' + server_idx: int = 0 + language: str = 'python' + sdk_version: str = '1.19.0' + gen_version: str = '2.35.3' + + def get_server_details(self) -> tuple[str, dict[str, str]]: + if self.server_url: + return self.server_url.removesuffix('/'), {} + if self.server_idx is None: + self.server_idx = 0 + + return SERVERS[self.server_idx], {} diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index f6fd99051..d84101590 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -1,34 +1,24 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import requests as requests_http -from . import utils +from .sdkconfiguration import SDKConfiguration +from sdk import utils from sdk.models import operations, shared from typing import Optional class Workflows: - _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 create_definition(self, request: shared.WorkflowDefinition) -> operations.CreateDefinitionResponse: r"""createDefinition Create a Workflow Definition. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/workflows/definitions' + url = base_url + '/v1/workflows/definitions' headers = {} req_content_type, data, form = utils.serialize_request_body(request, "request", 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): @@ -36,9 +26,9 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr if data is None and form is None: raise Exception('request body is required') headers['Accept'] = 'application/json;q=1, application/json;q=0' - 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') @@ -61,14 +51,14 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper r"""deleteDefinition Delete Workflow Definition. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.DeleteDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('DELETE', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -89,14 +79,14 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations r"""getDefinition Get specific Definition by id from the Organization. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -123,14 +113,14 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: r"""getDefinitions Retrieve all Workflow Definitions from an Organization """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/workflows/definitions' + url = base_url + '/v1/workflows/definitions' headers = {} headers['Accept'] = 'application/json;q=1, application/json;q=0' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -153,14 +143,14 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: r"""getMaxAllowedLimit Get limits and number of created executions for an Organization. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) - url = base_url.removesuffix('/') + '/v1/workflows/limits/max-allowed' + url = base_url + '/v1/workflows/limits/max-allowed' headers = {} headers['Accept'] = 'application/json;q=1, application/json;q=0' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -183,14 +173,14 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea r"""getWorkflowClosingReasons Returns all closing reasons defined for the workflow. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.GetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('GET', url, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -209,7 +199,7 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea r"""setWorkflowClosingReasons Sets which closing reasons are defined for this workflow, based on the entire closing reasons catalog. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.SetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) headers = {} @@ -219,9 +209,9 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea if data is None and form is None: raise Exception('request body is required') headers['Accept'] = '*/*' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('PATCH', url, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') @@ -236,7 +226,7 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper r"""updateDefinition Update Workflow Definition. """ - base_url = self._server_url + base_url = utils.template_url(*self.sdk_configuration.get_server_details()) url = utils.generate_url(operations.UpdateDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} @@ -246,9 +236,9 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper if data is None and form is None: raise Exception('request body is required') headers['Accept'] = 'application/json;q=1, application/json;q=0' - headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' - client = self._security_client + client = self.sdk_configuration.security_client http_res = client.request('PUT', url, data=data, files=form, headers=headers) content_type = http_res.headers.get('Content-Type') From a4969f2ccd048cbd61d51af4d41110c550d2e171 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 7 Jun 2023 01:55:48 +0000 Subject: [PATCH 30/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.44.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/docs/sdk/README.md | 2 +- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 5 +++-- 6 files changed, 16 insertions(+), 9 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 0edf98aa3..83ffbc60f 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -208,4 +208,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:55:31 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.44.2 (2.35.9) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/docs/sdk/README.md b/workflows_definition/docs/sdk/README.md index 5824972a4..1f97dea30 100755 --- a/workflows_definition/docs/sdk/README.md +++ b/workflows_definition/docs/sdk/README.md @@ -2,7 +2,7 @@ ## Overview -Service for Workflow Definitions for different processes inside of an Organization +Workflows Definitions: Service for Workflow Definitions for different processes inside of an Organization ### Available Operations diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index b0f05cb6e..b16c621fd 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.43.0 - generationVersion: 2.35.3 + speakeasyVersion: 1.44.2 + generationVersion: 2.35.9 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.19.0 + version: 1.19.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index ed8e5eb28..ac10fe39c 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.19.0", + version="1.19.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 5876e446b..6dadbfb6e 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -8,7 +8,7 @@ from sdk.models import shared class SDK: - r"""Service for Workflow Definitions for different processes inside of an Organization""" + r"""Workflows Definitions: Service for Workflow Definitions for different processes inside of an Organization""" closing_reason: ClosingReason workflows: Workflows diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 070a17bbd..c1514b08d 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/sdkconfiguration.py @@ -3,6 +3,7 @@ import requests from dataclasses import dataclass + SERVERS = [ 'https://workflows-definition.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 77a4c5bbf92728f36a380045262c944adaa87ecd Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 8 Jun 2023 01:53:38 +0000 Subject: [PATCH 31/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.0 --- workflows_definition/README.md | 2 +- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/USAGE.md | 2 +- .../docs/closingreason/README.md | 6 +++--- workflows_definition/docs/workflows/README.md | 16 ++++++++-------- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/closing_reason.py | 6 +++--- workflows_definition/src/sdk/sdkconfiguration.py | 5 +++-- workflows_definition/src/sdk/workflows.py | 16 ++++++++-------- 10 files changed, 38 insertions(+), 31 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 068fca692..73c6a4f31 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -16,7 +16,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 83ffbc60f..940289158 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -214,4 +214,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:53:22 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.45.0 (2.37.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 9ed1f5542..8ff3b5b4d 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -5,7 +5,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md index 436ac5e83..c687f8c16 100755 --- a/workflows_definition/docs/closingreason/README.md +++ b/workflows_definition/docs/closingreason/README.md @@ -18,7 +18,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -47,7 +47,7 @@ from sdk.models import shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -77,7 +77,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/workflows/README.md index 104bff0c0..245e65763 100755 --- a/workflows_definition/docs/workflows/README.md +++ b/workflows_definition/docs/workflows/README.md @@ -23,7 +23,7 @@ from sdk.models import shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -241,7 +241,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -267,7 +267,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -293,7 +293,7 @@ import sdk s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -316,7 +316,7 @@ import sdk s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -339,7 +339,7 @@ from sdk.models import operations s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -365,7 +365,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) @@ -398,7 +398,7 @@ from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( - bearer_auth="YOUR_BEARER_TOKEN_HERE", + bearer_auth="", ), ) diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index b16c621fd..2623d2426 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.44.2 - generationVersion: 2.35.9 + speakeasyVersion: 1.45.0 + generationVersion: 2.37.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.19.1 + version: 1.20.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index ac10fe39c..6a3221c35 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.19.1", + version="1.20.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index 4c51f6975..e05d24387 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -24,7 +24,7 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> 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 @@ -57,7 +57,7 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre if data is None and form is None: raise Exception('request body is required') 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 @@ -84,7 +84,7 @@ def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsReques headers = {} query_params = utils.get_query_params(operations.GetAllClosingReasonsRequest, 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/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index c1514b08d..ce559dc35 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/sdkconfiguration.py @@ -16,8 +16,9 @@ class SDKConfiguration: server_url: str = '' server_idx: int = 0 language: str = 'python' - sdk_version: str = '1.19.1' - gen_version: str = '2.35.9' + openapi_doc_version: str = '1.0.0' + sdk_version: str = '1.20.0' + gen_version: str = '2.37.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index d84101590..6e29dfdee 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -26,7 +26,7 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr if data is None and form is None: raise Exception('request body is required') headers['Accept'] = 'application/json;q=1, application/json;q=0' - 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 @@ -56,7 +56,7 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper url = utils.generate_url(operations.DeleteDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -84,7 +84,7 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations url = utils.generate_url(operations.GetDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' - 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 @@ -118,7 +118,7 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: url = base_url + '/v1/workflows/definitions' headers = {} headers['Accept'] = 'application/json;q=1, application/json;q=0' - 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 @@ -148,7 +148,7 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: url = base_url + '/v1/workflows/limits/max-allowed' headers = {} headers['Accept'] = 'application/json;q=1, application/json;q=0' - 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 @@ -178,7 +178,7 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea url = utils.generate_url(operations.GetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -209,7 +209,7 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea if data is None and form is None: raise Exception('request body is required') headers['Accept'] = '*/*' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -236,7 +236,7 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper if data is None and form is None: raise Exception('request body is required') headers['Accept'] = 'application/json;q=1, application/json;q=0' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version}' + headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client From 95e737175e1fa7ab09835ec006cdd71e6abf125d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 9 Jun 2023 01:53:38 +0000 Subject: [PATCH 32/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.45.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 940289158..8e78b16bc 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -220,4 +220,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:53:25 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.45.2 (2.37.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2623d2426..f279721e7 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.45.0 - generationVersion: 2.37.0 + speakeasyVersion: 1.45.2 + generationVersion: 2.37.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.20.0 + version: 1.20.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 6a3221c35..6071c0bd9 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.20.0", + version="1.20.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index ce559dc35..bb09b287b 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 08b957ff96b862c104b9545b58a412225caf34e0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 10 Jun 2023 01:44:20 +0000 Subject: [PATCH 33/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.0 --- workflows_definition/README.md | 32 ++--- workflows_definition/RELEASES.md | 8 +- .../docs/closingreason/README.md | 92 ------------- .../operations/changereasonstatusrequest.md | 9 ++ .../operations/changereasonstatusresponse.md | 11 ++ .../operations/createclosingreasonresponse.md | 11 ++ .../operations/createdefinitionresponse.md | 12 ++ .../operations/deletedefinitionrequest.md | 8 ++ .../operations/deletedefinitionresponse.md | 11 ++ .../operations/getallclosingreasonsrequest.md | 8 ++ .../getallclosingreasonsresponse.md | 11 ++ .../models/operations/getdefinitionrequest.md | 8 ++ .../operations/getdefinitionresponse.md | 13 ++ .../operations/getdefinitionsresponse.md | 12 ++ .../operations/getmaxallowedlimitresponse.md | 12 ++ .../getworkflowclosingreasonsrequest.md | 8 ++ .../getworkflowclosingreasonsresponse.md | 11 ++ .../setworkflowclosingreasonsrequest.md | 9 ++ .../setworkflowclosingreasonsresponse.md | 10 ++ .../operations/updatedefinitionrequest.md | 9 ++ .../operations/updatedefinitionresponse.md | 12 ++ .../models/shared/changereasonstatusreq.md | 10 ++ .../docs/models/shared/closingreason.md | 14 ++ .../docs/models/shared/closingreasonid.md | 8 ++ .../docs/models/shared/closingreasons.md | 10 ++ .../docs/models/shared/closingreasonsids.md | 10 ++ .../models/shared/closingreasonsstatus.md | 9 ++ .../models/shared/definitionnotfoundresp.md | 10 ++ .../docs/models/shared/dynamicduedate.md | 13 ++ .../dynamicduedateactiontypecondition.md | 9 ++ .../models/shared/dynamicduedatetimeperiod.md | 10 ++ .../docs/models/shared/ecpdetails.md | 10 ++ .../docs/models/shared/errorresp.md | 10 ++ .../docs/models/shared/itemtype.md | 9 ++ .../docs/models/shared/maxallowedlimit.md | 11 ++ .../docs/models/shared/section.md | 14 ++ .../docs/models/shared/security.md | 8 ++ .../docs/models/shared/step.md | 21 +++ .../models/shared/stepautomationconfig.md | 8 ++ .../docs/models/shared/steprequirement.md | 12 ++ .../models/shared/steprequirementcondition.md | 8 ++ .../docs/models/shared/steptype.md | 9 ++ .../models/shared/updateentityattributes.md | 9 ++ .../shared/updateentityattributessource.md | 10 ++ .../shared/updateentityattributestarget.md | 9 ++ .../docs/models/shared/workflowdefinition.md | 22 +++ .../docs/sdks/closingreason/README.md | 128 ++++++++++++++++++ .../docs/{ => sdks}/sdk/README.md | 0 .../docs/{ => sdks}/workflows/README.md | 84 ++++++++++++ workflows_definition/files.gen | 51 ++++++- workflows_definition/gen.yaml | 6 +- workflows_definition/setup.py | 2 +- .../models/operations/changereasonstatus.py | 9 +- .../models/operations/createclosingreason.py | 5 +- .../sdk/models/operations/createdefinition.py | 5 +- .../sdk/models/operations/deletedefinition.py | 9 +- .../models/operations/getallclosingreasons.py | 9 +- .../sdk/models/operations/getdefinition.py | 9 +- .../sdk/models/operations/getdefinitions.py | 5 +- .../models/operations/getmaxallowedlimit.py | 5 +- .../operations/getworkflowclosingreasons.py | 9 +- .../operations/setworkflowclosingreasons.py | 9 +- .../sdk/models/operations/updatedefinition.py | 9 +- .../models/shared/changereasonstatusreq.py | 5 +- .../src/sdk/models/shared/closingreason.py | 5 +- .../src/sdk/models/shared/closingreasonid.py | 5 +- .../src/sdk/models/shared/closingreasons.py | 5 +- .../sdk/models/shared/closingreasonsids.py | 5 +- .../models/shared/definitionnotfoundresp.py | 5 +- .../src/sdk/models/shared/dynamicduedate.py | 5 +- .../src/sdk/models/shared/ecpdetails.py | 5 +- .../src/sdk/models/shared/errorresp.py | 5 +- .../src/sdk/models/shared/maxallowedlimit.py | 5 +- .../src/sdk/models/shared/section.py | 5 +- .../src/sdk/models/shared/security.py | 5 +- .../src/sdk/models/shared/step.py | 9 +- .../src/sdk/models/shared/steprequirement.py | 5 +- .../models/shared/updateentityattributes.py | 9 +- .../sdk/models/shared/workflowdefinition.py | 5 +- .../src/sdk/sdkconfiguration.py | 4 +- 80 files changed, 854 insertions(+), 182 deletions(-) delete mode 100755 workflows_definition/docs/closingreason/README.md create mode 100755 workflows_definition/docs/models/operations/changereasonstatusrequest.md create mode 100755 workflows_definition/docs/models/operations/changereasonstatusresponse.md create mode 100755 workflows_definition/docs/models/operations/createclosingreasonresponse.md create mode 100755 workflows_definition/docs/models/operations/createdefinitionresponse.md create mode 100755 workflows_definition/docs/models/operations/deletedefinitionrequest.md create mode 100755 workflows_definition/docs/models/operations/deletedefinitionresponse.md create mode 100755 workflows_definition/docs/models/operations/getallclosingreasonsrequest.md create mode 100755 workflows_definition/docs/models/operations/getallclosingreasonsresponse.md create mode 100755 workflows_definition/docs/models/operations/getdefinitionrequest.md create mode 100755 workflows_definition/docs/models/operations/getdefinitionresponse.md create mode 100755 workflows_definition/docs/models/operations/getdefinitionsresponse.md create mode 100755 workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md create mode 100755 workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md create mode 100755 workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md create mode 100755 workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md create mode 100755 workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md create mode 100755 workflows_definition/docs/models/operations/updatedefinitionrequest.md create mode 100755 workflows_definition/docs/models/operations/updatedefinitionresponse.md create mode 100755 workflows_definition/docs/models/shared/changereasonstatusreq.md create mode 100755 workflows_definition/docs/models/shared/closingreason.md create mode 100755 workflows_definition/docs/models/shared/closingreasonid.md create mode 100755 workflows_definition/docs/models/shared/closingreasons.md create mode 100755 workflows_definition/docs/models/shared/closingreasonsids.md create mode 100755 workflows_definition/docs/models/shared/closingreasonsstatus.md create mode 100755 workflows_definition/docs/models/shared/definitionnotfoundresp.md create mode 100755 workflows_definition/docs/models/shared/dynamicduedate.md create mode 100755 workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md create mode 100755 workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md create mode 100755 workflows_definition/docs/models/shared/ecpdetails.md create mode 100755 workflows_definition/docs/models/shared/errorresp.md create mode 100755 workflows_definition/docs/models/shared/itemtype.md create mode 100755 workflows_definition/docs/models/shared/maxallowedlimit.md create mode 100755 workflows_definition/docs/models/shared/section.md create mode 100755 workflows_definition/docs/models/shared/security.md create mode 100755 workflows_definition/docs/models/shared/step.md create mode 100755 workflows_definition/docs/models/shared/stepautomationconfig.md create mode 100755 workflows_definition/docs/models/shared/steprequirement.md create mode 100755 workflows_definition/docs/models/shared/steprequirementcondition.md create mode 100755 workflows_definition/docs/models/shared/steptype.md create mode 100755 workflows_definition/docs/models/shared/updateentityattributes.md create mode 100755 workflows_definition/docs/models/shared/updateentityattributessource.md create mode 100755 workflows_definition/docs/models/shared/updateentityattributestarget.md create mode 100755 workflows_definition/docs/models/shared/workflowdefinition.md create mode 100755 workflows_definition/docs/sdks/closingreason/README.md rename workflows_definition/docs/{ => sdks}/sdk/README.md (100%) rename workflows_definition/docs/{ => sdks}/workflows/README.md (75%) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 73c6a4f31..003c9acb8 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -38,22 +38,22 @@ if res.status_code == 200: ## Available Resources and Operations -### [closing_reason](docs/closingreason/README.md) - -* [change_reason_status](docs/closingreason/README.md#change_reason_status) - changeReasonStatus -* [create_closing_reason](docs/closingreason/README.md#create_closing_reason) - createClosingReason -* [get_all_closing_reasons](docs/closingreason/README.md#get_all_closing_reasons) - getAllClosingReasons - -### [workflows](docs/workflows/README.md) - -* [create_definition](docs/workflows/README.md#create_definition) - createDefinition -* [delete_definition](docs/workflows/README.md#delete_definition) - deleteDefinition -* [get_definition](docs/workflows/README.md#get_definition) - getDefinition -* [get_definitions](docs/workflows/README.md#get_definitions) - getDefinitions -* [get_max_allowed_limit](docs/workflows/README.md#get_max_allowed_limit) - getMaxAllowedLimit -* [get_workflow_closing_reasons](docs/workflows/README.md#get_workflow_closing_reasons) - getWorkflowClosingReasons -* [set_workflow_closing_reasons](docs/workflows/README.md#set_workflow_closing_reasons) - setWorkflowClosingReasons -* [update_definition](docs/workflows/README.md#update_definition) - updateDefinition +### [closing_reason](docs/sdks/closingreason/README.md) + +* [change_reason_status](docs/sdks/closingreason/README.md#change_reason_status) - changeReasonStatus +* [create_closing_reason](docs/sdks/closingreason/README.md#create_closing_reason) - createClosingReason +* [get_all_closing_reasons](docs/sdks/closingreason/README.md#get_all_closing_reasons) - getAllClosingReasons + +### [workflows](docs/sdks/workflows/README.md) + +* [create_definition](docs/sdks/workflows/README.md#create_definition) - createDefinition +* [delete_definition](docs/sdks/workflows/README.md#delete_definition) - deleteDefinition +* [get_definition](docs/sdks/workflows/README.md#get_definition) - getDefinition +* [get_definitions](docs/sdks/workflows/README.md#get_definitions) - getDefinitions +* [get_max_allowed_limit](docs/sdks/workflows/README.md#get_max_allowed_limit) - getMaxAllowedLimit +* [get_workflow_closing_reasons](docs/sdks/workflows/README.md#get_workflow_closing_reasons) - getWorkflowClosingReasons +* [set_workflow_closing_reasons](docs/sdks/workflows/README.md#set_workflow_closing_reasons) - setWorkflowClosingReasons +* [update_definition](docs/sdks/workflows/README.md#update_definition) - updateDefinition ### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 8e78b16bc..6b3ced748 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -226,4 +226,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:44:03 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.47.0 (2.39.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/docs/closingreason/README.md b/workflows_definition/docs/closingreason/README.md deleted file mode 100755 index c687f8c16..000000000 --- a/workflows_definition/docs/closingreason/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# closing_reason - -### Available Operations - -* [change_reason_status](#change_reason_status) - changeReasonStatus -* [create_closing_reason](#create_closing_reason) - createClosingReason -* [get_all_closing_reasons](#get_all_closing_reasons) - getAllClosingReasons - -## change_reason_status - -Change the status of a Closing Reason (eg. ACTIVE to INACTIVE). - -### Example Usage - -```python -import sdk -from sdk.models import operations, shared - -s = sdk.SDK( - security=shared.Security( - bearer_auth="", - ), -) - -req = operations.ChangeReasonStatusRequest( - change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatus.INACTIVE, - ), - reason_id='quibusdam', -) - -res = s.closing_reason.change_reason_status(req) - -if res.status_code == 200: - # handle response -``` - -## create_closing_reason - -A created Closing Reason is stored for the organization and will be displayed in the library of reasons. - -### Example Usage - -```python -import sdk -from sdk.models import shared - -s = sdk.SDK( - security=shared.Security( - bearer_auth="", - ), -) - -req = shared.ClosingReason( - creation_time='unde', - id='d8d69a67-4e0f-4467-8c87-96ed151a05df', - last_update_time='quo', - status=shared.ClosingReasonsStatus.ACTIVE, - title='Dr.', -) - -res = s.closing_reason.create_closing_reason(req) - -if res.closing_reason is not None: - # handle response -``` - -## get_all_closing_reasons - -Get all Closing Reasons defined in the organization by default all Active. - -### Example Usage - -```python -import sdk -from sdk.models import operations - -s = sdk.SDK( - security=shared.Security( - bearer_auth="", - ), -) - -req = operations.GetAllClosingReasonsRequest( - include_inactive=False, -) - -res = s.closing_reason.get_all_closing_reasons(req) - -if res.closing_reasons is not None: - # handle response -``` diff --git a/workflows_definition/docs/models/operations/changereasonstatusrequest.md b/workflows_definition/docs/models/operations/changereasonstatusrequest.md new file mode 100755 index 000000000..a140aca24 --- /dev/null +++ b/workflows_definition/docs/models/operations/changereasonstatusrequest.md @@ -0,0 +1,9 @@ +# ChangeReasonStatusRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `change_reason_status_req` | [Optional[shared.ChangeReasonStatusReq]](../../models/shared/changereasonstatusreq.md) | :heavy_minus_sign: | change the status of a closing reason | +| `reason_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/changereasonstatusresponse.md b/workflows_definition/docs/models/operations/changereasonstatusresponse.md new file mode 100755 index 000000000..29d991f0d --- /dev/null +++ b/workflows_definition/docs/models/operations/changereasonstatusresponse.md @@ -0,0 +1,11 @@ +# ChangeReasonStatusResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | bad request | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createclosingreasonresponse.md b/workflows_definition/docs/models/operations/createclosingreasonresponse.md new file mode 100755 index 000000000..c68df4382 --- /dev/null +++ b/workflows_definition/docs/models/operations/createclosingreasonresponse.md @@ -0,0 +1,11 @@ +# CreateClosingReasonResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `closing_reason` | [Optional[shared.ClosingReason]](../../models/shared/closingreason.md) | :heavy_minus_sign: | closing reason is stored successfully in the repository | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createdefinitionresponse.md b/workflows_definition/docs/models/operations/createdefinitionresponse.md new file mode 100755 index 000000000..e6c1ab0ec --- /dev/null +++ b/workflows_definition/docs/models/operations/createdefinitionresponse.md @@ -0,0 +1,12 @@ +# CreateDefinitionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is created successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionrequest.md b/workflows_definition/docs/models/operations/deletedefinitionrequest.md new file mode 100755 index 000000000..4644cc5a7 --- /dev/null +++ b/workflows_definition/docs/models/operations/deletedefinitionrequest.md @@ -0,0 +1,8 @@ +# DeleteDefinitionRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `definition_id` | *str* | :heavy_check_mark: | Id of the definition to de deleted. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionresponse.md b/workflows_definition/docs/models/operations/deletedefinitionresponse.md new file mode 100755 index 000000000..6d5f16014 --- /dev/null +++ b/workflows_definition/docs/models/operations/deletedefinitionresponse.md @@ -0,0 +1,11 @@ +# DeleteDefinitionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Failed to authenticate | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md new file mode 100755 index 000000000..258ca6c8e --- /dev/null +++ b/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md @@ -0,0 +1,8 @@ +# GetAllClosingReasonsRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `include_inactive` | *Optional[bool]* | :heavy_minus_sign: | Filter Closing Reasons by status like active inactiv | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md new file mode 100755 index 000000000..51fa8e5a6 --- /dev/null +++ b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md @@ -0,0 +1,11 @@ +# GetAllClosingReasonsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `closing_reasons` | [Optional[shared.ClosingReasons]](../../models/shared/closingreasons.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons per organization | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionrequest.md b/workflows_definition/docs/models/operations/getdefinitionrequest.md new file mode 100755 index 000000000..54c03eb0c --- /dev/null +++ b/workflows_definition/docs/models/operations/getdefinitionrequest.md @@ -0,0 +1,8 @@ +# GetDefinitionRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `definition_id` | *str* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionresponse.md b/workflows_definition/docs/models/operations/getdefinitionresponse.md new file mode 100755 index 000000000..b96624bb0 --- /dev/null +++ b/workflows_definition/docs/models/operations/getdefinitionresponse.md @@ -0,0 +1,13 @@ +# GetDefinitionResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `definition_not_found_resp` | [Optional[shared.DefinitionNotFoundResp]](../../models/shared/definitionnotfoundresp.md) | :heavy_minus_sign: | Definition Not found | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Returns the Workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md new file mode 100755 index 000000000..ea576e7fe --- /dev/null +++ b/workflows_definition/docs/models/operations/getdefinitionsresponse.md @@ -0,0 +1,12 @@ +# GetDefinitionsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | +| `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 | +| `workflow_definitions` | list[[shared.WorkflowDefinition](../../models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md new file mode 100755 index 000000000..e4e23a291 --- /dev/null +++ b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md @@ -0,0 +1,12 @@ +# GetMaxAllowedLimitResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | +| `max_allowed_limit` | [Optional[shared.MaxAllowedLimit]](../../models/shared/maxallowedlimit.md) | :heavy_minus_sign: | A combo of current number of workflows, and the max allowed number of workflows. | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md new file mode 100755 index 000000000..4b23c9f97 --- /dev/null +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md @@ -0,0 +1,8 @@ +# GetWorkflowClosingReasonsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------- | --------------------------- | --------------------------- | --------------------------- | +| `definition_id` | *str* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md new file mode 100755 index 000000000..d401fe5bb --- /dev/null +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md @@ -0,0 +1,11 @@ +# GetWorkflowClosingReasonsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](../../models/shared/closingreasonsids.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons for a specific workflow | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md new file mode 100755 index 000000000..c8f8b872e --- /dev/null +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md @@ -0,0 +1,9 @@ +# SetWorkflowClosingReasonsRequest + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `closing_reasons_ids` | [shared.ClosingReasonsIds](../../models/shared/closingreasonsids.md) | :heavy_check_mark: | set all closing reasons for a specific definition | +| `definition_id` | *str* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md new file mode 100755 index 000000000..0eb9a6a24 --- /dev/null +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md @@ -0,0 +1,10 @@ +# SetWorkflowClosingReasonsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionrequest.md b/workflows_definition/docs/models/operations/updatedefinitionrequest.md new file mode 100755 index 000000000..f1ee1fa8f --- /dev/null +++ b/workflows_definition/docs/models/operations/updatedefinitionrequest.md @@ -0,0 +1,9 @@ +# UpdateDefinitionRequest + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `workflow_definition` | [shared.WorkflowDefinition](../../models/shared/workflowdefinition.md) | :heavy_check_mark: | Workflow Definition payload | +| `definition_id` | *str* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionresponse.md b/workflows_definition/docs/models/operations/updatedefinitionresponse.md new file mode 100755 index 000000000..3733bfddc --- /dev/null +++ b/workflows_definition/docs/models/operations/updatedefinitionresponse.md @@ -0,0 +1,12 @@ +# UpdateDefinitionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is updated successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/changereasonstatusreq.md b/workflows_definition/docs/models/shared/changereasonstatusreq.md new file mode 100755 index 000000000..5bd53317f --- /dev/null +++ b/workflows_definition/docs/models/shared/changereasonstatusreq.md @@ -0,0 +1,10 @@ +# ChangeReasonStatusReq + +change the status of a closing reason + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `status` | [ClosingReasonsStatus](../../models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreason.md b/workflows_definition/docs/models/shared/closingreason.md new file mode 100755 index 000000000..f330b63af --- /dev/null +++ b/workflows_definition/docs/models/shared/closingreason.md @@ -0,0 +1,14 @@ +# ClosingReason + +One Closing reason for a workflow + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `creation_time` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `status` | [ClosingReasonsStatus](../../models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | +| `title` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonid.md b/workflows_definition/docs/models/shared/closingreasonid.md new file mode 100755 index 000000000..3f125cffc --- /dev/null +++ b/workflows_definition/docs/models/shared/closingreasonid.md @@ -0,0 +1,8 @@ +# ClosingReasonID + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *str* | :heavy_check_mark: | N/A | x739cew | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md new file mode 100755 index 000000000..64b3c0f3c --- /dev/null +++ b/workflows_definition/docs/models/shared/closingreasons.md @@ -0,0 +1,10 @@ +# ClosingReasons + +Returns the entire catalog of closing reasons per organization + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `reasons` | list[[ClosingReason](../../models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md new file mode 100755 index 000000000..c29be3c6d --- /dev/null +++ b/workflows_definition/docs/models/shared/closingreasonsids.md @@ -0,0 +1,10 @@ +# ClosingReasonsIds + +Returns the entire catalog of closing reasons for a specific workflow + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonsstatus.md b/workflows_definition/docs/models/shared/closingreasonsstatus.md new file mode 100755 index 000000000..b76021aaa --- /dev/null +++ b/workflows_definition/docs/models/shared/closingreasonsstatus.md @@ -0,0 +1,9 @@ +# ClosingReasonsStatus + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `ACTIVE` | ACTIVE | +| `INACTIVE` | INACTIVE | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/definitionnotfoundresp.md b/workflows_definition/docs/models/shared/definitionnotfoundresp.md new file mode 100755 index 000000000..f839d1b4d --- /dev/null +++ b/workflows_definition/docs/models/shared/definitionnotfoundresp.md @@ -0,0 +1,10 @@ +# DefinitionNotFoundResp + +Definition could be not found + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/dynamicduedate.md b/workflows_definition/docs/models/shared/dynamicduedate.md new file mode 100755 index 000000000..ba075f756 --- /dev/null +++ b/workflows_definition/docs/models/shared/dynamicduedate.md @@ -0,0 +1,13 @@ +# DynamicDueDate + +set a Duedate for a step then a specific + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `action_type_condition` | [DynamicDueDateActionTypeCondition](../../models/shared/dynamicduedateactiontypecondition.md) | :heavy_check_mark: | N/A | +| `number_of_units` | *float* | :heavy_check_mark: | N/A | +| `step_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `time_period` | [DynamicDueDateTimePeriod](../../models/shared/dynamicduedatetimeperiod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md b/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md new file mode 100755 index 000000000..301816b03 --- /dev/null +++ b/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md @@ -0,0 +1,9 @@ +# DynamicDueDateActionTypeCondition + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `WORKFLOW_STARTED` | WORKFLOW_STARTED | +| `STEP_CLOSED` | STEP_CLOSED | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md b/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md new file mode 100755 index 000000000..b49a5cb9a --- /dev/null +++ b/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md @@ -0,0 +1,10 @@ +# DynamicDueDateTimePeriod + + +## Values + +| Name | Value | +| -------- | -------- | +| `DAYS` | days | +| `WEEKS` | weeks | +| `MONTHS` | months | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/ecpdetails.md b/workflows_definition/docs/models/shared/ecpdetails.md new file mode 100755 index 000000000..6febd5a06 --- /dev/null +++ b/workflows_definition/docs/models/shared/ecpdetails.md @@ -0,0 +1,10 @@ +# ECPDetails + +Details regarding ECP for the workflow step + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `label` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/errorresp.md b/workflows_definition/docs/models/shared/errorresp.md new file mode 100755 index 000000000..c7fcefe69 --- /dev/null +++ b/workflows_definition/docs/models/shared/errorresp.md @@ -0,0 +1,10 @@ +# ErrorResp + +bad request + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `message` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/itemtype.md b/workflows_definition/docs/models/shared/itemtype.md new file mode 100755 index 000000000..9d5135e83 --- /dev/null +++ b/workflows_definition/docs/models/shared/itemtype.md @@ -0,0 +1,9 @@ +# ItemType + + +## Values + +| Name | Value | +| --------- | --------- | +| `STEP` | STEP | +| `SECTION` | SECTION | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/maxallowedlimit.md b/workflows_definition/docs/models/shared/maxallowedlimit.md new file mode 100755 index 000000000..cc83a7b6b --- /dev/null +++ b/workflows_definition/docs/models/shared/maxallowedlimit.md @@ -0,0 +1,11 @@ +# MaxAllowedLimit + +A combo of current number of workflows, and the max allowed number of workflows. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------- | ------------------------- | ------------------------- | ------------------------- | +| `current_no_of_workflows` | *Optional[float]* | :heavy_minus_sign: | N/A | +| `max_allowed` | *Optional[float]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/section.md b/workflows_definition/docs/models/shared/section.md new file mode 100755 index 000000000..0a775eb7a --- /dev/null +++ b/workflows_definition/docs/models/shared/section.md @@ -0,0 +1,14 @@ +# Section + +A group of Steps that define the progress of the Workflow + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `order` | *float* | :heavy_check_mark: | N/A | +| `steps` | list[[Step](../../models/shared/step.md)] | :heavy_check_mark: | N/A | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/security.md b/workflows_definition/docs/models/shared/security.md new file mode 100755 index 000000000..83ee1f8f9 --- /dev/null +++ b/workflows_definition/docs/models/shared/security.md @@ -0,0 +1,8 @@ +# Security + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `bearer_auth` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md new file mode 100755 index 000000000..9867d7652 --- /dev/null +++ b/workflows_definition/docs/models/shared/step.md @@ -0,0 +1,21 @@ +# Step + +Action that needs to be done in a Workflow + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | +| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | +| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `order` | *float* | :heavy_check_mark: | N/A | | +| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | +| `user_ids` | list[*float*] | :heavy_minus_sign: | This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/stepautomationconfig.md b/workflows_definition/docs/models/shared/stepautomationconfig.md new file mode 100755 index 000000000..06ed327aa --- /dev/null +++ b/workflows_definition/docs/models/shared/stepautomationconfig.md @@ -0,0 +1,8 @@ +# StepAutomationConfig + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | +| `flow_id` | *str* | :heavy_check_mark: | Id of the configured automation to run | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirement.md b/workflows_definition/docs/models/shared/steprequirement.md new file mode 100755 index 000000000..446f8cf98 --- /dev/null +++ b/workflows_definition/docs/models/shared/steprequirement.md @@ -0,0 +1,12 @@ +# StepRequirement + +describe the requirement for step enablement + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `condition` | [StepRequirementCondition](../../models/shared/steprequirementcondition.md) | :heavy_check_mark: | N/A | +| `definition_id` | *str* | :heavy_check_mark: | N/A | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirementcondition.md b/workflows_definition/docs/models/shared/steprequirementcondition.md new file mode 100755 index 000000000..c34adc7d8 --- /dev/null +++ b/workflows_definition/docs/models/shared/steprequirementcondition.md @@ -0,0 +1,8 @@ +# StepRequirementCondition + + +## Values + +| Name | Value | +| -------- | -------- | +| `CLOSED` | CLOSED | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steptype.md b/workflows_definition/docs/models/shared/steptype.md new file mode 100755 index 000000000..c52f47ba5 --- /dev/null +++ b/workflows_definition/docs/models/shared/steptype.md @@ -0,0 +1,9 @@ +# StepType + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `MANUAL` | MANUAL | +| `AUTOMATION` | AUTOMATION | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributes.md b/workflows_definition/docs/models/shared/updateentityattributes.md new file mode 100755 index 000000000..96c330966 --- /dev/null +++ b/workflows_definition/docs/models/shared/updateentityattributes.md @@ -0,0 +1,9 @@ +# UpdateEntityAttributes + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `source` | [UpdateEntityAttributesSource](../../models/shared/updateentityattributessource.md) | :heavy_check_mark: | N/A | +| `target` | [UpdateEntityAttributesTarget](../../models/shared/updateentityattributestarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributessource.md b/workflows_definition/docs/models/shared/updateentityattributessource.md new file mode 100755 index 000000000..9ffef4274 --- /dev/null +++ b/workflows_definition/docs/models/shared/updateentityattributessource.md @@ -0,0 +1,10 @@ +# UpdateEntityAttributesSource + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `WORKFLOW_STATUS` | workflow_status | +| `CURRENT_SECTION` | current_section | +| `CURRENT_STEP` | current_step | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributestarget.md b/workflows_definition/docs/models/shared/updateentityattributestarget.md new file mode 100755 index 000000000..fa35f003c --- /dev/null +++ b/workflows_definition/docs/models/shared/updateentityattributestarget.md @@ -0,0 +1,9 @@ +# UpdateEntityAttributesTarget + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `entity_attribute` | *str* | :heavy_check_mark: | N/A | my_status | +| `entity_schema` | *str* | :heavy_check_mark: | N/A | opportunity | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md new file mode 100755 index 000000000..eac0bb6a5 --- /dev/null +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -0,0 +1,22 @@ +# WorkflowDefinition + +Workflow Definition payload + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | +| `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | +| `flow` | list[*Any*] | :heavy_check_mark: | N/A | | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | +| `user_ids` | list[*float*] | :heavy_minus_sign: | This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md new file mode 100755 index 000000000..81764a592 --- /dev/null +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -0,0 +1,128 @@ +# closing_reason + +### Available Operations + +* [change_reason_status](#change_reason_status) - changeReasonStatus +* [create_closing_reason](#create_closing_reason) - createClosingReason +* [get_all_closing_reasons](#get_all_closing_reasons) - getAllClosingReasons + +## change_reason_status + +Change the status of a Closing Reason (eg. ACTIVE to INACTIVE). + +### Example Usage + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="", + ), +) + +req = operations.ChangeReasonStatusRequest( + change_reason_status_req=shared.ChangeReasonStatusReq( + status=shared.ClosingReasonsStatus.INACTIVE, + ), + reason_id='quibusdam', +) + +res = s.closing_reason.change_reason_status(req) + +if res.status_code == 200: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.ChangeReasonStatusRequest](../../models/operations/changereasonstatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.ChangeReasonStatusResponse](../../models/operations/changereasonstatusresponse.md)** + + +## create_closing_reason + +A created Closing Reason is stored for the organization and will be displayed in the library of reasons. + +### Example Usage + +```python +import sdk +from sdk.models import shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="", + ), +) + +req = shared.ClosingReason( + creation_time='unde', + id='d8d69a67-4e0f-4467-8c87-96ed151a05df', + last_update_time='quo', + status=shared.ClosingReasonsStatus.ACTIVE, + title='Dr.', +) + +res = s.closing_reason.create_closing_reason(req) + +if res.closing_reason is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `request` | [shared.ClosingReason](../../models/shared/closingreason.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.CreateClosingReasonResponse](../../models/operations/createclosingreasonresponse.md)** + + +## get_all_closing_reasons + +Get all Closing Reasons defined in the organization by default all Active. + +### Example Usage + +```python +import sdk +from sdk.models import operations + +s = sdk.SDK( + security=shared.Security( + bearer_auth="", + ), +) + +req = operations.GetAllClosingReasonsRequest( + include_inactive=False, +) + +res = s.closing_reason.get_all_closing_reasons(req) + +if res.closing_reasons is not None: + # handle response +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetAllClosingReasonsRequest](../../models/operations/getallclosingreasonsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetAllClosingReasonsResponse](../../models/operations/getallclosingreasonsresponse.md)** + diff --git a/workflows_definition/docs/sdk/README.md b/workflows_definition/docs/sdks/sdk/README.md similarity index 100% rename from workflows_definition/docs/sdk/README.md rename to workflows_definition/docs/sdks/sdk/README.md diff --git a/workflows_definition/docs/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md similarity index 75% rename from workflows_definition/docs/workflows/README.md rename to workflows_definition/docs/sdks/workflows/README.md index 245e65763..669f628f9 100755 --- a/workflows_definition/docs/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -229,6 +229,18 @@ if res.workflow_definition is not None: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `request` | [shared.WorkflowDefinition](../../models/shared/workflowdefinition.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.CreateDefinitionResponse](../../models/operations/createdefinitionresponse.md)** + + ## delete_definition Delete Workflow Definition. @@ -255,6 +267,18 @@ if res.status_code == 200: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `request` | [operations.DeleteDefinitionRequest](../../models/operations/deletedefinitionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.DeleteDefinitionResponse](../../models/operations/deletedefinitionresponse.md)** + + ## get_definition Get specific Definition by id from the Organization. @@ -281,6 +305,18 @@ if res.workflow_definition is not None: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `request` | [operations.GetDefinitionRequest](../../models/operations/getdefinitionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetDefinitionResponse](../../models/operations/getdefinitionresponse.md)** + + ## get_definitions Retrieve all Workflow Definitions from an Organization @@ -304,6 +340,12 @@ if res.workflow_definitions is not None: # handle response ``` + +### Response + +**[operations.GetDefinitionsResponse](../../models/operations/getdefinitionsresponse.md)** + + ## get_max_allowed_limit Get limits and number of created executions for an Organization. @@ -327,6 +369,12 @@ if res.max_allowed_limit is not None: # handle response ``` + +### Response + +**[operations.GetMaxAllowedLimitResponse](../../models/operations/getmaxallowedlimitresponse.md)** + + ## get_workflow_closing_reasons Returns all closing reasons defined for the workflow. @@ -353,6 +401,18 @@ if res.closing_reasons_ids is not None: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `request` | [operations.GetWorkflowClosingReasonsRequest](../../models/operations/getworkflowclosingreasonsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.GetWorkflowClosingReasonsResponse](../../models/operations/getworkflowclosingreasonsresponse.md)** + + ## set_workflow_closing_reasons Sets which closing reasons are defined for this workflow, based on the entire closing reasons catalog. @@ -386,6 +446,18 @@ if res.status_code == 200: # handle response ``` +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `request` | [operations.SetWorkflowClosingReasonsRequest](../../models/operations/setworkflowclosingreasonsrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.SetWorkflowClosingReasonsResponse](../../models/operations/setworkflowclosingreasonsresponse.md)** + + ## update_definition Update Workflow Definition. @@ -712,3 +784,15 @@ res = s.workflows.update_definition(req) if res.workflow_definition is not None: # handle response ``` + +### Parameters + +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `request` | [operations.UpdateDefinitionRequest](../../models/operations/updatedefinitionrequest.md) | :heavy_check_mark: | The request object to use for the request. | + + +### Response + +**[operations.UpdateDefinitionResponse](../../models/operations/updatedefinitionresponse.md)** + diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index c9b0762ed..4e5ecc2c9 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -42,7 +42,50 @@ src/sdk/models/shared/maxallowedlimit.py src/sdk/models/shared/closingreasonsids.py src/sdk/models/shared/security.py src/sdk/models/shared/__init__.py -docs/sdk/README.md -docs/closingreason/README.md -docs/workflows/README.md -USAGE.md \ No newline at end of file +docs/sdks/sdk/README.md +docs/sdks/closingreason/README.md +docs/sdks/workflows/README.md +USAGE.md +docs/models/operations/changereasonstatusrequest.md +docs/models/operations/changereasonstatusresponse.md +docs/models/operations/createclosingreasonresponse.md +docs/models/operations/getallclosingreasonsrequest.md +docs/models/operations/getallclosingreasonsresponse.md +docs/models/operations/createdefinitionresponse.md +docs/models/operations/deletedefinitionrequest.md +docs/models/operations/deletedefinitionresponse.md +docs/models/operations/getdefinitionrequest.md +docs/models/operations/getdefinitionresponse.md +docs/models/operations/getdefinitionsresponse.md +docs/models/operations/getmaxallowedlimitresponse.md +docs/models/operations/getworkflowclosingreasonsrequest.md +docs/models/operations/getworkflowclosingreasonsresponse.md +docs/models/operations/setworkflowclosingreasonsrequest.md +docs/models/operations/setworkflowclosingreasonsresponse.md +docs/models/operations/updatedefinitionrequest.md +docs/models/operations/updatedefinitionresponse.md +docs/models/shared/errorresp.md +docs/models/shared/changereasonstatusreq.md +docs/models/shared/closingreasonsstatus.md +docs/models/shared/closingreason.md +docs/models/shared/closingreasons.md +docs/models/shared/workflowdefinition.md +docs/models/shared/updateentityattributessource.md +docs/models/shared/updateentityattributestarget.md +docs/models/shared/updateentityattributes.md +docs/models/shared/section.md +docs/models/shared/itemtype.md +docs/models/shared/stepautomationconfig.md +docs/models/shared/step.md +docs/models/shared/steprequirementcondition.md +docs/models/shared/steprequirement.md +docs/models/shared/steptype.md +docs/models/shared/ecpdetails.md +docs/models/shared/dynamicduedateactiontypecondition.md +docs/models/shared/dynamicduedatetimeperiod.md +docs/models/shared/dynamicduedate.md +docs/models/shared/closingreasonid.md +docs/models/shared/definitionnotfoundresp.md +docs/models/shared/maxallowedlimit.md +docs/models/shared/closingreasonsids.md +docs/models/shared/security.md \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index f279721e7..24a9a977d 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.45.2 - generationVersion: 2.37.2 + speakeasyVersion: 1.47.0 + generationVersion: 2.39.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.20.1 + version: 1.21.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 6071c0bd9..0ee66b8e7 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.20.1", + version="1.21.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py index a348ab6d9..10f8c1bca 100755 --- a/workflows_definition/src/sdk/models/operations/changereasonstatus.py +++ b/workflows_definition/src/sdk/models/operations/changereasonstatus.py @@ -8,20 +8,23 @@ from typing import Optional + @dataclasses.dataclass class ChangeReasonStatusRequest: - reason_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'reasonId', 'style': 'simple', 'explode': False }}) change_reason_status_req: Optional[shared_changereasonstatusreq.ChangeReasonStatusReq] = dataclasses.field(default=None, metadata={'request': { 'media_type': 'application/json' }}) r"""change the status of a closing reason""" + + + @dataclasses.dataclass class ChangeReasonStatusResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""bad request""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py index 5d8e9c330..2a27c21c4 100755 --- a/workflows_definition/src/sdk/models/operations/createclosingreason.py +++ b/workflows_definition/src/sdk/models/operations/createclosingreason.py @@ -7,12 +7,13 @@ from typing import Optional + @dataclasses.dataclass class CreateClosingReasonResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() closing_reason: Optional[shared_closingreason.ClosingReason] = dataclasses.field(default=None) r"""closing reason is stored successfully in the repository""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py index bb0f40beb..f174dae2e 100755 --- a/workflows_definition/src/sdk/models/operations/createdefinition.py +++ b/workflows_definition/src/sdk/models/operations/createdefinition.py @@ -8,9 +8,9 @@ from typing import Optional + @dataclasses.dataclass class CreateDefinitionResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) @@ -18,4 +18,5 @@ class CreateDefinitionResponse: raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) r"""Success - if the definition is created successfully""" - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py index c0e4513f7..5e98df7c6 100755 --- a/workflows_definition/src/sdk/models/operations/deletedefinition.py +++ b/workflows_definition/src/sdk/models/operations/deletedefinition.py @@ -7,19 +7,22 @@ from typing import Optional + @dataclasses.dataclass class DeleteDefinitionRequest: - definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) r"""Id of the definition to de deleted.""" + + + @dataclasses.dataclass class DeleteDefinitionResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Failed to authenticate""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py index f1aef84a8..c4b3c628e 100755 --- a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py @@ -7,19 +7,22 @@ from typing import Optional + @dataclasses.dataclass class GetAllClosingReasonsRequest: - include_inactive: Optional[bool] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'includeInactive', 'style': 'form', 'explode': True }}) r"""Filter Closing Reasons by status like active inactiv""" + + + @dataclasses.dataclass class GetAllClosingReasonsResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() closing_reasons: Optional[shared_closingreasons.ClosingReasons] = dataclasses.field(default=None) r"""Returns the entire catalog of closing reasons per organization""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py index 006dcd093..ca3c2c6c2 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinition.py +++ b/workflows_definition/src/sdk/models/operations/getdefinition.py @@ -9,16 +9,18 @@ from typing import Optional + @dataclasses.dataclass class GetDefinitionRequest: - definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) r"""Short uuid (length 8) to identify the Workflow Definition.""" + + + @dataclasses.dataclass class GetDefinitionResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() definition_not_found_resp: Optional[shared_definitionnotfoundresp.DefinitionNotFoundResp] = dataclasses.field(default=None) @@ -28,4 +30,5 @@ class GetDefinitionResponse: raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) r"""Returns the Workflow definition""" - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py index c8e2ff92e..df8ec0834 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinitions.py +++ b/workflows_definition/src/sdk/models/operations/getdefinitions.py @@ -8,9 +8,9 @@ from typing import Optional + @dataclasses.dataclass class GetDefinitionsResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) @@ -18,4 +18,5 @@ class GetDefinitionsResponse: raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) workflow_definitions: Optional[list[shared_workflowdefinition.WorkflowDefinition]] = dataclasses.field(default=None) r"""Success - definitions loaded with success. Empty array if org has no definitions.""" - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py index 47a0dd570..6a23c0053 100755 --- a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py +++ b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py @@ -8,9 +8,9 @@ from typing import Optional + @dataclasses.dataclass class GetMaxAllowedLimitResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) @@ -18,4 +18,5 @@ class GetMaxAllowedLimitResponse: max_allowed_limit: Optional[shared_maxallowedlimit.MaxAllowedLimit] = dataclasses.field(default=None) r"""A combo of current number of workflows, and the max allowed number of workflows.""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py index a84825498..537537987 100755 --- a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py @@ -7,19 +7,22 @@ from typing import Optional + @dataclasses.dataclass class GetWorkflowClosingReasonsRequest: - definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) r"""ID of a workflow definition""" + + + @dataclasses.dataclass class GetWorkflowClosingReasonsResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() closing_reasons_ids: Optional[shared_closingreasonsids.ClosingReasonsIds] = dataclasses.field(default=None) r"""Returns the entire catalog of closing reasons for a specific workflow""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py index b5eb4d49b..12aa3391f 100755 --- a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py @@ -7,19 +7,22 @@ from typing import Optional + @dataclasses.dataclass class SetWorkflowClosingReasonsRequest: - closing_reasons_ids: shared_closingreasonsids.ClosingReasonsIds = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) r"""set all closing reasons for a specific definition""" definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) r"""ID of a workflow definition""" + + + @dataclasses.dataclass class SetWorkflowClosingReasonsResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py index a3143a7e0..06ff26961 100755 --- a/workflows_definition/src/sdk/models/operations/updatedefinition.py +++ b/workflows_definition/src/sdk/models/operations/updatedefinition.py @@ -8,18 +8,20 @@ from typing import Optional + @dataclasses.dataclass class UpdateDefinitionRequest: - definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) r"""Short uuid (length 8) to identify the Workflow Definition.""" workflow_definition: shared_workflowdefinition.WorkflowDefinition = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) r"""Workflow Definition payload""" + + + @dataclasses.dataclass class UpdateDefinitionResponse: - content_type: str = dataclasses.field() status_code: int = dataclasses.field() error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) @@ -27,4 +29,5 @@ class UpdateDefinitionResponse: raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) r"""Success - if the definition is updated successfully""" - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py index faaf340bd..57622e93f 100755 --- a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py +++ b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ChangeReasonStatusReq: r"""change the status of a closing reason""" - status: shared_closingreasonsstatus.ClosingReasonsStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py index 02e3e99fe..4a33d1db4 100755 --- a/workflows_definition/src/sdk/models/shared/closingreason.py +++ b/workflows_definition/src/sdk/models/shared/closingreason.py @@ -9,13 +9,14 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ClosingReason: r"""One Closing reason for a workflow""" - status: shared_closingreasonsstatus.ClosingReasonsStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) title: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('title') }}) creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/closingreasonid.py b/workflows_definition/src/sdk/models/shared/closingreasonid.py index 45ecb770d..8b097d6f2 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonid.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonid.py @@ -7,8 +7,9 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ClosingReasonID: - id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py index d2b79fa55..538b48a30 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasons.py +++ b/workflows_definition/src/sdk/models/shared/closingreasons.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ClosingReasons: r"""Returns the entire catalog of closing reasons per organization""" - reasons: list[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py index e66ee2fed..a4e625e61 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsids.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsids.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ClosingReasonsIds: r"""Returns the entire catalog of closing reasons for a specific workflow""" - reasons: list[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py index 502806a5d..f6d462b9d 100755 --- a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py +++ b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class DefinitionNotFoundResp: r"""Definition could be not found""" - message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py index be7f3c50b..427a64ef6 100755 --- a/workflows_definition/src/sdk/models/shared/dynamicduedate.py +++ b/workflows_definition/src/sdk/models/shared/dynamicduedate.py @@ -18,12 +18,13 @@ class DynamicDueDateTimePeriod(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class DynamicDueDate: r"""set a Duedate for a step then a specific""" - action_type_condition: DynamicDueDateActionTypeCondition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('actionTypeCondition') }}) number_of_units: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('numberOfUnits') }}) time_period: DynamicDueDateTimePeriod = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('timePeriod') }}) step_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('stepId'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/ecpdetails.py b/workflows_definition/src/sdk/models/shared/ecpdetails.py index de1fc09c8..234687aa9 100755 --- a/workflows_definition/src/sdk/models/shared/ecpdetails.py +++ b/workflows_definition/src/sdk/models/shared/ecpdetails.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ECPDetails: r"""Details regarding ECP for the workflow step""" - label: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('label'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py index 3c1ed3265..da08c2dd3 100755 --- a/workflows_definition/src/sdk/models/shared/errorresp.py +++ b/workflows_definition/src/sdk/models/shared/errorresp.py @@ -8,9 +8,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class ErrorResp: r"""bad request""" - message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py index 5e4d864cd..d4353a993 100755 --- a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py +++ b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py @@ -8,10 +8,11 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class MaxAllowedLimit: r"""A combo of current number of workflows, and the max allowed number of workflows.""" - current_no_of_workflows: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentNoOfWorkflows'), 'exclude': lambda f: f is None }}) max_allowed: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maxAllowed'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py index a8a709864..1209ca1a5 100755 --- a/workflows_definition/src/sdk/models/shared/section.py +++ b/workflows_definition/src/sdk/models/shared/section.py @@ -10,13 +10,14 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class Section: r"""A group of Steps that define the progress of the Workflow""" - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) steps: list[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/security.py b/workflows_definition/src/sdk/models/shared/security.py index cc58cbf76..b3eaf2ddc 100755 --- a/workflows_definition/src/sdk/models/shared/security.py +++ b/workflows_definition/src/sdk/models/shared/security.py @@ -4,8 +4,9 @@ import dataclasses + @dataclasses.dataclass class Security: - bearer_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/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index ded8e4946..bc14a8ffa 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -13,18 +13,20 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class StepAutomationConfig: - flow_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flowId') }}) r"""Id of the configured automation to run""" + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class Step: r"""Action that needs to be done in a Workflow""" - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) @@ -41,4 +43,5 @@ class Step: r"""requirements that need to be fulfilled in order to enable the step execution""" user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo""" - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index 9d455e1e9..30982d29e 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -12,11 +12,12 @@ class StepRequirementCondition(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class StepRequirement: r"""describe the requirement for step enablement""" - condition: StepRequirementCondition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py index de4e33b2a..864c33be9 100755 --- a/workflows_definition/src/sdk/models/shared/updateentityattributes.py +++ b/workflows_definition/src/sdk/models/shared/updateentityattributes.py @@ -13,17 +13,20 @@ class UpdateEntityAttributesSource(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class UpdateEntityAttributesTarget: - entity_attribute: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entityAttribute') }}) entity_schema: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entitySchema') }}) + + @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class UpdateEntityAttributes: - source: UpdateEntityAttributesSource = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) target: UpdateEntityAttributesTarget = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('target') }}) - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 87401399f..0904a6c16 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -11,10 +11,10 @@ @dataclass_json(undefined=Undefined.EXCLUDE) + @dataclasses.dataclass class WorkflowDefinition: r"""Workflow Definition payload""" - flow: list[Any] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) @@ -33,4 +33,5 @@ class WorkflowDefinition: update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo""" - \ No newline at end of file + + diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index bb09b287b..5f5fe90df 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 fbf5eb4595aad70ae75a75ca640ee092817f45a2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 11 Jun 2023 02:01:00 +0000 Subject: [PATCH 34/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 6b3ced748..ebb6b3e8a 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -232,4 +232,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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 02:00:45 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 24a9a977d..2ec7a1577 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.47.0 - generationVersion: 2.39.0 + speakeasyVersion: 1.47.1 + generationVersion: 2.39.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.21.0 + version: 1.21.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 0ee66b8e7..3a927fc89 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.21.0", + version="1.21.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 5f5fe90df..705db790a 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 d117aedce98a8d2500a16c41ee6a23bd34eda3cd Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 14 Jun 2023 01:45:16 +0000 Subject: [PATCH 35/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.47.3 --- workflows_definition/RELEASES.md | 8 ++++- .../docs/models/shared/step.md | 28 ++++++++--------- .../docs/models/shared/workflowdefinition.md | 30 +++++++++---------- workflows_definition/gen.yaml | 6 ++-- workflows_definition/setup.py | 2 +- .../src/sdk/models/shared/step.py | 5 +++- .../sdk/models/shared/workflowdefinition.py | 5 +++- .../src/sdk/sdkconfiguration.py | 4 +-- workflows_definition/src/sdk/utils/retries.py | 3 +- 9 files changed, 52 insertions(+), 39 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index ebb6b3e8a..b1e8be637 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -238,4 +238,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:45:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.47.3 (2.40.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md index 9867d7652..aca283051 100755 --- a/workflows_definition/docs/models/shared/step.md +++ b/workflows_definition/docs/models/shared/step.md @@ -5,17 +5,17 @@ Action that needs to be done in a Workflow ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | -| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | -| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | -| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `name` | *str* | :heavy_check_mark: | N/A | | -| `order` | *float* | :heavy_check_mark: | N/A | | -| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | -| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | -| `user_ids` | list[*float*] | :heavy_minus_sign: | This field is deprecated. Please use assignedTo | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | +| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | +| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `order` | *float* | :heavy_check_mark: | N/A | | +| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | +| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | :warning: **DEPRECATED**: this will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index eac0bb6a5..77e7e6cfc 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -5,18 +5,18 @@ Workflow Definition payload ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | -| `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | -| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | -| `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | -| `flow` | list[*Any*] | :heavy_check_mark: | N/A | | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | -| `name` | *str* | :heavy_check_mark: | N/A | | -| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | -| `user_ids` | list[*float*] | :heavy_minus_sign: | This field is deprecated. Please use assignedTo | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | +| `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | +| `flow` | list[*Any*] | :heavy_check_mark: | N/A | | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | +| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | :warning: **DEPRECATED**: this will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2ec7a1577..40bb4dcbb 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.47.1 - generationVersion: 2.39.2 + speakeasyVersion: 1.47.3 + generationVersion: 2.40.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.21.1 + version: 1.22.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 3a927fc89..8fe98820e 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.21.1", + version="1.22.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index bc14a8ffa..69ce7c740 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -42,6 +42,9 @@ class Step: requirements: Optional[list[shared_steprequirement.StepRequirement]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('requirements'), 'exclude': lambda f: f is None }}) r"""requirements that need to be fulfilled in order to enable the step execution""" user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) - r"""This field is deprecated. Please use assignedTo""" + r"""This field is deprecated. Please use assignedTo + + Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible + """ diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 0904a6c16..9aa949b7e 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -32,6 +32,9 @@ class WorkflowDefinition: r"""ISO String Date & Time""" update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) - r"""This field is deprecated. Please use assignedTo""" + r"""This field is deprecated. Please use assignedTo + + Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible + """ diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 705db790a..7aed4d172 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/retries.py b/workflows_definition/src/sdk/utils/retries.py index c6251d948..2138c1b5e 100755 --- a/workflows_definition/src/sdk/utils/retries.py +++ b/workflows_definition/src/sdk/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 d4b35e4ecca4848d9f056fb7429ce5068f641756 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 16 Jun 2023 01:45:27 +0000 Subject: [PATCH 36/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.48.0 --- workflows_definition/.gitignore | 2 +- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/files.gen | 1 - workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 6 files changed, 14 insertions(+), 9 deletions(-) diff --git a/workflows_definition/.gitignore b/workflows_definition/.gitignore index 9072ad43b..648876d29 100755 --- a/workflows_definition/.gitignore +++ b/workflows_definition/.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/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index b1e8be637..cdfdbc5dc 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -244,4 +244,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:45:00 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 4e5ecc2c9..5e0871f21 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -2,7 +2,6 @@ src/sdk/sdkconfiguration.py src/sdk/closing_reason.py src/sdk/workflows.py src/sdk/sdk.py -.gitignore pylintrc setup.py src/sdk/__init__.py diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 40bb4dcbb..b9dcd0b15 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.47.3 - generationVersion: 2.40.1 + speakeasyVersion: 1.48.0 + generationVersion: 2.41.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.22.0 + version: 1.23.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 8fe98820e..185c7d7c7 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.22.0", + version="1.23.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 7aed4d172..4888aa9ac 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 c463b3a450a44bff3c3180deb4e7c51b55f25962 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 20 Jun 2023 01:40:23 +0000 Subject: [PATCH 37/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.0 --- workflows_definition/.gitignore | 2 ++ workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/workflows_definition/.gitignore b/workflows_definition/.gitignore index 648876d29..8ac3f51d4 100755 --- a/workflows_definition/.gitignore +++ b/workflows_definition/.gitignore @@ -1,3 +1,5 @@ +.python-version +.DS_Store venv/ src/*.egg-info/ __pycache__/ diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index cdfdbc5dc..790325bab 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -250,4 +250,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:40:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index b9dcd0b15..c22d768f9 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.48.0 - generationVersion: 2.41.1 + speakeasyVersion: 1.49.0 + generationVersion: 2.41.4 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.23.0 + version: 1.23.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 185c7d7c7..f962f23bf 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.23.0", + version="1.23.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 4888aa9ac..699c0fc01 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 8edc70b1b56060f926c7d9082322f789b39b1c90 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 21 Jun 2023 01:41:49 +0000 Subject: [PATCH 38/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.49.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 790325bab..92e451910 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -256,4 +256,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:41:31 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index c22d768f9..24bc22774 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.49.0 - generationVersion: 2.41.4 + speakeasyVersion: 1.49.1 + generationVersion: 2.41.5 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.23.1 + version: 1.23.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f962f23bf..0b7c02359 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.23.1", + version="1.23.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 699c0fc01..387f0819c 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 d8c800ce65781694326b0a7a60dc2ffac10231be Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 23 Jun 2023 01:56:44 +0000 Subject: [PATCH 39/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.50.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 92e451910..985c66308 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -262,4 +262,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:56:28 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 24bc22774..1882357ad 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.49.1 - generationVersion: 2.41.5 + speakeasyVersion: 1.50.1 + generationVersion: 2.43.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.23.2 + version: 1.24.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 0b7c02359..9b74be861 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.23.2", + version="1.24.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 387f0819c..e6d17ff64 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 b45daf9ee7ed27b24f4ddfeae63a6a8abc5cf479 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 27 Jun 2023 01:58:42 +0000 Subject: [PATCH 40/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 985c66308..c67093cac 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -268,4 +268,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:58:27 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 1882357ad..d06c7cf1b 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.50.1 - generationVersion: 2.43.2 + speakeasyVersion: 1.51.1 + generationVersion: 2.50.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.24.0 + version: 1.25.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 9b74be861..28d19611f 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.24.0", + version="1.25.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index e6d17ff64..9399926df 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 4b0d1b89383b0d77b34c33aedae81f2739bd9c62 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 29 Jun 2023 01:53:28 +0000 Subject: [PATCH 41/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.51.3 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index c67093cac..0df6e758e 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -274,4 +274,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:53:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d06c7cf1b..8126ce13c 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.51.1 - generationVersion: 2.50.2 + speakeasyVersion: 1.51.3 + generationVersion: 2.52.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.25.0 + version: 1.26.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 28d19611f..0f05189a4 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.25.0", + version="1.26.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 9399926df..3fe18e913 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 a940948695d5eb610aec251b06757d4dce9b5955 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Jul 2023 02:03:14 +0000 Subject: [PATCH 42/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 0df6e758e..8e95b9ca3 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -280,4 +280,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy + +## 2023-07-01 02:02:58 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 8126ce13c..9537e0a19 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.51.3 - generationVersion: 2.52.2 + speakeasyVersion: 1.52.0 + generationVersion: 2.55.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.26.0 + version: 1.27.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 0f05189a4..00b90d3e7 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.26.0", + version="1.27.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 3fe18e913..f24378235 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 4fe87bd230b4779e591418763e2fe8782f172ab7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 6 Jul 2023 01:59:33 +0000 Subject: [PATCH 43/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.52.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 8e95b9ca3..cddfbc8c5 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -286,4 +286,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:59:15 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 9537e0a19..4d992f39b 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.52.0 - generationVersion: 2.55.0 + speakeasyVersion: 1.52.2 + generationVersion: 2.57.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.27.0 + version: 1.28.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 00b90d3e7..aed88b63f 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.27.0", + version="1.28.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index f24378235..1d6aeecb5 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 9c719eb3d21a43957b68dc04cae92e583a04dfb6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 7 Jul 2023 01:56:48 +0000 Subject: [PATCH 44/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index cddfbc8c5..efa5df2cd 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -292,4 +292,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:56:33 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 4d992f39b..f12cf6208 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.52.2 - generationVersion: 2.57.2 + speakeasyVersion: 1.53.0 + generationVersion: 2.58.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.28.0 + version: 1.29.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index aed88b63f..b20750bac 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.28.0", + version="1.29.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 1d6aeecb5..6ee616143 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 e308ae8309f1a144772865ca41b21bcbf8ec621a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 8 Jul 2023 01:55:56 +0000 Subject: [PATCH 45/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.53.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index efa5df2cd..82b6c1da8 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -298,4 +298,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:55:40 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.53.1 (2.58.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index f12cf6208..fac863f58 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.53.0 - generationVersion: 2.58.0 + speakeasyVersion: 1.53.1 + generationVersion: 2.58.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.29.0 + version: 1.29.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index b20750bac..49768b746 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.29.0", + version="1.29.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 6ee616143..a2275292c 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 da6f6815a22952dd729796508567032eb22931be Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 11 Jul 2023 01:49:26 +0000 Subject: [PATCH 46/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 82b6c1da8..e7c433b34 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -304,4 +304,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:49:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.56.0 (2.61.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index fac863f58..465a881ce 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.53.1 - generationVersion: 2.58.2 + speakeasyVersion: 1.56.0 + generationVersion: 2.61.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.29.1 + version: 1.30.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 49768b746..f1f078950 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.29.1", + version="1.30.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index a2275292c..ad1429170 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 eb84a4cfd68664ce4d48f05293644180e27f99b6 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Jul 2023 01:57:11 +0000 Subject: [PATCH 47/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.56.4 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index e7c433b34..07c480641 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -310,4 +310,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:56:56 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.56.4 (2.61.5) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 465a881ce..016bb7183 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.56.0 - generationVersion: 2.61.0 + speakeasyVersion: 1.56.4 + generationVersion: 2.61.5 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.30.0 + version: 1.30.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f1f078950..ff97cf303 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.30.0", + version="1.30.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index ad1429170..f31e0a13c 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 fb0013a0b5ba21bd3f879439a3898dc4303d6cd5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 13 Jul 2023 01:59:57 +0000 Subject: [PATCH 48/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.57.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/models/shared/step.py | 2 +- .../src/sdk/models/shared/workflowdefinition.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 6 files changed, 15 insertions(+), 9 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 07c480641..13954396a 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -316,4 +316,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:59:43 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.57.0 (2.62.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 016bb7183..6745152fc 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.56.4 - generationVersion: 2.61.5 + speakeasyVersion: 1.57.0 + generationVersion: 2.62.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.30.1 + version: 1.31.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index ff97cf303..2fc349dc9 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.30.1", + version="1.31.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index 69ce7c740..0a0b71f96 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -43,7 +43,7 @@ class Step: r"""requirements that need to be fulfilled in order to enable the step execution""" user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo - + Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible """ diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 9aa949b7e..585b574ea 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -33,7 +33,7 @@ class WorkflowDefinition: update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo - + Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible """ diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index f31e0a13c..a418ca173 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 72c9830d200a936e98a81fc618383a8e2a844cd9 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 14 Jul 2023 01:59:26 +0000 Subject: [PATCH 49/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.59.0 --- workflows_definition/README.md | 2 ++ workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/USAGE.md | 2 ++ workflows_definition/docs/sdks/closingreason/README.md | 2 +- workflows_definition/docs/sdks/workflows/README.md | 10 +++++----- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 8 files changed, 23 insertions(+), 13 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 003c9acb8..9f1491cb9 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -10,6 +10,8 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=workfl ## SDK Example Usage + + ```python import sdk from sdk.models import operations, shared diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 13954396a..e00764596 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -322,4 +322,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:59:12 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 8ff3b5b4d..9925afc9c 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -1,4 +1,6 @@ + + ```python import sdk from sdk.models import operations, shared diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index 81764a592..d068235f3 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -97,7 +97,7 @@ Get all Closing Reasons defined in the organization by default all Active. ```python import sdk -from sdk.models import operations +from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index 669f628f9..af0055beb 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -249,7 +249,7 @@ Delete Workflow Definition. ```python import sdk -from sdk.models import operations +from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( @@ -287,7 +287,7 @@ Get specific Definition by id from the Organization. ```python import sdk -from sdk.models import operations +from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( @@ -325,7 +325,7 @@ Retrieve all Workflow Definitions from an Organization ```python import sdk - +from sdk.models import shared s = sdk.SDK( security=shared.Security( @@ -354,7 +354,7 @@ Get limits and number of created executions for an Organization. ```python import sdk - +from sdk.models import shared s = sdk.SDK( security=shared.Security( @@ -383,7 +383,7 @@ Returns all closing reasons defined for the workflow. ```python import sdk -from sdk.models import operations +from sdk.models import operations, shared s = sdk.SDK( security=shared.Security( diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 6745152fc..da34e791e 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.57.0 - generationVersion: 2.62.1 + speakeasyVersion: 1.59.0 + generationVersion: 2.65.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.31.0 + version: 1.32.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 2fc349dc9..2ed17ab0e 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.31.0", + version="1.32.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index a418ca173..b43760f6b 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 63b724a7fd4babc1b2708f99ad9f5c610b6ab6b5 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 17 Jul 2023 02:02:58 +0000 Subject: [PATCH 50/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.60.0 --- workflows_definition/RELEASES.md | 8 +++++- workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 6 ++--- workflows_definition/pylintrc | 4 ++- workflows_definition/setup.py | 2 +- .../src/sdk/closing_reason.py | 6 +++++ .../src/sdk/models/errors/sdkerror.py | 24 +++++++++++++++++ .../src/sdk/sdkconfiguration.py | 4 +-- workflows_definition/src/sdk/workflows.py | 26 +++++++++++++++++++ 9 files changed, 73 insertions(+), 8 deletions(-) create mode 100755 workflows_definition/src/sdk/models/errors/sdkerror.py diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index e00764596..55edc96a3 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -328,4 +328,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-17 02:02:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 5e0871f21..d4e1e0373 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -6,6 +6,7 @@ pylintrc setup.py src/sdk/__init__.py src/sdk/models/__init__.py +src/sdk/models/errors/sdkerror.py src/sdk/utils/__init__.py src/sdk/utils/retries.py src/sdk/utils/utils.py diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index da34e791e..2cbf0c8b2 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.59.0 - generationVersion: 2.65.0 + speakeasyVersion: 1.60.0 + generationVersion: 2.66.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.32.0 + version: 1.33.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc index 1ce47d88d..21a389459 100755 --- a/workflows_definition/pylintrc +++ b/workflows_definition/pylintrc @@ -438,7 +438,9 @@ disable=raw-checker-failed, using-constant-test, too-many-statements, cyclic-import, - too-many-nested-blocks + too-many-nested-blocks, + too-many-boolean-expressions, + no-else-raise # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 2ed17ab0e..460271225 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.32.0", + version="1.33.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index e05d24387..0f0d0e543 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -39,6 +39,8 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -70,6 +72,8 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ClosingReason]) res.closing_reason = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -97,6 +101,8 @@ def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsReques if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ClosingReasons]) res.closing_reasons = 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/workflows_definition/src/sdk/models/errors/sdkerror.py b/workflows_definition/src/sdk/models/errors/sdkerror.py new file mode 100755 index 000000000..6bb02bbd6 --- /dev/null +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index b43760f6b..f06fa5614 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.32.0' - gen_version: str = '2.65.0' + sdk_version: str = '1.33.0' + gen_version: str = '2.66.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index 6e29dfdee..e8e3ba25d 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -39,10 +39,14 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.WorkflowDefinition]) res.workflow_definition = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code in [400, 401, 500]: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -71,6 +75,8 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -97,14 +103,20 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.WorkflowDefinition]) res.workflow_definition = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code in [400, 401, 500]: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code == 404: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.DefinitionNotFoundResp]) res.definition_not_found_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -131,10 +143,14 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[list[shared.WorkflowDefinition]]) res.workflow_definitions = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code == 500: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -161,10 +177,14 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.MaxAllowedLimit]) res.max_allowed_limit = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code == 500: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -191,6 +211,8 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ClosingReasonsIds]) res.closing_reasons_ids = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res @@ -249,10 +271,14 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.WorkflowDefinition]) res.workflow_definition = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) elif http_res.status_code in [400, 401, 500]: if utils.match_content_type(content_type, 'application/json'): out = utils.unmarshal_json(http_res.text, Optional[shared.ErrorResp]) res.error_resp = out + else: + raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) return res From e45c965e083f0fc3cc3f9b6631a757bc633de35c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 18 Jul 2023 02:07:12 +0000 Subject: [PATCH 51/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.61.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/closing_reason.py | 2 +- workflows_definition/src/sdk/models/errors/__init__.py | 4 ++++ workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/workflows.py | 2 +- 8 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 workflows_definition/src/sdk/models/errors/__init__.py diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 55edc96a3..4ab473df7 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -334,4 +334,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.60.0 (2.66.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-18 02:06:57 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index d4e1e0373..cfd9700fe 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -42,6 +42,7 @@ src/sdk/models/shared/maxallowedlimit.py src/sdk/models/shared/closingreasonsids.py src/sdk/models/shared/security.py src/sdk/models/shared/__init__.py +src/sdk/models/errors/__init__.py docs/sdks/sdk/README.md docs/sdks/closingreason/README.md docs/sdks/workflows/README.md diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2cbf0c8b2..6a43912a3 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.60.0 - generationVersion: 2.66.0 + speakeasyVersion: 1.61.0 + generationVersion: 2.70.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.33.0 + version: 1.34.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 460271225..778677deb 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.33.0", + version="1.34.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index 0f0d0e543..ef2d9097c 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from sdk import utils -from sdk.models import operations, shared +from sdk.models import errors, operations, shared from typing import Optional class ClosingReason: diff --git a/workflows_definition/src/sdk/models/errors/__init__.py b/workflows_definition/src/sdk/models/errors/__init__.py new file mode 100755 index 000000000..cfd848441 --- /dev/null +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index f06fa5614..ec76345a6 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/sdkconfiguration.py @@ -17,8 +17,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '1.0.0' - sdk_version: str = '1.33.0' - gen_version: str = '2.66.0' + sdk_version: str = '1.34.0' + gen_version: str = '2.70.0' def get_server_details(self) -> tuple[str, dict[str, str]]: if self.server_url: diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index e8e3ba25d..6afb42aca 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -2,7 +2,7 @@ from .sdkconfiguration import SDKConfiguration from sdk import utils -from sdk.models import operations, shared +from sdk.models import errors, operations, shared from typing import Optional class Workflows: From 00f16a8979a363471bf473ee8a2f6e5ecd43e811 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 19 Jul 2023 02:55:13 +0000 Subject: [PATCH 52/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.62.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 4ab473df7..26aa62a6a 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -340,4 +340,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.61.0 (2.70.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-19 02:54:56 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.62.1 (2.70.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 6a43912a3..e5287f5ca 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.61.0 - generationVersion: 2.70.0 + speakeasyVersion: 1.62.1 + generationVersion: 2.70.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.34.0 + version: 1.34.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 778677deb..9eac2ef1d 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.34.0", + version="1.34.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index ec76345a6..2bf3ae1aa 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 592e6d444a22f16b1a757c6049705ee0ed51ee03 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 22 Jul 2023 01:37:25 +0000 Subject: [PATCH 53/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.64.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/USAGE.md | 0 .../docs/models/operations/changereasonstatusrequest.md | 0 .../docs/models/operations/changereasonstatusresponse.md | 0 .../docs/models/operations/createclosingreasonresponse.md | 0 .../docs/models/operations/createdefinitionresponse.md | 0 .../docs/models/operations/deletedefinitionrequest.md | 0 .../docs/models/operations/deletedefinitionresponse.md | 0 .../docs/models/operations/getallclosingreasonsrequest.md | 0 .../models/operations/getallclosingreasonsresponse.md | 0 .../docs/models/operations/getdefinitionrequest.md | 0 .../docs/models/operations/getdefinitionresponse.md | 0 .../docs/models/operations/getdefinitionsresponse.md | 0 .../docs/models/operations/getmaxallowedlimitresponse.md | 0 .../models/operations/getworkflowclosingreasonsrequest.md | 0 .../operations/getworkflowclosingreasonsresponse.md | 0 .../models/operations/setworkflowclosingreasonsrequest.md | 0 .../operations/setworkflowclosingreasonsresponse.md | 0 .../docs/models/operations/updatedefinitionrequest.md | 0 .../docs/models/operations/updatedefinitionresponse.md | 0 .../docs/models/shared/changereasonstatusreq.md | 0 workflows_definition/docs/models/shared/closingreason.md | 0 .../docs/models/shared/closingreasonid.md | 0 workflows_definition/docs/models/shared/closingreasons.md | 0 .../docs/models/shared/closingreasonsids.md | 0 .../docs/models/shared/closingreasonsstatus.md | 0 .../docs/models/shared/definitionnotfoundresp.md | 0 workflows_definition/docs/models/shared/dynamicduedate.md | 0 .../models/shared/dynamicduedateactiontypecondition.md | 0 .../docs/models/shared/dynamicduedatetimeperiod.md | 0 workflows_definition/docs/models/shared/ecpdetails.md | 0 workflows_definition/docs/models/shared/errorresp.md | 0 workflows_definition/docs/models/shared/itemtype.md | 0 .../docs/models/shared/maxallowedlimit.md | 0 workflows_definition/docs/models/shared/section.md | 0 workflows_definition/docs/models/shared/security.md | 0 workflows_definition/docs/models/shared/step.md | 0 .../docs/models/shared/stepautomationconfig.md | 0 .../docs/models/shared/steprequirement.md | 0 .../docs/models/shared/steprequirementcondition.md | 0 workflows_definition/docs/models/shared/steptype.md | 0 .../docs/models/shared/updateentityattributes.md | 0 .../docs/models/shared/updateentityattributessource.md | 0 .../docs/models/shared/updateentityattributestarget.md | 0 .../docs/models/shared/workflowdefinition.md | 0 workflows_definition/docs/sdks/closingreason/README.md | 0 workflows_definition/docs/sdks/sdk/README.md | 0 workflows_definition/docs/sdks/workflows/README.md | 0 workflows_definition/gen.yaml | 6 +++--- workflows_definition/pylintrc | 0 workflows_definition/setup.py | 4 ++-- workflows_definition/src/sdk/__init__.py | 0 workflows_definition/src/sdk/closing_reason.py | 0 workflows_definition/src/sdk/models/__init__.py | 0 workflows_definition/src/sdk/models/errors/__init__.py | 0 workflows_definition/src/sdk/models/errors/sdkerror.py | 0 .../src/sdk/models/operations/__init__.py | 0 .../src/sdk/models/operations/changereasonstatus.py | 0 .../src/sdk/models/operations/createclosingreason.py | 0 .../src/sdk/models/operations/createdefinition.py | 0 .../src/sdk/models/operations/deletedefinition.py | 0 .../src/sdk/models/operations/getallclosingreasons.py | 0 .../src/sdk/models/operations/getdefinition.py | 0 .../src/sdk/models/operations/getdefinitions.py | 0 .../src/sdk/models/operations/getmaxallowedlimit.py | 0 .../sdk/models/operations/getworkflowclosingreasons.py | 0 .../sdk/models/operations/setworkflowclosingreasons.py | 0 .../src/sdk/models/operations/updatedefinition.py | 0 workflows_definition/src/sdk/models/shared/__init__.py | 0 .../src/sdk/models/shared/changereasonstatusreq.py | 0 .../src/sdk/models/shared/closingreason.py | 0 .../src/sdk/models/shared/closingreasonid.py | 0 .../src/sdk/models/shared/closingreasons.py | 0 .../src/sdk/models/shared/closingreasonsids.py | 0 .../src/sdk/models/shared/closingreasonsstatus.py | 0 .../src/sdk/models/shared/definitionnotfoundresp.py | 0 .../src/sdk/models/shared/dynamicduedate.py | 0 workflows_definition/src/sdk/models/shared/ecpdetails.py | 0 workflows_definition/src/sdk/models/shared/errorresp.py | 0 workflows_definition/src/sdk/models/shared/itemtype.py | 0 .../src/sdk/models/shared/maxallowedlimit.py | 0 workflows_definition/src/sdk/models/shared/section.py | 0 workflows_definition/src/sdk/models/shared/security.py | 0 workflows_definition/src/sdk/models/shared/step.py | 0 .../src/sdk/models/shared/steprequirement.py | 0 workflows_definition/src/sdk/models/shared/steptype.py | 0 .../src/sdk/models/shared/updateentityattributes.py | 0 .../src/sdk/models/shared/workflowdefinition.py | 0 workflows_definition/src/sdk/sdk.py | 0 workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/utils/__init__.py | 0 workflows_definition/src/sdk/utils/retries.py | 0 workflows_definition/src/sdk/utils/utils.py | 0 workflows_definition/src/sdk/workflows.py | 0 94 files changed, 14 insertions(+), 8 deletions(-) mode change 100755 => 100644 workflows_definition/USAGE.md mode change 100755 => 100644 workflows_definition/docs/models/operations/changereasonstatusrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/changereasonstatusresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/createclosingreasonresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/createdefinitionresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/deletedefinitionrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/deletedefinitionresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getallclosingreasonsrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getallclosingreasonsresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getdefinitionrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getdefinitionresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getdefinitionsresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md mode change 100755 => 100644 workflows_definition/docs/models/operations/updatedefinitionrequest.md mode change 100755 => 100644 workflows_definition/docs/models/operations/updatedefinitionresponse.md mode change 100755 => 100644 workflows_definition/docs/models/shared/changereasonstatusreq.md mode change 100755 => 100644 workflows_definition/docs/models/shared/closingreason.md mode change 100755 => 100644 workflows_definition/docs/models/shared/closingreasonid.md mode change 100755 => 100644 workflows_definition/docs/models/shared/closingreasons.md mode change 100755 => 100644 workflows_definition/docs/models/shared/closingreasonsids.md mode change 100755 => 100644 workflows_definition/docs/models/shared/closingreasonsstatus.md mode change 100755 => 100644 workflows_definition/docs/models/shared/definitionnotfoundresp.md mode change 100755 => 100644 workflows_definition/docs/models/shared/dynamicduedate.md mode change 100755 => 100644 workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md mode change 100755 => 100644 workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md mode change 100755 => 100644 workflows_definition/docs/models/shared/ecpdetails.md mode change 100755 => 100644 workflows_definition/docs/models/shared/errorresp.md mode change 100755 => 100644 workflows_definition/docs/models/shared/itemtype.md mode change 100755 => 100644 workflows_definition/docs/models/shared/maxallowedlimit.md mode change 100755 => 100644 workflows_definition/docs/models/shared/section.md mode change 100755 => 100644 workflows_definition/docs/models/shared/security.md mode change 100755 => 100644 workflows_definition/docs/models/shared/step.md mode change 100755 => 100644 workflows_definition/docs/models/shared/stepautomationconfig.md mode change 100755 => 100644 workflows_definition/docs/models/shared/steprequirement.md mode change 100755 => 100644 workflows_definition/docs/models/shared/steprequirementcondition.md mode change 100755 => 100644 workflows_definition/docs/models/shared/steptype.md mode change 100755 => 100644 workflows_definition/docs/models/shared/updateentityattributes.md mode change 100755 => 100644 workflows_definition/docs/models/shared/updateentityattributessource.md mode change 100755 => 100644 workflows_definition/docs/models/shared/updateentityattributestarget.md mode change 100755 => 100644 workflows_definition/docs/models/shared/workflowdefinition.md mode change 100755 => 100644 workflows_definition/docs/sdks/closingreason/README.md mode change 100755 => 100644 workflows_definition/docs/sdks/sdk/README.md mode change 100755 => 100644 workflows_definition/docs/sdks/workflows/README.md mode change 100755 => 100644 workflows_definition/pylintrc mode change 100755 => 100644 workflows_definition/setup.py mode change 100755 => 100644 workflows_definition/src/sdk/__init__.py mode change 100755 => 100644 workflows_definition/src/sdk/closing_reason.py mode change 100755 => 100644 workflows_definition/src/sdk/models/__init__.py mode change 100755 => 100644 workflows_definition/src/sdk/models/errors/__init__.py mode change 100755 => 100644 workflows_definition/src/sdk/models/errors/sdkerror.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/__init__.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/changereasonstatus.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/createclosingreason.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/createdefinition.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/deletedefinition.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/getallclosingreasons.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/getdefinition.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/getdefinitions.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py mode change 100755 => 100644 workflows_definition/src/sdk/models/operations/updatedefinition.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/__init__.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/changereasonstatusreq.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/closingreason.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/closingreasonid.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/closingreasons.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/closingreasonsids.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/closingreasonsstatus.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/dynamicduedate.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/ecpdetails.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/errorresp.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/itemtype.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/maxallowedlimit.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/section.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/security.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/step.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/steprequirement.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/steptype.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/updateentityattributes.py mode change 100755 => 100644 workflows_definition/src/sdk/models/shared/workflowdefinition.py mode change 100755 => 100644 workflows_definition/src/sdk/sdk.py mode change 100755 => 100644 workflows_definition/src/sdk/sdkconfiguration.py mode change 100755 => 100644 workflows_definition/src/sdk/utils/__init__.py mode change 100755 => 100644 workflows_definition/src/sdk/utils/retries.py mode change 100755 => 100644 workflows_definition/src/sdk/utils/utils.py mode change 100755 => 100644 workflows_definition/src/sdk/workflows.py diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 26aa62a6a..0c9bb094a 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -346,4 +346,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:37:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/changereasonstatusrequest.md b/workflows_definition/docs/models/operations/changereasonstatusrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/changereasonstatusresponse.md b/workflows_definition/docs/models/operations/changereasonstatusresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/createclosingreasonresponse.md b/workflows_definition/docs/models/operations/createclosingreasonresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/createdefinitionresponse.md b/workflows_definition/docs/models/operations/createdefinitionresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/deletedefinitionrequest.md b/workflows_definition/docs/models/operations/deletedefinitionrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/deletedefinitionresponse.md b/workflows_definition/docs/models/operations/deletedefinitionresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getdefinitionrequest.md b/workflows_definition/docs/models/operations/getdefinitionrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getdefinitionresponse.md b/workflows_definition/docs/models/operations/getdefinitionresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/updatedefinitionrequest.md b/workflows_definition/docs/models/operations/updatedefinitionrequest.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/operations/updatedefinitionresponse.md b/workflows_definition/docs/models/operations/updatedefinitionresponse.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/changereasonstatusreq.md b/workflows_definition/docs/models/shared/changereasonstatusreq.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/closingreason.md b/workflows_definition/docs/models/shared/closingreason.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/closingreasonid.md b/workflows_definition/docs/models/shared/closingreasonid.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/closingreasonsstatus.md b/workflows_definition/docs/models/shared/closingreasonsstatus.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/definitionnotfoundresp.md b/workflows_definition/docs/models/shared/definitionnotfoundresp.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/dynamicduedate.md b/workflows_definition/docs/models/shared/dynamicduedate.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md b/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md b/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/ecpdetails.md b/workflows_definition/docs/models/shared/ecpdetails.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/errorresp.md b/workflows_definition/docs/models/shared/errorresp.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/itemtype.md b/workflows_definition/docs/models/shared/itemtype.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/maxallowedlimit.md b/workflows_definition/docs/models/shared/maxallowedlimit.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/section.md b/workflows_definition/docs/models/shared/section.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/security.md b/workflows_definition/docs/models/shared/security.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/stepautomationconfig.md b/workflows_definition/docs/models/shared/stepautomationconfig.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/steprequirement.md b/workflows_definition/docs/models/shared/steprequirement.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/steprequirementcondition.md b/workflows_definition/docs/models/shared/steprequirementcondition.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/steptype.md b/workflows_definition/docs/models/shared/steptype.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/updateentityattributes.md b/workflows_definition/docs/models/shared/updateentityattributes.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/updateentityattributessource.md b/workflows_definition/docs/models/shared/updateentityattributessource.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/updateentityattributestarget.md b/workflows_definition/docs/models/shared/updateentityattributestarget.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/sdks/sdk/README.md b/workflows_definition/docs/sdks/sdk/README.md old mode 100755 new mode 100644 diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md old mode 100755 new mode 100644 diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index e5287f5ca..72b0dbf4a 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.62.1 - generationVersion: 2.70.2 + speakeasyVersion: 1.64.0 + generationVersion: 2.71.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.34.1 + version: 1.35.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc old mode 100755 new mode 100644 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py old mode 100755 new mode 100644 index 9eac2ef1d..c22d55a88 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.34.1", + version="1.35.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", 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/workflows_definition/src/sdk/__init__.py b/workflows_definition/src/sdk/__init__.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/__init__.py b/workflows_definition/src/sdk/models/__init__.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/errors/__init__.py b/workflows_definition/src/sdk/models/errors/__init__.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/errors/sdkerror.py b/workflows_definition/src/sdk/models/errors/sdkerror.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/__init__.py b/workflows_definition/src/sdk/models/operations/__init__.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/closingreasonid.py b/workflows_definition/src/sdk/models/shared/closingreasonid.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsstatus.py b/workflows_definition/src/sdk/models/shared/closingreasonsstatus.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/ecpdetails.py b/workflows_definition/src/sdk/models/shared/ecpdetails.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/itemtype.py b/workflows_definition/src/sdk/models/shared/itemtype.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/security.py b/workflows_definition/src/sdk/models/shared/security.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/steptype.py b/workflows_definition/src/sdk/models/shared/steptype.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py old mode 100755 new mode 100644 index 2bf3ae1aa..1ebfccf19 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/__init__.py b/workflows_definition/src/sdk/utils/__init__.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/utils/retries.py b/workflows_definition/src/sdk/utils/retries.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py old mode 100755 new mode 100644 diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py old mode 100755 new mode 100644 From 10c56a57f8e6e1d713d6447ee01fcb4f9fd27cbc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Jul 2023 01:40:51 +0000 Subject: [PATCH 54/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.0 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/USAGE.md | 0 .../docs/models/operations/changereasonstatusrequest.md | 0 .../docs/models/operations/changereasonstatusresponse.md | 0 .../docs/models/operations/createclosingreasonresponse.md | 0 .../docs/models/operations/createdefinitionresponse.md | 0 .../docs/models/operations/deletedefinitionrequest.md | 0 .../docs/models/operations/deletedefinitionresponse.md | 0 .../docs/models/operations/getallclosingreasonsrequest.md | 0 .../models/operations/getallclosingreasonsresponse.md | 0 .../docs/models/operations/getdefinitionrequest.md | 0 .../docs/models/operations/getdefinitionresponse.md | 0 .../docs/models/operations/getdefinitionsresponse.md | 0 .../docs/models/operations/getmaxallowedlimitresponse.md | 0 .../models/operations/getworkflowclosingreasonsrequest.md | 0 .../operations/getworkflowclosingreasonsresponse.md | 0 .../models/operations/setworkflowclosingreasonsrequest.md | 0 .../operations/setworkflowclosingreasonsresponse.md | 0 .../docs/models/operations/updatedefinitionrequest.md | 0 .../docs/models/operations/updatedefinitionresponse.md | 0 .../docs/models/shared/changereasonstatusreq.md | 0 workflows_definition/docs/models/shared/closingreason.md | 0 .../docs/models/shared/closingreasonid.md | 0 workflows_definition/docs/models/shared/closingreasons.md | 0 .../docs/models/shared/closingreasonsids.md | 0 .../docs/models/shared/closingreasonsstatus.md | 0 .../docs/models/shared/definitionnotfoundresp.md | 0 workflows_definition/docs/models/shared/dynamicduedate.md | 0 .../models/shared/dynamicduedateactiontypecondition.md | 0 .../docs/models/shared/dynamicduedatetimeperiod.md | 0 workflows_definition/docs/models/shared/ecpdetails.md | 0 workflows_definition/docs/models/shared/errorresp.md | 0 workflows_definition/docs/models/shared/itemtype.md | 0 .../docs/models/shared/maxallowedlimit.md | 0 workflows_definition/docs/models/shared/section.md | 0 workflows_definition/docs/models/shared/security.md | 0 workflows_definition/docs/models/shared/step.md | 0 .../docs/models/shared/stepautomationconfig.md | 0 .../docs/models/shared/steprequirement.md | 0 .../docs/models/shared/steprequirementcondition.md | 0 workflows_definition/docs/models/shared/steptype.md | 0 .../docs/models/shared/updateentityattributes.md | 0 .../docs/models/shared/updateentityattributessource.md | 0 .../docs/models/shared/updateentityattributestarget.md | 0 .../docs/models/shared/workflowdefinition.md | 0 workflows_definition/docs/sdks/closingreason/README.md | 0 workflows_definition/docs/sdks/sdk/README.md | 0 workflows_definition/docs/sdks/workflows/README.md | 0 workflows_definition/gen.yaml | 6 +++--- workflows_definition/pylintrc | 0 workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/__init__.py | 0 workflows_definition/src/sdk/closing_reason.py | 0 workflows_definition/src/sdk/models/__init__.py | 0 workflows_definition/src/sdk/models/errors/__init__.py | 0 workflows_definition/src/sdk/models/errors/sdkerror.py | 0 .../src/sdk/models/operations/__init__.py | 0 .../src/sdk/models/operations/changereasonstatus.py | 0 .../src/sdk/models/operations/createclosingreason.py | 0 .../src/sdk/models/operations/createdefinition.py | 0 .../src/sdk/models/operations/deletedefinition.py | 0 .../src/sdk/models/operations/getallclosingreasons.py | 0 .../src/sdk/models/operations/getdefinition.py | 0 .../src/sdk/models/operations/getdefinitions.py | 0 .../src/sdk/models/operations/getmaxallowedlimit.py | 0 .../sdk/models/operations/getworkflowclosingreasons.py | 0 .../sdk/models/operations/setworkflowclosingreasons.py | 0 .../src/sdk/models/operations/updatedefinition.py | 0 workflows_definition/src/sdk/models/shared/__init__.py | 0 .../src/sdk/models/shared/changereasonstatusreq.py | 0 .../src/sdk/models/shared/closingreason.py | 0 .../src/sdk/models/shared/closingreasonid.py | 0 .../src/sdk/models/shared/closingreasons.py | 0 .../src/sdk/models/shared/closingreasonsids.py | 0 .../src/sdk/models/shared/closingreasonsstatus.py | 0 .../src/sdk/models/shared/definitionnotfoundresp.py | 0 .../src/sdk/models/shared/dynamicduedate.py | 0 workflows_definition/src/sdk/models/shared/ecpdetails.py | 0 workflows_definition/src/sdk/models/shared/errorresp.py | 0 workflows_definition/src/sdk/models/shared/itemtype.py | 0 .../src/sdk/models/shared/maxallowedlimit.py | 0 workflows_definition/src/sdk/models/shared/section.py | 0 workflows_definition/src/sdk/models/shared/security.py | 0 workflows_definition/src/sdk/models/shared/step.py | 0 .../src/sdk/models/shared/steprequirement.py | 0 workflows_definition/src/sdk/models/shared/steptype.py | 0 .../src/sdk/models/shared/updateentityattributes.py | 0 .../src/sdk/models/shared/workflowdefinition.py | 0 workflows_definition/src/sdk/sdk.py | 0 workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/utils/__init__.py | 0 workflows_definition/src/sdk/utils/retries.py | 0 workflows_definition/src/sdk/utils/utils.py | 0 workflows_definition/src/sdk/workflows.py | 0 94 files changed, 13 insertions(+), 7 deletions(-) mode change 100644 => 100755 workflows_definition/USAGE.md mode change 100644 => 100755 workflows_definition/docs/models/operations/changereasonstatusrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/changereasonstatusresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/createclosingreasonresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/createdefinitionresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/deletedefinitionrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/deletedefinitionresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getallclosingreasonsrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getallclosingreasonsresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getdefinitionrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getdefinitionresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getdefinitionsresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md mode change 100644 => 100755 workflows_definition/docs/models/operations/updatedefinitionrequest.md mode change 100644 => 100755 workflows_definition/docs/models/operations/updatedefinitionresponse.md mode change 100644 => 100755 workflows_definition/docs/models/shared/changereasonstatusreq.md mode change 100644 => 100755 workflows_definition/docs/models/shared/closingreason.md mode change 100644 => 100755 workflows_definition/docs/models/shared/closingreasonid.md mode change 100644 => 100755 workflows_definition/docs/models/shared/closingreasons.md mode change 100644 => 100755 workflows_definition/docs/models/shared/closingreasonsids.md mode change 100644 => 100755 workflows_definition/docs/models/shared/closingreasonsstatus.md mode change 100644 => 100755 workflows_definition/docs/models/shared/definitionnotfoundresp.md mode change 100644 => 100755 workflows_definition/docs/models/shared/dynamicduedate.md mode change 100644 => 100755 workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md mode change 100644 => 100755 workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md mode change 100644 => 100755 workflows_definition/docs/models/shared/ecpdetails.md mode change 100644 => 100755 workflows_definition/docs/models/shared/errorresp.md mode change 100644 => 100755 workflows_definition/docs/models/shared/itemtype.md mode change 100644 => 100755 workflows_definition/docs/models/shared/maxallowedlimit.md mode change 100644 => 100755 workflows_definition/docs/models/shared/section.md mode change 100644 => 100755 workflows_definition/docs/models/shared/security.md mode change 100644 => 100755 workflows_definition/docs/models/shared/step.md mode change 100644 => 100755 workflows_definition/docs/models/shared/stepautomationconfig.md mode change 100644 => 100755 workflows_definition/docs/models/shared/steprequirement.md mode change 100644 => 100755 workflows_definition/docs/models/shared/steprequirementcondition.md mode change 100644 => 100755 workflows_definition/docs/models/shared/steptype.md mode change 100644 => 100755 workflows_definition/docs/models/shared/updateentityattributes.md mode change 100644 => 100755 workflows_definition/docs/models/shared/updateentityattributessource.md mode change 100644 => 100755 workflows_definition/docs/models/shared/updateentityattributestarget.md mode change 100644 => 100755 workflows_definition/docs/models/shared/workflowdefinition.md mode change 100644 => 100755 workflows_definition/docs/sdks/closingreason/README.md mode change 100644 => 100755 workflows_definition/docs/sdks/sdk/README.md mode change 100644 => 100755 workflows_definition/docs/sdks/workflows/README.md mode change 100644 => 100755 workflows_definition/pylintrc mode change 100644 => 100755 workflows_definition/setup.py mode change 100644 => 100755 workflows_definition/src/sdk/__init__.py mode change 100644 => 100755 workflows_definition/src/sdk/closing_reason.py mode change 100644 => 100755 workflows_definition/src/sdk/models/__init__.py mode change 100644 => 100755 workflows_definition/src/sdk/models/errors/__init__.py mode change 100644 => 100755 workflows_definition/src/sdk/models/errors/sdkerror.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/__init__.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/changereasonstatus.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/createclosingreason.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/createdefinition.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/deletedefinition.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/getallclosingreasons.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/getdefinition.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/getdefinitions.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py mode change 100644 => 100755 workflows_definition/src/sdk/models/operations/updatedefinition.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/__init__.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/changereasonstatusreq.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/closingreason.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/closingreasonid.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/closingreasons.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/closingreasonsids.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/closingreasonsstatus.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/dynamicduedate.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/ecpdetails.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/errorresp.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/itemtype.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/maxallowedlimit.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/section.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/security.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/step.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/steprequirement.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/steptype.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/updateentityattributes.py mode change 100644 => 100755 workflows_definition/src/sdk/models/shared/workflowdefinition.py mode change 100644 => 100755 workflows_definition/src/sdk/sdk.py mode change 100644 => 100755 workflows_definition/src/sdk/sdkconfiguration.py mode change 100644 => 100755 workflows_definition/src/sdk/utils/__init__.py mode change 100644 => 100755 workflows_definition/src/sdk/utils/retries.py mode change 100644 => 100755 workflows_definition/src/sdk/utils/utils.py mode change 100644 => 100755 workflows_definition/src/sdk/workflows.py diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 0c9bb094a..cc88a7c25 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -352,4 +352,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:40:36 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/changereasonstatusrequest.md b/workflows_definition/docs/models/operations/changereasonstatusrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/changereasonstatusresponse.md b/workflows_definition/docs/models/operations/changereasonstatusresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/createclosingreasonresponse.md b/workflows_definition/docs/models/operations/createclosingreasonresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/createdefinitionresponse.md b/workflows_definition/docs/models/operations/createdefinitionresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/deletedefinitionrequest.md b/workflows_definition/docs/models/operations/deletedefinitionrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/deletedefinitionresponse.md b/workflows_definition/docs/models/operations/deletedefinitionresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getallclosingreasonsrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getdefinitionrequest.md b/workflows_definition/docs/models/operations/getdefinitionrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getdefinitionresponse.md b/workflows_definition/docs/models/operations/getdefinitionresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/updatedefinitionrequest.md b/workflows_definition/docs/models/operations/updatedefinitionrequest.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/operations/updatedefinitionresponse.md b/workflows_definition/docs/models/operations/updatedefinitionresponse.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/changereasonstatusreq.md b/workflows_definition/docs/models/shared/changereasonstatusreq.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/closingreason.md b/workflows_definition/docs/models/shared/closingreason.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/closingreasonid.md b/workflows_definition/docs/models/shared/closingreasonid.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/closingreasonsstatus.md b/workflows_definition/docs/models/shared/closingreasonsstatus.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/definitionnotfoundresp.md b/workflows_definition/docs/models/shared/definitionnotfoundresp.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/dynamicduedate.md b/workflows_definition/docs/models/shared/dynamicduedate.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md b/workflows_definition/docs/models/shared/dynamicduedateactiontypecondition.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md b/workflows_definition/docs/models/shared/dynamicduedatetimeperiod.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/ecpdetails.md b/workflows_definition/docs/models/shared/ecpdetails.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/errorresp.md b/workflows_definition/docs/models/shared/errorresp.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/itemtype.md b/workflows_definition/docs/models/shared/itemtype.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/maxallowedlimit.md b/workflows_definition/docs/models/shared/maxallowedlimit.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/section.md b/workflows_definition/docs/models/shared/section.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/security.md b/workflows_definition/docs/models/shared/security.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/stepautomationconfig.md b/workflows_definition/docs/models/shared/stepautomationconfig.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/steprequirement.md b/workflows_definition/docs/models/shared/steprequirement.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/steprequirementcondition.md b/workflows_definition/docs/models/shared/steprequirementcondition.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/steptype.md b/workflows_definition/docs/models/shared/steptype.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/updateentityattributes.md b/workflows_definition/docs/models/shared/updateentityattributes.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/updateentityattributessource.md b/workflows_definition/docs/models/shared/updateentityattributessource.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/updateentityattributestarget.md b/workflows_definition/docs/models/shared/updateentityattributestarget.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/sdks/sdk/README.md b/workflows_definition/docs/sdks/sdk/README.md old mode 100644 new mode 100755 diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md old mode 100644 new mode 100755 diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 72b0dbf4a..0d91c2640 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.64.0 - generationVersion: 2.71.0 + speakeasyVersion: 1.65.0 + generationVersion: 2.73.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.35.0 + version: 1.36.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc old mode 100644 new mode 100755 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py old mode 100644 new mode 100755 index c22d55a88..4b58d5fab --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.35.0", + version="1.36.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/__init__.py b/workflows_definition/src/sdk/__init__.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/__init__.py b/workflows_definition/src/sdk/models/__init__.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/errors/__init__.py b/workflows_definition/src/sdk/models/errors/__init__.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/errors/sdkerror.py b/workflows_definition/src/sdk/models/errors/sdkerror.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/__init__.py b/workflows_definition/src/sdk/models/operations/__init__.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/closingreasonid.py b/workflows_definition/src/sdk/models/shared/closingreasonid.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsstatus.py b/workflows_definition/src/sdk/models/shared/closingreasonsstatus.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/ecpdetails.py b/workflows_definition/src/sdk/models/shared/ecpdetails.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/itemtype.py b/workflows_definition/src/sdk/models/shared/itemtype.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/security.py b/workflows_definition/src/sdk/models/shared/security.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/steptype.py b/workflows_definition/src/sdk/models/shared/steptype.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py old mode 100644 new mode 100755 index 1ebfccf19..8e1eac8ee --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/__init__.py b/workflows_definition/src/sdk/utils/__init__.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/utils/retries.py b/workflows_definition/src/sdk/utils/retries.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py old mode 100644 new mode 100755 diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py old mode 100644 new mode 100755 From 8e22f547e1e844116e3fca417140b6a86cdc0845 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 27 Jul 2023 01:22:52 +0000 Subject: [PATCH 55/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index cc88a7c25..fc6b9d5dc 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -358,4 +358,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.65.0 (2.73.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-27 01:22:32 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.65.1 (2.73.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 0d91c2640..5e02bfb57 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.65.0 - generationVersion: 2.73.0 + speakeasyVersion: 1.65.1 + generationVersion: 2.73.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.36.0 + version: 1.36.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4b58d5fab..92edab0c7 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.36.0", + version="1.36.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 8e1eac8ee..86f0268b0 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 1a5ebb8699dcfb11ca2ae86f913d63e310a9e429 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 28 Jul 2023 01:24:11 +0000 Subject: [PATCH 56/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.65.2 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/workflows.py | 10 +++++----- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index fc6b9d5dc..7e9e22d8a 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -364,4 +364,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:23:55 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.65.2 (2.75.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 5e02bfb57..86158994f 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.65.1 - generationVersion: 2.73.1 + speakeasyVersion: 1.65.2 + generationVersion: 2.75.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.36.1 + version: 1.37.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 92edab0c7..436cf95f3 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.36.1", + version="1.37.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 86f0268b0..c103c2096 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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: diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index 6afb42aca..408a428bc 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -25,7 +25,7 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') - headers['Accept'] = 'application/json;q=1, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -89,7 +89,7 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations url = utils.generate_url(operations.GetDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -129,7 +129,7 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: url = base_url + '/v1/workflows/definitions' headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -163,7 +163,7 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: url = base_url + '/v1/workflows/limits/max-allowed' headers = {} - headers['Accept'] = 'application/json;q=1, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client @@ -257,7 +257,7 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') - headers['Accept'] = 'application/json;q=1, application/json;q=0' + headers['Accept'] = 'application/json' headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' client = self.sdk_configuration.security_client From 95cdffe5aadea1e014b03088c210dc4682f1f646 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 1 Aug 2023 01:42:34 +0000 Subject: [PATCH 57/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.66.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 7e9e22d8a..180a87fa7 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -370,4 +370,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:42:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.66.1 (2.75.2) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 86158994f..2aa4d17ac 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.65.2 - generationVersion: 2.75.1 + speakeasyVersion: 1.66.1 + generationVersion: 2.75.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.37.0 + version: 1.37.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 436cf95f3..8f3174e27 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.37.0", + version="1.37.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index c103c2096..3fe90bed9 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 9c723b79239fc3b3ee2f39c18c70b2b532be2b8e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 3 Aug 2023 01:25:40 +0000 Subject: [PATCH 58/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.1 --- workflows_definition/RELEASES.md | 8 ++++- .../docs/models/shared/step.md | 28 ++++++++--------- .../docs/models/shared/workflowdefinition.md | 30 +++++++++---------- workflows_definition/gen.yaml | 6 ++-- workflows_definition/setup.py | 2 +- .../src/sdk/models/shared/step.py | 2 +- .../sdk/models/shared/workflowdefinition.py | 2 +- .../src/sdk/sdkconfiguration.py | 4 +-- 8 files changed, 44 insertions(+), 38 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 180a87fa7..c476080e6 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -376,4 +376,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:25:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.68.1 (2.77.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md index aca283051..83c7abf56 100755 --- a/workflows_definition/docs/models/shared/step.md +++ b/workflows_definition/docs/models/shared/step.md @@ -5,17 +5,17 @@ Action that needs to be done in a Workflow ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | -| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | -| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | -| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `name` | *str* | :heavy_check_mark: | N/A | | -| `order` | *float* | :heavy_check_mark: | N/A | | -| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | -| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | -| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | :warning: **DEPRECATED**: this will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | +| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | +| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `order` | *float* | :heavy_check_mark: | N/A | | +| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | +| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index 77e7e6cfc..bd898a745 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -5,18 +5,18 @@ Workflow Definition payload ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | -| `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | -| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | -| `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | -| `flow` | list[*Any*] | :heavy_check_mark: | N/A | | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | -| `name` | *str* | :heavy_check_mark: | N/A | | -| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | -| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | :warning: **DEPRECATED**: this will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | +| `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | +| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | +| `flow` | list[*Any*] | :heavy_check_mark: | N/A | | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | +| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2aa4d17ac..ce96b557d 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.66.1 - generationVersion: 2.75.2 + speakeasyVersion: 1.68.1 + generationVersion: 2.77.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.37.1 + version: 1.38.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 8f3174e27..de26c672f 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.37.1", + version="1.38.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index 0a0b71f96..d24ce5ba3 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -44,7 +44,7 @@ class Step: user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo - Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible + Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. """ diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 585b574ea..c7a189a59 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -34,7 +34,7 @@ class WorkflowDefinition: user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo - Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible + Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. """ diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 3fe90bed9..196f59443 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 1608c47631550dc49477536311e1322475e520f4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 4 Aug 2023 01:26:32 +0000 Subject: [PATCH 59/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.68.3 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 6 +++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/utils/utils.py | 5 ++++- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index c476080e6..03c59f43c 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -382,4 +382,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.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:26:16 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index ce96b557d..e2f72f25c 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,14 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.68.1 - generationVersion: 2.77.1 + speakeasyVersion: 1.68.3 + generationVersion: 2.81.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false python: - version: 1.38.0 + version: 1.39.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index de26c672f..cb9b9dc19 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.38.0", + version="1.39.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 196f59443..06b0ed70e 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 6b39ecf74..3456af651 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 e06bd42c89c8d32237fcc6579de31a7357cafa29 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 8 Aug 2023 01:23:51 +0000 Subject: [PATCH 60/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.69.1 --- workflows_definition/RELEASES.md | 8 +++++++- workflows_definition/gen.yaml | 12 +++++++++--- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 03c59f43c..6c54f8a89 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -388,4 +388,10 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.68.3 (2.81.1) https://github.com/speakeasy-api/speakeasy + +## 2023-08-08 01:23:38 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index e2f72f25c..845b807f6 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,14 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.68.3 - generationVersion: 2.81.1 + speakeasyVersion: 1.69.1 + generationVersion: 2.82.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false +features: + python: + core: 2.82.0 + deprecations: 2.81.1 + globalSecurity: 2.81.1 + globalServerURLs: 2.81.1 python: - version: 1.39.0 + version: 1.40.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index cb9b9dc19..8ba4f7775 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.39.0", + version="1.40.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 06b0ed70e..846745977 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 5b9e4a7ea07b50e925b1701087dc69c2bff39106 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 15 Aug 2023 01:13:16 +0000 Subject: [PATCH 61/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.72.0 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 6c54f8a89..913cb1e63 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -394,4 +394,12 @@ Based on: ### Changes Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml -- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.69.1 (2.82.0) https://github.com/speakeasy-api/speakeasy + +## 2023-08-15 01:13:01 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 845b807f6..c311f8aca 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.69.1 - generationVersion: 2.82.0 + speakeasyVersion: 1.72.0 + generationVersion: 2.84.1 generation: sdkClassName: SDK singleTagPerOp: false @@ -13,9 +13,9 @@ features: core: 2.82.0 deprecations: 2.81.1 globalSecurity: 2.81.1 - globalServerURLs: 2.81.1 + globalServerURLs: 2.82.0 python: - version: 1.40.0 + version: 1.41.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 8ba4f7775..2a2864639 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.40.0", + version="1.41.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 846745977..e73856bc0 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 e591103be35ac2a8e2aba5e3e9cca22c65084d2e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 19 Aug 2023 01:10:43 +0000 Subject: [PATCH 62/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.3 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/utils/utils.py | 4 ++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 913cb1e63..dd7b981a9 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -402,4 +402,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.72.0 (2.84.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.0] workflows_definition \ No newline at end of file +- [python v1.41.0] workflows_definition + +## 2023-08-19 01:10:26 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index c311f8aca..d7f5bb9a9 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.72.0 - generationVersion: 2.84.1 + speakeasyVersion: 1.74.3 + generationVersion: 2.86.6 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.0 + core: 2.82.1 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.41.0 + version: 1.41.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 2a2864639..298be3c9c 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.41.0", + version="1.41.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index e73856bc0..b0920caeb 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 3456af651..ea9792d0d 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 70b3ed60a238a4a5e2845d6f3b66cb505b07f668 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 25 Aug 2023 01:14:32 +0000 Subject: [PATCH 63/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.11 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index dd7b981a9..d22b08e14 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -410,4 +410,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.74.3 (2.86.6) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.1] workflows_definition \ No newline at end of file +- [python v1.41.1] workflows_definition + +## 2023-08-25 01:14:15 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.41.2] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index d7f5bb9a9..77a23e0e8 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.74.3 - generationVersion: 2.86.6 + speakeasyVersion: 1.74.11 + generationVersion: 2.87.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.1 + core: 2.82.2 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.41.1 + version: 1.41.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 298be3c9c..085fe24da 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.41.1", + version="1.41.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index b0920caeb..74f3667d0 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 d9b7a05fe767b306d80dfaa7927f08ebbf357dea Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 26 Aug 2023 01:11:36 +0000 Subject: [PATCH 64/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.16 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index d22b08e14..85b79dad9 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -418,4 +418,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.74.11 (2.87.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.41.2] workflows_definition \ No newline at end of file +- [python v1.41.2] workflows_definition + +## 2023-08-26 01:11:21 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 77a23e0e8..5ad661523 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.74.11 - generationVersion: 2.87.1 + speakeasyVersion: 1.74.16 + generationVersion: 2.88.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.82.2 + core: 2.83.1 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.41.2 + version: 1.42.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 085fe24da..097d816df 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.41.2", + version="1.42.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 74f3667d0..165bbab64 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 20de1787c609901f2fc9d6eb3f87dc1b10f45552 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 29 Aug 2023 01:15:03 +0000 Subject: [PATCH 65/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.74.17 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/pylintrc | 2 +- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 85b79dad9..e783be7fb 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -426,4 +426,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.74.16 (2.88.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.0] workflows_definition \ No newline at end of file +- [python v1.42.0] workflows_definition + +## 2023-08-29 01:14:44 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.42.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 5ad661523..7f4fbe7ce 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.74.16 - generationVersion: 2.88.2 + speakeasyVersion: 1.74.17 + generationVersion: 2.88.5 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.83.1 + core: 2.83.2 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.42.0 + version: 1.42.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc index 21a389459..ab6495dd6 100755 --- a/workflows_definition/pylintrc +++ b/workflows_definition/pylintrc @@ -621,7 +621,7 @@ additional-builtins= allow-global-unused-variables=yes # List of names allowed to shadow builtins -allowed-redefined-builtins= +allowed-redefined-builtins=id,object # List of strings which can identify a callback function by name. A callback # name must start or end with one of those strings. diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 097d816df..4c74deb60 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.42.0", + version="1.42.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 165bbab64..c818eb3f9 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 f7aa36558c0b3a1dbd9d0af5c782cc87208738df Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 31 Aug 2023 01:15:06 +0000 Subject: [PATCH 66/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.76.1 --- workflows_definition/.gitattributes | 2 ++ workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/files.gen | 3 ++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 6 files changed, 20 insertions(+), 9 deletions(-) create mode 100755 workflows_definition/.gitattributes diff --git a/workflows_definition/.gitattributes b/workflows_definition/.gitattributes new file mode 100755 index 000000000..4d75d5900 --- /dev/null +++ b/workflows_definition/.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/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index e783be7fb..0f0505567 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -434,4 +434,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.74.17 (2.88.5) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.42.1] workflows_definition \ No newline at end of file +- [python v1.42.1] workflows_definition + +## 2023-08-31 01:14:51 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.43.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index cfd9700fe..b27bdbeb7 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -89,4 +89,5 @@ docs/models/shared/closingreasonid.md docs/models/shared/definitionnotfoundresp.md docs/models/shared/maxallowedlimit.md docs/models/shared/closingreasonsids.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/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 7f4fbe7ce..2e6905b48 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.74.17 - generationVersion: 2.88.5 + speakeasyVersion: 1.76.1 + generationVersion: 2.89.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.83.2 + core: 2.84.0 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.42.1 + version: 1.43.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4c74deb60..4af2b6b7c 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.42.1", + version="1.43.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index c818eb3f9..4d6241e5a 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 098ec92adbac5f0047ee101ce17a9e146b71761b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 1 Sep 2023 01:19:22 +0000 Subject: [PATCH 67/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.0 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 0f0505567..a38b609f5 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -442,4 +442,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.76.1 (2.89.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.43.0] workflows_definition \ No newline at end of file +- [python v1.43.0] workflows_definition + +## 2023-09-01 01:19:06 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2e6905b48..12885ceef 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.76.1 - generationVersion: 2.89.1 + speakeasyVersion: 1.77.0 + generationVersion: 2.91.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.84.0 + core: 2.85.0 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.43.0 + version: 1.44.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4af2b6b7c..4e26e72ba 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.43.0", + version="1.44.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 4d6241e5a..46865263b 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 3654d47c11b1380468f21f9dc4f4650e76fc5c2d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 2 Sep 2023 01:12:02 +0000 Subject: [PATCH 68/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.77.2 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index a38b609f5..4dbe97921 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -450,4 +450,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.77.0 (2.91.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.0] workflows_definition \ No newline at end of file +- [python v1.44.0] workflows_definition + +## 2023-09-02 01:11:46 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 12885ceef..cc6b5ca52 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.77.0 - generationVersion: 2.91.2 + speakeasyVersion: 1.77.2 + generationVersion: 2.93.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.0 + core: 2.85.2 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.0 + version: 1.44.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4e26e72ba..da5487455 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.44.0", + version="1.44.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 46865263b..8b49156cd 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 589ca60c71e0c9f33588a42c430eef13032ec09e Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 5 Sep 2023 01:13:32 +0000 Subject: [PATCH 69/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.78.3 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- .../src/sdk/sdkconfiguration.py | 4 ++-- workflows_definition/src/sdk/utils/utils.py | 19 +++++++++++-------- 5 files changed, 27 insertions(+), 16 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 4dbe97921..6d5cdaf87 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -458,4 +458,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.77.2 (2.93.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.1] workflows_definition \ No newline at end of file +- [python v1.44.1] workflows_definition + +## 2023-09-05 01:13:18 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.2] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index cc6b5ca52..9109383ac 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.77.2 - generationVersion: 2.93.0 + speakeasyVersion: 1.78.3 + generationVersion: 2.96.3 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.2 + core: 2.85.3 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.1 + version: 1.44.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index da5487455..a8f17e2b1 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.44.1", + version="1.44.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 8b49156cd..6ecec8824 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index ea9792d0d..c91b0c049 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 76996da48028e4fbd604d52349ede86194f250a8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 12 Sep 2023 01:13:35 +0000 Subject: [PATCH 70/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.82.5 --- workflows_definition/RELEASES.md | 10 +- .../models/shared/changereasonstatusreq.md | 2 - .../docs/models/shared/closingreasons.md | 2 - .../docs/models/shared/closingreasonsids.md | 2 - .../docs/models/shared/errorresp.md | 2 - .../docs/models/shared/maxallowedlimit.md | 2 - .../docs/models/shared/workflowdefinition.md | 2 - .../docs/sdks/workflows/README.md | 450 ++---------------- workflows_definition/gen.yaml | 8 +- workflows_definition/setup.py | 2 +- .../models/shared/changereasonstatusreq.py | 1 - .../src/sdk/models/shared/closingreasons.py | 1 - .../sdk/models/shared/closingreasonsids.py | 1 - .../src/sdk/models/shared/errorresp.py | 1 - .../src/sdk/models/shared/maxallowedlimit.py | 1 - .../sdk/models/shared/workflowdefinition.py | 1 - workflows_definition/src/sdk/sdk.py | 9 +- .../src/sdk/sdkconfiguration.py | 7 +- workflows_definition/src/sdk/utils/utils.py | 33 +- 19 files changed, 104 insertions(+), 433 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 6d5cdaf87..80888ee68 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -466,4 +466,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.78.3 (2.96.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.2] workflows_definition \ No newline at end of file +- [python v1.44.2] workflows_definition + +## 2023-09-12 01:13:17 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.3] workflows_definition \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/changereasonstatusreq.md b/workflows_definition/docs/models/shared/changereasonstatusreq.md index 5bd53317f..c7ba4f00f 100755 --- a/workflows_definition/docs/models/shared/changereasonstatusreq.md +++ b/workflows_definition/docs/models/shared/changereasonstatusreq.md @@ -1,7 +1,5 @@ # ChangeReasonStatusReq -change the status of a closing reason - ## Fields diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md index 64b3c0f3c..ef7f12f22 100755 --- a/workflows_definition/docs/models/shared/closingreasons.md +++ b/workflows_definition/docs/models/shared/closingreasons.md @@ -1,7 +1,5 @@ # ClosingReasons -Returns the entire catalog of closing reasons per organization - ## Fields diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md index c29be3c6d..b337a4e34 100755 --- a/workflows_definition/docs/models/shared/closingreasonsids.md +++ b/workflows_definition/docs/models/shared/closingreasonsids.md @@ -1,7 +1,5 @@ # ClosingReasonsIds -Returns the entire catalog of closing reasons for a specific workflow - ## Fields diff --git a/workflows_definition/docs/models/shared/errorresp.md b/workflows_definition/docs/models/shared/errorresp.md index c7fcefe69..6c8383917 100755 --- a/workflows_definition/docs/models/shared/errorresp.md +++ b/workflows_definition/docs/models/shared/errorresp.md @@ -1,7 +1,5 @@ # ErrorResp -bad request - ## Fields diff --git a/workflows_definition/docs/models/shared/maxallowedlimit.md b/workflows_definition/docs/models/shared/maxallowedlimit.md index cc83a7b6b..9f6a5064d 100755 --- a/workflows_definition/docs/models/shared/maxallowedlimit.md +++ b/workflows_definition/docs/models/shared/maxallowedlimit.md @@ -1,7 +1,5 @@ # MaxAllowedLimit -A combo of current number of workflows, and the max allowed number of workflows. - ## Fields diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index bd898a745..5e38ac02d 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -1,7 +1,5 @@ # WorkflowDefinition -Workflow Definition payload - ## Fields diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index af0055beb..62c9abe80 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -29,170 +29,61 @@ s = sdk.SDK( req = shared.WorkflowDefinition( assigned_to=[ - 'maiores', - 'molestiae', - 'quod', - 'quod', + 'at', ], closing_reasons=[ shared.ClosingReasonID( id='x739cew', ), - shared.ClosingReasonID( - id='x739cew', - ), ], creation_time='2021-04-27T12:01:13.000Z', - description='totam', + description='maiores', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=6788.8, - step_id='dicta', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=7991.59, + step_id='quod', + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), enable_ecp_workflow=False, flow=[ shared.Step( assigned_to=[ - 'deleniti', + 'porro', ], automation_config=shared.StepAutomationConfig( - flow_id='hic', + flow_id='dolorum', ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=5218.48, - step_id='beatae', + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=7206.33, + step_id='officia', time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), ecp=shared.ECPDetails( - label='molestiae', + label='fugit', ), - execution_type=shared.StepType.MANUAL, - id='2cb73920-5929-4396-bea7-596eb10faaa2', - name='Stacy Champlin', - order=6078.31, + execution_type=shared.StepType.AUTOMATION, + id='fc816742-cb73-4920-9929-396fea7596eb', + name='Brenda Wisozk', + order=6706.38, requirements=[ shared.StepRequirement( condition=shared.StepRequirementCondition.CLOSED, - definition_id='minima', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='accusantium', + definition_id='dolores', type=shared.ItemType.STEP, ), ], - type=shared.ItemType.SECTION, - user_ids=[ - 9589.5, - 1020.44, - 6527.9, - 2088.76, - ], - ), - shared.Step( - assigned_to=[ - 'repellat', - ], - automation_config=shared.StepAutomationConfig( - flow_id='mollitia', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=2532.91, - step_id='commodi', - time_period=shared.DynamicDueDateTimePeriod.WEEKS, - ), - ecp=shared.ECPDetails( - label='molestiae', - ), - execution_type=shared.StepType.MANUAL, - id='9251aa52-c3f5-4ad0-99da-1ffe78f097b0', - name='Bessie Grady II', - order=2961.4, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='dicta', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='enim', - type=shared.ItemType.SECTION, - ), - ], type=shared.ItemType.STEP, user_ids=[ - 641.47, - 2168.22, - 6924.72, - 5651.89, - ], - ), - shared.Step( - assigned_to=[ - 'modi', - 'praesentium', - 'rem', - 'voluptates', - ], - automation_config=shared.StepAutomationConfig( - flow_id='quasi', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=5759.47, - step_id='veritatis', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, - ), - ecp=shared.ECPDetails( - label='incidunt', - ), - execution_type=shared.StepType.MANUAL, - id='0ad2abd4-4269-4802-9502-a94bb4f63c96', - name='Terence Marquardt', - order=8915.55, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='dolorum', - type=shared.ItemType.STEP, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='in', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='maiores', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='dicta', - type=shared.ItemType.STEP, - ), - ], - type=shared.ItemType.SECTION, - user_ids=[ - 4118.2, - 3965.06, - 6754.39, - 8811.04, + 1289.26, ], ), ], - id='395efb9b-a88f-43a6-a997-074ba4469b6e', + id='c5955907-aff1-4a3a-afa9-467739251aa5', last_update_time='2021-04-27T12:01:13.000Z', - name='Ms. Julie Gusikowski', + name='Angelica Dietrich', update_entity_attributes=[ shared.UpdateEntityAttributes( source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, @@ -201,25 +92,9 @@ req = shared.WorkflowDefinition( entity_schema='opportunity', ), ), - shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, - target=shared.UpdateEntityAttributesTarget( - entity_attribute='my_status', - entity_schema='opportunity', - ), - ), - shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, - target=shared.UpdateEntityAttributesTarget( - entity_attribute='my_status', - entity_schema='opportunity', - ), - ), ], user_ids=[ - 9689.62, - 6521.03, - 3209.97, + 8209.94, ], ) @@ -258,7 +133,7 @@ s = sdk.SDK( ) req = operations.DeleteDefinitionRequest( - definition_id='eum', + definition_id='aut', ) res = s.workflows.delete_definition(req) @@ -296,7 +171,7 @@ s = sdk.SDK( ) req = operations.GetDefinitionRequest( - definition_id='dolor', + definition_id='quasi', ) res = s.workflows.get_definition(req) @@ -392,7 +267,7 @@ s = sdk.SDK( ) req = operations.GetWorkflowClosingReasonsRequest( - definition_id='necessitatibus', + definition_id='error', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -437,7 +312,7 @@ req = operations.SetWorkflowClosingReasonsRequest( ), ], ), - definition_id='nemo', + definition_id='temporibus', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -477,292 +352,64 @@ s = sdk.SDK( req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ - 'iure', + 'laborum', ], closing_reasons=[ shared.ClosingReasonID( id='x739cew', ), - shared.ClosingReasonID( - id='x739cew', - ), - shared.ClosingReasonID( - id='x739cew', - ), - shared.ClosingReasonID( - id='x739cew', - ), ], creation_time='2021-04-27T12:01:13.000Z', - description='debitis', + description='quasi', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=8061.94, - step_id='deleniti', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=9764.6, + step_id='vero', + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), enable_ecp_workflow=False, flow=[ - shared.Section( - id='1e5b7fd2-ed02-4892-9cdd-c692601fb576', - name='Gary Streich', - order=166.27, - steps=[ - shared.Step( - assigned_to=[ - 'aut', - ], - automation_config=shared.StepAutomationConfig( - flow_id='cumque', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=9441.24, - step_id='libero', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, - ), - ecp=shared.ECPDetails( - label='dolores', - ), - execution_type=shared.StepType.MANUAL, - id='87053202-c73d-45fe-9b90-c28909b3fe49', - name='Casey Stracke', - order=7301.22, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='quaerat', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='aliquid', - type=shared.ItemType.STEP, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='dolorem', - type=shared.ItemType.STEP, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='qui', - type=shared.ItemType.STEP, - ), - ], - type=shared.ItemType.SECTION, - user_ids=[ - 7395.51, - 4521.09, - 4904.59, - ], - ), - shared.Step( - assigned_to=[ - 'amet', - 'dolorum', - 'numquam', - 'veritatis', - ], - automation_config=shared.StepAutomationConfig( - flow_id='ipsa', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=4344.17, - step_id='odio', - time_period=shared.DynamicDueDateTimePeriod.DAYS, - ), - ecp=shared.ECPDetails( - label='accusamus', - ), - execution_type=shared.StepType.AUTOMATION, - id='f69280d1-ba77-4a89-abf7-37ae4203ce5e', - name='Rosie McKenzie', - order=5197.11, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='alias', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='quaerat', - type=shared.ItemType.STEP, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='vel', - type=shared.ItemType.SECTION, - ), - ], - type=shared.ItemType.SECTION, - user_ids=[ - 6798.8, - ], - ), - shared.Step( - assigned_to=[ - 'esse', - 'harum', - 'iusto', - 'ipsum', - ], - automation_config=shared.StepAutomationConfig( - flow_id='quisquam', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=2294.42, - step_id='tempore', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, - ), - ecp=shared.ECPDetails( - label='numquam', - ), - execution_type=shared.StepType.MANUAL, - id='3f870b32-6b5a-4734-a9cd-b1a8422bb679', - name='Shawn Doyle', - order=4880.56, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='ullam', - type=shared.ItemType.SECTION, - ), - ], - type=shared.ItemType.SECTION, - user_ids=[ - 7653.26, - ], - ), - shared.Step( - assigned_to=[ - 'nobis', - 'et', - 'saepe', - ], - automation_config=shared.StepAutomationConfig( - flow_id='ipsum', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=7492.55, - step_id='quos', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, - ), - ecp=shared.ECPDetails( - label='cupiditate', - ), - execution_type=shared.StepType.MANUAL, - id='f3443a11-08e0-4adc-b4b9-21879fce953f', - name='Victoria Thiel', - order=9413.78, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='quod', - type=shared.ItemType.STEP, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='similique', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='vero', - type=shared.ItemType.STEP, - ), - ], - type=shared.ItemType.STEP, - user_ids=[ - 8489.44, - 1943.42, - 6178.77, - 7733.26, - ], - ), - ], - type=shared.ItemType.STEP, - ), shared.Step( assigned_to=[ - 'nulla', - 'fugit', + 'voluptatibus', ], automation_config=shared.StepAutomationConfig( - flow_id='porro', + flow_id='ipsa', ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=9850.33, - step_id='iusto', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, + number_of_units=4511.59, + step_id='cum', + time_period=shared.DynamicDueDateTimePeriod.DAYS, ), ecp=shared.ECPDetails( - label='ducimus', + label='doloremque', ), execution_type=shared.StepType.MANUAL, - id='a45626d4-3681-43f1-ad9f-5fce6c556146', - name='Glenn Walter', - order=534.27, + id='4f15471b-5e6e-413b-99d4-88e1e91e450a', + name='Benjamin O'Connell', + order=2894.06, requirements=[ shared.StepRequirement( condition=shared.StepRequirementCondition.CLOSED, - definition_id='libero', - type=shared.ItemType.STEP, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='aut', - type=shared.ItemType.SECTION, - ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='impedit', + definition_id='modi', type=shared.ItemType.STEP, ), - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='fugit', - type=shared.ItemType.SECTION, - ), ], type=shared.ItemType.STEP, user_ids=[ - 896.03, - 6774.12, + 5865.13, ], ), ], - id='ac366c8d-d6b1-4442-9074-74778a7bd466', + id='802d502a-94bb-44f6-bc96-9e9a3efa77df', last_update_time='2021-04-27T12:01:13.000Z', - name='Alan Lang Jr.', + name='Keith Gulgowski', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_STEP, - target=shared.UpdateEntityAttributesTarget( - entity_attribute='my_status', - entity_schema='opportunity', - ), - ), - shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, - target=shared.UpdateEntityAttributesTarget( - entity_attribute='my_status', - entity_schema='opportunity', - ), - ), - shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_STEP, + source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -770,13 +417,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 7774.08, - 6813.59, - 2594.22, - 1783.67, + 3965.06, ], ), - definition_id='voluptas', + definition_id='laborum', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 9109383ac..bb09aea26 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.78.3 - generationVersion: 2.96.3 + speakeasyVersion: 1.82.5 + generationVersion: 2.108.3 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.3 + core: 2.85.4 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.2 + version: 1.44.3 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index a8f17e2b1..823981f23 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.44.2", + version="1.44.3", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py index 57622e93f..c8840b646 100755 --- a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py +++ b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py @@ -11,7 +11,6 @@ @dataclasses.dataclass class ChangeReasonStatusReq: - r"""change the status of a closing reason""" status: shared_closingreasonsstatus.ClosingReasonsStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py index 538b48a30..594948688 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasons.py +++ b/workflows_definition/src/sdk/models/shared/closingreasons.py @@ -11,7 +11,6 @@ @dataclasses.dataclass class ClosingReasons: - r"""Returns the entire catalog of closing reasons per organization""" reasons: list[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py index a4e625e61..11c213bc4 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsids.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsids.py @@ -11,7 +11,6 @@ @dataclasses.dataclass class ClosingReasonsIds: - r"""Returns the entire catalog of closing reasons for a specific workflow""" reasons: list[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py index da08c2dd3..8516cd004 100755 --- a/workflows_definition/src/sdk/models/shared/errorresp.py +++ b/workflows_definition/src/sdk/models/shared/errorresp.py @@ -11,7 +11,6 @@ @dataclasses.dataclass class ErrorResp: - r"""bad request""" message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py index d4353a993..02afab947 100755 --- a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py +++ b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py @@ -11,7 +11,6 @@ @dataclasses.dataclass class MaxAllowedLimit: - r"""A combo of current number of workflows, and the max allowed number of workflows.""" current_no_of_workflows: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentNoOfWorkflows'), 'exclude': lambda f: f is None }}) max_allowed: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('maxAllowed'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index c7a189a59..69283df46 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -14,7 +14,6 @@ @dataclasses.dataclass class WorkflowDefinition: - r"""Workflow Definition payload""" flow: list[Any] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index 6dadbfb6e..c99bd1629 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -19,7 +19,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. @@ -32,7 +33,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() @@ -43,7 +46,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/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 6ecec8824..95649718b 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/sdkconfiguration.py @@ -3,6 +3,8 @@ import requests from dataclasses import dataclass +from .utils.retries import RetryConfig + SERVERS = [ 'https://workflows-definition.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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index c91b0c049..05eafba6c 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 cb0a2f9d7480a4aaf45c25bd59ebc12f99fe579c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 16 Sep 2023 01:13:53 +0000 Subject: [PATCH 71/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.86.0 --- workflows_definition/README.md | 4 ++-- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/docs/sdks/closingreason/README.md | 2 +- workflows_definition/docs/sdks/workflows/README.md | 2 +- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 7 files changed, 20 insertions(+), 12 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 9f1491cb9..7fcabba89 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -40,13 +40,13 @@ if res.status_code == 200: ## Available Resources and Operations -### [closing_reason](docs/sdks/closingreason/README.md) +### [ClosingReason](docs/sdks/closingreason/README.md) * [change_reason_status](docs/sdks/closingreason/README.md#change_reason_status) - changeReasonStatus * [create_closing_reason](docs/sdks/closingreason/README.md#create_closing_reason) - createClosingReason * [get_all_closing_reasons](docs/sdks/closingreason/README.md#get_all_closing_reasons) - getAllClosingReasons -### [workflows](docs/sdks/workflows/README.md) +### [Workflows](docs/sdks/workflows/README.md) * [create_definition](docs/sdks/workflows/README.md#create_definition) - createDefinition * [delete_definition](docs/sdks/workflows/README.md#delete_definition) - deleteDefinition diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 80888ee68..d46edf084 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -474,4 +474,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.82.5 (2.108.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.3] workflows_definition \ No newline at end of file +- [python v1.44.3] workflows_definition + +## 2023-09-16 01:13:34 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.4] workflows_definition \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index d068235f3..b4ecc3dd2 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -1,4 +1,4 @@ -# closing_reason +# ClosingReason ### Available Operations diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index 62c9abe80..8dccb6ea6 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -1,4 +1,4 @@ -# workflows +# Workflows ### Available Operations diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index bb09aea26..b98407666 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.82.5 - generationVersion: 2.108.3 + speakeasyVersion: 1.86.0 + generationVersion: 2.115.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.4 + core: 2.85.5 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.3 + version: 1.44.4 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 823981f23..178925172 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.44.3", + version="1.44.4", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 95649718b..814ced9f8 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 4499ea195bcdcf4cc6cc35fffb916e19049eb545 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 20 Sep 2023 01:15:34 +0000 Subject: [PATCH 72/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.88.0 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 4 ++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index d46edf084..bc4063f0c 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -482,4 +482,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.4] workflows_definition \ No newline at end of file +- [python v1.44.4] workflows_definition + +## 2023-09-20 01:15:18 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.44.5] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index b98407666..2d4c6b5d6 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.86.0 - generationVersion: 2.115.2 + speakeasyVersion: 1.88.0 + generationVersion: 2.118.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.5 + core: 2.85.6 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.4 + version: 1.44.5 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 178925172..f112e6134 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.44.4", + version="1.44.5", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 814ced9f8..bdd8c5dd3 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 ecafdb427d5c0b90f4675005d67507bcd5a57bb8 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 26 Sep 2023 01:16:27 +0000 Subject: [PATCH 73/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.0 --- workflows_definition/README.md | 30 +++- workflows_definition/RELEASES.md | 10 +- .../operations/changereasonstatusresponse.md | 6 +- .../operations/createclosingreasonresponse.md | 6 +- .../operations/createdefinitionresponse.md | 6 +- .../operations/deletedefinitionresponse.md | 6 +- .../getallclosingreasonsresponse.md | 6 +- .../operations/getdefinitionresponse.md | 6 +- .../operations/getdefinitionsresponse.md | 6 +- .../operations/getmaxallowedlimitresponse.md | 6 +- .../getworkflowclosingreasonsresponse.md | 6 +- .../setworkflowclosingreasonsresponse.md | 6 +- .../operations/updatedefinitionresponse.md | 6 +- .../docs/sdks/closingreason/README.md | 10 +- .../docs/sdks/workflows/README.md | 136 +++++++++--------- workflows_definition/files.gen | 6 +- workflows_definition/gen.yaml | 8 +- workflows_definition/setup.py | 2 +- .../models/operations/changereasonstatus.py | 3 + .../models/operations/createclosingreason.py | 3 + .../sdk/models/operations/createdefinition.py | 3 + .../sdk/models/operations/deletedefinition.py | 3 + .../models/operations/getallclosingreasons.py | 3 + .../sdk/models/operations/getdefinition.py | 3 + .../sdk/models/operations/getdefinitions.py | 3 + .../models/operations/getmaxallowedlimit.py | 3 + .../operations/getworkflowclosingreasons.py | 3 + .../operations/setworkflowclosingreasons.py | 3 + .../sdk/models/operations/updatedefinition.py | 3 + .../src/sdk/sdkconfiguration.py | 4 +- 30 files changed, 189 insertions(+), 116 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 7fcabba89..7d3b393ce 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -10,8 +10,6 @@ pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=workfl ## SDK Example Usage - - ```python import sdk from sdk.models import operations, shared @@ -26,7 +24,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.INACTIVE, ), - reason_id='provident', + reason_id='quibusdam', ) res = s.closing_reason.change_reason_status(req) @@ -58,4 +56,30 @@ if res.status_code == 200: * [update_definition](docs/sdks/workflows/README.md#update_definition) - updateDefinition + + + + + + + + + + + +# 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/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index bc4063f0c..488c74d71 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -490,4 +490,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.88.0 (2.118.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.44.5] workflows_definition \ No newline at end of file +- [python v1.44.5] workflows_definition + +## 2023-09-26 01:16:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/changereasonstatusresponse.md b/workflows_definition/docs/models/operations/changereasonstatusresponse.md index 29d991f0d..012a6b383 100755 --- a/workflows_definition/docs/models/operations/changereasonstatusresponse.md +++ b/workflows_definition/docs/models/operations/changereasonstatusresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | bad request | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createclosingreasonresponse.md b/workflows_definition/docs/models/operations/createclosingreasonresponse.md index c68df4382..4a7eb57f6 100755 --- a/workflows_definition/docs/models/operations/createclosingreasonresponse.md +++ b/workflows_definition/docs/models/operations/createclosingreasonresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `closing_reason` | [Optional[shared.ClosingReason]](../../models/shared/closingreason.md) | :heavy_minus_sign: | closing reason is stored successfully in the repository | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createdefinitionresponse.md b/workflows_definition/docs/models/operations/createdefinitionresponse.md index e6c1ab0ec..bf9a2c98e 100755 --- a/workflows_definition/docs/models/operations/createdefinitionresponse.md +++ b/workflows_definition/docs/models/operations/createdefinitionresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `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 | +| `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 | | `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is created successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionresponse.md b/workflows_definition/docs/models/operations/deletedefinitionresponse.md index 6d5f16014..568621af6 100755 --- a/workflows_definition/docs/models/operations/deletedefinitionresponse.md +++ b/workflows_definition/docs/models/operations/deletedefinitionresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Failed to authenticate | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md index 51fa8e5a6..36e0e2283 100755 --- a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `closing_reasons` | [Optional[shared.ClosingReasons]](../../models/shared/closingreasons.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons per organization | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionresponse.md b/workflows_definition/docs/models/operations/getdefinitionresponse.md index b96624bb0..fc37b0d45 100755 --- a/workflows_definition/docs/models/operations/getdefinitionresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionresponse.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `definition_not_found_resp` | [Optional[shared.DefinitionNotFoundResp]](../../models/shared/definitionnotfoundresp.md) | :heavy_minus_sign: | Definition Not found | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `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 | +| `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 | | `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Returns the Workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md index ea576e7fe..22d854584 100755 --- a/workflows_definition/docs/models/operations/getdefinitionsresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionsresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | -| `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 | +| `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 | | `workflow_definitions` | list[[shared.WorkflowDefinition](../../models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md index e4e23a291..736abd8cb 100755 --- a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md +++ b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | | `max_allowed_limit` | [Optional[shared.MaxAllowedLimit]](../../models/shared/maxallowedlimit.md) | :heavy_minus_sign: | A combo of current number of workflows, and the max allowed number of workflows. | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md index d401fe5bb..17b7cf997 100755 --- a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](../../models/shared/closingreasonsids.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons for a specific workflow | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md index 0eb9a6a24..76541efd1 100755 --- a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | -| `status_code` | *int* | :heavy_check_mark: | N/A | -| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionresponse.md b/workflows_definition/docs/models/operations/updatedefinitionresponse.md index 3733bfddc..859c47f0e 100755 --- a/workflows_definition/docs/models/operations/updatedefinitionresponse.md +++ b/workflows_definition/docs/models/operations/updatedefinitionresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `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 | +| `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 | | `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is updated successfully | \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index b4ecc3dd2..51b988832 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -26,7 +26,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.INACTIVE, ), - reason_id='quibusdam', + reason_id='nulla', ) res = s.closing_reason.change_reason_status(req) @@ -64,10 +64,10 @@ s = sdk.SDK( ) req = shared.ClosingReason( - creation_time='unde', - id='d8d69a67-4e0f-4467-8c87-96ed151a05df', - last_update_time='quo', - status=shared.ClosingReasonsStatus.ACTIVE, + creation_time='corrupti', + id='d69a674e-0f46-47cc-8796-ed151a05dfc2', + last_update_time='at', + status=shared.ClosingReasonsStatus.INACTIVE, title='Dr.', ) diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index 8dccb6ea6..f3d80adb6 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -29,7 +29,7 @@ s = sdk.SDK( req = shared.WorkflowDefinition( assigned_to=[ - 'at', + 'molestiae', ], closing_reasons=[ shared.ClosingReasonID( @@ -37,56 +37,56 @@ req = shared.WorkflowDefinition( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='maiores', + description='quod', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=7991.59, - step_id='quod', - time_period=shared.DynamicDueDateTimePeriod.WEEKS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=4614.79, + step_id='totam', + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), enable_ecp_workflow=False, flow=[ shared.Step( assigned_to=[ - 'porro', + 'dicta', ], automation_config=shared.StepAutomationConfig( - flow_id='dolorum', + flow_id='nam', ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=7206.33, - step_id='officia', + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=5820.2, + step_id='fugit', time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), ecp=shared.ECPDetails( - label='fugit', + label='hic', ), execution_type=shared.StepType.AUTOMATION, - id='fc816742-cb73-4920-9929-396fea7596eb', - name='Brenda Wisozk', - order=6706.38, + id='816742cb-7392-4059-a939-6fea7596eb10', + name='Carlton O'Hara', + order=2103.82, requirements=[ shared.StepRequirement( condition=shared.StepRequirementCondition.CLOSED, - definition_id='dolores', + definition_id='corporis', type=shared.ItemType.STEP, ), ], - type=shared.ItemType.STEP, + type=shared.ItemType.SECTION, user_ids=[ - 1289.26, + 3154.28, ], ), ], - id='c5955907-aff1-4a3a-afa9-467739251aa5', + id='955907af-f1a3-4a2f-a946-7739251aa52c', last_update_time='2021-04-27T12:01:13.000Z', - name='Angelica Dietrich', + name='Mandy Hills', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -94,7 +94,7 @@ req = shared.WorkflowDefinition( ), ], user_ids=[ - 8209.94, + 971.01, ], ) @@ -133,7 +133,7 @@ s = sdk.SDK( ) req = operations.DeleteDefinitionRequest( - definition_id='aut', + definition_id='error', ) res = s.workflows.delete_definition(req) @@ -171,7 +171,7 @@ s = sdk.SDK( ) req = operations.GetDefinitionRequest( - definition_id='quasi', + definition_id='temporibus', ) res = s.workflows.get_definition(req) @@ -267,7 +267,7 @@ s = sdk.SDK( ) req = operations.GetWorkflowClosingReasonsRequest( - definition_id='error', + definition_id='laborum', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -312,7 +312,7 @@ req = operations.SetWorkflowClosingReasonsRequest( ), ], ), - definition_id='temporibus', + definition_id='quasi', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -352,7 +352,7 @@ s = sdk.SDK( req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ - 'laborum', + 'reiciendis', ], closing_reasons=[ shared.ClosingReasonID( @@ -360,53 +360,61 @@ req = operations.UpdateDefinitionRequest( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='quasi', + description='voluptatibus', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=9764.6, - step_id='vero', - time_period=shared.DynamicDueDateTimePeriod.WEEKS, + number_of_units=4686.51, + step_id='praesentium', + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), enable_ecp_workflow=False, flow=[ - shared.Step( - assigned_to=[ - 'voluptatibus', - ], - automation_config=shared.StepAutomationConfig( - flow_id='ipsa', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=4511.59, - step_id='cum', - time_period=shared.DynamicDueDateTimePeriod.DAYS, - ), - ecp=shared.ECPDetails( - label='doloremque', - ), - execution_type=shared.StepType.MANUAL, - id='4f15471b-5e6e-413b-99d4-88e1e91e450a', - name='Benjamin O'Connell', - order=2894.06, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='modi', - type=shared.ItemType.STEP, + shared.Section( + id='97b0074f-1547-41b5-a6e1-3b99d488e1e9', + name='Patti Gottlieb MD', + order=8423.42, + steps=[ + shared.Step( + assigned_to=[ + 'explicabo', + ], + automation_config=shared.StepAutomationConfig( + flow_id='deserunt', + ), + due_date='2021-04-27T12:00:00.000Z', + dynamic_due_date=shared.DynamicDueDate( + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=8413.86, + step_id='labore', + time_period=shared.DynamicDueDateTimePeriod.DAYS, + ), + ecp=shared.ECPDetails( + label='qui', + ), + execution_type=shared.StepType.MANUAL, + id='9802d502-a94b-4b4f-a3c9-69e9a3efa77d', + name='Jean Buckridge', + order=8137.98, + requirements=[ + shared.StepRequirement( + condition=shared.StepRequirementCondition.CLOSED, + definition_id='ea', + type=shared.ItemType.STEP, + ), + ], + type=shared.ItemType.SECTION, + user_ids=[ + 8811.04, + ], ), ], type=shared.ItemType.STEP, - user_ids=[ - 5865.13, - ], ), ], - id='802d502a-94bb-44f6-bc96-9e9a3efa77df', + id='95efb9ba-88f3-4a66-9970-74ba4469b6e2', last_update_time='2021-04-27T12:01:13.000Z', - name='Keith Gulgowski', + name='Danielle Bosco', update_entity_attributes=[ shared.UpdateEntityAttributes( source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, @@ -417,10 +425,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 3965.06, + 5518.16, ], ), - definition_id='laborum', + definition_id='sint', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index b27bdbeb7..27f9696a3 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -43,9 +43,6 @@ src/sdk/models/shared/closingreasonsids.py src/sdk/models/shared/security.py src/sdk/models/shared/__init__.py src/sdk/models/errors/__init__.py -docs/sdks/sdk/README.md -docs/sdks/closingreason/README.md -docs/sdks/workflows/README.md USAGE.md docs/models/operations/changereasonstatusrequest.md docs/models/operations/changereasonstatusresponse.md @@ -90,4 +87,7 @@ docs/models/shared/definitionnotfoundresp.md docs/models/shared/maxallowedlimit.md docs/models/shared/closingreasonsids.md docs/models/shared/security.md +docs/sdks/sdk/README.md +docs/sdks/closingreason/README.md +docs/sdks/workflows/README.md .gitattributes \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 2d4c6b5d6..6b0fa3bfa 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.88.0 - generationVersion: 2.118.1 + speakeasyVersion: 1.91.0 + generationVersion: 2.129.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.85.6 + core: 2.86.0 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.44.5 + version: 1.45.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f112e6134..b42947406 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.44.5", + version="1.45.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py index 10f8c1bca..95e497546 100755 --- a/workflows_definition/src/sdk/models/operations/changereasonstatus.py +++ b/workflows_definition/src/sdk/models/operations/changereasonstatus.py @@ -22,9 +22,12 @@ class ChangeReasonStatusRequest: @dataclasses.dataclass class ChangeReasonStatusResponse: 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""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""bad request""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py index 2a27c21c4..616ba8950 100755 --- a/workflows_definition/src/sdk/models/operations/createclosingreason.py +++ b/workflows_definition/src/sdk/models/operations/createclosingreason.py @@ -11,9 +11,12 @@ @dataclasses.dataclass class CreateClosingReasonResponse: 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""" closing_reason: Optional[shared_closingreason.ClosingReason] = dataclasses.field(default=None) r"""closing reason is stored successfully in the repository""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py index f174dae2e..8c3d352e5 100755 --- a/workflows_definition/src/sdk/models/operations/createdefinition.py +++ b/workflows_definition/src/sdk/models/operations/createdefinition.py @@ -12,10 +12,13 @@ @dataclasses.dataclass class CreateDefinitionResponse: 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""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Validation Errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) r"""Success - if the definition is created successfully""" diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py index 5e98df7c6..eee5c9c66 100755 --- a/workflows_definition/src/sdk/models/operations/deletedefinition.py +++ b/workflows_definition/src/sdk/models/operations/deletedefinition.py @@ -20,9 +20,12 @@ class DeleteDefinitionRequest: @dataclasses.dataclass class DeleteDefinitionResponse: 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""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Failed to authenticate""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py index c4b3c628e..d22100fce 100755 --- a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py @@ -20,9 +20,12 @@ class GetAllClosingReasonsRequest: @dataclasses.dataclass class GetAllClosingReasonsResponse: 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""" closing_reasons: Optional[shared_closingreasons.ClosingReasons] = dataclasses.field(default=None) r"""Returns the entire catalog of closing reasons per organization""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py index ca3c2c6c2..741c9f13c 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinition.py +++ b/workflows_definition/src/sdk/models/operations/getdefinition.py @@ -22,12 +22,15 @@ class GetDefinitionRequest: @dataclasses.dataclass class GetDefinitionResponse: 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""" definition_not_found_resp: Optional[shared_definitionnotfoundresp.DefinitionNotFoundResp] = dataclasses.field(default=None) r"""Definition Not found""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Validation Errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) r"""Returns the Workflow definition""" diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py index df8ec0834..476f2ed40 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinitions.py +++ b/workflows_definition/src/sdk/models/operations/getdefinitions.py @@ -12,10 +12,13 @@ @dataclasses.dataclass class GetDefinitionsResponse: 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""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Other errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" workflow_definitions: Optional[list[shared_workflowdefinition.WorkflowDefinition]] = dataclasses.field(default=None) r"""Success - definitions loaded with success. Empty array if org has no definitions.""" diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py index 6a23c0053..2e259e1db 100755 --- a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py +++ b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py @@ -12,11 +12,14 @@ @dataclasses.dataclass class GetMaxAllowedLimitResponse: 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""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Other errors""" max_allowed_limit: Optional[shared_maxallowedlimit.MaxAllowedLimit] = dataclasses.field(default=None) r"""A combo of current number of workflows, and the max allowed number of workflows.""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py index 537537987..cb12b595a 100755 --- a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py @@ -20,9 +20,12 @@ class GetWorkflowClosingReasonsRequest: @dataclasses.dataclass class GetWorkflowClosingReasonsResponse: 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""" closing_reasons_ids: Optional[shared_closingreasonsids.ClosingReasonsIds] = dataclasses.field(default=None) r"""Returns the entire catalog of closing reasons for a specific workflow""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py index 12aa3391f..9b9cdde7a 100755 --- a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py @@ -22,7 +22,10 @@ class SetWorkflowClosingReasonsRequest: @dataclasses.dataclass class SetWorkflowClosingReasonsResponse: content_type: str = dataclasses.field() + r"""HTTP response content type for this operation""" status_code: int = dataclasses.field() + r"""HTTP response status code for this operation""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py index 06ff26961..25e2fc430 100755 --- a/workflows_definition/src/sdk/models/operations/updatedefinition.py +++ b/workflows_definition/src/sdk/models/operations/updatedefinition.py @@ -23,10 +23,13 @@ class UpdateDefinitionRequest: @dataclasses.dataclass class UpdateDefinitionResponse: 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""" error_resp: Optional[shared_errorresp.ErrorResp] = dataclasses.field(default=None) r"""Validation Errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + r"""Raw HTTP response; suitable for custom response parsing""" workflow_definition: Optional[shared_workflowdefinition.WorkflowDefinition] = dataclasses.field(default=None) r"""Success - if the definition is updated successfully""" diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index bdd8c5dd3..a188711ff 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 82c12c263eadc23c97d0749507ef8f024b03470b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 27 Sep 2023 01:16:40 +0000 Subject: [PATCH 74/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.2 --- workflows_definition/README.md | 8 +- workflows_definition/RELEASES.md | 10 +- .../docs/models/shared/workflowdefinition.md | 2 +- .../models/shared/workflowdefinitionflow.md | 17 +++ .../docs/sdks/closingreason/README.md | 1 + workflows_definition/docs/sdks/sdk/README.md | 1 + .../docs/sdks/workflows/README.md | 113 ++++-------------- workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 8 +- workflows_definition/setup.py | 4 +- .../src/sdk/models/shared/__init__.py | 2 +- .../sdk/models/shared/workflowdefinition.py | 12 +- .../src/sdk/sdkconfiguration.py | 4 +- workflows_definition/src/sdk/utils/utils.py | 8 ++ 14 files changed, 80 insertions(+), 111 deletions(-) create mode 100755 workflows_definition/docs/models/shared/workflowdefinitionflow.md diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 7d3b393ce..e154f8c0f 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -38,13 +38,13 @@ if res.status_code == 200: ## Available Resources and Operations -### [ClosingReason](docs/sdks/closingreason/README.md) +### [closing_reason](docs/sdks/closingreason/README.md) * [change_reason_status](docs/sdks/closingreason/README.md#change_reason_status) - changeReasonStatus * [create_closing_reason](docs/sdks/closingreason/README.md#create_closing_reason) - createClosingReason * [get_all_closing_reasons](docs/sdks/closingreason/README.md#get_all_closing_reasons) - getAllClosingReasons -### [Workflows](docs/sdks/workflows/README.md) +### [workflows](docs/sdks/workflows/README.md) * [create_definition](docs/sdks/workflows/README.md#create_definition) - createDefinition * [delete_definition](docs/sdks/workflows/README.md#delete_definition) - deleteDefinition @@ -60,8 +60,6 @@ if res.status_code == 200: - - @@ -74,8 +72,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/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 488c74d71..3e5972db9 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -498,4 +498,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.91.0 (2.129.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.0] workflows_definition \ No newline at end of file +- [python v1.45.0] workflows_definition + +## 2023-09-27 01:16:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.45.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index 5e38ac02d..25e6eda23 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -12,7 +12,7 @@ | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | | `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | | `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | -| `flow` | list[*Any*] | :heavy_check_mark: | N/A | | +| `flow` | list[[Union[Section, Step]](../../models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | | `name` | *str* | :heavy_check_mark: | N/A | | diff --git a/workflows_definition/docs/models/shared/workflowdefinitionflow.md b/workflows_definition/docs/models/shared/workflowdefinitionflow.md new file mode 100755 index 000000000..ca68dc074 --- /dev/null +++ b/workflows_definition/docs/models/shared/workflowdefinitionflow.md @@ -0,0 +1,17 @@ +# WorkflowDefinitionFlow + + +## Supported Types + +### Section + +```python +workflowDefinitionFlow: shared.Section = /* values here */ +``` + +### Step + +```python +workflowDefinitionFlow: shared.Step = /* values here */ +``` + diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index 51b988832..5de29199c 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -1,4 +1,5 @@ # ClosingReason +(*closing_reason*) ### Available Operations diff --git a/workflows_definition/docs/sdks/sdk/README.md b/workflows_definition/docs/sdks/sdk/README.md index 1f97dea30..c7cf50bc9 100755 --- a/workflows_definition/docs/sdks/sdk/README.md +++ b/workflows_definition/docs/sdks/sdk/README.md @@ -1,5 +1,6 @@ # SDK + ## Overview Workflows Definitions: Service for Workflow Definitions for different processes inside of an Organization diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index f3d80adb6..02422da19 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -1,4 +1,5 @@ # Workflows +(*workflows*) ### Available Operations @@ -47,46 +48,14 @@ req = shared.WorkflowDefinition( ), enable_ecp_workflow=False, flow=[ - shared.Step( - assigned_to=[ - 'dicta', - ], - automation_config=shared.StepAutomationConfig( - flow_id='nam', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=5820.2, - step_id='fugit', - time_period=shared.DynamicDueDateTimePeriod.WEEKS, - ), - ecp=shared.ECPDetails( - label='hic', - ), - execution_type=shared.StepType.AUTOMATION, - id='816742cb-7392-4059-a939-6fea7596eb10', - name='Carlton O'Hara', - order=2103.82, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='corporis', - type=shared.ItemType.STEP, - ), - ], - type=shared.ItemType.SECTION, - user_ids=[ - 3154.28, - ], - ), + [], ], - id='955907af-f1a3-4a2f-a946-7739251aa52c', + id='a1ba928f-c816-4742-8b73-9205929396fe', last_update_time='2021-04-27T12:01:13.000Z', - name='Mandy Hills', + name='Harvey Hessel', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, + source=shared.UpdateEntityAttributesSource.CURRENT_STEP, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -94,7 +63,7 @@ req = shared.WorkflowDefinition( ), ], user_ids=[ - 971.01, + 6976.31, ], ) @@ -133,7 +102,7 @@ s = sdk.SDK( ) req = operations.DeleteDefinitionRequest( - definition_id='error', + definition_id='architecto', ) res = s.workflows.delete_definition(req) @@ -171,7 +140,7 @@ s = sdk.SDK( ) req = operations.GetDefinitionRequest( - definition_id='temporibus', + definition_id='ipsa', ) res = s.workflows.get_definition(req) @@ -267,7 +236,7 @@ s = sdk.SDK( ) req = operations.GetWorkflowClosingReasonsRequest( - definition_id='laborum', + definition_id='reiciendis', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -312,7 +281,7 @@ req = operations.SetWorkflowClosingReasonsRequest( ), ], ), - definition_id='quasi', + definition_id='est', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -352,7 +321,7 @@ s = sdk.SDK( req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ - 'reiciendis', + 'mollitia', ], closing_reasons=[ shared.ClosingReasonID( @@ -360,61 +329,21 @@ req = operations.UpdateDefinitionRequest( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='voluptatibus', + description='laborum', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=4686.51, - step_id='praesentium', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=2103.82, + step_id='corporis', + time_period=shared.DynamicDueDateTimePeriod.DAYS, ), enable_ecp_workflow=False, flow=[ - shared.Section( - id='97b0074f-1547-41b5-a6e1-3b99d488e1e9', - name='Patti Gottlieb MD', - order=8423.42, - steps=[ - shared.Step( - assigned_to=[ - 'explicabo', - ], - automation_config=shared.StepAutomationConfig( - flow_id='deserunt', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=8413.86, - step_id='labore', - time_period=shared.DynamicDueDateTimePeriod.DAYS, - ), - ecp=shared.ECPDetails( - label='qui', - ), - execution_type=shared.StepType.MANUAL, - id='9802d502-a94b-4b4f-a3c9-69e9a3efa77d', - name='Jean Buckridge', - order=8137.98, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='ea', - type=shared.ItemType.STEP, - ), - ], - type=shared.ItemType.SECTION, - user_ids=[ - 8811.04, - ], - ), - ], - type=shared.ItemType.STEP, - ), + [], ], - id='95efb9ba-88f3-4a66-9970-74ba4469b6e2', + id='c5955907-aff1-4a3a-afa9-467739251aa5', last_update_time='2021-04-27T12:01:13.000Z', - name='Danielle Bosco', + name='Angelica Dietrich', update_entity_attributes=[ shared.UpdateEntityAttributes( source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, @@ -425,10 +354,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 5518.16, + 8209.94, ], ), - definition_id='sint', + definition_id='aut', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 27f9696a3..3bd5f812e 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -67,6 +67,7 @@ docs/models/shared/changereasonstatusreq.md docs/models/shared/closingreasonsstatus.md docs/models/shared/closingreason.md docs/models/shared/closingreasons.md +docs/models/shared/workflowdefinitionflow.md docs/models/shared/workflowdefinition.md docs/models/shared/updateentityattributessource.md docs/models/shared/updateentityattributestarget.md diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 6b0fa3bfa..3e8530cb1 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.91.0 - generationVersion: 2.129.1 + speakeasyVersion: 1.91.2 + generationVersion: 2.131.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.86.0 + core: 2.86.1 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.45.0 + version: 1.45.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index b42947406..90afc3815 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.45.0", + version="1.45.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", 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/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py index fc2f40e15..283b296fc 100755 --- a/workflows_definition/src/sdk/models/shared/__init__.py +++ b/workflows_definition/src/sdk/models/shared/__init__.py @@ -20,4 +20,4 @@ from .updateentityattributes import * from .workflowdefinition import * -__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition"] +__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index 69283df46..f59fb487f 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -4,17 +4,25 @@ import dataclasses from ..shared import closingreasonid as shared_closingreasonid from ..shared import dynamicduedate as shared_dynamicduedate +from ..shared import section as shared_section +from ..shared import step as shared_step from ..shared import updateentityattributes as shared_updateentityattributes from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Any, Optional +from typing import Optional, Union + + + +@dataclasses.dataclass +class WorkflowDefinitionFlow: + pass @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class WorkflowDefinition: - flow: list[Any] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) + flow: list[Union[shared_section.Section, shared_step.Step]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) closing_reasons: Optional[list[shared_closingreasonid.ClosingReasonID]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closingReasons'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index a188711ff..98d6ae0a9 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 05eafba6c..b0aeb54de 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 fca1e7bc21ff700815ffb3213294da4a37cf189a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 29 Sep 2023 01:16:01 +0000 Subject: [PATCH 75/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.91.3 --- workflows_definition/README.md | 4 +- workflows_definition/RELEASES.md | 10 ++- workflows_definition/USAGE.md | 4 +- .../operations/changereasonstatusrequest.md | 8 +- .../operations/changereasonstatusresponse.md | 6 +- .../operations/createclosingreasonresponse.md | 6 +- .../operations/createdefinitionresponse.md | 8 +- .../operations/deletedefinitionrequest.md | 2 +- .../operations/deletedefinitionresponse.md | 6 +- .../getallclosingreasonsresponse.md | 6 +- .../models/operations/getdefinitionrequest.md | 2 +- .../operations/getdefinitionresponse.md | 16 ++-- .../operations/getdefinitionsresponse.md | 8 +- .../operations/getmaxallowedlimitresponse.md | 8 +- .../getworkflowclosingreasonsrequest.md | 2 +- .../getworkflowclosingreasonsresponse.md | 6 +- .../setworkflowclosingreasonsrequest.md | 8 +- .../setworkflowclosingreasonsresponse.md | 4 +- .../operations/updatedefinitionrequest.md | 8 +- .../operations/updatedefinitionresponse.md | 8 +- .../models/shared/changereasonstatusreq.md | 6 +- .../docs/models/shared/closingreason.md | 14 ++-- .../docs/models/shared/closingreasonid.md | 2 +- .../docs/models/shared/closingreasons.md | 6 +- .../docs/models/shared/closingreasonsids.md | 6 +- .../docs/models/shared/dynamicduedate.md | 12 +-- .../docs/models/shared/section.md | 14 ++-- .../docs/models/shared/security.md | 2 +- .../docs/models/shared/step.md | 16 ++-- .../models/shared/stepautomationconfig.md | 2 +- .../docs/models/shared/steprequirement.md | 10 +-- .../models/shared/steprequirementcondition.md | 8 -- .../models/shared/updateentityattributes.md | 8 +- .../shared/updateentityattributestarget.md | 4 +- .../docs/models/shared/workflowdefinition.md | 10 +-- .../docs/sdks/closingreason/README.md | 14 ++-- .../docs/sdks/workflows/README.md | 48 +++++------ workflows_definition/files.gen | 1 - workflows_definition/gen.yaml | 8 +- workflows_definition/pylintrc | 4 +- workflows_definition/setup.py | 2 +- .../src/sdk/closing_reason.py | 10 +-- .../src/sdk/models/shared/__init__.py | 2 +- .../src/sdk/models/shared/steprequirement.py | 7 +- .../src/sdk/sdkconfiguration.py | 5 +- workflows_definition/src/sdk/utils/utils.py | 79 ++++++++++++++++--- workflows_definition/src/sdk/workflows.py | 22 +++--- 47 files changed, 254 insertions(+), 198 deletions(-) delete mode 100755 workflows_definition/docs/models/shared/steprequirementcondition.md diff --git a/workflows_definition/README.md b/workflows_definition/README.md index e154f8c0f..c7e98f780 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -22,9 +22,9 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatus.INACTIVE, + status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='quibusdam', + reason_id='sky bluetooth', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 3e5972db9..9d64cba3d 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -506,4 +506,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.91.2 (2.131.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.45.1] workflows_definition \ No newline at end of file +- [python v1.45.1] workflows_definition + +## 2023-09-29 01:15:45 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.46.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 9925afc9c..5991fba15 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -13,9 +13,9 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatus.INACTIVE, + status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='provident', + reason_id='sky bluetooth', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/docs/models/operations/changereasonstatusrequest.md b/workflows_definition/docs/models/operations/changereasonstatusrequest.md index a140aca24..2f9db5593 100755 --- a/workflows_definition/docs/models/operations/changereasonstatusrequest.md +++ b/workflows_definition/docs/models/operations/changereasonstatusrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `change_reason_status_req` | [Optional[shared.ChangeReasonStatusReq]](../../models/shared/changereasonstatusreq.md) | :heavy_minus_sign: | change the status of a closing reason | -| `reason_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `change_reason_status_req` | [Optional[shared.ChangeReasonStatusReq]](undefined/models/shared/changereasonstatusreq.md) | :heavy_minus_sign: | change the status of a closing reason | +| `reason_id` | *Optional[str]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/changereasonstatusresponse.md b/workflows_definition/docs/models/operations/changereasonstatusresponse.md index 012a6b383..da0763047 100755 --- a/workflows_definition/docs/models/operations/changereasonstatusresponse.md +++ b/workflows_definition/docs/models/operations/changereasonstatusresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | bad request | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | bad request | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createclosingreasonresponse.md b/workflows_definition/docs/models/operations/createclosingreasonresponse.md index 4a7eb57f6..4432ec11f 100755 --- a/workflows_definition/docs/models/operations/createclosingreasonresponse.md +++ b/workflows_definition/docs/models/operations/createclosingreasonresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `closing_reason` | [Optional[shared.ClosingReason]](../../models/shared/closingreason.md) | :heavy_minus_sign: | closing reason is stored successfully in the repository | -| `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 | +| `closing_reason` | [Optional[shared.ClosingReason]](undefined/models/shared/closingreason.md) | :heavy_minus_sign: | closing reason is stored successfully in the repository | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createdefinitionresponse.md b/workflows_definition/docs/models/operations/createdefinitionresponse.md index bf9a2c98e..4f8451fe4 100755 --- a/workflows_definition/docs/models/operations/createdefinitionresponse.md +++ b/workflows_definition/docs/models/operations/createdefinitionresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is created successfully | \ No newline at end of file +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is created successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionrequest.md b/workflows_definition/docs/models/operations/deletedefinitionrequest.md index 4644cc5a7..0904e3a87 100755 --- a/workflows_definition/docs/models/operations/deletedefinitionrequest.md +++ b/workflows_definition/docs/models/operations/deletedefinitionrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `definition_id` | *str* | :heavy_check_mark: | Id of the definition to de deleted. | \ No newline at end of file +| `definition_id` | *Optional[str]* | :heavy_check_mark: | Id of the definition to de deleted. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionresponse.md b/workflows_definition/docs/models/operations/deletedefinitionresponse.md index 568621af6..7b33e2546 100755 --- a/workflows_definition/docs/models/operations/deletedefinitionresponse.md +++ b/workflows_definition/docs/models/operations/deletedefinitionresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Failed to authenticate | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Failed to authenticate | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md index 36e0e2283..ed1608210 100755 --- a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `closing_reasons` | [Optional[shared.ClosingReasons]](../../models/shared/closingreasons.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons per organization | -| `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 | +| `closing_reasons` | [Optional[shared.ClosingReasons]](undefined/models/shared/closingreasons.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons per organization | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionrequest.md b/workflows_definition/docs/models/operations/getdefinitionrequest.md index 54c03eb0c..3da72cc45 100755 --- a/workflows_definition/docs/models/operations/getdefinitionrequest.md +++ b/workflows_definition/docs/models/operations/getdefinitionrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `definition_id` | *str* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file +| `definition_id` | *Optional[str]* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionresponse.md b/workflows_definition/docs/models/operations/getdefinitionresponse.md index fc37b0d45..ac879b8b8 100755 --- a/workflows_definition/docs/models/operations/getdefinitionresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionresponse.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `definition_not_found_resp` | [Optional[shared.DefinitionNotFoundResp]](../../models/shared/definitionnotfoundresp.md) | :heavy_minus_sign: | Definition Not found | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `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 | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Returns the Workflow definition | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `definition_not_found_resp` | [Optional[shared.DefinitionNotFoundResp]](undefined/models/shared/definitionnotfoundresp.md) | :heavy_minus_sign: | Definition Not found | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_minus_sign: | Returns the Workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md index 22d854584..344761c3c 100755 --- a/workflows_definition/docs/models/operations/getdefinitionsresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionsresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | +| `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 | -| `workflow_definitions` | list[[shared.WorkflowDefinition](../../models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file +| `workflow_definitions` | list[[shared.WorkflowDefinition](undefined/models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md index 736abd8cb..3468882e4 100755 --- a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md +++ b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | -| `max_allowed_limit` | [Optional[shared.MaxAllowedLimit]](../../models/shared/maxallowedlimit.md) | :heavy_minus_sign: | A combo of current number of workflows, and the max allowed number of workflows. | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | +| `max_allowed_limit` | [Optional[shared.MaxAllowedLimit]](undefined/models/shared/maxallowedlimit.md) | :heavy_minus_sign: | A combo of current number of workflows, and the max allowed number of workflows. | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md index 4b23c9f97..a07d7f637 100755 --- a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------- | --------------------------- | --------------------------- | --------------------------- | -| `definition_id` | *str* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file +| `definition_id` | *Optional[str]* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md index 17b7cf997..c26221a21 100755 --- a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](../../models/shared/closingreasonsids.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons for a specific workflow | -| `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 | +| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](undefined/models/shared/closingreasonsids.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons for a specific workflow | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md index c8f8b872e..c1a81867e 100755 --- a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `closing_reasons_ids` | [shared.ClosingReasonsIds](../../models/shared/closingreasonsids.md) | :heavy_check_mark: | set all closing reasons for a specific definition | -| `definition_id` | *str* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](undefined/models/shared/closingreasonsids.md) | :heavy_check_mark: | set all closing reasons for a specific definition | +| `definition_id` | *Optional[str]* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md index 76541efd1..532fc3d53 100755 --- a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionrequest.md b/workflows_definition/docs/models/operations/updatedefinitionrequest.md index f1ee1fa8f..b97f53edc 100755 --- a/workflows_definition/docs/models/operations/updatedefinitionrequest.md +++ b/workflows_definition/docs/models/operations/updatedefinitionrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `workflow_definition` | [shared.WorkflowDefinition](../../models/shared/workflowdefinition.md) | :heavy_check_mark: | Workflow Definition payload | -| `definition_id` | *str* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_check_mark: | Workflow Definition payload | +| `definition_id` | *Optional[str]* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionresponse.md b/workflows_definition/docs/models/operations/updatedefinitionresponse.md index 859c47f0e..a52a5d4b5 100755 --- a/workflows_definition/docs/models/operations/updatedefinitionresponse.md +++ b/workflows_definition/docs/models/operations/updatedefinitionresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is updated successfully | \ No newline at end of file +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is updated successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/changereasonstatusreq.md b/workflows_definition/docs/models/shared/changereasonstatusreq.md index c7ba4f00f..40ab09cf3 100755 --- a/workflows_definition/docs/models/shared/changereasonstatusreq.md +++ b/workflows_definition/docs/models/shared/changereasonstatusreq.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `status` | [ClosingReasonsStatus](../../models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `status` | [Optional[shared.ClosingReasonsStatus]](undefined/models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreason.md b/workflows_definition/docs/models/shared/closingreason.md index f330b63af..d2413be98 100755 --- a/workflows_definition/docs/models/shared/closingreason.md +++ b/workflows_definition/docs/models/shared/closingreason.md @@ -5,10 +5,10 @@ One Closing reason for a workflow ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `creation_time` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status` | [ClosingReasonsStatus](../../models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | -| `title` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `creation_time` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `status` | [Optional[shared.ClosingReasonsStatus]](undefined/models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | +| `title` | *Optional[str]* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonid.md b/workflows_definition/docs/models/shared/closingreasonid.md index 3f125cffc..b84bfb458 100755 --- a/workflows_definition/docs/models/shared/closingreasonid.md +++ b/workflows_definition/docs/models/shared/closingreasonid.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *str* | :heavy_check_mark: | N/A | x739cew | \ No newline at end of file +| `id` | *Optional[str]* | :heavy_check_mark: | N/A | x739cew | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md index ef7f12f22..bb45d48fb 100755 --- a/workflows_definition/docs/models/shared/closingreasons.md +++ b/workflows_definition/docs/models/shared/closingreasons.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `reasons` | list[[ClosingReason](../../models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `reasons` | list[[shared.ClosingReason](undefined/models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md index b337a4e34..3486ff855 100755 --- a/workflows_definition/docs/models/shared/closingreasonsids.md +++ b/workflows_definition/docs/models/shared/closingreasonsids.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `reasons` | list[[shared.ClosingReasonID](undefined/models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/dynamicduedate.md b/workflows_definition/docs/models/shared/dynamicduedate.md index ba075f756..3953c6a01 100755 --- a/workflows_definition/docs/models/shared/dynamicduedate.md +++ b/workflows_definition/docs/models/shared/dynamicduedate.md @@ -5,9 +5,9 @@ set a Duedate for a step then a specific ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `action_type_condition` | [DynamicDueDateActionTypeCondition](../../models/shared/dynamicduedateactiontypecondition.md) | :heavy_check_mark: | N/A | -| `number_of_units` | *float* | :heavy_check_mark: | N/A | -| `step_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `time_period` | [DynamicDueDateTimePeriod](../../models/shared/dynamicduedatetimeperiod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `action_type_condition` | [Optional[shared.DynamicDueDateActionTypeCondition]](undefined/models/shared/dynamicduedateactiontypecondition.md) | :heavy_check_mark: | N/A | +| `number_of_units` | *Optional[float]* | :heavy_check_mark: | N/A | +| `step_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `time_period` | [Optional[shared.DynamicDueDateTimePeriod]](undefined/models/shared/dynamicduedatetimeperiod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/section.md b/workflows_definition/docs/models/shared/section.md index 0a775eb7a..4efb9dfb0 100755 --- a/workflows_definition/docs/models/shared/section.md +++ b/workflows_definition/docs/models/shared/section.md @@ -5,10 +5,10 @@ A group of Steps that define the progress of the Workflow ## Fields -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `order` | *float* | :heavy_check_mark: | N/A | -| `steps` | list[[Step](../../models/shared/step.md)] | :heavy_check_mark: | N/A | -| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `name` | *Optional[str]* | :heavy_check_mark: | N/A | +| `order` | *Optional[float]* | :heavy_check_mark: | N/A | +| `steps` | list[[shared.Step](undefined/models/shared/step.md)] | :heavy_check_mark: | N/A | +| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/security.md b/workflows_definition/docs/models/shared/security.md index 83ee1f8f9..dbc7d2ed6 100755 --- a/workflows_definition/docs/models/shared/security.md +++ b/workflows_definition/docs/models/shared/security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `bearer_auth` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `bearer_auth` | *Optional[str]* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md index 83c7abf56..2b2921cea 100755 --- a/workflows_definition/docs/models/shared/step.md +++ b/workflows_definition/docs/models/shared/step.md @@ -8,14 +8,14 @@ Action that needs to be done in a Workflow | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | +| `automation_config` | [Optional[shared.StepAutomationConfig]](undefined/models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | -| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | -| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | +| `dynamic_due_date` | [Optional[shared.DynamicDueDate]](undefined/models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `ecp` | [Optional[shared.ECPDetails]](undefined/models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | +| `execution_type` | [Optional[shared.StepType]](undefined/models/shared/steptype.md) | :heavy_minus_sign: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `name` | *str* | :heavy_check_mark: | N/A | | -| `order` | *float* | :heavy_check_mark: | N/A | | -| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | -| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | +| `name` | *Optional[str]* | :heavy_check_mark: | N/A | | +| `order` | *Optional[float]* | :heavy_check_mark: | N/A | | +| `requirements` | list[[shared.StepRequirement](undefined/models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | +| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | | | ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/stepautomationconfig.md b/workflows_definition/docs/models/shared/stepautomationconfig.md index 06ed327aa..7bfb79ca7 100755 --- a/workflows_definition/docs/models/shared/stepautomationconfig.md +++ b/workflows_definition/docs/models/shared/stepautomationconfig.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `flow_id` | *str* | :heavy_check_mark: | Id of the configured automation to run | \ No newline at end of file +| `flow_id` | *Optional[str]* | :heavy_check_mark: | Id of the configured automation to run | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirement.md b/workflows_definition/docs/models/shared/steprequirement.md index 446f8cf98..005d05110 100755 --- a/workflows_definition/docs/models/shared/steprequirement.md +++ b/workflows_definition/docs/models/shared/steprequirement.md @@ -5,8 +5,8 @@ describe the requirement for step enablement ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `condition` | [StepRequirementCondition](../../models/shared/steprequirementcondition.md) | :heavy_check_mark: | N/A | -| `definition_id` | *str* | :heavy_check_mark: | N/A | -| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `condition` | *Optional[str]* | :heavy_check_mark: | N/A | +| `definition_id` | *Optional[str]* | :heavy_check_mark: | N/A | +| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirementcondition.md b/workflows_definition/docs/models/shared/steprequirementcondition.md deleted file mode 100755 index c34adc7d8..000000000 --- a/workflows_definition/docs/models/shared/steprequirementcondition.md +++ /dev/null @@ -1,8 +0,0 @@ -# StepRequirementCondition - - -## Values - -| Name | Value | -| -------- | -------- | -| `CLOSED` | CLOSED | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributes.md b/workflows_definition/docs/models/shared/updateentityattributes.md index 96c330966..d2d19cd82 100755 --- a/workflows_definition/docs/models/shared/updateentityattributes.md +++ b/workflows_definition/docs/models/shared/updateentityattributes.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `source` | [UpdateEntityAttributesSource](../../models/shared/updateentityattributessource.md) | :heavy_check_mark: | N/A | -| `target` | [UpdateEntityAttributesTarget](../../models/shared/updateentityattributestarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `source` | [Optional[shared.UpdateEntityAttributesSource]](undefined/models/shared/updateentityattributessource.md) | :heavy_check_mark: | N/A | +| `target` | [Optional[shared.UpdateEntityAttributesTarget]](undefined/models/shared/updateentityattributestarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributestarget.md b/workflows_definition/docs/models/shared/updateentityattributestarget.md index fa35f003c..3ca57bafe 100755 --- a/workflows_definition/docs/models/shared/updateentityattributestarget.md +++ b/workflows_definition/docs/models/shared/updateentityattributestarget.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `entity_attribute` | *str* | :heavy_check_mark: | N/A | my_status | -| `entity_schema` | *str* | :heavy_check_mark: | N/A | opportunity | \ No newline at end of file +| `entity_attribute` | *Optional[str]* | :heavy_check_mark: | N/A | my_status | +| `entity_schema` | *Optional[str]* | :heavy_check_mark: | N/A | opportunity | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index 25e6eda23..ffd2fb8b7 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -6,15 +6,15 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | +| `closing_reasons` | list[[shared.ClosingReasonID](undefined/models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | | `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | | `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `dynamic_due_date` | [Optional[shared.DynamicDueDate]](undefined/models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | | `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | -| `flow` | list[[Union[Section, Step]](../../models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | +| `flow` | list[[Union[shared.Section, shared.Step]](undefined/models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | -| `name` | *str* | :heavy_check_mark: | N/A | | -| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | +| `name` | *Optional[str]* | :heavy_check_mark: | N/A | | +| `update_entity_attributes` | list[[shared.UpdateEntityAttributes](undefined/models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | | ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index 5de29199c..f6d013c82 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -25,9 +25,9 @@ s = sdk.SDK( req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( - status=shared.ClosingReasonsStatus.INACTIVE, + status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='nulla', + reason_id='sky bluetooth', ) res = s.closing_reason.change_reason_status(req) @@ -65,11 +65,11 @@ s = sdk.SDK( ) req = shared.ClosingReason( - creation_time='corrupti', - id='d69a674e-0f46-47cc-8796-ed151a05dfc2', - last_update_time='at', - status=shared.ClosingReasonsStatus.INACTIVE, - title='Dr.', + creation_time='unlined Versatile', + id='', + last_update_time='Club male Cheese', + status=shared.ClosingReasonsStatus.ACTIVE, + title='Electric not Northeast', ) res = s.closing_reason.create_closing_reason(req) diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index 02422da19..f8fac08df 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -30,7 +30,7 @@ s = sdk.SDK( req = shared.WorkflowDefinition( assigned_to=[ - 'molestiae', + 'Account', ], closing_reasons=[ shared.ClosingReasonID( @@ -38,24 +38,24 @@ req = shared.WorkflowDefinition( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='quod', + description='Distributed analyzing synergy', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=4614.79, - step_id='totam', - time_period=shared.DynamicDueDateTimePeriod.MONTHS, + number_of_units=2650.8, + step_id='female Bahrain Nevada', + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), enable_ecp_workflow=False, flow=[ [], ], - id='a1ba928f-c816-4742-8b73-9205929396fe', + id='', last_update_time='2021-04-27T12:01:13.000Z', - name='Harvey Hessel', + name='withdrawal Bahrain national', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_STEP, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -63,7 +63,7 @@ req = shared.WorkflowDefinition( ), ], user_ids=[ - 6976.31, + 2732.95, ], ) @@ -102,7 +102,7 @@ s = sdk.SDK( ) req = operations.DeleteDefinitionRequest( - definition_id='architecto', + definition_id='Expanded DNS Lead', ) res = s.workflows.delete_definition(req) @@ -140,7 +140,7 @@ s = sdk.SDK( ) req = operations.GetDefinitionRequest( - definition_id='ipsa', + definition_id='Pants Money Gorgeous', ) res = s.workflows.get_definition(req) @@ -236,7 +236,7 @@ s = sdk.SDK( ) req = operations.GetWorkflowClosingReasonsRequest( - definition_id='reiciendis', + definition_id='Bedfordshire Account Account', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -281,7 +281,7 @@ req = operations.SetWorkflowClosingReasonsRequest( ), ], ), - definition_id='est', + definition_id='Tuna utilize', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -321,7 +321,7 @@ s = sdk.SDK( req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ - 'mollitia', + 'Dollar', ], closing_reasons=[ shared.ClosingReasonID( @@ -329,24 +329,24 @@ req = operations.UpdateDefinitionRequest( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='laborum', + description='Digitized 5th generation methodology', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=2103.82, - step_id='corporis', - time_period=shared.DynamicDueDateTimePeriod.DAYS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=1623.12, + step_id='Creative 5th', + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), enable_ecp_workflow=False, flow=[ [], ], - id='c5955907-aff1-4a3a-afa9-467739251aa5', + id='', last_update_time='2021-04-27T12:01:13.000Z', - name='Angelica Dietrich', + name='Trigender responsive', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -354,10 +354,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 8209.94, + 8191.51, ], ), - definition_id='aut', + definition_id='farad', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 3bd5f812e..db3ae32ba 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -76,7 +76,6 @@ docs/models/shared/section.md docs/models/shared/itemtype.md docs/models/shared/stepautomationconfig.md docs/models/shared/step.md -docs/models/shared/steprequirementcondition.md docs/models/shared/steprequirement.md docs/models/shared/steptype.md docs/models/shared/ecpdetails.md diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 3e8530cb1..e6eab7424 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.91.2 - generationVersion: 2.131.1 + speakeasyVersion: 1.91.3 + generationVersion: 2.139.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.86.1 + core: 2.87.0 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.45.1 + version: 1.46.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc index ab6495dd6..2a6cf6912 100755 --- a/workflows_definition/pylintrc +++ b/workflows_definition/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/workflows_definition/setup.py b/workflows_definition/setup.py index 90afc3815..52231bc81 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.45.1", + version="1.46.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/closing_reason.py b/workflows_definition/src/sdk/closing_reason.py index ef2d9097c..625ddf2b0 100755 --- a/workflows_definition/src/sdk/closing_reason.py +++ b/workflows_definition/src/sdk/closing_reason.py @@ -20,11 +20,11 @@ def change_reason_status(self, request: operations.ChangeReasonStatusRequest) -> url = utils.generate_url(operations.ChangeReasonStatusRequest, base_url, '/v1/workflows/closing-reasons/{reasonId}', request) headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "change_reason_status_req", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "change_reason_status_req", 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 @@ -53,13 +53,13 @@ def create_closing_reason(self, request: shared.ClosingReason) -> operations.Cre url = base_url + '/v1/workflows/closing-reasons' 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, False, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') 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 @@ -88,7 +88,7 @@ def get_all_closing_reasons(self, request: operations.GetAllClosingReasonsReques headers = {} query_params = utils.get_query_params(operations.GetAllClosingReasonsRequest, 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/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py index 283b296fc..3009d6723 100755 --- a/workflows_definition/src/sdk/models/shared/__init__.py +++ b/workflows_definition/src/sdk/models/shared/__init__.py @@ -20,4 +20,4 @@ from .updateentityattributes import * from .workflowdefinition import * -__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] +__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index 30982d29e..0add17c8a 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -4,11 +4,8 @@ import dataclasses from ..shared import itemtype as shared_itemtype from dataclasses_json import Undefined, dataclass_json -from enum import Enum from sdk import utils - -class StepRequirementCondition(str, Enum): - CLOSED = 'CLOSED' +from typing import Final @dataclass_json(undefined=Undefined.EXCLUDE) @@ -16,8 +13,8 @@ class StepRequirementCondition(str, Enum): @dataclasses.dataclass class StepRequirement: r"""describe the requirement for step enablement""" - condition: StepRequirementCondition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + CONDITION: Final[str] = dataclasses.field(default='CLOSED', metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 98d6ae0a9..f97beb8a3 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: diff --git a/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index b0aeb54de..4388f3b74 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/utils/utils.py @@ -1,9 +1,9 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" -import sys import base64 import json import re +import sys from dataclasses import Field, dataclass, fields, is_dataclass, make_dataclass from datetime import date, datetime from decimal import Decimal @@ -393,17 +393,22 @@ def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delim } -def serialize_request_body(request: dataclass, request_field_name: str, serialization_method: str) -> Tuple[ +def serialize_request_body(request: dataclass, request_field_name: str, nullable: bool, optional: bool, serialization_method: str, encoder=None) -> Tuple[ str, any, any]: if request is None: - return None, None, None + if not nullable and optional: + return None, None, None if not is_dataclass(request) or not hasattr(request, request_field_name): return serialize_content_type(request_field_name, SERIALIZATION_METHOD_TO_CONTENT_TYPE[serialization_method], - request) + request, encoder) request_val = getattr(request, request_field_name) + if request_val is None: + if not nullable and optional: + return None, None, None + request_fields: Tuple[Field, ...] = fields(request) request_metadata = None @@ -419,9 +424,9 @@ def serialize_request_body(request: dataclass, request_field_name: str, serializ request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: - return media_type, marshal_json(request), None + return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: return serialize_multipart_form(media_type, request) if re.match(r'application\/x-www-form-urlencoded.*', media_type) is not None: @@ -678,7 +683,7 @@ def _serialize_header(explode: bool, obj: any) -> str: return '' -def unmarshal_json(data, typ): +def unmarshal_json(data, typ, decoder=None): unmarshal = make_dataclass('Unmarshal', [('res', typ)], bases=(DataClassJsonMixin,)) json_dict = json.loads(data) @@ -687,15 +692,19 @@ def unmarshal_json(data, typ): except AttributeError as attr_err: raise AttributeError( f'unable to unmarshal {data} as {typ}') from attr_err - return out.res + + return out.res if decoder is None else decoder(out.res) -def marshal_json(val): +def marshal_json(val, encoder=None): marshal = make_dataclass('Marshal', [('res', type(val))], bases=(DataClassJsonMixin,)) marshaller = marshal(res=val) json_dict = marshaller.to_dict() - return json.dumps(json_dict["res"]) + + val = json_dict["res"] if encoder is None else encoder(json_dict["res"]) + + return json.dumps(val) def match_content_type(content_type: str, pattern: str) -> boolean: @@ -769,6 +778,56 @@ def decimaldecoder(val): return Decimal(str(val)) +def map_encoder(optional: bool, value_encoder: Callable): + def map_encode(val: dict): + if optional and val is None: + return None + + encoded = {} + for key, value in val.items(): + encoded[key] = value_encoder(value) + + return encoded + + return map_encode + + +def map_decoder(value_decoder: Callable): + def map_decode(val: dict): + decoded = {} + for key, value in val.items(): + decoded[key] = value_decoder(value) + + return decoded + + return map_decode + + +def list_encoder(optional: bool, value_encoder: Callable): + def list_encode(val: list): + if optional and val is None: + return None + + encoded = [] + for value in val: + encoded.append(value_encoder(value)) + + return encoded + + return list_encode + + +def list_decoder(value_decoder: Callable): + def list_decode(val: list): + decoded = [] + for value in val: + decoded.append(value_decoder(value)) + + return decoded + + return list_decode + + def get_field_name(name): def override(_, _field_name=name): return _field_name diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index 408a428bc..627a3d2d9 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -20,13 +20,13 @@ def create_definition(self, request: shared.WorkflowDefinition) -> operations.Cr url = base_url + '/v1/workflows/definitions' 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, False, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') 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 @@ -60,7 +60,7 @@ def delete_definition(self, request: operations.DeleteDefinitionRequest) -> oper url = utils.generate_url(operations.DeleteDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -90,7 +90,7 @@ def get_definition(self, request: operations.GetDefinitionRequest) -> operations url = utils.generate_url(operations.GetDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -130,7 +130,7 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: url = base_url + '/v1/workflows/definitions' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -164,7 +164,7 @@ def get_max_allowed_limit(self) -> operations.GetMaxAllowedLimitResponse: url = base_url + '/v1/workflows/limits/max-allowed' headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -198,7 +198,7 @@ def get_workflow_closing_reasons(self, request: operations.GetWorkflowClosingRea url = utils.generate_url(operations.GetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) headers = {} headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -225,13 +225,13 @@ def set_workflow_closing_reasons(self, request: operations.SetWorkflowClosingRea url = utils.generate_url(operations.SetWorkflowClosingReasonsRequest, base_url, '/v1/workflows/definitions/{definitionId}/closing-reasons', request) headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "closing_reasons_ids", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "closing_reasons_ids", False, False, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') headers['Accept'] = '*/*' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client @@ -252,13 +252,13 @@ def update_definition(self, request: operations.UpdateDefinitionRequest) -> oper url = utils.generate_url(operations.UpdateDefinitionRequest, base_url, '/v1/workflows/definitions/{definitionId}', request) headers = {} - req_content_type, data, form = utils.serialize_request_body(request, "workflow_definition", 'json') + req_content_type, data, form = utils.serialize_request_body(request, "workflow_definition", False, False, 'json') if req_content_type not in ('multipart/form-data', 'multipart/mixed'): headers['content-type'] = req_content_type if data is None and form is None: raise Exception('request body is required') headers['Accept'] = 'application/json' - headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}' + headers['user-agent'] = self.sdk_configuration.user_agent client = self.sdk_configuration.security_client From 0acdcdad7f43114c2995e98ec6c7484a35c31458 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sun, 1 Oct 2023 01:25:34 +0000 Subject: [PATCH 76/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.2 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 9d64cba3d..52535e145 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -514,4 +514,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.46.0] workflows_definition \ No newline at end of file +- [python v1.46.0] workflows_definition + +## 2023-10-01 01:25:20 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index e6eab7424..fed118971 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.91.3 - generationVersion: 2.139.1 + speakeasyVersion: 1.92.2 + generationVersion: 2.142.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.87.0 + core: 2.88.0 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.46.0 + version: 1.47.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 52231bc81..4ef2ccbde 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.46.0", + version="1.47.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index f97beb8a3..19ac8ce66 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From c4a888bb96a1e2b561ee2bb96d9c248e0ab48580 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 2 Oct 2023 01:16:54 +0000 Subject: [PATCH 77/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.92.3 --- workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdkconfiguration.py | 6 +++--- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 52535e145..dad155f7e 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -522,4 +522,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.92.2 (2.142.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.0] workflows_definition \ No newline at end of file +- [python v1.47.0] workflows_definition + +## 2023-10-02 01:16:33 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index fed118971..5298ef010 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.92.2 - generationVersion: 2.142.2 + speakeasyVersion: 1.92.3 + generationVersion: 2.143.2 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.0 + core: 2.88.1 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.47.0 + version: 1.47.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 4ef2ccbde..91fefaf4b 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.47.0", + version="1.47.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 19ac8ce66..1c286638d 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 0882c59ee80fdf67a14caaaa19ecf7c52026d0fc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 5 Oct 2023 01:16:52 +0000 Subject: [PATCH 78/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.94.0 --- workflows_definition/RELEASES.md | 10 +++++++++- .../docs/models/shared/steprequirement.md | 10 +++++----- .../docs/models/shared/steprequirementcondition.md | 8 ++++++++ workflows_definition/files.gen | 1 + workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/models/shared/__init__.py | 2 +- .../src/sdk/models/shared/steprequirement.py | 7 +++++-- workflows_definition/src/sdk/sdkconfiguration.py | 6 +++--- 9 files changed, 37 insertions(+), 17 deletions(-) create mode 100755 workflows_definition/docs/models/shared/steprequirementcondition.md diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index dad155f7e..b389cf02a 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -530,4 +530,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.92.3 (2.143.2) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.1] workflows_definition \ No newline at end of file +- [python v1.47.1] workflows_definition + +## 2023-10-05 01:16:33 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.47.2] workflows_definition \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirement.md b/workflows_definition/docs/models/shared/steprequirement.md index 005d05110..9006a54e3 100755 --- a/workflows_definition/docs/models/shared/steprequirement.md +++ b/workflows_definition/docs/models/shared/steprequirement.md @@ -5,8 +5,8 @@ describe the requirement for step enablement ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `condition` | *Optional[str]* | :heavy_check_mark: | N/A | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | N/A | -| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `condition` | [Optional[shared.StepRequirementCondition]](undefined/models/shared/steprequirementcondition.md) | :heavy_check_mark: | N/A | +| `definition_id` | *Optional[str]* | :heavy_check_mark: | N/A | +| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirementcondition.md b/workflows_definition/docs/models/shared/steprequirementcondition.md new file mode 100755 index 000000000..c34adc7d8 --- /dev/null +++ b/workflows_definition/docs/models/shared/steprequirementcondition.md @@ -0,0 +1,8 @@ +# StepRequirementCondition + + +## Values + +| Name | Value | +| -------- | -------- | +| `CLOSED` | CLOSED | \ No newline at end of file diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index db3ae32ba..3bd5f812e 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -76,6 +76,7 @@ docs/models/shared/section.md docs/models/shared/itemtype.md docs/models/shared/stepautomationconfig.md docs/models/shared/step.md +docs/models/shared/steprequirementcondition.md docs/models/shared/steprequirement.md docs/models/shared/steptype.md docs/models/shared/ecpdetails.md diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 5298ef010..6161518d7 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.92.3 - generationVersion: 2.143.2 + speakeasyVersion: 1.94.0 + generationVersion: 2.147.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.1 + core: 2.88.2 deprecations: 2.81.1 globalSecurity: 2.81.1 globalServerURLs: 2.82.0 python: - version: 1.47.1 + version: 1.47.2 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 0 diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 91fefaf4b..002353a49 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.47.1", + version="1.47.2", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py index 3009d6723..283b296fc 100755 --- a/workflows_definition/src/sdk/models/shared/__init__.py +++ b/workflows_definition/src/sdk/models/shared/__init__.py @@ -20,4 +20,4 @@ from .updateentityattributes import * from .workflowdefinition import * -__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] +__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index 0add17c8a..30982d29e 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -4,8 +4,11 @@ import dataclasses from ..shared import itemtype as shared_itemtype from dataclasses_json import Undefined, dataclass_json +from enum import Enum from sdk import utils -from typing import Final + +class StepRequirementCondition(str, Enum): + CLOSED = 'CLOSED' @dataclass_json(undefined=Undefined.EXCLUDE) @@ -13,8 +16,8 @@ @dataclasses.dataclass class StepRequirement: r"""describe the requirement for step enablement""" + condition: StepRequirementCondition = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) definition_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('definitionId') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - CONDITION: Final[str] = dataclasses.field(default='CLOSED', metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('condition') }}) diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 1c286638d..797c2c70c 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 2f63a373a5e097dbe3755c6bac8df93db689278c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 7 Oct 2023 01:15:28 +0000 Subject: [PATCH 79/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.96.1 --- workflows_definition/RELEASES.md | 10 ++- .../docs/sdks/closingreason/README.md | 9 +- .../docs/sdks/workflows/README.md | 90 ++++++++++++++----- workflows_definition/gen.yaml | 11 +-- workflows_definition/setup.py | 2 +- .../src/sdk/models/__init__.py | 1 + workflows_definition/src/sdk/sdk.py | 8 +- .../src/sdk/sdkconfiguration.py | 6 +- 8 files changed, 95 insertions(+), 42 deletions(-) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index b389cf02a..a5519947e 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -538,4 +538,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.47.2] workflows_definition \ No newline at end of file +- [python v1.47.2] workflows_definition + +## 2023-10-07 01:15:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index f6d013c82..c3852ef4b 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -65,11 +65,8 @@ s = sdk.SDK( ) req = shared.ClosingReason( - creation_time='unlined Versatile', - id='', - last_update_time='Club male Cheese', status=shared.ClosingReasonsStatus.ACTIVE, - title='Electric not Northeast', + title='innocently pace Club', ) res = s.closing_reason.create_closing_reason(req) @@ -106,9 +103,7 @@ s = sdk.SDK( ), ) -req = operations.GetAllClosingReasonsRequest( - include_inactive=False, -) +req = operations.GetAllClosingReasonsRequest() res = s.closing_reason.get_all_closing_reasons(req) diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index f8fac08df..6200fb75e 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -38,24 +38,47 @@ req = shared.WorkflowDefinition( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='Distributed analyzing synergy', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=2650.8, - step_id='female Bahrain Nevada', - time_period=shared.DynamicDueDateTimePeriod.WEEKS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=768.01, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), - enable_ecp_workflow=False, flow=[ - [], + shared.Step( + assigned_to=[ + 'Refined', + ], + automation_config=shared.StepAutomationConfig( + flow_id='Nevada', + ), + due_date='2021-04-27T12:00:00.000Z', + dynamic_due_date=shared.DynamicDueDate( + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=8226.37, + time_period=shared.DynamicDueDateTimePeriod.WEEKS, + ), + ecp=shared.ECPDetails(), + name='Bahrain', + order=3600.06, + requirements=[ + shared.StepRequirement( + condition=shared.StepRequirementCondition.CLOSED, + definition_id='Ball synthesize encryption', + type=shared.ItemType.SECTION, + ), + ], + type=shared.ItemType.STEP, + user_ids=[ + 3002.07, + ], + ), ], - id='', last_update_time='2021-04-27T12:01:13.000Z', - name='withdrawal Bahrain national', + name='charming', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, + source=shared.UpdateEntityAttributesSource.CURRENT_STEP, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -63,7 +86,7 @@ req = shared.WorkflowDefinition( ), ], user_ids=[ - 2732.95, + 3108.05, ], ) @@ -329,24 +352,47 @@ req = operations.UpdateDefinitionRequest( ), ], creation_time='2021-04-27T12:01:13.000Z', - description='Digitized 5th generation methodology', due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=1623.12, - step_id='Creative 5th', + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=452.1, time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), - enable_ecp_workflow=False, flow=[ - [], + shared.Step( + assigned_to=[ + 'tan', + ], + automation_config=shared.StepAutomationConfig( + flow_id='Honda Algeria', + ), + due_date='2021-04-27T12:00:00.000Z', + dynamic_due_date=shared.DynamicDueDate( + action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, + number_of_units=4510.87, + time_period=shared.DynamicDueDateTimePeriod.WEEKS, + ), + ecp=shared.ECPDetails(), + name='responsive gold users', + order=8109.76, + requirements=[ + shared.StepRequirement( + condition=shared.StepRequirementCondition.CLOSED, + definition_id='auxiliary West Response', + type=shared.ItemType.STEP, + ), + ], + type=shared.ItemType.SECTION, + user_ids=[ + 3290.64, + ], + ), ], - id='', last_update_time='2021-04-27T12:01:13.000Z', - name='Trigender responsive', + name='Bicycle', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, + source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -354,10 +400,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 8191.51, + 8236.45, ], ), - definition_id='farad', + definition_id='benchmark cyan zowie', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 6161518d7..c5ad10464 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,21 +2,22 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.94.0 - generationVersion: 2.147.0 + speakeasyVersion: 1.96.1 + generationVersion: 2.150.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.2 + core: 2.88.4 deprecations: 2.81.1 - globalSecurity: 2.81.1 + globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 1.47.2 + version: 1.48.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy + flattenGlobalSecurity: false maxMethodParams: 0 packageName: openapi diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 002353a49..8f62cfcc5 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.47.2", + version="1.48.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/models/__init__.py b/workflows_definition/src/sdk/models/__init__.py index 889f8adcf..36628d6cc 100755 --- a/workflows_definition/src/sdk/models/__init__.py +++ b/workflows_definition/src/sdk/models/__init__.py @@ -1,2 +1,3 @@ """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" +# __init__.py diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index c99bd1629..e0717cd5b 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -15,7 +15,7 @@ class SDK: sdk_configuration: SDKConfiguration def __init__(self, - security: shared.Security = None, + bearer_auth: str, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -24,8 +24,8 @@ def __init__(self, ) -> None: """Instantiates the SDK configuring it with the provided parameters. - :param security: The security details required for authentication - :type security: shared.Security + :param bearer_auth: The bearer_auth required for authentication + :type bearer_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 @@ -40,8 +40,10 @@ def __init__(self, if client is None: client = requests_http.Session() + security_client = utils.configure_security_client(client, security) + if server_url is not None: if url_params is not None: server_url = utils.template_url(server_url, url_params) diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 797c2c70c..2f7bcfbc0 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From d6d2dcc50d91a7f80c35da5215bc017e484139fc Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 13 Oct 2023 01:18:28 +0000 Subject: [PATCH 80/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.99.1 --- workflows_definition/README.md | 1 + workflows_definition/RELEASES.md | 10 +++++++++- workflows_definition/USAGE.md | 1 + .../operations/changereasonstatusrequest.md | 8 ++++---- .../operations/changereasonstatusresponse.md | 6 +++--- .../operations/createclosingreasonresponse.md | 6 +++--- .../operations/createdefinitionresponse.md | 8 ++++---- .../models/operations/deletedefinitionrequest.md | 2 +- .../operations/deletedefinitionresponse.md | 6 +++--- .../operations/getallclosingreasonsresponse.md | 6 +++--- .../models/operations/getdefinitionrequest.md | 2 +- .../models/operations/getdefinitionresponse.md | 16 ++++++++-------- .../models/operations/getdefinitionsresponse.md | 8 ++++---- .../operations/getmaxallowedlimitresponse.md | 8 ++++---- .../getworkflowclosingreasonsrequest.md | 2 +- .../getworkflowclosingreasonsresponse.md | 6 +++--- .../setworkflowclosingreasonsrequest.md | 8 ++++---- .../setworkflowclosingreasonsresponse.md | 4 ++-- .../models/operations/updatedefinitionrequest.md | 8 ++++---- .../operations/updatedefinitionresponse.md | 8 ++++---- .../docs/models/shared/changereasonstatusreq.md | 6 +++--- .../docs/models/shared/closingreason.md | 14 +++++++------- .../docs/models/shared/closingreasonid.md | 2 +- .../docs/models/shared/closingreasons.md | 6 +++--- .../docs/models/shared/closingreasonsids.md | 6 +++--- .../docs/models/shared/dynamicduedate.md | 12 ++++++------ .../docs/models/shared/section.md | 14 +++++++------- .../docs/models/shared/security.md | 2 +- workflows_definition/docs/models/shared/step.md | 16 ++++++++-------- .../docs/models/shared/stepautomationconfig.md | 2 +- .../docs/models/shared/steprequirement.md | 10 +++++----- .../docs/models/shared/updateentityattributes.md | 8 ++++---- .../shared/updateentityattributestarget.md | 4 ++-- .../docs/models/shared/workflowdefinition.md | 10 +++++----- .../docs/sdks/closingreason/README.md | 3 +++ .../docs/sdks/workflows/README.md | 8 ++++++++ workflows_definition/gen.yaml | 8 ++++---- workflows_definition/setup.py | 2 +- workflows_definition/src/sdk/sdk.py | 6 +++--- workflows_definition/src/sdk/sdkconfiguration.py | 6 +++--- 40 files changed, 145 insertions(+), 124 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index c7e98f780..a5f259a43 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -31,6 +31,7 @@ res = s.closing_reason.change_reason_status(req) if res.status_code == 200: # handle response + pass ``` diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index a5519947e..ba8dc2426 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -546,4 +546,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.0] workflows_definition \ No newline at end of file +- [python v1.48.0] workflows_definition + +## 2023-10-13 01:18:10 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.48.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 5991fba15..d0d072662 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -22,5 +22,6 @@ res = s.closing_reason.change_reason_status(req) if res.status_code == 200: # handle response + pass ``` \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/changereasonstatusrequest.md b/workflows_definition/docs/models/operations/changereasonstatusrequest.md index 2f9db5593..a140aca24 100755 --- a/workflows_definition/docs/models/operations/changereasonstatusrequest.md +++ b/workflows_definition/docs/models/operations/changereasonstatusrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `change_reason_status_req` | [Optional[shared.ChangeReasonStatusReq]](undefined/models/shared/changereasonstatusreq.md) | :heavy_minus_sign: | change the status of a closing reason | -| `reason_id` | *Optional[str]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `change_reason_status_req` | [Optional[shared.ChangeReasonStatusReq]](../../models/shared/changereasonstatusreq.md) | :heavy_minus_sign: | change the status of a closing reason | +| `reason_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/changereasonstatusresponse.md b/workflows_definition/docs/models/operations/changereasonstatusresponse.md index da0763047..012a6b383 100755 --- a/workflows_definition/docs/models/operations/changereasonstatusresponse.md +++ b/workflows_definition/docs/models/operations/changereasonstatusresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | bad request | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | bad request | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createclosingreasonresponse.md b/workflows_definition/docs/models/operations/createclosingreasonresponse.md index 4432ec11f..4a7eb57f6 100755 --- a/workflows_definition/docs/models/operations/createclosingreasonresponse.md +++ b/workflows_definition/docs/models/operations/createclosingreasonresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `closing_reason` | [Optional[shared.ClosingReason]](undefined/models/shared/closingreason.md) | :heavy_minus_sign: | closing reason is stored successfully in the repository | -| `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 | +| `closing_reason` | [Optional[shared.ClosingReason]](../../models/shared/closingreason.md) | :heavy_minus_sign: | closing reason is stored successfully in the repository | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/createdefinitionresponse.md b/workflows_definition/docs/models/operations/createdefinitionresponse.md index 4f8451fe4..bf9a2c98e 100755 --- a/workflows_definition/docs/models/operations/createdefinitionresponse.md +++ b/workflows_definition/docs/models/operations/createdefinitionresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is created successfully | \ No newline at end of file +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is created successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionrequest.md b/workflows_definition/docs/models/operations/deletedefinitionrequest.md index 0904e3a87..4644cc5a7 100755 --- a/workflows_definition/docs/models/operations/deletedefinitionrequest.md +++ b/workflows_definition/docs/models/operations/deletedefinitionrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | Id of the definition to de deleted. | \ No newline at end of file +| `definition_id` | *str* | :heavy_check_mark: | Id of the definition to de deleted. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/deletedefinitionresponse.md b/workflows_definition/docs/models/operations/deletedefinitionresponse.md index 7b33e2546..568621af6 100755 --- a/workflows_definition/docs/models/operations/deletedefinitionresponse.md +++ b/workflows_definition/docs/models/operations/deletedefinitionresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Failed to authenticate | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Failed to authenticate | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md index ed1608210..36e0e2283 100755 --- a/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/getallclosingreasonsresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `closing_reasons` | [Optional[shared.ClosingReasons]](undefined/models/shared/closingreasons.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons per organization | -| `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 | +| `closing_reasons` | [Optional[shared.ClosingReasons]](../../models/shared/closingreasons.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons per organization | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionrequest.md b/workflows_definition/docs/models/operations/getdefinitionrequest.md index 3da72cc45..54c03eb0c 100755 --- a/workflows_definition/docs/models/operations/getdefinitionrequest.md +++ b/workflows_definition/docs/models/operations/getdefinitionrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file +| `definition_id` | *str* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionresponse.md b/workflows_definition/docs/models/operations/getdefinitionresponse.md index ac879b8b8..fc37b0d45 100755 --- a/workflows_definition/docs/models/operations/getdefinitionresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionresponse.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `definition_not_found_resp` | [Optional[shared.DefinitionNotFoundResp]](undefined/models/shared/definitionnotfoundresp.md) | :heavy_minus_sign: | Definition Not found | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `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 | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_minus_sign: | Returns the Workflow definition | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `definition_not_found_resp` | [Optional[shared.DefinitionNotFoundResp]](../../models/shared/definitionnotfoundresp.md) | :heavy_minus_sign: | Definition Not found | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Returns the Workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md index 344761c3c..22d854584 100755 --- a/workflows_definition/docs/models/operations/getdefinitionsresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionsresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | +| `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 | -| `workflow_definitions` | list[[shared.WorkflowDefinition](undefined/models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file +| `workflow_definitions` | list[[shared.WorkflowDefinition](../../models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md index 3468882e4..736abd8cb 100755 --- a/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md +++ b/workflows_definition/docs/models/operations/getmaxallowedlimitresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | -| `max_allowed_limit` | [Optional[shared.MaxAllowedLimit]](undefined/models/shared/maxallowedlimit.md) | :heavy_minus_sign: | A combo of current number of workflows, and the max allowed number of workflows. | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | +| `max_allowed_limit` | [Optional[shared.MaxAllowedLimit]](../../models/shared/maxallowedlimit.md) | :heavy_minus_sign: | A combo of current number of workflows, and the max allowed number of workflows. | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md index a07d7f637..4b23c9f97 100755 --- a/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsrequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------- | --------------------------- | --------------------------- | --------------------------- | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file +| `definition_id` | *str* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md index c26221a21..17b7cf997 100755 --- a/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/getworkflowclosingreasonsresponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](undefined/models/shared/closingreasonsids.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons for a specific workflow | -| `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 | +| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](../../models/shared/closingreasonsids.md) | :heavy_minus_sign: | Returns the entire catalog of closing reasons for a specific workflow | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md index c1a81867e..c8f8b872e 100755 --- a/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `closing_reasons_ids` | [Optional[shared.ClosingReasonsIds]](undefined/models/shared/closingreasonsids.md) | :heavy_check_mark: | set all closing reasons for a specific definition | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `closing_reasons_ids` | [shared.ClosingReasonsIds](../../models/shared/closingreasonsids.md) | :heavy_check_mark: | set all closing reasons for a specific definition | +| `definition_id` | *str* | :heavy_check_mark: | ID of a workflow definition | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md index 532fc3d53..76541efd1 100755 --- a/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md +++ b/workflows_definition/docs/models/operations/setworkflowclosingreasonsresponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionrequest.md b/workflows_definition/docs/models/operations/updatedefinitionrequest.md index b97f53edc..f1ee1fa8f 100755 --- a/workflows_definition/docs/models/operations/updatedefinitionrequest.md +++ b/workflows_definition/docs/models/operations/updatedefinitionrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_check_mark: | Workflow Definition payload | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `workflow_definition` | [shared.WorkflowDefinition](../../models/shared/workflowdefinition.md) | :heavy_check_mark: | Workflow Definition payload | +| `definition_id` | *str* | :heavy_check_mark: | Short uuid (length 8) to identify the Workflow Definition. | \ No newline at end of file diff --git a/workflows_definition/docs/models/operations/updatedefinitionresponse.md b/workflows_definition/docs/models/operations/updatedefinitionresponse.md index a52a5d4b5..859c47f0e 100755 --- a/workflows_definition/docs/models/operations/updatedefinitionresponse.md +++ b/workflows_definition/docs/models/operations/updatedefinitionresponse.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation | -| `error_resp` | [Optional[shared.ErrorResp]](undefined/models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | -| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Validation Errors | +| `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 | -| `workflow_definition` | [Optional[shared.WorkflowDefinition]](undefined/models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is updated successfully | \ No newline at end of file +| `workflow_definition` | [Optional[shared.WorkflowDefinition]](../../models/shared/workflowdefinition.md) | :heavy_minus_sign: | Success - if the definition is updated successfully | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/changereasonstatusreq.md b/workflows_definition/docs/models/shared/changereasonstatusreq.md index 40ab09cf3..c7ba4f00f 100755 --- a/workflows_definition/docs/models/shared/changereasonstatusreq.md +++ b/workflows_definition/docs/models/shared/changereasonstatusreq.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `status` | [Optional[shared.ClosingReasonsStatus]](undefined/models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `status` | [ClosingReasonsStatus](../../models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreason.md b/workflows_definition/docs/models/shared/closingreason.md index d2413be98..f330b63af 100755 --- a/workflows_definition/docs/models/shared/closingreason.md +++ b/workflows_definition/docs/models/shared/closingreason.md @@ -5,10 +5,10 @@ One Closing reason for a workflow ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `creation_time` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `status` | [Optional[shared.ClosingReasonsStatus]](undefined/models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | -| `title` | *Optional[str]* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `creation_time` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `last_update_time` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `status` | [ClosingReasonsStatus](../../models/shared/closingreasonsstatus.md) | :heavy_check_mark: | N/A | +| `title` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonid.md b/workflows_definition/docs/models/shared/closingreasonid.md index b84bfb458..3f125cffc 100755 --- a/workflows_definition/docs/models/shared/closingreasonid.md +++ b/workflows_definition/docs/models/shared/closingreasonid.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *Optional[str]* | :heavy_check_mark: | N/A | x739cew | \ No newline at end of file +| `id` | *str* | :heavy_check_mark: | N/A | x739cew | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md index bb45d48fb..ef7f12f22 100755 --- a/workflows_definition/docs/models/shared/closingreasons.md +++ b/workflows_definition/docs/models/shared/closingreasons.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `reasons` | list[[shared.ClosingReason](undefined/models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `reasons` | list[[ClosingReason](../../models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md index 3486ff855..b337a4e34 100755 --- a/workflows_definition/docs/models/shared/closingreasonsids.md +++ b/workflows_definition/docs/models/shared/closingreasonsids.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `reasons` | list[[shared.ClosingReasonID](undefined/models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/dynamicduedate.md b/workflows_definition/docs/models/shared/dynamicduedate.md index 3953c6a01..ba075f756 100755 --- a/workflows_definition/docs/models/shared/dynamicduedate.md +++ b/workflows_definition/docs/models/shared/dynamicduedate.md @@ -5,9 +5,9 @@ set a Duedate for a step then a specific ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `action_type_condition` | [Optional[shared.DynamicDueDateActionTypeCondition]](undefined/models/shared/dynamicduedateactiontypecondition.md) | :heavy_check_mark: | N/A | -| `number_of_units` | *Optional[float]* | :heavy_check_mark: | N/A | -| `step_id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `time_period` | [Optional[shared.DynamicDueDateTimePeriod]](undefined/models/shared/dynamicduedatetimeperiod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `action_type_condition` | [DynamicDueDateActionTypeCondition](../../models/shared/dynamicduedateactiontypecondition.md) | :heavy_check_mark: | N/A | +| `number_of_units` | *float* | :heavy_check_mark: | N/A | +| `step_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `time_period` | [DynamicDueDateTimePeriod](../../models/shared/dynamicduedatetimeperiod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/section.md b/workflows_definition/docs/models/shared/section.md index 4efb9dfb0..0a775eb7a 100755 --- a/workflows_definition/docs/models/shared/section.md +++ b/workflows_definition/docs/models/shared/section.md @@ -5,10 +5,10 @@ A group of Steps that define the progress of the Workflow ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `name` | *Optional[str]* | :heavy_check_mark: | N/A | -| `order` | *Optional[float]* | :heavy_check_mark: | N/A | -| `steps` | list[[shared.Step](undefined/models/shared/step.md)] | :heavy_check_mark: | N/A | -| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `order` | *float* | :heavy_check_mark: | N/A | +| `steps` | list[[Step](../../models/shared/step.md)] | :heavy_check_mark: | N/A | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/security.md b/workflows_definition/docs/models/shared/security.md index dbc7d2ed6..83ee1f8f9 100755 --- a/workflows_definition/docs/models/shared/security.md +++ b/workflows_definition/docs/models/shared/security.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `bearer_auth` | *Optional[str]* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `bearer_auth` | *str* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md index 2b2921cea..83c7abf56 100755 --- a/workflows_definition/docs/models/shared/step.md +++ b/workflows_definition/docs/models/shared/step.md @@ -8,14 +8,14 @@ Action that needs to be done in a Workflow | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `automation_config` | [Optional[shared.StepAutomationConfig]](undefined/models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | +| `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[shared.DynamicDueDate]](undefined/models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | -| `ecp` | [Optional[shared.ECPDetails]](undefined/models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | -| `execution_type` | [Optional[shared.StepType]](undefined/models/shared/steptype.md) | :heavy_minus_sign: | N/A | | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | +| `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `name` | *Optional[str]* | :heavy_check_mark: | N/A | | -| `order` | *Optional[float]* | :heavy_check_mark: | N/A | | -| `requirements` | list[[shared.StepRequirement](undefined/models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | -| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `order` | *float* | :heavy_check_mark: | N/A | | +| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | | ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/stepautomationconfig.md b/workflows_definition/docs/models/shared/stepautomationconfig.md index 7bfb79ca7..06ed327aa 100755 --- a/workflows_definition/docs/models/shared/stepautomationconfig.md +++ b/workflows_definition/docs/models/shared/stepautomationconfig.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- | -| `flow_id` | *Optional[str]* | :heavy_check_mark: | Id of the configured automation to run | \ No newline at end of file +| `flow_id` | *str* | :heavy_check_mark: | Id of the configured automation to run | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/steprequirement.md b/workflows_definition/docs/models/shared/steprequirement.md index 9006a54e3..446f8cf98 100755 --- a/workflows_definition/docs/models/shared/steprequirement.md +++ b/workflows_definition/docs/models/shared/steprequirement.md @@ -5,8 +5,8 @@ describe the requirement for step enablement ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `condition` | [Optional[shared.StepRequirementCondition]](undefined/models/shared/steprequirementcondition.md) | :heavy_check_mark: | N/A | -| `definition_id` | *Optional[str]* | :heavy_check_mark: | N/A | -| `type` | [Optional[shared.ItemType]](undefined/models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `condition` | [StepRequirementCondition](../../models/shared/steprequirementcondition.md) | :heavy_check_mark: | N/A | +| `definition_id` | *str* | :heavy_check_mark: | N/A | +| `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributes.md b/workflows_definition/docs/models/shared/updateentityattributes.md index d2d19cd82..96c330966 100755 --- a/workflows_definition/docs/models/shared/updateentityattributes.md +++ b/workflows_definition/docs/models/shared/updateentityattributes.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `source` | [Optional[shared.UpdateEntityAttributesSource]](undefined/models/shared/updateentityattributessource.md) | :heavy_check_mark: | N/A | -| `target` | [Optional[shared.UpdateEntityAttributesTarget]](undefined/models/shared/updateentityattributestarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `source` | [UpdateEntityAttributesSource](../../models/shared/updateentityattributessource.md) | :heavy_check_mark: | N/A | +| `target` | [UpdateEntityAttributesTarget](../../models/shared/updateentityattributestarget.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/updateentityattributestarget.md b/workflows_definition/docs/models/shared/updateentityattributestarget.md index 3ca57bafe..fa35f003c 100755 --- a/workflows_definition/docs/models/shared/updateentityattributestarget.md +++ b/workflows_definition/docs/models/shared/updateentityattributestarget.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `entity_attribute` | *Optional[str]* | :heavy_check_mark: | N/A | my_status | -| `entity_schema` | *Optional[str]* | :heavy_check_mark: | N/A | opportunity | \ No newline at end of file +| `entity_attribute` | *str* | :heavy_check_mark: | N/A | my_status | +| `entity_schema` | *str* | :heavy_check_mark: | N/A | opportunity | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index ffd2fb8b7..25e6eda23 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -6,15 +6,15 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `closing_reasons` | list[[shared.ClosingReasonID](undefined/models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | +| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | | `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | | `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | -| `dynamic_due_date` | [Optional[shared.DynamicDueDate]](undefined/models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | +| `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | | `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | -| `flow` | list[[Union[shared.Section, shared.Step]](undefined/models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | +| `flow` | list[[Union[Section, Step]](../../models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | -| `name` | *Optional[str]* | :heavy_check_mark: | N/A | | -| `update_entity_attributes` | list[[shared.UpdateEntityAttributes](undefined/models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | +| `name` | *str* | :heavy_check_mark: | N/A | | +| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | | ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index c3852ef4b..41cad95e5 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -34,6 +34,7 @@ res = s.closing_reason.change_reason_status(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -73,6 +74,7 @@ res = s.closing_reason.create_closing_reason(req) if res.closing_reason is not None: # handle response + pass ``` ### Parameters @@ -109,6 +111,7 @@ res = s.closing_reason.get_all_closing_reasons(req) if res.closing_reasons is not None: # handle response + pass ``` ### Parameters diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index 6200fb75e..ea1899658 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -94,6 +94,7 @@ res = s.workflows.create_definition(req) if res.workflow_definition is not None: # handle response + pass ``` ### Parameters @@ -132,6 +133,7 @@ res = s.workflows.delete_definition(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -170,6 +172,7 @@ res = s.workflows.get_definition(req) if res.workflow_definition is not None: # handle response + pass ``` ### Parameters @@ -205,6 +208,7 @@ res = s.workflows.get_definitions() if res.workflow_definitions is not None: # handle response + pass ``` @@ -234,6 +238,7 @@ res = s.workflows.get_max_allowed_limit() if res.max_allowed_limit is not None: # handle response + pass ``` @@ -266,6 +271,7 @@ res = s.workflows.get_workflow_closing_reasons(req) if res.closing_reasons_ids is not None: # handle response + pass ``` ### Parameters @@ -311,6 +317,7 @@ res = s.workflows.set_workflow_closing_reasons(req) if res.status_code == 200: # handle response + pass ``` ### Parameters @@ -410,6 +417,7 @@ res = s.workflows.update_definition(req) if res.workflow_definition is not None: # handle response + pass ``` ### Parameters diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index c5ad10464..6e2aed076 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,20 +2,20 @@ configVersion: 1.0.0 management: docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 docVersion: 1.0.0 - speakeasyVersion: 1.96.1 - generationVersion: 2.150.0 + speakeasyVersion: 1.99.1 + generationVersion: 2.154.1 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.4 + core: 2.88.6 deprecations: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 1.48.0 + version: 1.48.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy flattenGlobalSecurity: false diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 8f62cfcc5..59ad0ed97 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.48.0", + version="1.48.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index e0717cd5b..cf569ba77 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -15,7 +15,7 @@ class SDK: sdk_configuration: SDKConfiguration def __init__(self, - bearer_auth: str, + security: shared.Security = None, server_idx: int = None, server_url: str = None, url_params: dict[str, str] = None, @@ -24,8 +24,8 @@ def __init__(self, ) -> None: """Instantiates the SDK configuring it with the provided parameters. - :param bearer_auth: The bearer_auth required for authentication - :type bearer_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/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index 2f7bcfbc0..e5ce156e6 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: From 6cf1daaa7fe25b93170b96eb0eb8854b33e891aa Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Oct 2023 01:17:07 +0000 Subject: [PATCH 81/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.101.0 --- workflows_definition/README.md | 2 +- workflows_definition/RELEASES.md | 10 +- workflows_definition/USAGE.md | 2 +- .../operations/getdefinitionsresponse.md | 2 +- .../docs/models/shared/closingreasons.md | 2 +- .../docs/models/shared/closingreasonsids.md | 2 +- .../docs/models/shared/ecpdetails.md | 8 +- .../docs/models/shared/section.md | 2 +- .../docs/models/shared/step.md | 8 +- .../docs/models/shared/stepjourney.md | 10 ++ .../docs/models/shared/workflowdefinition.md | 10 +- .../docs/sdks/closingreason/README.md | 4 +- .../docs/sdks/workflows/README.md | 68 +++++----- workflows_definition/files.gen | 6 +- workflows_definition/gen.yaml | 10 +- workflows_definition/pylintrc | 2 +- workflows_definition/setup.py | 26 ++-- .../models/operations/changereasonstatus.py | 2 - .../models/operations/createclosingreason.py | 1 - .../sdk/models/operations/createdefinition.py | 1 - .../sdk/models/operations/deletedefinition.py | 2 - .../models/operations/getallclosingreasons.py | 2 - .../sdk/models/operations/getdefinition.py | 2 - .../sdk/models/operations/getdefinitions.py | 5 +- .../models/operations/getmaxallowedlimit.py | 1 - .../operations/getworkflowclosingreasons.py | 2 - .../operations/setworkflowclosingreasons.py | 2 - .../sdk/models/operations/updatedefinition.py | 2 - .../src/sdk/models/shared/__init__.py | 3 +- .../models/shared/changereasonstatusreq.py | 1 - .../src/sdk/models/shared/closingreason.py | 1 - .../src/sdk/models/shared/closingreasonid.py | 1 - .../src/sdk/models/shared/closingreasons.py | 4 +- .../sdk/models/shared/closingreasonsids.py | 4 +- .../models/shared/definitionnotfoundresp.py | 1 - .../src/sdk/models/shared/dynamicduedate.py | 1 - .../src/sdk/models/shared/ecpdetails.py | 4 +- .../src/sdk/models/shared/errorresp.py | 1 - .../src/sdk/models/shared/maxallowedlimit.py | 1 - .../src/sdk/models/shared/section.py | 5 +- .../src/sdk/models/shared/security.py | 1 - .../src/sdk/models/shared/step.py | 14 ++- .../src/sdk/models/shared/stepjourney.py | 17 +++ .../src/sdk/models/shared/steprequirement.py | 1 - .../models/shared/updateentityattributes.py | 2 - .../sdk/models/shared/workflowdefinition.py | 14 +-- workflows_definition/src/sdk/sdk.py | 5 +- .../src/sdk/sdkconfiguration.py | 13 +- workflows_definition/src/sdk/utils/retries.py | 5 +- workflows_definition/src/sdk/utils/utils.py | 117 ++++++++++-------- workflows_definition/src/sdk/workflows.py | 4 +- 51 files changed, 225 insertions(+), 191 deletions(-) create mode 100755 workflows_definition/docs/models/shared/stepjourney.md create mode 100755 workflows_definition/src/sdk/models/shared/stepjourney.py diff --git a/workflows_definition/README.md b/workflows_definition/README.md index a5f259a43..514184f71 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -24,7 +24,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='sky bluetooth', + reason_id='regional', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index ba8dc2426..4ad9bc49e 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -554,4 +554,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.99.1 (2.154.1) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v1.48.1] workflows_definition \ No newline at end of file +- [python v1.48.1] workflows_definition + +## 2023-10-18 01:16:47 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.0.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index d0d072662..017f26cdb 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -15,7 +15,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='sky bluetooth', + reason_id='regional', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/docs/models/operations/getdefinitionsresponse.md b/workflows_definition/docs/models/operations/getdefinitionsresponse.md index 22d854584..fe201154d 100755 --- a/workflows_definition/docs/models/operations/getdefinitionsresponse.md +++ b/workflows_definition/docs/models/operations/getdefinitionsresponse.md @@ -9,4 +9,4 @@ | `error_resp` | [Optional[shared.ErrorResp]](../../models/shared/errorresp.md) | :heavy_minus_sign: | Other errors | | `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 | -| `workflow_definitions` | list[[shared.WorkflowDefinition](../../models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file +| `workflow_definitions` | List[[shared.WorkflowDefinition](../../models/shared/workflowdefinition.md)] | :heavy_minus_sign: | Success - definitions loaded with success. Empty array if org has no definitions. | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasons.md b/workflows_definition/docs/models/shared/closingreasons.md index ef7f12f22..c36b9e2b6 100755 --- a/workflows_definition/docs/models/shared/closingreasons.md +++ b/workflows_definition/docs/models/shared/closingreasons.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `reasons` | list[[ClosingReason](../../models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `reasons` | List[[ClosingReason](../../models/shared/closingreason.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/closingreasonsids.md b/workflows_definition/docs/models/shared/closingreasonsids.md index b337a4e34..7c2ace1cb 100755 --- a/workflows_definition/docs/models/shared/closingreasonsids.md +++ b/workflows_definition/docs/models/shared/closingreasonsids.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file +| `reasons` | List[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/ecpdetails.md b/workflows_definition/docs/models/shared/ecpdetails.md index 6febd5a06..ca1cbf782 100755 --- a/workflows_definition/docs/models/shared/ecpdetails.md +++ b/workflows_definition/docs/models/shared/ecpdetails.md @@ -5,6 +5,8 @@ Details regarding ECP for the workflow step ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `label` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `journey` | [Optional[StepJourney]](../../models/shared/stepjourney.md) | :heavy_minus_sign: | N/A | +| `label` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `name` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/section.md b/workflows_definition/docs/models/shared/section.md index 0a775eb7a..37f85028d 100755 --- a/workflows_definition/docs/models/shared/section.md +++ b/workflows_definition/docs/models/shared/section.md @@ -10,5 +10,5 @@ A group of Steps that define the progress of the Workflow | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | | `order` | *float* | :heavy_check_mark: | N/A | -| `steps` | list[[Step](../../models/shared/step.md)] | :heavy_check_mark: | N/A | +| `steps` | List[[Step](../../models/shared/step.md)] | :heavy_check_mark: | N/A | | `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/step.md b/workflows_definition/docs/models/shared/step.md index 83c7abf56..8db6a1e83 100755 --- a/workflows_definition/docs/models/shared/step.md +++ b/workflows_definition/docs/models/shared/step.md @@ -7,15 +7,17 @@ Action that needs to be done in a Workflow | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | +| `assigned_to` | List[*str*] | :heavy_minus_sign: | N/A | | | `automation_config` | [Optional[StepAutomationConfig]](../../models/shared/stepautomationconfig.md) | :heavy_minus_sign: | N/A | | | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | | `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | | `ecp` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | | `execution_type` | [Optional[StepType]](../../models/shared/steptype.md) | :heavy_minus_sign: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | +| `installer` | [Optional[ECPDetails]](../../models/shared/ecpdetails.md) | :heavy_minus_sign: | Details regarding ECP for the workflow step | | +| `journey` | [Optional[StepJourney]](../../models/shared/stepjourney.md) | :heavy_minus_sign: | N/A | | | `name` | *str* | :heavy_check_mark: | N/A | | | `order` | *float* | :heavy_check_mark: | N/A | | -| `requirements` | list[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | +| `requirements` | List[[StepRequirement](../../models/shared/steprequirement.md)] | :heavy_minus_sign: | requirements that need to be fulfilled in order to enable the step execution | | | `type` | [ItemType](../../models/shared/itemtype.md) | :heavy_check_mark: | N/A | | -| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file +| ~~`user_ids`~~ | List[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/stepjourney.md b/workflows_definition/docs/models/shared/stepjourney.md new file mode 100755 index 000000000..03111fed3 --- /dev/null +++ b/workflows_definition/docs/models/shared/stepjourney.md @@ -0,0 +1,10 @@ +# StepJourney + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `journey_id` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `name` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/workflows_definition/docs/models/shared/workflowdefinition.md b/workflows_definition/docs/models/shared/workflowdefinition.md index 25e6eda23..ab20d6dd4 100755 --- a/workflows_definition/docs/models/shared/workflowdefinition.md +++ b/workflows_definition/docs/models/shared/workflowdefinition.md @@ -5,16 +5,16 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `assigned_to` | list[*str*] | :heavy_minus_sign: | N/A | | -| `closing_reasons` | list[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | +| `assigned_to` | List[*str*] | :heavy_minus_sign: | N/A | | +| `closing_reasons` | List[[ClosingReasonID](../../models/shared/closingreasonid.md)] | :heavy_minus_sign: | N/A | | | `creation_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | | `description` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `due_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2021-04-27T12:00:00.000Z | | `dynamic_due_date` | [Optional[DynamicDueDate]](../../models/shared/dynamicduedate.md) | :heavy_minus_sign: | set a Duedate for a step then a specific | | | `enable_ecp_workflow` | *Optional[bool]* | :heavy_minus_sign: | Indicates whether this workflow is available for End Customer Portal or not. By default it's not. | | -| `flow` | list[[Union[Section, Step]](../../models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | +| `flow` | List[[Union[Section, Step]](../../models/shared/workflowdefinitionflow.md)] | :heavy_check_mark: | N/A | | | `id` | *Optional[str]* | :heavy_minus_sign: | N/A | | | `last_update_time` | *Optional[str]* | :heavy_minus_sign: | ISO String Date & Time | 2021-04-27T12:01:13.000Z | | `name` | *str* | :heavy_check_mark: | N/A | | -| `update_entity_attributes` | list[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | -| ~~`user_ids`~~ | list[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file +| `update_entity_attributes` | List[[UpdateEntityAttributes](../../models/shared/updateentityattributes.md)] | :heavy_minus_sign: | N/A | | +| ~~`user_ids`~~ | List[*float*] | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This field is deprecated. Please use assignedTo | | \ No newline at end of file diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index 41cad95e5..9b6aad879 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -27,7 +27,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='sky bluetooth', + reason_id='regional', ) res = s.closing_reason.change_reason_status(req) @@ -67,7 +67,7 @@ s = sdk.SDK( req = shared.ClosingReason( status=shared.ClosingReasonsStatus.ACTIVE, - title='innocently pace Club', + title='unlined', ) res = s.closing_reason.create_closing_reason(req) diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index ea1899658..01f328138 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -50,35 +50,41 @@ req = shared.WorkflowDefinition( 'Refined', ], automation_config=shared.StepAutomationConfig( - flow_id='Nevada', + flow_id='Avon', ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=8226.37, - time_period=shared.DynamicDueDateTimePeriod.WEEKS, + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=4748.99, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), - ecp=shared.ECPDetails(), - name='Bahrain', - order=3600.06, + ecp=shared.ECPDetails( + journey=shared.StepJourney(), + ), + installer=shared.ECPDetails( + journey=shared.StepJourney(), + ), + journey=shared.StepJourney(), + name='withdrawal', + order=485.63, requirements=[ shared.StepRequirement( condition=shared.StepRequirementCondition.CLOSED, - definition_id='Ball synthesize encryption', + definition_id='Berkshire', type=shared.ItemType.SECTION, ), ], type=shared.ItemType.STEP, user_ids=[ - 3002.07, + 2732.95, ], ), ], last_update_time='2021-04-27T12:01:13.000Z', - name='charming', + name='synthesize', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_STEP, + source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -86,7 +92,7 @@ req = shared.WorkflowDefinition( ), ], user_ids=[ - 3108.05, + 3000.21, ], ) @@ -126,7 +132,7 @@ s = sdk.SDK( ) req = operations.DeleteDefinitionRequest( - definition_id='Expanded DNS Lead', + definition_id='filch', ) res = s.workflows.delete_definition(req) @@ -165,7 +171,7 @@ s = sdk.SDK( ) req = operations.GetDefinitionRequest( - definition_id='Pants Money Gorgeous', + definition_id='Dodge', ) res = s.workflows.get_definition(req) @@ -264,7 +270,7 @@ s = sdk.SDK( ) req = operations.GetWorkflowClosingReasonsRequest( - definition_id='Bedfordshire Account Account', + definition_id='blue', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -310,7 +316,7 @@ req = operations.SetWorkflowClosingReasonsRequest( ), ], ), - definition_id='Tuna utilize', + definition_id='deposit', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -371,35 +377,41 @@ req = operations.UpdateDefinitionRequest( 'tan', ], automation_config=shared.StepAutomationConfig( - flow_id='Honda Algeria', + flow_id='Creative', ), due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=4510.87, - time_period=shared.DynamicDueDateTimePeriod.WEEKS, + number_of_units=471.4, + time_period=shared.DynamicDueDateTimePeriod.DAYS, + ), + ecp=shared.ECPDetails( + journey=shared.StepJourney(), + ), + installer=shared.ECPDetails( + journey=shared.StepJourney(), ), - ecp=shared.ECPDetails(), - name='responsive gold users', - order=8109.76, + journey=shared.StepJourney(), + name='Trigender', + order=3712.03, requirements=[ shared.StepRequirement( condition=shared.StepRequirementCondition.CLOSED, - definition_id='auxiliary West Response', + definition_id='green', type=shared.ItemType.STEP, ), ], type=shared.ItemType.SECTION, user_ids=[ - 3290.64, + 8109.76, ], ), ], last_update_time='2021-04-27T12:01:13.000Z', - name='Bicycle', + name='jiffy', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -407,10 +419,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 8236.45, + 916.32, ], ), - definition_id='benchmark cyan zowie', + definition_id='Credit', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/files.gen b/workflows_definition/files.gen index 3bd5f812e..bdf477d52 100755 --- a/workflows_definition/files.gen +++ b/workflows_definition/files.gen @@ -33,8 +33,9 @@ src/sdk/models/shared/section.py src/sdk/models/shared/itemtype.py src/sdk/models/shared/step.py src/sdk/models/shared/steprequirement.py -src/sdk/models/shared/steptype.py +src/sdk/models/shared/stepjourney.py src/sdk/models/shared/ecpdetails.py +src/sdk/models/shared/steptype.py src/sdk/models/shared/dynamicduedate.py src/sdk/models/shared/closingreasonid.py src/sdk/models/shared/definitionnotfoundresp.py @@ -78,8 +79,9 @@ docs/models/shared/stepautomationconfig.md docs/models/shared/step.md docs/models/shared/steprequirementcondition.md docs/models/shared/steprequirement.md -docs/models/shared/steptype.md +docs/models/shared/stepjourney.md docs/models/shared/ecpdetails.md +docs/models/shared/steptype.md docs/models/shared/dynamicduedateactiontypecondition.md docs/models/shared/dynamicduedatetimeperiod.md docs/models/shared/dynamicduedate.md diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 6e2aed076..7b4d78394 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -1,21 +1,21 @@ configVersion: 1.0.0 management: - docChecksum: 3f8335b3dac5dd26e396d579dbc082e7 + docChecksum: 9b6852be8e431e603a3d5a80f505bfb0 docVersion: 1.0.0 - speakeasyVersion: 1.99.1 - generationVersion: 2.154.1 + speakeasyVersion: 1.101.0 + generationVersion: 2.161.0 generation: sdkClassName: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 2.88.6 + core: 3.0.2 deprecations: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 1.48.1 + version: 2.0.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy flattenGlobalSecurity: false diff --git a/workflows_definition/pylintrc b/workflows_definition/pylintrc index 2a6cf6912..1ed32214e 100755 --- a/workflows_definition/pylintrc +++ b/workflows_definition/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/workflows_definition/setup.py b/workflows_definition/setup.py index 59ad0ed97..1310a1666 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,33 +10,31 @@ setuptools.setup( name="openapi", - version="1.48.1", + version="2.0.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", 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/workflows_definition/src/sdk/models/operations/changereasonstatus.py b/workflows_definition/src/sdk/models/operations/changereasonstatus.py index 95e497546..df54fd668 100755 --- a/workflows_definition/src/sdk/models/operations/changereasonstatus.py +++ b/workflows_definition/src/sdk/models/operations/changereasonstatus.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class ChangeReasonStatusRequest: reason_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'reasonId', 'style': 'simple', 'explode': False }}) @@ -18,7 +17,6 @@ class ChangeReasonStatusRequest: - @dataclasses.dataclass class ChangeReasonStatusResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/createclosingreason.py b/workflows_definition/src/sdk/models/operations/createclosingreason.py index 616ba8950..20925e9dc 100755 --- a/workflows_definition/src/sdk/models/operations/createclosingreason.py +++ b/workflows_definition/src/sdk/models/operations/createclosingreason.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class CreateClosingReasonResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/createdefinition.py b/workflows_definition/src/sdk/models/operations/createdefinition.py index 8c3d352e5..d3b6b5f4f 100755 --- a/workflows_definition/src/sdk/models/operations/createdefinition.py +++ b/workflows_definition/src/sdk/models/operations/createdefinition.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class CreateDefinitionResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/deletedefinition.py b/workflows_definition/src/sdk/models/operations/deletedefinition.py index eee5c9c66..a3fb9f258 100755 --- a/workflows_definition/src/sdk/models/operations/deletedefinition.py +++ b/workflows_definition/src/sdk/models/operations/deletedefinition.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class DeleteDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) @@ -16,7 +15,6 @@ class DeleteDefinitionRequest: - @dataclasses.dataclass class DeleteDefinitionResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py index d22100fce..c115c083f 100755 --- a/workflows_definition/src/sdk/models/operations/getallclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getallclosingreasons.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class GetAllClosingReasonsRequest: include_inactive: Optional[bool] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'includeInactive', 'style': 'form', 'explode': True }}) @@ -16,7 +15,6 @@ class GetAllClosingReasonsRequest: - @dataclasses.dataclass class GetAllClosingReasonsResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/getdefinition.py b/workflows_definition/src/sdk/models/operations/getdefinition.py index 741c9f13c..9346550c2 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinition.py +++ b/workflows_definition/src/sdk/models/operations/getdefinition.py @@ -9,7 +9,6 @@ from typing import Optional - @dataclasses.dataclass class GetDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) @@ -18,7 +17,6 @@ class GetDefinitionRequest: - @dataclasses.dataclass class GetDefinitionResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/getdefinitions.py b/workflows_definition/src/sdk/models/operations/getdefinitions.py index 476f2ed40..59aa505a0 100755 --- a/workflows_definition/src/sdk/models/operations/getdefinitions.py +++ b/workflows_definition/src/sdk/models/operations/getdefinitions.py @@ -5,8 +5,7 @@ import requests as requests_http from ..shared import errorresp as shared_errorresp from ..shared import workflowdefinition as shared_workflowdefinition -from typing import Optional - +from typing import List, Optional @dataclasses.dataclass @@ -19,7 +18,7 @@ class GetDefinitionsResponse: r"""Other errors""" raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) r"""Raw HTTP response; suitable for custom response parsing""" - workflow_definitions: Optional[list[shared_workflowdefinition.WorkflowDefinition]] = dataclasses.field(default=None) + workflow_definitions: Optional[List[shared_workflowdefinition.WorkflowDefinition]] = dataclasses.field(default=None) r"""Success - definitions loaded with success. Empty array if org has no definitions.""" diff --git a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py index 2e259e1db..0505a1c64 100755 --- a/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py +++ b/workflows_definition/src/sdk/models/operations/getmaxallowedlimit.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class GetMaxAllowedLimitResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py index cb12b595a..8fa78d72d 100755 --- a/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/getworkflowclosingreasons.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class GetWorkflowClosingReasonsRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) @@ -16,7 +15,6 @@ class GetWorkflowClosingReasonsRequest: - @dataclasses.dataclass class GetWorkflowClosingReasonsResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py index 9b9cdde7a..da14138b8 100755 --- a/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py +++ b/workflows_definition/src/sdk/models/operations/setworkflowclosingreasons.py @@ -7,7 +7,6 @@ from typing import Optional - @dataclasses.dataclass class SetWorkflowClosingReasonsRequest: closing_reasons_ids: shared_closingreasonsids.ClosingReasonsIds = dataclasses.field(metadata={'request': { 'media_type': 'application/json' }}) @@ -18,7 +17,6 @@ class SetWorkflowClosingReasonsRequest: - @dataclasses.dataclass class SetWorkflowClosingReasonsResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/operations/updatedefinition.py b/workflows_definition/src/sdk/models/operations/updatedefinition.py index 25e2fc430..154ade941 100755 --- a/workflows_definition/src/sdk/models/operations/updatedefinition.py +++ b/workflows_definition/src/sdk/models/operations/updatedefinition.py @@ -8,7 +8,6 @@ from typing import Optional - @dataclasses.dataclass class UpdateDefinitionRequest: definition_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'definitionId', 'style': 'simple', 'explode': False }}) @@ -19,7 +18,6 @@ class UpdateDefinitionRequest: - @dataclasses.dataclass class UpdateDefinitionResponse: content_type: str = dataclasses.field() diff --git a/workflows_definition/src/sdk/models/shared/__init__.py b/workflows_definition/src/sdk/models/shared/__init__.py index 283b296fc..00e21c777 100755 --- a/workflows_definition/src/sdk/models/shared/__init__.py +++ b/workflows_definition/src/sdk/models/shared/__init__.py @@ -15,9 +15,10 @@ from .section import * from .security import * from .step import * +from .stepjourney import * from .steprequirement import * from .steptype import * from .updateentityattributes import * from .workflowdefinition import * -__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] +__all__ = ["ChangeReasonStatusReq","ClosingReason","ClosingReasonID","ClosingReasons","ClosingReasonsIds","ClosingReasonsStatus","DefinitionNotFoundResp","DynamicDueDate","DynamicDueDateActionTypeCondition","DynamicDueDateTimePeriod","ECPDetails","ErrorResp","ItemType","MaxAllowedLimit","Section","Security","Step","StepAutomationConfig","StepJourney","StepRequirement","StepRequirementCondition","StepType","UpdateEntityAttributes","UpdateEntityAttributesSource","UpdateEntityAttributesTarget","WorkflowDefinition","WorkflowDefinitionFlow"] diff --git a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py index c8840b646..b058e8968 100755 --- a/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py +++ b/workflows_definition/src/sdk/models/shared/changereasonstatusreq.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ChangeReasonStatusReq: status: shared_closingreasonsstatus.ClosingReasonsStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) diff --git a/workflows_definition/src/sdk/models/shared/closingreason.py b/workflows_definition/src/sdk/models/shared/closingreason.py index 4a33d1db4..d705cbc3e 100755 --- a/workflows_definition/src/sdk/models/shared/closingreason.py +++ b/workflows_definition/src/sdk/models/shared/closingreason.py @@ -9,7 +9,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ClosingReason: r"""One Closing reason for a workflow""" diff --git a/workflows_definition/src/sdk/models/shared/closingreasonid.py b/workflows_definition/src/sdk/models/shared/closingreasonid.py index 8b097d6f2..6f3f25cc0 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonid.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonid.py @@ -7,7 +7,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ClosingReasonID: id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id') }}) diff --git a/workflows_definition/src/sdk/models/shared/closingreasons.py b/workflows_definition/src/sdk/models/shared/closingreasons.py index 594948688..d54d2176d 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasons.py +++ b/workflows_definition/src/sdk/models/shared/closingreasons.py @@ -5,12 +5,12 @@ from ..shared import closingreason as shared_closingreason from dataclasses_json import Undefined, dataclass_json from sdk import utils +from typing import List @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ClosingReasons: - reasons: list[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) + reasons: List[shared_closingreason.ClosingReason] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) diff --git a/workflows_definition/src/sdk/models/shared/closingreasonsids.py b/workflows_definition/src/sdk/models/shared/closingreasonsids.py index 11c213bc4..307d7ec6e 100755 --- a/workflows_definition/src/sdk/models/shared/closingreasonsids.py +++ b/workflows_definition/src/sdk/models/shared/closingreasonsids.py @@ -5,12 +5,12 @@ from ..shared import closingreasonid as shared_closingreasonid from dataclasses_json import Undefined, dataclass_json from sdk import utils +from typing import List @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ClosingReasonsIds: - reasons: list[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) + reasons: List[shared_closingreasonid.ClosingReasonID] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('reasons') }}) diff --git a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py index f6d462b9d..bbeea7646 100755 --- a/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py +++ b/workflows_definition/src/sdk/models/shared/definitionnotfoundresp.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DefinitionNotFoundResp: r"""Definition could be not found""" diff --git a/workflows_definition/src/sdk/models/shared/dynamicduedate.py b/workflows_definition/src/sdk/models/shared/dynamicduedate.py index 427a64ef6..7b887316a 100755 --- a/workflows_definition/src/sdk/models/shared/dynamicduedate.py +++ b/workflows_definition/src/sdk/models/shared/dynamicduedate.py @@ -18,7 +18,6 @@ class DynamicDueDateTimePeriod(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class DynamicDueDate: r"""set a Duedate for a step then a specific""" diff --git a/workflows_definition/src/sdk/models/shared/ecpdetails.py b/workflows_definition/src/sdk/models/shared/ecpdetails.py index 234687aa9..69f3783ca 100755 --- a/workflows_definition/src/sdk/models/shared/ecpdetails.py +++ b/workflows_definition/src/sdk/models/shared/ecpdetails.py @@ -2,16 +2,18 @@ from __future__ import annotations import dataclasses +from ..shared import stepjourney as shared_stepjourney from dataclasses_json import Undefined, dataclass_json from sdk import utils from typing import Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ECPDetails: r"""Details regarding ECP for the workflow step""" + journey: Optional[shared_stepjourney.StepJourney] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('journey'), 'exclude': lambda f: f is None }}) label: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('label'), 'exclude': lambda f: f is None }}) + name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/errorresp.py b/workflows_definition/src/sdk/models/shared/errorresp.py index 8516cd004..493bb953f 100755 --- a/workflows_definition/src/sdk/models/shared/errorresp.py +++ b/workflows_definition/src/sdk/models/shared/errorresp.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class ErrorResp: message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('message'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py index 02afab947..683c672a5 100755 --- a/workflows_definition/src/sdk/models/shared/maxallowedlimit.py +++ b/workflows_definition/src/sdk/models/shared/maxallowedlimit.py @@ -8,7 +8,6 @@ @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class MaxAllowedLimit: current_no_of_workflows: Optional[float] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('currentNoOfWorkflows'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/section.py b/workflows_definition/src/sdk/models/shared/section.py index 1209ca1a5..027fd5dbd 100755 --- a/workflows_definition/src/sdk/models/shared/section.py +++ b/workflows_definition/src/sdk/models/shared/section.py @@ -6,17 +6,16 @@ from ..shared import step as shared_step from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class Section: r"""A group of Steps that define the progress of the Workflow""" name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) - steps: list[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) + steps: List[shared_step.Step] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('steps') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) diff --git a/workflows_definition/src/sdk/models/shared/security.py b/workflows_definition/src/sdk/models/shared/security.py index b3eaf2ddc..6cd735f54 100755 --- a/workflows_definition/src/sdk/models/shared/security.py +++ b/workflows_definition/src/sdk/models/shared/security.py @@ -4,7 +4,6 @@ import dataclasses - @dataclasses.dataclass class Security: bearer_auth: str = dataclasses.field(metadata={'security': { 'scheme': True, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' }}) diff --git a/workflows_definition/src/sdk/models/shared/step.py b/workflows_definition/src/sdk/models/shared/step.py index d24ce5ba3..a2f7a86a6 100755 --- a/workflows_definition/src/sdk/models/shared/step.py +++ b/workflows_definition/src/sdk/models/shared/step.py @@ -5,15 +5,15 @@ from ..shared import dynamicduedate as shared_dynamicduedate from ..shared import ecpdetails as shared_ecpdetails from ..shared import itemtype as shared_itemtype +from ..shared import stepjourney as shared_stepjourney from ..shared import steprequirement as shared_steprequirement from ..shared import steptype as shared_steptype from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional +from typing import List, Optional @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class StepAutomationConfig: flow_id: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flowId') }}) @@ -23,14 +23,13 @@ class StepAutomationConfig: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class Step: r"""Action that needs to be done in a Workflow""" name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) order: float = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('order') }}) type: shared_itemtype.ItemType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) + assigned_to: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) automation_config: Optional[StepAutomationConfig] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('automationConfig'), 'exclude': lambda f: f is None }}) due_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dueDate'), 'exclude': lambda f: f is None }}) dynamic_due_date: Optional[shared_dynamicduedate.DynamicDueDate] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('dynamicDueDate'), 'exclude': lambda f: f is None }}) @@ -39,9 +38,12 @@ class Step: r"""Details regarding ECP for the workflow step""" execution_type: Optional[shared_steptype.StepType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('executionType'), 'exclude': lambda f: f is None }}) id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) - requirements: Optional[list[shared_steprequirement.StepRequirement]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('requirements'), 'exclude': lambda f: f is None }}) + installer: Optional[shared_ecpdetails.ECPDetails] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('installer'), 'exclude': lambda f: f is None }}) + r"""Details regarding ECP for the workflow step""" + journey: Optional[shared_stepjourney.StepJourney] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('journey'), 'exclude': lambda f: f is None }}) + requirements: Optional[List[shared_steprequirement.StepRequirement]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('requirements'), 'exclude': lambda f: f is None }}) r"""requirements that need to be fulfilled in order to enable the step execution""" - user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) + user_ids: Optional[List[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. diff --git a/workflows_definition/src/sdk/models/shared/stepjourney.py b/workflows_definition/src/sdk/models/shared/stepjourney.py new file mode 100755 index 000000000..4aa0cb744 --- /dev/null +++ b/workflows_definition/src/sdk/models/shared/stepjourney.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from dataclasses_json import Undefined, dataclass_json +from sdk import utils +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) +@dataclasses.dataclass +class StepJourney: + id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) + journey_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('journeyId'), 'exclude': lambda f: f is None }}) + name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }}) + + diff --git a/workflows_definition/src/sdk/models/shared/steprequirement.py b/workflows_definition/src/sdk/models/shared/steprequirement.py index 30982d29e..2e3bdab7e 100755 --- a/workflows_definition/src/sdk/models/shared/steprequirement.py +++ b/workflows_definition/src/sdk/models/shared/steprequirement.py @@ -12,7 +12,6 @@ class StepRequirementCondition(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class StepRequirement: r"""describe the requirement for step enablement""" diff --git a/workflows_definition/src/sdk/models/shared/updateentityattributes.py b/workflows_definition/src/sdk/models/shared/updateentityattributes.py index 864c33be9..0b76e4c72 100755 --- a/workflows_definition/src/sdk/models/shared/updateentityattributes.py +++ b/workflows_definition/src/sdk/models/shared/updateentityattributes.py @@ -13,7 +13,6 @@ class UpdateEntityAttributesSource(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class UpdateEntityAttributesTarget: entity_attribute: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('entityAttribute') }}) @@ -23,7 +22,6 @@ class UpdateEntityAttributesTarget: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class UpdateEntityAttributes: source: UpdateEntityAttributesSource = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('source') }}) diff --git a/workflows_definition/src/sdk/models/shared/workflowdefinition.py b/workflows_definition/src/sdk/models/shared/workflowdefinition.py index f59fb487f..dc443d946 100755 --- a/workflows_definition/src/sdk/models/shared/workflowdefinition.py +++ b/workflows_definition/src/sdk/models/shared/workflowdefinition.py @@ -9,8 +9,7 @@ from ..shared import updateentityattributes as shared_updateentityattributes from dataclasses_json import Undefined, dataclass_json from sdk import utils -from typing import Optional, Union - +from typing import List, Optional, Union @dataclasses.dataclass @@ -19,13 +18,12 @@ class WorkflowDefinitionFlow: @dataclass_json(undefined=Undefined.EXCLUDE) - @dataclasses.dataclass class WorkflowDefinition: - flow: list[Union[shared_section.Section, shared_step.Step]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) + flow: List[Union[shared_section.Section, shared_step.Step]] = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('flow') }}) name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - assigned_to: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) - closing_reasons: Optional[list[shared_closingreasonid.ClosingReasonID]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closingReasons'), 'exclude': lambda f: f is None }}) + assigned_to: Optional[List[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('assignedTo'), 'exclude': lambda f: f is None }}) + closing_reasons: Optional[List[shared_closingreasonid.ClosingReasonID]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('closingReasons'), 'exclude': lambda f: f is None }}) creation_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('creationTime'), 'exclude': lambda f: f is None }}) r"""ISO String Date & Time""" description: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('description'), 'exclude': lambda f: f is None }}) @@ -37,8 +35,8 @@ class WorkflowDefinition: id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('id'), 'exclude': lambda f: f is None }}) last_update_time: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('lastUpdateTime'), 'exclude': lambda f: f is None }}) r"""ISO String Date & Time""" - update_entity_attributes: Optional[list[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) - user_ids: Optional[list[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) + update_entity_attributes: Optional[List[shared_updateentityattributes.UpdateEntityAttributes]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('updateEntityAttributes'), 'exclude': lambda f: f is None }}) + user_ids: Optional[List[float]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('userIds'), 'exclude': lambda f: f is None }}) r"""This field is deprecated. Please use assignedTo Deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. diff --git a/workflows_definition/src/sdk/sdk.py b/workflows_definition/src/sdk/sdk.py index cf569ba77..0b4ec23bf 100755 --- a/workflows_definition/src/sdk/sdk.py +++ b/workflows_definition/src/sdk/sdk.py @@ -6,6 +6,7 @@ from .workflows import Workflows from sdk import utils from sdk.models import shared +from typing import Dict class SDK: r"""Workflows Definitions: Service for Workflow Definitions for different processes inside of an Organization""" @@ -18,7 +19,7 @@ def __init__(self, security: shared.Security = None, server_idx: int = None, server_url: str = None, - url_params: dict[str, str] = None, + url_params: Dict[str, str] = None, client: requests_http.Session = None, retry_config: utils.RetryConfig = None ) -> None: @@ -31,7 +32,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/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index e5ce156e6..d5a1324a9 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' 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/workflows_definition/src/sdk/utils/retries.py b/workflows_definition/src/sdk/utils/retries.py index 2138c1b5e..25f49a1f2 100755 --- a/workflows_definition/src/sdk/utils/retries.py +++ b/workflows_definition/src/sdk/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/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index 4388f3b74..ccfad9f7a 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/utils/utils.py @@ -9,7 +9,8 @@ from decimal import Decimal from email.message import Message from enum import Enum -from typing import Any, Callable, Optional, Tuple, Union, get_args, get_origin +from typing import (Any, Callable, Dict, List, Optional, Tuple, Union, + get_args, get_origin) from xmlrpc.client import boolean import dateutil.parser @@ -19,14 +20,14 @@ class SecurityClient: client: requests.Session - query_params: dict[str, str] = {} + query_params: Dict[str, str] = {} def __init__(self, client: requests.Session): self.client = client def request(self, method, url, **kwargs): params = kwargs.get('params', {}) - kwargs["params"] = self.query_params | params + kwargs["params"] = {**self.query_params, **params} return self.client.request(method, url, **kwargs) @@ -69,7 +70,7 @@ def _parse_security_option(client: SecurityClient, option: dataclass): client, metadata, getattr(option, opt_field.name)) -def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme: any): +def _parse_security_scheme(client: SecurityClient, scheme_metadata: Dict, scheme: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -93,7 +94,7 @@ def _parse_security_scheme(client: SecurityClient, scheme_metadata: dict, scheme client, scheme_metadata, scheme_metadata, scheme) -def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: dict, security_metadata: dict, value: any): +def _parse_security_scheme_value(client: SecurityClient, scheme_metadata: Dict, security_metadata: Dict, value: any): scheme_type = scheme_metadata.get('type') sub_type = scheme_metadata.get('sub_type') @@ -145,7 +146,7 @@ def _parse_basic_auth_scheme(client: SecurityClient, scheme: dataclass): def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass, - gbls: dict[str, dict[str, dict[str, Any]]] = None) -> str: + gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> str: path_param_fields: Tuple[Field, ...] = fields(clazz) for field in path_param_fields: request_metadata = field.metadata.get('request') @@ -174,16 +175,16 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass '{' + key + '}', value, 1) else: if param_metadata.get('style', 'simple') == 'simple': - if isinstance(param, list): - pp_vals: list[str] = [] + if isinstance(param, List): + pp_vals: List[str] = [] for pp_val in param: if pp_val is None: continue pp_vals.append(_val_to_string(pp_val)) path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) - elif isinstance(param, dict): - pp_vals: list[str] = [] + elif isinstance(param, Dict): + pp_vals: List[str] = [] for pp_key in param: if param[pp_key] is None: continue @@ -196,7 +197,7 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', ",".join(pp_vals), 1) elif not isinstance(param, (str, int, float, complex, bool, Decimal)): - pp_vals: list[str] = [] + pp_vals: List[str] = [] param_fields: Tuple[Field, ...] = fields(param) for param_field in param_fields: param_value_metadata = param_field.metadata.get( @@ -222,14 +223,14 @@ def generate_url(clazz: type, server_url: str, path: str, path_params: dataclass path = path.replace( '{' + param_metadata.get('field_name', field.name) + '}', _val_to_string(param), 1) - return server_url.removesuffix("/") + path + return remove_suffix(server_url, '/') + path def is_optional(field): return get_origin(field) is Union and type(None) in get_args(field) -def template_url(url_with_params: str, params: dict[str, str]) -> str: +def template_url(url_with_params: str, params: Dict[str, str]) -> str: for key, value in params.items(): url_with_params = url_with_params.replace( '{' + key + '}', value) @@ -237,9 +238,9 @@ def template_url(url_with_params: str, params: dict[str, str]) -> str: return url_with_params -def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[str, dict[str, Any]]] = None) -> dict[ - str, list[str]]: - params: dict[str, list[str]] = {} +def get_query_params(clazz: type, query_params: dataclass, gbls: Dict[str, Dict[str, Dict[str, Any]]] = None) -> Dict[ + str, List[str]]: + params: Dict[str, List[str]] = {} param_fields: Tuple[Field, ...] = fields(clazz) for field in param_fields: @@ -269,24 +270,24 @@ def get_query_params(clazz: type, query_params: dataclass, gbls: dict[str, dict[ else: style = metadata.get('style', 'form') if style == 'deepObject': - params = params | _get_deep_object_query_params( - metadata, f_name, value) + params = {**params, **_get_deep_object_query_params( + metadata, f_name, value)} elif style == 'form': - params = params | _get_delimited_query_params( - metadata, f_name, value, ",") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, ",")} elif style == 'pipeDelimited': - params = params | _get_delimited_query_params( - metadata, f_name, value, "|") + params = {**params, **_get_delimited_query_params( + metadata, f_name, value, "|")} else: raise Exception('not yet implemented') return params -def get_headers(headers_params: dataclass) -> dict[str, str]: +def get_headers(headers_params: dataclass) -> Dict[str, str]: if headers_params is None: return {} - headers: dict[str, str] = {} + headers: Dict[str, str] = {} param_fields: Tuple[Field, ...] = fields(headers_params) for field in param_fields: @@ -303,8 +304,8 @@ def get_headers(headers_params: dataclass) -> dict[str, str]: return headers -def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[str, str]: - params: dict[str, str] = {} +def _get_serialized_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, str]: + params: Dict[str, str] = {} serialization = metadata.get('serialization', '') if serialization == 'json': @@ -313,8 +314,8 @@ def _get_serialized_params(metadata: dict, field_name: str, obj: any) -> dict[st return params -def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> dict[str, list[str]]: - params: dict[str, list[str]] = {} +def _get_deep_object_query_params(metadata: Dict, field_name: str, obj: any) -> Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -330,7 +331,7 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> if obj_val is None: continue - if isinstance(obj_val, list): + if isinstance(obj_val, List): for val in obj_val: if val is None: continue @@ -348,12 +349,12 @@ def _get_deep_object_query_params(metadata: dict, field_name: str, obj: any) -> params[ f'{metadata.get("field_name", field_name)}[{obj_param_metadata.get("field_name", obj_field.name)}]'] = [ _val_to_string(obj_val)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): for key, value in obj.items(): if value is None: continue - if isinstance(value, list): + if isinstance(value, List): for val in value: if val is None: continue @@ -379,8 +380,8 @@ def _get_query_param_field_name(obj_field: Field) -> str: return obj_param_metadata.get("field_name", obj_field.name) -def _get_delimited_query_params(metadata: dict, field_name: str, obj: any, delimiter: str) -> dict[ - str, list[str]]: +def _get_delimited_query_params(metadata: Dict, field_name: str, obj: any, delimiter: str) -> Dict[ + str, List[str]]: return _populate_form(field_name, metadata.get("explode", True), obj, _get_query_param_field_name, delimiter) @@ -424,7 +425,7 @@ def serialize_request_body(request: dataclass, request_field_name: str, nullable request_val) -def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, list[list[any]]]: +def serialize_content_type(field_name: str, media_type: str, request: dataclass, encoder=None) -> Tuple[str, any, List[List[any]]]: if re.match(r'(application|text)\/.*?\+*json.*', media_type) is not None: return media_type, marshal_json(request, encoder), None if re.match(r'multipart\/.*', media_type) is not None: @@ -440,8 +441,8 @@ def serialize_content_type(field_name: str, media_type: str, request: dataclass, f"invalid request body type {type(request)} for mediaType {media_type}") -def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, list[list[any]]]: - form: list[list[any]] = [] +def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, any, List[List[any]]]: + form: List[List[any]] = [] request_fields = fields(request) for field in request_fields: @@ -482,7 +483,7 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, else: field_name = field_metadata.get( "field_name", field.name) - if isinstance(val, list): + if isinstance(val, List): for value in val: if value is None: continue @@ -493,8 +494,8 @@ def serialize_multipart_form(media_type: str, request: dataclass) -> Tuple[str, return media_type, None, form -def serialize_dict(original: dict, explode: bool, field_name, existing: Optional[dict[str, list[str]]]) -> dict[ - str, list[str]]: +def serialize_dict(original: Dict, explode: bool, field_name, existing: Optional[Dict[str, List[str]]]) -> Dict[ + str, List[str]]: if existing is None: existing = [] @@ -514,8 +515,8 @@ def serialize_dict(original: dict, explode: bool, field_name, existing: Optional return existing -def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: - form: dict[str, list[str]] = {} +def serialize_form_data(field_name: str, data: dataclass) -> Dict[str, any]: + form: Dict[str, List[str]] = {} if is_dataclass(data): for field in fields(data): @@ -533,12 +534,12 @@ def serialize_form_data(field_name: str, data: dataclass) -> dict[str, any]: form[field_name] = [marshal_json(val)] else: if metadata.get('style', 'form') == 'form': - form = form | _populate_form( - field_name, metadata.get('explode', True), val, _get_form_field_name, ",") + form = {**form, **_populate_form( + field_name, metadata.get('explode', True), val, _get_form_field_name, ",")} else: raise Exception( f'Invalid form style for field {field.name}') - elif isinstance(data, dict): + elif isinstance(data, Dict): for key, value in data.items(): form[key] = [_val_to_string(value)] else: @@ -557,8 +558,8 @@ def _get_form_field_name(obj_field: Field) -> str: def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_func: Callable, delimiter: str) -> \ - dict[str, list[str]]: - params: dict[str, list[str]] = {} + Dict[str, List[str]]: + params: Dict[str, List[str]] = {} if obj is None: return params @@ -584,7 +585,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): if value is None: @@ -597,7 +598,7 @@ def _populate_form(field_name: str, explode: boolean, obj: any, get_field_name_f if len(items) > 0: params[field_name] = [delimiter.join(items)] - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -651,7 +652,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join(items) - elif isinstance(obj, dict): + elif isinstance(obj, Dict): items = [] for key, value in obj.items(): @@ -666,7 +667,7 @@ def _serialize_header(explode: bool, obj: any) -> str: if len(items) > 0: return ','.join([str(item) for item in items]) - elif isinstance(obj, list): + elif isinstance(obj, List): items = [] for value in obj: @@ -779,7 +780,7 @@ def decimaldecoder(val): def map_encoder(optional: bool, value_encoder: Callable): - def map_encode(val: dict): + def map_encode(val: Dict): if optional and val is None: return None @@ -793,7 +794,7 @@ def map_encode(val: dict): def map_decoder(value_decoder: Callable): - def map_decode(val: dict): + def map_decode(val: Dict): decoded = {} for key, value in val.items(): decoded[key] = value_decoder(value) @@ -804,7 +805,7 @@ def map_decode(val: dict): def list_encoder(optional: bool, value_encoder: Callable): - def list_encode(val: list): + def list_encode(val: List): if optional and val is None: return None @@ -818,7 +819,7 @@ def list_encode(val: list): def list_decoder(value_decoder: Callable): - def list_decode(val: list): + def list_decode(val: List): decoded = [] for value in val: decoded.append(value_decoder(value)) @@ -846,7 +847,7 @@ def _val_to_string(val): return str(val) -def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: dict[str, dict[str, dict[str, Any]]]): +def _populate_from_globals(param_name: str, value: any, param_type: str, gbls: Dict[str, Dict[str, Dict[str, Any]]]): if value is None and gbls is not None: if 'parameters' in gbls: if param_type in gbls['parameters']: @@ -863,3 +864,9 @@ def decode_fx(obj): kls = getattr(sys.modules['sdk.models.shared'], obj[field_name]) return unmarshal_json(json.dumps(obj), kls) return decode_fx + + +def remove_suffix(input_string, suffix): + if suffix and input_string.endswith(suffix): + return input_string[:-len(suffix)] + return input_string diff --git a/workflows_definition/src/sdk/workflows.py b/workflows_definition/src/sdk/workflows.py index 627a3d2d9..4495f69c6 100755 --- a/workflows_definition/src/sdk/workflows.py +++ b/workflows_definition/src/sdk/workflows.py @@ -3,7 +3,7 @@ from .sdkconfiguration import SDKConfiguration from sdk import utils from sdk.models import errors, operations, shared -from typing import Optional +from typing import List, Optional class Workflows: sdk_configuration: SDKConfiguration @@ -141,7 +141,7 @@ def get_definitions(self) -> operations.GetDefinitionsResponse: if http_res.status_code == 200: if utils.match_content_type(content_type, 'application/json'): - out = utils.unmarshal_json(http_res.text, Optional[list[shared.WorkflowDefinition]]) + out = utils.unmarshal_json(http_res.text, Optional[List[shared.WorkflowDefinition]]) res.workflow_definitions = out else: raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res) From 8dc41f72ddc663ca23a66ff95b519d7d80895063 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 21 Oct 2023 01:14:25 +0000 Subject: [PATCH 82/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.104.0 --- workflows_definition/README.md | 2 +- workflows_definition/RELEASES.md | 10 +- workflows_definition/USAGE.md | 2 +- .../docs/sdks/closingreason/README.md | 4 +- .../docs/sdks/workflows/README.md | 168 ++++++++++-------- workflows_definition/gen.yaml | 11 +- workflows_definition/setup.py | 2 +- .../src/sdk/sdkconfiguration.py | 6 +- workflows_definition/src/sdk/utils/utils.py | 20 +++ 9 files changed, 135 insertions(+), 90 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index 514184f71..c9e8a240f 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -24,7 +24,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='regional', + reason_id='string', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 4ad9bc49e..1648c3e59 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -562,4 +562,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.0.0] workflows_definition \ No newline at end of file +- [python v2.0.0] workflows_definition + +## 2023-10-21 01:14:07 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.0] workflows_definition \ No newline at end of file diff --git a/workflows_definition/USAGE.md b/workflows_definition/USAGE.md index 017f26cdb..7a8888a71 100755 --- a/workflows_definition/USAGE.md +++ b/workflows_definition/USAGE.md @@ -15,7 +15,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='regional', + reason_id='string', ) res = s.closing_reason.change_reason_status(req) diff --git a/workflows_definition/docs/sdks/closingreason/README.md b/workflows_definition/docs/sdks/closingreason/README.md index 9b6aad879..ba8457f07 100755 --- a/workflows_definition/docs/sdks/closingreason/README.md +++ b/workflows_definition/docs/sdks/closingreason/README.md @@ -27,7 +27,7 @@ req = operations.ChangeReasonStatusRequest( change_reason_status_req=shared.ChangeReasonStatusReq( status=shared.ClosingReasonsStatus.ACTIVE, ), - reason_id='regional', + reason_id='string', ) res = s.closing_reason.change_reason_status(req) @@ -67,7 +67,7 @@ s = sdk.SDK( req = shared.ClosingReason( status=shared.ClosingReasonsStatus.ACTIVE, - title='unlined', + title='string', ) res = s.closing_reason.create_closing_reason(req) diff --git a/workflows_definition/docs/sdks/workflows/README.md b/workflows_definition/docs/sdks/workflows/README.md index 01f328138..c5c3a4e70 100755 --- a/workflows_definition/docs/sdks/workflows/README.md +++ b/workflows_definition/docs/sdks/workflows/README.md @@ -30,7 +30,7 @@ s = sdk.SDK( req = shared.WorkflowDefinition( assigned_to=[ - 'Account', + 'string', ], closing_reasons=[ shared.ClosingReasonID( @@ -41,50 +41,57 @@ req = shared.WorkflowDefinition( due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=768.01, - time_period=shared.DynamicDueDateTimePeriod.MONTHS, + number_of_units=1581.6, + time_period=shared.DynamicDueDateTimePeriod.WEEKS, ), flow=[ - shared.Step( - assigned_to=[ - 'Refined', - ], - automation_config=shared.StepAutomationConfig( - flow_id='Avon', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, - number_of_units=4748.99, - time_period=shared.DynamicDueDateTimePeriod.MONTHS, - ), - ecp=shared.ECPDetails( - journey=shared.StepJourney(), - ), - installer=shared.ECPDetails( - journey=shared.StepJourney(), - ), - journey=shared.StepJourney(), - name='withdrawal', - order=485.63, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='Berkshire', - type=shared.ItemType.SECTION, + shared.Section( + name='string', + order=768.01, + steps=[ + shared.Step( + assigned_to=[ + 'string', + ], + automation_config=shared.StepAutomationConfig( + flow_id='string', + ), + due_date='2021-04-27T12:00:00.000Z', + dynamic_due_date=shared.DynamicDueDate( + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=8711.4, + time_period=shared.DynamicDueDateTimePeriod.DAYS, + ), + ecp=shared.ECPDetails( + journey=shared.StepJourney(), + ), + installer=shared.ECPDetails( + journey=shared.StepJourney(), + ), + journey=shared.StepJourney(), + name='string', + order=8841.45, + requirements=[ + shared.StepRequirement( + condition=shared.StepRequirementCondition.CLOSED, + definition_id='string', + type=shared.ItemType.SECTION, + ), + ], + type=shared.ItemType.STEP, + user_ids=[ + 463.65, + ], ), ], type=shared.ItemType.STEP, - user_ids=[ - 2732.95, - ], ), ], last_update_time='2021-04-27T12:01:13.000Z', - name='synthesize', + name='string', update_entity_attributes=[ shared.UpdateEntityAttributes( - source=shared.UpdateEntityAttributesSource.CURRENT_SECTION, + source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, target=shared.UpdateEntityAttributesTarget( entity_attribute='my_status', entity_schema='opportunity', @@ -92,7 +99,7 @@ req = shared.WorkflowDefinition( ), ], user_ids=[ - 3000.21, + 5488.16, ], ) @@ -132,7 +139,7 @@ s = sdk.SDK( ) req = operations.DeleteDefinitionRequest( - definition_id='filch', + definition_id='string', ) res = s.workflows.delete_definition(req) @@ -171,7 +178,7 @@ s = sdk.SDK( ) req = operations.GetDefinitionRequest( - definition_id='Dodge', + definition_id='string', ) res = s.workflows.get_definition(req) @@ -270,7 +277,7 @@ s = sdk.SDK( ) req = operations.GetWorkflowClosingReasonsRequest( - definition_id='blue', + definition_id='string', ) res = s.workflows.get_workflow_closing_reasons(req) @@ -316,7 +323,7 @@ req = operations.SetWorkflowClosingReasonsRequest( ), ], ), - definition_id='deposit', + definition_id='string', ) res = s.workflows.set_workflow_closing_reasons(req) @@ -357,7 +364,7 @@ s = sdk.SDK( req = operations.UpdateDefinitionRequest( workflow_definition=shared.WorkflowDefinition( assigned_to=[ - 'Dollar', + 'string', ], closing_reasons=[ shared.ClosingReasonID( @@ -368,47 +375,54 @@ req = operations.UpdateDefinitionRequest( due_date='2021-04-27T12:00:00.000Z', dynamic_due_date=shared.DynamicDueDate( action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=452.1, - time_period=shared.DynamicDueDateTimePeriod.WEEKS, + number_of_units=8376.64, + time_period=shared.DynamicDueDateTimePeriod.MONTHS, ), flow=[ - shared.Step( - assigned_to=[ - 'tan', - ], - automation_config=shared.StepAutomationConfig( - flow_id='Creative', - ), - due_date='2021-04-27T12:00:00.000Z', - dynamic_due_date=shared.DynamicDueDate( - action_type_condition=shared.DynamicDueDateActionTypeCondition.WORKFLOW_STARTED, - number_of_units=471.4, - time_period=shared.DynamicDueDateTimePeriod.DAYS, - ), - ecp=shared.ECPDetails( - journey=shared.StepJourney(), - ), - installer=shared.ECPDetails( - journey=shared.StepJourney(), - ), - journey=shared.StepJourney(), - name='Trigender', - order=3712.03, - requirements=[ - shared.StepRequirement( - condition=shared.StepRequirementCondition.CLOSED, - definition_id='green', - type=shared.ItemType.STEP, + shared.Section( + name='string', + order=452.1, + steps=[ + shared.Step( + assigned_to=[ + 'string', + ], + automation_config=shared.StepAutomationConfig( + flow_id='string', + ), + due_date='2021-04-27T12:00:00.000Z', + dynamic_due_date=shared.DynamicDueDate( + action_type_condition=shared.DynamicDueDateActionTypeCondition.STEP_CLOSED, + number_of_units=9991.65, + time_period=shared.DynamicDueDateTimePeriod.DAYS, + ), + ecp=shared.ECPDetails( + journey=shared.StepJourney(), + ), + installer=shared.ECPDetails( + journey=shared.StepJourney(), + ), + journey=shared.StepJourney(), + name='string', + order=4890.23, + requirements=[ + shared.StepRequirement( + condition=shared.StepRequirementCondition.CLOSED, + definition_id='string', + type=shared.ItemType.SECTION, + ), + ], + type=shared.ItemType.SECTION, + user_ids=[ + 3753.56, + ], ), ], - type=shared.ItemType.SECTION, - user_ids=[ - 8109.76, - ], + type=shared.ItemType.STEP, ), ], last_update_time='2021-04-27T12:01:13.000Z', - name='jiffy', + name='string', update_entity_attributes=[ shared.UpdateEntityAttributes( source=shared.UpdateEntityAttributesSource.WORKFLOW_STATUS, @@ -419,10 +433,10 @@ req = operations.UpdateDefinitionRequest( ), ], user_ids=[ - 916.32, + 3438.79, ], ), - definition_id='Credit', + definition_id='string', ) res = s.workflows.update_definition(req) diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 7b4d78394..940a0c78c 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,22 +2,25 @@ configVersion: 1.0.0 management: docChecksum: 9b6852be8e431e603a3d5a80f505bfb0 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: SDK singleTagPerOp: false telemetryEnabled: false features: python: - core: 3.0.2 + core: 3.3.0 deprecations: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 2.0.0 + version: 2.1.0 author: Speakeasy description: Python Client SDK Generated by Speakeasy flattenGlobalSecurity: false + installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=workflows_definition maxMethodParams: 0 packageName: openapi + repoSubDirectory: workflows_definition diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index 1310a1666..f5d806d7f 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="2.0.0", + version="2.1.0", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index d5a1324a9..ab9934467 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: diff --git a/workflows_definition/src/sdk/utils/utils.py b/workflows_definition/src/sdk/utils/utils.py index ccfad9f7a..3ab126104 100755 --- a/workflows_definition/src/sdk/utils/utils.py +++ b/workflows_definition/src/sdk/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 4810f29747481950d71d9c33ab9e412b7607cbaa Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 28 Oct 2023 01:13:40 +0000 Subject: [PATCH 83/83] ci: regenerated with OpenAPI Doc 1.0.0, Speakeay CLI 1.109.0 --- workflows_definition/README.md | 105 ++++++++++++++++++ workflows_definition/RELEASES.md | 10 +- workflows_definition/gen.yaml | 8 +- workflows_definition/setup.py | 2 +- .../src/sdk/sdkconfiguration.py | 6 +- 5 files changed, 122 insertions(+), 9 deletions(-) diff --git a/workflows_definition/README.md b/workflows_definition/README.md index c9e8a240f..dae3126d7 100755 --- a/workflows_definition/README.md +++ b/workflows_definition/README.md @@ -75,6 +75,111 @@ 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://workflows-definition.sls.epilot.io` | None | + +For example: + + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="", + ), + server_idx=0 +) + +req = operations.ChangeReasonStatusRequest( + change_reason_status_req=shared.ChangeReasonStatusReq( + status=shared.ClosingReasonsStatus.ACTIVE, + ), + reason_id='string', +) + +res = s.closing_reason.change_reason_status(req) + +if res.status_code == 200: + # handle response + pass +``` + + +## Override Server URL Per-Client + +The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: + + +```python +import sdk +from sdk.models import operations, shared + +s = sdk.SDK( + security=shared.Security( + bearer_auth="", + ), + server_url="https://workflows-definition.sls.epilot.io" +) + +req = operations.ChangeReasonStatusRequest( + change_reason_status_req=shared.ChangeReasonStatusReq( + status=shared.ClosingReasonsStatus.ACTIVE, + ), + reason_id='string', +) + +res = s.closing_reason.change_reason_status(req) + +if res.status_code == 200: + # handle response + pass +``` + + + + + +# Custom HTTP Client + +The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object. + + +For example, you could specify a header for every request that your sdk makes as follows: + +```python +import sdk +import requests + +http_client = requests.Session() +http_client.headers.update({'x-custom-header': 'someValue'}) +s = sdk.SDK(client: http_client) +``` + + + + diff --git a/workflows_definition/RELEASES.md b/workflows_definition/RELEASES.md index 1648c3e59..2c2030952 100644 --- a/workflows_definition/RELEASES.md +++ b/workflows_definition/RELEASES.md @@ -570,4 +570,12 @@ Based on: - OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml - Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v2.1.0] workflows_definition \ No newline at end of file +- [python v2.1.0] workflows_definition + +## 2023-10-28 01:13:24 +### Changes +Based on: +- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml +- Speakeasy CLI 1.109.0 (2.173.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v2.1.1] workflows_definition \ No newline at end of file diff --git a/workflows_definition/gen.yaml b/workflows_definition/gen.yaml index 940a0c78c..0893a59b3 100755 --- a/workflows_definition/gen.yaml +++ b/workflows_definition/gen.yaml @@ -2,8 +2,8 @@ configVersion: 1.0.0 management: docChecksum: 9b6852be8e431e603a3d5a80f505bfb0 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: SDK @@ -11,12 +11,12 @@ generation: telemetryEnabled: false features: python: - core: 3.3.0 + core: 3.3.1 deprecations: 2.81.1 globalSecurity: 2.82.0 globalServerURLs: 2.82.0 python: - version: 2.1.0 + version: 2.1.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy flattenGlobalSecurity: false diff --git a/workflows_definition/setup.py b/workflows_definition/setup.py index f5d806d7f..c49235d2a 100755 --- a/workflows_definition/setup.py +++ b/workflows_definition/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="2.1.0", + version="2.1.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/workflows_definition/src/sdk/sdkconfiguration.py b/workflows_definition/src/sdk/sdkconfiguration.py index ab9934467..f2d598eb4 100755 --- a/workflows_definition/src/sdk/sdkconfiguration.py +++ b/workflows_definition/src/sdk/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 openapi' + 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 openapi' retry_config: RetryConfig = None def get_server_details(self) -> Tuple[str, Dict[str, str]]: