attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
1,909 lines (1,838 loc) • 262 kB
text/typescript
/*
* 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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesRequest = {
list: string;
entryId: 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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType17 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType17 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType17
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor17 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType17
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeTimestamp =
{
Timestamp: "timestamp",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeTimestamp =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeTimestamp
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataTimestamp =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor17;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeTimestamp;
/**
* 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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType16 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType16 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType16
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor16 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType16
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeText =
{
Text: "text",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeText =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeText
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataText = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor16;
/**
* A raw text field. Values are limited to 10MB.
*/
value: string;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeText;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType15 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType15 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType15
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor15 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType15
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeSelect =
{
Select: "select",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeSelect =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeSelect
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataSelect = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor15;
option: SelectOption;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeSelect;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType14 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType14 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType14
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor14 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType14
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRating =
{
Rating: "rating",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRating =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRating
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataRating = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor14;
/**
* A number between 0 and 5 (inclusive) to represent a star rating.
*/
value: number;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRating;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType13 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType13 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType13
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor13 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType13
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeStatus =
{
Status: "status",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeStatus =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeStatus
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataStatus = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor13;
status: Status;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeStatus;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType12 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType12 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType12
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor12 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType12
| null
| undefined;
};
/**
* The ISO 3166-1 alpha-2 country code representing the country that this phone number belongs to.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode2 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode2 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode2
>;
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePhoneNumber =
{
PhoneNumber: "phone-number",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePhoneNumber =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePhoneNumber
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataPhoneNumber =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor12;
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode2;
phoneNumber: string;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePhoneNumber;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType11 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType11 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType11
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor11 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType11
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePersonalName =
{
PersonalName: "personal-name",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePersonalName =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePersonalName
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataPersonalName =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor11;
/**
* The first name.
*/
firstName: string;
/**
* The last name.
*/
lastName: string;
/**
* The full name.
*/
fullName: string;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypePersonalName;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType10 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType10 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType10
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor10 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType10
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeNumber =
{
Number: "number",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeNumber =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeNumber
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataNumber = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor10;
/**
* Numbers are persisted as 64 bit floats.
*/
value: number;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeNumber;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType9 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType9 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType9
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor9 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType9
| null
| undefined;
};
/**
* The ISO 3166-1 alpha-2 country code for the country this location is in.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode1 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode1 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode1
>;
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeLocation =
{
Location: "location",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeLocation =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeLocation
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataLocation =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor9;
/**
* 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:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCountryCode1
| 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeLocation;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType8 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType8 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType8
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor8 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType8
| null
| undefined;
};
/**
* The type of interaction e.g. calendar or email.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesInteractionType =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesInteractionType =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesInteractionType
>;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesOwnerActorType =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesOwnerActorType =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesOwnerActorType
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesOwnerActor = {
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesOwnerActorType
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeInteraction =
{
Interaction: "interaction",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeInteraction =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeInteraction
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataInteraction =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor8;
/**
* The type of interaction e.g. calendar or email.
*/
interactionType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesInteractionType;
/**
* When the interaction occurred.
*/
interactedAt: Date;
/**
* The actor that created this value.
*/
ownerActor: GetV2ListsListEntriesEntryIdAttributesAttributeValuesOwnerActor;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeInteraction;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType7 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType7 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType7
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor7 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType7
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRecordReference =
{
RecordReference: "record-reference",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRecordReference =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRecordReference
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataRecordReference =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor7;
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeRecordReference;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType6 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType6 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType6
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor6 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType6
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeEmailAddress =
{
EmailAddress: "email-address",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeEmailAddress =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeEmailAddress
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataEmailAddress =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor6;
originalEmailAddress: string;
emailAddress: string;
emailDomain: string;
emailRootDomain: string;
emailLocalSpecifier: string;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeEmailAddress;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType5 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType5 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType5
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor5 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType5
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDomain =
{
Domain: "domain",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDomain =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDomain
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataDomain = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor5;
domain: string;
rootDomain: string;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDomain;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType4 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType4 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType4
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor4 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType4
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDate =
{
Date: "date",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDate =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDate
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataDate = {
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor4;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeDate;
/**
* 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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType3 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType3 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType3
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor3 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType3
| null
| undefined;
};
/**
* The ISO4217 currency code representing the currency that the value is stored in.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCurrencyCode =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCurrencyCode =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCurrencyCode
>;
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeCurrency =
{
Currency: "currency",
} as const;
/**
* The attribute type of the value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeCurrency =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeCurrency
>;
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesDataCurrency =
{
/**
* 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:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor3;
/**
* 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?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCurrencyCode
| null
| undefined;
/**
* The attribute type of the value.
*/
attributeType:
GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeCurrency;
};
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType2 =
{
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 GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType2 =
ClosedEnum<
typeof GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType2
>;
/**
* The actor that created this value.
*/
export type GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActor2 =
{
/**
* An ID to identify the actor.
*/
id?: string | null | undefined;
/**
* The type of actor. [Read more information on actor types here](/docs/actors).
*/
type?:
| GetV2ListsListEntriesEntryIdAttributesAttributeValuesCreatedByActorType2
| null
| undefined;
};
/**
* The attribute type of the value.
*/
export const GetV2ListsListEntriesEntryIdAttributesAttributeValuesAttributeTypeC