Skip to content

Commit 86b1823

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.23.1
1 parent a87130d commit 86b1823

12 files changed

Lines changed: 119 additions & 104 deletions

File tree

files/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ s = codatfiles.CodatFiles(
2525

2626
req = operations.DownloadFilesRequest(
2727
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
28-
date_="2022-10-23T00:00:00Z",
28+
date_="corrupti",
2929
)
3030

3131
res = s.files.download_files(req)
@@ -41,9 +41,9 @@ if res.data is not None:
4141

4242
### [files](docs/files/README.md)
4343

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
44+
* [download_files](docs/files/README.md#download_files) - Download all files for a company
45+
* [list_files](docs/files/README.md#list_files) - List all files uploaded by a company
46+
* [upload_files](docs/files/README.md#upload_files) - 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
@@ -214,4 +214,12 @@ Based on:
214214
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
215215
- Speakeasy CLI 1.23.0 (2.21.0) https://github.com/speakeasy-api/speakeasy
216216
### Releases
217-
- [PyPI v0.11.0] https://pypi.org/project/codat-files/0.11.0 - files
217+
- [PyPI v0.11.0] https://pypi.org/project/codat-files/0.11.0 - files
218+
219+
## 2023-04-25 14:17:54
220+
### Changes
221+
Based on:
222+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
223+
- Speakeasy CLI 1.23.1 (2.21.1) https://github.com/speakeasy-api/speakeasy
224+
### Releases
225+
- [PyPI v0.11.1] https://pypi.org/project/codat-files/0.11.1 - files

files/USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ s = codatfiles.CodatFiles(
1212

1313
req = operations.DownloadFilesRequest(
1414
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
15-
date_="2022-10-23T00:00:00Z",
15+
date_="corrupti",
1616
)
1717

1818
res = s.files.download_files(req)

files/docs/codatfiles/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CodatFiles SDK
22

3+
## Overview
4+
35
An API for uploading and downloading files from 'File Upload' Integrations.
46

57
The Accounting file upload, Banking file upload, and Business documents file upload integrations provide simple file upload functionality.
@@ -8,3 +10,5 @@ The Accounting file upload, Banking file upload, and Business documents file upl
810

911
[See our OpenAPI spec](https://github.com/codatio/oas)
1012

13+
### Available Operations
14+

files/docs/files/README.md

Lines changed: 93 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,98 @@
11
# files
22

3+
## Overview
4+
35
Endpoints to manage uploaded files.
46

7+
### Available Operations
8+
9+
* [download_files](#download_files) - Download all files for a company
10+
* [list_files](#list_files) - List all files uploaded by a company
11+
* [upload_files](#upload_files) - Upload files for a company
12+
13+
## download_files
14+
15+
You can specify a date to download specific files for.
16+
17+
### Example Usage
18+
19+
```python
20+
import codatfiles
21+
from codatfiles.models import operations
22+
23+
s = codatfiles.CodatFiles(
24+
security=shared.Security(
25+
auth_header="YOUR_API_KEY_HERE",
26+
),
27+
)
28+
29+
30+
req = operations.DownloadFilesRequest(
31+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
32+
date_="provident",
33+
)
34+
35+
res = s.files.download_files(req)
36+
37+
if res.data is not None:
38+
# handle response
39+
```
40+
41+
## list_files
42+
43+
Returns an array of files that have been uploaded for a given company.
44+
45+
### Example Usage
46+
47+
```python
48+
import codatfiles
49+
from codatfiles.models import operations
50+
51+
s = codatfiles.CodatFiles(
52+
security=shared.Security(
53+
auth_header="YOUR_API_KEY_HERE",
54+
),
55+
)
56+
57+
58+
req = operations.ListFilesRequest(
59+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
60+
)
61+
62+
res = s.files.list_files(req)
63+
64+
if res.files is not None:
65+
# handle response
66+
```
67+
68+
## upload_files
69+
70+
Upload files
71+
72+
### Example Usage
73+
74+
```python
75+
import codatfiles
76+
from codatfiles.models import operations
77+
78+
s = codatfiles.CodatFiles(
79+
security=shared.Security(
80+
auth_header="YOUR_API_KEY_HERE",
81+
),
82+
)
83+
84+
85+
req = operations.UploadFilesRequest(
86+
request_body=operations.UploadFilesRequestBody(
87+
content="distinctio".encode(),
88+
request_body="quibusdam",
89+
),
90+
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
91+
connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
92+
)
93+
94+
res = s.files.upload_files(req)
595

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
96+
if res.status_code == 200:
97+
# handle response
98+
```

files/docs/files/downloadfiles.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

files/docs/files/listfiles.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

files/docs/files/uploadfiles.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

files/files.gen

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,4 @@ src/codatfiles/models/shared/security.py
1616
src/codatfiles/models/shared/__init__.py
1717
docs/codatfiles/README.md
1818
docs/files/README.md
19-
docs/files/downloadfiles.md
20-
docs/files/listfiles.md
21-
docs/files/uploadfiles.md
2219
USAGE.md

files/gen.yaml

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

0 commit comments

Comments
 (0)