diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5547f83..cda9cbd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.1" + ".": "0.1.2" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5108950..4670331 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 9de5ea2..669443a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/api.md b/api.md index 4cd752a..4f687fc 100644 --- a/api.md +++ b/api.md @@ -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, diff --git a/pyproject.toml b/pyproject.toml index f809e1e..98635bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/unify/_version.py b/src/unify/_version.py index 7412dc5..bb53329 100644 --- a/src/unify/_version.py +++ b/src/unify/_version.py @@ -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 diff --git a/src/unify/resources/data/records.py b/src/unify/resources/data/records.py index fc684f2..4df8bb4 100644 --- a/src/unify/resources/data/records.py +++ b/src/unify/resources/data/records.py @@ -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"] @@ -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. @@ -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. @@ -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, @@ -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, @@ -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. @@ -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. @@ -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, @@ -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, diff --git a/src/unify/types/data/__init__.py b/src/unify/types/data/__init__.py index 4f01756..4c5c896 100644 --- a/src/unify/types/data/__init__.py +++ b/src/unify/types/data/__init__.py @@ -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 @@ -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 diff --git a/src/unify/types/data/phone_number.py b/src/unify/types/data/phone_number.py deleted file mode 100644 index c0b79e4..0000000 --- a/src/unify/types/data/phone_number.py +++ /dev/null @@ -1,7 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing_extensions import TypeAlias - -__all__ = ["PhoneNumber"] - -PhoneNumber: TypeAlias = str diff --git a/src/unify/types/data/record_create_params.py b/src/unify/types/data/record_create_params.py index 998fe62..2f2872e 100644 --- a/src/unify/types/data/record_create_params.py +++ b/src/unify/types/data/record_create_params.py @@ -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 diff --git a/src/unify/types/data/record_create_response.py b/src/unify/types/data/record_create_response.py index 8007a4a..77e264d 100644 --- a/src/unify/types/data/record_create_response.py +++ b/src/unify/types/data/record_create_response.py @@ -2,7 +2,7 @@ from typing_extensions import Literal -from .record import Record +from .u_record import URecord from ..._models import BaseModel __all__ = ["RecordCreateResponse"] @@ -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"] diff --git a/src/unify/types/data/record_find_unique_params.py b/src/unify/types/data/record_find_unique_params.py index e3460da..53b1673 100644 --- a/src/unify/types/data/record_find_unique_params.py +++ b/src/unify/types/data/record_find_unique_params.py @@ -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.""" diff --git a/src/unify/types/data/record_find_unique_response.py b/src/unify/types/data/record_find_unique_response.py index 2208c67..05a0cfc 100644 --- a/src/unify/types/data/record_find_unique_response.py +++ b/src/unify/types/data/record_find_unique_response.py @@ -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"] @@ -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"] diff --git a/src/unify/types/data/record_retrieve_response.py b/src/unify/types/data/record_retrieve_response.py index 190f675..4bc91bc 100644 --- a/src/unify/types/data/record_retrieve_response.py +++ b/src/unify/types/data/record_retrieve_response.py @@ -2,7 +2,7 @@ from typing_extensions import Literal -from .record import Record +from .u_record import URecord from ..._models import BaseModel __all__ = ["RecordRetrieveResponse"] @@ -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"] diff --git a/src/unify/types/data/record_update_params.py b/src/unify/types/data/record_update_params.py index d242f5f..4e8db64 100644 --- a/src/unify/types/data/record_update_params.py +++ b/src/unify/types/data/record_update_params.py @@ -5,7 +5,7 @@ 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__ = ["RecordUpdateParams"] @@ -13,7 +13,7 @@ class RecordUpdateParams(TypedDict, total=False): object_name: Required[str] - data: Required[RecordAttributesParam] + data: Required[URecordAttributesParam] """Attribute key-value pairs associated with an object record.""" validation_mode: ValidationMode diff --git a/src/unify/types/data/record_update_response.py b/src/unify/types/data/record_update_response.py index da53ea7..cc2b667 100644 --- a/src/unify/types/data/record_update_response.py +++ b/src/unify/types/data/record_update_response.py @@ -2,7 +2,7 @@ from typing_extensions import Literal -from .record import Record +from .u_record import URecord from ..._models import BaseModel __all__ = ["RecordUpdateResponse"] @@ -11,7 +11,7 @@ class RecordUpdateResponse(BaseModel): """Response for a successful update operation.""" - data: Record + data: URecord """Object record with its associated metadata and attribute key-value pairs.""" status: Literal["success"] diff --git a/src/unify/types/data/record_upsert_params.py b/src/unify/types/data/record_upsert_params.py index 39969e4..df7373b 100644 --- a/src/unify/types/data/record_upsert_params.py +++ b/src/unify/types/data/record_upsert_params.py @@ -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__ = ["RecordUpsertParams"] class RecordUpsertParams(TypedDict, total=False): - match: Required[RecordAttributesParam] + match: Required[URecordAttributesParam] """Attribute key-value pairs associated with an object record.""" validation_mode: ValidationMode @@ -26,17 +26,17 @@ class RecordUpsertParams(TypedDict, total=False): any required attributes fail validation. """ - create: RecordAttributesParam + create: URecordAttributesParam """Attribute key-value pairs associated with an object record.""" - create_or_update: RecordAttributesParam + create_or_update: URecordAttributesParam """Attribute key-value pairs associated with an object record.""" - create_or_update_if_empty: RecordAttributesParam + create_or_update_if_empty: URecordAttributesParam """Attribute key-value pairs associated with an object record.""" - update: RecordAttributesParam + update: URecordAttributesParam """Attribute key-value pairs associated with an object record.""" - update_if_empty: RecordAttributesParam + update_if_empty: URecordAttributesParam """Attribute key-value pairs associated with an object record.""" diff --git a/src/unify/types/data/record_upsert_response.py b/src/unify/types/data/record_upsert_response.py index 64b8d61..785377c 100644 --- a/src/unify/types/data/record_upsert_response.py +++ b/src/unify/types/data/record_upsert_response.py @@ -2,7 +2,7 @@ from typing_extensions import Literal -from .record import Record +from .u_record import URecord from ..._models import BaseModel __all__ = ["RecordUpsertResponse"] @@ -11,7 +11,7 @@ class RecordUpsertResponse(BaseModel): """Response for a successful update operation.""" - data: Record + data: URecord """Object record with its associated metadata and attribute key-value pairs.""" status: Literal["success"] diff --git a/src/unify/types/data/address.py b/src/unify/types/data/u_address.py similarity index 89% rename from src/unify/types/data/address.py rename to src/unify/types/data/u_address.py index 39283ba..a46a4a7 100644 --- a/src/unify/types/data/address.py +++ b/src/unify/types/data/u_address.py @@ -2,19 +2,19 @@ from typing import Optional -from .country import Country from ..._models import BaseModel +from .u_country import UCountry -__all__ = ["Address"] +__all__ = ["UAddress"] -class Address(BaseModel): +class UAddress(BaseModel): """Composite object representing a physical address.""" administrative_area: Optional[str] = None """State, province, region, or territory.""" - country: Optional[Country] = None + country: Optional[UCountry] = None """Composite object representing a country.""" dependent_locality: Optional[str] = None diff --git a/src/unify/types/data/address_param.py b/src/unify/types/data/u_address_param.py similarity index 86% rename from src/unify/types/data/address_param.py rename to src/unify/types/data/u_address_param.py index 16fd114..b2f3e17 100644 --- a/src/unify/types/data/address_param.py +++ b/src/unify/types/data/u_address_param.py @@ -4,18 +4,18 @@ from typing_extensions import TypedDict -from .country_param import CountryParam +from .u_country_param import UCountryParam -__all__ = ["AddressParam"] +__all__ = ["UAddressParam"] -class AddressParam(TypedDict, total=False): +class UAddressParam(TypedDict, total=False): """Composite object representing a physical address.""" administrative_area: str """State, province, region, or territory.""" - country: CountryParam + country: UCountryParam """Composite object representing a country.""" dependent_locality: str diff --git a/src/unify/types/data/boolean.py b/src/unify/types/data/u_boolean.py similarity index 72% rename from src/unify/types/data/boolean.py rename to src/unify/types/data/u_boolean.py index fc53688..f86441d 100644 --- a/src/unify/types/data/boolean.py +++ b/src/unify/types/data/u_boolean.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Boolean"] +__all__ = ["UBoolean"] -Boolean: TypeAlias = bool +UBoolean: TypeAlias = bool diff --git a/src/unify/types/data/country.py b/src/unify/types/data/u_country.py similarity index 98% rename from src/unify/types/data/country.py rename to src/unify/types/data/u_country.py index 466b24c..5275e94 100644 --- a/src/unify/types/data/country.py +++ b/src/unify/types/data/u_country.py @@ -4,10 +4,10 @@ from ..._models import BaseModel -__all__ = ["Country"] +__all__ = ["UCountry"] -class Country(BaseModel): +class UCountry(BaseModel): """Composite object representing a country.""" code: Literal[ diff --git a/src/unify/types/data/country_param.py b/src/unify/types/data/u_country_param.py similarity index 98% rename from src/unify/types/data/country_param.py rename to src/unify/types/data/u_country_param.py index daad225..ed2fd5e 100644 --- a/src/unify/types/data/country_param.py +++ b/src/unify/types/data/u_country_param.py @@ -4,10 +4,10 @@ from typing_extensions import Literal, Required, TypedDict -__all__ = ["CountryParam"] +__all__ = ["UCountryParam"] -class CountryParam(TypedDict, total=False): +class UCountryParam(TypedDict, total=False): """Composite object representing a country.""" code: Required[ diff --git a/src/unify/types/data/currency.py b/src/unify/types/data/u_currency.py similarity index 98% rename from src/unify/types/data/currency.py rename to src/unify/types/data/u_currency.py index cbe9366..d442732 100644 --- a/src/unify/types/data/currency.py +++ b/src/unify/types/data/u_currency.py @@ -4,10 +4,10 @@ from ..._models import BaseModel -__all__ = ["Currency"] +__all__ = ["UCurrency"] -class Currency(BaseModel): +class UCurrency(BaseModel): """Composite object representing a currency value.""" code: Literal[ diff --git a/src/unify/types/data/currency_param.py b/src/unify/types/data/u_currency_param.py similarity index 98% rename from src/unify/types/data/currency_param.py rename to src/unify/types/data/u_currency_param.py index c3becf0..0a54159 100644 --- a/src/unify/types/data/currency_param.py +++ b/src/unify/types/data/u_currency_param.py @@ -4,10 +4,10 @@ from typing_extensions import Literal, Required, TypedDict -__all__ = ["CurrencyParam"] +__all__ = ["UCurrencyParam"] -class CurrencyParam(TypedDict, total=False): +class UCurrencyParam(TypedDict, total=False): """Composite object representing a currency value.""" code: Required[ diff --git a/src/unify/types/data/email.py b/src/unify/types/data/u_date.py similarity index 75% rename from src/unify/types/data/email.py rename to src/unify/types/data/u_date.py index 88f3658..4000bb4 100644 --- a/src/unify/types/data/email.py +++ b/src/unify/types/data/u_date.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Email"] +__all__ = ["UDate"] -Email: TypeAlias = str +UDate: TypeAlias = str diff --git a/src/unify/types/data/decimal.py b/src/unify/types/data/u_datetime.py similarity index 71% rename from src/unify/types/data/decimal.py rename to src/unify/types/data/u_datetime.py index 6086463..30493b4 100644 --- a/src/unify/types/data/decimal.py +++ b/src/unify/types/data/u_datetime.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Decimal"] +__all__ = ["UDatetime"] -Decimal: TypeAlias = float +UDatetime: TypeAlias = str diff --git a/src/unify/types/data/u_decimal.py b/src/unify/types/data/u_decimal.py new file mode 100644 index 0000000..4fe83f5 --- /dev/null +++ b/src/unify/types/data/u_decimal.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import TypeAlias + +__all__ = ["UDecimal"] + +UDecimal: TypeAlias = float diff --git a/src/unify/types/data/select.py b/src/unify/types/data/u_email.py similarity index 74% rename from src/unify/types/data/select.py rename to src/unify/types/data/u_email.py index f834a2f..5b9a4af 100644 --- a/src/unify/types/data/select.py +++ b/src/unify/types/data/u_email.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Select"] +__all__ = ["UEmail"] -Select: TypeAlias = str +UEmail: TypeAlias = str diff --git a/src/unify/types/data/datetime.py b/src/unify/types/data/u_integer.py similarity index 72% rename from src/unify/types/data/datetime.py rename to src/unify/types/data/u_integer.py index 2de8d63..b05929a 100644 --- a/src/unify/types/data/datetime.py +++ b/src/unify/types/data/u_integer.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Datetime"] +__all__ = ["UInteger"] -Datetime: TypeAlias = str +UInteger: TypeAlias = int diff --git a/src/unify/types/data/multiselect.py b/src/unify/types/data/u_multiselect.py similarity index 70% rename from src/unify/types/data/multiselect.py rename to src/unify/types/data/u_multiselect.py index 59aa35d..a1f9c2c 100644 --- a/src/unify/types/data/multiselect.py +++ b/src/unify/types/data/u_multiselect.py @@ -3,6 +3,6 @@ from typing import List from typing_extensions import TypeAlias -__all__ = ["Multiselect"] +__all__ = ["UMultiselect"] -Multiselect: TypeAlias = List[str] +UMultiselect: TypeAlias = List[str] diff --git a/src/unify/types/data/multiselect_param.py b/src/unify/types/data/u_multiselect_param.py similarity index 58% rename from src/unify/types/data/multiselect_param.py rename to src/unify/types/data/u_multiselect_param.py index a89f42e..25cc180 100644 --- a/src/unify/types/data/multiselect_param.py +++ b/src/unify/types/data/u_multiselect_param.py @@ -5,8 +5,8 @@ from typing import List from typing_extensions import TypeAlias -__all__ = ["MultiselectParam", "MultiselectParamItem"] +__all__ = ["UMultiselectParam", "UMultiselectParamItem"] -MultiselectParamItem: TypeAlias = str +UMultiselectParamItem: TypeAlias = str -MultiselectParam: TypeAlias = List[str] +UMultiselectParam: TypeAlias = List[str] diff --git a/src/unify/types/data/u_phone_number.py b/src/unify/types/data/u_phone_number.py new file mode 100644 index 0000000..0408083 --- /dev/null +++ b/src/unify/types/data/u_phone_number.py @@ -0,0 +1,7 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing_extensions import TypeAlias + +__all__ = ["UPhoneNumber"] + +UPhoneNumber: TypeAlias = str diff --git a/src/unify/types/data/record.py b/src/unify/types/data/u_record.py similarity index 76% rename from src/unify/types/data/record.py rename to src/unify/types/data/u_record.py index 6b6ceeb..1578bdb 100644 --- a/src/unify/types/data/record.py +++ b/src/unify/types/data/u_record.py @@ -2,20 +2,20 @@ from datetime import datetime -from .uuid import Uuid +from .u_uuid import UUuid from ..._models import BaseModel -from .record_attributes import RecordAttributes +from .u_record_attributes import URecordAttributes -__all__ = ["Record"] +__all__ = ["URecord"] -class Record(BaseModel): +class URecord(BaseModel): """Object record with its associated metadata and attribute key-value pairs.""" - id: Uuid + id: UUuid """String UUIDv4 value.""" - attributes: RecordAttributes + attributes: URecordAttributes """Attribute key-value pairs associated with an object record.""" created_at: datetime diff --git a/src/unify/types/data/record_attributes.py b/src/unify/types/data/u_record_attributes.py similarity index 57% rename from src/unify/types/data/record_attributes.py rename to src/unify/types/data/u_record_attributes.py index 1f01062..f59986d 100644 --- a/src/unify/types/data/record_attributes.py +++ b/src/unify/types/data/u_record_attributes.py @@ -3,8 +3,8 @@ from typing import Dict, Optional from typing_extensions import TypeAlias -from .value import Value +from .u_value import UValue -__all__ = ["RecordAttributes"] +__all__ = ["URecordAttributes"] -RecordAttributes: TypeAlias = Dict[str, Optional[Value]] +URecordAttributes: TypeAlias = Dict[str, Optional[UValue]] diff --git a/src/unify/types/data/record_attributes_param.py b/src/unify/types/data/u_record_attributes_param.py similarity index 57% rename from src/unify/types/data/record_attributes_param.py rename to src/unify/types/data/u_record_attributes_param.py index ba8ded4..ef7aa45 100644 --- a/src/unify/types/data/record_attributes_param.py +++ b/src/unify/types/data/u_record_attributes_param.py @@ -5,8 +5,8 @@ from typing import Dict, Optional from typing_extensions import TypeAlias -from .value_param import ValueParam +from .u_value_param import UValueParam -__all__ = ["RecordAttributesParam"] +__all__ = ["URecordAttributesParam"] -RecordAttributesParam: TypeAlias = Dict[str, Optional[ValueParam]] +URecordAttributesParam: TypeAlias = Dict[str, Optional[UValueParam]] diff --git a/src/unify/types/data/reference_by_id.py b/src/unify/types/data/u_reference_by_id.py similarity index 76% rename from src/unify/types/data/reference_by_id.py rename to src/unify/types/data/u_reference_by_id.py index 5ec478d..e62f5a8 100644 --- a/src/unify/types/data/reference_by_id.py +++ b/src/unify/types/data/u_reference_by_id.py @@ -1,17 +1,17 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from .uuid import Uuid +from .u_uuid import UUuid from ..._models import BaseModel -__all__ = ["ReferenceByID"] +__all__ = ["UReferenceByID"] -class ReferenceByID(BaseModel): +class UReferenceByID(BaseModel): """Reference to another object record by ID. This will find an existing record by its ID, and an error will be returned if the record does not exist. """ - id: Uuid + id: UUuid """String UUIDv4 value.""" diff --git a/src/unify/types/data/reference_by_id_param.py b/src/unify/types/data/u_reference_by_id_param.py similarity index 73% rename from src/unify/types/data/reference_by_id_param.py rename to src/unify/types/data/u_reference_by_id_param.py index 9f7b51c..3ca8154 100644 --- a/src/unify/types/data/reference_by_id_param.py +++ b/src/unify/types/data/u_reference_by_id_param.py @@ -4,17 +4,17 @@ from typing_extensions import Required, TypedDict -from .uuid import Uuid +from .u_uuid import UUuid -__all__ = ["ReferenceByIDParam"] +__all__ = ["UReferenceByIDParam"] -class ReferenceByIDParam(TypedDict, total=False): +class UReferenceByIDParam(TypedDict, total=False): """Reference to another object record by ID. This will find an existing record by its ID, and an error will be returned if the record does not exist. """ - id: Required[Uuid] + id: Required[UUuid] """String UUIDv4 value.""" diff --git a/src/unify/types/data/reference_by_match.py b/src/unify/types/data/u_reference_by_match.py similarity index 90% rename from src/unify/types/data/reference_by_match.py rename to src/unify/types/data/u_reference_by_match.py index d9fafce..30c1073 100644 --- a/src/unify/types/data/reference_by_match.py +++ b/src/unify/types/data/u_reference_by_match.py @@ -4,10 +4,10 @@ from ..._models import BaseModel -__all__ = ["ReferenceByMatch"] +__all__ = ["UReferenceByMatch"] -class ReferenceByMatch(BaseModel): +class UReferenceByMatch(BaseModel): """Reference to another object record by match criteria. This will find an existing record using the provided match criteria, and diff --git a/src/unify/types/data/reference_by_match_param.py b/src/unify/types/data/u_reference_by_match_param.py similarity index 88% rename from src/unify/types/data/reference_by_match_param.py rename to src/unify/types/data/u_reference_by_match_param.py index ac6dfa9..cedfd9d 100644 --- a/src/unify/types/data/reference_by_match_param.py +++ b/src/unify/types/data/u_reference_by_match_param.py @@ -5,10 +5,10 @@ from typing import Dict from typing_extensions import Required, TypedDict -__all__ = ["ReferenceByMatchParam"] +__all__ = ["UReferenceByMatchParam"] -class ReferenceByMatchParam(TypedDict, total=False): +class UReferenceByMatchParam(TypedDict, total=False): """Reference to another object record by match criteria. This will find an existing record using the provided match criteria, and diff --git a/src/unify/types/data/reference_by_upsert.py b/src/unify/types/data/u_reference_by_upsert.py similarity index 96% rename from src/unify/types/data/reference_by_upsert.py rename to src/unify/types/data/u_reference_by_upsert.py index 565fa39..9628302 100644 --- a/src/unify/types/data/reference_by_upsert.py +++ b/src/unify/types/data/u_reference_by_upsert.py @@ -4,10 +4,10 @@ from ..._models import BaseModel -__all__ = ["ReferenceByUpsert"] +__all__ = ["UReferenceByUpsert"] -class ReferenceByUpsert(BaseModel): +class UReferenceByUpsert(BaseModel): """Reference to another object record by performing a nested upsert. At least one of `create`, `create_or_update` or `create_or_update_if_empty` diff --git a/src/unify/types/data/reference_by_upsert_param.py b/src/unify/types/data/u_reference_by_upsert_param.py similarity index 95% rename from src/unify/types/data/reference_by_upsert_param.py rename to src/unify/types/data/u_reference_by_upsert_param.py index f0ae2bd..06bf29c 100644 --- a/src/unify/types/data/reference_by_upsert_param.py +++ b/src/unify/types/data/u_reference_by_upsert_param.py @@ -5,10 +5,10 @@ from typing import Dict from typing_extensions import Required, TypedDict -__all__ = ["ReferenceByUpsertParam"] +__all__ = ["UReferenceByUpsertParam"] -class ReferenceByUpsertParam(TypedDict, total=False): +class UReferenceByUpsertParam(TypedDict, total=False): """Reference to another object record by performing a nested upsert. At least one of `create`, `create_or_update` or `create_or_update_if_empty` diff --git a/src/unify/types/data/integer.py b/src/unify/types/data/u_select.py similarity index 73% rename from src/unify/types/data/integer.py rename to src/unify/types/data/u_select.py index 7a718d6..08e8009 100644 --- a/src/unify/types/data/integer.py +++ b/src/unify/types/data/u_select.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Integer"] +__all__ = ["USelect"] -Integer: TypeAlias = int +USelect: TypeAlias = str diff --git a/src/unify/types/data/url.py b/src/unify/types/data/u_text.py similarity index 75% rename from src/unify/types/data/url.py rename to src/unify/types/data/u_text.py index fceb302..b3c4b78 100644 --- a/src/unify/types/data/url.py +++ b/src/unify/types/data/u_text.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["URL"] +__all__ = ["UText"] -URL: TypeAlias = str +UText: TypeAlias = str diff --git a/src/unify/types/data/date.py b/src/unify/types/data/u_url.py similarity index 75% rename from src/unify/types/data/date.py rename to src/unify/types/data/u_url.py index 8e98e20..edd9f34 100644 --- a/src/unify/types/data/date.py +++ b/src/unify/types/data/u_url.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Date"] +__all__ = ["UURL"] -Date: TypeAlias = str +UURL: TypeAlias = str diff --git a/src/unify/types/data/text.py b/src/unify/types/data/u_uuid.py similarity index 75% rename from src/unify/types/data/text.py rename to src/unify/types/data/u_uuid.py index 5c01fd8..457aeaa 100644 --- a/src/unify/types/data/text.py +++ b/src/unify/types/data/u_uuid.py @@ -2,6 +2,6 @@ from typing_extensions import TypeAlias -__all__ = ["Text"] +__all__ = ["UUuid"] -Text: TypeAlias = str +UUuid: TypeAlias = str diff --git a/src/unify/types/data/u_value.py b/src/unify/types/data/u_value.py new file mode 100644 index 0000000..457ca42 --- /dev/null +++ b/src/unify/types/data/u_value.py @@ -0,0 +1,30 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from typing import Union +from typing_extensions import TypeAlias + +from .u_date import UDate +from .u_address import UAddress +from .u_boolean import UBoolean +from .u_country import UCountry +from .u_decimal import UDecimal +from .u_currency import UCurrency +from .u_multiselect import UMultiselect +from .u_reference_by_id import UReferenceByID +from .u_reference_by_match import UReferenceByMatch +from .u_reference_by_upsert import UReferenceByUpsert + +__all__ = ["UValue"] + +UValue: TypeAlias = Union[ + UAddress, + UBoolean, + UCountry, + UCurrency, + UDate, + UDecimal, + UMultiselect, + UReferenceByID, + UReferenceByMatch, + UReferenceByUpsert, +] diff --git a/src/unify/types/data/u_value_param.py b/src/unify/types/data/u_value_param.py new file mode 100644 index 0000000..80d298c --- /dev/null +++ b/src/unify/types/data/u_value_param.py @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +from __future__ import annotations + +from typing import Union +from typing_extensions import TypeAlias + +from .u_date import UDate +from .u_boolean import UBoolean +from .u_decimal import UDecimal +from .u_address_param import UAddressParam +from .u_country_param import UCountryParam +from .u_currency_param import UCurrencyParam +from .u_multiselect_param import UMultiselectParam +from .u_reference_by_id_param import UReferenceByIDParam +from .u_reference_by_match_param import UReferenceByMatchParam +from .u_reference_by_upsert_param import UReferenceByUpsertParam + +__all__ = ["UValueParam"] + +UValueParam: TypeAlias = Union[ + UAddressParam, + UBoolean, + UCountryParam, + UCurrencyParam, + UDate, + UDecimal, + UMultiselectParam, + UReferenceByIDParam, + UReferenceByMatchParam, + UReferenceByUpsertParam, +] diff --git a/src/unify/types/data/uuid.py b/src/unify/types/data/uuid.py deleted file mode 100644 index 44316d3..0000000 --- a/src/unify/types/data/uuid.py +++ /dev/null @@ -1,7 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing_extensions import TypeAlias - -__all__ = ["Uuid"] - -Uuid: TypeAlias = str diff --git a/src/unify/types/data/value.py b/src/unify/types/data/value.py deleted file mode 100644 index e33bcea..0000000 --- a/src/unify/types/data/value.py +++ /dev/null @@ -1,21 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Union -from typing_extensions import TypeAlias - -from .date import Date -from .address import Address -from .boolean import Boolean -from .country import Country -from .decimal import Decimal -from .currency import Currency -from .multiselect import Multiselect -from .reference_by_id import ReferenceByID -from .reference_by_match import ReferenceByMatch -from .reference_by_upsert import ReferenceByUpsert - -__all__ = ["Value"] - -Value: TypeAlias = Union[ - Address, Boolean, Country, Currency, Date, Decimal, Multiselect, ReferenceByID, ReferenceByMatch, ReferenceByUpsert -] diff --git a/src/unify/types/data/value_param.py b/src/unify/types/data/value_param.py deleted file mode 100644 index ee35e2f..0000000 --- a/src/unify/types/data/value_param.py +++ /dev/null @@ -1,32 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from typing_extensions import TypeAlias - -from .date import Date -from .boolean import Boolean -from .decimal import Decimal -from .address_param import AddressParam -from .country_param import CountryParam -from .currency_param import CurrencyParam -from .multiselect_param import MultiselectParam -from .reference_by_id_param import ReferenceByIDParam -from .reference_by_match_param import ReferenceByMatchParam -from .reference_by_upsert_param import ReferenceByUpsertParam - -__all__ = ["ValueParam"] - -ValueParam: TypeAlias = Union[ - AddressParam, - Boolean, - CountryParam, - CurrencyParam, - Date, - Decimal, - MultiselectParam, - ReferenceByIDParam, - ReferenceByMatchParam, - ReferenceByUpsertParam, -]