@markee_team/sdk 0.1.0-alpha.22 → 0.1.0-alpha.23
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 +17 -0
- package/dist/client.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/modal.d.ts +8 -0
- package/dist/react.js +3 -3
- package/dist/types.d.ts +17 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export interface MessageCheck {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
state: 'pass' | 'soft-flagged' | 'unavailable';
|
|
4
|
+
contentHash: string;
|
|
5
|
+
engine: string;
|
|
6
|
+
policyVersion: string;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface EntryModeration {
|
|
10
|
+
state: 'visible' | 'manual-flagged' | 'soft-flagged' | 'unavailable';
|
|
11
|
+
contentHash: string;
|
|
12
|
+
reason?: string;
|
|
13
|
+
policyVersion: string;
|
|
14
|
+
}
|
|
1
15
|
export type Address = `0x${string}`;
|
|
2
16
|
export type Hex = `0x${string}`;
|
|
3
17
|
export type Placement = {
|
|
@@ -18,6 +32,7 @@ export interface Entry {
|
|
|
18
32
|
totalFunds: string;
|
|
19
33
|
aggregateRate: string;
|
|
20
34
|
legacyFloor: string;
|
|
35
|
+
moderation?: EntryModeration;
|
|
21
36
|
moderated: boolean | null;
|
|
22
37
|
views: number | null;
|
|
23
38
|
}
|
|
@@ -57,6 +72,7 @@ export interface CommunityState {
|
|
|
57
72
|
};
|
|
58
73
|
}
|
|
59
74
|
export interface Snapshot {
|
|
75
|
+
autoModerationEnabled?: boolean;
|
|
60
76
|
freshness?: {
|
|
61
77
|
updatedAt: number;
|
|
62
78
|
freshUntil: number;
|
|
@@ -138,6 +154,7 @@ export interface PreparedAction {
|
|
|
138
154
|
gas: Hex;
|
|
139
155
|
};
|
|
140
156
|
review: {
|
|
157
|
+
moderation?: MessageCheck;
|
|
141
158
|
title: string;
|
|
142
159
|
lines: string[];
|
|
143
160
|
estimatedGasCost: string;
|