Skip to content

Commit c0a748b

Browse files
authored
Merge pull request #203 from codatio/speakeasy-sdk-regen-1687219264
chore: speakeasy sdk regeneration - Generate Files SDK
2 parents fd2818b + 5e48820 commit c0a748b

9 files changed

Lines changed: 113 additions & 19 deletions

File tree

files/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.python-version
2+
.DS_Store
13
venv/
24
src/*.egg-info/
35
__pycache__/

files/RELEASES.md

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,4 +494,84 @@ Based on:
494494
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
495495
- Speakeasy CLI 1.48.0 (2.41.1) https://github.com/speakeasy-api/speakeasy
496496
### Releases
497-
- [PyPI v0.27.1] https://pypi.org/project/codat-files/0.27.1 - files
497+
- [PyPI v0.27.1] https://pypi.org/project/codat-files/0.27.1 - files
498+
499+
## 2023-06-20 00:01:00
500+
### Changes
501+
Based on:
502+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
503+
- Speakeasy CLI 1.49.0 (2.41.4) https://github.com/speakeasy-api/speakeasy
504+
### Releases
505+
- [PyPI v0.27.2] https://pypi.org/project/codat-files/0.27.2 - files
506+
507+
## 2023-06-21 00:00:51
508+
### Changes
509+
Based on:
510+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
511+
- Speakeasy CLI 1.49.1 (2.41.5) https://github.com/speakeasy-api/speakeasy
512+
### Releases
513+
- [PyPI v0.27.3] https://pypi.org/project/codat-files/0.27.3 - files
514+
515+
## 2023-06-23 00:01:02
516+
### Changes
517+
Based on:
518+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
519+
- Speakeasy CLI 1.50.1 (2.43.2) https://github.com/speakeasy-api/speakeasy
520+
### Releases
521+
- [PyPI v0.28.0] https://pypi.org/project/codat-files/0.28.0 - files
522+
523+
## 2023-06-27 00:01:11
524+
### Changes
525+
Based on:
526+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
527+
- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy
528+
### Releases
529+
- [PyPI v0.29.0] https://pypi.org/project/codat-files/0.29.0 - files
530+
531+
## 2023-06-28 00:01:04
532+
### Changes
533+
Based on:
534+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
535+
- Speakeasy CLI 1.51.1 (2.50.2) https://github.com/speakeasy-api/speakeasy
536+
### Releases
537+
- [PyPI v0.29.1] https://pypi.org/project/codat-files/0.29.1 - files
538+
539+
## 2023-06-30 00:00:59
540+
### Changes
541+
Based on:
542+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
543+
- Speakeasy CLI 1.51.3 (2.52.2) https://github.com/speakeasy-api/speakeasy
544+
### Releases
545+
- [PyPI v0.30.0] https://pypi.org/project/codat-files/0.30.0 - files
546+
547+
## 2023-07-01 00:00:53
548+
### Changes
549+
Based on:
550+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
551+
- Speakeasy CLI 1.52.0 (2.55.0) https://github.com/speakeasy-api/speakeasy
552+
### Releases
553+
- [PyPI v0.31.0] https://pypi.org/project/codat-files/0.31.0 - files
554+
555+
## 2023-07-06 00:01:05
556+
### Changes
557+
Based on:
558+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
559+
- Speakeasy CLI 1.52.2 (2.57.2) https://github.com/speakeasy-api/speakeasy
560+
### Releases
561+
- [PyPI v0.32.0] https://pypi.org/project/codat-files/0.32.0 - files
562+
563+
## 2023-07-07 00:00:55
564+
### Changes
565+
Based on:
566+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
567+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
568+
### Releases
569+
- [PyPI v0.33.0] https://pypi.org/project/codat-files/0.33.0 - files
570+
571+
## 2023-07-07 09:23:27
572+
### Changes
573+
Based on:
574+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml
575+
- Speakeasy CLI 1.53.0 (2.58.0) https://github.com/speakeasy-api/speakeasy
576+
### Releases
577+
- [PyPI v0.33.1] https://pypi.org/project/codat-files/0.33.1 - files

files/docs/models/operations/downloadfilesrequest.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
8-
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9-
| `date_` | *Optional[str]* | :heavy_minus_sign: | Only download files uploaded on this date | 2022-10-23T00:00:00.000Z |
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
8+
| `company_id` | *str* | :heavy_check_mark: | N/A | 8a210b68-6988-11ed-a1eb-0242ac120002 |
9+
| `date_` | *Optional[str]* | :heavy_minus_sign: | Only download files uploaded on this date. | 2022-10-23T00:00:00.000Z |

files/docs/sdks/files/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Endpoints to manage uploaded files.
1212

1313
## download_files
1414

15-
You can specify a date to download specific files for.
15+
The *Download files* endpoint downloads all files that have been uploaded by to SMB to Codat. A `date` may be specified to download any files uploaded on the date provided.
1616

1717
### Example Usage
1818

@@ -52,7 +52,7 @@ if res.data is not None:
5252

5353
## list_files
5454

55-
Returns an array of files that have been uploaded for a given company.
55+
The *List files* endpoint returns a list of all files uploaded to Codat by the SMB.
5656

5757
### Example Usage
5858

@@ -91,7 +91,13 @@ if res.files is not None:
9191

9292
## upload_files
9393

94-
Upload files
94+
The *Upload files* endpoint uploads multiple files provided by the SMB to Codat. This may include personal identity documents, pitch decks, contracts, or files with accounting and banking data.
95+
96+
Uploaded files must meet the following requirements:
97+
98+
- Up to 20 files can be uploaded at a time.
99+
- PDF, XLS, XLSX, XLSB, CSV, DOC, DOCX, PPT, PPTX, JPEG, JPG, and PNG files can be uploaded.
100+
- Each file can be up to 10MB in size.
95101

96102
### Example Usage
97103

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: a840628ec16624727f01593d82c33746
3+
docChecksum: 853aebc76021ec17db9b1abb7a33f340
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.48.0
6-
generationVersion: 2.41.1
5+
speakeasyVersion: 1.53.0
6+
generationVersion: 2.58.0
77
generation:
88
sdkClassName: CodatFiles
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.27.1
12+
version: 0.33.1
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

files/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="codat-files",
13-
version="0.27.1",
13+
version="0.33.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

files/src/codatfiles/files.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, sdk_config: SDKConfiguration) -> None:
1515

1616
def download_files(self, request: operations.DownloadFilesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.DownloadFilesResponse:
1717
r"""Download all files for a company
18-
You can specify a date to download specific files for.
18+
The *Download files* endpoint downloads all files that have been uploaded by to SMB to Codat. A `date` may be specified to download any files uploaded on the date provided.
1919
"""
2020
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
2121

@@ -60,7 +60,7 @@ def do_request():
6060

6161
def list_files(self, request: operations.ListFilesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.ListFilesResponse:
6262
r"""List all files uploaded by a company
63-
Returns an array of files that have been uploaded for a given company.
63+
The *List files* endpoint returns a list of all files uploaded to Codat by the SMB.
6464
"""
6565
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
6666

@@ -105,7 +105,13 @@ def do_request():
105105

106106
def upload_files(self, request: operations.UploadFilesRequest, retries: Optional[utils.RetryConfig] = None) -> operations.UploadFilesResponse:
107107
r"""Upload files for a company
108-
Upload files
108+
The *Upload files* endpoint uploads multiple files provided by the SMB to Codat. This may include personal identity documents, pitch decks, contracts, or files with accounting and banking data.
109+
110+
Uploaded files must meet the following requirements:
111+
112+
- Up to 20 files can be uploaded at a time.
113+
- PDF, XLS, XLSX, XLSB, CSV, DOC, DOCX, PPT, PPTX, JPEG, JPG, and PNG files can be uploaded.
114+
- Each file can be up to 10MB in size.
109115
"""
110116
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
111117

files/src/codatfiles/models/operations/download_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class DownloadFilesRequest:
1515
company_id: str = dataclasses.field(metadata={'path_param': { 'field_name': 'companyId', 'style': 'simple', 'explode': False }})
1616
date_: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'date', 'style': 'form', 'explode': True }})
17-
r"""Only download files uploaded on this date"""
17+
r"""Only download files uploaded on this date."""
1818

1919

2020

files/src/codatfiles/sdkconfiguration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class SDKConfiguration:
1818
server_idx: int = 0
1919
language: str = 'python'
2020
openapi_doc_version: str = '2.1.0'
21-
sdk_version: str = '0.27.1'
22-
gen_version: str = '2.41.1'
21+
sdk_version: str = '0.33.1'
22+
gen_version: str = '2.58.0'
2323

2424
def get_server_details(self) -> tuple[str, dict[str, str]]:
2525
if self.server_url:

0 commit comments

Comments
 (0)