Skip to content

Commit 9f0796c

Browse files
committed
ci: regenerated with OpenAPI Doc 2.1.0, Speakeay CLI 1.59.0
1 parent 79c640f commit 9f0796c

File tree

13 files changed

+76
-15
lines changed

13 files changed

+76
-15
lines changed

common/RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,4 +582,12 @@ Based on:
582582
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
583583
- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy
584584
### Releases
585-
- [PyPI v0.33.0] https://pypi.org/project/codat-common/0.33.0 - common
585+
- [PyPI v0.33.0] https://pypi.org/project/codat-common/0.33.0 - common
586+
587+
## 2023-07-14 17:36:10
588+
### Changes
589+
Based on:
590+
- OpenAPI Doc 2.1.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Common.yaml
591+
- Speakeasy CLI 1.59.0 (2.65.0) https://github.com/speakeasy-api/speakeasy
592+
### Releases
593+
- [PyPI v0.33.1] https://pypi.org/project/codat-common/0.33.1 - common
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CreateRule
2+
3+
Create an event notification to a URL or list of email addresses based on the given type or condition.
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description | Example |
9+
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
10+
| `company_id` | *Optional[str]* | :heavy_minus_sign: | N/A | 39b73b17-cc2e-429e-915d-71654e9dcd1e |
11+
| `notifiers` | [CreateRuleNotifiers](../../models/shared/createrulenotifiers.md) | :heavy_check_mark: | N/A | |
12+
| `type` | *str* | :heavy_check_mark: | N/A | |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CreateRuleNotifiers
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- |
8+
| `emails` | list[*str*] | :heavy_minus_sign: | N/A | |
9+
| `webhook` | *Optional[str]* | :heavy_minus_sign: | N/A | https://webhook.client.com |

common/docs/models/shared/rule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Rule
22

3-
Configuration to provide an event notification to a URL or list of email addresses based on the given type or condition.
3+
Create an event notification to a URL or list of email addresses based on the given type or condition.
44

55

66
## Fields
77

88
| Field | Type | Required | Description | Example |
99
| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- |
1010
| `company_id` | *Optional[str]* | :heavy_minus_sign: | N/A | 39b73b17-cc2e-429e-915d-71654e9dcd1e |
11-
| `id` | *str* | :heavy_check_mark: | N/A | ff89c50e-a719-4ef5-a182-9917e53927b6 |
11+
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | ff89c50e-a719-4ef5-a182-9917e53927b6 |
1212
| `notifiers` | [RuleNotifiers](../../models/shared/rulenotifiers.md) | :heavy_check_mark: | N/A | |
1313
| `type` | *str* | :heavy_check_mark: | N/A | |

common/docs/sdks/webhooks/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ s = codatcommon.CodatCommon(
2626
),
2727
)
2828

29-
req = shared.Rule(
29+
req = shared.CreateRule(
3030
company_id='39b73b17-cc2e-429e-915d-71654e9dcd1e',
31-
id='ff89c50e-a719-4ef5-a182-9917e53927b6',
32-
notifiers=shared.RuleNotifiers(
31+
notifiers=shared.CreateRuleNotifiers(
3332
emails=[
3433
'info@client.com',
3534
'info@client.com',
@@ -50,7 +49,7 @@ if res.rule is not None:
5049

5150
| Parameter | Type | Required | Description |
5251
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
53-
| `request` | [shared.Rule](../../models/shared/rule.md) | :heavy_check_mark: | The request object to use for the request. |
52+
| `request` | [shared.CreateRule](../../models/shared/createrule.md) | :heavy_check_mark: | The request object to use for the request. |
5453
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
5554

5655

common/files.gen

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ src/codatcommon/models/shared/syncsettings.py
9393
src/codatcommon/models/shared/syncsetting.py
9494
src/codatcommon/models/shared/supplementaldataconfiguration.py
9595
src/codatcommon/models/shared/rule.py
96+
src/codatcommon/models/shared/createrule.py
9697
src/codatcommon/models/shared/rules.py
9798
src/codatcommon/models/shared/security.py
9899
src/codatcommon/models/shared/companydataconnectionstatuschangedwebhook.py
@@ -234,6 +235,8 @@ docs/models/shared/supplementaldataconfigurationsupplementaldatasourceconfigurat
234235
docs/models/shared/supplementaldataconfiguration.md
235236
docs/models/shared/rulenotifiers.md
236237
docs/models/shared/rule.md
238+
docs/models/shared/createrulenotifiers.md
239+
docs/models/shared/createrule.md
237240
docs/models/shared/rules.md
238241
docs/models/shared/security.md
239242
docs/models/shared/companydataconnectionstatuschangedwebhookdata.md

common/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: 5a5f31fc5122be8cbb5952c4477cf930
3+
docChecksum: 9d7c6aa08e1e5ceaa9cd30a987411bb2
44
docVersion: 2.1.0
55
speakeasyVersion: 1.59.0
66
generationVersion: 2.65.0
@@ -9,7 +9,7 @@ generation:
99
singleTagPerOp: false
1010
telemetryEnabled: true
1111
python:
12-
version: 0.33.0
12+
version: 0.33.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.33.0",
13+
version="0.33.1",
1414
author="Speakeasy",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

common/src/codatcommon/models/shared/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .connection import *
1212
from .connections import *
1313
from .connectionstatus import *
14+
from .createrule import *
1415
from .dataconnectionerror import *
1516
from .dataconnectionhistory import *
1617
from .dataconnectionstatus import *
@@ -57,4 +58,4 @@
5758
from .validation import *
5859
from .validationitem import *
5960

60-
__all__ = ["Branding","BrandingButton","BrandingImage","BrandingLogo","Companies","Company","CompanyDataConnectionStatusChangedWebhook","CompanyDataConnectionStatusChangedWebhookData","CompanyRequestBody","Connection","ConnectionStatus","Connections","DataConnectionError","DataConnectionHistory","DataConnectionStatus","DataStatus","DataSyncCompletedWebhook","DataSyncCompletedWebhookData","DataType","DataTypeFeature","DatasetDataChangedWebhook","DatasetDataChangedWebhookData","DatasetStatusChangedErrorWebhook","DatasetStatusChangedErrorWebhookData","ErrorMessage","FeatureState","FeatureType","HRef","ImageReference","Integration","Integrations","Links","NewCompanySynchronizedWebhook","Profile","PullOperation","PullOperationStatus","PushChangeType","PushFieldValidation","PushHistoryResponse","PushOperation","PushOperationChange","PushOperationRef","PushOperationStatus","PushOperationStatusChangedWebhook","PushOperationStatusChangedWebhookData","PushOperationSummary","PushOperationTimedOutWebhook","PushOperationTimedOutWebhookData","PushOption","PushOptionChoice","PushOptionProperty","PushOptionType","PushValidationInfo","Rule","RuleNotifiers","Rules","Security","SourceType","SupplementalDataConfiguration","SupplementalDataConfigurationSupplementalDataSourceConfiguration","SupportedFeature","SyncSetting","SyncSettingDataType","SyncSettings","Validation","ValidationItem"]
61+
__all__ = ["Branding","BrandingButton","BrandingImage","BrandingLogo","Companies","Company","CompanyDataConnectionStatusChangedWebhook","CompanyDataConnectionStatusChangedWebhookData","CompanyRequestBody","Connection","ConnectionStatus","Connections","CreateRule","CreateRuleNotifiers","DataConnectionError","DataConnectionHistory","DataConnectionStatus","DataStatus","DataSyncCompletedWebhook","DataSyncCompletedWebhookData","DataType","DataTypeFeature","DatasetDataChangedWebhook","DatasetDataChangedWebhookData","DatasetStatusChangedErrorWebhook","DatasetStatusChangedErrorWebhookData","ErrorMessage","FeatureState","FeatureType","HRef","ImageReference","Integration","Integrations","Links","NewCompanySynchronizedWebhook","Profile","PullOperation","PullOperationStatus","PushChangeType","PushFieldValidation","PushHistoryResponse","PushOperation","PushOperationChange","PushOperationRef","PushOperationStatus","PushOperationStatusChangedWebhook","PushOperationStatusChangedWebhookData","PushOperationSummary","PushOperationTimedOutWebhook","PushOperationTimedOutWebhookData","PushOption","PushOptionChoice","PushOptionProperty","PushOptionType","PushValidationInfo","Rule","RuleNotifiers","Rules","Security","SourceType","SupplementalDataConfiguration","SupplementalDataConfigurationSupplementalDataSourceConfiguration","SupportedFeature","SyncSetting","SyncSettingDataType","SyncSettings","Validation","ValidationItem"]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
2+
3+
from __future__ import annotations
4+
import dataclasses
5+
from codatcommon import utils
6+
from dataclasses_json import Undefined, dataclass_json
7+
from typing import Optional
8+
9+
10+
@dataclass_json(undefined=Undefined.EXCLUDE)
11+
12+
@dataclasses.dataclass
13+
class CreateRuleNotifiers:
14+
emails: Optional[list[str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('emails'), 'exclude': lambda f: f is None }})
15+
webhook: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webhook'), 'exclude': lambda f: f is None }})
16+
17+
18+
19+
20+
@dataclass_json(undefined=Undefined.EXCLUDE)
21+
22+
@dataclasses.dataclass
23+
class CreateRule:
24+
r"""Create an event notification to a URL or list of email addresses based on the given type or condition."""
25+
notifiers: CreateRuleNotifiers = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('notifiers') }})
26+
type: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }})
27+
company_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('companyId'), 'exclude': lambda f: f is None }})
28+
29+

0 commit comments

Comments
 (0)