Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.280.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 7, 2024
1 parent 7935d40 commit dfece0b
Show file tree
Hide file tree
Showing 114 changed files with 3,368 additions and 976 deletions.
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
6 changes: 6 additions & 0 deletions workflows_definition/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
venv/
src/*.egg-info/
__pycache__/
.pytest_cache/
.python-version
.DS_Store
126 changes: 126 additions & 0 deletions workflows_definition/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
lockVersion: 2.0.0
id: 23dc9490-3386-429e-b41c-89021d052990
management:
docChecksum: 8a2ff4be25db818a35891d602baa4a25
docVersion: 1.0.0
speakeasyVersion: 1.280.1
generationVersion: 2.322.5
releaseVersion: 1.3.0
configChecksum: b7a15e053d0e975cb51f6f7752fa7c11
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:
core: 4.6.7
deprecations: 2.81.1
flattening: 2.81.1
globalSecurity: 2.83.5
globalServerURLs: 2.82.2
responseFormat: 0.1.0
unions: 2.82.6
generatedFiles:
- src/sdk/sdkconfiguration.py
- src/sdk/closing_reason.py
- src/sdk/workflows.py
- src/sdk/sdk.py
- py.typed
- pylintrc
- setup.py
- src/sdk/__init__.py
- src/sdk/utils/__init__.py
- src/sdk/utils/retries.py
- src/sdk/utils/utils.py
- src/sdk/models/errors/sdkerror.py
- src/sdk/models/operations/changereasonstatus.py
- src/sdk/models/operations/createclosingreason.py
- src/sdk/models/operations/getallclosingreasons.py
- src/sdk/models/operations/createdefinition.py
- src/sdk/models/operations/deletedefinition.py
- src/sdk/models/operations/getdefinition.py
- src/sdk/models/operations/getdefinitions.py
- src/sdk/models/operations/getmaxallowedlimit.py
- src/sdk/models/operations/getworkflowclosingreasons.py
- src/sdk/models/operations/setworkflowclosingreasons.py
- src/sdk/models/operations/updatedefinition.py
- src/sdk/models/components/httpmetadata.py
- src/sdk/models/components/changereasonstatusreq.py
- src/sdk/models/components/closingreasonsstatus.py
- src/sdk/models/components/closingreason.py
- src/sdk/models/components/closingreasons.py
- src/sdk/models/components/workflowdefinition.py
- src/sdk/models/components/updateentityattributes.py
- src/sdk/models/components/section.py
- src/sdk/models/components/itemtype.py
- src/sdk/models/components/step.py
- src/sdk/models/components/steprequirement.py
- src/sdk/models/components/stepjourney.py
- src/sdk/models/components/ecpdetails.py
- src/sdk/models/components/steptype.py
- src/sdk/models/components/dynamicduedate.py
- src/sdk/models/components/stepdescription.py
- src/sdk/models/components/closingreasonid.py
- src/sdk/models/components/maxallowedlimit.py
- src/sdk/models/components/closingreasonsids.py
- src/sdk/models/components/security.py
- src/sdk/models/errors/errorresp.py
- src/sdk/models/errors/definitionnotfoundresp.py
- src/sdk/models/__init__.py
- src/sdk/models/errors/__init__.py
- src/sdk/models/operations/__init__.py
- src/sdk/models/components/__init__.py
- 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/components/httpmetadata.md
- docs/models/components/changereasonstatusreq.md
- docs/models/components/closingreasonsstatus.md
- docs/models/components/closingreason.md
- docs/models/components/closingreasons.md
- docs/models/components/flow.md
- docs/models/components/workflowdefinition.md
- docs/models/components/source.md
- docs/models/components/target.md
- docs/models/components/updateentityattributes.md
- docs/models/components/section.md
- docs/models/components/itemtype.md
- docs/models/components/automationconfig.md
- docs/models/components/step.md
- docs/models/components/condition.md
- docs/models/components/steprequirement.md
- docs/models/components/stepjourney.md
- docs/models/components/ecpdetails.md
- docs/models/components/steptype.md
- docs/models/components/actiontypecondition.md
- docs/models/components/timeperiod.md
- docs/models/components/dynamicduedate.md
- docs/models/components/stepdescription.md
- docs/models/components/closingreasonid.md
- docs/models/components/maxallowedlimit.md
- docs/models/components/closingreasonsids.md
- docs/models/components/security.md
- docs/models/errors/errorresp.md
- docs/models/errors/definitionnotfoundresp.md
- docs/sdks/sdk/README.md
- docs/sdks/closingreason/README.md
- docs/sdks/workflows/README.md
- USAGE.md
- .gitattributes
- src/sdk/_hooks/sdkhooks.py
- src/sdk/_hooks/types.py
- src/sdk/_hooks/__init__.py
211 changes: 179 additions & 32 deletions workflows_definition/README.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,207 @@
# openapi

<!-- Start SDK Installation -->
<!-- Start SDK Installation [installation] -->
## SDK Installation

```bash
pip install git+https://github.com/epilot-dev/sdk-python.git#subdirectory=workflows_definition
```
<!-- End SDK Installation -->
<!-- End SDK Installation [installation] -->

<!-- Start SDK Example Usage [usage] -->
## SDK Example Usage
<!-- Start SDK Example Usage -->

### Example

```python
import sdk
from sdk.models import components

s = sdk.SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
status=components.ClosingReasonsStatus.ACTIVE,
))

if res is not None:
# handle response
pass

```
<!-- End SDK Example Usage [usage] -->

<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

### [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
<!-- End Available Resources and Operations [operations] -->

<!-- Start Error Handling [errors] -->
## Error Handling

Handling errors in this 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.

| Error Object | Status Code | Content Type |
| ---------------- | ---------------- | ---------------- |
| errors.ErrorResp | 400,500 | application/json |
| errors.SDKError | 4xx-5xx | */* |

### Example

```python
import sdk
from sdk.models import components, errors

s = sdk.SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = None
try:
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
status=components.ClosingReasonsStatus.ACTIVE,
))
except errors.ErrorResp as e:
# handle exception
raise(e)
except errors.SDKError as e:
# handle exception
raise(e)

if res is not None:
# handle response
pass

```
<!-- End Error Handling [errors] -->

<!-- Start Server Selection [server] -->
## 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 |

#### Example

```python
import sdk
from sdk.models import operations, shared
from sdk.models import components

s = sdk.SDK(
security=shared.Security(
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
),
server_idx=0,
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


req = operations.ChangeReasonStatusRequest(
change_reason_status_req=shared.ChangeReasonStatusReq(
status="INACTIVE",
),
reason_id="deserunt",
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
status=components.ClosingReasonsStatus.ACTIVE,
))

if res is not None:
# handle response
pass

```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
```python
import sdk
from sdk.models import components

s = sdk.SDK(
server_url="https://workflows-definition.sls.epilot.io",
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)

res = s.closing_reason.change_reason_status(req)

if res.status_code == 200:

res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
status=components.ClosingReasonsStatus.ACTIVE,
))

if res is not None:
# handle response
pass

```
<!-- End SDK Example Usage -->
<!-- End Server Selection [server] -->

<!-- Start SDK Available Operations -->
## SDK Available Operations
<!-- Start Custom HTTP Client [http-client] -->
## 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.

### closing_reason
For example, you could specify a header for every request that this 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)
```
<!-- End Custom HTTP Client [http-client] -->

<!-- Start Authentication [security] -->
## Authentication

### Per-Client Security Schemes

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| ------------- | ------------- | ------------- |
| `bearer_auth` | http | HTTP Bearer |

To authenticate with the API the `bearer_auth` parameter must be set when initializing the SDK client instance. For example:
```python
import sdk
from sdk.models import components

s = sdk.SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
status=components.ClosingReasonsStatus.ACTIVE,
))

if res is not None:
# handle response
pass

```
<!-- End Authentication [security] -->

* `change_reason_status` - changeReasonStatus
* `create_closing_reason` - createClosingReason
* `get_all_closing_reasons` - getAllClosingReasons
<!-- Placeholder for Future Speakeasy SDK Sections -->

### workflows

* `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
<!-- End SDK Available Operations -->

### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
10 changes: 9 additions & 1 deletion workflows_definition/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ 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
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy

## 2024-05-07 00:23:38
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml
- Speakeasy CLI 1.280.1 (2.322.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.0] workflows_definition
Loading

0 comments on commit dfece0b

Please sign in to comment.