UNPKG

attio-js

Version:

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

1,874 lines (1,806 loc) 272 kB
/* * 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 { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SelectOption, SelectOption$inboundSchema, SelectOption$Outbound, SelectOption$outboundSchema, } from "../components/selectoption.js"; import { Status, Status$inboundSchema, Status$Outbound, Status$outboundSchema, } from "../components/status.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesRequest = { object: string; recordId: string; attribute: string; showHistoric?: boolean | undefined; limit?: number | undefined; offset?: number | undefined; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType17 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp = { Timestamp: "timestamp", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataTimestamp = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor17; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeTimestamp; /** * A timestamp value represents a single, universal moment in time using an ISO 8601 formatted string. This means that a timestamp consists of a date, a time (with nanosecond precision), and a time zone. Attio will coerce timestamps which do not provide full nanosecond precision and UTC is assumed if no time zone is provided. For example, "2023", "2023-01", "2023-01-02", "2023-01-02T13:00", "2023-01-02T13:00:00", and "2023-01-02T13:00:00.000000000" will all be coerced to "2023-01-02T13:00:00.000000000Z". Timestamps are always returned in UTC. For example, writing a timestamp value using the string "2023-01-02T13:00:00.000000000+02:00" will result in the value "2023-01-02T11:00:00.000000000Z" being returned. The maximum date is "9999-12-31T23:59:59.999999999Z". */ value: Date; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType16 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText = { Text: "text", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataText = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor16; /** * A raw text field. Values are limited to 10MB. */ value: string; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeText; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType15 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect = { Select: "select", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataSelect = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor15; option: SelectOption; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeSelect; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType14 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRating = { Rating: "rating", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRating = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRating >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataRating = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor14; /** * A number between 0 and 5 (inclusive) to represent a star rating. */ value: number; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRating; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType13 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType13 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor13 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType13 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeStatus = { Status: "status", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeStatus = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeStatus >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataStatus = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor13; status: Status; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeStatus; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType12 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType12 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor12 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType12 | null | undefined; }; /** * 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", } as const; /** * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode2 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode2 >; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePhoneNumber = { PhoneNumber: "phone-number", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePhoneNumber = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePhoneNumber >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataPhoneNumber = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor12; /** * The raw, original phone number, as inputted. */ originalPhoneNumber: string; /** * The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to. */ countryCode: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode2; phoneNumber: string; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePhoneNumber; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType11 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType11 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor11 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType11 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePersonalName = { PersonalName: "personal-name", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePersonalName = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePersonalName >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataPersonalName = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor11; /** * The first name. */ firstName: string; /** * The last name. */ lastName: string; /** * The full name. */ fullName: string; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypePersonalName; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType10 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType10 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor10 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType10 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeNumber = { Number: "number", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeNumber = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeNumber >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataNumber = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor10; /** * Numbers are persisted as 64 bit floats. */ value: number; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeNumber; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType9 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType9 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor9 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType9 | null | undefined; }; /** * 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", } as const; /** * The ISO 3166-1 alpha-2 country code for the country this location is in. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode1 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode1 >; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeLocation = { Location: "location", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeLocation = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeLocation >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataLocation = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor9; /** * The first line of the address. Note that this value is not currently represented in the UI but will be persisted and readable through API calls. */ line1: string | null; /** * The second line of the address. Note that this value is not currently represented in the UI but will be persisted and readable through API calls. */ line2: string | null; /** * The third line of the address. Note that this value is not currently represented in the UI but will be persisted and readable through API calls. */ line3: string | null; /** * The fourth line of the address. Note that this value is not currently represented in the UI but will be persisted and readable through API calls. */ line4: string | null; /** * The town, neighborhood or area the location is in. */ locality: string | null; /** * The state, county, province or region that the location is in. */ region: string | null; /** * The postcode or zip code for the location. Note that this value is not currently represented in the UI but will be persisted and readable through API calls.} */ postcode: string | null; /** * The ISO 3166-1 alpha-2 country code for the country this location is in. */ countryCode: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCountryCode1 | null; /** * The latitude of the location. Validated by the regular expression `/^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?)$/`. Note that this value is not currently represented in the UI but will be persisted and readable through API calls.} */ latitude: string | null; /** * The longitude of the location. Validated by the regular expression `/^[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)$/` */ longitude: string | null; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeLocation; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType8 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType8 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor8 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType8 | null | undefined; }; /** * 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", } as const; /** * The type of interaction e.g. calendar or email. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesInteractionType = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesInteractionType >; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesOwnerActorType = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesOwnerActorType >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesOwnerActor = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesOwnerActorType | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeInteraction = { Interaction: "interaction", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeInteraction = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeInteraction >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataInteraction = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor8; /** * The type of interaction e.g. calendar or email. */ interactionType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesInteractionType; /** * When the interaction occurred. */ interactedAt: Date; /** * The actor that created this value. */ ownerActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesOwnerActor; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeInteraction; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType7 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType7 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor7 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType7 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRecordReference = { RecordReference: "record-reference", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRecordReference = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRecordReference >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataRecordReference = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor7; /** * A slug identifying the object that the referenced record belongs to. */ targetObject: string; /** * A UUID to identify the referenced record. */ targetRecordId: string; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeRecordReference; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType6 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType6 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor6 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType6 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeEmailAddress = { EmailAddress: "email-address", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeEmailAddress = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeEmailAddress >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataEmailAddress = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor6; originalEmailAddress: string; emailAddress: string; emailDomain: string; emailRootDomain: string; emailLocalSpecifier: string; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeEmailAddress; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType5 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType5 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor5 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType5 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDomain = { Domain: "domain", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDomain = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDomain >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataDomain = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor5; domain: string; rootDomain: string; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDomain; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType4 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType4 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor4 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType4 | null | undefined; }; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDate = { Date: "date", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDate = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDate >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataDate = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor4; /** * The attribute type of the value. */ attributeType: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeDate; /** * A date represents a single calendar year, month and day, independent of timezone. If hours, months, seconds or timezones are provided, they will be trimmed. For example, "2023" and "2023-01" will be coerced into "2023-01-01", and "2023-01-02", "2023-01-02T13:00", "2023-01-02T14:00:00", "2023-01-02T15:00:00.000000000", and "2023-01-02T15:00:00.000000000+02:00" will all be coerced to "2023-01-02". If a timezone is provided that would result in a different calendar date in UTC, the date will be coerced to UTC and then the timezone component will be trimmed. For example, the value "2023-01-02T23:00:00-10:00" will be returned as "2023-01-03". The maximum date is "9999-12-31". */ value: string; }; /** * 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", } as const; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType3 = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType3 >; /** * The actor that created this value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor3 = { /** * An ID to identify the actor. */ id?: string | null | undefined; /** * The type of actor. [Read more information on actor types here](/docs/actors). */ type?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActorType3 | null | undefined; }; /** * 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", } as const; /** * The ISO4217 currency code representing the currency that the value is stored in. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCurrencyCode = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCurrencyCode >; /** * The attribute type of the value. */ export const GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeCurrency = { Currency: "currency", } as const; /** * The attribute type of the value. */ export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeCurrency = ClosedEnum< typeof GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesAttributeTypeCurrency >; export type GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesDataCurrency = { /** * The point in time at which this value was made "active". `active_from` can be considered roughly analogous to `created_at`. */ activeFrom: Date; /** * The point in time at which this value was deactivated. If `null`, the value is active. */ activeUntil: Date | null; /** * The actor that created this value. */ createdByActor: GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCreatedByActor3; /** * A numerical representation of the currency value. A decimal with a max of 4 decimal places. */ currencyValue: number; /** * The ISO4217 currency code representing the currency that the value is stored in. */ currencyCode?: | GetV2ObjectsObjectRecordsRecordIdAttributesAttributeValuesCurrencyCode | null | undefined; /** *