attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
1,239 lines (1,238 loc) • 203 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 "../components/selectoption.js";
import { Status$inboundSchema, Status$outboundSchema, } from "../components/status.js";
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp = {
Timestamp: "timestamp",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText = {
Text: "text",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect = {
Select: "select",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRating = {
Rating: "rating",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType13 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeStatus = {
Status: "status",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType12 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode2 = {
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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePhoneNumber = {
PhoneNumber: "phone-number",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType11 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePersonalName = {
PersonalName: "personal-name",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType10 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeNumber = {
Number: "number",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType9 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The ISO 3166-1 alpha-2 country code for the country this location is in.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode1 = {
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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeLocation = {
Location: "location",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType8 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The type of interaction e.g. calendar or email.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesInteractionType = {
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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesOwnerActorType = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeInteraction = {
Interaction: "interaction",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType7 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRecordReference = {
RecordReference: "record-reference",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType6 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeEmailAddress = {
EmailAddress: "email-address",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType5 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDomain = {
Domain: "domain",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType4 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDate = {
Date: "date",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType3 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The ISO4217 currency code representing the currency that the value is stored in.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCurrencyCode = {
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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeCurrency = {
Currency: "currency",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType2 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeCheckbox = {
Checkbox: "checkbox",
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType1 = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The type of the referenced actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesReferencedActorType = {
ApiToken: "api-token",
WorkspaceMember: "workspace-member",
System: "system",
App: "app",
};
/**
* The attribute type of the value.
*/
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeActorReference = {
ActorReference: "actor-reference",
};
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$inboundSchema = z.object({
object: z.string(),
record_id: z.string(),
attribute: z.string(),
show_historic: z.boolean().default(false),
limit: z.number().int().optional(),
offset: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
"record_id": "recordId",
"show_historic": "showHistoric",
});
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$outboundSchema = z.object({
object: z.string(),
recordId: z.string(),
attribute: z.string(),
showHistoric: z.boolean().default(false),
limit: z.number().int().optional(),
offset: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
recordId: "record_id",
showHistoric: "show_historic",
});
});
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequestToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequestFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$inboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$inboundSchema).optional(),
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$outboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17$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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17ToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17FromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$inboundSchema = z.object({
active_from: z.string().datetime({ offset: true }).transform(v => new Date(v)),
active_until: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
created_by_actor: z.lazy(() => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$inboundSchema),
attribute_type: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$inboundSchema,
value: z.string().datetime({ offset: true }).transform(v => new Date(v)),
}).transform((v) => {
return remap$(v, {
"active_from": "activeFrom",
"active_until": "activeUntil",
"created_by_actor": "createdByActor",
"attribute_type": "attributeType",
});
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$outboundSchema = z.object({
activeFrom: z.date().transform(v => v.toISOString()),
activeUntil: z.nullable(z.date().transform(v => v.toISOString())),
createdByActor: z.lazy(() => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17$outboundSchema),
attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp$outboundSchema,
value: z.date().transform(v => v.toISOString()),
}).transform((v) => {
return remap$(v, {
activeFrom: "active_from",
activeUntil: "active_until",
createdByActor: "created_by_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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestampToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestampFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$inboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$inboundSchema).optional(),
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$outboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16$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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16ToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16FromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$inboundSchema = z.object({
active_from: z.string().datetime({ offset: true }).transform(v => new Date(v)),
active_until: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
created_by_actor: z.lazy(() => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$inboundSchema),
value: z.string(),
attribute_type: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$inboundSchema,
}).transform((v) => {
return remap$(v, {
"active_from": "activeFrom",
"active_until": "activeUntil",
"created_by_actor": "createdByActor",
"attribute_type": "attributeType",
});
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$outboundSchema = z.object({
activeFrom: z.date().transform(v => v.toISOString()),
activeUntil: z.nullable(z.date().transform(v => v.toISOString())),
createdByActor: z.lazy(() => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16$outboundSchema),
value: z.string(),
attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText$outboundSchema,
}).transform((v) => {
return remap$(v, {
activeFrom: "active_from",
activeUntil: "active_until",
createdByActor: "created_by_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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTextToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTextFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$inboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$inboundSchema).optional(),
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$outboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15$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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15ToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15FromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$inboundSchema = z.object({
active_from: z.string().datetime({ offset: true }).transform(v => new Date(v)),
active_until: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
created_by_actor: z.lazy(() => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$inboundSchema),
option: SelectOption$inboundSchema,
attribute_type: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$inboundSchema,
}).transform((v) => {
return remap$(v, {
"active_from": "activeFrom",
"active_until": "activeUntil",
"created_by_actor": "createdByActor",
"attribute_type": "attributeType",
});
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$outboundSchema = z.object({
activeFrom: z.date().transform(v => v.toISOString()),
activeUntil: z.nullable(z.date().transform(v => v.toISOString())),
createdByActor: z.lazy(() => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15$outboundSchema),
option: SelectOption$outboundSchema,
attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect$outboundSchema,
}).transform((v) => {
return remap$(v, {
activeFrom: "active_from",
activeUntil: "active_until",
createdByActor: "created_by_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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$ = {}));
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelectToJSON(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect) {
return JSON.stringify(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$outboundSchema
.parse(getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect));
}
export function getV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelectFromJSON(jsonString) {
return safeParse(jsonString, (x) => GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect$inboundSchema
.parse(JSON.parse(x)), `Failed to parse 'GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect' from JSON`);
}
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$inboundSchema = z.nativeEnum(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14);
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$inboundSchema;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export var GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$inboundSchema;
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$outboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$.outboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$outboundSchema;
})(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$ || (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$ = {}));
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$inboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$inboundSchema).optional(),
});
/** @internal */
export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$outboundSchema = z.object({
id: z.nullable(z.string()).optional(),
type: z.nullable(GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14$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 GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$;
(function (GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$) {
/** @deprecated use `GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$inboundSchema` instead. */
GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$.inboundSchema = GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14$inboundSchema;