attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
1,533 lines • 68.3 kB
JavaScript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { SelectOption$inboundSchema, SelectOption$outboundSchema, } from "./selectoption.js";
import { Status$inboundSchema, Status$outboundSchema, } from "./status.js";
/**
* The attribute type of the value.
*/
export const AttributeTypeTimestamp = {
Timestamp: "timestamp",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeText = {
Text: "text",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeSelect2 = {
Select: "select",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeSelect1 = {
Select: "select",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeRating = {
Rating: "rating",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeStatus2 = {
Status: "status",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeStatus1 = {
Status: "status",
};
/**
* The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
*/
export const OutputValueCountryCode2 = {
Af: "AF",
Ax: "AX",
Al: "AL",
Dz: "DZ",
As: "AS",
Ad: "AD",
Ao: "AO",
Ai: "AI",
Aq: "AQ",
Ag: "AG",
Ar: "AR",
Am: "AM",
Aw: "AW",
Au: "AU",
At: "AT",
Az: "AZ",
Bs: "BS",
Bh: "BH",
Bd: "BD",
Bb: "BB",
By: "BY",
Be: "BE",
Bz: "BZ",
Bj: "BJ",
Bm: "BM",
Bt: "BT",
Bo: "BO",
Ba: "BA",
Bw: "BW",
Bv: "BV",
Br: "BR",
Io: "IO",
Bn: "BN",
Bg: "BG",
Bf: "BF",
Bi: "BI",
Kh: "KH",
Cm: "CM",
Ca: "CA",
Cv: "CV",
Ky: "KY",
Cf: "CF",
Td: "TD",
Cl: "CL",
Cn: "CN",
Cx: "CX",
Cc: "CC",
Co: "CO",
Km: "KM",
Cg: "CG",
Cd: "CD",
Ck: "CK",
Cr: "CR",
Ci: "CI",
Hr: "HR",
Cu: "CU",
Cw: "CW",
Cy: "CY",
Cz: "CZ",
Dk: "DK",
Dj: "DJ",
Dm: "DM",
Do: "DO",
Ec: "EC",
Eg: "EG",
Sv: "SV",
Gq: "GQ",
Er: "ER",
Ee: "EE",
Et: "ET",
Fk: "FK",
Fo: "FO",
Fj: "FJ",
Fi: "FI",
Fr: "FR",
Gf: "GF",
Pf: "PF",
Tf: "TF",
Ga: "GA",
Gm: "GM",
Ge: "GE",
De: "DE",
Gh: "GH",
Gi: "GI",
Gr: "GR",
Gl: "GL",
Gd: "GD",
Gp: "GP",
Gu: "GU",
Gt: "GT",
Gg: "GG",
Gn: "GN",
Gw: "GW",
Gy: "GY",
Ht: "HT",
Hm: "HM",
Va: "VA",
Hn: "HN",
Hk: "HK",
Hu: "HU",
Is: "IS",
In: "IN",
Id: "ID",
Ir: "IR",
Iq: "IQ",
Ie: "IE",
Im: "IM",
Il: "IL",
It: "IT",
Jm: "JM",
Jp: "JP",
Je: "JE",
Jo: "JO",
Kz: "KZ",
Ke: "KE",
Ki: "KI",
Kr: "KR",
Kw: "KW",
Kg: "KG",
La: "LA",
Lv: "LV",
Lb: "LB",
Ls: "LS",
Lr: "LR",
Ly: "LY",
Li: "LI",
Lt: "LT",
Lu: "LU",
Mo: "MO",
Mk: "MK",
Mg: "MG",
Mw: "MW",
My: "MY",
Mv: "MV",
Ml: "ML",
Mt: "MT",
Mh: "MH",
Mq: "MQ",
Mr: "MR",
Mu: "MU",
Yt: "YT",
Mx: "MX",
Fm: "FM",
Md: "MD",
Mc: "MC",
Mn: "MN",
Me: "ME",
Ms: "MS",
Ma: "MA",
Mz: "MZ",
Mm: "MM",
Na: "NA",
Nr: "NR",
Np: "NP",
Nl: "NL",
An: "AN",
Nc: "NC",
Nz: "NZ",
Ni: "NI",
Ne: "NE",
Ng: "NG",
Nu: "NU",
Nf: "NF",
Mp: "MP",
No: "NO",
Om: "OM",
Pk: "PK",
Pw: "PW",
Ps: "PS",
Pa: "PA",
Pg: "PG",
Py: "PY",
Pe: "PE",
Ph: "PH",
Pn: "PN",
Pl: "PL",
Pt: "PT",
Pr: "PR",
Qa: "QA",
Re: "RE",
Ro: "RO",
Ru: "RU",
Rw: "RW",
Bl: "BL",
Sh: "SH",
Kn: "KN",
Lc: "LC",
Mf: "MF",
Pm: "PM",
Vc: "VC",
Ws: "WS",
Sm: "SM",
St: "ST",
Sa: "SA",
Sn: "SN",
Ss: "SS",
Rs: "RS",
Sc: "SC",
Sl: "SL",
Sg: "SG",
Sk: "SK",
Si: "SI",
Sb: "SB",
So: "SO",
Za: "ZA",
Gs: "GS",
Es: "ES",
Lk: "LK",
Sd: "SD",
Sr: "SR",
Sj: "SJ",
Sz: "SZ",
Se: "SE",
Ch: "CH",
Sy: "SY",
Tw: "TW",
Tj: "TJ",
Tz: "TZ",
Th: "TH",
Tl: "TL",
Tg: "TG",
Tk: "TK",
To: "TO",
Tt: "TT",
Tn: "TN",
Tr: "TR",
Tm: "TM",
Tc: "TC",
Tv: "TV",
Ug: "UG",
Ua: "UA",
Ae: "AE",
Gb: "GB",
Us: "US",
Um: "UM",
Uy: "UY",
Uz: "UZ",
Vu: "VU",
Ve: "VE",
Vn: "VN",
Vg: "VG",
Vi: "VI",
Wf: "WF",
Eh: "EH",
Ye: "YE",
Zm: "ZM",
Zw: "ZW",
};
/**
* The attribute type of the value.
*/
export const AttributeTypePhoneNumber = {
PhoneNumber: "phone-number",
};
/**
* The attribute type of the value.
*/
export const AttributeTypePersonalName = {
PersonalName: "personal-name",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeNumber = {
Number: "number",
};
/**
* The ISO 3166-1 alpha-2 country code for the country this location is in.
*/
export const OutputValueCountryCode1 = {
Af: "AF",
Ax: "AX",
Al: "AL",
Dz: "DZ",
As: "AS",
Ad: "AD",
Ao: "AO",
Ai: "AI",
Aq: "AQ",
Ag: "AG",
Ar: "AR",
Am: "AM",
Aw: "AW",
Au: "AU",
At: "AT",
Az: "AZ",
Bs: "BS",
Bh: "BH",
Bd: "BD",
Bb: "BB",
By: "BY",
Be: "BE",
Bz: "BZ",
Bj: "BJ",
Bm: "BM",
Bt: "BT",
Bo: "BO",
Ba: "BA",
Bw: "BW",
Bv: "BV",
Br: "BR",
Io: "IO",
Bn: "BN",
Bg: "BG",
Bf: "BF",
Bi: "BI",
Kh: "KH",
Cm: "CM",
Ca: "CA",
Cv: "CV",
Ky: "KY",
Cf: "CF",
Td: "TD",
Cl: "CL",
Cn: "CN",
Cx: "CX",
Cc: "CC",
Co: "CO",
Km: "KM",
Cg: "CG",
Cd: "CD",
Ck: "CK",
Cr: "CR",
Ci: "CI",
Hr: "HR",
Cu: "CU",
Cw: "CW",
Cy: "CY",
Cz: "CZ",
Dk: "DK",
Dj: "DJ",
Dm: "DM",
Do: "DO",
Ec: "EC",
Eg: "EG",
Sv: "SV",
Gq: "GQ",
Er: "ER",
Ee: "EE",
Et: "ET",
Fk: "FK",
Fo: "FO",
Fj: "FJ",
Fi: "FI",
Fr: "FR",
Gf: "GF",
Pf: "PF",
Tf: "TF",
Ga: "GA",
Gm: "GM",
Ge: "GE",
De: "DE",
Gh: "GH",
Gi: "GI",
Gr: "GR",
Gl: "GL",
Gd: "GD",
Gp: "GP",
Gu: "GU",
Gt: "GT",
Gg: "GG",
Gn: "GN",
Gw: "GW",
Gy: "GY",
Ht: "HT",
Hm: "HM",
Va: "VA",
Hn: "HN",
Hk: "HK",
Hu: "HU",
Is: "IS",
In: "IN",
Id: "ID",
Ir: "IR",
Iq: "IQ",
Ie: "IE",
Im: "IM",
Il: "IL",
It: "IT",
Jm: "JM",
Jp: "JP",
Je: "JE",
Jo: "JO",
Kz: "KZ",
Ke: "KE",
Ki: "KI",
Kr: "KR",
Kw: "KW",
Kg: "KG",
La: "LA",
Lv: "LV",
Lb: "LB",
Ls: "LS",
Lr: "LR",
Ly: "LY",
Li: "LI",
Lt: "LT",
Lu: "LU",
Mo: "MO",
Mk: "MK",
Mg: "MG",
Mw: "MW",
My: "MY",
Mv: "MV",
Ml: "ML",
Mt: "MT",
Mh: "MH",
Mq: "MQ",
Mr: "MR",
Mu: "MU",
Yt: "YT",
Mx: "MX",
Fm: "FM",
Md: "MD",
Mc: "MC",
Mn: "MN",
Me: "ME",
Ms: "MS",
Ma: "MA",
Mz: "MZ",
Mm: "MM",
Na: "NA",
Nr: "NR",
Np: "NP",
Nl: "NL",
An: "AN",
Nc: "NC",
Nz: "NZ",
Ni: "NI",
Ne: "NE",
Ng: "NG",
Nu: "NU",
Nf: "NF",
Mp: "MP",
No: "NO",
Om: "OM",
Pk: "PK",
Pw: "PW",
Ps: "PS",
Pa: "PA",
Pg: "PG",
Py: "PY",
Pe: "PE",
Ph: "PH",
Pn: "PN",
Pl: "PL",
Pt: "PT",
Pr: "PR",
Qa: "QA",
Re: "RE",
Ro: "RO",
Ru: "RU",
Rw: "RW",
Bl: "BL",
Sh: "SH",
Kn: "KN",
Lc: "LC",
Mf: "MF",
Pm: "PM",
Vc: "VC",
Ws: "WS",
Sm: "SM",
St: "ST",
Sa: "SA",
Sn: "SN",
Ss: "SS",
Rs: "RS",
Sc: "SC",
Sl: "SL",
Sg: "SG",
Sk: "SK",
Si: "SI",
Sb: "SB",
So: "SO",
Za: "ZA",
Gs: "GS",
Es: "ES",
Lk: "LK",
Sd: "SD",
Sr: "SR",
Sj: "SJ",
Sz: "SZ",
Se: "SE",
Ch: "CH",
Sy: "SY",
Tw: "TW",
Tj: "TJ",
Tz: "TZ",
Th: "TH",
Tl: "TL",
Tg: "TG",
Tk: "TK",
To: "TO",
Tt: "TT",
Tn: "TN",
Tr: "TR",
Tm: "TM",
Tc: "TC",
Tv: "TV",
Ug: "UG",
Ua: "UA",
Ae: "AE",
Gb: "GB",
Us: "US",
Um: "UM",
Uy: "UY",
Uz: "UZ",
Vu: "VU",
Ve: "VE",
Vn: "VN",
Vg: "VG",
Vi: "VI",
Wf: "WF",
Eh: "EH",
Ye: "YE",
Zm: "ZM",
Zw: "ZW",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeLocation = {
Location: "location",
};
/**
* The type of interaction e.g. calendar or email.
*/
export const OutputValueInteractionType = {
CalendarEvent: "calendar-event",
Call: "call",
ChatThread: "chat-thread",
Email: "email",
InPersonMeeting: "in-person-meeting",
Meeting: "meeting",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const OutputValueType = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeInteraction = {
Interaction: "interaction",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeRecordReference = {
RecordReference: "record-reference",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeEmailAddress = {
EmailAddress: "email-address",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeDomain = {
Domain: "domain",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeDate = {
Date: "date",
};
/**
* The ISO4217 currency code representing the currency that the value is stored in.
*/
export const CurrencyCode = {
Aud: "AUD",
Brl: "BRL",
Bel: "BEL",
Cad: "CAD",
Cny: "CNY",
Cop: "COP",
Czk: "CZK",
Dkk: "DKK",
Eur: "EUR",
Hkd: "HKD",
Isk: "ISK",
Inr: "INR",
Ils: "ILS",
Jpy: "JPY",
Krw: "KRW",
Myr: "MYR",
Mxn: "MXN",
Ntd: "NTD",
Nzd: "NZD",
Ngn: "NGN",
Nok: "NOK",
Xpf: "XPF",
Pen: "PEN",
Php: "PHP",
Pln: "PLN",
Gbp: "GBP",
Sar: "SAR",
Sgd: "SGD",
Zar: "ZAR",
Sek: "SEK",
Chf: "CHF",
Aed: "AED",
Usd: "USD",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeCurrency = {
Currency: "currency",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeCheckbox = {
Checkbox: "checkbox",
};
/**
* The type of the referenced actor. [Read more information on actor types here](/docs/actors).
*/
export const OutputValueReferencedActorType = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const AttributeTypeActorReference = {
ActorReference: "actor-reference",
};
/** @internal */
export const AttributeTypeTimestamp$inboundSchema = z.nativeEnum(AttributeTypeTimestamp);
/** @internal */
export const AttributeTypeTimestamp$outboundSchema = AttributeTypeTimestamp$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeTimestamp$;
(function (AttributeTypeTimestamp$) {
/** @deprecated use `AttributeTypeTimestamp$inboundSchema` instead. */
AttributeTypeTimestamp$.inboundSchema = AttributeTypeTimestamp$inboundSchema;
/** @deprecated use `AttributeTypeTimestamp$outboundSchema` instead. */
AttributeTypeTimestamp$.outboundSchema = AttributeTypeTimestamp$outboundSchema;
})(AttributeTypeTimestamp$ || (AttributeTypeTimestamp$ = {}));
/** @internal */
export const OutputValueTimestamp$inboundSchema = z.object({
attribute_type: AttributeTypeTimestamp$inboundSchema,
value: z.string().datetime({ offset: true }).transform(v => new Date(v)),
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueTimestamp$outboundSchema = z.object({
attributeType: AttributeTypeTimestamp$outboundSchema,
value: z.date().transform(v => v.toISOString()),
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueTimestamp$;
(function (OutputValueTimestamp$) {
/** @deprecated use `OutputValueTimestamp$inboundSchema` instead. */
OutputValueTimestamp$.inboundSchema = OutputValueTimestamp$inboundSchema;
/** @deprecated use `OutputValueTimestamp$outboundSchema` instead. */
OutputValueTimestamp$.outboundSchema = OutputValueTimestamp$outboundSchema;
})(OutputValueTimestamp$ || (OutputValueTimestamp$ = {}));
export function outputValueTimestampToJSON(outputValueTimestamp) {
return JSON.stringify(OutputValueTimestamp$outboundSchema.parse(outputValueTimestamp));
}
export function outputValueTimestampFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueTimestamp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueTimestamp' from JSON`);
}
/** @internal */
export const AttributeTypeText$inboundSchema = z.nativeEnum(AttributeTypeText);
/** @internal */
export const AttributeTypeText$outboundSchema = AttributeTypeText$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeText$;
(function (AttributeTypeText$) {
/** @deprecated use `AttributeTypeText$inboundSchema` instead. */
AttributeTypeText$.inboundSchema = AttributeTypeText$inboundSchema;
/** @deprecated use `AttributeTypeText$outboundSchema` instead. */
AttributeTypeText$.outboundSchema = AttributeTypeText$outboundSchema;
})(AttributeTypeText$ || (AttributeTypeText$ = {}));
/** @internal */
export const OutputValueText$inboundSchema = z.object({
value: z.string(),
attribute_type: AttributeTypeText$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueText$outboundSchema = z.object({
value: z.string(),
attributeType: AttributeTypeText$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueText$;
(function (OutputValueText$) {
/** @deprecated use `OutputValueText$inboundSchema` instead. */
OutputValueText$.inboundSchema = OutputValueText$inboundSchema;
/** @deprecated use `OutputValueText$outboundSchema` instead. */
OutputValueText$.outboundSchema = OutputValueText$outboundSchema;
})(OutputValueText$ || (OutputValueText$ = {}));
export function outputValueTextToJSON(outputValueText) {
return JSON.stringify(OutputValueText$outboundSchema.parse(outputValueText));
}
export function outputValueTextFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueText' from JSON`);
}
/** @internal */
export const AttributeTypeSelect2$inboundSchema = z.nativeEnum(AttributeTypeSelect2);
/** @internal */
export const AttributeTypeSelect2$outboundSchema = AttributeTypeSelect2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeSelect2$;
(function (AttributeTypeSelect2$) {
/** @deprecated use `AttributeTypeSelect2$inboundSchema` instead. */
AttributeTypeSelect2$.inboundSchema = AttributeTypeSelect2$inboundSchema;
/** @deprecated use `AttributeTypeSelect2$outboundSchema` instead. */
AttributeTypeSelect2$.outboundSchema = AttributeTypeSelect2$outboundSchema;
})(AttributeTypeSelect2$ || (AttributeTypeSelect2$ = {}));
/** @internal */
export const OutputValueSelect2$inboundSchema = z.object({
option: SelectOption$inboundSchema,
attribute_type: AttributeTypeSelect2$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueSelect2$outboundSchema = z.object({
option: SelectOption$outboundSchema,
attributeType: AttributeTypeSelect2$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueSelect2$;
(function (OutputValueSelect2$) {
/** @deprecated use `OutputValueSelect2$inboundSchema` instead. */
OutputValueSelect2$.inboundSchema = OutputValueSelect2$inboundSchema;
/** @deprecated use `OutputValueSelect2$outboundSchema` instead. */
OutputValueSelect2$.outboundSchema = OutputValueSelect2$outboundSchema;
})(OutputValueSelect2$ || (OutputValueSelect2$ = {}));
export function outputValueSelect2ToJSON(outputValueSelect2) {
return JSON.stringify(OutputValueSelect2$outboundSchema.parse(outputValueSelect2));
}
export function outputValueSelect2FromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueSelect2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueSelect2' from JSON`);
}
/** @internal */
export const AttributeTypeSelect1$inboundSchema = z.nativeEnum(AttributeTypeSelect1);
/** @internal */
export const AttributeTypeSelect1$outboundSchema = AttributeTypeSelect1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeSelect1$;
(function (AttributeTypeSelect1$) {
/** @deprecated use `AttributeTypeSelect1$inboundSchema` instead. */
AttributeTypeSelect1$.inboundSchema = AttributeTypeSelect1$inboundSchema;
/** @deprecated use `AttributeTypeSelect1$outboundSchema` instead. */
AttributeTypeSelect1$.outboundSchema = AttributeTypeSelect1$outboundSchema;
})(AttributeTypeSelect1$ || (AttributeTypeSelect1$ = {}));
/** @internal */
export const OutputValueSelect1$inboundSchema = z.object({
option: z.string(),
attribute_type: AttributeTypeSelect1$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueSelect1$outboundSchema = z.object({
option: z.string(),
attributeType: AttributeTypeSelect1$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueSelect1$;
(function (OutputValueSelect1$) {
/** @deprecated use `OutputValueSelect1$inboundSchema` instead. */
OutputValueSelect1$.inboundSchema = OutputValueSelect1$inboundSchema;
/** @deprecated use `OutputValueSelect1$outboundSchema` instead. */
OutputValueSelect1$.outboundSchema = OutputValueSelect1$outboundSchema;
})(OutputValueSelect1$ || (OutputValueSelect1$ = {}));
export function outputValueSelect1ToJSON(outputValueSelect1) {
return JSON.stringify(OutputValueSelect1$outboundSchema.parse(outputValueSelect1));
}
export function outputValueSelect1FromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueSelect1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueSelect1' from JSON`);
}
/** @internal */
export const AttributeTypeRating$inboundSchema = z.nativeEnum(AttributeTypeRating);
/** @internal */
export const AttributeTypeRating$outboundSchema = AttributeTypeRating$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeRating$;
(function (AttributeTypeRating$) {
/** @deprecated use `AttributeTypeRating$inboundSchema` instead. */
AttributeTypeRating$.inboundSchema = AttributeTypeRating$inboundSchema;
/** @deprecated use `AttributeTypeRating$outboundSchema` instead. */
AttributeTypeRating$.outboundSchema = AttributeTypeRating$outboundSchema;
})(AttributeTypeRating$ || (AttributeTypeRating$ = {}));
/** @internal */
export const OutputValueRating$inboundSchema = z.object({
value: z.number(),
attribute_type: AttributeTypeRating$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueRating$outboundSchema = z.object({
value: z.number(),
attributeType: AttributeTypeRating$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueRating$;
(function (OutputValueRating$) {
/** @deprecated use `OutputValueRating$inboundSchema` instead. */
OutputValueRating$.inboundSchema = OutputValueRating$inboundSchema;
/** @deprecated use `OutputValueRating$outboundSchema` instead. */
OutputValueRating$.outboundSchema = OutputValueRating$outboundSchema;
})(OutputValueRating$ || (OutputValueRating$ = {}));
export function outputValueRatingToJSON(outputValueRating) {
return JSON.stringify(OutputValueRating$outboundSchema.parse(outputValueRating));
}
export function outputValueRatingFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueRating$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueRating' from JSON`);
}
/** @internal */
export const AttributeTypeStatus2$inboundSchema = z.nativeEnum(AttributeTypeStatus2);
/** @internal */
export const AttributeTypeStatus2$outboundSchema = AttributeTypeStatus2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeStatus2$;
(function (AttributeTypeStatus2$) {
/** @deprecated use `AttributeTypeStatus2$inboundSchema` instead. */
AttributeTypeStatus2$.inboundSchema = AttributeTypeStatus2$inboundSchema;
/** @deprecated use `AttributeTypeStatus2$outboundSchema` instead. */
AttributeTypeStatus2$.outboundSchema = AttributeTypeStatus2$outboundSchema;
})(AttributeTypeStatus2$ || (AttributeTypeStatus2$ = {}));
/** @internal */
export const OutputValueStatus2$inboundSchema = z.object({
status: Status$inboundSchema,
attribute_type: AttributeTypeStatus2$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueStatus2$outboundSchema = z.object({
status: Status$outboundSchema,
attributeType: AttributeTypeStatus2$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueStatus2$;
(function (OutputValueStatus2$) {
/** @deprecated use `OutputValueStatus2$inboundSchema` instead. */
OutputValueStatus2$.inboundSchema = OutputValueStatus2$inboundSchema;
/** @deprecated use `OutputValueStatus2$outboundSchema` instead. */
OutputValueStatus2$.outboundSchema = OutputValueStatus2$outboundSchema;
})(OutputValueStatus2$ || (OutputValueStatus2$ = {}));
export function outputValueStatus2ToJSON(outputValueStatus2) {
return JSON.stringify(OutputValueStatus2$outboundSchema.parse(outputValueStatus2));
}
export function outputValueStatus2FromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueStatus2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueStatus2' from JSON`);
}
/** @internal */
export const AttributeTypeStatus1$inboundSchema = z.nativeEnum(AttributeTypeStatus1);
/** @internal */
export const AttributeTypeStatus1$outboundSchema = AttributeTypeStatus1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeStatus1$;
(function (AttributeTypeStatus1$) {
/** @deprecated use `AttributeTypeStatus1$inboundSchema` instead. */
AttributeTypeStatus1$.inboundSchema = AttributeTypeStatus1$inboundSchema;
/** @deprecated use `AttributeTypeStatus1$outboundSchema` instead. */
AttributeTypeStatus1$.outboundSchema = AttributeTypeStatus1$outboundSchema;
})(AttributeTypeStatus1$ || (AttributeTypeStatus1$ = {}));
/** @internal */
export const OutputValueStatus1$inboundSchema = z.object({
status: z.string(),
attribute_type: AttributeTypeStatus1$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueStatus1$outboundSchema = z.object({
status: z.string(),
attributeType: AttributeTypeStatus1$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueStatus1$;
(function (OutputValueStatus1$) {
/** @deprecated use `OutputValueStatus1$inboundSchema` instead. */
OutputValueStatus1$.inboundSchema = OutputValueStatus1$inboundSchema;
/** @deprecated use `OutputValueStatus1$outboundSchema` instead. */
OutputValueStatus1$.outboundSchema = OutputValueStatus1$outboundSchema;
})(OutputValueStatus1$ || (OutputValueStatus1$ = {}));
export function outputValueStatus1ToJSON(outputValueStatus1) {
return JSON.stringify(OutputValueStatus1$outboundSchema.parse(outputValueStatus1));
}
export function outputValueStatus1FromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueStatus1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueStatus1' from JSON`);
}
/** @internal */
export const OutputValueCountryCode2$inboundSchema = z.nativeEnum(OutputValueCountryCode2);
/** @internal */
export const OutputValueCountryCode2$outboundSchema = OutputValueCountryCode2$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueCountryCode2$;
(function (OutputValueCountryCode2$) {
/** @deprecated use `OutputValueCountryCode2$inboundSchema` instead. */
OutputValueCountryCode2$.inboundSchema = OutputValueCountryCode2$inboundSchema;
/** @deprecated use `OutputValueCountryCode2$outboundSchema` instead. */
OutputValueCountryCode2$.outboundSchema = OutputValueCountryCode2$outboundSchema;
})(OutputValueCountryCode2$ || (OutputValueCountryCode2$ = {}));
/** @internal */
export const AttributeTypePhoneNumber$inboundSchema = z.nativeEnum(AttributeTypePhoneNumber);
/** @internal */
export const AttributeTypePhoneNumber$outboundSchema = AttributeTypePhoneNumber$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypePhoneNumber$;
(function (AttributeTypePhoneNumber$) {
/** @deprecated use `AttributeTypePhoneNumber$inboundSchema` instead. */
AttributeTypePhoneNumber$.inboundSchema = AttributeTypePhoneNumber$inboundSchema;
/** @deprecated use `AttributeTypePhoneNumber$outboundSchema` instead. */
AttributeTypePhoneNumber$.outboundSchema = AttributeTypePhoneNumber$outboundSchema;
})(AttributeTypePhoneNumber$ || (AttributeTypePhoneNumber$ = {}));
/** @internal */
export const OutputValuePhoneNumber$inboundSchema = z.object({
original_phone_number: z.string(),
country_code: OutputValueCountryCode2$inboundSchema,
phone_number: z.string(),
attribute_type: AttributeTypePhoneNumber$inboundSchema,
}).transform((v) => {
return remap$(v, {
"original_phone_number": "originalPhoneNumber",
"country_code": "countryCode",
"phone_number": "phoneNumber",
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValuePhoneNumber$outboundSchema = z.object({
originalPhoneNumber: z.string(),
countryCode: OutputValueCountryCode2$outboundSchema,
phoneNumber: z.string(),
attributeType: AttributeTypePhoneNumber$outboundSchema,
}).transform((v) => {
return remap$(v, {
originalPhoneNumber: "original_phone_number",
countryCode: "country_code",
phoneNumber: "phone_number",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValuePhoneNumber$;
(function (OutputValuePhoneNumber$) {
/** @deprecated use `OutputValuePhoneNumber$inboundSchema` instead. */
OutputValuePhoneNumber$.inboundSchema = OutputValuePhoneNumber$inboundSchema;
/** @deprecated use `OutputValuePhoneNumber$outboundSchema` instead. */
OutputValuePhoneNumber$.outboundSchema = OutputValuePhoneNumber$outboundSchema;
})(OutputValuePhoneNumber$ || (OutputValuePhoneNumber$ = {}));
export function outputValuePhoneNumberToJSON(outputValuePhoneNumber) {
return JSON.stringify(OutputValuePhoneNumber$outboundSchema.parse(outputValuePhoneNumber));
}
export function outputValuePhoneNumberFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValuePhoneNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValuePhoneNumber' from JSON`);
}
/** @internal */
export const AttributeTypePersonalName$inboundSchema = z.nativeEnum(AttributeTypePersonalName);
/** @internal */
export const AttributeTypePersonalName$outboundSchema = AttributeTypePersonalName$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypePersonalName$;
(function (AttributeTypePersonalName$) {
/** @deprecated use `AttributeTypePersonalName$inboundSchema` instead. */
AttributeTypePersonalName$.inboundSchema = AttributeTypePersonalName$inboundSchema;
/** @deprecated use `AttributeTypePersonalName$outboundSchema` instead. */
AttributeTypePersonalName$.outboundSchema = AttributeTypePersonalName$outboundSchema;
})(AttributeTypePersonalName$ || (AttributeTypePersonalName$ = {}));
/** @internal */
export const OutputValuePersonalName$inboundSchema = z.object({
first_name: z.string(),
last_name: z.string(),
full_name: z.string(),
attribute_type: AttributeTypePersonalName$inboundSchema,
}).transform((v) => {
return remap$(v, {
"first_name": "firstName",
"last_name": "lastName",
"full_name": "fullName",
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValuePersonalName$outboundSchema = z.object({
firstName: z.string(),
lastName: z.string(),
fullName: z.string(),
attributeType: AttributeTypePersonalName$outboundSchema,
}).transform((v) => {
return remap$(v, {
firstName: "first_name",
lastName: "last_name",
fullName: "full_name",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValuePersonalName$;
(function (OutputValuePersonalName$) {
/** @deprecated use `OutputValuePersonalName$inboundSchema` instead. */
OutputValuePersonalName$.inboundSchema = OutputValuePersonalName$inboundSchema;
/** @deprecated use `OutputValuePersonalName$outboundSchema` instead. */
OutputValuePersonalName$.outboundSchema = OutputValuePersonalName$outboundSchema;
})(OutputValuePersonalName$ || (OutputValuePersonalName$ = {}));
export function outputValuePersonalNameToJSON(outputValuePersonalName) {
return JSON.stringify(OutputValuePersonalName$outboundSchema.parse(outputValuePersonalName));
}
export function outputValuePersonalNameFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValuePersonalName$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValuePersonalName' from JSON`);
}
/** @internal */
export const AttributeTypeNumber$inboundSchema = z.nativeEnum(AttributeTypeNumber);
/** @internal */
export const AttributeTypeNumber$outboundSchema = AttributeTypeNumber$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeNumber$;
(function (AttributeTypeNumber$) {
/** @deprecated use `AttributeTypeNumber$inboundSchema` instead. */
AttributeTypeNumber$.inboundSchema = AttributeTypeNumber$inboundSchema;
/** @deprecated use `AttributeTypeNumber$outboundSchema` instead. */
AttributeTypeNumber$.outboundSchema = AttributeTypeNumber$outboundSchema;
})(AttributeTypeNumber$ || (AttributeTypeNumber$ = {}));
/** @internal */
export const OutputValueNumber$inboundSchema = z.object({
value: z.number(),
attribute_type: AttributeTypeNumber$inboundSchema,
}).transform((v) => {
return remap$(v, {
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueNumber$outboundSchema = z.object({
value: z.number(),
attributeType: AttributeTypeNumber$outboundSchema,
}).transform((v) => {
return remap$(v, {
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueNumber$;
(function (OutputValueNumber$) {
/** @deprecated use `OutputValueNumber$inboundSchema` instead. */
OutputValueNumber$.inboundSchema = OutputValueNumber$inboundSchema;
/** @deprecated use `OutputValueNumber$outboundSchema` instead. */
OutputValueNumber$.outboundSchema = OutputValueNumber$outboundSchema;
})(OutputValueNumber$ || (OutputValueNumber$ = {}));
export function outputValueNumberToJSON(outputValueNumber) {
return JSON.stringify(OutputValueNumber$outboundSchema.parse(outputValueNumber));
}
export function outputValueNumberFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueNumber' from JSON`);
}
/** @internal */
export const OutputValueCountryCode1$inboundSchema = z.nativeEnum(OutputValueCountryCode1);
/** @internal */
export const OutputValueCountryCode1$outboundSchema = OutputValueCountryCode1$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueCountryCode1$;
(function (OutputValueCountryCode1$) {
/** @deprecated use `OutputValueCountryCode1$inboundSchema` instead. */
OutputValueCountryCode1$.inboundSchema = OutputValueCountryCode1$inboundSchema;
/** @deprecated use `OutputValueCountryCode1$outboundSchema` instead. */
OutputValueCountryCode1$.outboundSchema = OutputValueCountryCode1$outboundSchema;
})(OutputValueCountryCode1$ || (OutputValueCountryCode1$ = {}));
/** @internal */
export const AttributeTypeLocation$inboundSchema = z.nativeEnum(AttributeTypeLocation);
/** @internal */
export const AttributeTypeLocation$outboundSchema = AttributeTypeLocation$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeLocation$;
(function (AttributeTypeLocation$) {
/** @deprecated use `AttributeTypeLocation$inboundSchema` instead. */
AttributeTypeLocation$.inboundSchema = AttributeTypeLocation$inboundSchema;
/** @deprecated use `AttributeTypeLocation$outboundSchema` instead. */
AttributeTypeLocation$.outboundSchema = AttributeTypeLocation$outboundSchema;
})(AttributeTypeLocation$ || (AttributeTypeLocation$ = {}));
/** @internal */
export const OutputValueLocation$inboundSchema = z.object({
line_1: z.nullable(z.string()),
line_2: z.nullable(z.string()),
line_3: z.nullable(z.string()),
line_4: z.nullable(z.string()),
locality: z.nullable(z.string()),
region: z.nullable(z.string()),
postcode: z.nullable(z.string()),
country_code: z.nullable(OutputValueCountryCode1$inboundSchema),
latitude: z.nullable(z.string()),
longitude: z.nullable(z.string()),
attribute_type: AttributeTypeLocation$inboundSchema,
}).transform((v) => {
return remap$(v, {
"line_1": "line1",
"line_2": "line2",
"line_3": "line3",
"line_4": "line4",
"country_code": "countryCode",
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueLocation$outboundSchema = z.object({
line1: z.nullable(z.string()),
line2: z.nullable(z.string()),
line3: z.nullable(z.string()),
line4: z.nullable(z.string()),
locality: z.nullable(z.string()),
region: z.nullable(z.string()),
postcode: z.nullable(z.string()),
countryCode: z.nullable(OutputValueCountryCode1$outboundSchema),
latitude: z.nullable(z.string()),
longitude: z.nullable(z.string()),
attributeType: AttributeTypeLocation$outboundSchema,
}).transform((v) => {
return remap$(v, {
line1: "line_1",
line2: "line_2",
line3: "line_3",
line4: "line_4",
countryCode: "country_code",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueLocation$;
(function (OutputValueLocation$) {
/** @deprecated use `OutputValueLocation$inboundSchema` instead. */
OutputValueLocation$.inboundSchema = OutputValueLocation$inboundSchema;
/** @deprecated use `OutputValueLocation$outboundSchema` instead. */
OutputValueLocation$.outboundSchema = OutputValueLocation$outboundSchema;
})(OutputValueLocation$ || (OutputValueLocation$ = {}));
export function outputValueLocationToJSON(outputValueLocation) {
return JSON.stringify(OutputValueLocation$outboundSchema.parse(outputValueLocation));
}
export function outputValueLocationFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueLocation' from JSON`);
}
/** @internal */
export const OutputValueInteractionType$inboundSchema = z.nativeEnum(OutputValueInteractionType);
/** @internal */
export const OutputValueInteractionType$outboundSchema = OutputValueInteractionType$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueInteractionType$;
(function (OutputValueInteractionType$) {
/** @deprecated use `OutputValueInteractionType$inboundSchema` instead. */
OutputValueInteractionType$.inboundSchema = OutputValueInteractionType$inboundSchema;
/** @deprecated use `OutputValueInteractionType$outboundSchema` instead. */
OutputValueInteractionType$.outboundSchema = OutputValueInteractionType$outboundSchema;
})(OutputValueInteractionType$ || (OutputValueInteractionType$ = {}));
/** @internal */
export const OutputValueType$inboundSchema = z.nativeEnum(OutputValueType);
/** @internal */
export const OutputValueType$outboundSchema = OutputValueType$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueType$;
(function (OutputValueType$) {
/** @deprecated use `OutputValueType$inboundSchema` instead. */
OutputValueType$.inboundSchema = OutputValueType$inboundSchema;
/** @deprecated use `OutputValueType$outboundSchema` instead. */
OutputValueType$.outboundSchema = OutputValueType$outboundSchema;
})(OutputValueType$ || (OutputValueType$ = {}));
/** @internal */
export const OutputValueOwnerActor$inboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(OutputValueType$inboundSchema).optional(),
});
/** @internal */
export const OutputValueOwnerActor$outboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(OutputValueType$outboundSchema).optional(),
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueOwnerActor$;
(function (OutputValueOwnerActor$) {
/** @deprecated use `OutputValueOwnerActor$inboundSchema` instead. */
OutputValueOwnerActor$.inboundSchema = OutputValueOwnerActor$inboundSchema;
/** @deprecated use `OutputValueOwnerActor$outboundSchema` instead. */
OutputValueOwnerActor$.outboundSchema = OutputValueOwnerActor$outboundSchema;
})(OutputValueOwnerActor$ || (OutputValueOwnerActor$ = {}));
export function outputValueOwnerActorToJSON(outputValueOwnerActor) {
return JSON.stringify(OutputValueOwnerActor$outboundSchema.parse(outputValueOwnerActor));
}
export function outputValueOwnerActorFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueOwnerActor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueOwnerActor' from JSON`);
}
/** @internal */
export const AttributeTypeInteraction$inboundSchema = z.nativeEnum(AttributeTypeInteraction);
/** @internal */
export const AttributeTypeInteraction$outboundSchema = AttributeTypeInteraction$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeInteraction$;
(function (AttributeTypeInteraction$) {
/** @deprecated use `AttributeTypeInteraction$inboundSchema` instead. */
AttributeTypeInteraction$.inboundSchema = AttributeTypeInteraction$inboundSchema;
/** @deprecated use `AttributeTypeInteraction$outboundSchema` instead. */
AttributeTypeInteraction$.outboundSchema = AttributeTypeInteraction$outboundSchema;
})(AttributeTypeInteraction$ || (AttributeTypeInteraction$ = {}));
/** @internal */
export const OutputValueInteraction$inboundSchema = z.object({
interaction_type: OutputValueInteractionType$inboundSchema,
interacted_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
owner_actor: z.lazy(() => OutputValueOwnerActor$inboundSchema),
attribute_type: AttributeTypeInteraction$inboundSchema,
}).transform((v) => {
return remap$(v, {
"interaction_type": "interactionType",
"interacted_at": "interactedAt",
"owner_actor": "ownerActor",
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueInteraction$outboundSchema = z.object({
interactionType: OutputValueInteractionType$outboundSchema,
interactedAt: z.date().transform(v => v.toISOString()),
ownerActor: z.lazy(() => OutputValueOwnerActor$outboundSchema),
attributeType: AttributeTypeInteraction$outboundSchema,
}).transform((v) => {
return remap$(v, {
interactionType: "interaction_type",
interactedAt: "interacted_at",
ownerActor: "owner_actor",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueInteraction$;
(function (OutputValueInteraction$) {
/** @deprecated use `OutputValueInteraction$inboundSchema` instead. */
OutputValueInteraction$.inboundSchema = OutputValueInteraction$inboundSchema;
/** @deprecated use `OutputValueInteraction$outboundSchema` instead. */
OutputValueInteraction$.outboundSchema = OutputValueInteraction$outboundSchema;
})(OutputValueInteraction$ || (OutputValueInteraction$ = {}));
export function outputValueInteractionToJSON(outputValueInteraction) {
return JSON.stringify(OutputValueInteraction$outboundSchema.parse(outputValueInteraction));
}
export function outputValueInteractionFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueInteraction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueInteraction' from JSON`);
}
/** @internal */
export const AttributeTypeRecordReference$inboundSchema = z.nativeEnum(AttributeTypeRecordReference);
/** @internal */
export const AttributeTypeRecordReference$outboundSchema = AttributeTypeRecordReference$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeRecordReference$;
(function (AttributeTypeRecordReference$) {
/** @deprecated use `AttributeTypeRecordReference$inboundSchema` instead. */
AttributeTypeRecordReference$.inboundSchema = AttributeTypeRecordReference$inboundSchema;
/** @deprecated use `AttributeTypeRecordReference$outboundSchema` instead. */
AttributeTypeRecordReference$.outboundSchema = AttributeTypeRecordReference$outboundSchema;
})(AttributeTypeRecordReference$ || (AttributeTypeRecordReference$ = {}));
/** @internal */
export const OutputValueRecordReference$inboundSchema = z.object({
target_object: z.string(),
target_record_id: z.string(),
attribute_type: AttributeTypeRecordReference$inboundSchema,
}).transform((v) => {
return remap$(v, {
"target_object": "targetObject",
"target_record_id": "targetRecordId",
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueRecordReference$outboundSchema = z.object({
targetObject: z.string(),
targetRecordId: z.string(),
attributeType: AttributeTypeRecordReference$outboundSchema,
}).transform((v) => {
return remap$(v, {
targetObject: "target_object",
targetRecordId: "target_record_id",
attributeType: "attribute_type",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var OutputValueRecordReference$;
(function (OutputValueRecordReference$) {
/** @deprecated use `OutputValueRecordReference$inboundSchema` instead. */
OutputValueRecordReference$.inboundSchema = OutputValueRecordReference$inboundSchema;
/** @deprecated use `OutputValueRecordReference$outboundSchema` instead. */
OutputValueRecordReference$.outboundSchema = OutputValueRecordReference$outboundSchema;
})(OutputValueRecordReference$ || (OutputValueRecordReference$ = {}));
export function outputValueRecordReferenceToJSON(outputValueRecordReference) {
return JSON.stringify(OutputValueRecordReference$outboundSchema.parse(outputValueRecordReference));
}
export function outputValueRecordReferenceFromJSON(jsonString) {
return safeParse(jsonString, (x) => OutputValueRecordReference$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputValueRecordReference' from JSON`);
}
/** @internal */
export const AttributeTypeEmailAddress$inboundSchema = z.nativeEnum(AttributeTypeEmailAddress);
/** @internal */
export const AttributeTypeEmailAddress$outboundSchema = AttributeTypeEmailAddress$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var AttributeTypeEmailAddress$;
(function (AttributeTypeEmailAddress$) {
/** @deprecated use `AttributeTypeEmailAddress$inboundSchema` instead. */
AttributeTypeEmailAddress$.inboundSchema = AttributeTypeEmailAddress$inboundSchema;
/** @deprecated use `AttributeTypeEmailAddress$outboundSchema` instead. */
AttributeTypeEmailAddress$.outboundSchema = AttributeTypeEmailAddress$outboundSchema;
})(AttributeTypeEmailAddress$ || (AttributeTypeEmailAddress$ = {}));
/** @internal */
export const OutputValueEmailAddress$inboundSchema = z.object({
original_email_address: z.string(),
email_address: z.string(),
email_domain: z.string(),
email_root_domain: z.string(),
email_local_specifier: z.string(),
attribute_type: AttributeTypeEmailAddress$inboundSchema,
}).transform((v) => {
return remap$(v, {
"original_email_address": "originalEmailAddress",
"email_address": "emailAddress",
"email_domain": "emailDomain",
"email_root_domain": "emailRootDomain",
"email_local_specifier": "emailLocalSpecifier",
"attribute_type": "attributeType",
});
});
/** @internal */
export const OutputValueEmailAddress$outboundSchema = z.object({
originalEmailAddress: z.string(),
emailAddress: z.string(),
emailDomain: z.string(),
emailRootDomain: z.string()