Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
88 changes: 46 additions & 42 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 0.35.5
version: 0.35.6
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.728.0
speakeasyVersion: 1.736.1
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
sourceRevisionDigest: sha256:b4a665da9706062ec4b3b5357c43e1362af8cc7f974fc6e8819176df9d6add00
sourceBlobDigest: sha256:538e7fe319f31d0539240aa4492a76bbf2252389b9ee5ad2ea512bfc2e1ec788
tags:
- latest
- speakeasy-sdk-regen-1771461763
- speakeasy-sdk-regen-1772066332
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:f8da375124ffea8156bb04da0496d60d8a14e75146e2534fa31005772fecf75e
sourceBlobDigest: sha256:4182b72c2891ce5345ccdc87a9bb4ea8710bc8fea6b3683baa70fdfcc9565256
sourceRevisionDigest: sha256:b4a665da9706062ec4b3b5357c43e1362af8cc7f974fc6e8819176df9d6add00
sourceBlobDigest: sha256:538e7fe319f31d0539240aa4492a76bbf2252389b9ee5ad2ea512bfc2e1ec788
codeSamplesNamespace: code-samples-python-my-first-target
codeSamplesRevisionDigest: sha256:d753ec485bdf84e7b3b9ab9775cff8ba82dcea9c13dbb630b773011e8a60ff26
codeSamplesRevisionDigest: sha256:a665820bc9c82e9686582e37d4d23cd47ca94faada46b74f8081b0a3b1c18107
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1516,4 +1516,14 @@ Based on:
### Generated
- [python v0.35.5] .
### Releases
- [PyPI v0.35.5] https://pypi.org/project/dub/0.35.5 - .
- [PyPI v0.35.5] https://pypi.org/project/dub/0.35.5 - .

## 2026-03-01 00:46:03
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.736.1 (2.845.15) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.35.6] .
### Releases
- [PyPI v0.35.6] https://pypi.org/project/dub/0.35.6 - .
2 changes: 2 additions & 0 deletions docs/models/operations/approvebountysubmissionresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The approved bounty submission.
| `files` | List[[operations.ApproveBountySubmissionFiles](../../models/operations/approvebountysubmissionfiles.md)] | :heavy_check_mark: | The files uploaded for the submission |
| `status` | [operations.ApproveBountySubmissionStatus](../../models/operations/approvebountysubmissionstatus.md) | :heavy_check_mark: | The status of the submission |
| `performance_count` | *Nullable[float]* | :heavy_check_mark: | The performance count of the submission |
| `social_metric_count` | *Nullable[int]* | :heavy_check_mark: | The social metric count (views or likes) for the social content |
| `social_metrics_last_synced_at` | *OptionalNullable[str]* | :heavy_minus_sign: | The date and time the submission's social metrics were last synced |
| `created_at` | *str* | :heavy_check_mark: | The date and time the submission was created |
| `completed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time the submission was completed |
| `reviewed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time the submission was reviewed |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ The field to sort the submissions by.

## Values

| Name | Value |
| ------------------- | ------------------- |
| `COMPLETED_AT` | completedAt |
| `PERFORMANCE_COUNT` | performanceCount |
| Name | Value |
| --------------------- | --------------------- |
| `COMPLETED_AT` | completedAt |
| `PERFORMANCE_COUNT` | performanceCount |
| `SOCIAL_METRIC_COUNT` | socialMetricCount |
2 changes: 2 additions & 0 deletions docs/models/operations/listbountysubmissionsresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
| `files` | List[[operations.Files](../../models/operations/files.md)] | :heavy_check_mark: | The files uploaded for the submission |
| `status` | [operations.ListBountySubmissionsStatus](../../models/operations/listbountysubmissionsstatus.md) | :heavy_check_mark: | The status of the submission |
| `performance_count` | *Nullable[float]* | :heavy_check_mark: | The performance count of the submission |
| `social_metric_count` | *Nullable[int]* | :heavy_check_mark: | The social metric count (views or likes) for the social content |
| `social_metrics_last_synced_at` | *OptionalNullable[str]* | :heavy_minus_sign: | The date and time the submission's social metrics were last synced |
| `created_at` | *str* | :heavy_check_mark: | The date and time the submission was created |
| `completed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time the submission was completed |
| `reviewed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time the submission was reviewed |
Expand Down
2 changes: 2 additions & 0 deletions docs/models/operations/listpayoutsresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
| `paid_at` | *Nullable[str]* | :heavy_check_mark: | N/A |
| `failure_reason` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `mode` | [Nullable[operations.ListPayoutsMode]](../../models/operations/listpayoutsmode.md) | :heavy_check_mark: | N/A |
| `method` | [Nullable[operations.Method]](../../models/operations/method.md) | :heavy_check_mark: | N/A |
| `trace_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `partner` | [operations.ListPayoutsPartner](../../models/operations/listpayoutspartner.md) | :heavy_check_mark: | N/A |
| `user` | [OptionalNullable[operations.User]](../../models/operations/user.md) | :heavy_minus_sign: | N/A |
10 changes: 10 additions & 0 deletions docs/models/operations/method.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Method


## Values

| Name | Value |
| ------------ | ------------ |
| `CONNECT` | connect |
| `STABLECOIN` | stablecoin |
| `PAYPAL` | paypal |
2 changes: 2 additions & 0 deletions docs/models/operations/rejectbountysubmissionresponsebody.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The rejected bounty submission.
| `files` | List[[operations.RejectBountySubmissionFiles](../../models/operations/rejectbountysubmissionfiles.md)] | :heavy_check_mark: | The files uploaded for the submission |
| `status` | [operations.RejectBountySubmissionStatus](../../models/operations/rejectbountysubmissionstatus.md) | :heavy_check_mark: | The status of the submission |
| `performance_count` | *Nullable[float]* | :heavy_check_mark: | The performance count of the submission |
| `social_metric_count` | *Nullable[int]* | :heavy_check_mark: | The social metric count (views or likes) for the social content |
| `social_metrics_last_synced_at` | *OptionalNullable[str]* | :heavy_minus_sign: | The date and time the submission's social metrics were last synced |
| `created_at` | *str* | :heavy_check_mark: | The date and time the submission was created |
| `completed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time the submission was completed |
| `reviewed_at` | *Nullable[str]* | :heavy_check_mark: | The date and time the submission was reviewed |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[project]
name = "dub"
version = "0.35.5"
version = "0.35.6"
description = "Python Client SDK Generated by Speakeasy"
authors = [{ name = "Speakeasy" },]
readme = "README-PYPI.md"
Expand Down
6 changes: 3 additions & 3 deletions src/dub/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "dub"
__version__: str = "0.35.5"
__version__: str = "0.35.6"
__openapi_doc_version__: str = "0.0.1"
__gen_version__: str = "2.839.0"
__user_agent__: str = "speakeasy-sdk/python 0.35.5 2.839.0 0.0.1 dub"
__gen_version__: str = "2.845.15"
__user_agent__: str = "speakeasy-sdk/python 0.35.6 2.845.15 0.0.1 dub"

try:
if __package__ is not None:
Expand Down
3 changes: 3 additions & 0 deletions src/dub/models/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@
ListPayoutsResponseBody,
ListPayoutsResponseBodyTypedDict,
ListPayoutsStatus,
Method,
User,
UserTypedDict,
)
Expand Down Expand Up @@ -865,6 +866,7 @@
"ListPayoutsResponseBody",
"ListPayoutsResponseBodyTypedDict",
"ListPayoutsStatus",
"Method",
"Mode",
"One",
"Options",
Expand Down Expand Up @@ -1386,6 +1388,7 @@
"ListPayoutsResponseBody": ".listpayouts",
"ListPayoutsResponseBodyTypedDict": ".listpayouts",
"ListPayoutsStatus": ".listpayouts",
"Method": ".listpayouts",
"User": ".listpayouts",
"UserTypedDict": ".listpayouts",
"RegisterDomainRequestBody": ".registerdomain",
Expand Down
40 changes: 39 additions & 1 deletion src/dub/models/operations/approvebountysubmission.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ class ApproveBountySubmissionResponseBodyTypedDict(TypedDict):
r"""The status of the submission"""
performance_count: Nullable[float]
r"""The performance count of the submission"""
social_metric_count: Nullable[int]
r"""The social metric count (views or likes) for the social content"""
created_at: str
r"""The date and time the submission was created"""
completed_at: Nullable[str]
Expand All @@ -150,6 +152,8 @@ class ApproveBountySubmissionResponseBodyTypedDict(TypedDict):
r"""The reason for rejecting the submission"""
rejection_note: Nullable[str]
r"""The note for rejecting the submission"""
social_metrics_last_synced_at: NotRequired[Nullable[str]]
r"""The date and time the submission's social metrics were last synced"""


class ApproveBountySubmissionResponseBody(BaseModel):
Expand Down Expand Up @@ -181,6 +185,11 @@ class ApproveBountySubmissionResponseBody(BaseModel):
]
r"""The performance count of the submission"""

social_metric_count: Annotated[
Nullable[int], pydantic.Field(alias="socialMetricCount")
]
r"""The social metric count (views or likes) for the social content"""

created_at: Annotated[str, pydantic.Field(alias="createdAt")]
r"""The date and time the submission was created"""

Expand All @@ -196,17 +205,46 @@ class ApproveBountySubmissionResponseBody(BaseModel):
rejection_note: Annotated[Nullable[str], pydantic.Field(alias="rejectionNote")]
r"""The note for rejecting the submission"""

social_metrics_last_synced_at: Annotated[
OptionalNullable[str], pydantic.Field(alias="socialMetricsLastSyncedAt")
] = UNSET
r"""The date and time the submission's social metrics were last synced"""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["socialMetricsLastSyncedAt"])
nullable_fields = set(
[
"description",
"urls",
"files",
"performanceCount",
"socialMetricCount",
"socialMetricsLastSyncedAt",
"completedAt",
"reviewedAt",
"rejectionReason",
"rejectionNote",
]
)
serialized = handler(self)
m = {}

for n, f in type(self).model_fields.items():
k = f.alias or n
val = serialized.get(k)
is_nullable_and_explicitly_set = (
k in nullable_fields
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
)

if val != UNSET_SENTINEL:
m[k] = val
if (
val is not None
or k not in optional_fields
or is_nullable_and_explicitly_set
):
m[k] = val

return m

Expand Down
Loading