Skip to content

Commit 8f8acb1

Browse files
authored
Merge pull request #584 from codatio/speakeasy-sdk-regen-1714139614
chore: 🐝 Update SDK - Generate Platform library
2 parents 7a279c0 + 0e91602 commit 8f8acb1

File tree

85 files changed

+2913
-1643
lines changed

Some content is hidden

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

85 files changed

+2913
-1643
lines changed

platform/.speakeasy/gen.lock

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
lockVersion: 2.0.0
22
id: ede4f28e-23c0-442d-89ba-baa76ae2da6e
33
management:
4-
docChecksum: 6b9afa35a1ca4d8a1834643e80dd9a19
4+
docChecksum: 91b86a7707fc536ccbdc7b7345d775a0
55
docVersion: 3.0.0
6-
speakeasyVersion: internal
7-
generationVersion: 2.277.0
8-
releaseVersion: 3.4.0
9-
configChecksum: 29197c333cff36b846fe087471e16d21
6+
speakeasyVersion: 1.274.1
7+
generationVersion: 2.314.0
8+
releaseVersion: 3.5.0
9+
configChecksum: 80bf5d1b7da8b1a6ec5440792d84c83d
1010
repoURL: https://github.com/codatio/client-sdk-python.git
1111
repoSubDirectory: platform
1212
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=platform
1313
published: true
1414
features:
1515
python:
1616
constsAndDefaults: 0.1.3
17-
core: 4.5.0
17+
core: 4.6.5
1818
deprecations: 2.81.1
1919
examples: 2.81.3
20-
globalSecurity: 2.83.4
21-
globalServerURLs: 2.82.1
20+
globalSecurity: 2.83.5
21+
globalServerURLs: 2.82.2
22+
groups: 2.81.2
23+
ignores: 2.81.1
2224
inputOutputModels: 2.83.1
23-
nameOverrides: 2.81.1
24-
retries: 2.82.1
25+
nameOverrides: 2.81.2
26+
responseFormat: 0.1.0
27+
retries: 2.82.2
2528
webhooks: 1.0.0
2629
generatedFiles:
2730
- src/codatplatform/sdkconfiguration.py
2831
- src/codatplatform/settings.py
2932
- src/codatplatform/companies.py
33+
- src/codatplatform/cors_settings.py
34+
- src/codatplatform/connection_management.py
3035
- src/codatplatform/connections.py
3136
- src/codatplatform/custom_data_type.py
3237
- src/codatplatform/push_data.py
@@ -36,6 +41,7 @@ generatedFiles:
3641
- src/codatplatform/supplemental_data.py
3742
- src/codatplatform/webhooks.py
3843
- src/codatplatform/sdk.py
44+
- py.typed
3945
- pylintrc
4046
- setup.py
4147
- src/codatplatform/__init__.py
@@ -56,6 +62,9 @@ generatedFiles:
5662
- src/codatplatform/models/operations/get_company.py
5763
- src/codatplatform/models/operations/list_companies.py
5864
- src/codatplatform/models/operations/update_company.py
65+
- src/codatplatform/models/operations/get_connection_management_access_token.py
66+
- src/codatplatform/models/operations/get_connection_management_cors_settings.py
67+
- src/codatplatform/models/operations/set_connection_management_cors_settings.py
5968
- src/codatplatform/models/operations/create_connection.py
6069
- src/codatplatform/models/operations/delete_connection.py
6170
- src/codatplatform/models/operations/get_connection.py
@@ -108,6 +117,8 @@ generatedFiles:
108117
- src/codatplatform/models/shared/companies.py
109118
- src/codatplatform/models/shared/links.py
110119
- src/codatplatform/models/shared/halref.py
120+
- src/codatplatform/models/shared/connectionmanagementaccesstoken.py
121+
- src/codatplatform/models/shared/connectionmanagementallowedorigins.py
111122
- src/codatplatform/models/shared/connections.py
112123
- src/codatplatform/models/shared/updateconnectionstatus.py
113124
- src/codatplatform/models/shared/customdatatypeconfiguration.py
@@ -129,7 +140,9 @@ generatedFiles:
129140
- src/codatplatform/models/shared/pushchangetype.py
130141
- src/codatplatform/models/shared/pushoperationref.py
131142
- src/codatplatform/models/shared/pushoperations.py
143+
- src/codatplatform/models/shared/datastatuses.py
132144
- src/codatplatform/models/shared/datastatus.py
145+
- src/codatplatform/models/shared/status.py
133146
- src/codatplatform/models/shared/pulloperations.py
134147
- src/codatplatform/models/shared/companygroupassignment.py
135148
- src/codatplatform/models/shared/group.py
@@ -205,6 +218,10 @@ generatedFiles:
205218
- docs/models/operations/listcompaniesresponse.md
206219
- docs/models/operations/updatecompanyrequest.md
207220
- docs/models/operations/updatecompanyresponse.md
221+
- docs/models/operations/getconnectionmanagementaccesstokenrequest.md
222+
- docs/models/operations/getconnectionmanagementaccesstokenresponse.md
223+
- docs/models/operations/getconnectionmanagementcorssettingsresponse.md
224+
- docs/models/operations/setconnectionmanagementcorssettingsresponse.md
208225
- docs/models/operations/createconnectionrequestbody.md
209226
- docs/models/operations/createconnectionrequest.md
210227
- docs/models/operations/createconnectionresponse.md
@@ -288,14 +305,16 @@ generatedFiles:
288305
- docs/models/shared/companies.md
289306
- docs/models/shared/links.md
290307
- docs/models/shared/halref.md
308+
- docs/models/shared/connectionmanagementaccesstoken.md
309+
- docs/models/shared/connectionmanagementallowedorigins.md
291310
- docs/models/shared/connections.md
292311
- docs/models/shared/updateconnectionstatus.md
293312
- docs/models/shared/customdatatypeconfiguration.md
294313
- docs/models/shared/customdatatyperecords.md
295314
- docs/models/shared/content.md
296315
- docs/models/shared/modifieddate.md
297316
- docs/models/shared/customdatatyperecord.md
298-
- docs/models/shared/status.md
317+
- docs/models/shared/datasetstatus.md
299318
- docs/models/shared/pulloperation.md
300319
- docs/models/shared/pushoption.md
301320
- docs/models/shared/pushvalidationinfo.md
@@ -312,8 +331,10 @@ generatedFiles:
312331
- docs/models/shared/pushchangetype.md
313332
- docs/models/shared/pushoperationref.md
314333
- docs/models/shared/pushoperations.md
334+
- docs/models/shared/datastatuses.md
315335
- docs/models/shared/datatypes.md
316336
- docs/models/shared/datastatus.md
337+
- docs/models/shared/status.md
317338
- docs/models/shared/pulloperations.md
318339
- docs/models/shared/companygroupassignment.md
319340
- docs/models/shared/group.md
@@ -372,6 +393,8 @@ generatedFiles:
372393
- docs/models/utils/retryconfig.md
373394
- docs/sdks/settings/README.md
374395
- docs/sdks/companies/README.md
396+
- docs/sdks/connectionmanagement/README.md
397+
- docs/sdks/corssettings/README.md
375398
- docs/sdks/connections/README.md
376399
- docs/sdks/customdatatype/README.md
377400
- docs/sdks/pushdata/README.md
@@ -382,7 +405,6 @@ generatedFiles:
382405
- docs/sdks/webhooks/README.md
383406
- USAGE.md
384407
- .gitattributes
385-
- src/codatplatform/_hooks/registration.py
386408
- src/codatplatform/_hooks/sdkhooks.py
387409
- src/codatplatform/_hooks/types.py
388410
- src/codatplatform/_hooks/__init__.py

platform/README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ res = s.settings.create_api_key(req)
3737
if res.api_key_details is not None:
3838
# handle response
3939
pass
40+
4041
```
4142
<!-- End SDK Example Usage [usage] -->
4243

@@ -61,6 +62,15 @@ if res.api_key_details is not None:
6162
* [list](docs/sdks/companies/README.md#list) - List companies
6263
* [update](docs/sdks/companies/README.md#update) - Update company
6364

65+
### [connection_management](docs/sdks/connectionmanagement/README.md)
66+
67+
* [get_access_token](docs/sdks/connectionmanagement/README.md#get_access_token) - Get access token
68+
69+
### [connection_management.cors_settings](docs/sdks/corssettings/README.md)
70+
71+
* [get](docs/sdks/corssettings/README.md#get) - Get CORS settings
72+
* [set](docs/sdks/corssettings/README.md#set) - Set CORS settings
73+
6474
### [connections](docs/sdks/connections/README.md)
6575

6676
* [create](docs/sdks/connections/README.md#create) - Create connection
@@ -148,6 +158,7 @@ res = s.settings.create_api_key(req,
148158
if res.api_key_details is not None:
149159
# handle response
150160
pass
161+
151162
```
152163

153164
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
@@ -157,7 +168,7 @@ from codatplatform.models import shared
157168
from codatplatform.utils import BackoffStrategy, RetryConfig
158169

159170
s = codatplatform.CodatPlatform(
160-
retry_config=RetryConfig('backoff', BackoffStrategy(1, 50, 1.1, 100), False)
171+
retry_config=RetryConfig('backoff', BackoffStrategy(1, 50, 1.1, 100), False),
161172
security=shared.Security(
162173
auth_header="Basic BASE_64_ENCODED(API_KEY)",
163174
),
@@ -172,6 +183,7 @@ res = s.settings.create_api_key(req)
172183
if res.api_key_details is not None:
173184
# handle response
174185
pass
186+
175187
```
176188
<!-- End Retries [retries] -->
177189

@@ -183,7 +195,7 @@ Handling errors in this SDK should largely match your expectations. All operati
183195
| Error Object | Status Code | Content Type |
184196
| ------------------------------- | ------------------------------- | ------------------------------- |
185197
| errors.ErrorMessage | 400,401,402,403,409,429,500,503 | application/json |
186-
| errors.SDKError | 4x-5xx | */* |
198+
| errors.SDKError | 4xx-5xx | */* |
187199

188200
### Example
189201

@@ -214,6 +226,7 @@ except errors.SDKError as e:
214226
if res.api_key_details is not None:
215227
# handle response
216228
pass
229+
217230
```
218231
<!-- End Error Handling [errors] -->
219232

@@ -250,6 +263,7 @@ res = s.settings.create_api_key(req)
250263
if res.api_key_details is not None:
251264
# handle response
252265
pass
266+
253267
```
254268

255269

@@ -276,6 +290,7 @@ res = s.settings.create_api_key(req)
276290
if res.api_key_details is not None:
277291
# handle response
278292
pass
293+
279294
```
280295
<!-- End Server Selection [server] -->
281296

@@ -291,7 +306,7 @@ import requests
291306

292307
http_client = requests.Session()
293308
http_client.headers.update({'x-custom-header': 'someValue'})
294-
s = codatplatform.CodatPlatform(client: http_client)
309+
s = codatplatform.CodatPlatform(client=http_client)
295310
```
296311
<!-- End Custom HTTP Client [http-client] -->
297312

@@ -326,6 +341,7 @@ res = s.settings.create_api_key(req)
326341
if res.api_key_details is not None:
327342
# handle response
328343
pass
344+
329345
```
330346
<!-- End Authentication [security] -->
331347

platform/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,14 @@ Based on:
8888
### Generated
8989
- [python v3.4.0] platform
9090
### Releases
91-
- [PyPI v3.4.0] https://pypi.org/project/codat-platform/3.4.0 - platform
91+
- [PyPI v3.4.0] https://pypi.org/project/codat-platform/3.4.0 - platform
92+
93+
## 2024-04-26 13:53:28
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml
97+
- Speakeasy CLI 1.274.1 (2.314.0) https://github.com/speakeasy-api/speakeasy
98+
### Generated
99+
- [python v3.5.0] platform
100+
### Releases
101+
- [PyPI v3.5.0] https://pypi.org/project/codat-platform/3.5.0 - platform

platform/USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ res = s.settings.create_api_key(req)
1818
if res.api_key_details is not None:
1919
# handle response
2020
pass
21+
2122
```
2223
<!-- End SDK Example Usage [usage] -->

platform/docs/models/operations/getcompanydatastatusresponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
1010
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11-
| `data_statuses` | Dict[str, [shared.DataStatus](../../models/shared/datastatus.md)] | :heavy_minus_sign: | OK |
11+
| `data_statuses` | [Optional[shared.DataStatuses]](../../models/shared/datastatuses.md) | :heavy_minus_sign: | OK |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetConnectionManagementAccessTokenRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
8+
| `company_id` | *str* | :heavy_check_mark: | Unique identifier for a company. | 8a210b68-6988-11ed-a1eb-0242ac120002 |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GetConnectionManagementAccessTokenResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `connection_management_access_token` | [Optional[shared.ConnectionManagementAccessToken]](../../models/shared/connectionmanagementaccesstoken.md) | :heavy_minus_sign: | Success |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GetConnectionManagementCorsSettingsResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | |
11+
| `connection_management_allowed_origins` | [Optional[shared.ConnectionManagementAllowedOrigins]](../../models/shared/connectionmanagementallowedorigins.md) | :heavy_minus_sign: | Success | {<br/>"allowedOrigins": [<br/>"https://www.bank-of-dave.com"<br/>]<br/>} |

0 commit comments

Comments
 (0)