UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

700 lines 29.7 kB
import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { OutputValue, OutputValue$Outbound } from "./outputvalue.js"; export type AttributeId = { /** * A UUID representing the workspace this attribute belongs to. */ workspaceId: string; /** * A UUID to identify the object or list that this attribute belongs to */ objectId: string; /** * A UUID to identify this attribute. */ attributeId: string; }; /** * The type of the attribute. */ export declare const AttributeType: { readonly Text: "text"; readonly Number: "number"; readonly Checkbox: "checkbox"; readonly Currency: "currency"; readonly Date: "date"; readonly Timestamp: "timestamp"; readonly Rating: "rating"; readonly Status: "status"; readonly Select: "select"; readonly RecordReference: "record-reference"; readonly ActorReference: "actor-reference"; readonly Location: "location"; readonly Domain: "domain"; readonly EmailAddress: "email-address"; readonly PhoneNumber: "phone-number"; readonly Interaction: "interaction"; readonly PersonalName: "personal-name"; }; /** * The type of the attribute. */ export type AttributeType = ClosedEnum<typeof AttributeType>; export declare const TypeStatic: { readonly Static: "static"; }; export type TypeStatic = ClosedEnum<typeof TypeStatic>; export type DefaultValueStatic = { type: TypeStatic; template: Array<OutputValue>; }; export declare const TypeDynamic: { readonly Dynamic: "dynamic"; }; export type TypeDynamic = ClosedEnum<typeof TypeDynamic>; /** * For actor reference attributes, you may pass a dynamic value of `"current-user"`. When creating new records or entries, this will cause the actor reference value to be populated with either the workspace member or API token that created the record/entry. */ export declare const Template: { readonly CurrentUser: "current-user"; }; /** * For actor reference attributes, you may pass a dynamic value of `"current-user"`. When creating new records or entries, this will cause the actor reference value to be populated with either the workspace member or API token that created the record/entry. */ export type Template = ClosedEnum<typeof Template>; export type DefaultValueDynamic = { type: TypeDynamic; template?: any | undefined; }; /** * The default value for this attribute. Static values are used to directly populate values using their contents. Dynamic values are used to lookup data at the point of creation. For example, you could use a dynamic value to insert a value for the currently logged in user. Which default values are available is dependent on the type of the attribute. */ export type DefaultValue = DefaultValueDynamic | DefaultValueStatic; export type RelationshipId = { /** * A UUID representing the workspace this attribute belongs to. */ workspaceId: string; /** * A UUID to identify the object or list that this attribute belongs to */ objectId: string; /** * A UUID to identify this attribute. */ attributeId: string; }; /** * If this attribute is related to another attribute, this is an object that includes an `id` property that identifies the other attribute. `null` means no relationship exists. See [the help center](https://attio.com/help/reference/managing-your-data/attributes#relationship-attributes) for more details about relationship attributes. */ export type Relationship = { id: RelationshipId; }; /** * The ISO4217 code representing the currency that values for this attribute should be stored in. */ export declare const DefaultCurrencyCode: { readonly Aud: "AUD"; readonly Brl: "BRL"; readonly Bel: "BEL"; readonly Cad: "CAD"; readonly Cny: "CNY"; readonly Cop: "COP"; readonly Czk: "CZK"; readonly Dkk: "DKK"; readonly Eur: "EUR"; readonly Hkd: "HKD"; readonly Isk: "ISK"; readonly Inr: "INR"; readonly Ils: "ILS"; readonly Jpy: "JPY"; readonly Krw: "KRW"; readonly Myr: "MYR"; readonly Mxn: "MXN"; readonly Ntd: "NTD"; readonly Nzd: "NZD"; readonly Ngn: "NGN"; readonly Nok: "NOK"; readonly Xpf: "XPF"; readonly Pen: "PEN"; readonly Php: "PHP"; readonly Pln: "PLN"; readonly Gbp: "GBP"; readonly Sar: "SAR"; readonly Sgd: "SGD"; readonly Zar: "ZAR"; readonly Sek: "SEK"; readonly Chf: "CHF"; readonly Aed: "AED"; readonly Usd: "USD"; }; /** * The ISO4217 code representing the currency that values for this attribute should be stored in. */ export type DefaultCurrencyCode = ClosedEnum<typeof DefaultCurrencyCode>; /** * How the currency should be displayed across the app. "code" will display the ISO currency code e.g. "USD", "name" will display the localized currency name e.g. "British pound", "narrowSymbol" will display "$1" instead of "US$1" and "symbol" will display a localized currency symbol such as "$". */ export declare const DisplayType: { readonly Code: "code"; readonly Name: "name"; readonly NarrowSymbol: "narrowSymbol"; readonly Symbol: "symbol"; }; /** * How the currency should be displayed across the app. "code" will display the ISO currency code e.g. "USD", "name" will display the localized currency name e.g. "British pound", "narrowSymbol" will display "$1" instead of "US$1" and "symbol" will display a localized currency symbol such as "$". */ export type DisplayType = ClosedEnum<typeof DisplayType>; /** * Configuration available for attributes of type "currency". */ export type Currency = { /** * The ISO4217 code representing the currency that values for this attribute should be stored in. */ defaultCurrencyCode: DefaultCurrencyCode | null; /** * How the currency should be displayed across the app. "code" will display the ISO currency code e.g. "USD", "name" will display the localized currency name e.g. "British pound", "narrowSymbol" will display "$1" instead of "US$1" and "symbol" will display a localized currency symbol such as "$". */ displayType: DisplayType | null; }; /** * Configuration available for attributes of type "record-reference". */ export type RecordReference = { /** * A list of UUIDs to indicate which objects records are allowed to belong to. Leave empty to to allow records from all object types. */ allowedObjectIds: Array<string> | null; }; /** * Additional, type-dependent configuration for the attribute. */ export type Config = { /** * Configuration available for attributes of type "currency". */ currency: Currency; /** * Configuration available for attributes of type "record-reference". */ recordReference: RecordReference; }; export type Attribute = { id: AttributeId; /** * A title for the attribute, to be displayed across the app. */ title: string; /** * A text description of the attribute. */ description: string | null; /** * A unique slug for the attribute for use in API responses and URLs. Formatted in snake case. */ apiSlug: string; /** * The type of the attribute. */ type: AttributeType; /** * `true` if this is an Attio system-defined attribute, `false` if defined by a user or non-Attio system. */ isSystemAttribute: boolean; /** * Whether or not this attribute can be written to. Can only be false when `is_system_attribute` is `true` (user-defined attributes are always writeable). If `false`, this usually means the attribute is enriched by Attio. */ isWritable: boolean; /** * When `is_required` is `true`, new records/entries must have a value for this attribute. If `false`, values may be `null`. This value does not affect existing data and you do not need to backfill `null` values if changing `is_required` from `false` to `true`. */ isRequired: boolean; /** * Whether or not new values for this attribute must be unique. Uniqueness restrictions are only applied to new data and do not apply retroactively to previously created data. */ isUnique: boolean; /** * Whether or not this attribute can have multiple values. Multiselect is only available on some value types. */ isMultiselect: boolean; /** * Whether this attribute has a default value enabled. Must be `true` when `is_required` is `true`. */ isDefaultValueEnabled: boolean; /** * Whether this attribute has been archived. Archived attributes are hidden from most UI, but can be restored either over the API or in workspace settings. See the [guide on archiving and deleting](/docs/archiving-vs-deleting)for more information. */ isArchived: boolean; /** * The default value for this attribute. Static values are used to directly populate values using their contents. Dynamic values are used to lookup data at the point of creation. For example, you could use a dynamic value to insert a value for the currently logged in user. Which default values are available is dependent on the type of the attribute. */ defaultValue: DefaultValueDynamic | DefaultValueStatic | null; /** * If this attribute is related to another attribute, this is an object that includes an `id` property that identifies the other attribute. `null` means no relationship exists. See [the help center](https://attio.com/help/reference/managing-your-data/attributes#relationship-attributes) for more details about relationship attributes. */ relationship: Relationship | null; /** * When this attribute was created. */ createdAt: string; /** * Additional, type-dependent configuration for the attribute. */ config: Config; }; /** @internal */ export declare const AttributeId$inboundSchema: z.ZodType<AttributeId, z.ZodTypeDef, unknown>; /** @internal */ export type AttributeId$Outbound = { workspace_id: string; object_id: string; attribute_id: string; }; /** @internal */ export declare const AttributeId$outboundSchema: z.ZodType<AttributeId$Outbound, z.ZodTypeDef, AttributeId>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AttributeId$ { /** @deprecated use `AttributeId$inboundSchema` instead. */ const inboundSchema: z.ZodType<AttributeId, z.ZodTypeDef, unknown>; /** @deprecated use `AttributeId$outboundSchema` instead. */ const outboundSchema: z.ZodType<AttributeId$Outbound, z.ZodTypeDef, AttributeId>; /** @deprecated use `AttributeId$Outbound` instead. */ type Outbound = AttributeId$Outbound; } export declare function attributeIdToJSON(attributeId: AttributeId): string; export declare function attributeIdFromJSON(jsonString: string): SafeParseResult<AttributeId, SDKValidationError>; /** @internal */ export declare const AttributeType$inboundSchema: z.ZodNativeEnum<typeof AttributeType>; /** @internal */ export declare const AttributeType$outboundSchema: z.ZodNativeEnum<typeof AttributeType>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AttributeType$ { /** @deprecated use `AttributeType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Text: "text"; readonly Number: "number"; readonly Checkbox: "checkbox"; readonly Currency: "currency"; readonly Date: "date"; readonly Timestamp: "timestamp"; readonly Rating: "rating"; readonly Status: "status"; readonly Select: "select"; readonly RecordReference: "record-reference"; readonly ActorReference: "actor-reference"; readonly Location: "location"; readonly Domain: "domain"; readonly EmailAddress: "email-address"; readonly PhoneNumber: "phone-number"; readonly Interaction: "interaction"; readonly PersonalName: "personal-name"; }>; /** @deprecated use `AttributeType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Text: "text"; readonly Number: "number"; readonly Checkbox: "checkbox"; readonly Currency: "currency"; readonly Date: "date"; readonly Timestamp: "timestamp"; readonly Rating: "rating"; readonly Status: "status"; readonly Select: "select"; readonly RecordReference: "record-reference"; readonly ActorReference: "actor-reference"; readonly Location: "location"; readonly Domain: "domain"; readonly EmailAddress: "email-address"; readonly PhoneNumber: "phone-number"; readonly Interaction: "interaction"; readonly PersonalName: "personal-name"; }>; } /** @internal */ export declare const TypeStatic$inboundSchema: z.ZodNativeEnum<typeof TypeStatic>; /** @internal */ export declare const TypeStatic$outboundSchema: z.ZodNativeEnum<typeof TypeStatic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TypeStatic$ { /** @deprecated use `TypeStatic$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Static: "static"; }>; /** @deprecated use `TypeStatic$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Static: "static"; }>; } /** @internal */ export declare const DefaultValueStatic$inboundSchema: z.ZodType<DefaultValueStatic, z.ZodTypeDef, unknown>; /** @internal */ export type DefaultValueStatic$Outbound = { type: string; template: Array<OutputValue$Outbound>; }; /** @internal */ export declare const DefaultValueStatic$outboundSchema: z.ZodType<DefaultValueStatic$Outbound, z.ZodTypeDef, DefaultValueStatic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DefaultValueStatic$ { /** @deprecated use `DefaultValueStatic$inboundSchema` instead. */ const inboundSchema: z.ZodType<DefaultValueStatic, z.ZodTypeDef, unknown>; /** @deprecated use `DefaultValueStatic$outboundSchema` instead. */ const outboundSchema: z.ZodType<DefaultValueStatic$Outbound, z.ZodTypeDef, DefaultValueStatic>; /** @deprecated use `DefaultValueStatic$Outbound` instead. */ type Outbound = DefaultValueStatic$Outbound; } export declare function defaultValueStaticToJSON(defaultValueStatic: DefaultValueStatic): string; export declare function defaultValueStaticFromJSON(jsonString: string): SafeParseResult<DefaultValueStatic, SDKValidationError>; /** @internal */ export declare const TypeDynamic$inboundSchema: z.ZodNativeEnum<typeof TypeDynamic>; /** @internal */ export declare const TypeDynamic$outboundSchema: z.ZodNativeEnum<typeof TypeDynamic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TypeDynamic$ { /** @deprecated use `TypeDynamic$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Dynamic: "dynamic"; }>; /** @deprecated use `TypeDynamic$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Dynamic: "dynamic"; }>; } /** @internal */ export declare const Template$inboundSchema: z.ZodNativeEnum<typeof Template>; /** @internal */ export declare const Template$outboundSchema: z.ZodNativeEnum<typeof Template>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Template$ { /** @deprecated use `Template$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly CurrentUser: "current-user"; }>; /** @deprecated use `Template$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly CurrentUser: "current-user"; }>; } /** @internal */ export declare const DefaultValueDynamic$inboundSchema: z.ZodType<DefaultValueDynamic, z.ZodTypeDef, unknown>; /** @internal */ export type DefaultValueDynamic$Outbound = { type: string; template?: any | undefined; }; /** @internal */ export declare const DefaultValueDynamic$outboundSchema: z.ZodType<DefaultValueDynamic$Outbound, z.ZodTypeDef, DefaultValueDynamic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DefaultValueDynamic$ { /** @deprecated use `DefaultValueDynamic$inboundSchema` instead. */ const inboundSchema: z.ZodType<DefaultValueDynamic, z.ZodTypeDef, unknown>; /** @deprecated use `DefaultValueDynamic$outboundSchema` instead. */ const outboundSchema: z.ZodType<DefaultValueDynamic$Outbound, z.ZodTypeDef, DefaultValueDynamic>; /** @deprecated use `DefaultValueDynamic$Outbound` instead. */ type Outbound = DefaultValueDynamic$Outbound; } export declare function defaultValueDynamicToJSON(defaultValueDynamic: DefaultValueDynamic): string; export declare function defaultValueDynamicFromJSON(jsonString: string): SafeParseResult<DefaultValueDynamic, SDKValidationError>; /** @internal */ export declare const DefaultValue$inboundSchema: z.ZodType<DefaultValue, z.ZodTypeDef, unknown>; /** @internal */ export type DefaultValue$Outbound = DefaultValueDynamic$Outbound | DefaultValueStatic$Outbound; /** @internal */ export declare const DefaultValue$outboundSchema: z.ZodType<DefaultValue$Outbound, z.ZodTypeDef, DefaultValue>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DefaultValue$ { /** @deprecated use `DefaultValue$inboundSchema` instead. */ const inboundSchema: z.ZodType<DefaultValue, z.ZodTypeDef, unknown>; /** @deprecated use `DefaultValue$outboundSchema` instead. */ const outboundSchema: z.ZodType<DefaultValue$Outbound, z.ZodTypeDef, DefaultValue>; /** @deprecated use `DefaultValue$Outbound` instead. */ type Outbound = DefaultValue$Outbound; } export declare function defaultValueToJSON(defaultValue: DefaultValue): string; export declare function defaultValueFromJSON(jsonString: string): SafeParseResult<DefaultValue, SDKValidationError>; /** @internal */ export declare const RelationshipId$inboundSchema: z.ZodType<RelationshipId, z.ZodTypeDef, unknown>; /** @internal */ export type RelationshipId$Outbound = { workspace_id: string; object_id: string; attribute_id: string; }; /** @internal */ export declare const RelationshipId$outboundSchema: z.ZodType<RelationshipId$Outbound, z.ZodTypeDef, RelationshipId>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace RelationshipId$ { /** @deprecated use `RelationshipId$inboundSchema` instead. */ const inboundSchema: z.ZodType<RelationshipId, z.ZodTypeDef, unknown>; /** @deprecated use `RelationshipId$outboundSchema` instead. */ const outboundSchema: z.ZodType<RelationshipId$Outbound, z.ZodTypeDef, RelationshipId>; /** @deprecated use `RelationshipId$Outbound` instead. */ type Outbound = RelationshipId$Outbound; } export declare function relationshipIdToJSON(relationshipId: RelationshipId): string; export declare function relationshipIdFromJSON(jsonString: string): SafeParseResult<RelationshipId, SDKValidationError>; /** @internal */ export declare const Relationship$inboundSchema: z.ZodType<Relationship, z.ZodTypeDef, unknown>; /** @internal */ export type Relationship$Outbound = { id: RelationshipId$Outbound; }; /** @internal */ export declare const Relationship$outboundSchema: z.ZodType<Relationship$Outbound, z.ZodTypeDef, Relationship>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Relationship$ { /** @deprecated use `Relationship$inboundSchema` instead. */ const inboundSchema: z.ZodType<Relationship, z.ZodTypeDef, unknown>; /** @deprecated use `Relationship$outboundSchema` instead. */ const outboundSchema: z.ZodType<Relationship$Outbound, z.ZodTypeDef, Relationship>; /** @deprecated use `Relationship$Outbound` instead. */ type Outbound = Relationship$Outbound; } export declare function relationshipToJSON(relationship: Relationship): string; export declare function relationshipFromJSON(jsonString: string): SafeParseResult<Relationship, SDKValidationError>; /** @internal */ export declare const DefaultCurrencyCode$inboundSchema: z.ZodNativeEnum<typeof DefaultCurrencyCode>; /** @internal */ export declare const DefaultCurrencyCode$outboundSchema: z.ZodNativeEnum<typeof DefaultCurrencyCode>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DefaultCurrencyCode$ { /** @deprecated use `DefaultCurrencyCode$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Aud: "AUD"; readonly Brl: "BRL"; readonly Bel: "BEL"; readonly Cad: "CAD"; readonly Cny: "CNY"; readonly Cop: "COP"; readonly Czk: "CZK"; readonly Dkk: "DKK"; readonly Eur: "EUR"; readonly Hkd: "HKD"; readonly Isk: "ISK"; readonly Inr: "INR"; readonly Ils: "ILS"; readonly Jpy: "JPY"; readonly Krw: "KRW"; readonly Myr: "MYR"; readonly Mxn: "MXN"; readonly Ntd: "NTD"; readonly Nzd: "NZD"; readonly Ngn: "NGN"; readonly Nok: "NOK"; readonly Xpf: "XPF"; readonly Pen: "PEN"; readonly Php: "PHP"; readonly Pln: "PLN"; readonly Gbp: "GBP"; readonly Sar: "SAR"; readonly Sgd: "SGD"; readonly Zar: "ZAR"; readonly Sek: "SEK"; readonly Chf: "CHF"; readonly Aed: "AED"; readonly Usd: "USD"; }>; /** @deprecated use `DefaultCurrencyCode$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Aud: "AUD"; readonly Brl: "BRL"; readonly Bel: "BEL"; readonly Cad: "CAD"; readonly Cny: "CNY"; readonly Cop: "COP"; readonly Czk: "CZK"; readonly Dkk: "DKK"; readonly Eur: "EUR"; readonly Hkd: "HKD"; readonly Isk: "ISK"; readonly Inr: "INR"; readonly Ils: "ILS"; readonly Jpy: "JPY"; readonly Krw: "KRW"; readonly Myr: "MYR"; readonly Mxn: "MXN"; readonly Ntd: "NTD"; readonly Nzd: "NZD"; readonly Ngn: "NGN"; readonly Nok: "NOK"; readonly Xpf: "XPF"; readonly Pen: "PEN"; readonly Php: "PHP"; readonly Pln: "PLN"; readonly Gbp: "GBP"; readonly Sar: "SAR"; readonly Sgd: "SGD"; readonly Zar: "ZAR"; readonly Sek: "SEK"; readonly Chf: "CHF"; readonly Aed: "AED"; readonly Usd: "USD"; }>; } /** @internal */ export declare const DisplayType$inboundSchema: z.ZodNativeEnum<typeof DisplayType>; /** @internal */ export declare const DisplayType$outboundSchema: z.ZodNativeEnum<typeof DisplayType>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DisplayType$ { /** @deprecated use `DisplayType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Code: "code"; readonly Name: "name"; readonly NarrowSymbol: "narrowSymbol"; readonly Symbol: "symbol"; }>; /** @deprecated use `DisplayType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Code: "code"; readonly Name: "name"; readonly NarrowSymbol: "narrowSymbol"; readonly Symbol: "symbol"; }>; } /** @internal */ export declare const Currency$inboundSchema: z.ZodType<Currency, z.ZodTypeDef, unknown>; /** @internal */ export type Currency$Outbound = { default_currency_code: string | null; display_type: string | null; }; /** @internal */ export declare const Currency$outboundSchema: z.ZodType<Currency$Outbound, z.ZodTypeDef, Currency>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Currency$ { /** @deprecated use `Currency$inboundSchema` instead. */ const inboundSchema: z.ZodType<Currency, z.ZodTypeDef, unknown>; /** @deprecated use `Currency$outboundSchema` instead. */ const outboundSchema: z.ZodType<Currency$Outbound, z.ZodTypeDef, Currency>; /** @deprecated use `Currency$Outbound` instead. */ type Outbound = Currency$Outbound; } export declare function currencyToJSON(currency: Currency): string; export declare function currencyFromJSON(jsonString: string): SafeParseResult<Currency, SDKValidationError>; /** @internal */ export declare const RecordReference$inboundSchema: z.ZodType<RecordReference, z.ZodTypeDef, unknown>; /** @internal */ export type RecordReference$Outbound = { allowed_object_ids: Array<string> | null; }; /** @internal */ export declare const RecordReference$outboundSchema: z.ZodType<RecordReference$Outbound, z.ZodTypeDef, RecordReference>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace RecordReference$ { /** @deprecated use `RecordReference$inboundSchema` instead. */ const inboundSchema: z.ZodType<RecordReference, z.ZodTypeDef, unknown>; /** @deprecated use `RecordReference$outboundSchema` instead. */ const outboundSchema: z.ZodType<RecordReference$Outbound, z.ZodTypeDef, RecordReference>; /** @deprecated use `RecordReference$Outbound` instead. */ type Outbound = RecordReference$Outbound; } export declare function recordReferenceToJSON(recordReference: RecordReference): string; export declare function recordReferenceFromJSON(jsonString: string): SafeParseResult<RecordReference, SDKValidationError>; /** @internal */ export declare const Config$inboundSchema: z.ZodType<Config, z.ZodTypeDef, unknown>; /** @internal */ export type Config$Outbound = { currency: Currency$Outbound; record_reference: RecordReference$Outbound; }; /** @internal */ export declare const Config$outboundSchema: z.ZodType<Config$Outbound, z.ZodTypeDef, Config>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Config$ { /** @deprecated use `Config$inboundSchema` instead. */ const inboundSchema: z.ZodType<Config, z.ZodTypeDef, unknown>; /** @deprecated use `Config$outboundSchema` instead. */ const outboundSchema: z.ZodType<Config$Outbound, z.ZodTypeDef, Config>; /** @deprecated use `Config$Outbound` instead. */ type Outbound = Config$Outbound; } export declare function configToJSON(config: Config): string; export declare function configFromJSON(jsonString: string): SafeParseResult<Config, SDKValidationError>; /** @internal */ export declare const Attribute$inboundSchema: z.ZodType<Attribute, z.ZodTypeDef, unknown>; /** @internal */ export type Attribute$Outbound = { id: AttributeId$Outbound; title: string; description: string | null; api_slug: string; type: string; is_system_attribute: boolean; is_writable: boolean; is_required: boolean; is_unique: boolean; is_multiselect: boolean; is_default_value_enabled: boolean; is_archived: boolean; default_value: DefaultValueDynamic$Outbound | DefaultValueStatic$Outbound | null; relationship: Relationship$Outbound | null; created_at: string; config: Config$Outbound; }; /** @internal */ export declare const Attribute$outboundSchema: z.ZodType<Attribute$Outbound, z.ZodTypeDef, Attribute>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Attribute$ { /** @deprecated use `Attribute$inboundSchema` instead. */ const inboundSchema: z.ZodType<Attribute, z.ZodTypeDef, unknown>; /** @deprecated use `Attribute$outboundSchema` instead. */ const outboundSchema: z.ZodType<Attribute$Outbound, z.ZodTypeDef, Attribute>; /** @deprecated use `Attribute$Outbound` instead. */ type Outbound = Attribute$Outbound; } export declare function attributeToJSON(attribute: Attribute): string; export declare function attributeFromJSON(jsonString: string): SafeParseResult<Attribute, SDKValidationError>; //# sourceMappingURL=attribute.d.ts.map