Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.1"
".": "0.1.2"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unify%2Funify-17c3b84a98900702272afd48aea1815a914796c8b8d2ff9ac958f58b61397add.yml
openapi_spec_hash: 669c33d5b065c8cd22fc2c166214cbdc
config_hash: 2f910780c5b7c5ab1a829451f7ff9c44
config_hash: 733f711df6a401fc87fd4c8a0957d89f
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.2 (2026-04-23)

Full Changelog: [v0.1.1...v0.1.2](https://github.com/unifygtm/sdk-python/compare/v0.1.1...v0.1.2)

### Refactors

* **api:** Revert submodules ([ba8ed7b](https://github.com/unifygtm/sdk-python/commit/ba8ed7b50eb09cac0a7c3007baa56ed5e42a3901))

## 0.1.1 (2026-04-23)

Full Changelog: [v0.1.0...v0.1.1](https://github.com/unifygtm/sdk-python/compare/v0.1.0...v0.1.1)
Expand Down
48 changes: 24 additions & 24 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,31 +78,31 @@ Types:

```python
from unify.types.data import (
Address,
Boolean,
CompanyAttributes,
Country,
Currency,
Date,
Datetime,
Decimal,
Email,
Integer,
Multiselect,
OpportunityAttributes,
PersonAttributes,
PhoneNumber,
Record,
RecordAttributes,
ReferenceByID,
ReferenceByMatch,
ReferenceByUpsert,
Select,
Text,
URL,
Uuid,
UAddress,
UBoolean,
UCompanyAttributes,
UCountry,
UCurrency,
UDate,
UDatetime,
UDecimal,
UEmail,
UInteger,
UMultiselect,
UOpportunityAttributes,
UPersonAttributes,
UPhoneNumber,
URecord,
URecordAttributes,
UReferenceByID,
UReferenceByMatch,
UReferenceByUpsert,
USelect,
UText,
UURL,
UUuid,
UValue,
ValidationMode,
Value,
RecordCreateResponse,
RecordRetrieveResponse,
RecordUpdateResponse,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "unifygtm-sdk"
version = "0.1.1"
version = "0.1.2"
description = "The official Python library for the Unify API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/unify/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "unify"
__version__ = "0.1.1" # x-release-please-version
__version__ = "0.1.2" # x-release-please-version
38 changes: 19 additions & 19 deletions src/unify/resources/data/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from ...types.data.record_delete_response import RecordDeleteResponse
from ...types.data.record_update_response import RecordUpdateResponse
from ...types.data.record_upsert_response import RecordUpsertResponse
from ...types.data.record_attributes_param import RecordAttributesParam
from ...types.data.record_retrieve_response import RecordRetrieveResponse
from ...types.data.u_record_attributes_param import URecordAttributesParam
from ...types.data.record_find_unique_response import RecordFindUniqueResponse

__all__ = ["RecordsResource", "AsyncRecordsResource"]
Expand Down Expand Up @@ -58,7 +58,7 @@ def create(
self,
object_name: str,
*,
data: RecordAttributesParam,
data: URecordAttributesParam,
validation_mode: ValidationMode | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -145,7 +145,7 @@ def update(
record_id: str,
*,
object_name: str,
data: RecordAttributesParam,
data: URecordAttributesParam,
validation_mode: ValidationMode | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -235,7 +235,7 @@ def find_unique(
self,
object_name: str,
*,
match: RecordAttributesParam,
match: URecordAttributesParam,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -270,13 +270,13 @@ def upsert(
self,
object_name: str,
*,
match: RecordAttributesParam,
match: URecordAttributesParam,
validation_mode: ValidationMode | Omit = omit,
create: RecordAttributesParam | Omit = omit,
create_or_update: RecordAttributesParam | Omit = omit,
create_or_update_if_empty: RecordAttributesParam | Omit = omit,
update: RecordAttributesParam | Omit = omit,
update_if_empty: RecordAttributesParam | Omit = omit,
create: URecordAttributesParam | Omit = omit,
create_or_update: URecordAttributesParam | Omit = omit,
create_or_update_if_empty: URecordAttributesParam | Omit = omit,
update: URecordAttributesParam | Omit = omit,
update_if_empty: URecordAttributesParam | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -366,7 +366,7 @@ async def create(
self,
object_name: str,
*,
data: RecordAttributesParam,
data: URecordAttributesParam,
validation_mode: ValidationMode | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -455,7 +455,7 @@ async def update(
record_id: str,
*,
object_name: str,
data: RecordAttributesParam,
data: URecordAttributesParam,
validation_mode: ValidationMode | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -547,7 +547,7 @@ async def find_unique(
self,
object_name: str,
*,
match: RecordAttributesParam,
match: URecordAttributesParam,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -582,13 +582,13 @@ async def upsert(
self,
object_name: str,
*,
match: RecordAttributesParam,
match: URecordAttributesParam,
validation_mode: ValidationMode | Omit = omit,
create: RecordAttributesParam | Omit = omit,
create_or_update: RecordAttributesParam | Omit = omit,
create_or_update_if_empty: RecordAttributesParam | Omit = omit,
update: RecordAttributesParam | Omit = omit,
update_if_empty: RecordAttributesParam | Omit = omit,
create: URecordAttributesParam | Omit = omit,
create_or_update: URecordAttributesParam | Omit = omit,
create_or_update_if_empty: URecordAttributesParam | Omit = omit,
update: URecordAttributesParam | Omit = omit,
update_if_empty: URecordAttributesParam | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
60 changes: 30 additions & 30 deletions src/unify/types/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,42 @@

from __future__ import annotations

from .url import URL as URL
from .date import Date as Date
from .text import Text as Text
from .uuid import Uuid as Uuid
from .email import Email as Email
from .value import Value as Value
from .record import Record as Record
from .select import Select as Select
from .address import Address as Address
from .boolean import Boolean as Boolean
from .country import Country as Country
from .decimal import Decimal as Decimal
from .integer import Integer as Integer
from .currency import Currency as Currency
from .datetime import Datetime as Datetime
from .u_url import UURL as UURL
from .u_date import UDate as UDate
from .u_text import UText as UText
from .u_uuid import UUuid as UUuid
from .u_email import UEmail as UEmail
from .u_value import UValue as UValue
from .u_object import UObject as UObject
from .multiselect import Multiselect as Multiselect
from .u_record import URecord as URecord
from .u_select import USelect as USelect
from .u_address import UAddress as UAddress
from .u_boolean import UBoolean as UBoolean
from .u_country import UCountry as UCountry
from .u_decimal import UDecimal as UDecimal
from .u_integer import UInteger as UInteger
from .u_currency import UCurrency as UCurrency
from .u_datetime import UDatetime as UDatetime
from .u_attribute import UAttribute as UAttribute
from .value_param import ValueParam as ValueParam
from .phone_number import PhoneNumber as PhoneNumber
from .address_param import AddressParam as AddressParam
from .country_param import CountryParam as CountryParam
from .currency_param import CurrencyParam as CurrencyParam
from .reference_by_id import ReferenceByID as ReferenceByID
from .u_multiselect import UMultiselect as UMultiselect
from .u_value_param import UValueParam as UValueParam
from .u_phone_number import UPhoneNumber as UPhoneNumber
from .u_address_param import UAddressParam as UAddressParam
from .u_country_param import UCountryParam as UCountryParam
from .validation_mode import ValidationMode as ValidationMode
from .multiselect_param import MultiselectParam as MultiselectParam
from .record_attributes import RecordAttributes as RecordAttributes
from .u_currency_param import UCurrencyParam as UCurrencyParam
from .u_attribute_param import UAttributeParam as UAttributeParam
from .reference_by_match import ReferenceByMatch as ReferenceByMatch
from .reference_by_upsert import ReferenceByUpsert as ReferenceByUpsert
from .u_reference_by_id import UReferenceByID as UReferenceByID
from .u_multiselect_param import UMultiselectParam as UMultiselectParam
from .u_record_attributes import URecordAttributes as URecordAttributes
from .object_create_params import ObjectCreateParams as ObjectCreateParams
from .object_list_response import ObjectListResponse as ObjectListResponse
from .object_update_params import ObjectUpdateParams as ObjectUpdateParams
from .record_create_params import RecordCreateParams as RecordCreateParams
from .record_update_params import RecordUpdateParams as RecordUpdateParams
from .record_upsert_params import RecordUpsertParams as RecordUpsertParams
from .reference_by_id_param import ReferenceByIDParam as ReferenceByIDParam
from .u_reference_by_match import UReferenceByMatch as UReferenceByMatch
from .u_reference_by_upsert import UReferenceByUpsert as UReferenceByUpsert
from .object_create_response import ObjectCreateResponse as ObjectCreateResponse
from .object_delete_response import ObjectDeleteResponse as ObjectDeleteResponse
from .object_update_response import ObjectUpdateResponse as ObjectUpdateResponse
Expand All @@ -49,18 +48,19 @@
from .attribute_create_params import AttributeCreateParams as AttributeCreateParams
from .attribute_list_response import AttributeListResponse as AttributeListResponse
from .attribute_update_params import AttributeUpdateParams as AttributeUpdateParams
from .record_attributes_param import RecordAttributesParam as RecordAttributesParam
from .u_reference_by_id_param import UReferenceByIDParam as UReferenceByIDParam
from .u_reference_cardinality import UReferenceCardinality as UReferenceCardinality
from .object_retrieve_response import ObjectRetrieveResponse as ObjectRetrieveResponse
from .record_retrieve_response import RecordRetrieveResponse as RecordRetrieveResponse
from .reference_by_match_param import ReferenceByMatchParam as ReferenceByMatchParam
from .attribute_create_response import AttributeCreateResponse as AttributeCreateResponse
from .attribute_delete_response import AttributeDeleteResponse as AttributeDeleteResponse
from .attribute_update_response import AttributeUpdateResponse as AttributeUpdateResponse
from .record_find_unique_params import RecordFindUniqueParams as RecordFindUniqueParams
from .reference_by_upsert_param import ReferenceByUpsertParam as ReferenceByUpsertParam
from .u_record_attributes_param import URecordAttributesParam as URecordAttributesParam
from .u_reference_by_match_param import UReferenceByMatchParam as UReferenceByMatchParam
from .attribute_retrieve_response import AttributeRetrieveResponse as AttributeRetrieveResponse
from .record_find_unique_response import RecordFindUniqueResponse as RecordFindUniqueResponse
from .u_reference_by_upsert_param import UReferenceByUpsertParam as UReferenceByUpsertParam
from .u_related_reference_attribute import URelatedReferenceAttribute as URelatedReferenceAttribute
from .u_related_reference_attribute_param import URelatedReferenceAttributeParam as URelatedReferenceAttributeParam
from .u_attribute_option_update_item_param import UAttributeOptionUpdateItemParam as UAttributeOptionUpdateItemParam
7 changes: 0 additions & 7 deletions src/unify/types/data/phone_number.py

This file was deleted.

4 changes: 2 additions & 2 deletions src/unify/types/data/record_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from typing_extensions import Required, TypedDict

from .validation_mode import ValidationMode
from .record_attributes_param import RecordAttributesParam
from .u_record_attributes_param import URecordAttributesParam

__all__ = ["RecordCreateParams"]


class RecordCreateParams(TypedDict, total=False):
data: Required[RecordAttributesParam]
data: Required[URecordAttributesParam]
"""Attribute key-value pairs associated with an object record."""

validation_mode: ValidationMode
Expand Down
4 changes: 2 additions & 2 deletions src/unify/types/data/record_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing_extensions import Literal

from .record import Record
from .u_record import URecord
from ..._models import BaseModel

__all__ = ["RecordCreateResponse"]
Expand All @@ -11,7 +11,7 @@
class RecordCreateResponse(BaseModel):
"""Response for a successful create operation."""

data: Record
data: URecord
"""Object record with its associated metadata and attribute key-value pairs."""

status: Literal["success"]
4 changes: 2 additions & 2 deletions src/unify/types/data/record_find_unique_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

from typing_extensions import Required, TypedDict

from .record_attributes_param import RecordAttributesParam
from .u_record_attributes_param import URecordAttributesParam

__all__ = ["RecordFindUniqueParams"]


class RecordFindUniqueParams(TypedDict, total=False):
match: Required[RecordAttributesParam]
match: Required[URecordAttributesParam]
"""Attribute key-value pairs associated with an object record."""
4 changes: 2 additions & 2 deletions src/unify/types/data/record_find_unique_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional
from typing_extensions import Literal

from .record import Record
from .u_record import URecord
from ..._models import BaseModel

__all__ = ["RecordFindUniqueResponse"]
Expand All @@ -12,7 +12,7 @@
class RecordFindUniqueResponse(BaseModel):
"""Response for a successful get operation."""

data: Optional[Record] = None
data: Optional[URecord] = None
"""Object record with its associated metadata and attribute key-value pairs."""

status: Literal["success"]
4 changes: 2 additions & 2 deletions src/unify/types/data/record_retrieve_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing_extensions import Literal

from .record import Record
from .u_record import URecord
from ..._models import BaseModel

__all__ = ["RecordRetrieveResponse"]
Expand All @@ -11,7 +11,7 @@
class RecordRetrieveResponse(BaseModel):
"""Response for a successful get operation."""

data: Record
data: URecord
"""Object record with its associated metadata and attribute key-value pairs."""

status: Literal["success"]
Loading
Loading