Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.460.6 (#631)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jan 3, 2025
1 parent 10faac1 commit 4b84005
Show file tree
Hide file tree
Showing 36 changed files with 818 additions and 356 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.460.3
speakeasyVersion: 1.460.6
sources:
accounting-source:
sourceNamespace: accounting-source
Expand Down Expand Up @@ -60,11 +60,11 @@ sources:
- 3.0.0
platform-source:
sourceNamespace: platform-source
sourceRevisionDigest: sha256:ef966dca35b7fc3432b6fe7fe6e38581da34ceb42470f02262ebf598963169dc
sourceBlobDigest: sha256:d80a27e44fffb9c61f16a99e7d25c294f39be1a5a761d51a87c76477f8589f54
sourceRevisionDigest: sha256:ecd1f862f240b1eb7ee0586b1b0cdfe6f27f4c7f20a3f4145b7d1caf7cf42d3c
sourceBlobDigest: sha256:ea673ea0d97789f88bfd38d9bdf61b7d7ff32fa279048bad39f2a596c189ab71
tags:
- latest
- speakeasy-sdk-regen-1733826101
- speakeasy-sdk-regen-1735895812
- 3.0.0
sync-for-commerce-source:
sourceNamespace: sync-for-commerce-source
Expand Down Expand Up @@ -145,10 +145,10 @@ targets:
platform-library:
source: platform-source
sourceNamespace: platform-source
sourceRevisionDigest: sha256:ef966dca35b7fc3432b6fe7fe6e38581da34ceb42470f02262ebf598963169dc
sourceBlobDigest: sha256:d80a27e44fffb9c61f16a99e7d25c294f39be1a5a761d51a87c76477f8589f54
sourceRevisionDigest: sha256:ecd1f862f240b1eb7ee0586b1b0cdfe6f27f4c7f20a3f4145b7d1caf7cf42d3c
sourceBlobDigest: sha256:ea673ea0d97789f88bfd38d9bdf61b7d7ff32fa279048bad39f2a596c189ab71
codeSamplesNamespace: platform-source-python-code-samples
codeSamplesRevisionDigest: sha256:cc21677e648343a1df5cdf584cfa6f2e48b3dcbd87c470a8ac58c4854c494b65
codeSamplesRevisionDigest: sha256:b9bbe90d08ee3ae11af84f4debcafad021cc61cc622c0e02b04c6580cafba28f
sync-for-commerce-library:
source: sync-for-commerce-source
sourceNamespace: sync-for-commerce-source
Expand Down
27 changes: 16 additions & 11 deletions platform/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: ede4f28e-23c0-442d-89ba-baa76ae2da6e
management:
docChecksum: 8dd29c2f971fac587d6257d3c3eca25b
docChecksum: 4b57c244e0d8859fcf9a19ba7fb84dc5
docVersion: 3.0.0
speakeasyVersion: 1.453.8
generationVersion: 2.474.15
releaseVersion: 4.0.1
configChecksum: 00c866dd6230e423e4aecbbefce8fcfb
speakeasyVersion: 1.460.6
generationVersion: 2.484.4
releaseVersion: 4.1.0
configChecksum: 7a61554aefecb864593dfd5d20501c6a
repoURL: https://github.com/codatio/client-sdk-python.git
repoSubDirectory: platform
installationURL: https://github.com/codatio/client-sdk-python.git#subdirectory=platform
Expand All @@ -15,20 +15,20 @@ features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.6.11
core: 5.7.4
defaultEnabledRetries: 0.2.0
deprecations: 3.0.0
deprecations: 3.0.1
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
examples: 3.0.0
globalSecurity: 3.0.2
globalSecurityCallbacks: 1.0.0
globalServerURLs: 3.0.0
globalServerURLs: 3.1.0
groups: 3.0.0
ignores: 3.0.0
inputOutputModels: 3.0.0
methodArguments: 1.0.2
nameOverrides: 3.0.0
nameOverrides: 3.0.1
nullables: 1.0.0
responseFormat: 1.0.1
retries: 3.0.2
Expand Down Expand Up @@ -192,7 +192,7 @@ generatedFiles:
- docs/sdks/companies/README.md
- docs/sdks/connectionmanagement/README.md
- docs/sdks/connections/README.md
- docs/sdks/corssettings/README.md
- docs/sdks/cors/README.md
- docs/sdks/customdatatype/README.md
- docs/sdks/integrations/README.md
- docs/sdks/pushdata/README.md
Expand All @@ -215,7 +215,7 @@ generatedFiles:
- src/codat_platform/companies.py
- src/codat_platform/connection_management.py
- src/codat_platform/connections.py
- src/codat_platform/cors_settings.py
- src/codat_platform/cors.py
- src/codat_platform/custom_data_type.py
- src/codat_platform/httpclient.py
- src/codat_platform/integrations.py
Expand Down Expand Up @@ -550,6 +550,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"200":
application/json: {"_links": {"current": {"href": "/companies/{id}/data/{dataType}?page=1&pageSize=10"}, "self": {"href": "/companies/{id}/data/{dataType}"}}, "pageNumber": 1, "pageSize": 10, "totalResults": 1}
Expand All @@ -561,6 +562,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"200":
application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Mike Smith", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/3fa85f64-5717-4562-b3fc-2c963f66afa6/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "My Test Company make testing software", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "lastSync": "2022-01-01T12:30:00.000Z", "name": "My Test Company", "redirect": "https://link.codat.io/company/3fa85f64-5717-4562-b3fc-2c963f66afa6", "referenceSubsidiaryCompanies": []}], "totalResults": 1}
Expand All @@ -571,6 +573,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"200":
application/json: {"_links": {"current": {"href": "/companies?page=1&pageSize=100"}, "self": {"href": "/companies"}}, "pageNumber": 1, "pageSize": 100, "results": [{"created": "2022-01-01T11:30:00Z", "createdByUserName": "Joe Bloggs", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "51baa045-4836-4317-a42e-3542e991e581", "integrationId": "1c312d69-e638-46d4-ad31-72e6c3ba8390", "integrationKey": "vjms", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/d1568dde-adf6-11ed-afa1-0242ac120002/connections/51baa045-4836-4317-a42e-3542e991e581/start", "platformName": "Pandle", "sourceId": "396c3158-5dd7-481b-a7c4-a795ca31792b", "sourceType": "Accounting", "status": "Linked"}], "description": "Technology services, including web and app design and development", "id": "d1568dde-adf6-11ed-afa1-0242ac120002", "lastSync": "2022-01-01T12:30:00.000Z", "name": "Technicalium", "redirect": "https://link.codat.io/company/d1568dde-adf6-11ed-afa1-0242ac120002", "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [], "id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "name": "Toft stores", "redirect": "https://link.codat.io/company/ab12c58d-a678-4ebf-a159-ae99e1807bd0", "referenceSubsidiaryCompanies": [{"id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "links": {"portal": "https://app.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/summary"}, "name": "Toft stores UK"}, {"id": "db94eddc-9212-4568-9b5c-3eab0e325913", "links": {"portal": "https://app.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/summary"}, "name": "Toft stores US"}]}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "d5ab61b7-1ad0-46fd-9f9f-b6761047941e", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/c8d3af58-7011-47ce-b3f2-89faf300ef6d/connections/d5ab61b7-1ad0-46fd-9f9f-b6761047941e/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "c8d3af58-7011-47ce-b3f2-89faf300ef6d", "name": "Toft stores UK", "redirect": "https://link.codat.io/company/c8d3af58-7011-47ce-b3f2-89faf300ef6d", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}, {"created": "2022-11-10T10:45:18Z", "createdByUserName": "Dan Tzabar", "dataConnections": [{"created": "2022-01-01T11:30:00Z", "id": "1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb", "integrationId": "cc750323-5a47-4f28-8d8e-30fbbf2ce137", "integrationKey": "akxx", "lastSync": "2022-01-01T12:30:00.000Z", "linkUrl": "https://link-api.codat.io/companies/db94eddc-9212-4568-9b5c-3eab0e325913/connections/1e5c8c9e-27fd-4ba9-9a2a-d02ba65bc2fb/start", "platformName": "Oracle NetSuite", "sourceId": "9815b998-024d-4415-a40b-89903b2cad6f", "sourceType": "Accounting", "status": "Linked"}], "id": "db94eddc-9212-4568-9b5c-3eab0e325913", "name": "Toft stores US", "redirect": "https://link.codat.io/company/db94eddc-9212-4568-9b5c-3eab0e325913", "referenceParentCompany": {"id": "ab12c58d-a678-4ebf-a159-ae99e1807bd0", "links": {"portal": "https://app.codat.io/companies/ab12c58d-a678-4ebf-a159-ae99e1807bd0/summary"}, "name": "Toft stores"}, "referenceSubsidiaryCompanies": []}], "totalResults": 3}
Expand All @@ -581,6 +584,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "detailedErrorCode": 0, "error": "Error parsing query - Malformed query.", "service": "ClientsApi", "statusCode": 400}
Expand All @@ -591,6 +595,7 @@ examples:
pageSize: 100
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee"
orderBy: "-modifiedDate"
tags: "region=uk && team=invoice-finance"
responses:
"400":
application/json: {"canBeRetried": "Unknown", "correlationId": "98457fb9956b7f9b4b2fd4f6e23bb5c8", "detailedErrorCode": 0, "error": "Error parsing query - Could not resolve property isCompleted on Dataset", "service": "PullApi", "statusCode": 400}
Expand Down
2 changes: 1 addition & 1 deletion platform/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
oAuth2PasswordEnabled: false
telemetryEnabled: true
python:
version: 4.0.1
version: 4.1.0
additionalDependencies:
dev: {}
main: {}
Expand Down
120 changes: 66 additions & 54 deletions platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,23 @@ from codat_platform import CodatPlatform
from codat_platform.models import shared

with CodatPlatform() as codat_platform:
codat_platform.company_data_connection_status_changed(request={
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
"client_name": "Bank of Dave",
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"data": {
"data_connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
"new_status": shared.DataConnectionStatus.LINKED,
"old_status": shared.DataConnectionStatus.PENDING_AUTH,
"platform_key": "gbol",
},
"data_connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
"message": "Data connection for SandBox status changed from PendingAuth to Linked",
"rule_id": "70af3071-65d9-4ec3-b3cb-5283e8d55dac",
"rule_type": "DataConnectionStatusChanged",
})

codat_platform.company_data_connection_status_changed(request=shared.ConnectionStatusChangedWebhook(
alert_id="a9367074-b5c3-42c4-9be4-be129f43577e",
client_id="bae71d36-ff47-420a-b4a6-f8c9ddf41140",
client_name="Bank of Dave",
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
data=shared.ConnectionStatusChangedWebhookData(
data_connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
new_status=shared.DataConnectionStatus.LINKED,
old_status=shared.DataConnectionStatus.PENDING_AUTH,
platform_key="gbol",
),
data_connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
message="Data connection for SandBox status changed from PendingAuth to Linked",
rule_id="70af3071-65d9-4ec3-b3cb-5283e8d55dac",
rule_type="DataConnectionStatusChanged",
))

# Use the SDK ...
```
Expand All @@ -129,22 +130,23 @@ from codat_platform.models import shared

async def main():
async with CodatPlatform() as codat_platform:
await codat_platform.company_data_connection_status_changed_async(request={
"alert_id": "a9367074-b5c3-42c4-9be4-be129f43577e",
"client_id": "bae71d36-ff47-420a-b4a6-f8c9ddf41140",
"client_name": "Bank of Dave",
"company_id": "8a210b68-6988-11ed-a1eb-0242ac120002",
"data": {
"data_connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
"new_status": shared.DataConnectionStatus.LINKED,
"old_status": shared.DataConnectionStatus.PENDING_AUTH,
"platform_key": "gbol",
},
"data_connection_id": "2e9d2c44-f675-40ba-8049-353bfcb5e171",
"message": "Data connection for SandBox status changed from PendingAuth to Linked",
"rule_id": "70af3071-65d9-4ec3-b3cb-5283e8d55dac",
"rule_type": "DataConnectionStatusChanged",
})

await codat_platform.company_data_connection_status_changed_async(request=shared.ConnectionStatusChangedWebhook(
alert_id="a9367074-b5c3-42c4-9be4-be129f43577e",
client_id="bae71d36-ff47-420a-b4a6-f8c9ddf41140",
client_name="Bank of Dave",
company_id="8a210b68-6988-11ed-a1eb-0242ac120002",
data=shared.ConnectionStatusChangedWebhookData(
data_connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
new_status=shared.DataConnectionStatus.LINKED,
old_status=shared.DataConnectionStatus.PENDING_AUTH,
platform_key="gbol",
),
data_connection_id="2e9d2c44-f675-40ba-8049-353bfcb5e171",
message="Data connection for SandBox status changed from PendingAuth to Linked",
rule_id="70af3071-65d9-4ec3-b3cb-5283e8d55dac",
rule_type="DataConnectionStatusChanged",
))

# Use the SDK ...

Expand All @@ -170,14 +172,9 @@ asyncio.run(main())
* [remove_product](docs/sdks/companies/README.md#remove_product) - Remove product
* [update](docs/sdks/companies/README.md#update) - Update company

### [connection_management](docs/sdks/connectionmanagement/README.md)

* [get_access_token](docs/sdks/connectionmanagement/README.md#get_access_token) - Get access token
### [~~connection_management~~](docs/sdks/connectionmanagement/README.md)

#### [connection_management.cors_settings](docs/sdks/corssettings/README.md)

* [get](docs/sdks/corssettings/README.md#get) - Get CORS settings
* [set](docs/sdks/corssettings/README.md#set) - Set CORS settings
* [~~get~~](docs/sdks/connectionmanagement/README.md#get) - Get access token (old) :warning: **Deprecated** Use [get_access_token](docs/sdks/companies/README.md#get_access_token) instead.

### [connections](docs/sdks/connections/README.md)

Expand All @@ -188,6 +185,11 @@ asyncio.run(main())
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
* [update_authorization](docs/sdks/connections/README.md#update_authorization) - Update authorization

### [cors](docs/sdks/cors/README.md)

* [get](docs/sdks/cors/README.md#get) - Get CORS settings
* [set](docs/sdks/cors/README.md#set) - Set CORS settings

### [custom_data_type](docs/sdks/customdatatype/README.md)

* [configure](docs/sdks/customdatatype/README.md#configure) - Configure custom data type
Expand Down Expand Up @@ -260,14 +262,16 @@ with CodatPlatform(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_platform:

res = codat_platform.settings.create_api_key(request={
"name": "azure-invoice-finance-processor",
},
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```

Expand All @@ -283,13 +287,15 @@ with CodatPlatform(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_platform:

res = codat_platform.settings.create_api_key(request={
"name": "azure-invoice-finance-processor",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Retries [retries] -->
Expand Down Expand Up @@ -328,13 +334,15 @@ with CodatPlatform(
) as codat_platform:
res = None
try:

res = codat_platform.settings.create_api_key(request={
"name": "azure-invoice-finance-processor",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

except errors.ErrorMessage as e:
# handle e.data: errors.ErrorMessageData
Expand All @@ -361,13 +369,15 @@ with CodatPlatform(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_platform:

res = codat_platform.settings.create_api_key(request={
"name": "azure-invoice-finance-processor",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Server Selection [server] -->
Expand Down Expand Up @@ -474,13 +484,15 @@ with CodatPlatform(
auth_header="Basic BASE_64_ENCODED(API_KEY)",
),
) as codat_platform:

res = codat_platform.settings.create_api_key(request={
"name": "azure-invoice-finance-processor",
})

if res is not None:
# handle response
pass
assert res is not None

# Handle response
print(res)

```
<!-- End Authentication [security] -->
Expand Down
12 changes: 11 additions & 1 deletion platform/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,14 @@ Based on:
### Generated
- [python v4.0.1] platform
### Releases
- [PyPI v4.0.1] https://pypi.org/project/codat-platform/4.0.1 - platform
- [PyPI v4.0.1] https://pypi.org/project/codat-platform/4.0.1 - platform

## 2025-01-03 09:16:43
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.460.6 (2.484.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v4.1.0] platform
### Releases
- [PyPI v4.1.0] https://pypi.org/project/codat-platform/4.1.0 - platform
Loading

0 comments on commit 4b84005

Please sign in to comment.