@openrails/contentkit-ui 0.0.0-placeholder → 0.68.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 +424 -1
- package/dist/appearance.d.ts +38 -0
- package/dist/appearance.js +15 -0
- package/dist/appearance.js.map +1 -0
- package/dist/assets/hash.worker-BYfo-7MQ.js.map +1 -0
- package/dist/client/aspect.d.ts +6 -0
- package/dist/client/aspect.js +17 -0
- package/dist/client/aspect.js.map +1 -0
- package/dist/client/client.d.ts +51 -0
- package/dist/client/client.js +35 -0
- package/dist/client/client.js.map +1 -0
- package/dist/client/codes.d.ts +12 -0
- package/dist/client/codes.js +19 -0
- package/dist/client/codes.js.map +1 -0
- package/dist/client/content/bans.d.ts +15 -0
- package/dist/client/content/bans.js +40 -0
- package/dist/client/content/bans.js.map +1 -0
- package/dist/client/content/comments.d.ts +36 -0
- package/dist/client/content/comments.js +93 -0
- package/dist/client/content/comments.js.map +1 -0
- package/dist/client/content/favorites.d.ts +14 -0
- package/dist/client/content/favorites.js +42 -0
- package/dist/client/content/favorites.js.map +1 -0
- package/dist/client/content/moderation.d.ts +18 -0
- package/dist/client/content/moderation.js +37 -0
- package/dist/client/content/moderation.js.map +1 -0
- package/dist/client/content/polls.d.ts +47 -0
- package/dist/client/content/polls.js +148 -0
- package/dist/client/content/polls.js.map +1 -0
- package/dist/client/content/posts.d.ts +44 -0
- package/dist/client/content/posts.js +91 -0
- package/dist/client/content/posts.js.map +1 -0
- package/dist/client/content/reactions.d.ts +12 -0
- package/dist/client/content/reactions.js +36 -0
- package/dist/client/content/reactions.js.map +1 -0
- package/dist/client/content/types.d.ts +91 -0
- package/dist/client/content/types.js +8 -0
- package/dist/client/content/types.js.map +1 -0
- package/dist/client/crop.d.ts +32 -0
- package/dist/client/crop.js +103 -0
- package/dist/client/crop.js.map +1 -0
- package/dist/client/errors.d.ts +54 -0
- package/dist/client/errors.js +80 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/gallery.d.ts +43 -0
- package/dist/client/gallery.js +86 -0
- package/dist/client/gallery.js.map +1 -0
- package/dist/client/generated/error-codes.d.ts +5 -0
- package/dist/client/generated/error-codes.js +131 -0
- package/dist/client/generated/error-codes.js.map +1 -0
- package/dist/client/generated/routes.d.ts +1086 -0
- package/dist/client/generated/routes.js +1400 -0
- package/dist/client/generated/routes.js.map +1 -0
- package/dist/client/generated/wire.d.ts +630 -0
- package/dist/client/generated/wire.js +6 -0
- package/dist/client/generated/wire.js.map +1 -0
- package/dist/client/http.d.ts +79 -0
- package/dist/client/http.js +74 -0
- package/dist/client/http.js.map +1 -0
- package/dist/client/image.d.ts +24 -0
- package/dist/client/image.js +65 -0
- package/dist/client/image.js.map +1 -0
- package/dist/client/index.d.ts +33 -0
- package/dist/client/media/api.d.ts +36 -0
- package/dist/client/media/api.js +61 -0
- package/dist/client/media/api.js.map +1 -0
- package/dist/client/media/client.d.ts +247 -0
- package/dist/client/media/client.js +407 -0
- package/dist/client/media/client.js.map +1 -0
- package/dist/client/media/encode.d.ts +3 -0
- package/dist/client/media/encode.js +8 -0
- package/dist/client/media/encode.js.map +1 -0
- package/dist/client/media/hash-stream.d.ts +6 -0
- package/dist/client/media/hash-stream.js +16 -0
- package/dist/client/media/hash-stream.js.map +1 -0
- package/dist/client/media/hash.d.ts +12 -0
- package/dist/client/media/hash.js +48 -0
- package/dist/client/media/hash.js.map +1 -0
- package/dist/client/media/hash.worker-inline.js +18 -0
- package/dist/client/media/hash.worker-inline.js.map +1 -0
- package/dist/client/media/pacer.d.ts +21 -0
- package/dist/client/media/pacer.js +25 -0
- package/dist/client/media/pacer.js.map +1 -0
- package/dist/client/media/queue.d.ts +112 -0
- package/dist/client/media/queue.js +274 -0
- package/dist/client/media/queue.js.map +1 -0
- package/dist/client/media/ref.d.ts +6 -0
- package/dist/client/media/ref.js +10 -0
- package/dist/client/media/ref.js.map +1 -0
- package/dist/client/media/rules.d.ts +52 -0
- package/dist/client/media/rules.js +139 -0
- package/dist/client/media/rules.js.map +1 -0
- package/dist/client/media/transport.d.ts +13 -0
- package/dist/client/media/transport.js +33 -0
- package/dist/client/media/transport.js.map +1 -0
- package/dist/client/media/windows.d.ts +15 -0
- package/dist/client/media/windows.js +39 -0
- package/dist/client/media/windows.js.map +1 -0
- package/dist/client/playback.d.ts +200 -0
- package/dist/client/playback.js +142 -0
- package/dist/client/playback.js.map +1 -0
- package/dist/client/player.d.ts +102 -0
- package/dist/client/player.js +155 -0
- package/dist/client/player.js.map +1 -0
- package/dist/client/public.d.ts +25 -0
- package/dist/client/public.js +18 -0
- package/dist/client/public.js.map +1 -0
- package/dist/client/rendition.d.ts +19 -0
- package/dist/client/rendition.js +16 -0
- package/dist/client/rendition.js.map +1 -0
- package/dist/client/route.d.ts +39 -0
- package/dist/client/route.js +31 -0
- package/dist/client/route.js.map +1 -0
- package/dist/client/taxonomy.d.ts +30 -0
- package/dist/client/taxonomy.js +77 -0
- package/dist/client/taxonomy.js.map +1 -0
- package/dist/client.js +33 -0
- package/dist/components/encode-progress.d.ts +15 -0
- package/dist/components/encode-progress.js +49 -0
- package/dist/components/encode-progress.js.map +1 -0
- package/dist/components/hover-preview.d.ts +29 -0
- package/dist/components/hover-preview.js +49 -0
- package/dist/components/hover-preview.js.map +1 -0
- package/dist/components/image-crop-dialog.d.ts +48 -0
- package/dist/components/image-crop-dialog.js +359 -0
- package/dist/components/image-crop-dialog.js.map +1 -0
- package/dist/components/lazy-mount.d.ts +10 -0
- package/dist/components/lazy-mount.js +22 -0
- package/dist/components/lazy-mount.js.map +1 -0
- package/dist/components/media-folder-editor.d.ts +45 -0
- package/dist/components/media-folder-editor.js +564 -0
- package/dist/components/media-folder-editor.js.map +1 -0
- package/dist/components/media-gallery.d.ts +54 -0
- package/dist/components/media-gallery.js +597 -0
- package/dist/components/media-gallery.js.map +1 -0
- package/dist/components/media-readiness-notice.d.ts +24 -0
- package/dist/components/media-readiness-notice.js +61 -0
- package/dist/components/media-readiness-notice.js.map +1 -0
- package/dist/components/player-controls.d.ts +71 -0
- package/dist/components/player-controls.js +264 -0
- package/dist/components/player-controls.js.map +1 -0
- package/dist/components/progress.d.ts +5 -0
- package/dist/components/progress.js +14 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/rendition-img.d.ts +34 -0
- package/dist/components/rendition-img.js +78 -0
- package/dist/components/rendition-img.js.map +1 -0
- package/dist/components/slot-editor.d.ts +95 -0
- package/dist/components/slot-editor.js +182 -0
- package/dist/components/slot-editor.js.map +1 -0
- package/dist/components/slot-image.d.ts +23 -0
- package/dist/components/slot-image.js +48 -0
- package/dist/components/slot-image.js.map +1 -0
- package/dist/components/slot-upload.d.ts +41 -0
- package/dist/components/slot-upload.js +213 -0
- package/dist/components/slot-upload.js.map +1 -0
- package/dist/components/social/bans.d.ts +42 -0
- package/dist/components/social/bans.js +300 -0
- package/dist/components/social/bans.js.map +1 -0
- package/dist/components/social/comments.d.ts +42 -0
- package/dist/components/social/comments.js +517 -0
- package/dist/components/social/comments.js.map +1 -0
- package/dist/components/social/engagement.d.ts +45 -0
- package/dist/components/social/engagement.js +129 -0
- package/dist/components/social/engagement.js.map +1 -0
- package/dist/components/social/index.d.ts +6 -0
- package/dist/components/social/moderation.d.ts +32 -0
- package/dist/components/social/moderation.js +383 -0
- package/dist/components/social/moderation.js.map +1 -0
- package/dist/components/social/parts.d.ts +50 -0
- package/dist/components/social/parts.js +106 -0
- package/dist/components/social/parts.js.map +1 -0
- package/dist/components/social/poll-editor.d.ts +34 -0
- package/dist/components/social/poll-editor.js +567 -0
- package/dist/components/social/poll-editor.js.map +1 -0
- package/dist/components/social/poll.d.ts +30 -0
- package/dist/components/social/poll.js +252 -0
- package/dist/components/social/poll.js.map +1 -0
- package/dist/components/sortable-list.d.ts +29 -0
- package/dist/components/sortable-list.js +121 -0
- package/dist/components/sortable-list.js.map +1 -0
- package/dist/components/video-mini-player.d.ts +35 -0
- package/dist/components/video-mini-player.js +236 -0
- package/dist/components/video-mini-player.js.map +1 -0
- package/dist/components/video-player.d.ts +146 -0
- package/dist/components/video-player.js +630 -0
- package/dist/components/video-player.js.map +1 -0
- package/dist/components/video-poster-picker.d.ts +59 -0
- package/dist/components/video-poster-picker.js +335 -0
- package/dist/components/video-poster-picker.js.map +1 -0
- package/dist/components/video-poster.d.ts +24 -0
- package/dist/components/video-poster.js +46 -0
- package/dist/components/video-poster.js.map +1 -0
- package/dist/i18n/context.d.ts +4 -0
- package/dist/i18n/context.js +11 -0
- package/dist/i18n/context.js.map +1 -0
- package/dist/i18n/messages.d.ts +40 -0
- package/dist/i18n/messages.js +94 -0
- package/dist/i18n/messages.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +41 -0
- package/dist/locales/de.d.ts +2 -0
- package/dist/locales/de.js +271 -0
- package/dist/locales/de.js.map +1 -0
- package/dist/locales/en.d.ts +457 -0
- package/dist/locales/en.js +271 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/es.d.ts +2 -0
- package/dist/locales/es.js +271 -0
- package/dist/locales/es.js.map +1 -0
- package/dist/locales/ja.d.ts +2 -0
- package/dist/locales/ja.js +271 -0
- package/dist/locales/ja.js.map +1 -0
- package/dist/locales/ko.d.ts +2 -0
- package/dist/locales/ko.js +271 -0
- package/dist/locales/ko.js.map +1 -0
- package/dist/locales/social/de.d.ts +2 -0
- package/dist/locales/social/de.js +198 -0
- package/dist/locales/social/de.js.map +1 -0
- package/dist/locales/social/en.d.ts +195 -0
- package/dist/locales/social/en.js +198 -0
- package/dist/locales/social/en.js.map +1 -0
- package/dist/locales/social/es.d.ts +2 -0
- package/dist/locales/social/es.js +198 -0
- package/dist/locales/social/es.js.map +1 -0
- package/dist/locales/social/ja.d.ts +2 -0
- package/dist/locales/social/ja.js +198 -0
- package/dist/locales/social/ja.js.map +1 -0
- package/dist/locales/social/ko.d.ts +2 -0
- package/dist/locales/social/ko.js +198 -0
- package/dist/locales/social/ko.js.map +1 -0
- package/dist/locales/social/zh.d.ts +2 -0
- package/dist/locales/social/zh.js +198 -0
- package/dist/locales/social/zh.js.map +1 -0
- package/dist/locales/zh.d.ts +2 -0
- package/dist/locales/zh.js +271 -0
- package/dist/locales/zh.js.map +1 -0
- package/dist/provider.d.ts +22 -0
- package/dist/provider.js +59 -0
- package/dist/provider.js.map +1 -0
- package/dist/react/canonical.d.ts +33 -0
- package/dist/react/canonical.js +88 -0
- package/dist/react/canonical.js.map +1 -0
- package/dist/react/comments.d.ts +82 -0
- package/dist/react/comments.js +147 -0
- package/dist/react/comments.js.map +1 -0
- package/dist/react/config.d.ts +13 -0
- package/dist/react/config.js +14 -0
- package/dist/react/config.js.map +1 -0
- package/dist/react/context.d.ts +48 -0
- package/dist/react/context.js +37 -0
- package/dist/react/context.js.map +1 -0
- package/dist/react/crop.d.ts +49 -0
- package/dist/react/crop.js +107 -0
- package/dist/react/crop.js.map +1 -0
- package/dist/react/engagement.d.ts +38 -0
- package/dist/react/engagement.js +88 -0
- package/dist/react/engagement.js.map +1 -0
- package/dist/react/folder.d.ts +83 -0
- package/dist/react/folder.js +183 -0
- package/dist/react/folder.js.map +1 -0
- package/dist/react/gallery.d.ts +140 -0
- package/dist/react/gallery.js +477 -0
- package/dist/react/gallery.js.map +1 -0
- package/dist/react/index.d.ts +21 -0
- package/dist/react/inline-preview.d.ts +24 -0
- package/dist/react/inline-preview.js +76 -0
- package/dist/react/inline-preview.js.map +1 -0
- package/dist/react/player.d.ts +70 -0
- package/dist/react/player.js +214 -0
- package/dist/react/player.js.map +1 -0
- package/dist/react/polls.d.ts +74 -0
- package/dist/react/polls.js +176 -0
- package/dist/react/polls.js.map +1 -0
- package/dist/react/posts.d.ts +59 -0
- package/dist/react/posts.js +149 -0
- package/dist/react/posts.js.map +1 -0
- package/dist/react/provider.d.ts +23 -0
- package/dist/react/provider.js +35 -0
- package/dist/react/provider.js.map +1 -0
- package/dist/react/public.d.ts +39 -0
- package/dist/react/public.js +70 -0
- package/dist/react/public.js.map +1 -0
- package/dist/react/read.d.ts +52 -0
- package/dist/react/read.js +143 -0
- package/dist/react/read.js.map +1 -0
- package/dist/react/resources.d.ts +70 -0
- package/dist/react/resources.js +247 -0
- package/dist/react/resources.js.map +1 -0
- package/dist/react/slot.d.ts +102 -0
- package/dist/react/slot.js +181 -0
- package/dist/react/slot.js.map +1 -0
- package/dist/react/store.d.ts +51 -0
- package/dist/react/store.js +164 -0
- package/dist/react/store.js.map +1 -0
- package/dist/react/upload.d.ts +85 -0
- package/dist/react/upload.js +150 -0
- package/dist/react/upload.js.map +1 -0
- package/dist/react/use-resource.d.ts +43 -0
- package/dist/react/use-resource.js +66 -0
- package/dist/react/use-resource.js.map +1 -0
- package/dist/react/video.d.ts +118 -0
- package/dist/react/video.js +184 -0
- package/dist/react/video.js.map +1 -0
- package/dist/react/viewport.d.ts +19 -0
- package/dist/react/viewport.js +30 -0
- package/dist/react/viewport.js.map +1 -0
- package/dist/react.js +21 -0
- package/dist/scope.d.ts +14 -0
- package/dist/scope.js +30 -0
- package/dist/scope.js.map +1 -0
- package/dist/styles.css +3 -0
- package/dist/ui/alert-dialog.d.ts +18 -0
- package/dist/ui/alert-dialog.js +86 -0
- package/dist/ui/alert-dialog.js.map +1 -0
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.js +38 -0
- package/dist/ui/alert.js.map +1 -0
- package/dist/ui/avatar.d.ts +11 -0
- package/dist/ui/avatar.js +31 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +7 -0
- package/dist/ui/badge.js +31 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/button.d.ts +8 -0
- package/dist/ui/button.js +46 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/dialog.d.ts +17 -0
- package/dist/ui/dialog.js +91 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +15 -0
- package/dist/ui/dropdown-menu.js +105 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +17 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/label.d.ts +3 -0
- package/dist/ui/label.js +15 -0
- package/dist/ui/label.js.map +1 -0
- package/dist/ui/progress.d.ts +7 -0
- package/dist/ui/progress.js +31 -0
- package/dist/ui/progress.js.map +1 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +98 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.js +14 -0
- package/dist/ui/skeleton.js.map +1 -0
- package/dist/ui/slider.d.ts +3 -0
- package/dist/ui/slider.js +35 -0
- package/dist/ui/slider.js.map +1 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.js +20 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/tabs.d.ts +10 -0
- package/dist/ui/tabs.js +47 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +15 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/toggle-group.d.ts +5 -0
- package/dist/ui/toggle-group.js +23 -0
- package/dist/ui/toggle-group.js.map +1 -0
- package/dist/urls/index.d.ts +100 -0
- package/dist/urls.js +118 -0
- package/dist/urls.js.map +1 -0
- package/package.json +113 -3
|
@@ -0,0 +1,630 @@
|
|
|
1
|
+
import { ErrorCode } from './error-codes.js';
|
|
2
|
+
export type { ErrorCode };
|
|
3
|
+
export declare const MAX_SINGLE_PUT = 67108864;
|
|
4
|
+
export declare const MIN_PART_SIZE = 8388608;
|
|
5
|
+
export declare const MAX_PART_SIZE = 16777216;
|
|
6
|
+
export type OpName = "put" | "edit" | "move" | "rename" | "remove" | "attach" | "copy" | "frame" | "meta" | "regenerate";
|
|
7
|
+
export type Access = "full" | "none";
|
|
8
|
+
export type ItemState = "ready" | "processing" | "failed";
|
|
9
|
+
export type EncodePhase = "queued" | "downloading" | "probing" | "encoding" | "muxing" | "uploading" | "publishing" | "images";
|
|
10
|
+
export type PollKind = "multiple_choice" | "free_text";
|
|
11
|
+
export type ModerationState = "approved" | "held" | "rejected";
|
|
12
|
+
export interface AdminComment {
|
|
13
|
+
id: string;
|
|
14
|
+
reply_to_id?: string;
|
|
15
|
+
user_id?: string;
|
|
16
|
+
anon_name?: string;
|
|
17
|
+
body: string;
|
|
18
|
+
deleted: boolean;
|
|
19
|
+
likes: number;
|
|
20
|
+
dislikes: number;
|
|
21
|
+
mine: number;
|
|
22
|
+
reply_count: number;
|
|
23
|
+
author?: PublicUser;
|
|
24
|
+
moderation?: ModerationState;
|
|
25
|
+
moderation_reason?: string;
|
|
26
|
+
created_at: string;
|
|
27
|
+
updated_at: string;
|
|
28
|
+
tenant_id: string;
|
|
29
|
+
content_kind: string;
|
|
30
|
+
content_id: string;
|
|
31
|
+
content_version_id?: string;
|
|
32
|
+
deleted_at?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface Anonymous {
|
|
35
|
+
comments: boolean;
|
|
36
|
+
reactions: boolean;
|
|
37
|
+
votes: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface Assignment {
|
|
40
|
+
tenant_id: string;
|
|
41
|
+
content_kind: string;
|
|
42
|
+
content_id: string;
|
|
43
|
+
content_version_id?: string;
|
|
44
|
+
taxonomy_id: string;
|
|
45
|
+
relation: string;
|
|
46
|
+
state?: "active" | "proposed";
|
|
47
|
+
source_revision: number;
|
|
48
|
+
}
|
|
49
|
+
export interface AssignmentsWritten {
|
|
50
|
+
assignments: number;
|
|
51
|
+
}
|
|
52
|
+
export interface BanInput {
|
|
53
|
+
reason?: string;
|
|
54
|
+
until?: string;
|
|
55
|
+
}
|
|
56
|
+
export interface BanNotice {
|
|
57
|
+
scope: string;
|
|
58
|
+
reason?: string;
|
|
59
|
+
until?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface Comment {
|
|
62
|
+
id: string;
|
|
63
|
+
reply_to_id?: string;
|
|
64
|
+
user_id?: string;
|
|
65
|
+
anon_name?: string;
|
|
66
|
+
body: string;
|
|
67
|
+
deleted: boolean;
|
|
68
|
+
likes: number;
|
|
69
|
+
dislikes: number;
|
|
70
|
+
mine: number;
|
|
71
|
+
reply_count: number;
|
|
72
|
+
author?: PublicUser;
|
|
73
|
+
moderation?: ModerationState;
|
|
74
|
+
moderation_reason?: string;
|
|
75
|
+
created_at: string;
|
|
76
|
+
updated_at: string;
|
|
77
|
+
}
|
|
78
|
+
export interface CommentBan {
|
|
79
|
+
user_id: string;
|
|
80
|
+
user?: PublicUser;
|
|
81
|
+
scope: string;
|
|
82
|
+
reason?: string;
|
|
83
|
+
until?: string;
|
|
84
|
+
banned_by: string;
|
|
85
|
+
banned_at: string;
|
|
86
|
+
expired: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface CommentEdit {
|
|
89
|
+
body: string;
|
|
90
|
+
}
|
|
91
|
+
export interface CommentInput {
|
|
92
|
+
body: string;
|
|
93
|
+
reply_to_id?: string;
|
|
94
|
+
anon_name?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface CommentStanding {
|
|
97
|
+
can_comment: boolean;
|
|
98
|
+
ban?: BanNotice;
|
|
99
|
+
anonymous: boolean;
|
|
100
|
+
max_length: number;
|
|
101
|
+
user_id?: string;
|
|
102
|
+
moderate: boolean;
|
|
103
|
+
ban_scopes: ("global" | "owner")[];
|
|
104
|
+
}
|
|
105
|
+
export interface CommitBody {
|
|
106
|
+
ref: RefBody;
|
|
107
|
+
operation_id: string;
|
|
108
|
+
ops: Op[];
|
|
109
|
+
}
|
|
110
|
+
export interface CommitReply {
|
|
111
|
+
files: FileInfo[];
|
|
112
|
+
}
|
|
113
|
+
export interface CompleteReply {
|
|
114
|
+
blob: string;
|
|
115
|
+
type: string;
|
|
116
|
+
size: number;
|
|
117
|
+
}
|
|
118
|
+
export interface Config {
|
|
119
|
+
anonymous: Anonymous;
|
|
120
|
+
comment_max_length: number;
|
|
121
|
+
}
|
|
122
|
+
export interface ContentRef {
|
|
123
|
+
tenant_id: string;
|
|
124
|
+
content_kind: string;
|
|
125
|
+
content_id: string;
|
|
126
|
+
content_version_id?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface CopyFrom {
|
|
129
|
+
id: string;
|
|
130
|
+
path: string;
|
|
131
|
+
}
|
|
132
|
+
export interface Count {
|
|
133
|
+
content_kind: string;
|
|
134
|
+
language: string;
|
|
135
|
+
count: number;
|
|
136
|
+
}
|
|
137
|
+
export interface CountsRebuilt {
|
|
138
|
+
nodes: number;
|
|
139
|
+
}
|
|
140
|
+
export interface Crop {
|
|
141
|
+
x: number;
|
|
142
|
+
y: number;
|
|
143
|
+
w: number;
|
|
144
|
+
h: number;
|
|
145
|
+
}
|
|
146
|
+
export interface Edge {
|
|
147
|
+
from_taxonomy_id: string;
|
|
148
|
+
relation: "alias_of" | "artist_of" | "child" | "member_of" | "parent" | "synonym" | "voice_of";
|
|
149
|
+
to_taxonomy_id: string;
|
|
150
|
+
source_revision: number;
|
|
151
|
+
}
|
|
152
|
+
export interface EdgesWritten {
|
|
153
|
+
edges: number;
|
|
154
|
+
}
|
|
155
|
+
export interface Edit {
|
|
156
|
+
crop?: Crop;
|
|
157
|
+
rotate?: number;
|
|
158
|
+
}
|
|
159
|
+
export interface EffectiveTag {
|
|
160
|
+
taxonomy_id: string;
|
|
161
|
+
kind: string;
|
|
162
|
+
slug: string;
|
|
163
|
+
relation: string;
|
|
164
|
+
scope: "content" | "version";
|
|
165
|
+
}
|
|
166
|
+
export interface EffectiveTagsOf {
|
|
167
|
+
content: ContentRef;
|
|
168
|
+
tags: EffectiveTag[];
|
|
169
|
+
}
|
|
170
|
+
export interface EncodeProgress {
|
|
171
|
+
phase: EncodePhase;
|
|
172
|
+
queue_position?: number;
|
|
173
|
+
segments_done?: number;
|
|
174
|
+
segments_total?: number;
|
|
175
|
+
percent: number;
|
|
176
|
+
speed?: number;
|
|
177
|
+
eta?: number;
|
|
178
|
+
at: number;
|
|
179
|
+
stalled?: boolean;
|
|
180
|
+
stage?: number;
|
|
181
|
+
stages?: number;
|
|
182
|
+
}
|
|
183
|
+
export interface ErrorDetails {
|
|
184
|
+
width?: number;
|
|
185
|
+
height?: number;
|
|
186
|
+
min_width?: number;
|
|
187
|
+
max_pixels?: number;
|
|
188
|
+
type?: string;
|
|
189
|
+
allowed?: string[];
|
|
190
|
+
size?: number;
|
|
191
|
+
max_bytes?: number;
|
|
192
|
+
frames?: number;
|
|
193
|
+
max_frames?: number;
|
|
194
|
+
seconds?: number;
|
|
195
|
+
max_seconds?: number;
|
|
196
|
+
min_aspect?: number;
|
|
197
|
+
max_aspect?: number;
|
|
198
|
+
max?: number;
|
|
199
|
+
}
|
|
200
|
+
export interface ErrorReply {
|
|
201
|
+
error: string;
|
|
202
|
+
code: ErrorCode;
|
|
203
|
+
retry_after?: number;
|
|
204
|
+
action?: "comment" | "comment_reaction" | "favorite" | "poll_vote" | "post_reaction" | "reaction";
|
|
205
|
+
ban?: BanNotice;
|
|
206
|
+
blobs?: string[];
|
|
207
|
+
details?: ErrorDetails;
|
|
208
|
+
}
|
|
209
|
+
export interface Failure {
|
|
210
|
+
of: string;
|
|
211
|
+
message: string;
|
|
212
|
+
code?: ErrorCode;
|
|
213
|
+
details?: ErrorDetails;
|
|
214
|
+
}
|
|
215
|
+
export interface FavoriteItem {
|
|
216
|
+
tenant_id: string;
|
|
217
|
+
content_kind: string;
|
|
218
|
+
content_id: string;
|
|
219
|
+
content_version_id?: string;
|
|
220
|
+
created_at: string;
|
|
221
|
+
}
|
|
222
|
+
export interface FavoriteState {
|
|
223
|
+
favorited: boolean;
|
|
224
|
+
count: number;
|
|
225
|
+
}
|
|
226
|
+
export interface FeedItem {
|
|
227
|
+
id: string;
|
|
228
|
+
reply_to_id?: string;
|
|
229
|
+
user_id?: string;
|
|
230
|
+
anon_name?: string;
|
|
231
|
+
body: string;
|
|
232
|
+
deleted: boolean;
|
|
233
|
+
likes: number;
|
|
234
|
+
dislikes: number;
|
|
235
|
+
mine: number;
|
|
236
|
+
reply_count: number;
|
|
237
|
+
author?: PublicUser;
|
|
238
|
+
moderation?: ModerationState;
|
|
239
|
+
moderation_reason?: string;
|
|
240
|
+
created_at: string;
|
|
241
|
+
updated_at: string;
|
|
242
|
+
tenant_id: string;
|
|
243
|
+
content_kind: string;
|
|
244
|
+
content_id: string;
|
|
245
|
+
content_version_id?: string;
|
|
246
|
+
}
|
|
247
|
+
export interface FileInfo {
|
|
248
|
+
path: string;
|
|
249
|
+
type: string;
|
|
250
|
+
size?: number;
|
|
251
|
+
w?: number;
|
|
252
|
+
h?: number;
|
|
253
|
+
dur?: number;
|
|
254
|
+
download?: string;
|
|
255
|
+
url?: string;
|
|
256
|
+
locked?: boolean;
|
|
257
|
+
upload?: boolean;
|
|
258
|
+
staged?: boolean;
|
|
259
|
+
from?: string;
|
|
260
|
+
edit?: Edit;
|
|
261
|
+
frame?: Frame;
|
|
262
|
+
meta?: Record<string, unknown>;
|
|
263
|
+
unattached?: boolean;
|
|
264
|
+
pending?: string[];
|
|
265
|
+
failed?: Failure;
|
|
266
|
+
editor_url?: string;
|
|
267
|
+
progress?: EncodeProgress;
|
|
268
|
+
}
|
|
269
|
+
export interface Frame {
|
|
270
|
+
t?: number;
|
|
271
|
+
auto?: boolean;
|
|
272
|
+
of?: string;
|
|
273
|
+
}
|
|
274
|
+
export interface Group {
|
|
275
|
+
id: string;
|
|
276
|
+
label: string;
|
|
277
|
+
count: number;
|
|
278
|
+
}
|
|
279
|
+
export interface HeldItem {
|
|
280
|
+
kind: string;
|
|
281
|
+
revision: number;
|
|
282
|
+
id: string;
|
|
283
|
+
ref: ContentRef;
|
|
284
|
+
author_id?: string;
|
|
285
|
+
author?: PublicUser;
|
|
286
|
+
anon_name?: string;
|
|
287
|
+
title?: string;
|
|
288
|
+
body: string;
|
|
289
|
+
reason: string;
|
|
290
|
+
model?: string;
|
|
291
|
+
prompt_version?: string;
|
|
292
|
+
confidence?: number;
|
|
293
|
+
error?: string;
|
|
294
|
+
held_at: string;
|
|
295
|
+
created_at: string;
|
|
296
|
+
}
|
|
297
|
+
export interface HeldPage {
|
|
298
|
+
items: HeldItem[];
|
|
299
|
+
next?: string;
|
|
300
|
+
}
|
|
301
|
+
export interface ImageInput {
|
|
302
|
+
image?: string;
|
|
303
|
+
}
|
|
304
|
+
export interface InlineImage {
|
|
305
|
+
url: string;
|
|
306
|
+
}
|
|
307
|
+
export interface MergeInput {
|
|
308
|
+
into_taxonomy_id: string;
|
|
309
|
+
}
|
|
310
|
+
export interface MergeReport {
|
|
311
|
+
from_taxonomy_id: string;
|
|
312
|
+
into_taxonomy_id: string;
|
|
313
|
+
assignments_moved: number;
|
|
314
|
+
names_moved: number;
|
|
315
|
+
edges_rewritten: number;
|
|
316
|
+
assignments_merged: number;
|
|
317
|
+
}
|
|
318
|
+
export interface MultipartReply {
|
|
319
|
+
ticket: string;
|
|
320
|
+
min_part_size: number;
|
|
321
|
+
max_part_size: number;
|
|
322
|
+
max_parts: number;
|
|
323
|
+
}
|
|
324
|
+
export interface Name {
|
|
325
|
+
language: string;
|
|
326
|
+
kind: "alias" | "name";
|
|
327
|
+
name: string;
|
|
328
|
+
normalized?: string;
|
|
329
|
+
source_revision: number;
|
|
330
|
+
}
|
|
331
|
+
export interface Node {
|
|
332
|
+
taxonomy_id: string;
|
|
333
|
+
tenant_id: string;
|
|
334
|
+
kind: string;
|
|
335
|
+
slug: string;
|
|
336
|
+
state: "active" | "deleted" | "merged";
|
|
337
|
+
source_revision: number;
|
|
338
|
+
created_at: string;
|
|
339
|
+
updated_at: string;
|
|
340
|
+
}
|
|
341
|
+
export interface NodeDetail {
|
|
342
|
+
taxonomy_id: string;
|
|
343
|
+
tenant_id: string;
|
|
344
|
+
kind: string;
|
|
345
|
+
slug: string;
|
|
346
|
+
state: "active" | "deleted" | "merged";
|
|
347
|
+
source_revision: number;
|
|
348
|
+
created_at: string;
|
|
349
|
+
updated_at: string;
|
|
350
|
+
names: Name[];
|
|
351
|
+
edges: Edge[];
|
|
352
|
+
counts: Count[];
|
|
353
|
+
}
|
|
354
|
+
export interface NodeInput {
|
|
355
|
+
taxonomy_id?: string;
|
|
356
|
+
kind: string;
|
|
357
|
+
slug: string;
|
|
358
|
+
names?: Name[];
|
|
359
|
+
source_revision: number;
|
|
360
|
+
}
|
|
361
|
+
export interface NodePage {
|
|
362
|
+
nodes: NodeRow[];
|
|
363
|
+
next_cursor?: string;
|
|
364
|
+
total: number;
|
|
365
|
+
}
|
|
366
|
+
export interface NodeRow {
|
|
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;
|
|
374
|
+
updated_at: string;
|
|
375
|
+
name?: string;
|
|
376
|
+
name_language?: string;
|
|
377
|
+
count: number;
|
|
378
|
+
}
|
|
379
|
+
export interface NodeUpdate {
|
|
380
|
+
slug?: string;
|
|
381
|
+
state?: "active" | "deleted" | "merged";
|
|
382
|
+
source_revision?: number;
|
|
383
|
+
}
|
|
384
|
+
export interface Op {
|
|
385
|
+
op: OpName;
|
|
386
|
+
path?: string;
|
|
387
|
+
blob?: string;
|
|
388
|
+
create_id?: string;
|
|
389
|
+
index?: number;
|
|
390
|
+
meta?: Record<string, unknown>;
|
|
391
|
+
edit?: Edit;
|
|
392
|
+
unattached?: boolean;
|
|
393
|
+
to?: string;
|
|
394
|
+
from?: CopyFrom;
|
|
395
|
+
t?: number;
|
|
396
|
+
auto?: boolean;
|
|
397
|
+
preset?: string;
|
|
398
|
+
force?: boolean;
|
|
399
|
+
takedown?: boolean;
|
|
400
|
+
}
|
|
401
|
+
export interface PartBody {
|
|
402
|
+
number: number;
|
|
403
|
+
size: number;
|
|
404
|
+
sha256: string;
|
|
405
|
+
}
|
|
406
|
+
export interface PartReply {
|
|
407
|
+
number: number;
|
|
408
|
+
size?: number;
|
|
409
|
+
sha256?: string;
|
|
410
|
+
request?: RequestReply;
|
|
411
|
+
}
|
|
412
|
+
export interface PartsBody {
|
|
413
|
+
ticket: string;
|
|
414
|
+
parts: PartBody[];
|
|
415
|
+
}
|
|
416
|
+
export interface PartsReply {
|
|
417
|
+
parts: PartReply[];
|
|
418
|
+
}
|
|
419
|
+
export interface Poll {
|
|
420
|
+
id: string;
|
|
421
|
+
kind: PollKind;
|
|
422
|
+
question: string;
|
|
423
|
+
language: string;
|
|
424
|
+
is_active: boolean;
|
|
425
|
+
image_url?: string;
|
|
426
|
+
live_at: string;
|
|
427
|
+
closes_at?: string;
|
|
428
|
+
closed: boolean;
|
|
429
|
+
total_votes: number;
|
|
430
|
+
options: PollOption[];
|
|
431
|
+
voted: boolean;
|
|
432
|
+
my_option?: string;
|
|
433
|
+
answer_count?: number;
|
|
434
|
+
groups?: Group[];
|
|
435
|
+
my_answer?: PollAnswer;
|
|
436
|
+
}
|
|
437
|
+
export interface PollAnswer {
|
|
438
|
+
id: string;
|
|
439
|
+
text: string;
|
|
440
|
+
classified: boolean;
|
|
441
|
+
updated_at: string;
|
|
442
|
+
}
|
|
443
|
+
export interface PollAnswerInput {
|
|
444
|
+
text: string;
|
|
445
|
+
}
|
|
446
|
+
export interface PollImage {
|
|
447
|
+
image_url: string | null;
|
|
448
|
+
}
|
|
449
|
+
export interface PollInput {
|
|
450
|
+
kind?: PollKind;
|
|
451
|
+
question: string;
|
|
452
|
+
language: string;
|
|
453
|
+
live_at?: string;
|
|
454
|
+
closes_at?: string;
|
|
455
|
+
options?: PollOptionInput[];
|
|
456
|
+
}
|
|
457
|
+
export interface PollOption {
|
|
458
|
+
id: string;
|
|
459
|
+
label: string;
|
|
460
|
+
image_url?: string;
|
|
461
|
+
position: number;
|
|
462
|
+
vote_count: number;
|
|
463
|
+
}
|
|
464
|
+
export interface PollOptionInput {
|
|
465
|
+
label: string;
|
|
466
|
+
position: number;
|
|
467
|
+
}
|
|
468
|
+
export interface PollOptionPatch {
|
|
469
|
+
label?: string;
|
|
470
|
+
position?: number;
|
|
471
|
+
}
|
|
472
|
+
export interface PollUpdate {
|
|
473
|
+
question?: string;
|
|
474
|
+
is_active?: boolean;
|
|
475
|
+
live_at?: string;
|
|
476
|
+
closes_at?: string | null;
|
|
477
|
+
}
|
|
478
|
+
export interface PollVote {
|
|
479
|
+
option_id: string;
|
|
480
|
+
}
|
|
481
|
+
export interface Post {
|
|
482
|
+
id: string;
|
|
483
|
+
author_id: string;
|
|
484
|
+
title: string;
|
|
485
|
+
slug?: string;
|
|
486
|
+
body: string;
|
|
487
|
+
excerpt?: string;
|
|
488
|
+
cover_url?: string;
|
|
489
|
+
language: string;
|
|
490
|
+
is_draft: boolean;
|
|
491
|
+
live_at?: string;
|
|
492
|
+
total_likes: number;
|
|
493
|
+
total_dislikes: number;
|
|
494
|
+
comment_count: number;
|
|
495
|
+
moderation?: ModerationState;
|
|
496
|
+
moderation_reason?: string;
|
|
497
|
+
code: string;
|
|
498
|
+
url_slug: string;
|
|
499
|
+
created_at: string;
|
|
500
|
+
updated_at: string;
|
|
501
|
+
deleted_at?: string;
|
|
502
|
+
}
|
|
503
|
+
export interface PostCover {
|
|
504
|
+
cover_url: string | null;
|
|
505
|
+
}
|
|
506
|
+
export interface PostInput {
|
|
507
|
+
title?: string;
|
|
508
|
+
body?: string;
|
|
509
|
+
excerpt?: string;
|
|
510
|
+
language?: string;
|
|
511
|
+
slug?: string;
|
|
512
|
+
is_draft?: boolean;
|
|
513
|
+
live_at?: string;
|
|
514
|
+
}
|
|
515
|
+
export interface PresetRule {
|
|
516
|
+
kind: string;
|
|
517
|
+
name: string;
|
|
518
|
+
from: string;
|
|
519
|
+
base: string;
|
|
520
|
+
namespace: string;
|
|
521
|
+
to: string;
|
|
522
|
+
widths: number[];
|
|
523
|
+
aspect?: string;
|
|
524
|
+
min_width?: number;
|
|
525
|
+
first?: number;
|
|
526
|
+
}
|
|
527
|
+
export interface PresignBody {
|
|
528
|
+
ref: RefBody;
|
|
529
|
+
path: string;
|
|
530
|
+
type: string;
|
|
531
|
+
size: number;
|
|
532
|
+
sha256: string;
|
|
533
|
+
}
|
|
534
|
+
export interface PresignReply {
|
|
535
|
+
path: string;
|
|
536
|
+
blob: string;
|
|
537
|
+
exists?: boolean;
|
|
538
|
+
put?: RequestReply;
|
|
539
|
+
multipart?: MultipartReply;
|
|
540
|
+
process_on_upload?: boolean;
|
|
541
|
+
}
|
|
542
|
+
export interface PublicImage {
|
|
543
|
+
from: string;
|
|
544
|
+
preset: string;
|
|
545
|
+
renditions: PublicRendition[];
|
|
546
|
+
}
|
|
547
|
+
export interface PublicRendition {
|
|
548
|
+
url: string;
|
|
549
|
+
w: number;
|
|
550
|
+
h: number;
|
|
551
|
+
}
|
|
552
|
+
export interface PublicUser {
|
|
553
|
+
id: string;
|
|
554
|
+
username: string;
|
|
555
|
+
avatar?: string;
|
|
556
|
+
avatar_srcset?: string;
|
|
557
|
+
}
|
|
558
|
+
export interface ReactionCounts {
|
|
559
|
+
likes: number;
|
|
560
|
+
dislikes: number;
|
|
561
|
+
mine: number;
|
|
562
|
+
}
|
|
563
|
+
export interface ReadResult {
|
|
564
|
+
access: Access;
|
|
565
|
+
expires: number;
|
|
566
|
+
meta?: Record<string, unknown>;
|
|
567
|
+
previews?: string[];
|
|
568
|
+
public?: PublicImage[];
|
|
569
|
+
total: number;
|
|
570
|
+
offset: number;
|
|
571
|
+
limit: number;
|
|
572
|
+
hls?: string[];
|
|
573
|
+
state?: ItemState;
|
|
574
|
+
full?: boolean;
|
|
575
|
+
uploads?: UploadRule[];
|
|
576
|
+
files: FileInfo[];
|
|
577
|
+
}
|
|
578
|
+
export interface RefBody {
|
|
579
|
+
kind: string;
|
|
580
|
+
id: string;
|
|
581
|
+
}
|
|
582
|
+
export interface RequestReply {
|
|
583
|
+
method: string;
|
|
584
|
+
url: string;
|
|
585
|
+
headers: Record<string, string>;
|
|
586
|
+
expires: string;
|
|
587
|
+
}
|
|
588
|
+
export interface ResolveInput {
|
|
589
|
+
decision: "approve" | "reject" | "review";
|
|
590
|
+
revision: number;
|
|
591
|
+
reason?: string;
|
|
592
|
+
}
|
|
593
|
+
export interface Resolved {
|
|
594
|
+
tenant_id: string;
|
|
595
|
+
content_kind: string;
|
|
596
|
+
content_id: string;
|
|
597
|
+
content_version_id?: string;
|
|
598
|
+
code: string;
|
|
599
|
+
slug: string;
|
|
600
|
+
slugs?: Record<string, string>;
|
|
601
|
+
path: string;
|
|
602
|
+
}
|
|
603
|
+
export interface Restored {
|
|
604
|
+
restored: boolean;
|
|
605
|
+
}
|
|
606
|
+
export interface ReviewOutcome {
|
|
607
|
+
decision: "approve" | "reject" | "review";
|
|
608
|
+
}
|
|
609
|
+
export interface TicketBody {
|
|
610
|
+
ticket: string;
|
|
611
|
+
}
|
|
612
|
+
export interface UploadRule {
|
|
613
|
+
path: string;
|
|
614
|
+
types: string[];
|
|
615
|
+
max_bytes: number;
|
|
616
|
+
max?: number;
|
|
617
|
+
named?: boolean;
|
|
618
|
+
frames?: string;
|
|
619
|
+
aspect?: string;
|
|
620
|
+
min_width?: number;
|
|
621
|
+
video?: VideoLimits;
|
|
622
|
+
min_aspect?: number;
|
|
623
|
+
max_aspect?: number;
|
|
624
|
+
}
|
|
625
|
+
export interface VideoLimits {
|
|
626
|
+
max_seconds?: number;
|
|
627
|
+
max_fps?: number;
|
|
628
|
+
max_pixels?: number;
|
|
629
|
+
max_work?: number;
|
|
630
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire.js","names":[],"sources":["../../../src/client/generated/wire.ts"],"sourcesContent":["// Generated by `go generate ./internal/contract` from ContentKit's route catalog. Do not edit.\n\nimport type { ErrorCode } from \"./error-codes.js\";\n\nexport type { ErrorCode };\n\n// Upload sizes: one PUT up to MAX_SINGLE_PUT bytes, else multipart parts.\nexport const MAX_SINGLE_PUT = 67108864;\nexport const MIN_PART_SIZE = 8388608;\nexport const MAX_PART_SIZE = 16777216;\n\nexport type OpName = \"put\" | \"edit\" | \"move\" | \"rename\" | \"remove\" | \"attach\" | \"copy\" | \"frame\" | \"meta\" | \"regenerate\";\nexport type Access = \"full\" | \"none\";\nexport type ItemState = \"ready\" | \"processing\" | \"failed\";\nexport type EncodePhase = \"queued\" | \"downloading\" | \"probing\" | \"encoding\" | \"muxing\" | \"uploading\" | \"publishing\" | \"images\";\nexport type PollKind = \"multiple_choice\" | \"free_text\";\nexport type ModerationState = \"approved\" | \"held\" | \"rejected\";\n\nexport interface AdminComment {\n id: string;\n reply_to_id?: string;\n user_id?: string;\n anon_name?: string;\n body: string;\n deleted: boolean;\n likes: number;\n dislikes: number;\n mine: number;\n reply_count: number;\n author?: PublicUser;\n moderation?: ModerationState;\n moderation_reason?: string;\n created_at: string;\n updated_at: string;\n tenant_id: string;\n content_kind: string;\n content_id: string;\n content_version_id?: string;\n deleted_at?: string;\n}\n\nexport interface Anonymous {\n comments: boolean;\n reactions: boolean;\n votes: boolean;\n}\n\nexport interface Assignment {\n tenant_id: string;\n content_kind: string;\n content_id: string;\n content_version_id?: string;\n taxonomy_id: string;\n relation: string;\n state?: \"active\" | \"proposed\";\n source_revision: number;\n}\n\nexport interface AssignmentsWritten {\n assignments: number;\n}\n\nexport interface BanInput {\n reason?: string;\n until?: string;\n}\n\nexport interface BanNotice {\n scope: string;\n reason?: string;\n until?: string;\n}\n\nexport interface Comment {\n id: string;\n reply_to_id?: string;\n user_id?: string;\n anon_name?: string;\n body: string;\n deleted: boolean;\n likes: number;\n dislikes: number;\n mine: number;\n reply_count: number;\n author?: PublicUser;\n moderation?: ModerationState;\n moderation_reason?: string;\n created_at: string;\n updated_at: string;\n}\n\nexport interface CommentBan {\n user_id: string;\n user?: PublicUser;\n scope: string;\n reason?: string;\n until?: string;\n banned_by: string;\n banned_at: string;\n expired: boolean;\n}\n\nexport interface CommentEdit {\n body: string;\n}\n\nexport interface CommentInput {\n body: string;\n reply_to_id?: string;\n anon_name?: string;\n}\n\nexport interface CommentStanding {\n can_comment: boolean;\n ban?: BanNotice;\n anonymous: boolean;\n max_length: number;\n user_id?: string;\n moderate: boolean;\n ban_scopes: (\"global\" | \"owner\")[];\n}\n\nexport interface CommitBody {\n ref: RefBody;\n operation_id: string;\n ops: Op[];\n}\n\nexport interface CommitReply {\n files: FileInfo[];\n}\n\nexport interface CompleteReply {\n blob: string;\n type: string;\n size: number;\n}\n\nexport interface Config {\n anonymous: Anonymous;\n comment_max_length: number;\n}\n\nexport interface ContentRef {\n tenant_id: string;\n content_kind: string;\n content_id: string;\n content_version_id?: string;\n}\n\nexport interface CopyFrom {\n id: string;\n path: string;\n}\n\nexport interface Count {\n content_kind: string;\n language: string;\n count: number;\n}\n\nexport interface CountsRebuilt {\n nodes: number;\n}\n\nexport interface Crop {\n x: number;\n y: number;\n w: number;\n h: number;\n}\n\nexport interface Edge {\n from_taxonomy_id: string;\n relation: \"alias_of\" | \"artist_of\" | \"child\" | \"member_of\" | \"parent\" | \"synonym\" | \"voice_of\";\n to_taxonomy_id: string;\n source_revision: number;\n}\n\nexport interface EdgesWritten {\n edges: number;\n}\n\nexport interface Edit {\n crop?: Crop;\n rotate?: number;\n}\n\nexport interface EffectiveTag {\n taxonomy_id: string;\n kind: string;\n slug: string;\n relation: string;\n scope: \"content\" | \"version\";\n}\n\nexport interface EffectiveTagsOf {\n content: ContentRef;\n tags: EffectiveTag[];\n}\n\nexport interface EncodeProgress {\n phase: EncodePhase;\n queue_position?: number;\n segments_done?: number;\n segments_total?: number;\n percent: number;\n speed?: number;\n eta?: number;\n at: number;\n stalled?: boolean;\n stage?: number;\n stages?: number;\n}\n\nexport interface ErrorDetails {\n width?: number;\n height?: number;\n min_width?: number;\n max_pixels?: number;\n type?: string;\n allowed?: string[];\n size?: number;\n max_bytes?: number;\n frames?: number;\n max_frames?: number;\n seconds?: number;\n max_seconds?: number;\n min_aspect?: number;\n max_aspect?: number;\n max?: number;\n}\n\nexport interface ErrorReply {\n error: string;\n code: ErrorCode;\n retry_after?: number;\n action?: \"comment\" | \"comment_reaction\" | \"favorite\" | \"poll_vote\" | \"post_reaction\" | \"reaction\";\n ban?: BanNotice;\n blobs?: string[];\n details?: ErrorDetails;\n}\n\nexport interface Failure {\n of: string;\n message: string;\n code?: ErrorCode;\n details?: ErrorDetails;\n}\n\nexport interface FavoriteItem {\n tenant_id: string;\n content_kind: string;\n content_id: string;\n content_version_id?: string;\n created_at: string;\n}\n\nexport interface FavoriteState {\n favorited: boolean;\n count: number;\n}\n\nexport interface FeedItem {\n id: string;\n reply_to_id?: string;\n user_id?: string;\n anon_name?: string;\n body: string;\n deleted: boolean;\n likes: number;\n dislikes: number;\n mine: number;\n reply_count: number;\n author?: PublicUser;\n moderation?: ModerationState;\n moderation_reason?: string;\n created_at: string;\n updated_at: string;\n tenant_id: string;\n content_kind: string;\n content_id: string;\n content_version_id?: string;\n}\n\nexport interface FileInfo {\n path: string;\n type: string;\n size?: number;\n w?: number;\n h?: number;\n dur?: number;\n download?: string;\n url?: string;\n locked?: boolean;\n upload?: boolean;\n staged?: boolean;\n from?: string;\n edit?: Edit;\n frame?: Frame;\n meta?: Record<string, unknown>;\n unattached?: boolean;\n pending?: string[];\n failed?: Failure;\n editor_url?: string;\n progress?: EncodeProgress;\n}\n\nexport interface Frame {\n t?: number;\n auto?: boolean;\n of?: string;\n}\n\nexport interface Group {\n id: string;\n label: string;\n count: number;\n}\n\nexport interface HeldItem {\n kind: string;\n revision: number;\n id: string;\n ref: ContentRef;\n author_id?: string;\n author?: PublicUser;\n anon_name?: string;\n title?: string;\n body: string;\n reason: string;\n model?: string;\n prompt_version?: string;\n confidence?: number;\n error?: string;\n held_at: string;\n created_at: string;\n}\n\nexport interface HeldPage {\n items: HeldItem[];\n next?: string;\n}\n\nexport interface ImageInput {\n image?: string;\n}\n\nexport interface InlineImage {\n url: string;\n}\n\nexport interface MergeInput {\n into_taxonomy_id: string;\n}\n\nexport interface MergeReport {\n from_taxonomy_id: string;\n into_taxonomy_id: string;\n assignments_moved: number;\n names_moved: number;\n edges_rewritten: number;\n assignments_merged: number;\n}\n\nexport interface MultipartReply {\n ticket: string;\n min_part_size: number;\n max_part_size: number;\n max_parts: number;\n}\n\nexport interface Name {\n language: string;\n kind: \"alias\" | \"name\";\n name: string;\n normalized?: string;\n source_revision: number;\n}\n\nexport interface Node {\n taxonomy_id: string;\n tenant_id: string;\n kind: string;\n slug: string;\n state: \"active\" | \"deleted\" | \"merged\";\n source_revision: number;\n created_at: string;\n updated_at: string;\n}\n\nexport interface NodeDetail {\n taxonomy_id: string;\n tenant_id: string;\n kind: string;\n slug: string;\n state: \"active\" | \"deleted\" | \"merged\";\n source_revision: number;\n created_at: string;\n updated_at: string;\n names: Name[];\n edges: Edge[];\n counts: Count[];\n}\n\nexport interface NodeInput {\n taxonomy_id?: string;\n kind: string;\n slug: string;\n names?: Name[];\n source_revision: number;\n}\n\nexport interface NodePage {\n nodes: NodeRow[];\n next_cursor?: string;\n total: number;\n}\n\nexport interface NodeRow {\n taxonomy_id: string;\n tenant_id: string;\n kind: string;\n slug: string;\n state: \"active\" | \"deleted\" | \"merged\";\n source_revision: number;\n created_at: string;\n updated_at: string;\n name?: string;\n name_language?: string;\n count: number;\n}\n\nexport interface NodeUpdate {\n slug?: string;\n state?: \"active\" | \"deleted\" | \"merged\";\n source_revision?: number;\n}\n\nexport interface Op {\n op: OpName;\n path?: string;\n blob?: string;\n create_id?: string;\n index?: number;\n meta?: Record<string, unknown>;\n edit?: Edit;\n unattached?: boolean;\n to?: string;\n from?: CopyFrom;\n t?: number;\n auto?: boolean;\n preset?: string;\n force?: boolean;\n takedown?: boolean;\n}\n\nexport interface PartBody {\n number: number;\n size: number;\n sha256: string;\n}\n\nexport interface PartReply {\n number: number;\n size?: number;\n sha256?: string;\n request?: RequestReply;\n}\n\nexport interface PartsBody {\n ticket: string;\n parts: PartBody[];\n}\n\nexport interface PartsReply {\n parts: PartReply[];\n}\n\nexport interface Poll {\n id: string;\n kind: PollKind;\n question: string;\n language: string;\n is_active: boolean;\n image_url?: string;\n live_at: string;\n closes_at?: string;\n closed: boolean;\n total_votes: number;\n options: PollOption[];\n voted: boolean;\n my_option?: string;\n answer_count?: number;\n groups?: Group[];\n my_answer?: PollAnswer;\n}\n\nexport interface PollAnswer {\n id: string;\n text: string;\n classified: boolean;\n updated_at: string;\n}\n\nexport interface PollAnswerInput {\n text: string;\n}\n\nexport interface PollImage {\n image_url: string | null;\n}\n\nexport interface PollInput {\n kind?: PollKind;\n question: string;\n language: string;\n live_at?: string;\n closes_at?: string;\n options?: PollOptionInput[];\n}\n\nexport interface PollOption {\n id: string;\n label: string;\n image_url?: string;\n position: number;\n vote_count: number;\n}\n\nexport interface PollOptionInput {\n label: string;\n position: number;\n}\n\nexport interface PollOptionPatch {\n label?: string;\n position?: number;\n}\n\nexport interface PollUpdate {\n question?: string;\n is_active?: boolean;\n live_at?: string;\n closes_at?: string | null;\n}\n\nexport interface PollVote {\n option_id: string;\n}\n\nexport interface Post {\n id: string;\n author_id: string;\n title: string;\n slug?: string;\n body: string;\n excerpt?: string;\n cover_url?: string;\n language: string;\n is_draft: boolean;\n live_at?: string;\n total_likes: number;\n total_dislikes: number;\n comment_count: number;\n moderation?: ModerationState;\n moderation_reason?: string;\n code: string;\n url_slug: string;\n created_at: string;\n updated_at: string;\n deleted_at?: string;\n}\n\nexport interface PostCover {\n cover_url: string | null;\n}\n\nexport interface PostInput {\n title?: string;\n body?: string;\n excerpt?: string;\n language?: string;\n slug?: string;\n is_draft?: boolean;\n live_at?: string;\n}\n\nexport interface PresetRule {\n kind: string;\n name: string;\n from: string;\n base: string;\n namespace: string;\n to: string;\n widths: number[];\n aspect?: string;\n min_width?: number;\n first?: number;\n}\n\nexport interface PresignBody {\n ref: RefBody;\n path: string;\n type: string;\n size: number;\n sha256: string;\n}\n\nexport interface PresignReply {\n path: string;\n blob: string;\n exists?: boolean;\n put?: RequestReply;\n multipart?: MultipartReply;\n process_on_upload?: boolean;\n}\n\nexport interface PublicImage {\n from: string;\n preset: string;\n renditions: PublicRendition[];\n}\n\nexport interface PublicRendition {\n url: string;\n w: number;\n h: number;\n}\n\nexport interface PublicUser {\n id: string;\n username: string;\n avatar?: string;\n avatar_srcset?: string;\n}\n\nexport interface ReactionCounts {\n likes: number;\n dislikes: number;\n mine: number;\n}\n\nexport interface ReadResult {\n access: Access;\n expires: number;\n meta?: Record<string, unknown>;\n previews?: string[];\n public?: PublicImage[];\n total: number;\n offset: number;\n limit: number;\n hls?: string[];\n state?: ItemState;\n full?: boolean;\n uploads?: UploadRule[];\n files: FileInfo[];\n}\n\nexport interface RefBody {\n kind: string;\n id: string;\n}\n\nexport interface RequestReply {\n method: string;\n url: string;\n headers: Record<string, string>;\n expires: string;\n}\n\nexport interface ResolveInput {\n decision: \"approve\" | \"reject\" | \"review\";\n revision: number;\n reason?: string;\n}\n\nexport interface Resolved {\n tenant_id: string;\n content_kind: string;\n content_id: string;\n content_version_id?: string;\n code: string;\n slug: string;\n slugs?: Record<string, string>;\n path: string;\n}\n\nexport interface Restored {\n restored: boolean;\n}\n\nexport interface ReviewOutcome {\n decision: \"approve\" | \"reject\" | \"review\";\n}\n\nexport interface TicketBody {\n ticket: string;\n}\n\nexport interface UploadRule {\n path: string;\n types: string[];\n max_bytes: number;\n max?: number;\n named?: boolean;\n frames?: string;\n aspect?: string;\n min_width?: number;\n video?: VideoLimits;\n min_aspect?: number;\n max_aspect?: number;\n}\n\nexport interface VideoLimits {\n max_seconds?: number;\n max_fps?: number;\n max_pixels?: number;\n max_work?: number;\n}\n"],"mappings":";AAOA,IAAa,IAAiB,UACjB,IAAgB,SAChB,IAAgB"}
|