Skip to content

Commit a87130d

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.23.0
1 parent f176e03 commit a87130d

12 files changed

Lines changed: 130 additions & 15 deletions

File tree

files/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pip install codat-files
1414
<!-- Start SDK Example Usage -->
1515
```python
1616
import codatfiles
17-
from codatfiles.models import operations, shared
17+
from codatfiles.models import operations
1818

1919
s = codatfiles.CodatFiles(
2020
security=shared.Security(
@@ -27,7 +27,7 @@ req = operations.DownloadFilesRequest(
2727
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
2828
date_="2022-10-23T00:00:00Z",
2929
)
30-
30+
3131
res = s.files.download_files(req)
3232

3333
if res.data is not None:
@@ -39,11 +39,11 @@ if res.data is not None:
3939
## Available Resources and Operations
4040

4141

42-
### files
42+
### [files](docs/files/README.md)
4343

44-
* `download_files` - Download all files for a company
45-
* `list_files` - List all files uploaded by a company
46-
* `upload_files` - Upload files for a company
44+
* [download_files](docs/files/downloadfiles.md) - Download all files for a company
45+
* [list_files](docs/files/listfiles.md) - List all files uploaded by a company
46+
* [upload_files](docs/files/uploadfiles.md) - Upload files for a company
4747
<!-- End SDK Available Operations -->
4848

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

files/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,12 @@ Based on:
206206
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
207207
- Speakeasy CLI 1.20.1 (2.18.1) https://github.com/speakeasy-api/speakeasy
208208
### Releases
209-
- [PyPI v0.10.1] https://pypi.org/project/codat-files/0.10.1 - files
209+
- [PyPI v0.10.1] https://pypi.org/project/codat-files/0.10.1 - files
210+
211+
## 2023-04-25 07:58:03
212+
### Changes
213+
Based on:
214+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
215+
- Speakeasy CLI 1.23.0 (2.21.0) https://github.com/speakeasy-api/speakeasy
216+
### Releases
217+
- [PyPI v0.11.0] https://pypi.org/project/codat-files/0.11.0 - files

files/USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Start SDK Example Usage -->
22
```python
33
import codatfiles
4-
from codatfiles.models import operations, shared
4+
from codatfiles.models import operations
55

66
s = codatfiles.CodatFiles(
77
security=shared.Security(
@@ -14,7 +14,7 @@ req = operations.DownloadFilesRequest(
1414
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
1515
date_="2022-10-23T00:00:00Z",
1616
)
17-
17+
1818
res = s.files.download_files(req)
1919

2020
if res.data is not None:

files/docs/codatfiles/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CodatFiles SDK
2+
3+
An API for uploading and downloading files from 'File Upload' Integrations.
4+
5+
The Accounting file upload, Banking file upload, and Business documents file upload integrations provide simple file upload functionality.
6+
7+
[Read more...](https://docs.codat.io/other/file-upload)
8+
9+
[See our OpenAPI spec](https://github.com/codatio/oas)
10+

files/docs/files/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# files
2+
3+
Endpoints to manage uploaded files.
4+
5+
6+
* [download_files](downloadfiles.md) - Download all files for a company
7+
* [list_files](listfiles.md) - List all files uploaded by a company
8+
* [upload_files](uploadfiles.md) - Upload files for a company

files/docs/files/downloadfiles.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# download_files
2+
Available in: `files`
3+
4+
You can specify a date to download specific files for.
5+
6+
## Example Usage
7+
```python
8+
import codatfiles
9+
from codatfiles.models import operations
10+
11+
s = codatfiles.CodatFiles(
12+
security=shared.Security(
13+
auth_header="YOUR_API_KEY_HERE",
14+
),
15+
)
16+
17+
18+
req = operations.DownloadFilesRequest(
19+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
20+
date_="2022-10-23T00:00:00Z",
21+
)
22+
23+
res = s.files.download_files(req)
24+
25+
if res.data is not None:
26+
# handle response
27+
```

files/docs/files/listfiles.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# list_files
2+
Available in: `files`
3+
4+
Returns an array of files that have been uploaded for a given company.
5+
6+
## Example Usage
7+
```python
8+
import codatfiles
9+
from codatfiles.models import operations
10+
11+
s = codatfiles.CodatFiles(
12+
security=shared.Security(
13+
auth_header="YOUR_API_KEY_HERE",
14+
),
15+
)
16+
17+
18+
req = operations.ListFilesRequest(
19+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
20+
)
21+
22+
res = s.files.list_files(req)
23+
24+
if res.files is not None:
25+
# handle response
26+
```

files/docs/files/uploadfiles.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# upload_files
2+
Available in: `files`
3+
4+
Upload files
5+
6+
## Example Usage
7+
```python
8+
import codatfiles
9+
from codatfiles.models import operations
10+
11+
s = codatfiles.CodatFiles(
12+
security=shared.Security(
13+
auth_header="YOUR_API_KEY_HERE",
14+
),
15+
)
16+
17+
18+
req = operations.UploadFilesRequest(
19+
request_body=operations.UploadFilesRequestBody(
20+
content="corrupti".encode(),
21+
request_body="provident",
22+
),
23+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
24+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
25+
)
26+
27+
res = s.files.upload_files(req)
28+
29+
if res.status_code == 200:
30+
# handle response
31+
```

files/files.gen

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ src/codatfiles/models/operations/__init__.py
1414
src/codatfiles/models/shared/file.py
1515
src/codatfiles/models/shared/security.py
1616
src/codatfiles/models/shared/__init__.py
17+
docs/codatfiles/README.md
18+
docs/files/README.md
19+
docs/files/downloadfiles.md
20+
docs/files/listfiles.md
21+
docs/files/uploadfiles.md
1722
USAGE.md

files/gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ configVersion: 1.0.0
22
management:
33
docChecksum: 3cf265fb28f03ccb976cee9c56372470
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.20.1
6-
generationVersion: 2.18.1
5+
speakeasyVersion: 1.23.0
6+
generationVersion: 2.21.0
77
generation:
88
telemetryEnabled: false
99
sdkClassName: CodatFiles
1010
singleTagPerOp: false
1111
python:
12-
version: 0.10.1
12+
version: 0.11.0
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
packageName: codat-files

0 commit comments

Comments
 (0)