Artiva V2
Search…
⌃K

Data Schemas

Metadata

Artiva platform metadata currently conforms to the following schema.
1
type Navigation = {
2
label: string;
3
url: string;
4
secondary: boolean;
5
};
6
7
type Tag = {
8
name: string;
9
color: string;
10
slug: string;
11
description: string;
12
image_url: string;
13
};
14
15
type CustomProperty = {
16
type: "boolean" | "text" | "select" | "color" | "image";
17
options?: string[];
18
default?: any;
19
group?: "homepage" | "post";
20
};
21
22
type Platform = {
23
title: string;
24
description: string;
25
logo?: string;
26
icon?: string;
27
themeURL?: string;
28
accent_color?: string;
29
cover_image?: string;
30
codeinjection_head?: string;
31
codeinjection_foot?: string;
32
navigation?: Navigation[];
33
tags?: Tag[];
34
timezone?: string;
35
locale?: string;
36
meta_title?: string;
37
meta_description?: string;
38
twitter_image?: string;
39
twitter_title?: string;
40
twitter_description?: string;
41
og_image?: string;
42
og_title?: string;
43
og_description?: string;
44
url?: string;
45
custom: {
46
[key: string]: CustomProperty;
47
};
48
};

Post

Artiva post data conforms to the following schema
type ChainIdentifier = "ETHEREUM" | "POLYGON";
type NFTIdentifier = {
chain: ChainIdentifier;
contractAddress: string;
tokenId: string;
};
type NFTContractIdentifier = {
chain: ChainIdentifier;
contractAddress: string;
};
type PostContent = NFTIdentifier | NFTContractIdentifier;
enum PostTypeEnum {
NFT = "nft",
NFT_CONTRACT = "nftContract",
}
type Post = {
id: string;
content: PostContent;
type: PostTypeEnum;
tags?: string[];
};