Skip to content

Commit

Permalink
Merge pull request #70 from dubinc/speakeasy-sdk-regen-1732753655
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.15.1
  • Loading branch information
devkiran authored Nov 28, 2024
2 parents 1a7c0fc + 9c7e3dc commit 51deb61
Show file tree
Hide file tree
Showing 16 changed files with 488 additions and 30 deletions.
38 changes: 33 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: ab657d60-207e-43a4-8cc8-692a672950ed
management:
docChecksum: eae1ba18bcf69b50e7b53142f6625750
docChecksum: 756dac9e9f7f9954fef9635bbe0c7ca8
docVersion: 0.0.1
speakeasyVersion: 1.448.0
generationVersion: 2.466.0
releaseVersion: 0.15.0
configChecksum: f1c82923afae8faa4de3118ab4362ca6
speakeasyVersion: 1.448.2
generationVersion: 2.467.4
releaseVersion: 0.15.1
configChecksum: 235eb14c4c7d1833713ddca086e841c9
repoURL: https://github.com/dubinc/dub-python.git
installationURL: https://github.com/dubinc/dub-python.git
published: true
Expand Down Expand Up @@ -160,6 +160,8 @@ generatedFiles:
- docs/models/operations/createcustomerrequestbody.md
- docs/models/operations/createcustomerresponsebody.md
- docs/models/operations/createdomainrequestbody.md
- docs/models/operations/createembedtokenrequestbody.md
- docs/models/operations/createembedtokenresponsebody.md
- docs/models/operations/createlinkrequestbody.md
- docs/models/operations/createtagrequestbody.md
- docs/models/operations/customer.md
Expand Down Expand Up @@ -244,6 +246,7 @@ generatedFiles:
- docs/sdks/customers/README.md
- docs/sdks/domains/README.md
- docs/sdks/dub/README.md
- docs/sdks/embedtokens/README.md
- docs/sdks/events/README.md
- docs/sdks/links/README.md
- docs/sdks/metatags/README.md
Expand All @@ -266,6 +269,7 @@ generatedFiles:
- src/dub/basesdk.py
- src/dub/customers.py
- src/dub/domains.py
- src/dub/embed_tokens.py
- src/dub/events.py
- src/dub/httpclient.py
- src/dub/links.py
Expand Down Expand Up @@ -317,6 +321,7 @@ generatedFiles:
- src/dub/models/operations/bulkupdatelinks.py
- src/dub/models/operations/createcustomer.py
- src/dub/models/operations/createdomain.py
- src/dub/models/operations/createembedtoken.py
- src/dub/models/operations/createlink.py
- src/dub/models/operations/createtag.py
- src/dub/models/operations/deletecustomer.py
Expand Down Expand Up @@ -1176,4 +1181,27 @@ examples:
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
"500":
application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}}
createEmbedToken:
speakeasy-default-create-embed-token:
responses:
"201":
application/json: {"publicToken": "<value>", "expires": "<value>"}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
"403":
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
"404":
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
"409":
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
"410":
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
"422":
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
"429":
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
"500":
application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}}
generatedTests: {}
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 0.15.0
version: 0.15.1
additionalDependencies:
dev: {}
main: {}
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.448.0
speakeasyVersion: 1.448.2
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:c624ba6ff9caa80f032862e84141c04bb4542b8c475855366db4201f79a10247
sourceBlobDigest: sha256:eda67aae092809bba503a79019df4d8b98e0b246f4a4f3411a02d50b4c70fdb7
sourceRevisionDigest: sha256:1402425c8983498d2c9f54cad7bae8883e83968a5dc0795863ca06f4b1c1e2f1
sourceBlobDigest: sha256:5f528cabe38a31820b800b14443643d5abac1108834c10f71708337c523295ec
tags:
- latest
- speakeasy-sdk-regen-1732667247
- speakeasy-sdk-regen-1732753655
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:c624ba6ff9caa80f032862e84141c04bb4542b8c475855366db4201f79a10247
sourceBlobDigest: sha256:eda67aae092809bba503a79019df4d8b98e0b246f4a4f3411a02d50b4c70fdb7
sourceRevisionDigest: sha256:1402425c8983498d2c9f54cad7bae8883e83968a5dc0795863ca06f4b1c1e2f1
sourceBlobDigest: sha256:5f528cabe38a31820b800b14443643d5abac1108834c10f71708337c523295ec
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:088356896b51efa5ae44bbb9316e7db26ac5084ad04ce5347afc1cdb486c08f7
codeSamplesRevisionDigest: sha256:f7a280144358267c3cd60b89b60e7c8f316955c3632fe997e2d5e0257588e906
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@ Dub.co API: Dub is link management infrastructure for companies to create market

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Retries](#retries)
* [Pagination](#pagination)
* [Debugging](#debugging)
* [IDE Support](#ide-support)
* [Development](#development)
* [Contributions](#contributions)

* [SDK Installation](#sdk-installation)
* [IDE Support](#ide-support)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Pagination](#pagination)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Debugging](#debugging)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand Down Expand Up @@ -183,6 +186,10 @@ asyncio.run(main())
* [delete](docs/sdks/domains/README.md#delete) - Delete a domain


### [embed_tokens](docs/sdks/embedtokens/README.md)

* [create](docs/sdks/embedtokens/README.md#create) - Create a new embed token

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

* [list](docs/sdks/events/README.md#list) - Retrieve a list of events
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,4 +616,14 @@ Based on:
### Generated
- [python v0.15.0] .
### Releases
- [PyPI v0.15.0] https://pypi.org/project/dub/0.15.0 - .
- [PyPI v0.15.0] https://pypi.org/project/dub/0.15.0 - .

## 2024-11-28 00:27:32
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.448.2 (2.467.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.15.1] .
### Releases
- [PyPI v0.15.1] https://pypi.org/project/dub/0.15.1 - .
16 changes: 16 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,22 @@ actions:
) as s:
res = s.tags.update(id="<id>")
if res is not None:
# handle response
pass
- target: $["paths"]["/tokens/embed"]["post"]
update:
x-codeSamples:
- lang: python
label: createEmbedToken
source: |-
from dub import Dub
with Dub(
token="DUB_API_KEY",
) as s:
res = s.embed_tokens.create()
if res is not None:
# handle response
pass
Expand Down
8 changes: 8 additions & 0 deletions docs/models/operations/createembedtokenrequestbody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CreateEmbedTokenRequestBody


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `link_id` | *str* | :heavy_check_mark: | N/A |
11 changes: 11 additions & 0 deletions docs/models/operations/createembedtokenresponsebody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CreateEmbedTokenResponseBody

The created public embed token.


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `public_token` | *str* | :heavy_check_mark: | N/A |
| `expires` | *str* | :heavy_check_mark: | N/A |
54 changes: 54 additions & 0 deletions docs/sdks/embedtokens/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# EmbedTokens
(*embed_tokens*)

## Overview

### Available Operations

* [create](#create) - Create a new embed token

## create

Create a new embed token for the referral link.

### Example Usage

```python
from dub import Dub

with Dub(
token="DUB_API_KEY",
) as s:
res = s.embed_tokens.create()

if res is not None:
# handle response
pass

```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| `request` | [operations.CreateEmbedTokenRequestBody](../../models/operations/createembedtokenrequestbody.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. |

### Response

**[operations.CreateEmbedTokenResponseBody](../../models/operations/createembedtokenresponsebody.md)**

### Errors

| Error Type | Status Code | Content Type |
| -------------------------- | -------------------------- | -------------------------- |
| errors.BadRequest | 400 | application/json |
| errors.Unauthorized | 401 | application/json |
| errors.Forbidden | 403 | application/json |
| errors.NotFound | 404 | application/json |
| errors.Conflict | 409 | application/json |
| errors.InviteExpired | 410 | application/json |
| errors.UnprocessableEntity | 422 | application/json |
| errors.RateLimitExceeded | 429 | application/json |
| errors.InternalServerError | 500 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dub"
version = "0.15.0"
version = "0.15.1"
description = "Python Client SDK Generated by Speakeasy"
authors = ["Speakeasy",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/dub/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "dub"
__version__: str = "0.15.0"
__version__: str = "0.15.1"

try:
if __package__ is not None:
Expand Down
Loading

0 comments on commit 51deb61

Please sign in to comment.