Skip to content

Commit 7e78e0b

Browse files
authored
Merge pull request #149 from codatio/speakeasy-sdk-regen-1684455407
chore: speakeasy sdk regeneration - Generate Common SDK
2 parents ad47515 + 50e03e1 commit 7e78e0b

Some content is hidden

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

48 files changed

+141
-97
lines changed

common/RELEASES.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,20 @@ Based on:
334334
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
335335
- Speakeasy CLI 1.34.0 (2.30.0) https://github.com/speakeasy-api/speakeasy
336336
### Releases
337-
- [PyPI v0.17.0] https://pypi.org/project/codat-common/0.17.0 - common
337+
- [PyPI v0.17.0] https://pypi.org/project/codat-common/0.17.0 - common
338+
339+
## 2023-05-19 00:16:44
340+
### Changes
341+
Based on:
342+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
343+
- Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy
344+
### Releases
345+
- [PyPI v0.18.0] https://pypi.org/project/codat-common/0.18.0 - common
346+
347+
## 2023-05-20 00:15:45
348+
### Changes
349+
Based on:
350+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
351+
- Speakeasy CLI 1.36.1 (2.31.0) https://github.com/speakeasy-api/speakeasy
352+
### Releases
353+
- [PyPI v0.18.1] https://pypi.org/project/codat-common/0.18.1 - common

common/docs/pushdata/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Codat tries not to limit users to pushing to a very limited number of standard c
2121

2222
> **Supported Integrations**
2323
>
24-
> Check out our [Knowledge UI](https://knowledge.codat.io/) for integrations that support push (POST/PUT methods).
24+
> Check out our [coverage explorer](https://knowledge.codat.io/) for integrations that support push (POST/PUT methods).
2525
2626
### Example Usage
2727

@@ -38,7 +38,7 @@ s = codatcommon.CodatCommon(
3838
req = operations.GetCreateUpdateModelOptionsByDataTypeRequest(
3939
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
4040
connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171',
41-
data_type=shared.DataTypeEnum.INVOICES,
41+
data_type=shared.DataType.INVOICES,
4242
)
4343

4444
res = s.push_data.get_model_options(req)

common/docs/refreshdata/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ s = codatcommon.CodatCommon(
5656
req = operations.CreatePullOperationRequest(
5757
company_id='8a210b68-6988-11ed-a1eb-0242ac120002',
5858
connection_id='8ca1ba92-8fc8-4167-82cb-739205929396',
59-
data_type=shared.DataTypeEnum.INVOICES,
59+
data_type=shared.DataType.INVOICES,
6060
)
6161

6262
res = s.refresh_data.by_data_type(req)

common/docs/settings/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ req = operations.UpdateSyncSettingsRequestBody(
5656
overrides_defaults=False,
5757
settings=[
5858
shared.SyncSetting(
59-
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
59+
data_type=shared.SyncSettingDataType.INVOICES,
6060
fetch_on_first_link=False,
6161
is_locked=False,
6262
months_to_sync=24,
@@ -66,7 +66,7 @@ req = operations.UpdateSyncSettingsRequestBody(
6666
sync_schedule=24,
6767
),
6868
shared.SyncSetting(
69-
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
69+
data_type=shared.SyncSettingDataType.INVOICES,
7070
fetch_on_first_link=False,
7171
is_locked=False,
7272
months_to_sync=24,
@@ -76,7 +76,7 @@ req = operations.UpdateSyncSettingsRequestBody(
7676
sync_schedule=24,
7777
),
7878
shared.SyncSetting(
79-
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
79+
data_type=shared.SyncSettingDataType.INVOICES,
8080
fetch_on_first_link=False,
8181
is_locked=False,
8282
months_to_sync=24,
@@ -86,7 +86,7 @@ req = operations.UpdateSyncSettingsRequestBody(
8686
sync_schedule=24,
8787
),
8888
shared.SyncSetting(
89-
data_type=shared.SyncSettingDataTypeEnum.INVOICES,
89+
data_type=shared.SyncSettingDataType.INVOICES,
9090
fetch_on_first_link=False,
9191
is_locked=False,
9292
months_to_sync=24,

common/files.gen

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ src/codatcommon/models/operations/__init__.py
4646
src/codatcommon/models/shared/errormessage.py
4747
src/codatcommon/models/shared/company.py
4848
src/codatcommon/models/shared/connection.py
49-
src/codatcommon/models/shared/dataconnectionstatus_enum.py
50-
src/codatcommon/models/shared/sourcetype_enum.py
49+
src/codatcommon/models/shared/dataconnectionstatus.py
50+
src/codatcommon/models/shared/sourcetype.py
5151
src/codatcommon/models/shared/dataconnectionerror.py
5252
src/codatcommon/models/shared/companyrequestbody.py
5353
src/codatcommon/models/shared/companies.py
@@ -60,9 +60,9 @@ src/codatcommon/models/shared/dataconnectionhistory.py
6060
src/codatcommon/models/shared/integration.py
6161
src/codatcommon/models/shared/datatypefeature.py
6262
src/codatcommon/models/shared/supportedfeature.py
63-
src/codatcommon/models/shared/featuretype_enum.py
64-
src/codatcommon/models/shared/featurestate_enum.py
65-
src/codatcommon/models/shared/datatype_enum.py
63+
src/codatcommon/models/shared/featuretype.py
64+
src/codatcommon/models/shared/featurestate.py
65+
src/codatcommon/models/shared/datatype.py
6666
src/codatcommon/models/shared/branding.py
6767
src/codatcommon/models/shared/brandinglogo.py
6868
src/codatcommon/models/shared/brandingimage.py
@@ -72,15 +72,15 @@ src/codatcommon/models/shared/integrations.py
7272
src/codatcommon/models/shared/pushoption.py
7373
src/codatcommon/models/shared/pushvalidationinfo.py
7474
src/codatcommon/models/shared/pushfieldvalidation.py
75-
src/codatcommon/models/shared/pushoptiontype_enum.py
75+
src/codatcommon/models/shared/pushoptiontype.py
7676
src/codatcommon/models/shared/pushoptionproperty.py
7777
src/codatcommon/models/shared/pushoptionchoice.py
7878
src/codatcommon/models/shared/pushoperation.py
7979
src/codatcommon/models/shared/validation.py
8080
src/codatcommon/models/shared/validationitem.py
81-
src/codatcommon/models/shared/pushoperationstatus_enum.py
81+
src/codatcommon/models/shared/pushoperationstatus.py
8282
src/codatcommon/models/shared/pushoperationchange.py
83-
src/codatcommon/models/shared/pushchangetype_enum.py
83+
src/codatcommon/models/shared/pushchangetype.py
8484
src/codatcommon/models/shared/pushoperationref.py
8585
src/codatcommon/models/shared/pushhistoryresponse.py
8686
src/codatcommon/models/shared/pushoperationsummary.py
@@ -90,7 +90,7 @@ src/codatcommon/models/shared/rule.py
9090
src/codatcommon/models/shared/rules.py
9191
src/codatcommon/models/shared/security.py
9292
src/codatcommon/models/shared/companydataconnectionstatuschangedwebhook.py
93-
src/codatcommon/models/shared/connectionstatus_enum.py
93+
src/codatcommon/models/shared/connectionstatus.py
9494
src/codatcommon/models/shared/datasynccompletedwebhook.py
9595
src/codatcommon/models/shared/datasetdatachangedwebhook.py
9696
src/codatcommon/models/shared/datasetstatuschangederrorwebhook.py

common/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: 2d583c2582024747bb63521ccfa3160b
3+
docChecksum: 57175a10c1f027b24b5699f013c125a6
44
docVersion: 2.1.0
5-
speakeasyVersion: 1.34.0
6-
generationVersion: 2.30.0
5+
speakeasyVersion: 1.36.1
6+
generationVersion: 2.31.0
77
generation:
88
sdkClassName: CodatCommon
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.17.0
12+
version: 0.18.1
1313
author: Speakeasy
1414
description: Python Client SDK Generated by Speakeasy
1515
maxMethodParams: 0

common/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-common",
13-
version="0.17.0",
13+
version="0.18.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

common/src/codatcommon/companies.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def create(self, request: shared.CompanyRequestBody, retries: Optional[utils.Ret
3434
req_content_type, data, form = utils.serialize_request_body(request, "request", 'json')
3535
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
3636
headers['content-type'] = req_content_type
37+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
3738
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3839

3940
client = self._security_client
@@ -77,6 +78,7 @@ def delete(self, request: operations.DeleteCompanyRequest, retries: Optional[uti
7778

7879
url = utils.generate_url(operations.DeleteCompanyRequest, base_url, '/companies/{companyId}', request)
7980
headers = {}
81+
headers['Accept'] = 'application/json'
8082
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
8183

8284
client = self._security_client
@@ -117,6 +119,7 @@ def get(self, request: operations.GetCompanyRequest, retries: Optional[utils.Ret
117119

118120
url = utils.generate_url(operations.GetCompanyRequest, base_url, '/companies/{companyId}', request)
119121
headers = {}
122+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
120123
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
121124

122125
client = self._security_client
@@ -160,6 +163,7 @@ def list(self, request: operations.ListCompaniesRequest, retries: Optional[utils
160163
url = base_url.removesuffix('/') + '/companies'
161164
headers = {}
162165
query_params = utils.get_query_params(operations.ListCompaniesRequest, request)
166+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
163167
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
164168

165169
client = self._security_client
@@ -205,6 +209,7 @@ def update(self, request: operations.UpdateCompanyRequest, retries: Optional[uti
205209
req_content_type, data, form = utils.serialize_request_body(request, "company_request_body", 'json')
206210
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
207211
headers['content-type'] = req_content_type
212+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
208213
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
209214

210215
client = self._security_client

common/src/codatcommon/connections.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def create(self, request: operations.CreateDataConnectionRequest, retries: Optio
3434
req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json')
3535
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
3636
headers['content-type'] = req_content_type
37+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
3738
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3839

3940
client = self._security_client
@@ -77,6 +78,7 @@ def delete(self, request: operations.DeleteCompanyConnectionRequest, retries: Op
7778

7879
url = utils.generate_url(operations.DeleteCompanyConnectionRequest, base_url, '/companies/{companyId}/connections/{connectionId}', request)
7980
headers = {}
81+
headers['Accept'] = 'application/json'
8082
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
8183

8284
client = self._security_client
@@ -117,6 +119,7 @@ def get(self, request: operations.GetCompanyConnectionRequest, retries: Optional
117119

118120
url = utils.generate_url(operations.GetCompanyConnectionRequest, base_url, '/companies/{companyId}/connections/{connectionId}', request)
119121
headers = {}
122+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
120123
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
121124

122125
client = self._security_client
@@ -160,6 +163,7 @@ def list(self, request: operations.ListCompanyConnectionsRequest, retries: Optio
160163
url = utils.generate_url(operations.ListCompanyConnectionsRequest, base_url, '/companies/{companyId}/connections', request)
161164
headers = {}
162165
query_params = utils.get_query_params(operations.ListCompanyConnectionsRequest, request)
166+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
163167
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
164168

165169
client = self._security_client
@@ -205,6 +209,7 @@ def unlink_connection(self, request: operations.UnlinkConnectionRequest, retries
205209
req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json')
206210
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
207211
headers['content-type'] = req_content_type
212+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
208213
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
209214

210215
client = self._security_client
@@ -250,6 +255,7 @@ def update_authorization(self, request: operations.UpdateConnectionAuthorization
250255
req_content_type, data, form = utils.serialize_request_body(request, "request_body", 'json')
251256
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
252257
headers['content-type'] = req_content_type
258+
headers['Accept'] = 'application/json'
253259
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
254260

255261
client = self._security_client

common/src/codatcommon/data_status.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def get(self, request: operations.GetCompanyDataStatusRequest, retries: Optional
3131

3232
url = utils.generate_url(operations.GetCompanyDataStatusRequest, base_url, '/companies/{companyId}/dataStatus', request)
3333
headers = {}
34+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
3435
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
3536

3637
client = self._security_client
@@ -73,6 +74,7 @@ def get_pull_operation(self, request: operations.GetPullOperationRequest, retrie
7374

7475
url = utils.generate_url(operations.GetPullOperationRequest, base_url, '/companies/{companyId}/data/history/{datasetId}', request)
7576
headers = {}
77+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
7678
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
7779

7880
client = self._security_client
@@ -116,6 +118,7 @@ def list_pull_operations(self, request: operations.ListPullOperationsRequest, re
116118
url = utils.generate_url(operations.ListPullOperationsRequest, base_url, '/companies/{companyId}/data/history', request)
117119
headers = {}
118120
query_params = utils.get_query_params(operations.ListPullOperationsRequest, request)
121+
headers['Accept'] = 'application/json;q=1, application/json;q=0'
119122
headers['user-agent'] = f'speakeasy-sdk/{self._language} {self._sdk_version} {self._gen_version}'
120123

121124
client = self._security_client

0 commit comments

Comments
 (0)