-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from codatio/speakeasy-sdk-regen-1689207702
chore: speakeasy sdk regeneration - Generate Common SDK
- Loading branch information
Showing
37 changed files
with
215 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<!-- Start SDK Example Usage --> | ||
|
||
|
||
```python | ||
import codatcommon | ||
from codatcommon.models import shared | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# CreateRule | ||
|
||
Create an event notification to a URL or list of email addresses based on the given type or condition. | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | Example | | ||
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | ||
| `company_id` | *Optional[str]* | :heavy_minus_sign: | N/A | 39b73b17-cc2e-429e-915d-71654e9dcd1e | | ||
| `notifiers` | [CreateRuleNotifiers](../../models/shared/createrulenotifiers.md) | :heavy_check_mark: | N/A | | | ||
| `type` | *str* | :heavy_check_mark: | N/A | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# CreateRuleNotifiers | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | Example | | ||
| -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | | ||
| `emails` | list[*str*] | :heavy_minus_sign: | N/A | | | ||
| `webhook` | *Optional[str]* | :heavy_minus_sign: | N/A | https://webhook.client.com | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Rule | ||
|
||
Configuration to provide an event notification to a URL or list of email addresses based on the given type or condition. | ||
Create an event notification to a URL or list of email addresses based on the given type or condition. | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | Example | | ||
| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | | ||
| `company_id` | *Optional[str]* | :heavy_minus_sign: | N/A | 39b73b17-cc2e-429e-915d-71654e9dcd1e | | ||
| `id` | *str* | :heavy_check_mark: | N/A | ff89c50e-a719-4ef5-a182-9917e53927b6 | | ||
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | ff89c50e-a719-4ef5-a182-9917e53927b6 | | ||
| `notifiers` | [RuleNotifiers](../../models/shared/rulenotifiers.md) | :heavy_check_mark: | N/A | | | ||
| `type` | *str* | :heavy_check_mark: | N/A | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,9 @@ s = codatcommon.CodatCommon( | |
), | ||
) | ||
|
||
req = shared.Rule( | ||
req = shared.CreateRule( | ||
company_id='39b73b17-cc2e-429e-915d-71654e9dcd1e', | ||
id='ff89c50e-a719-4ef5-a182-9917e53927b6', | ||
notifiers=shared.RuleNotifiers( | ||
notifiers=shared.CreateRuleNotifiers( | ||
emails=[ | ||
'[email protected]', | ||
'[email protected]', | ||
|
@@ -50,7 +49,7 @@ if res.rule is not None: | |
|
||
| Parameter | Type | Required | Description | | ||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | ||
| `request` | [shared.Rule](../../models/shared/rule.md) | :heavy_check_mark: | The request object to use for the request. | | ||
| `request` | [shared.CreateRule](../../models/shared/createrule.md) | :heavy_check_mark: | The request object to use for the request. | | ||
| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | | ||
|
||
|
||
|
@@ -67,7 +66,7 @@ Get a single webhook | |
|
||
```python | ||
import codatcommon | ||
from codatcommon.models import operations | ||
from codatcommon.models import operations, shared | ||
|
||
s = codatcommon.CodatCommon( | ||
security=shared.Security( | ||
|
@@ -106,7 +105,7 @@ List webhooks that you are subscribed to. | |
|
||
```python | ||
import codatcommon | ||
from codatcommon.models import operations | ||
from codatcommon.models import operations, shared | ||
|
||
s = codatcommon.CodatCommon( | ||
security=shared.Security( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.