Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
bd1f835
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.357.3
speakeasybot Aug 8, 2024
cfb438f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.358.0
speakeasybot Aug 9, 2024
9997758
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.368.0
speakeasybot Aug 15, 2024
a558dec
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.376.0
speakeasybot Aug 20, 2024
23e77fe
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.383.2
speakeasybot Aug 30, 2024
82afb99
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.390.7
speakeasybot Sep 6, 2024
cc505f8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.392.1
speakeasybot Sep 7, 2024
10cf9ed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.394.0
speakeasybot Sep 10, 2024
e05c8b8
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.6
speakeasybot Sep 13, 2024
827de95
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.396.9
speakeasybot Sep 14, 2024
d81543f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.401.2
speakeasybot Sep 21, 2024
a4ba6d4
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.405.6
speakeasybot Oct 1, 2024
1913ddd
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.406.0
speakeasybot Oct 3, 2024
fefcde1
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.411.1
speakeasybot Oct 8, 2024
eee2ba9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.413.0
speakeasybot Oct 9, 2024
75abf11
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.421.1
speakeasybot Oct 24, 2024
31c7ae3
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.423.5
speakeasybot Oct 31, 2024
043c047
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.426.0
speakeasybot Nov 5, 2024
eed2d8e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.436.0
speakeasybot Nov 9, 2024
091edf9
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.443.0
speakeasybot Nov 22, 2024
849bb2f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.446.0
speakeasybot Nov 26, 2024
9f09e12
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.0
speakeasybot Nov 27, 2024
6a492c2
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.448.2
speakeasybot Nov 28, 2024
ae91509
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.451.5
speakeasybot Dec 5, 2024
7a89d96
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.1
speakeasybot Dec 7, 2024
76cac58
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.453.8
speakeasybot Dec 10, 2024
d4f0886
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.3
speakeasybot Dec 14, 2024
9f92070
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.455.7
speakeasybot Dec 17, 2024
d52780f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.459.2
speakeasybot Dec 21, 2024
ee2b859
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.460.2
speakeasybot Dec 24, 2024
493b426
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.462.2
speakeasybot Jan 4, 2025
b157659
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.465.1
speakeasybot Jan 9, 2025
754dcfb
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.467.0
speakeasybot Jan 10, 2025
a30160e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.6
speakeasybot Jan 15, 2025
54bdf33
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.468.8
speakeasybot Jan 16, 2025
08eea7e
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.2
speakeasybot Jan 20, 2025
e80be87
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.469.11
speakeasybot Jan 21, 2025
07b580f
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.474.0
speakeasybot Jan 24, 2025
4b76c49
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.476.0
speakeasybot Jan 25, 2025
e8800ac
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.477.2
speakeasybot Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.436.0
  • Loading branch information
speakeasybot committed Nov 9, 2024
commit eed2d8e1bb465f8db807798f8c4aff55b88fba51
10 changes: 5 additions & 5 deletions template_variables/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: 5c509d65-b892-4e49-8160-6842e685ee9c
management:
docChecksum: 085375dfed9f0d113806b92ef0f5bc15
docVersion: 1.0.0
speakeasyVersion: 1.426.0
generationVersion: 2.446.5
releaseVersion: 1.10.1
configChecksum: fae5d52ab85ce573111436f87c695048
speakeasyVersion: 1.436.0
generationVersion: 2.455.2
releaseVersion: 1.10.2
configChecksum: c562173b6e306337f66e6ee6165bcfef
repoURL: https://github.com/epilot-dev/sdk-python.git
repoSubDirectory: template_variables
installationURL: https://github.com/epilot-dev/sdk-python.git#subdirectory=template_variables
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.4
core: 5.6.3
core: 5.6.4
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
Expand Down
166 changes: 7 additions & 159 deletions template_variables/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,9 @@ By default, an API error will raise a models.SDKError exception, which has the f

When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_custom_variable_async` method may raise the following exceptions:

| Error Type | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| models.SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| --------------- | ----------- | ------------ |
| models.SDKError | 4XX, 5XX | \*/\* |

### Example

Expand Down Expand Up @@ -803,158 +803,6 @@ except models.SDKError as e:
<!-- Start Server Selection [server] -->
## Server Selection

### Select Server by Index

You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://template-variables-api.sls.epilot.io` | None |

#### Example

```python
import epilot_template_variables
from epilot_template_variables import Epilot

s = Epilot(
server_idx=0,
security=epilot_template_variables.Security(
epilot_auth="<YOUR_BEARER_TOKEN_HERE>",
),
)

res = s.custom_variables.create_custom_variable(request={
"config": {},
"created_at": "2022-04-19T12:41:43.662Z",
"created_by": "100042",
"helper_logic": "return param1 * param2;",
"helper_params": [
"param1",
"param2",
],
"id": "rbse777b-3cf8-4bff-bb0c-253fd1123250",
"key": "my_custom_table",
"name": "My Custom table",
"template": "<table style=\"table-layout: fixed;width: 100%;max-width: 1000px;border-collapse: collapse;\">\n" +
" <thead>\n" +
" <tr style=\"height: 48px;border-bottom: 1px solid #D5E1ED;\">\n" +
" {{#each table_config.header.columns as |column|}}\n" +
" {{#if column.enable}}\n" +
" <th style=\"{{makeStyle @root.table_config.header.style}};{{makeStyle column.style}};\">{{column._label}}</th>\n" +
" {{/if}}\n" +
" {{/each}}\n" +
" </tr>\n" +
" </thead>\n" +
" <tbody style=\"vertical-align: baseline !important;font-weight: 400;font-size: 12px;position: relative;\">\n" +
" <!-- Start rendering products -->\n" +
" {{#each order.products as |product|}}\n" +
" {{#if @last}}\n" +
" <tr style=\"height: 48px;;font-size:14px;border-bottom: 1px solid #D5E1ED;\">\n" +
" {{else}}\n" +
" <tr style=\"height: 48px;;font-size:14px;\">\n" +
" {{/if}}\n" +
" {{#each @root.table_config.header.columns as |column|}}\n" +
" {{#if column.enable}}\n" +
" {{#if (eq column.id 'item')}}\n" +
" <!-- Item -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.product_name.style}}\">\n" +
" {{#if @root.table_config.body.product_name.enable}}\n" +
" {{product.name}}\n" +
" {{/if}}\n" +
" {{#if @root.table_config.body.price_description.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.price_description.style}}\">{{product.price.description}}</span>\n" +
" {{/if}}\n" +
" {{#if @root.table_config.body.product_description.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.product_description.style}}\">{{product.description}}</span>\n" +
" {{/if}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'quantity')}}\n" +
" <!-- Quantity -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.quantity.style}}\">{{product.price.quantity}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'tax')}}\n" +
" <!-- Tax -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.tax.style}}\">\n" +
" {{product.price.tax_rate}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'unit_amount')}}\n" +
" <!-- Unit amount -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.unit_amount.style}}\">\n" +
" {{product.price.unit_amount_net}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'net_total')}}\n" +
" <!-- Amount Subtotal -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.net_total.style}}\">\n" +
" {{product.price.amount_subtotal}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'amount_tax')}}\n" +
" <!-- Tax amount-->\n" +
" <td style=\"{{makeStyle @root.table_config.body.amount_tax.style}}\">\n" +
" {{product.price.amount_tax}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{#if (eq column.id 'gross_total')}}\n" +
" <!-- Gross total -->\n" +
" <td style=\"{{makeStyle @root.table_config.body.gross_total.style}}\">\n" +
" {{product.price.amount_total}}\n" +
" {{#if @root.table_config.body.payment_type.enable}}\n" +
" {{#if (eq product.price.type 'recurring')}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.body.payment_type.style}}\">{{product.price.billing_period}}</span>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" </td>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" {{/each}}\n" +
" </tr>\n" +
" {{/each}}\n" +
" <!-- Finish rendering products -->\n" +
" {{#if table_config.footer.gross_total.enable}}\n" +
" {{#each order.total_details.recurrences as |item|}}\n" +
" <tr style=\"height: 48px;font-size: 14px;\">\n" +
" <td style=\"padding-top: 16px; padding-bottom: 8px; border: none !important; vertical-align: top;\" colspan=\"{{calculate_colspan @root.table_config}}\"></td>\n" +
" {{#if @root.table_config.footer.payment_type.enable}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.payment_type.style}}\" colspan=\"2\">{{item.billing_period}}</td>\n" +
" {{/if}}\n" +
" {{#if (isColumnEnabled @root.table_config 'net_total')}}\n" +
" {{#if @root.table_config.footer.net_total.enable}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.net_total.style}}\">{{item.amount_subtotal}}</td>\n" +
" {{/if}}\n" +
" {{/if}}\n" +
" <td style=\"{{makeStyle @root.table_config.footer.gross_total.style}}\">{{item.amount_total}}\n" +
" {{#if @root.table_config.footer.amount_tax.enable}}\n" +
" <br>\n" +
" <span style=\"{{makeStyle @root.table_config.footer.amount_tax.style}}\">{{item.full_amount_tax}}</span>\n" +
" {{/if}}\n" +
" </td>\n" +
" </tr>\n" +
" {{/each}}\n" +
" {{/if}}\n" +
" <tr style=\"height:16px !important;\"></tr>\n" +
" </tbody>\n" +
"</table>\n" +
"",
"type": epilot_template_variables.Type.CUSTOM,
"updated_at": "2022-04-20T12:41:43.662Z",
"updated_by": "100042",
})

if res is not None:
# handle response
pass

```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
Expand Down Expand Up @@ -1188,10 +1036,10 @@ s = Epilot(async_client=CustomClient(httpx.AsyncClient()))

This SDK supports the following security schemes globally:

| Name | Type | Scheme |
| ------------- | ------------- | ------------- |
| `epilot_auth` | http | HTTP Bearer |
| `epilot_org` | apiKey | API key |
| Name | Type | Scheme |
| ------------- | ------ | ----------- |
| `epilot_auth` | http | HTTP Bearer |
| `epilot_org` | apiKey | API key |

You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
```python
Expand Down
10 changes: 9 additions & 1 deletion template_variables/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,12 @@ Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml
- Speakeasy CLI 1.426.0 (2.446.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.10.1] template_variables
- [python v1.10.1] template_variables

## 2024-11-09 00:27:19
### Changes
Based on:
- OpenAPI Doc 1.0.0 https://docs.api.epilot.io/template-variables.yaml
- Speakeasy CLI 1.436.0 (2.455.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.10.2] template_variables
4 changes: 3 additions & 1 deletion template_variables/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ generation:
requestResponseComponentNamesFeb2024: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
sdkFlattening: true
telemetryEnabled: false
python:
version: 1.10.1
version: 1.10.2
additionalDependencies:
dev: {}
main: {}
author: epilot
authors:
- Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
description: Python Client SDK for Epilot
enumFormat: enum
fixFlags:
Expand Down
2 changes: 1 addition & 1 deletion template_variables/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "epilot-template-variables"
version = "1.10.1"
version = "1.10.2"
description = "Python Client SDK for Epilot"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "epilot-template-variables"
__version__: str = "1.10.1"
__version__: str = "1.10.2"

try:
if __package__ is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class SDKConfiguration:
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "1.0.0"
sdk_version: str = "1.10.1"
gen_version: str = "2.446.5"
sdk_version: str = "1.10.2"
gen_version: str = "2.455.2"
user_agent: str = (
"speakeasy-sdk/python 1.10.1 2.446.5 1.0.0 epilot-template-variables"
"speakeasy-sdk/python 1.10.2 2.455.2 1.0.0 epilot-template-variables"
)
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None
Expand Down