@openrails/contentkit-ui 0.79.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -54
- package/dist/client/beacons.d.ts +53 -0
- package/dist/client/beacons.js +72 -0
- package/dist/client/beacons.js.map +1 -0
- package/dist/client/catalog.d.ts +2 -2
- package/dist/client/catalog.js +1 -1
- package/dist/client/catalog.js.map +1 -1
- package/dist/client/client.d.ts +24 -11
- package/dist/client/client.js +37 -29
- package/dist/client/client.js.map +1 -1
- package/dist/client/content/comments.d.ts +12 -8
- package/dist/client/content/comments.js +33 -20
- package/dist/client/content/comments.js.map +1 -1
- package/dist/client/content/favorites.d.ts +24 -9
- package/dist/client/content/favorites.js +21 -22
- package/dist/client/content/favorites.js.map +1 -1
- package/dist/client/content/moderation.d.ts +1 -1
- package/dist/client/content/moderation.js.map +1 -1
- package/dist/client/content/reactions.d.ts +11 -6
- package/dist/client/content/reactions.js +23 -18
- package/dist/client/content/reactions.js.map +1 -1
- package/dist/client/content/types.d.ts +40 -21
- package/dist/client/content/types.js +5 -2
- package/dist/client/content/types.js.map +1 -1
- package/dist/client/contents.d.ts +55 -0
- package/dist/client/contents.js +144 -0
- package/dist/client/contents.js.map +1 -0
- package/dist/client/discovery.d.ts +126 -0
- package/dist/client/discovery.js +125 -0
- package/dist/client/discovery.js.map +1 -0
- package/dist/client/generated/error-codes.d.ts +1 -1
- package/dist/client/generated/error-codes.js +12 -0
- package/dist/client/generated/error-codes.js.map +1 -1
- package/dist/client/generated/routes.d.ts +1244 -370
- package/dist/client/generated/routes.js +1870 -554
- package/dist/client/generated/routes.js.map +1 -1
- package/dist/client/generated/wire.d.ts +960 -134
- package/dist/client/generated/wire.js.map +1 -1
- package/dist/client/group-fields.d.ts +25 -0
- package/dist/client/group-fields.js +63 -0
- package/dist/client/group-fields.js.map +1 -0
- package/dist/client/groups.d.ts +58 -0
- package/dist/client/groups.js +119 -0
- package/dist/client/groups.js.map +1 -0
- package/dist/client/http.d.ts +24 -12
- package/dist/client/http.js +20 -24
- package/dist/client/http.js.map +1 -1
- package/dist/client/index.d.ts +11 -6
- package/dist/client/media/api.d.ts +1 -1
- package/dist/client/media/api.js +4 -2
- package/dist/client/media/api.js.map +1 -1
- package/dist/client/media/client.d.ts +8 -9
- package/dist/client/media/client.js +58 -71
- package/dist/client/media/client.js.map +1 -1
- package/dist/client/media/ref.d.ts +30 -0
- package/dist/client/media/ref.js +10 -3
- package/dist/client/media/ref.js.map +1 -1
- package/dist/client/offers.d.ts +41 -0
- package/dist/client/offers.js +66 -0
- package/dist/client/offers.js.map +1 -0
- package/dist/client/route.d.ts +2 -0
- package/dist/client/route.js +2 -1
- package/dist/client/route.js.map +1 -1
- package/dist/client/versions.d.ts +20 -0
- package/dist/client/versions.js +53 -0
- package/dist/client/versions.js.map +1 -0
- package/dist/client.js +35 -30
- package/dist/components/admin/content-manager.d.ts +80 -0
- package/dist/components/admin/content-manager.js +591 -0
- package/dist/components/admin/content-manager.js.map +1 -0
- package/dist/components/admin/group-manager.d.ts +24 -0
- package/dist/components/admin/group-manager.js +244 -0
- package/dist/components/admin/group-manager.js.map +1 -0
- package/dist/components/admin/media-item-panel.js +1 -1
- package/dist/components/admin/media-item-panel.js.map +1 -1
- package/dist/components/content/card.d.ts +44 -0
- package/dist/components/content/card.js +285 -0
- package/dist/components/content/card.js.map +1 -0
- package/dist/components/content/editors.d.ts +40 -0
- package/dist/components/content/editors.js +764 -0
- package/dist/components/content/editors.js.map +1 -0
- package/dist/components/content/filters.d.ts +28 -0
- package/dist/components/content/filters.js +134 -0
- package/dist/components/content/filters.js.map +1 -0
- package/dist/components/content/grid.d.ts +62 -0
- package/dist/components/content/grid.js +233 -0
- package/dist/components/content/grid.js.map +1 -0
- package/dist/components/content/index.d.ts +8 -0
- package/dist/components/content/listing.d.ts +20 -0
- package/dist/components/content/listing.js +150 -0
- package/dist/components/content/listing.js.map +1 -0
- package/dist/components/content/offer-fields.d.ts +8 -0
- package/dist/components/content/offer-fields.js +127 -0
- package/dist/components/content/offer-fields.js.map +1 -0
- package/dist/components/content/paywall.d.ts +53 -0
- package/dist/components/content/paywall.js +221 -0
- package/dist/components/content/paywall.js.map +1 -0
- package/dist/components/content/search.d.ts +27 -0
- package/dist/components/content/search.js +164 -0
- package/dist/components/content/search.js.map +1 -0
- package/dist/components/groups/banner.d.ts +51 -0
- package/dist/components/groups/banner.js +194 -0
- package/dist/components/groups/banner.js.map +1 -0
- package/dist/components/groups/directory.d.ts +37 -0
- package/dist/components/groups/directory.js +117 -0
- package/dist/components/groups/directory.js.map +1 -0
- package/dist/components/groups/editor.d.ts +44 -0
- package/dist/components/groups/editor.js +860 -0
- package/dist/components/groups/editor.js.map +1 -0
- package/dist/components/groups/fields.d.ts +13 -0
- package/dist/components/groups/fields.js +68 -0
- package/dist/components/groups/fields.js.map +1 -0
- package/dist/components/groups/header.d.ts +25 -0
- package/dist/components/groups/header.js +131 -0
- package/dist/components/groups/header.js.map +1 -0
- package/dist/components/groups/index.d.ts +6 -0
- package/dist/components/groups/memberships.d.ts +55 -0
- package/dist/components/groups/memberships.js +527 -0
- package/dist/components/groups/memberships.js.map +1 -0
- package/dist/components/groups/parts.d.ts +49 -0
- package/dist/components/groups/parts.js +172 -0
- package/dist/components/groups/parts.js.map +1 -0
- package/dist/components/media-folder-editor.js +153 -152
- package/dist/components/media-folder-editor.js.map +1 -1
- package/dist/components/social/comments.d.ts +7 -5
- package/dist/components/social/comments.js +6 -2
- package/dist/components/social/comments.js.map +1 -1
- package/dist/components/social/engagement.d.ts +4 -3
- package/dist/components/social/engagement.js.map +1 -1
- package/dist/components/social/moderation.d.ts +1 -1
- package/dist/components/social/moderation.js +3 -3
- package/dist/components/social/moderation.js.map +1 -1
- package/dist/editor/rich-text-editor.d.ts +4 -4
- package/dist/editor/rich-text-editor.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +23 -9
- package/dist/locales/admin/de.js +5 -66
- package/dist/locales/admin/de.js.map +1 -1
- package/dist/locales/admin/en.d.ts +5 -66
- package/dist/locales/admin/en.js +19 -80
- package/dist/locales/admin/en.js.map +1 -1
- package/dist/locales/admin/es.js +5 -66
- package/dist/locales/admin/es.js.map +1 -1
- package/dist/locales/admin/ja.js +5 -66
- package/dist/locales/admin/ja.js.map +1 -1
- package/dist/locales/admin/ko.js +5 -66
- package/dist/locales/admin/ko.js.map +1 -1
- package/dist/locales/admin/zh.js +5 -66
- package/dist/locales/admin/zh.js.map +1 -1
- package/dist/locales/content/de.d.ts +2 -0
- package/dist/locales/content/de.js +98 -0
- package/dist/locales/content/de.js.map +1 -0
- package/dist/locales/content/en.d.ts +93 -0
- package/dist/locales/content/en.js +98 -0
- package/dist/locales/content/en.js.map +1 -0
- package/dist/locales/content/es.d.ts +2 -0
- package/dist/locales/content/es.js +98 -0
- package/dist/locales/content/es.js.map +1 -0
- package/dist/locales/content/ja.d.ts +2 -0
- package/dist/locales/content/ja.js +98 -0
- package/dist/locales/content/ja.js.map +1 -0
- package/dist/locales/content/ko.d.ts +2 -0
- package/dist/locales/content/ko.js +98 -0
- package/dist/locales/content/ko.js.map +1 -0
- package/dist/locales/content/zh.d.ts +2 -0
- package/dist/locales/content/zh.js +98 -0
- package/dist/locales/content/zh.js.map +1 -0
- package/dist/locales/de.js +11 -2
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/discovery/de.d.ts +2 -0
- package/dist/locales/discovery/de.js +68 -0
- package/dist/locales/discovery/de.js.map +1 -0
- package/dist/locales/discovery/en.d.ts +63 -0
- package/dist/locales/discovery/en.js +68 -0
- package/dist/locales/discovery/en.js.map +1 -0
- package/dist/locales/discovery/es.d.ts +2 -0
- package/dist/locales/discovery/es.js +68 -0
- package/dist/locales/discovery/es.js.map +1 -0
- package/dist/locales/discovery/ja.d.ts +2 -0
- package/dist/locales/discovery/ja.js +68 -0
- package/dist/locales/discovery/ja.js.map +1 -0
- package/dist/locales/discovery/ko.d.ts +2 -0
- package/dist/locales/discovery/ko.js +68 -0
- package/dist/locales/discovery/ko.js.map +1 -0
- package/dist/locales/discovery/zh.d.ts +2 -0
- package/dist/locales/discovery/zh.js +68 -0
- package/dist/locales/discovery/zh.js.map +1 -0
- package/dist/locales/en.d.ts +288 -67
- package/dist/locales/en.js +11 -2
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +11 -2
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/groups/de.d.ts +2 -0
- package/dist/locales/groups/de.js +133 -0
- package/dist/locales/groups/de.js.map +1 -0
- package/dist/locales/groups/en.d.ts +128 -0
- package/dist/locales/groups/en.js +133 -0
- package/dist/locales/groups/en.js.map +1 -0
- package/dist/locales/groups/es.d.ts +2 -0
- package/dist/locales/groups/es.js +133 -0
- package/dist/locales/groups/es.js.map +1 -0
- package/dist/locales/groups/ja.d.ts +2 -0
- package/dist/locales/groups/ja.js +133 -0
- package/dist/locales/groups/ja.js.map +1 -0
- package/dist/locales/groups/ko.d.ts +2 -0
- package/dist/locales/groups/ko.js +133 -0
- package/dist/locales/groups/ko.js.map +1 -0
- package/dist/locales/groups/zh.d.ts +2 -0
- package/dist/locales/groups/zh.js +133 -0
- package/dist/locales/groups/zh.js.map +1 -0
- package/dist/locales/ja.js +11 -2
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +11 -2
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/social/de.js +2 -1
- package/dist/locales/social/de.js.map +1 -1
- package/dist/locales/social/en.d.ts +2 -1
- package/dist/locales/social/en.js +2 -1
- package/dist/locales/social/en.js.map +1 -1
- package/dist/locales/social/es.js +2 -1
- package/dist/locales/social/es.js.map +1 -1
- package/dist/locales/social/ja.js +2 -1
- package/dist/locales/social/ja.js.map +1 -1
- package/dist/locales/social/ko.js +2 -1
- package/dist/locales/social/ko.js.map +1 -1
- package/dist/locales/social/zh.js +2 -1
- package/dist/locales/social/zh.js.map +1 -1
- package/dist/locales/zh.js +11 -2
- package/dist/locales/zh.js.map +1 -1
- package/dist/react/admin.d.ts +1 -1
- package/dist/react/admin.js +8 -6
- package/dist/react/admin.js.map +1 -1
- package/dist/react/comments.d.ts +9 -7
- package/dist/react/comments.js +42 -27
- package/dist/react/comments.js.map +1 -1
- package/dist/react/contents.d.ts +57 -0
- package/dist/react/contents.js +214 -0
- package/dist/react/contents.js.map +1 -0
- package/dist/react/context.d.ts +1 -1
- package/dist/react/context.js.map +1 -1
- package/dist/react/crop.js +45 -44
- package/dist/react/crop.js.map +1 -1
- package/dist/react/detail.d.ts +30 -0
- package/dist/react/detail.js +42 -0
- package/dist/react/detail.js.map +1 -0
- package/dist/react/discovery.d.ts +138 -0
- package/dist/react/discovery.js +299 -0
- package/dist/react/discovery.js.map +1 -0
- package/dist/react/engagement.d.ts +5 -5
- package/dist/react/engagement.js +55 -41
- package/dist/react/engagement.js.map +1 -1
- package/dist/react/folder.js +54 -53
- package/dist/react/folder.js.map +1 -1
- package/dist/react/groups.d.ts +115 -0
- package/dist/react/groups.js +229 -0
- package/dist/react/groups.js.map +1 -0
- package/dist/react/index.d.ts +5 -1
- package/dist/react/public.d.ts +6 -5
- package/dist/react/public.js +19 -22
- package/dist/react/public.js.map +1 -1
- package/dist/react/read.js +105 -106
- package/dist/react/read.js.map +1 -1
- package/dist/react/resources.d.ts +2 -2
- package/dist/react/resources.js +69 -40
- package/dist/react/resources.js.map +1 -1
- package/dist/react/store.js +41 -39
- package/dist/react/store.js.map +1 -1
- package/dist/react/upload.js +54 -53
- package/dist/react/upload.js.map +1 -1
- package/dist/react/use-resource.d.ts +2 -1
- package/dist/react/use-resource.js +1 -0
- package/dist/react/use-resource.js.map +1 -1
- package/dist/react/versions.d.ts +57 -0
- package/dist/react/versions.js +94 -0
- package/dist/react/versions.js.map +1 -0
- package/dist/react/video.js +87 -86
- package/dist/react/video.js.map +1 -1
- package/dist/react.js +9 -5
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/client/content/posts.d.ts +0 -52
- package/dist/client/content/posts.js +0 -84
- package/dist/client/content/posts.js.map +0 -1
- package/dist/client/taxonomy.d.ts +0 -34
- package/dist/client/taxonomy.js +0 -84
- package/dist/client/taxonomy.js.map +0 -1
- package/dist/components/admin/post-manager.d.ts +0 -45
- package/dist/components/admin/post-manager.js +0 -602
- package/dist/components/admin/post-manager.js.map +0 -1
- package/dist/components/admin/taxonomy-manager.d.ts +0 -54
- package/dist/components/admin/taxonomy-manager.js +0 -976
- package/dist/components/admin/taxonomy-manager.js.map +0 -1
- package/dist/react/posts.d.ts +0 -61
- package/dist/react/posts.js +0 -183
- package/dist/react/posts.js.map +0 -1
|
@@ -9,11 +9,15 @@ export type ItemState = "ready" | "processing" | "failed";
|
|
|
9
9
|
export type EncodePhase = "queued" | "downloading" | "probing" | "encoding" | "muxing" | "uploading" | "publishing" | "images";
|
|
10
10
|
export type PollKind = "multiple_choice" | "free_text";
|
|
11
11
|
export type ModerationState = "approved" | "held" | "rejected";
|
|
12
|
+
export type ContentState = "draft" | "published" | "deleted";
|
|
13
|
+
export type VersionState = "draft" | "published";
|
|
14
|
+
export type Listing = "listed" | "members" | "unlisted";
|
|
12
15
|
export interface AdminComment {
|
|
13
16
|
id: string;
|
|
14
17
|
reply_to_id?: string;
|
|
15
18
|
user_id?: string;
|
|
16
19
|
anon_name?: string;
|
|
20
|
+
language?: string;
|
|
17
21
|
body: string;
|
|
18
22
|
deleted: boolean;
|
|
19
23
|
likes: number;
|
|
@@ -31,27 +35,53 @@ export interface AdminComment {
|
|
|
31
35
|
content_version_id?: string;
|
|
32
36
|
deleted_at?: string;
|
|
33
37
|
}
|
|
38
|
+
export interface AliasRecord {
|
|
39
|
+
kind: string;
|
|
40
|
+
key: string;
|
|
41
|
+
locator?: string;
|
|
42
|
+
target: TargetRef;
|
|
43
|
+
}
|
|
44
|
+
export interface Anchor {
|
|
45
|
+
id: string;
|
|
46
|
+
page: string;
|
|
47
|
+
offset_percent: number;
|
|
48
|
+
duration_seconds?: number;
|
|
49
|
+
}
|
|
34
50
|
export interface Anonymous {
|
|
35
51
|
comments: boolean;
|
|
36
52
|
reactions: boolean;
|
|
37
53
|
votes: boolean;
|
|
38
54
|
}
|
|
39
|
-
export interface
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
content_version_id?: string;
|
|
44
|
-
taxonomy_id: string;
|
|
45
|
-
relation: string;
|
|
46
|
-
state?: "active" | "proposed";
|
|
47
|
-
source_revision: number;
|
|
55
|
+
export interface AnswerGroup {
|
|
56
|
+
id: string;
|
|
57
|
+
label: string;
|
|
58
|
+
count: number;
|
|
48
59
|
}
|
|
49
|
-
export interface
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
export interface AnswerRecord {
|
|
61
|
+
poll: Ref;
|
|
62
|
+
user_id: string;
|
|
63
|
+
text: string;
|
|
64
|
+
created_at?: string;
|
|
65
|
+
updated_at?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface Attribute {
|
|
68
|
+
type: string;
|
|
69
|
+
values?: string[];
|
|
70
|
+
filterable?: boolean;
|
|
71
|
+
sortable?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface Avatar {
|
|
74
|
+
image?: string;
|
|
75
|
+
renditions?: Rendition[];
|
|
52
76
|
}
|
|
53
|
-
export interface
|
|
54
|
-
|
|
77
|
+
export interface BackgroundCue {
|
|
78
|
+
file: string;
|
|
79
|
+
from_page?: string;
|
|
80
|
+
to_page?: string;
|
|
81
|
+
from_anchor?: string;
|
|
82
|
+
to_anchor?: string;
|
|
83
|
+
loop?: boolean;
|
|
84
|
+
layer?: string;
|
|
55
85
|
}
|
|
56
86
|
export interface BanInput {
|
|
57
87
|
reason?: string;
|
|
@@ -62,11 +92,91 @@ export interface BanNotice {
|
|
|
62
92
|
reason?: string;
|
|
63
93
|
until?: string;
|
|
64
94
|
}
|
|
95
|
+
export interface BannedWord {
|
|
96
|
+
word: string;
|
|
97
|
+
action: "mask" | "reject";
|
|
98
|
+
created_by: string;
|
|
99
|
+
created_at: string;
|
|
100
|
+
}
|
|
101
|
+
export interface BannedWordInput {
|
|
102
|
+
word: string;
|
|
103
|
+
action?: "mask" | "reject";
|
|
104
|
+
}
|
|
105
|
+
export interface Batch {
|
|
106
|
+
source: string;
|
|
107
|
+
preference_floor?: number;
|
|
108
|
+
provision_scopes?: boolean;
|
|
109
|
+
groups?: GroupRecord[];
|
|
110
|
+
contents?: ContentRecord[];
|
|
111
|
+
memberships?: MembershipSet[];
|
|
112
|
+
offers?: OfferRecord[];
|
|
113
|
+
aliases?: AliasRecord[];
|
|
114
|
+
comments?: CommentRecord[];
|
|
115
|
+
reactions?: ReactionRecord[];
|
|
116
|
+
favorites?: FavoriteRecord[];
|
|
117
|
+
polls?: PollRecord[];
|
|
118
|
+
votes?: VoteRecord[];
|
|
119
|
+
answers?: AnswerRecord[];
|
|
120
|
+
signals?: SignalRecord[];
|
|
121
|
+
}
|
|
122
|
+
export interface Card {
|
|
123
|
+
id: string;
|
|
124
|
+
kind: string;
|
|
125
|
+
code: string;
|
|
126
|
+
path: string;
|
|
127
|
+
title: string;
|
|
128
|
+
language: string;
|
|
129
|
+
cover: PublicRendition[];
|
|
130
|
+
version: CardVersion;
|
|
131
|
+
groups: Record<string, Chip[]>;
|
|
132
|
+
owner?: GroupCard;
|
|
133
|
+
counts: Counts;
|
|
134
|
+
access: CardAccess;
|
|
135
|
+
viewer?: ViewerState;
|
|
136
|
+
published_at?: string;
|
|
137
|
+
attributes: Record<string, unknown>;
|
|
138
|
+
}
|
|
139
|
+
export interface CardAccess {
|
|
140
|
+
allowed: boolean;
|
|
141
|
+
unknown?: boolean;
|
|
142
|
+
sell?: string[];
|
|
143
|
+
requires?: string;
|
|
144
|
+
preview?: Preview;
|
|
145
|
+
free_after?: string;
|
|
146
|
+
offers?: Sale[];
|
|
147
|
+
}
|
|
148
|
+
export interface CardVersion {
|
|
149
|
+
id: string;
|
|
150
|
+
languages: string[];
|
|
151
|
+
traits: string[];
|
|
152
|
+
label?: string;
|
|
153
|
+
pages?: number;
|
|
154
|
+
duration_ms?: number;
|
|
155
|
+
}
|
|
156
|
+
export interface CatalogCover {
|
|
157
|
+
image: string;
|
|
158
|
+
url?: string;
|
|
159
|
+
}
|
|
160
|
+
export interface CatalogText {
|
|
161
|
+
title: string;
|
|
162
|
+
slug?: string;
|
|
163
|
+
description?: string;
|
|
164
|
+
body?: string;
|
|
165
|
+
sort_key?: string;
|
|
166
|
+
aliases?: string[];
|
|
167
|
+
}
|
|
168
|
+
export interface Chip {
|
|
169
|
+
id: string;
|
|
170
|
+
slug: string;
|
|
171
|
+
name: string;
|
|
172
|
+
path?: string;
|
|
173
|
+
}
|
|
65
174
|
export interface Comment {
|
|
66
175
|
id: string;
|
|
67
176
|
reply_to_id?: string;
|
|
68
177
|
user_id?: string;
|
|
69
178
|
anon_name?: string;
|
|
179
|
+
language?: string;
|
|
70
180
|
body: string;
|
|
71
181
|
deleted: boolean;
|
|
72
182
|
likes: number;
|
|
@@ -96,9 +206,24 @@ export interface CommentInput {
|
|
|
96
206
|
body: string;
|
|
97
207
|
reply_to_id?: string;
|
|
98
208
|
anon_name?: string;
|
|
209
|
+
language?: string;
|
|
210
|
+
}
|
|
211
|
+
export interface CommentRecord {
|
|
212
|
+
external_id: string;
|
|
213
|
+
id?: string;
|
|
214
|
+
target: TargetRef;
|
|
215
|
+
language?: string;
|
|
216
|
+
reply_to?: Ref;
|
|
217
|
+
user_id?: string;
|
|
218
|
+
anon_name?: string;
|
|
219
|
+
body: string;
|
|
220
|
+
deleted_at?: string;
|
|
221
|
+
created_at?: string;
|
|
222
|
+
updated_at?: string;
|
|
99
223
|
}
|
|
100
224
|
export interface CommentStanding {
|
|
101
225
|
can_comment: boolean;
|
|
226
|
+
comments: string;
|
|
102
227
|
ban?: BanNotice;
|
|
103
228
|
anonymous: boolean;
|
|
104
229
|
max_length: number;
|
|
@@ -123,23 +248,169 @@ export interface Config {
|
|
|
123
248
|
anonymous: Anonymous;
|
|
124
249
|
comment_max_length: number;
|
|
125
250
|
}
|
|
251
|
+
export interface Content {
|
|
252
|
+
id: string;
|
|
253
|
+
kind: string;
|
|
254
|
+
code: string;
|
|
255
|
+
path: string;
|
|
256
|
+
language: string;
|
|
257
|
+
title: string;
|
|
258
|
+
slug?: string;
|
|
259
|
+
description?: string;
|
|
260
|
+
body?: string;
|
|
261
|
+
decision: Decision;
|
|
262
|
+
images?: Record<string, string>;
|
|
263
|
+
cover?: CatalogCover;
|
|
264
|
+
state: ContentState;
|
|
265
|
+
listing: Listing;
|
|
266
|
+
comments: string;
|
|
267
|
+
publish_at?: string;
|
|
268
|
+
published_at?: string;
|
|
269
|
+
live: boolean;
|
|
270
|
+
access: Rule;
|
|
271
|
+
restrictions: string[];
|
|
272
|
+
attributes: Record<string, unknown>;
|
|
273
|
+
owner_group_id?: string;
|
|
274
|
+
owner?: GroupCard;
|
|
275
|
+
creators: Creator[];
|
|
276
|
+
groups: GroupSummary[];
|
|
277
|
+
versions: Version[];
|
|
278
|
+
editor: boolean;
|
|
279
|
+
text?: Record<string, CatalogText>;
|
|
280
|
+
moderation?: ModerationState;
|
|
281
|
+
moderation_reason?: string;
|
|
282
|
+
ever_sold?: boolean;
|
|
283
|
+
offer?: Offer;
|
|
284
|
+
revision: number;
|
|
285
|
+
created_at: string;
|
|
286
|
+
updated_at: string;
|
|
287
|
+
deleted_at?: string;
|
|
288
|
+
}
|
|
289
|
+
export interface ContentFilter {
|
|
290
|
+
group: GroupRef;
|
|
291
|
+
default_visible: boolean;
|
|
292
|
+
labels?: Record<string, string>;
|
|
293
|
+
}
|
|
294
|
+
export interface ContentFilterState {
|
|
295
|
+
group: GroupCard;
|
|
296
|
+
label: string;
|
|
297
|
+
default_visible: boolean;
|
|
298
|
+
visible: boolean;
|
|
299
|
+
overridden: boolean;
|
|
300
|
+
}
|
|
301
|
+
export interface ContentFilters {
|
|
302
|
+
filters: ContentFilterState[];
|
|
303
|
+
include_deleted: boolean;
|
|
304
|
+
}
|
|
305
|
+
export interface ContentFiltersUpdate {
|
|
306
|
+
filters: FilterSetting[];
|
|
307
|
+
include_deleted: boolean;
|
|
308
|
+
}
|
|
309
|
+
export interface ContentGroups {
|
|
310
|
+
kinds?: string[];
|
|
311
|
+
memberships: Membership[];
|
|
312
|
+
}
|
|
313
|
+
export interface ContentInput {
|
|
314
|
+
kind: string;
|
|
315
|
+
text?: Record<string, CatalogText>;
|
|
316
|
+
listing?: Listing;
|
|
317
|
+
comments?: string;
|
|
318
|
+
access?: Rule;
|
|
319
|
+
restrictions?: string[];
|
|
320
|
+
attributes?: Record<string, unknown>;
|
|
321
|
+
owner_group_id?: string;
|
|
322
|
+
creators?: Creator[];
|
|
323
|
+
versions?: VersionInput[];
|
|
324
|
+
}
|
|
325
|
+
export interface ContentMemberships {
|
|
326
|
+
content_id: string;
|
|
327
|
+
memberships: Membership[];
|
|
328
|
+
groups: GroupCard[];
|
|
329
|
+
}
|
|
330
|
+
export interface ContentModel {
|
|
331
|
+
languages: string[];
|
|
332
|
+
tiers: string[];
|
|
333
|
+
kinds: Record<string, Kind>;
|
|
334
|
+
group_kinds: Record<string, GroupKind>;
|
|
335
|
+
content_filters: ContentFilter[];
|
|
336
|
+
}
|
|
337
|
+
export interface ContentPage {
|
|
338
|
+
contents: Card[];
|
|
339
|
+
next_cursor?: string;
|
|
340
|
+
}
|
|
341
|
+
export interface ContentPatch {
|
|
342
|
+
listing?: Listing;
|
|
343
|
+
comments?: string;
|
|
344
|
+
access?: Rule;
|
|
345
|
+
restrictions?: string[];
|
|
346
|
+
attributes?: Record<string, unknown>;
|
|
347
|
+
creators?: Creator[];
|
|
348
|
+
cover?: string;
|
|
349
|
+
revision?: number;
|
|
350
|
+
}
|
|
351
|
+
export interface ContentRecord {
|
|
352
|
+
external_id: string;
|
|
353
|
+
id?: string;
|
|
354
|
+
kind: string;
|
|
355
|
+
state: string;
|
|
356
|
+
publish_at?: string;
|
|
357
|
+
published_at?: string;
|
|
358
|
+
deleted_at?: string;
|
|
359
|
+
listing?: string;
|
|
360
|
+
access?: Rule;
|
|
361
|
+
restrictions?: string[];
|
|
362
|
+
attributes?: Record<string, unknown>;
|
|
363
|
+
owner_group?: Ref;
|
|
364
|
+
cover?: string;
|
|
365
|
+
creators?: Creator[];
|
|
366
|
+
text?: Record<string, CatalogText>;
|
|
367
|
+
versions?: VersionRecord[];
|
|
368
|
+
code?: string;
|
|
369
|
+
created_at?: string;
|
|
370
|
+
updated_at?: string;
|
|
371
|
+
}
|
|
126
372
|
export interface ContentRef {
|
|
127
373
|
tenant_id: string;
|
|
128
374
|
content_kind: string;
|
|
129
375
|
content_id: string;
|
|
130
376
|
content_version_id?: string;
|
|
131
377
|
}
|
|
378
|
+
export interface CopyBody {
|
|
379
|
+
ref: RefBody;
|
|
380
|
+
files: CopyRequest[];
|
|
381
|
+
}
|
|
132
382
|
export interface CopyFrom {
|
|
133
383
|
id: string;
|
|
384
|
+
version?: string;
|
|
385
|
+
path: string;
|
|
386
|
+
}
|
|
387
|
+
export interface CopyReply {
|
|
388
|
+
files: StagedCopy[];
|
|
389
|
+
}
|
|
390
|
+
export interface CopyRequest {
|
|
134
391
|
path: string;
|
|
392
|
+
type: string;
|
|
393
|
+
from: string;
|
|
394
|
+
size?: number;
|
|
135
395
|
}
|
|
136
396
|
export interface Count {
|
|
137
397
|
content_kind: string;
|
|
138
398
|
language: string;
|
|
139
399
|
count: number;
|
|
140
400
|
}
|
|
141
|
-
export interface
|
|
142
|
-
|
|
401
|
+
export interface Counts {
|
|
402
|
+
likes: number;
|
|
403
|
+
dislikes: number;
|
|
404
|
+
favorites: number;
|
|
405
|
+
views: number;
|
|
406
|
+
}
|
|
407
|
+
export interface Creator {
|
|
408
|
+
user_id: string;
|
|
409
|
+
role?: string;
|
|
410
|
+
position: number;
|
|
411
|
+
}
|
|
412
|
+
export interface CreatorsInput {
|
|
413
|
+
creators: Creator[];
|
|
143
414
|
}
|
|
144
415
|
export interface Crop {
|
|
145
416
|
x: number;
|
|
@@ -147,30 +418,37 @@ export interface Crop {
|
|
|
147
418
|
w: number;
|
|
148
419
|
h: number;
|
|
149
420
|
}
|
|
421
|
+
export interface DateCount {
|
|
422
|
+
date: string;
|
|
423
|
+
count: number;
|
|
424
|
+
free: number;
|
|
425
|
+
}
|
|
426
|
+
export interface Decision {
|
|
427
|
+
allowed: boolean;
|
|
428
|
+
unknown?: boolean;
|
|
429
|
+
sell?: string[];
|
|
430
|
+
requires?: string;
|
|
431
|
+
preview?: Preview;
|
|
432
|
+
free_after?: string;
|
|
433
|
+
offers?: Sale[];
|
|
434
|
+
}
|
|
150
435
|
export interface Edge {
|
|
151
|
-
|
|
152
|
-
relation:
|
|
153
|
-
|
|
154
|
-
|
|
436
|
+
from: string;
|
|
437
|
+
relation: string;
|
|
438
|
+
to: string;
|
|
439
|
+
}
|
|
440
|
+
export interface EdgeInput {
|
|
441
|
+
relation: string;
|
|
442
|
+
to: string;
|
|
155
443
|
}
|
|
156
|
-
export interface
|
|
157
|
-
|
|
444
|
+
export interface EdgeRecord {
|
|
445
|
+
relation: string;
|
|
446
|
+
to: Ref;
|
|
158
447
|
}
|
|
159
448
|
export interface Edit {
|
|
160
449
|
crop?: Crop;
|
|
161
450
|
rotate?: number;
|
|
162
451
|
}
|
|
163
|
-
export interface EffectiveTag {
|
|
164
|
-
taxonomy_id: string;
|
|
165
|
-
kind: string;
|
|
166
|
-
slug: string;
|
|
167
|
-
relation: string;
|
|
168
|
-
scope: "content" | "version";
|
|
169
|
-
}
|
|
170
|
-
export interface EffectiveTagsOf {
|
|
171
|
-
content: ContentRef;
|
|
172
|
-
tags: EffectiveTag[];
|
|
173
|
-
}
|
|
174
452
|
export interface EncodeProgress {
|
|
175
453
|
phase: EncodePhase;
|
|
176
454
|
queue_position?: number;
|
|
@@ -205,23 +483,36 @@ export interface ErrorReply {
|
|
|
205
483
|
error: string;
|
|
206
484
|
code: ErrorCode;
|
|
207
485
|
retry_after?: number;
|
|
208
|
-
action?: "comment" | "comment_reaction" | "favorite" | "poll_vote" | "
|
|
486
|
+
action?: "comment" | "comment_reaction" | "favorite" | "poll_vote" | "reaction";
|
|
209
487
|
ban?: BanNotice;
|
|
210
488
|
blobs?: string[];
|
|
211
489
|
details?: ErrorDetails;
|
|
212
490
|
}
|
|
491
|
+
export interface ExposureInput {
|
|
492
|
+
render_id: string;
|
|
493
|
+
stage: string;
|
|
494
|
+
revision?: number;
|
|
495
|
+
query_id?: string;
|
|
496
|
+
surface?: string;
|
|
497
|
+
ranker?: string;
|
|
498
|
+
language?: string;
|
|
499
|
+
occurred_at?: string;
|
|
500
|
+
shown: Placement[];
|
|
501
|
+
}
|
|
502
|
+
export interface Exposures {
|
|
503
|
+
session?: string;
|
|
504
|
+
exposures: ExposureInput[];
|
|
505
|
+
}
|
|
213
506
|
export interface Failure {
|
|
214
507
|
of: string;
|
|
215
508
|
message: string;
|
|
216
509
|
code?: ErrorCode;
|
|
217
510
|
details?: ErrorDetails;
|
|
218
511
|
}
|
|
219
|
-
export interface
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
content_version_id?: string;
|
|
224
|
-
created_at: string;
|
|
512
|
+
export interface FavoriteRecord {
|
|
513
|
+
target: TargetRef;
|
|
514
|
+
user_id: string;
|
|
515
|
+
created_at?: string;
|
|
225
516
|
}
|
|
226
517
|
export interface FavoriteState {
|
|
227
518
|
favorited: boolean;
|
|
@@ -232,6 +523,7 @@ export interface FeedItem {
|
|
|
232
523
|
reply_to_id?: string;
|
|
233
524
|
user_id?: string;
|
|
234
525
|
anon_name?: string;
|
|
526
|
+
language?: string;
|
|
235
527
|
body: string;
|
|
236
528
|
deleted: boolean;
|
|
237
529
|
likes: number;
|
|
@@ -270,6 +562,20 @@ export interface FileInfo {
|
|
|
270
562
|
editor_url?: string;
|
|
271
563
|
progress?: EncodeProgress;
|
|
272
564
|
}
|
|
565
|
+
export interface FilterSetting {
|
|
566
|
+
group_id: string;
|
|
567
|
+
visible: boolean;
|
|
568
|
+
}
|
|
569
|
+
export interface ForegroundCue {
|
|
570
|
+
file: string;
|
|
571
|
+
page?: string;
|
|
572
|
+
anchor?: string;
|
|
573
|
+
}
|
|
574
|
+
export interface ForkBody {
|
|
575
|
+
from: string;
|
|
576
|
+
playback?: boolean;
|
|
577
|
+
segments?: boolean;
|
|
578
|
+
}
|
|
273
579
|
export interface Frame {
|
|
274
580
|
t?: number;
|
|
275
581
|
auto?: boolean;
|
|
@@ -277,8 +583,166 @@ export interface Frame {
|
|
|
277
583
|
}
|
|
278
584
|
export interface Group {
|
|
279
585
|
id: string;
|
|
280
|
-
|
|
586
|
+
kind: string;
|
|
587
|
+
slug: string;
|
|
588
|
+
scope_id?: string;
|
|
589
|
+
parent_id?: string;
|
|
590
|
+
state: "active" | "deleted" | "merged";
|
|
591
|
+
merged_into?: string;
|
|
592
|
+
attributes: Record<string, unknown>;
|
|
593
|
+
cover?: GroupsCover;
|
|
594
|
+
avatar?: Avatar;
|
|
595
|
+
owner_user_id?: string;
|
|
596
|
+
auth_scope?: string;
|
|
597
|
+
created_at: string;
|
|
598
|
+
updated_at: string;
|
|
599
|
+
revision: number;
|
|
600
|
+
}
|
|
601
|
+
export interface GroupAccess {
|
|
602
|
+
key: string;
|
|
603
|
+
offer?: Sale;
|
|
604
|
+
member: boolean;
|
|
605
|
+
editor?: boolean;
|
|
606
|
+
unknown?: boolean;
|
|
607
|
+
}
|
|
608
|
+
export interface GroupCard {
|
|
609
|
+
id: string;
|
|
610
|
+
kind: string;
|
|
611
|
+
slug: string;
|
|
612
|
+
scope_id?: string;
|
|
613
|
+
parent_id?: string;
|
|
614
|
+
name: string;
|
|
615
|
+
name_language?: string;
|
|
616
|
+
code?: string;
|
|
617
|
+
path?: string;
|
|
618
|
+
cover?: GroupsCover;
|
|
619
|
+
avatar?: Avatar;
|
|
281
620
|
count: number;
|
|
621
|
+
attributes: Record<string, unknown>;
|
|
622
|
+
access?: GroupAccess;
|
|
623
|
+
created_at: string;
|
|
624
|
+
}
|
|
625
|
+
export interface GroupDetail {
|
|
626
|
+
id: string;
|
|
627
|
+
kind: string;
|
|
628
|
+
slug: string;
|
|
629
|
+
scope_id?: string;
|
|
630
|
+
parent_id?: string;
|
|
631
|
+
state: "active" | "deleted" | "merged";
|
|
632
|
+
merged_into?: string;
|
|
633
|
+
attributes: Record<string, unknown>;
|
|
634
|
+
cover?: GroupsCover;
|
|
635
|
+
avatar?: Avatar;
|
|
636
|
+
owner_user_id?: string;
|
|
637
|
+
auth_scope?: string;
|
|
638
|
+
created_at: string;
|
|
639
|
+
updated_at: string;
|
|
640
|
+
revision: number;
|
|
641
|
+
name: string;
|
|
642
|
+
name_language?: string;
|
|
643
|
+
code?: string;
|
|
644
|
+
path?: string;
|
|
645
|
+
names: Name[];
|
|
646
|
+
text: GroupsText[];
|
|
647
|
+
parent?: GroupCard;
|
|
648
|
+
scope?: GroupCard;
|
|
649
|
+
children: GroupCard[];
|
|
650
|
+
edges: Edge[];
|
|
651
|
+
counts: Count[];
|
|
652
|
+
access?: GroupAccess;
|
|
653
|
+
}
|
|
654
|
+
export interface GroupInput {
|
|
655
|
+
id?: string;
|
|
656
|
+
kind: string;
|
|
657
|
+
slug: string;
|
|
658
|
+
scope_id?: string;
|
|
659
|
+
parent_id?: string;
|
|
660
|
+
attributes?: Record<string, unknown>;
|
|
661
|
+
cover?: GroupsCover;
|
|
662
|
+
avatar?: Avatar;
|
|
663
|
+
owner_user_id?: string;
|
|
664
|
+
auth_scope?: string;
|
|
665
|
+
names?: Name[];
|
|
666
|
+
text?: GroupsText[];
|
|
667
|
+
}
|
|
668
|
+
export interface GroupJoin {
|
|
669
|
+
group_id: string;
|
|
670
|
+
key: string;
|
|
671
|
+
member: boolean;
|
|
672
|
+
}
|
|
673
|
+
export interface GroupKind {
|
|
674
|
+
route?: string;
|
|
675
|
+
ordered?: boolean;
|
|
676
|
+
parent?: string;
|
|
677
|
+
scoped_by?: string;
|
|
678
|
+
owner?: string;
|
|
679
|
+
max_per_owner?: number;
|
|
680
|
+
uploads?: UploadLimits;
|
|
681
|
+
sellable?: boolean;
|
|
682
|
+
auth_scope?: boolean;
|
|
683
|
+
windows?: boolean;
|
|
684
|
+
version_level?: boolean;
|
|
685
|
+
roles?: string[];
|
|
686
|
+
attributes?: Record<string, Attribute>;
|
|
687
|
+
}
|
|
688
|
+
export interface GroupPage {
|
|
689
|
+
groups: GroupCard[];
|
|
690
|
+
next_cursor?: string;
|
|
691
|
+
}
|
|
692
|
+
export interface GroupRecord {
|
|
693
|
+
external_id: string;
|
|
694
|
+
id?: string;
|
|
695
|
+
kind: string;
|
|
696
|
+
slug: string;
|
|
697
|
+
scope?: Ref;
|
|
698
|
+
parent?: Ref;
|
|
699
|
+
state?: string;
|
|
700
|
+
names?: Name[];
|
|
701
|
+
text?: GroupsText[];
|
|
702
|
+
attributes?: Record<string, unknown>;
|
|
703
|
+
cover_image?: string;
|
|
704
|
+
cover_content?: Ref;
|
|
705
|
+
avatar?: string;
|
|
706
|
+
owner_user_id?: string;
|
|
707
|
+
auth_scope?: string;
|
|
708
|
+
edges?: EdgeRecord[];
|
|
709
|
+
code?: string;
|
|
710
|
+
created_at?: string;
|
|
711
|
+
updated_at?: string;
|
|
712
|
+
}
|
|
713
|
+
export interface GroupRef {
|
|
714
|
+
kind: string;
|
|
715
|
+
slug: string;
|
|
716
|
+
}
|
|
717
|
+
export interface GroupSummary {
|
|
718
|
+
id: string;
|
|
719
|
+
kind: string;
|
|
720
|
+
slug: string;
|
|
721
|
+
name: string;
|
|
722
|
+
}
|
|
723
|
+
export interface GroupUpdate {
|
|
724
|
+
slug?: string;
|
|
725
|
+
scope_id?: string;
|
|
726
|
+
parent_id?: string;
|
|
727
|
+
state?: "active" | "deleted" | "merged";
|
|
728
|
+
attributes?: Record<string, unknown>;
|
|
729
|
+
cover?: GroupsCover;
|
|
730
|
+
avatar?: Avatar;
|
|
731
|
+
owner_user_id?: string;
|
|
732
|
+
auth_scope?: string;
|
|
733
|
+
names?: Name[];
|
|
734
|
+
text?: GroupsText[];
|
|
735
|
+
}
|
|
736
|
+
export interface GroupsCover {
|
|
737
|
+
image?: string;
|
|
738
|
+
content_id?: string;
|
|
739
|
+
auto?: boolean;
|
|
740
|
+
renditions?: Rendition[];
|
|
741
|
+
}
|
|
742
|
+
export interface GroupsText {
|
|
743
|
+
language: string;
|
|
744
|
+
description?: string;
|
|
745
|
+
sort_key?: string;
|
|
282
746
|
}
|
|
283
747
|
export interface HeldItem {
|
|
284
748
|
kind: string;
|
|
@@ -302,6 +766,19 @@ export interface HeldPage {
|
|
|
302
766
|
items: HeldItem[];
|
|
303
767
|
next?: string;
|
|
304
768
|
}
|
|
769
|
+
export interface IPBan {
|
|
770
|
+
network: string;
|
|
771
|
+
reason?: string;
|
|
772
|
+
until?: string;
|
|
773
|
+
banned_by: string;
|
|
774
|
+
banned_at: string;
|
|
775
|
+
expired: boolean;
|
|
776
|
+
}
|
|
777
|
+
export interface IPBanInput {
|
|
778
|
+
network: string;
|
|
779
|
+
reason?: string;
|
|
780
|
+
until?: string;
|
|
781
|
+
}
|
|
305
782
|
export interface ImageInput {
|
|
306
783
|
image?: string;
|
|
307
784
|
}
|
|
@@ -309,6 +786,26 @@ export interface InlineImage {
|
|
|
309
786
|
ref: string;
|
|
310
787
|
url: string | null;
|
|
311
788
|
}
|
|
789
|
+
export interface Input {
|
|
790
|
+
recipient: Recipient;
|
|
791
|
+
origin: Origin;
|
|
792
|
+
kind: string;
|
|
793
|
+
data: unknown;
|
|
794
|
+
created_at: string;
|
|
795
|
+
status?: string;
|
|
796
|
+
action_requested?: boolean;
|
|
797
|
+
severity?: string;
|
|
798
|
+
}
|
|
799
|
+
export interface Interaction {
|
|
800
|
+
content?: Card;
|
|
801
|
+
group?: GroupCard;
|
|
802
|
+
value: number;
|
|
803
|
+
at: string;
|
|
804
|
+
}
|
|
805
|
+
export interface InteractionPage {
|
|
806
|
+
items: Interaction[];
|
|
807
|
+
next_cursor?: string;
|
|
808
|
+
}
|
|
312
809
|
export interface Item {
|
|
313
810
|
id: string;
|
|
314
811
|
recipient: Recipient;
|
|
@@ -325,20 +822,76 @@ export interface Item {
|
|
|
325
822
|
updated_at: string;
|
|
326
823
|
revision: number;
|
|
327
824
|
}
|
|
825
|
+
export interface Kind {
|
|
826
|
+
route: string;
|
|
827
|
+
presentation: string;
|
|
828
|
+
versions: VersionRules;
|
|
829
|
+
segments?: boolean;
|
|
830
|
+
groups?: string[];
|
|
831
|
+
attributes?: Record<string, Attribute>;
|
|
832
|
+
sort?: string;
|
|
833
|
+
draft_ttl?: number;
|
|
834
|
+
}
|
|
328
835
|
export interface LanguageTotal {
|
|
329
836
|
public: number;
|
|
330
837
|
tiers: Record<string, number>;
|
|
331
838
|
}
|
|
839
|
+
export interface LibraryItem {
|
|
840
|
+
content_id: string;
|
|
841
|
+
kind: string;
|
|
842
|
+
title: string;
|
|
843
|
+
language?: string;
|
|
844
|
+
deleted: boolean;
|
|
845
|
+
whole: boolean;
|
|
846
|
+
version_ids: string[];
|
|
847
|
+
}
|
|
848
|
+
export interface LibraryPage {
|
|
849
|
+
items: LibraryItem[];
|
|
850
|
+
next_cursor?: string;
|
|
851
|
+
complete: boolean;
|
|
852
|
+
}
|
|
853
|
+
export interface MemberPage {
|
|
854
|
+
members: Membership[];
|
|
855
|
+
next_cursor?: string;
|
|
856
|
+
}
|
|
857
|
+
export interface MemberRef {
|
|
858
|
+
content_id: string;
|
|
859
|
+
version_id?: string;
|
|
860
|
+
}
|
|
861
|
+
export interface Membership {
|
|
862
|
+
group_id?: string;
|
|
863
|
+
content_id?: string;
|
|
864
|
+
version_id?: string;
|
|
865
|
+
role?: string;
|
|
866
|
+
position?: number;
|
|
867
|
+
active_from?: string;
|
|
868
|
+
active_until?: string;
|
|
869
|
+
state?: "active" | "proposed";
|
|
870
|
+
}
|
|
871
|
+
export interface MembershipRecord {
|
|
872
|
+
group: Ref;
|
|
873
|
+
version?: Ref;
|
|
874
|
+
role?: string;
|
|
875
|
+
position?: number;
|
|
876
|
+
active_from?: string;
|
|
877
|
+
active_until?: string;
|
|
878
|
+
state?: string;
|
|
879
|
+
}
|
|
880
|
+
export interface MembershipSet {
|
|
881
|
+
content: Ref;
|
|
882
|
+
kinds: string[];
|
|
883
|
+
memberships: MembershipRecord[];
|
|
884
|
+
}
|
|
332
885
|
export interface MergeInput {
|
|
333
|
-
|
|
886
|
+
into: string;
|
|
334
887
|
}
|
|
335
888
|
export interface MergeReport {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
889
|
+
from: string;
|
|
890
|
+
into: string;
|
|
891
|
+
memberships_moved: number;
|
|
339
892
|
names_moved: number;
|
|
340
|
-
|
|
341
|
-
|
|
893
|
+
edges_moved: number;
|
|
894
|
+
groups_moved: number;
|
|
342
895
|
}
|
|
343
896
|
export interface MultipartReply {
|
|
344
897
|
ticket: string;
|
|
@@ -346,65 +899,57 @@ export interface MultipartReply {
|
|
|
346
899
|
max_part_size: number;
|
|
347
900
|
max_parts: number;
|
|
348
901
|
}
|
|
902
|
+
export interface MyGroup {
|
|
903
|
+
id: string;
|
|
904
|
+
kind: string;
|
|
905
|
+
slug: string;
|
|
906
|
+
scope_id?: string;
|
|
907
|
+
parent_id?: string;
|
|
908
|
+
name: string;
|
|
909
|
+
name_language?: string;
|
|
910
|
+
code?: string;
|
|
911
|
+
path?: string;
|
|
912
|
+
cover?: GroupsCover;
|
|
913
|
+
avatar?: Avatar;
|
|
914
|
+
count: number;
|
|
915
|
+
attributes: Record<string, unknown>;
|
|
916
|
+
access?: GroupAccess;
|
|
917
|
+
created_at: string;
|
|
918
|
+
owner: boolean;
|
|
919
|
+
editor: boolean;
|
|
920
|
+
writer: boolean;
|
|
921
|
+
moderator: boolean;
|
|
922
|
+
member: boolean;
|
|
923
|
+
}
|
|
924
|
+
export interface MyGroupPage {
|
|
925
|
+
groups: MyGroup[];
|
|
926
|
+
next_cursor?: string;
|
|
927
|
+
}
|
|
349
928
|
export interface Name {
|
|
350
929
|
language: string;
|
|
351
930
|
kind: "alias" | "name";
|
|
352
931
|
name: string;
|
|
353
|
-
normalized?: string;
|
|
354
|
-
source_revision: number;
|
|
355
932
|
}
|
|
356
|
-
export interface
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
state: "active" | "
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
taxonomy_id: string;
|
|
368
|
-
tenant_id: string;
|
|
369
|
-
kind: string;
|
|
370
|
-
slug: string;
|
|
371
|
-
state: "active" | "deleted" | "merged";
|
|
372
|
-
source_revision: number;
|
|
373
|
-
created_at: string;
|
|
933
|
+
export interface Offer {
|
|
934
|
+
id: string;
|
|
935
|
+
target: Target;
|
|
936
|
+
key: string;
|
|
937
|
+
terms: Terms;
|
|
938
|
+
state: "active" | "withdrawn";
|
|
939
|
+
synced: boolean;
|
|
940
|
+
product_id?: string;
|
|
941
|
+
price_id?: string;
|
|
942
|
+
last_error?: string;
|
|
943
|
+
revision: number;
|
|
374
944
|
updated_at: string;
|
|
375
|
-
names: Name[];
|
|
376
|
-
edges: Edge[];
|
|
377
|
-
counts: Count[];
|
|
378
|
-
}
|
|
379
|
-
export interface NodeInput {
|
|
380
|
-
taxonomy_id?: string;
|
|
381
|
-
kind: string;
|
|
382
|
-
slug: string;
|
|
383
|
-
names?: Name[];
|
|
384
|
-
source_revision: number;
|
|
385
945
|
}
|
|
386
|
-
export interface
|
|
387
|
-
|
|
946
|
+
export interface OfferPage {
|
|
947
|
+
offers: Offer[];
|
|
388
948
|
next_cursor?: string;
|
|
389
|
-
total: number;
|
|
390
949
|
}
|
|
391
|
-
export interface
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
kind: string;
|
|
395
|
-
slug: string;
|
|
396
|
-
state: "active" | "deleted" | "merged";
|
|
397
|
-
source_revision: number;
|
|
398
|
-
created_at: string;
|
|
399
|
-
updated_at: string;
|
|
400
|
-
name?: string;
|
|
401
|
-
name_language?: string;
|
|
402
|
-
count: number;
|
|
403
|
-
}
|
|
404
|
-
export interface NodeUpdate {
|
|
405
|
-
slug?: string;
|
|
406
|
-
state?: "active" | "deleted" | "merged";
|
|
407
|
-
source_revision?: number;
|
|
950
|
+
export interface OfferRecord {
|
|
951
|
+
target: TargetRef;
|
|
952
|
+
terms: Terms;
|
|
408
953
|
}
|
|
409
954
|
export interface Op {
|
|
410
955
|
op: OpName;
|
|
@@ -423,6 +968,12 @@ export interface Op {
|
|
|
423
968
|
force?: boolean;
|
|
424
969
|
takedown?: boolean;
|
|
425
970
|
}
|
|
971
|
+
export interface Order {
|
|
972
|
+
members: MemberRef[];
|
|
973
|
+
}
|
|
974
|
+
export interface OrderInput {
|
|
975
|
+
ids: string[];
|
|
976
|
+
}
|
|
426
977
|
export interface Origin {
|
|
427
978
|
system: string;
|
|
428
979
|
scope: string;
|
|
@@ -451,6 +1002,46 @@ export interface PartsBody {
|
|
|
451
1002
|
export interface PartsReply {
|
|
452
1003
|
parts: PartReply[];
|
|
453
1004
|
}
|
|
1005
|
+
export interface Pending {
|
|
1006
|
+
status: string;
|
|
1007
|
+
}
|
|
1008
|
+
export interface Placement {
|
|
1009
|
+
content_id: string;
|
|
1010
|
+
position: number;
|
|
1011
|
+
}
|
|
1012
|
+
export interface PlanPage {
|
|
1013
|
+
name: string;
|
|
1014
|
+
w: number;
|
|
1015
|
+
h: number;
|
|
1016
|
+
files: Record<string, string>;
|
|
1017
|
+
}
|
|
1018
|
+
export interface PlanPlayback {
|
|
1019
|
+
item: RefBody;
|
|
1020
|
+
tracks: PlanTrack[];
|
|
1021
|
+
}
|
|
1022
|
+
export interface PlanPreview {
|
|
1023
|
+
index: number;
|
|
1024
|
+
name: string;
|
|
1025
|
+
url: string;
|
|
1026
|
+
w: number;
|
|
1027
|
+
h: number;
|
|
1028
|
+
}
|
|
1029
|
+
export interface PlanSegment {
|
|
1030
|
+
position?: number;
|
|
1031
|
+
title?: string;
|
|
1032
|
+
start: number;
|
|
1033
|
+
end: number;
|
|
1034
|
+
released: boolean;
|
|
1035
|
+
release_at?: string;
|
|
1036
|
+
locked: boolean;
|
|
1037
|
+
item?: RefBody;
|
|
1038
|
+
pages?: PlanPage[];
|
|
1039
|
+
}
|
|
1040
|
+
export interface PlanTrack {
|
|
1041
|
+
name: string;
|
|
1042
|
+
path: string;
|
|
1043
|
+
duration?: number;
|
|
1044
|
+
}
|
|
454
1045
|
export interface Poll {
|
|
455
1046
|
id: string;
|
|
456
1047
|
kind: PollKind;
|
|
@@ -466,7 +1057,7 @@ export interface Poll {
|
|
|
466
1057
|
voted: boolean;
|
|
467
1058
|
my_option?: string;
|
|
468
1059
|
answer_count?: number;
|
|
469
|
-
groups?:
|
|
1060
|
+
groups?: AnswerGroup[];
|
|
470
1061
|
my_answer?: PollAnswer;
|
|
471
1062
|
}
|
|
472
1063
|
export interface PollAnswer {
|
|
@@ -504,6 +1095,26 @@ export interface PollOptionPatch {
|
|
|
504
1095
|
label?: string;
|
|
505
1096
|
position?: number;
|
|
506
1097
|
}
|
|
1098
|
+
export interface PollOptionRecord {
|
|
1099
|
+
external_id: string;
|
|
1100
|
+
id?: string;
|
|
1101
|
+
label: string;
|
|
1102
|
+
position: number;
|
|
1103
|
+
}
|
|
1104
|
+
export interface PollRecord {
|
|
1105
|
+
external_id: string;
|
|
1106
|
+
id?: string;
|
|
1107
|
+
kind?: string;
|
|
1108
|
+
question: string;
|
|
1109
|
+
language?: string;
|
|
1110
|
+
active?: boolean;
|
|
1111
|
+
live_at?: string;
|
|
1112
|
+
closes_at?: string;
|
|
1113
|
+
deleted_at?: string;
|
|
1114
|
+
created_at?: string;
|
|
1115
|
+
updated_at?: string;
|
|
1116
|
+
options?: PollOptionRecord[];
|
|
1117
|
+
}
|
|
507
1118
|
export interface PollUpdate {
|
|
508
1119
|
question?: string;
|
|
509
1120
|
is_active?: boolean;
|
|
@@ -513,42 +1124,6 @@ export interface PollUpdate {
|
|
|
513
1124
|
export interface PollVote {
|
|
514
1125
|
option_id: string;
|
|
515
1126
|
}
|
|
516
|
-
export interface Post {
|
|
517
|
-
id: string;
|
|
518
|
-
author_id: string;
|
|
519
|
-
title: string;
|
|
520
|
-
slug?: string;
|
|
521
|
-
body: string;
|
|
522
|
-
excerpt?: string;
|
|
523
|
-
cover?: string;
|
|
524
|
-
cover_url?: string;
|
|
525
|
-
images?: Record<string, string>;
|
|
526
|
-
language: string;
|
|
527
|
-
is_draft: boolean;
|
|
528
|
-
live_at?: string;
|
|
529
|
-
total_likes: number;
|
|
530
|
-
total_dislikes: number;
|
|
531
|
-
comment_count: number;
|
|
532
|
-
moderation?: ModerationState;
|
|
533
|
-
moderation_reason?: string;
|
|
534
|
-
code: string;
|
|
535
|
-
url_slug: string;
|
|
536
|
-
created_at: string;
|
|
537
|
-
updated_at: string;
|
|
538
|
-
deleted_at?: string;
|
|
539
|
-
}
|
|
540
|
-
export interface PostCover {
|
|
541
|
-
cover_url: string | null;
|
|
542
|
-
}
|
|
543
|
-
export interface PostInput {
|
|
544
|
-
title?: string;
|
|
545
|
-
body?: string;
|
|
546
|
-
excerpt?: string;
|
|
547
|
-
language?: string;
|
|
548
|
-
slug?: string;
|
|
549
|
-
is_draft?: boolean;
|
|
550
|
-
live_at?: string;
|
|
551
|
-
}
|
|
552
1127
|
export interface PresetRule {
|
|
553
1128
|
kind: string;
|
|
554
1129
|
name: string;
|
|
@@ -577,6 +1152,10 @@ export interface PresignReply {
|
|
|
577
1152
|
multipart?: MultipartReply;
|
|
578
1153
|
process_on_upload?: boolean;
|
|
579
1154
|
}
|
|
1155
|
+
export interface Preview {
|
|
1156
|
+
pages?: number;
|
|
1157
|
+
segments?: number;
|
|
1158
|
+
}
|
|
580
1159
|
export interface PublicImage {
|
|
581
1160
|
from: string;
|
|
582
1161
|
preset: string;
|
|
@@ -594,11 +1173,28 @@ export interface PublicUser {
|
|
|
594
1173
|
avatar?: string;
|
|
595
1174
|
avatar_srcset?: string;
|
|
596
1175
|
}
|
|
1176
|
+
export interface Publication {
|
|
1177
|
+
notifications: Input[];
|
|
1178
|
+
}
|
|
1179
|
+
export interface PublishInput {
|
|
1180
|
+
publish_at?: string;
|
|
1181
|
+
}
|
|
1182
|
+
export interface Published {
|
|
1183
|
+
items: Item[];
|
|
1184
|
+
}
|
|
597
1185
|
export interface ReactionCounts {
|
|
598
1186
|
likes: number;
|
|
599
1187
|
dislikes: number;
|
|
600
1188
|
mine: number;
|
|
601
1189
|
}
|
|
1190
|
+
export interface ReactionRecord {
|
|
1191
|
+
target: TargetRef;
|
|
1192
|
+
user_id?: string;
|
|
1193
|
+
ip?: string;
|
|
1194
|
+
value: number;
|
|
1195
|
+
created_at?: string;
|
|
1196
|
+
updated_at?: string;
|
|
1197
|
+
}
|
|
602
1198
|
export interface ReadResult {
|
|
603
1199
|
access: Access;
|
|
604
1200
|
expires: number;
|
|
@@ -614,13 +1210,62 @@ export interface ReadResult {
|
|
|
614
1210
|
uploads?: UploadRule[];
|
|
615
1211
|
files: FileInfo[];
|
|
616
1212
|
}
|
|
1213
|
+
export interface ReaderDefaults {
|
|
1214
|
+
auto_advance_seconds?: number;
|
|
1215
|
+
}
|
|
1216
|
+
export interface ReaderMeta {
|
|
1217
|
+
schema_version: number;
|
|
1218
|
+
defaults?: ReaderDefaults;
|
|
1219
|
+
anchors?: Anchor[];
|
|
1220
|
+
background?: BackgroundCue[];
|
|
1221
|
+
foreground?: ForegroundCue[];
|
|
1222
|
+
}
|
|
1223
|
+
export interface ReaderPlan {
|
|
1224
|
+
content_id: string;
|
|
1225
|
+
version_id: string;
|
|
1226
|
+
publication_id: string;
|
|
1227
|
+
pages: number;
|
|
1228
|
+
segments: PlanSegment[];
|
|
1229
|
+
previews: PlanPreview[];
|
|
1230
|
+
playback?: PlanPlayback;
|
|
1231
|
+
reader?: ReaderMeta;
|
|
1232
|
+
}
|
|
1233
|
+
export interface RecentSearch {
|
|
1234
|
+
query: string;
|
|
1235
|
+
results: number;
|
|
1236
|
+
searched_at: string;
|
|
1237
|
+
}
|
|
1238
|
+
export interface RecentSearches {
|
|
1239
|
+
searches: RecentSearch[];
|
|
1240
|
+
}
|
|
617
1241
|
export interface Recipient {
|
|
618
1242
|
audience: string;
|
|
619
1243
|
id: string;
|
|
620
1244
|
}
|
|
1245
|
+
export interface RecordFailure {
|
|
1246
|
+
section: string;
|
|
1247
|
+
index: number;
|
|
1248
|
+
external_id?: string;
|
|
1249
|
+
code: string;
|
|
1250
|
+
error: string;
|
|
1251
|
+
}
|
|
1252
|
+
export interface Ref {
|
|
1253
|
+
id?: string;
|
|
1254
|
+
external_id?: string;
|
|
1255
|
+
}
|
|
621
1256
|
export interface RefBody {
|
|
622
1257
|
kind: string;
|
|
623
1258
|
id: string;
|
|
1259
|
+
version?: string;
|
|
1260
|
+
}
|
|
1261
|
+
export interface ReleaseDates {
|
|
1262
|
+
dates: DateCount[];
|
|
1263
|
+
next_cursor?: string;
|
|
1264
|
+
}
|
|
1265
|
+
export interface Rendition {
|
|
1266
|
+
url: string;
|
|
1267
|
+
w: number;
|
|
1268
|
+
h: number;
|
|
624
1269
|
}
|
|
625
1270
|
export interface RequestReply {
|
|
626
1271
|
method: string;
|
|
@@ -646,9 +1291,91 @@ export interface Resolved {
|
|
|
646
1291
|
export interface Restored {
|
|
647
1292
|
restored: boolean;
|
|
648
1293
|
}
|
|
1294
|
+
export interface Result {
|
|
1295
|
+
written: Record<string, number>;
|
|
1296
|
+
skipped?: Record<string, number>;
|
|
1297
|
+
failed: RecordFailure[];
|
|
1298
|
+
ids: Record<string, Record<string, string>>;
|
|
1299
|
+
}
|
|
649
1300
|
export interface ReviewOutcome {
|
|
650
1301
|
decision: "approve" | "reject" | "review";
|
|
651
1302
|
}
|
|
1303
|
+
export interface Rule {
|
|
1304
|
+
level: "group" | "group_ppv" | "ppv" | "public" | "tier";
|
|
1305
|
+
tiers?: string[];
|
|
1306
|
+
group_id?: string;
|
|
1307
|
+
preview?: Preview;
|
|
1308
|
+
free_after?: string;
|
|
1309
|
+
}
|
|
1310
|
+
export interface Sale {
|
|
1311
|
+
key: string;
|
|
1312
|
+
target: Target;
|
|
1313
|
+
terms: Terms;
|
|
1314
|
+
price_id?: string;
|
|
1315
|
+
}
|
|
1316
|
+
export interface Segment {
|
|
1317
|
+
position: number;
|
|
1318
|
+
title?: string;
|
|
1319
|
+
start: number;
|
|
1320
|
+
end: number;
|
|
1321
|
+
release_at?: string;
|
|
1322
|
+
released: boolean;
|
|
1323
|
+
}
|
|
1324
|
+
export interface SegmentsInput {
|
|
1325
|
+
segments: Segment[];
|
|
1326
|
+
}
|
|
1327
|
+
export interface SignalInput {
|
|
1328
|
+
content_id: string;
|
|
1329
|
+
version_id?: string;
|
|
1330
|
+
type: string;
|
|
1331
|
+
event_id: string;
|
|
1332
|
+
revision?: number;
|
|
1333
|
+
occurred_at: string;
|
|
1334
|
+
duration_s?: number;
|
|
1335
|
+
progress?: number;
|
|
1336
|
+
resume?: string;
|
|
1337
|
+
render_id?: string;
|
|
1338
|
+
surface?: string;
|
|
1339
|
+
position?: number;
|
|
1340
|
+
}
|
|
1341
|
+
export interface SignalRecord {
|
|
1342
|
+
target: TargetRef;
|
|
1343
|
+
user_id?: string;
|
|
1344
|
+
anon_key?: string;
|
|
1345
|
+
type: string;
|
|
1346
|
+
event_id: string;
|
|
1347
|
+
revision?: number;
|
|
1348
|
+
occurred_at: string;
|
|
1349
|
+
duration_s?: number;
|
|
1350
|
+
progress?: number;
|
|
1351
|
+
resume?: string;
|
|
1352
|
+
}
|
|
1353
|
+
export interface Signals {
|
|
1354
|
+
session?: string;
|
|
1355
|
+
signals: SignalInput[];
|
|
1356
|
+
}
|
|
1357
|
+
export interface StagedCopy {
|
|
1358
|
+
path: string;
|
|
1359
|
+
blob: string;
|
|
1360
|
+
size: number;
|
|
1361
|
+
}
|
|
1362
|
+
export interface Target {
|
|
1363
|
+
kind: "content" | "group" | "version";
|
|
1364
|
+
id: string;
|
|
1365
|
+
content_id?: string;
|
|
1366
|
+
}
|
|
1367
|
+
export interface TargetRef {
|
|
1368
|
+
content?: Ref;
|
|
1369
|
+
version?: Ref;
|
|
1370
|
+
group?: Ref;
|
|
1371
|
+
comment?: Ref;
|
|
1372
|
+
}
|
|
1373
|
+
export interface Terms {
|
|
1374
|
+
amount: string;
|
|
1375
|
+
currency: string;
|
|
1376
|
+
access_hours?: number;
|
|
1377
|
+
renew_hours?: number;
|
|
1378
|
+
}
|
|
652
1379
|
export interface TicketBody {
|
|
653
1380
|
ticket: string;
|
|
654
1381
|
}
|
|
@@ -660,6 +1387,15 @@ export interface Total {
|
|
|
660
1387
|
export interface Totals {
|
|
661
1388
|
kinds: Record<string, Total>;
|
|
662
1389
|
}
|
|
1390
|
+
export interface Typeahead {
|
|
1391
|
+
contents: Card[];
|
|
1392
|
+
groups: GroupCard[];
|
|
1393
|
+
}
|
|
1394
|
+
export interface UploadLimits {
|
|
1395
|
+
files_per_hour?: number;
|
|
1396
|
+
bytes_per_day?: number;
|
|
1397
|
+
quota_bytes?: number;
|
|
1398
|
+
}
|
|
663
1399
|
export interface UploadRule {
|
|
664
1400
|
path: string;
|
|
665
1401
|
types: string[];
|
|
@@ -673,9 +1409,99 @@ export interface UploadRule {
|
|
|
673
1409
|
min_aspect?: number;
|
|
674
1410
|
max_aspect?: number;
|
|
675
1411
|
}
|
|
1412
|
+
export interface Version {
|
|
1413
|
+
id: string;
|
|
1414
|
+
position: number;
|
|
1415
|
+
languages: string[];
|
|
1416
|
+
traits: string[];
|
|
1417
|
+
label?: string;
|
|
1418
|
+
title?: string;
|
|
1419
|
+
description?: string;
|
|
1420
|
+
state?: ContentState;
|
|
1421
|
+
publish_at?: string;
|
|
1422
|
+
published_at?: string;
|
|
1423
|
+
live: boolean;
|
|
1424
|
+
access?: Rule;
|
|
1425
|
+
attributes: Record<string, unknown>;
|
|
1426
|
+
pages?: number;
|
|
1427
|
+
duration_ms?: number;
|
|
1428
|
+
width?: number;
|
|
1429
|
+
height?: number;
|
|
1430
|
+
has_audio: boolean;
|
|
1431
|
+
ordinal?: number;
|
|
1432
|
+
segments: Segment[];
|
|
1433
|
+
decision: Decision;
|
|
1434
|
+
text?: Record<string, VersionText>;
|
|
1435
|
+
offer?: Offer;
|
|
1436
|
+
}
|
|
1437
|
+
export interface VersionFork {
|
|
1438
|
+
from: string;
|
|
1439
|
+
playback?: boolean;
|
|
1440
|
+
segments?: boolean;
|
|
1441
|
+
}
|
|
1442
|
+
export interface VersionInput {
|
|
1443
|
+
languages?: string[];
|
|
1444
|
+
traits?: string[];
|
|
1445
|
+
label?: string;
|
|
1446
|
+
state?: VersionState;
|
|
1447
|
+
publish_at?: string;
|
|
1448
|
+
access?: Rule;
|
|
1449
|
+
clear_access?: boolean;
|
|
1450
|
+
attributes?: Record<string, unknown>;
|
|
1451
|
+
text?: Record<string, VersionText>;
|
|
1452
|
+
segments?: Segment[];
|
|
1453
|
+
ordinal?: number;
|
|
1454
|
+
fork?: VersionFork;
|
|
1455
|
+
}
|
|
1456
|
+
export interface VersionRecord {
|
|
1457
|
+
external_id: string;
|
|
1458
|
+
id?: string;
|
|
1459
|
+
languages: string[];
|
|
1460
|
+
traits?: string[];
|
|
1461
|
+
label?: string;
|
|
1462
|
+
state?: string;
|
|
1463
|
+
publish_at?: string;
|
|
1464
|
+
published_at?: string;
|
|
1465
|
+
deleted_at?: string;
|
|
1466
|
+
access?: Rule;
|
|
1467
|
+
attributes?: Record<string, unknown>;
|
|
1468
|
+
ordinal?: number;
|
|
1469
|
+
text?: Record<string, VersionText>;
|
|
1470
|
+
segments?: Segment[];
|
|
1471
|
+
created_at?: string;
|
|
1472
|
+
updated_at?: string;
|
|
1473
|
+
}
|
|
1474
|
+
export interface VersionRules {
|
|
1475
|
+
languages: string;
|
|
1476
|
+
traits?: string[];
|
|
1477
|
+
hidden?: boolean;
|
|
1478
|
+
}
|
|
1479
|
+
export interface VersionText {
|
|
1480
|
+
title?: string;
|
|
1481
|
+
description?: string;
|
|
1482
|
+
}
|
|
676
1483
|
export interface VideoLimits {
|
|
677
1484
|
max_seconds?: number;
|
|
678
1485
|
max_fps?: number;
|
|
679
1486
|
max_pixels?: number;
|
|
680
1487
|
max_work?: number;
|
|
681
1488
|
}
|
|
1489
|
+
export interface ViewerState {
|
|
1490
|
+
favorited: boolean;
|
|
1491
|
+
seen: boolean;
|
|
1492
|
+
completed: boolean;
|
|
1493
|
+
progress: number;
|
|
1494
|
+
progress_max: number;
|
|
1495
|
+
resume?: string;
|
|
1496
|
+
last_view_at?: string;
|
|
1497
|
+
}
|
|
1498
|
+
export interface VoteRecord {
|
|
1499
|
+
poll: Ref;
|
|
1500
|
+
option: Ref;
|
|
1501
|
+
user_id?: string;
|
|
1502
|
+
ip?: string;
|
|
1503
|
+
created_at?: string;
|
|
1504
|
+
}
|
|
1505
|
+
export interface Written {
|
|
1506
|
+
count: number;
|
|
1507
|
+
}
|