UNPKG

attio-js

Version:

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

669 lines 37.7 kB
import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { Attribute, Attribute$Outbound } from "../components/attribute.js"; import { InputValueUnion, InputValueUnion$Outbound } from "../components/inputvalueunion.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Whether the attribute is to be created on an object or a list. */ export declare const PostV2TargetIdentifierAttributesTarget: { readonly Objects: "objects"; readonly Lists: "lists"; }; /** * Whether the attribute is to be created on an object or a list. */ export type PostV2TargetIdentifierAttributesTarget = ClosedEnum<typeof PostV2TargetIdentifierAttributesTarget>; /** * The type of the attribute. This value affects the possible `config` values. Attributes of type "status" are not supported on objects. */ export declare const PostV2TargetIdentifierAttributesType: { 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"; }; /** * The type of the attribute. This value affects the possible `config` values. Attributes of type "status" are not supported on objects. */ export type PostV2TargetIdentifierAttributesType = ClosedEnum<typeof PostV2TargetIdentifierAttributesType>; export declare const PostV2TargetIdentifierAttributesTypeStatic: { readonly Static: "static"; }; export type PostV2TargetIdentifierAttributesTypeStatic = ClosedEnum<typeof PostV2TargetIdentifierAttributesTypeStatic>; export type PostV2TargetIdentifierAttributesDefaultValueStatic = { type: PostV2TargetIdentifierAttributesTypeStatic; template: Array<InputValueUnion>; }; export declare const PostV2TargetIdentifierAttributesTypeDynamic: { readonly Dynamic: "dynamic"; }; export type PostV2TargetIdentifierAttributesTypeDynamic = ClosedEnum<typeof PostV2TargetIdentifierAttributesTypeDynamic>; /** * 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 PostV2TargetIdentifierAttributesTemplate: { 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 PostV2TargetIdentifierAttributesTemplate = ClosedEnum<typeof PostV2TargetIdentifierAttributesTemplate>; export type PostV2TargetIdentifierAttributesDefaultValueDynamic = { type: PostV2TargetIdentifierAttributesTypeDynamic; 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. Default values are not currently supported on people or company objects. */ export type PostV2TargetIdentifierAttributesDefaultValueUnion = PostV2TargetIdentifierAttributesDefaultValueDynamic | PostV2TargetIdentifierAttributesDefaultValueStatic; /** * The ISO4217 code representing the currency that values for this attribute should be stored in. */ export declare const PostV2TargetIdentifierAttributesDefaultCurrencyCode: { 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 PostV2TargetIdentifierAttributesDefaultCurrencyCode = ClosedEnum<typeof PostV2TargetIdentifierAttributesDefaultCurrencyCode>; /** * 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 PostV2TargetIdentifierAttributesDisplayType: { 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 PostV2TargetIdentifierAttributesDisplayType = ClosedEnum<typeof PostV2TargetIdentifierAttributesDisplayType>; /** * Configuration available for attributes of type "currency". */ export type PostV2TargetIdentifierAttributesCurrency = { /** * The ISO4217 code representing the currency that values for this attribute should be stored in. */ defaultCurrencyCode: PostV2TargetIdentifierAttributesDefaultCurrencyCode; /** * 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: PostV2TargetIdentifierAttributesDisplayType; }; /** * Configuration available for attributes of type "record-reference". */ export type PostV2TargetIdentifierAttributesRecordReference = { /** * A list of slugs or UUIDs to indicate which objects records are allowed to belong to. Leave empty to to allow records from all object types. */ allowedObjects: Array<string>; }; export type PostV2TargetIdentifierAttributesConfig = { /** * Configuration available for attributes of type "currency". */ currency?: PostV2TargetIdentifierAttributesCurrency | undefined; /** * Configuration available for attributes of type "record-reference". */ recordReference?: PostV2TargetIdentifierAttributesRecordReference | undefined; }; export type PostV2TargetIdentifierAttributesData = { /** * The name of the attribute. The title will be visible across Attio's UI. */ title: string; /** * A text description for the attribute. */ description: string | null; /** * A unique, human-readable slug to access the attribute through URLs and API calls. Formatted in snake case. */ apiSlug: string; /** * The type of the attribute. This value affects the possible `config` values. Attributes of type "status" are not supported on objects. */ type: PostV2TargetIdentifierAttributesType; /** * 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; /** * 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. Default values are not currently supported on people or company objects. */ defaultValue?: PostV2TargetIdentifierAttributesDefaultValueDynamic | PostV2TargetIdentifierAttributesDefaultValueStatic | null | undefined; config: PostV2TargetIdentifierAttributesConfig; }; export type PostV2TargetIdentifierAttributesRequestBody = { data: PostV2TargetIdentifierAttributesData; }; export type PostV2TargetIdentifierAttributesRequest = { /** * Whether the attribute is to be created on an object or a list. */ target: PostV2TargetIdentifierAttributesTarget; identifier: string; requestBody: PostV2TargetIdentifierAttributesRequestBody; }; /** * Success */ export type PostV2TargetIdentifierAttributesResponse = { data: Attribute; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesTarget$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTarget>; /** @internal */ export declare const PostV2TargetIdentifierAttributesTarget$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTarget>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesTarget$ { /** @deprecated use `PostV2TargetIdentifierAttributesTarget$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesTarget$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Objects: "objects"; readonly Lists: "lists"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesType$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesType>; /** @internal */ export declare const PostV2TargetIdentifierAttributesType$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesType>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesType$ { /** @deprecated use `PostV2TargetIdentifierAttributesType$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"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesType$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"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesTypeStatic$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTypeStatic>; /** @internal */ export declare const PostV2TargetIdentifierAttributesTypeStatic$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTypeStatic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesTypeStatic$ { /** @deprecated use `PostV2TargetIdentifierAttributesTypeStatic$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Static: "static"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesTypeStatic$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Static: "static"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultValueStatic$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueStatic, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound = { type: string; template: Array<InputValueUnion$Outbound>; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultValueStatic$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesDefaultValueStatic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesDefaultValueStatic$ { /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueStatic$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueStatic, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueStatic$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesDefaultValueStatic>; /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound; } export declare function postV2TargetIdentifierAttributesDefaultValueStaticToJSON(postV2TargetIdentifierAttributesDefaultValueStatic: PostV2TargetIdentifierAttributesDefaultValueStatic): string; export declare function postV2TargetIdentifierAttributesDefaultValueStaticFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesDefaultValueStatic, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesTypeDynamic$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTypeDynamic>; /** @internal */ export declare const PostV2TargetIdentifierAttributesTypeDynamic$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTypeDynamic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesTypeDynamic$ { /** @deprecated use `PostV2TargetIdentifierAttributesTypeDynamic$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Dynamic: "dynamic"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesTypeDynamic$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Dynamic: "dynamic"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesTemplate$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTemplate>; /** @internal */ export declare const PostV2TargetIdentifierAttributesTemplate$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesTemplate>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesTemplate$ { /** @deprecated use `PostV2TargetIdentifierAttributesTemplate$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly CurrentUser: "current-user"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesTemplate$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly CurrentUser: "current-user"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultValueDynamic$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueDynamic, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound = { type: string; template?: any | undefined; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultValueDynamic$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesDefaultValueDynamic>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesDefaultValueDynamic$ { /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueDynamic$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueDynamic, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueDynamic$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesDefaultValueDynamic>; /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound; } export declare function postV2TargetIdentifierAttributesDefaultValueDynamicToJSON(postV2TargetIdentifierAttributesDefaultValueDynamic: PostV2TargetIdentifierAttributesDefaultValueDynamic): string; export declare function postV2TargetIdentifierAttributesDefaultValueDynamicFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesDefaultValueDynamic, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultValueUnion$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueUnion, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesDefaultValueUnion$Outbound = PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound | PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound; /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultValueUnion$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueUnion$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesDefaultValueUnion>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesDefaultValueUnion$ { /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueUnion$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueUnion, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueUnion$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesDefaultValueUnion$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesDefaultValueUnion>; /** @deprecated use `PostV2TargetIdentifierAttributesDefaultValueUnion$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesDefaultValueUnion$Outbound; } export declare function postV2TargetIdentifierAttributesDefaultValueUnionToJSON(postV2TargetIdentifierAttributesDefaultValueUnion: PostV2TargetIdentifierAttributesDefaultValueUnion): string; export declare function postV2TargetIdentifierAttributesDefaultValueUnionFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesDefaultValueUnion, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultCurrencyCode$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesDefaultCurrencyCode>; /** @internal */ export declare const PostV2TargetIdentifierAttributesDefaultCurrencyCode$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesDefaultCurrencyCode>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesDefaultCurrencyCode$ { /** @deprecated use `PostV2TargetIdentifierAttributesDefaultCurrencyCode$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 `PostV2TargetIdentifierAttributesDefaultCurrencyCode$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 PostV2TargetIdentifierAttributesDisplayType$inboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesDisplayType>; /** @internal */ export declare const PostV2TargetIdentifierAttributesDisplayType$outboundSchema: z.ZodNativeEnum<typeof PostV2TargetIdentifierAttributesDisplayType>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesDisplayType$ { /** @deprecated use `PostV2TargetIdentifierAttributesDisplayType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Code: "code"; readonly Name: "name"; readonly NarrowSymbol: "narrowSymbol"; readonly Symbol: "symbol"; }>; /** @deprecated use `PostV2TargetIdentifierAttributesDisplayType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Code: "code"; readonly Name: "name"; readonly NarrowSymbol: "narrowSymbol"; readonly Symbol: "symbol"; }>; } /** @internal */ export declare const PostV2TargetIdentifierAttributesCurrency$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesCurrency, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesCurrency$Outbound = { default_currency_code: string; display_type: string; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesCurrency$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesCurrency$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesCurrency>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesCurrency$ { /** @deprecated use `PostV2TargetIdentifierAttributesCurrency$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesCurrency, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesCurrency$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesCurrency$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesCurrency>; /** @deprecated use `PostV2TargetIdentifierAttributesCurrency$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesCurrency$Outbound; } export declare function postV2TargetIdentifierAttributesCurrencyToJSON(postV2TargetIdentifierAttributesCurrency: PostV2TargetIdentifierAttributesCurrency): string; export declare function postV2TargetIdentifierAttributesCurrencyFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesCurrency, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesRecordReference$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRecordReference, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesRecordReference$Outbound = { allowed_objects: Array<string>; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesRecordReference$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRecordReference$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesRecordReference>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesRecordReference$ { /** @deprecated use `PostV2TargetIdentifierAttributesRecordReference$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRecordReference, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesRecordReference$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRecordReference$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesRecordReference>; /** @deprecated use `PostV2TargetIdentifierAttributesRecordReference$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesRecordReference$Outbound; } export declare function postV2TargetIdentifierAttributesRecordReferenceToJSON(postV2TargetIdentifierAttributesRecordReference: PostV2TargetIdentifierAttributesRecordReference): string; export declare function postV2TargetIdentifierAttributesRecordReferenceFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesRecordReference, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesConfig$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesConfig, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesConfig$Outbound = { currency?: PostV2TargetIdentifierAttributesCurrency$Outbound | undefined; record_reference?: PostV2TargetIdentifierAttributesRecordReference$Outbound | undefined; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesConfig$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesConfig$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesConfig>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesConfig$ { /** @deprecated use `PostV2TargetIdentifierAttributesConfig$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesConfig, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesConfig$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesConfig$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesConfig>; /** @deprecated use `PostV2TargetIdentifierAttributesConfig$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesConfig$Outbound; } export declare function postV2TargetIdentifierAttributesConfigToJSON(postV2TargetIdentifierAttributesConfig: PostV2TargetIdentifierAttributesConfig): string; export declare function postV2TargetIdentifierAttributesConfigFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesConfig, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesData$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesData, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesData$Outbound = { title: string; description: string | null; api_slug: string; type: string; is_required: boolean; is_unique: boolean; is_multiselect: boolean; default_value?: PostV2TargetIdentifierAttributesDefaultValueDynamic$Outbound | PostV2TargetIdentifierAttributesDefaultValueStatic$Outbound | null | undefined; config: PostV2TargetIdentifierAttributesConfig$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesData$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesData$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesData>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesData$ { /** @deprecated use `PostV2TargetIdentifierAttributesData$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesData, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesData$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesData$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesData>; /** @deprecated use `PostV2TargetIdentifierAttributesData$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesData$Outbound; } export declare function postV2TargetIdentifierAttributesDataToJSON(postV2TargetIdentifierAttributesData: PostV2TargetIdentifierAttributesData): string; export declare function postV2TargetIdentifierAttributesDataFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesData, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesRequestBody$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequestBody, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesRequestBody$Outbound = { data: PostV2TargetIdentifierAttributesData$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesRequestBody$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequestBody$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesRequestBody>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesRequestBody$ { /** @deprecated use `PostV2TargetIdentifierAttributesRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequestBody, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequestBody$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesRequestBody>; /** @deprecated use `PostV2TargetIdentifierAttributesRequestBody$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesRequestBody$Outbound; } export declare function postV2TargetIdentifierAttributesRequestBodyToJSON(postV2TargetIdentifierAttributesRequestBody: PostV2TargetIdentifierAttributesRequestBody): string; export declare function postV2TargetIdentifierAttributesRequestBodyFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesRequestBody, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesRequest$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequest, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesRequest$Outbound = { target: string; identifier: string; RequestBody: PostV2TargetIdentifierAttributesRequestBody$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesRequest$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequest$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesRequest>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesRequest$ { /** @deprecated use `PostV2TargetIdentifierAttributesRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequest, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesRequest$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesRequest>; /** @deprecated use `PostV2TargetIdentifierAttributesRequest$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesRequest$Outbound; } export declare function postV2TargetIdentifierAttributesRequestToJSON(postV2TargetIdentifierAttributesRequest: PostV2TargetIdentifierAttributesRequest): string; export declare function postV2TargetIdentifierAttributesRequestFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesRequest, SDKValidationError>; /** @internal */ export declare const PostV2TargetIdentifierAttributesResponse$inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesResponse, z.ZodTypeDef, unknown>; /** @internal */ export type PostV2TargetIdentifierAttributesResponse$Outbound = { data: Attribute$Outbound; }; /** @internal */ export declare const PostV2TargetIdentifierAttributesResponse$outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesResponse$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesResponse>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PostV2TargetIdentifierAttributesResponse$ { /** @deprecated use `PostV2TargetIdentifierAttributesResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType<PostV2TargetIdentifierAttributesResponse, z.ZodTypeDef, unknown>; /** @deprecated use `PostV2TargetIdentifierAttributesResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType<PostV2TargetIdentifierAttributesResponse$Outbound, z.ZodTypeDef, PostV2TargetIdentifierAttributesResponse>; /** @deprecated use `PostV2TargetIdentifierAttributesResponse$Outbound` instead. */ type Outbound = PostV2TargetIdentifierAttributesResponse$Outbound; } export declare function postV2TargetIdentifierAttributesResponseToJSON(postV2TargetIdentifierAttributesResponse: PostV2TargetIdentifierAttributesResponse): string; export declare function postV2TargetIdentifierAttributesResponseFromJSON(jsonString: string): SafeParseResult<PostV2TargetIdentifierAttributesResponse, SDKValidationError>; //# sourceMappingURL=postv2targetidentifierattributes.d.ts.map