attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
602 lines • 37.7 kB
TypeScript
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 on an object or a list.
*/
export declare const PatchV2TargetIdentifierAttributesAttributeTarget: {
readonly Objects: "objects";
readonly Lists: "lists";
};
/**
* Whether the attribute is on an object or a list.
*/
export type PatchV2TargetIdentifierAttributesAttributeTarget = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeTarget>;
export declare const PatchV2TargetIdentifierAttributesAttributeTypeStatic: {
readonly Static: "static";
};
export type PatchV2TargetIdentifierAttributesAttributeTypeStatic = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeTypeStatic>;
export type PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic = {
type: PatchV2TargetIdentifierAttributesAttributeTypeStatic;
template: Array<InputValueUnion>;
};
export declare const PatchV2TargetIdentifierAttributesAttributeTypeDynamic: {
readonly Dynamic: "dynamic";
};
export type PatchV2TargetIdentifierAttributesAttributeTypeDynamic = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeTypeDynamic>;
/**
* 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 PatchV2TargetIdentifierAttributesAttributeTemplate: {
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 PatchV2TargetIdentifierAttributesAttributeTemplate = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeTemplate>;
export type PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic = {
type: PatchV2TargetIdentifierAttributesAttributeTypeDynamic;
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 PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion = PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic | PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic;
/**
* The ISO4217 code representing the currency that values for this attribute should be stored in.
*/
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode: {
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 PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode>;
/**
* 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 PatchV2TargetIdentifierAttributesAttributeDisplayType: {
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 PatchV2TargetIdentifierAttributesAttributeDisplayType = ClosedEnum<typeof PatchV2TargetIdentifierAttributesAttributeDisplayType>;
/**
* Configuration available for attributes of type "currency".
*/
export type PatchV2TargetIdentifierAttributesAttributeCurrency = {
/**
* The ISO4217 code representing the currency that values for this attribute should be stored in.
*/
defaultCurrencyCode: PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode;
/**
* 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: PatchV2TargetIdentifierAttributesAttributeDisplayType;
};
/**
* Configuration available for attributes of type "record-reference".
*/
export type PatchV2TargetIdentifierAttributesAttributeRecordReference = {
/**
* 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>;
};
/**
* Additional, type-dependent configuration for the attribute.
*/
export type PatchV2TargetIdentifierAttributesAttributeConfig = {
/**
* Configuration available for attributes of type "currency".
*/
currency?: PatchV2TargetIdentifierAttributesAttributeCurrency | undefined;
/**
* Configuration available for attributes of type "record-reference".
*/
recordReference?: PatchV2TargetIdentifierAttributesAttributeRecordReference | undefined;
};
export type PatchV2TargetIdentifierAttributesAttributeData = {
/**
* The name of the attribute. The title will be visible across Attio's UI.
*/
title?: string | undefined;
/**
* A text description for the attribute.
*/
description?: string | null | undefined;
/**
* A unique, human-readable slug to access the attribute through URLs and API calls. Formatted in snake case.
*/
apiSlug?: string | undefined;
/**
* 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 | undefined;
/**
* 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 | 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.
*/
defaultValue?: PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic | PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic | null | undefined;
/**
* Additional, type-dependent configuration for the attribute.
*/
config?: PatchV2TargetIdentifierAttributesAttributeConfig | undefined;
/**
* Whether the attribute has been archived or not. See our [archiving guide](/docs/archiving-vs-deleting) for more information on archiving.
*/
isArchived?: boolean | undefined;
};
export type PatchV2TargetIdentifierAttributesAttributeRequestBody = {
data: PatchV2TargetIdentifierAttributesAttributeData;
};
export type PatchV2TargetIdentifierAttributesAttributeRequest = {
/**
* Whether the attribute is on an object or a list.
*/
target: PatchV2TargetIdentifierAttributesAttributeTarget;
identifier: string;
attribute: string;
requestBody: PatchV2TargetIdentifierAttributesAttributeRequestBody;
};
/**
* Success
*/
export type PatchV2TargetIdentifierAttributesAttributeResponse = {
data: Attribute;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTarget$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTarget>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTarget$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTarget>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeTarget$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTarget$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Objects: "objects";
readonly Lists: "lists";
}>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTarget$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Objects: "objects";
readonly Lists: "lists";
}>;
}
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTypeStatic$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTypeStatic>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTypeStatic$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTypeStatic>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeTypeStatic$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTypeStatic$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Static: "static";
}>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTypeStatic$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Static: "static";
}>;
}
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound = {
type: string;
template: Array<InputValueUnion$Outbound>;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeDefaultValueStaticToJSON(patchV2TargetIdentifierAttributesAttributeDefaultValueStatic: PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic): string;
export declare function patchV2TargetIdentifierAttributesAttributeDefaultValueStaticFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTypeDynamic$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTypeDynamic>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTypeDynamic$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTypeDynamic>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeTypeDynamic$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTypeDynamic$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Dynamic: "dynamic";
}>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTypeDynamic$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Dynamic: "dynamic";
}>;
}
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTemplate$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTemplate>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeTemplate$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeTemplate>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeTemplate$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTemplate$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly CurrentUser: "current-user";
}>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeTemplate$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly CurrentUser: "current-user";
}>;
}
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound = {
type: string;
template?: any | undefined;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeDefaultValueDynamicToJSON(patchV2TargetIdentifierAttributesAttributeDefaultValueDynamic: PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic): string;
export declare function patchV2TargetIdentifierAttributesAttributeDefaultValueDynamicFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$Outbound = PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound | PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeDefaultValueUnionToJSON(patchV2TargetIdentifierAttributesAttributeDefaultValueUnion: PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion): string;
export declare function patchV2TargetIdentifierAttributesAttributeDefaultValueUnionFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeDefaultValueUnion, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode$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 `PatchV2TargetIdentifierAttributesAttributeDefaultCurrencyCode$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 PatchV2TargetIdentifierAttributesAttributeDisplayType$inboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeDisplayType>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeDisplayType$outboundSchema: z.ZodNativeEnum<typeof PatchV2TargetIdentifierAttributesAttributeDisplayType>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeDisplayType$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDisplayType$inboundSchema` instead. */
const inboundSchema: z.ZodNativeEnum<{
readonly Code: "code";
readonly Name: "name";
readonly NarrowSymbol: "narrowSymbol";
readonly Symbol: "symbol";
}>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeDisplayType$outboundSchema` instead. */
const outboundSchema: z.ZodNativeEnum<{
readonly Code: "code";
readonly Name: "name";
readonly NarrowSymbol: "narrowSymbol";
readonly Symbol: "symbol";
}>;
}
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeCurrency$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeCurrency, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeCurrency$Outbound = {
default_currency_code: string;
display_type: string;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeCurrency$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeCurrency$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeCurrency>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeCurrency$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeCurrency$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeCurrency, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeCurrency$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeCurrency$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeCurrency>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeCurrency$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeCurrency$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeCurrencyToJSON(patchV2TargetIdentifierAttributesAttributeCurrency: PatchV2TargetIdentifierAttributesAttributeCurrency): string;
export declare function patchV2TargetIdentifierAttributesAttributeCurrencyFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeCurrency, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeRecordReference$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRecordReference, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeRecordReference$Outbound = {
allowed_objects: Array<string>;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeRecordReference$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRecordReference$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeRecordReference>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeRecordReference$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRecordReference$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRecordReference, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRecordReference$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRecordReference$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeRecordReference>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRecordReference$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeRecordReference$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeRecordReferenceToJSON(patchV2TargetIdentifierAttributesAttributeRecordReference: PatchV2TargetIdentifierAttributesAttributeRecordReference): string;
export declare function patchV2TargetIdentifierAttributesAttributeRecordReferenceFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeRecordReference, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeConfig$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeConfig, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeConfig$Outbound = {
currency?: PatchV2TargetIdentifierAttributesAttributeCurrency$Outbound | undefined;
record_reference?: PatchV2TargetIdentifierAttributesAttributeRecordReference$Outbound | undefined;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeConfig$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeConfig$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeConfig>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeConfig$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeConfig$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeConfig, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeConfig$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeConfig$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeConfig>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeConfig$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeConfig$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeConfigToJSON(patchV2TargetIdentifierAttributesAttributeConfig: PatchV2TargetIdentifierAttributesAttributeConfig): string;
export declare function patchV2TargetIdentifierAttributesAttributeConfigFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeConfig, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeData$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeData, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeData$Outbound = {
title?: string | undefined;
description?: string | null | undefined;
api_slug?: string | undefined;
is_required?: boolean | undefined;
is_unique?: boolean | undefined;
default_value?: PatchV2TargetIdentifierAttributesAttributeDefaultValueDynamic$Outbound | PatchV2TargetIdentifierAttributesAttributeDefaultValueStatic$Outbound | null | undefined;
config?: PatchV2TargetIdentifierAttributesAttributeConfig$Outbound | undefined;
is_archived?: boolean | undefined;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeData$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeData$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeData>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeData$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeData$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeData, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeData$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeData$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeData>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeData$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeData$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeDataToJSON(patchV2TargetIdentifierAttributesAttributeData: PatchV2TargetIdentifierAttributesAttributeData): string;
export declare function patchV2TargetIdentifierAttributesAttributeDataFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeData, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeRequestBody$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequestBody, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeRequestBody$Outbound = {
data: PatchV2TargetIdentifierAttributesAttributeData$Outbound;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeRequestBody$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequestBody$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeRequestBody>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeRequestBody$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRequestBody$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequestBody, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRequestBody$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequestBody$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeRequestBody>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRequestBody$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeRequestBody$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeRequestBodyToJSON(patchV2TargetIdentifierAttributesAttributeRequestBody: PatchV2TargetIdentifierAttributesAttributeRequestBody): string;
export declare function patchV2TargetIdentifierAttributesAttributeRequestBodyFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeRequestBody, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeRequest$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeRequest$Outbound = {
target: string;
identifier: string;
attribute: string;
RequestBody: PatchV2TargetIdentifierAttributesAttributeRequestBody$Outbound;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeRequest$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequest$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeRequest>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeRequest$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRequest$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequest, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRequest$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeRequest$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeRequest>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeRequest$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeRequest$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeRequestToJSON(patchV2TargetIdentifierAttributesAttributeRequest: PatchV2TargetIdentifierAttributesAttributeRequest): string;
export declare function patchV2TargetIdentifierAttributesAttributeRequestFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeRequest, SDKValidationError>;
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeResponse$inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type PatchV2TargetIdentifierAttributesAttributeResponse$Outbound = {
data: Attribute$Outbound;
};
/** @internal */
export declare const PatchV2TargetIdentifierAttributesAttributeResponse$outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeResponse$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PatchV2TargetIdentifierAttributesAttributeResponse$ {
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<PatchV2TargetIdentifierAttributesAttributeResponse$Outbound, z.ZodTypeDef, PatchV2TargetIdentifierAttributesAttributeResponse>;
/** @deprecated use `PatchV2TargetIdentifierAttributesAttributeResponse$Outbound` instead. */
type Outbound = PatchV2TargetIdentifierAttributesAttributeResponse$Outbound;
}
export declare function patchV2TargetIdentifierAttributesAttributeResponseToJSON(patchV2TargetIdentifierAttributesAttributeResponse: PatchV2TargetIdentifierAttributesAttributeResponse): string;
export declare function patchV2TargetIdentifierAttributesAttributeResponseFromJSON(jsonString: string): SafeParseResult<PatchV2TargetIdentifierAttributesAttributeResponse, SDKValidationError>;
//# sourceMappingURL=patchv2targetidentifierattributesattribute.d.ts.map