Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
63709e5
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.357.3
speakeasybot Aug 8, 2024
6315312
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.358.0
speakeasybot Aug 9, 2024
ee7a9d8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.361.1
speakeasybot Aug 11, 2024
42aeb31
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.368.0
speakeasybot Aug 15, 2024
59b7cba
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.376.0
speakeasybot Aug 20, 2024
5b3cdb4
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.383.2
speakeasybot Aug 30, 2024
6aa99ff
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.392.1
speakeasybot Sep 7, 2024
e48dcf3
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.394.0
speakeasybot Sep 10, 2024
86a019d
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.6
speakeasybot Sep 13, 2024
4971945
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.400.1
speakeasybot Sep 20, 2024
54142d0
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.403.3
speakeasybot Sep 27, 2024
8fbb113
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.405.6
speakeasybot Oct 1, 2024
739cc00
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.406.0
speakeasybot Oct 3, 2024
c2109a2
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.411.1
speakeasybot Oct 8, 2024
2898013
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.421.1
speakeasybot Oct 24, 2024
a1bb8a9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.423.5
speakeasybot Oct 31, 2024
7efa0e8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.426.0
speakeasybot Nov 5, 2024
0bdd84e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.431.0
speakeasybot Nov 6, 2024
47d4971
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.436.0
speakeasybot Nov 9, 2024
d5ac1e6
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.443.0
speakeasybot Nov 22, 2024
3753d65
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.446.0
speakeasybot Nov 26, 2024
776ad5b
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.2
speakeasybot Nov 28, 2024
9cc07e6
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.451.5
speakeasybot Dec 5, 2024
694562e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.8
speakeasybot Dec 10, 2024
56346e9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.454.0
speakeasybot Dec 12, 2024
e58d6c4
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.3
speakeasybot Dec 14, 2024
93c5f89
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.7
speakeasybot Dec 17, 2024
53e1c32
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.459.2
speakeasybot Dec 21, 2024
24a4a01
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.460.2
speakeasybot Dec 24, 2024
5f8329f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.462.2
speakeasybot Jan 4, 2025
8ff6e6e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.465.1
speakeasybot Jan 9, 2025
76bff00
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.467.0
speakeasybot Jan 10, 2025
c51f55c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.2
speakeasybot Jan 12, 2025
5a733fc
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.6
speakeasybot Jan 15, 2025
ab40c3f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.8
speakeasybot Jan 16, 2025
82c4732
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.2
speakeasybot Jan 20, 2025
9abaace
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.11
speakeasybot Jan 21, 2025
e5eb613
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.474.0
speakeasybot Jan 24, 2025
dd4d8fa
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.476.0
speakeasybot Jan 25, 2025
e09b14c
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.477.2
speakeasybot Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions workflows_definition/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This allows generated code to be indexed correctly
*.py linguist-generated=false
10 changes: 10 additions & 0 deletions workflows_definition/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.speakeasy/reports
README-PYPI.md
.venv/
venv/
src/*.egg-info/
__pycache__/
.pytest_cache/
.python-version
.DS_Store
pyrightconfig.json
1 change: 1 addition & 0 deletions workflows_definition/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.9
222 changes: 222 additions & 0 deletions workflows_definition/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
lockVersion: 2.0.0
id: 8727d4ad-f9cf-4aa1-993f-c90fc6591190
management:
docChecksum: 8a2ff4be25db818a35891d602baa4a25
docVersion: 1.0.0
speakeasyVersion: 1.477.2
generationVersion: 2.497.8
releaseVersion: 1.14.8
configChecksum: 2984970bad1c61987f3ff30fb61966ed
repoURL: https://github.com/epilot-dev/sdk-python.git
repoSubDirectory: workflows_definition
installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=workflows_definition
features:
python:
additionalDependencies: 1.0.0
core: 5.10.6
defaultEnabledRetries: 0.2.0
deprecations: 3.0.2
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
flattening: 3.1.0
globalSecurity: 3.0.2
globalSecurityCallbacks: 1.0.0
globalSecurityFlattening: 1.0.0
globalServerURLs: 3.1.0
methodArguments: 1.0.2
responseFormat: 1.0.1
retries: 3.0.2
sdkHooks: 1.0.0
unions: 3.0.4
generatedFiles:
- .gitattributes
- .python-version
- .vscode/settings.json
- USAGE.md
- docs/models/actiontypecondition.md
- docs/models/automationconfig.md
- docs/models/changereasonstatusreq.md
- docs/models/changereasonstatusrequest.md
- docs/models/closingreason.md
- docs/models/closingreasonid.md
- docs/models/closingreasons.md
- docs/models/closingreasonsids.md
- docs/models/closingreasonsstatus.md
- docs/models/condition.md
- docs/models/definitionnotfoundresp.md
- docs/models/deletedefinitionrequest.md
- docs/models/dynamicduedate.md
- docs/models/ecpdetails.md
- docs/models/errorresp.md
- docs/models/flow.md
- docs/models/getallclosingreasonsrequest.md
- docs/models/getdefinitionrequest.md
- docs/models/getworkflowclosingreasonsrequest.md
- docs/models/itemtype.md
- docs/models/maxallowedlimit.md
- docs/models/section.md
- docs/models/security.md
- docs/models/setworkflowclosingreasonsrequest.md
- docs/models/source.md
- docs/models/step.md
- docs/models/stepdescription.md
- docs/models/stepjourney.md
- docs/models/steprequirement.md
- docs/models/steptype.md
- docs/models/target.md
- docs/models/timeperiod.md
- docs/models/updatedefinitionrequest.md
- docs/models/updateentityattributes.md
- docs/models/utils/retryconfig.md
- docs/models/workflowdefinition.md
- docs/sdks/closingreasonsdk/README.md
- docs/sdks/sdk/README.md
- docs/sdks/workflows/README.md
- poetry.toml
- py.typed
- pylintrc
- pyproject.toml
- scripts/prepare-readme.py
- scripts/publish.sh
- src/openapi/__init__.py
- src/openapi/_hooks/__init__.py
- src/openapi/_hooks/sdkhooks.py
- src/openapi/_hooks/types.py
- src/openapi/_version.py
- src/openapi/basesdk.py
- src/openapi/closing_reason_sdk.py
- src/openapi/httpclient.py
- src/openapi/models/__init__.py
- src/openapi/models/changereasonstatusop.py
- src/openapi/models/changereasonstatusreq.py
- src/openapi/models/closingreason.py
- src/openapi/models/closingreasonid.py
- src/openapi/models/closingreasons.py
- src/openapi/models/closingreasonsids.py
- src/openapi/models/closingreasonsstatus.py
- src/openapi/models/definitionnotfoundresp.py
- src/openapi/models/deletedefinitionop.py
- src/openapi/models/dynamicduedate.py
- src/openapi/models/ecpdetails.py
- src/openapi/models/errorresp.py
- src/openapi/models/getallclosingreasonsop.py
- src/openapi/models/getdefinitionop.py
- src/openapi/models/getworkflowclosingreasonsop.py
- src/openapi/models/itemtype.py
- src/openapi/models/maxallowedlimit.py
- src/openapi/models/sdkerror.py
- src/openapi/models/section.py
- src/openapi/models/security.py
- src/openapi/models/setworkflowclosingreasonsop.py
- src/openapi/models/step.py
- src/openapi/models/stepdescription.py
- src/openapi/models/stepjourney.py
- src/openapi/models/steprequirement.py
- src/openapi/models/steptype.py
- src/openapi/models/updatedefinitionop.py
- src/openapi/models/updateentityattributes.py
- src/openapi/models/workflowdefinition.py
- src/openapi/py.typed
- src/openapi/sdk.py
- src/openapi/sdkconfiguration.py
- src/openapi/types/__init__.py
- src/openapi/types/basemodel.py
- src/openapi/utils/__init__.py
- src/openapi/utils/annotations.py
- src/openapi/utils/enums.py
- src/openapi/utils/eventstreaming.py
- src/openapi/utils/forms.py
- src/openapi/utils/headers.py
- src/openapi/utils/logger.py
- src/openapi/utils/metadata.py
- src/openapi/utils/queryparams.py
- src/openapi/utils/requestbodies.py
- src/openapi/utils/retries.py
- src/openapi/utils/security.py
- src/openapi/utils/serializers.py
- src/openapi/utils/url.py
- src/openapi/utils/values.py
- src/openapi/workflows.py
examples:
changeReasonStatus:
speakeasy-default-change-reason-status:
parameters:
path:
reasonId: "<id>"
responses:
"400":
application/json: {}
"500":
application/json: {}
createClosingReason:
"":
requestBody:
application/json: {"status": "ACTIVE", "title": "better offer"}
responses:
"201":
application/json: {"status": "INACTIVE", "title": "<value>"}
getAllClosingReasons:
"":
parameters:
query:
includeInactive: true
responses:
"200":
application/json: {"reasons": [{"status": "ACTIVE", "title": "<value>"}]}
createDefinition:
"":
requestBody:
application/json: {"assignedTo": ["952802", "80225"], "description": "Lead Qualification description", "dueDate": "2022-08-04T12:00:00.000Z", "flow": [{"name": "Initial Information Gathering", "order": 1, "steps": [{"assignedTo": ["123482"], "name": "Call client and confirm address and product", "order": 1, "type": "STEP"}, {"assignedTo": ["123482"], "name": "Check product availability", "order": 2, "type": "STEP"}, {"assignedTo": ["123482"], "name": "Send email confirming contact with the client", "order": 3, "type": "STEP"}], "type": "SECTION"}, {"assignedTo": ["123482"], "name": "Print and send catalog", "order": 2, "type": "STEP"}], "name": "Lead Qualification"}
responses:
"200":
application/json: {"assignedTo": ["952802", "80225"], "creationTime": "2021-08-04T21:13:50.373Z", "description": "Lead Qualification description", "dueDate": "2022-08-04T12:00:00.000Z", "flow": [{"id": "5892na2", "name": "Initial Information Gathering", "order": 1, "steps": [{"assignedTo": ["48829"], "id": "2hja82a", "name": "Call client and confirm address and product", "order": 1, "type": "STEP"}, {"assignedTo": ["45390"], "id": "ga92ha2", "name": "Check product availability", "order": 2, "type": "STEP"}, {"assignedTo": ["8230"], "id": "jga92ha", "name": "Send email confirming contact with the client", "order": 3, "type": "STEP"}], "type": "SECTION"}, {"assignedTo": ["8239"], "id": "0a7g22a", "name": "Print and send catalog", "order": 2, "type": "STEP"}], "id": "25n2k52ja", "lastUpdateTime": "2021-08-04T21:13:50.373Z", "name": "Lead Qualification"}
deleteDefinition:
"":
parameters:
path:
definitionId: "CustomerRequest"
getDefinition:
"":
parameters:
path:
definitionId: "7hj28a"
responses:
"200":
application/json: {"assignedTo": ["952802", "80225"], "closingReasons": [{"id": "ffoowef"}, {"id": "hebwoeu"}, {"id": "mbnoenq"}], "creationTime": "2021-08-04T21:13:50.373Z", "dueDate": "2022-08-04T12:00:00.000Z", "flow": [{"id": "5892na2", "name": "Initial Information Gathering", "order": 1, "steps": [{"assignedTo": ["923432"], "id": "2hja82a", "name": "Call client and confirm address and product", "order": 1, "type": "STEP"}, {"assignedTo": ["45488"], "id": "ga92ha2", "name": "Check product availability", "order": 2, "type": "STEP"}, {"assignedTo": ["45488"], "id": "jga92ha", "name": "Send email confirming contact with the client", "order": 3, "type": "STEP"}], "type": "SECTION"}, {"assignedTo": ["8988"], "id": "0a7g22a", "name": "Print and send catalog", "order": 2, "type": "STEP"}], "id": "25n2k52ja", "lastUpdateTime": "2021-08-04T21:13:50.373Z", "name": "Lead Qualification"}
getDefinitions:
"":
responses:
"200":
application/json: [{"assignedTo": ["18625", "90252"], "creationTime": "2021-08-04T21:13:50.373Z", "description": "Lead Qualification description", "dueDate": "2021-08-04T21:13:50.373Z", "flow": [{"id": "5892na2", "name": "Initial Information Gathering", "order": 1, "steps": [{"assignedTo": ["123482"], "id": "2hja82a", "name": "Call client and confirm address and product", "order": 1, "type": "STEP"}, {"assignedTo": ["123482"], "id": "ga92ha2", "name": "Check product availability", "order": 2, "type": "STEP"}, {"assignedTo": ["123482"], "id": "jga92ha", "name": "Send email confirming contact with the client", "order": 3, "type": "STEP"}], "type": "SECTION"}, {"assignedTo": ["123482"], "id": "0a7g22a", "name": "Print and send catalog", "order": 2, "type": "STEP"}], "id": "25n2k52ja", "lastUpdateTime": "2021-08-04T21:13:50.373Z", "name": "Lead Qualification"}]
getMaxAllowedLimit:
"":
responses:
"200":
application/json: {"currentNoOfWorkflows": 5, "maxAllowed": 7}
getWorkflowClosingReasons:
"":
parameters:
path:
definitionId: "fxcwfw"
responses:
"200":
application/json: {"reasons": [{"id": "x739cew"}, {"id": "x739cew"}, {"id": "x739cew"}]}
setWorkflowClosingReasons:
"":
parameters:
path:
definitionId: "7889"
requestBody:
application/json: {"reasons": [{"id": "x739cew"}]}
updateDefinition:
"":
parameters:
path:
definitionId: "7hj28a"
requestBody:
application/json: {"assignedTo": ["952802", "80225"], "creationTime": "2021-08-04T21:13:50.373Z", "dueDate": "2022-08-04T12:00:00.000Z", "flow": [{"id": "5892na2", "name": "Initial Information Gathering", "order": 1, "steps": [{"assignedTo": ["8988"], "id": "2hja82a", "name": "Call client and confirm address and product", "order": 1, "type": "STEP"}, {"assignedTo": ["8988"], "id": "ga92ha2", "name": "Check product availability", "order": 2, "type": "STEP"}, {"assignedTo": ["8988"], "id": "jga92ha", "name": "Send email confirming contact with the client", "order": 3, "type": "STEP"}], "type": "SECTION"}, {"assignedTo": ["8988"], "id": "0a7g22a", "name": "Print and send catalog", "order": 2, "type": "STEP"}], "id": "25n2k52ja", "lastUpdateTime": "2021-08-04T21:13:50.373Z", "name": "Lead Qualification"}
responses:
"200":
application/json: {"assignedTo": ["952802", "80225"], "creationTime": "2021-08-04T21:13:50.373Z", "dueDate": "2022-08-04T12:00:00.000Z", "flow": [{"id": "5892na2", "name": "Initial Information Gathering", "order": 1, "steps": [{"assignedTo": ["1"], "id": "2hja82a", "name": "Call client and confirm address and product", "order": 1, "type": "STEP"}, {"assignedTo": ["56645"], "id": "ga92ha2", "name": "Check product availability", "order": 2, "type": "STEP"}, {"assignedTo": ["949923"], "id": "jga92ha", "name": "Send email confirming contact with the client", "order": 3, "type": "STEP"}], "type": "SECTION"}, {"assignedTo": ["156645"], "id": "0a7g22a", "name": "Print and send catalog", "order": 2, "type": "STEP"}], "id": "25n2k52ja", "lastUpdateTime": "2021-08-04T21:13:50.373Z", "name": "Lead Qualification"}
examplesVersion: 1.0.0
generatedTests: {}
6 changes: 6 additions & 0 deletions workflows_definition/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"python.testing.pytestArgs": ["tests", "-vv"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"pylint.args": ["--rcfile=pylintrc"]
}
26 changes: 26 additions & 0 deletions workflows_definition/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.

## How to Report Issues

If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
Loading