Skip to content

Commit 501727e

Browse files
authored
Merge pull request #96 from codatio/speakeasy-sdk-regen-1682409485
chore: speakeasy sdk regeneration - Generate Files SDK
2 parents f6de8f4 + ab43eaf commit 501727e

File tree

9 files changed

+157
-19
lines changed

9 files changed

+157
-19
lines changed

files/README.md

Lines changed: 7 additions & 7 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(
@@ -25,9 +25,9 @@ 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
)
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/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: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,28 @@ 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
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
226+
227+
## 2023-04-26 14:59:38
228+
### Changes
229+
Based on:
230+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
231+
- Speakeasy CLI 1.25.1 (2.22.0) https://github.com/speakeasy-api/speakeasy
232+
### Releases
233+
- [PyPI v0.12.0] https://pypi.org/project/codat-files/0.12.0 - files

files/USAGE.md

Lines changed: 3 additions & 3 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(
@@ -12,9 +12,9 @@ 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
)
17-
17+
1818
res = s.files.download_files(req)
1919

2020
if res.data is not None:

files/docs/codatfiles/README.md

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

files/docs/files/README.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# files
2+
3+
## Overview
4+
5+
Endpoints to manage uploaded files.
6+
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)
95+
96+
if res.status_code == 200:
97+
# handle response
98+
```

files/files.gen

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ 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
1719
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.20.1
6-
generationVersion: 2.18.1
5+
speakeasyVersion: 1.25.1
6+
generationVersion: 2.22.0
77
generation:
88
telemetryEnabled: false
99
sdkClassName: CodatFiles
1010
singleTagPerOp: false
1111
python:
12-
version: 0.10.1
12+
version: 0.12.0
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
packageName: codat-files

files/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
setuptools.setup(
1212
name="codat-files",
13-
version="0.10.1",
13+
version="0.12.0",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",
1818
packages=setuptools.find_packages(where="src"),
1919
install_requires=[
20-
"certifi==2022.12.07",
20+
"certifi==2022.12.7",
2121
"charset-normalizer==2.1.1",
2222
"dataclasses-json-speakeasy==0.5.8",
2323
"idna==3.3",

files/src/codatfiles/sdk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class CodatFiles:
2727
_security_client: requests_http.Session
2828
_server_url: str = SERVERS[0]
2929
_language: str = "python"
30-
_sdk_version: str = "0.10.1"
31-
_gen_version: str = "2.18.1"
30+
_sdk_version: str = "0.12.0"
31+
_gen_version: str = "2.22.0"
3232

3333
def __init__(self,
3434
security: shared.Security = None,

0 commit comments

Comments
 (0)