Skip to content

Commit cd7ed9c

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.269.1
1 parent 7935d40 commit cd7ed9c

File tree

115 files changed

+3336
-976
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3336
-976
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.py linguist-generated=false

workflows_definition/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
venv/
2+
src/*.egg-info/
3+
__pycache__/
4+
.pytest_cache/
5+
.python-version
6+
.DS_Store
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
lockVersion: 2.0.0
2+
id: ab4d4e77-6312-4395-8898-52e333f13d83
3+
management:
4+
docChecksum: 8a2ff4be25db818a35891d602baa4a25
5+
docVersion: 1.0.0
6+
speakeasyVersion: 1.269.1
7+
generationVersion: 2.312.1
8+
releaseVersion: 1.3.0
9+
configChecksum: b7a15e053d0e975cb51f6f7752fa7c11
10+
repoURL: https://github.com/epilot-dev/sdk-python.git
11+
repoSubDirectory: workflows_definition
12+
installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=workflows_definition
13+
features:
14+
python:
15+
core: 4.6.5
16+
deprecations: 2.81.1
17+
flattening: 2.81.1
18+
globalSecurity: 2.83.5
19+
globalServerURLs: 2.82.2
20+
responseFormat: 0.1.0
21+
unions: 2.82.6
22+
generatedFiles:
23+
- src/sdk/sdkconfiguration.py
24+
- src/sdk/closing_reason.py
25+
- src/sdk/workflows.py
26+
- src/sdk/sdk.py
27+
- py.typed
28+
- pylintrc
29+
- setup.py
30+
- src/sdk/__init__.py
31+
- src/sdk/utils/__init__.py
32+
- src/sdk/utils/retries.py
33+
- src/sdk/utils/utils.py
34+
- src/sdk/models/errors/sdkerror.py
35+
- tests/helpers.py
36+
- src/sdk/models/operations/changereasonstatus.py
37+
- src/sdk/models/operations/createclosingreason.py
38+
- src/sdk/models/operations/getallclosingreasons.py
39+
- src/sdk/models/operations/createdefinition.py
40+
- src/sdk/models/operations/deletedefinition.py
41+
- src/sdk/models/operations/getdefinition.py
42+
- src/sdk/models/operations/getdefinitions.py
43+
- src/sdk/models/operations/getmaxallowedlimit.py
44+
- src/sdk/models/operations/getworkflowclosingreasons.py
45+
- src/sdk/models/operations/setworkflowclosingreasons.py
46+
- src/sdk/models/operations/updatedefinition.py
47+
- src/sdk/models/components/httpmetadata.py
48+
- src/sdk/models/components/changereasonstatusreq.py
49+
- src/sdk/models/components/closingreasonsstatus.py
50+
- src/sdk/models/components/closingreason.py
51+
- src/sdk/models/components/closingreasons.py
52+
- src/sdk/models/components/workflowdefinition.py
53+
- src/sdk/models/components/updateentityattributes.py
54+
- src/sdk/models/components/section.py
55+
- src/sdk/models/components/itemtype.py
56+
- src/sdk/models/components/step.py
57+
- src/sdk/models/components/steprequirement.py
58+
- src/sdk/models/components/stepjourney.py
59+
- src/sdk/models/components/ecpdetails.py
60+
- src/sdk/models/components/steptype.py
61+
- src/sdk/models/components/dynamicduedate.py
62+
- src/sdk/models/components/stepdescription.py
63+
- src/sdk/models/components/closingreasonid.py
64+
- src/sdk/models/components/maxallowedlimit.py
65+
- src/sdk/models/components/closingreasonsids.py
66+
- src/sdk/models/components/security.py
67+
- src/sdk/models/errors/errorresp.py
68+
- src/sdk/models/errors/definitionnotfoundresp.py
69+
- src/sdk/models/__init__.py
70+
- src/sdk/models/errors/__init__.py
71+
- src/sdk/models/operations/__init__.py
72+
- src/sdk/models/components/__init__.py
73+
- docs/models/operations/changereasonstatusrequest.md
74+
- docs/models/operations/changereasonstatusresponse.md
75+
- docs/models/operations/createclosingreasonresponse.md
76+
- docs/models/operations/getallclosingreasonsrequest.md
77+
- docs/models/operations/getallclosingreasonsresponse.md
78+
- docs/models/operations/createdefinitionresponse.md
79+
- docs/models/operations/deletedefinitionrequest.md
80+
- docs/models/operations/deletedefinitionresponse.md
81+
- docs/models/operations/getdefinitionrequest.md
82+
- docs/models/operations/getdefinitionresponse.md
83+
- docs/models/operations/getdefinitionsresponse.md
84+
- docs/models/operations/getmaxallowedlimitresponse.md
85+
- docs/models/operations/getworkflowclosingreasonsrequest.md
86+
- docs/models/operations/getworkflowclosingreasonsresponse.md
87+
- docs/models/operations/setworkflowclosingreasonsrequest.md
88+
- docs/models/operations/setworkflowclosingreasonsresponse.md
89+
- docs/models/operations/updatedefinitionrequest.md
90+
- docs/models/operations/updatedefinitionresponse.md
91+
- docs/models/components/httpmetadata.md
92+
- docs/models/components/changereasonstatusreq.md
93+
- docs/models/components/closingreasonsstatus.md
94+
- docs/models/components/closingreason.md
95+
- docs/models/components/closingreasons.md
96+
- docs/models/components/flow.md
97+
- docs/models/components/workflowdefinition.md
98+
- docs/models/components/source.md
99+
- docs/models/components/target.md
100+
- docs/models/components/updateentityattributes.md
101+
- docs/models/components/section.md
102+
- docs/models/components/itemtype.md
103+
- docs/models/components/automationconfig.md
104+
- docs/models/components/step.md
105+
- docs/models/components/condition.md
106+
- docs/models/components/steprequirement.md
107+
- docs/models/components/stepjourney.md
108+
- docs/models/components/ecpdetails.md
109+
- docs/models/components/steptype.md
110+
- docs/models/components/actiontypecondition.md
111+
- docs/models/components/timeperiod.md
112+
- docs/models/components/dynamicduedate.md
113+
- docs/models/components/stepdescription.md
114+
- docs/models/components/closingreasonid.md
115+
- docs/models/components/maxallowedlimit.md
116+
- docs/models/components/closingreasonsids.md
117+
- docs/models/components/security.md
118+
- docs/models/errors/errorresp.md
119+
- docs/models/errors/definitionnotfoundresp.md
120+
- docs/sdks/sdk/README.md
121+
- docs/sdks/closingreason/README.md
122+
- docs/sdks/workflows/README.md
123+
- USAGE.md
124+
- .gitattributes
125+
- src/sdk/_hooks/sdkhooks.py
126+
- src/sdk/_hooks/types.py
127+
- src/sdk/_hooks/__init__.py

workflows_definition/README.md

Lines changed: 179 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,207 @@
11
# openapi
22

3-
<!-- Start SDK Installation -->
3+
<!-- Start SDK Installation [installation] -->
44
## SDK Installation
55

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

11+
<!-- Start SDK Example Usage [usage] -->
1112
## SDK Example Usage
12-
<!-- Start SDK Example Usage -->
13+
14+
### Example
15+
16+
```python
17+
import sdk
18+
from sdk.models import components
19+
20+
s = sdk.SDK(
21+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
22+
)
23+
24+
25+
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
26+
status=components.ClosingReasonsStatus.ACTIVE,
27+
))
28+
29+
if res is not None:
30+
# handle response
31+
pass
32+
33+
```
34+
<!-- End SDK Example Usage [usage] -->
35+
36+
<!-- Start Available Resources and Operations [operations] -->
37+
## Available Resources and Operations
38+
39+
### [closing_reason](docs/sdks/closingreason/README.md)
40+
41+
* [change_reason_status](docs/sdks/closingreason/README.md#change_reason_status) - changeReasonStatus
42+
* [create_closing_reason](docs/sdks/closingreason/README.md#create_closing_reason) - createClosingReason
43+
* [get_all_closing_reasons](docs/sdks/closingreason/README.md#get_all_closing_reasons) - getAllClosingReasons
44+
45+
### [workflows](docs/sdks/workflows/README.md)
46+
47+
* [create_definition](docs/sdks/workflows/README.md#create_definition) - createDefinition
48+
* [delete_definition](docs/sdks/workflows/README.md#delete_definition) - deleteDefinition
49+
* [get_definition](docs/sdks/workflows/README.md#get_definition) - getDefinition
50+
* [get_definitions](docs/sdks/workflows/README.md#get_definitions) - getDefinitions
51+
* [get_max_allowed_limit](docs/sdks/workflows/README.md#get_max_allowed_limit) - getMaxAllowedLimit
52+
* [get_workflow_closing_reasons](docs/sdks/workflows/README.md#get_workflow_closing_reasons) - getWorkflowClosingReasons
53+
* [set_workflow_closing_reasons](docs/sdks/workflows/README.md#set_workflow_closing_reasons) - setWorkflowClosingReasons
54+
* [update_definition](docs/sdks/workflows/README.md#update_definition) - updateDefinition
55+
<!-- End Available Resources and Operations [operations] -->
56+
57+
<!-- Start Error Handling [errors] -->
58+
## Error Handling
59+
60+
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.
61+
62+
| Error Object | Status Code | Content Type |
63+
| ---------------- | ---------------- | ---------------- |
64+
| errors.ErrorResp | 400,500 | application/json |
65+
| errors.SDKError | 4xx-5xx | */* |
66+
67+
### Example
68+
69+
```python
70+
import sdk
71+
from sdk.models import components, errors
72+
73+
s = sdk.SDK(
74+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
75+
)
76+
77+
78+
res = None
79+
try:
80+
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
81+
status=components.ClosingReasonsStatus.ACTIVE,
82+
))
83+
except errors.ErrorResp as e:
84+
# handle exception
85+
raise(e)
86+
except errors.SDKError as e:
87+
# handle exception
88+
raise(e)
89+
90+
if res is not None:
91+
# handle response
92+
pass
93+
94+
```
95+
<!-- End Error Handling [errors] -->
96+
97+
<!-- Start Server Selection [server] -->
98+
## Server Selection
99+
100+
### Select Server by Index
101+
102+
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:
103+
104+
| # | Server | Variables |
105+
| - | ------ | --------- |
106+
| 0 | `https://workflows-definition.sls.epilot.io` | None |
107+
108+
#### Example
109+
13110
```python
14111
import sdk
15-
from sdk.models import operations, shared
112+
from sdk.models import components
16113

17114
s = sdk.SDK(
18-
security=shared.Security(
19-
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
20-
),
115+
server_idx=0,
116+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
21117
)
22118

23119

24-
req = operations.ChangeReasonStatusRequest(
25-
change_reason_status_req=shared.ChangeReasonStatusReq(
26-
status="INACTIVE",
27-
),
28-
reason_id="deserunt",
120+
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
121+
status=components.ClosingReasonsStatus.ACTIVE,
122+
))
123+
124+
if res is not None:
125+
# handle response
126+
pass
127+
128+
```
129+
130+
131+
### Override Server URL Per-Client
132+
133+
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:
134+
```python
135+
import sdk
136+
from sdk.models import components
137+
138+
s = sdk.SDK(
139+
server_url="https://workflows-definition.sls.epilot.io",
140+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
29141
)
30-
31-
res = s.closing_reason.change_reason_status(req)
32142

33-
if res.status_code == 200:
143+
144+
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
145+
status=components.ClosingReasonsStatus.ACTIVE,
146+
))
147+
148+
if res is not None:
34149
# handle response
150+
pass
151+
35152
```
36-
<!-- End SDK Example Usage -->
153+
<!-- End Server Selection [server] -->
37154

38-
<!-- Start SDK Available Operations -->
39-
## SDK Available Operations
155+
<!-- Start Custom HTTP Client [http-client] -->
156+
## Custom HTTP Client
40157

158+
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.
41159

42-
### closing_reason
160+
For example, you could specify a header for every request that this sdk makes as follows:
161+
```python
162+
import sdk
163+
import requests
164+
165+
http_client = requests.Session()
166+
http_client.headers.update({'x-custom-header': 'someValue'})
167+
s = sdk.SDK(client=http_client)
168+
```
169+
<!-- End Custom HTTP Client [http-client] -->
170+
171+
<!-- Start Authentication [security] -->
172+
## Authentication
173+
174+
### Per-Client Security Schemes
175+
176+
This SDK supports the following security scheme globally:
177+
178+
| Name | Type | Scheme |
179+
| ------------- | ------------- | ------------- |
180+
| `bearer_auth` | http | HTTP Bearer |
181+
182+
To authenticate with the API the `bearer_auth` parameter must be set when initializing the SDK client instance. For example:
183+
```python
184+
import sdk
185+
from sdk.models import components
186+
187+
s = sdk.SDK(
188+
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
189+
)
190+
191+
192+
res = s.closing_reason.change_reason_status(reason_id='<value>', change_reason_status_req=components.ChangeReasonStatusReq(
193+
status=components.ClosingReasonsStatus.ACTIVE,
194+
))
195+
196+
if res is not None:
197+
# handle response
198+
pass
199+
200+
```
201+
<!-- End Authentication [security] -->
43202

44-
* `change_reason_status` - changeReasonStatus
45-
* `create_closing_reason` - createClosingReason
46-
* `get_all_closing_reasons` - getAllClosingReasons
203+
<!-- Placeholder for Future Speakeasy SDK Sections -->
47204

48-
### workflows
49205

50-
* `create_definition` - createDefinition
51-
* `delete_definition` - deleteDefinition
52-
* `get_definition` - getDefinition
53-
* `get_definitions` - getDefinitions
54-
* `get_max_allowed_limit` - getMaxAllowedLimit
55-
* `get_workflow_closing_reasons` - getWorkflowClosingReasons
56-
* `set_workflow_closing_reasons` - setWorkflowClosingReasons
57-
* `update_definition` - updateDefinition
58-
<!-- End SDK Available Operations -->
59206

60207
### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)

workflows_definition/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,12 @@ Based on:
3434
### Changes
3535
Based on:
3636
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml
37-
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
37+
- Speakeasy CLI 1.19.2 (2.16.5) https://github.com/speakeasy-api/speakeasy
38+
39+
## 2024-04-23 00:23:07
40+
### Changes
41+
Based on:
42+
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/workflows-definition.yaml
43+
- Speakeasy CLI 1.269.1 (2.312.1) https://github.com/speakeasy-api/speakeasy
44+
### Generated
45+
- [python v1.3.0] workflows_definition

0 commit comments

Comments
 (0)