@tinyhumansai/tinyplace 0.1.0 → 0.1.1
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/package.json +2 -1
- package/src/api/a2a.ts +0 -50
- package/src/api/admin.ts +0 -95
- package/src/api/broadcasts.ts +0 -110
- package/src/api/channels.ts +0 -110
- package/src/api/directory.ts +0 -45
- package/src/api/escrow.ts +0 -163
- package/src/api/events.ts +0 -133
- package/src/api/explorer.ts +0 -48
- package/src/api/groups.ts +0 -64
- package/src/api/inbox.ts +0 -71
- package/src/api/keys.ts +0 -18
- package/src/api/ledger.ts +0 -28
- package/src/api/marketplace.ts +0 -165
- package/src/api/messages.ts +0 -23
- package/src/api/moderation.ts +0 -71
- package/src/api/payments.ts +0 -47
- package/src/api/pricing.ts +0 -122
- package/src/api/profiles.ts +0 -43
- package/src/api/registry.ts +0 -143
- package/src/api/reputation.ts +0 -60
- package/src/api/search.ts +0 -59
- package/src/api/stats.ts +0 -32
- package/src/auth.ts +0 -75
- package/src/client.ts +0 -120
- package/src/crypto.ts +0 -74
- package/src/http.ts +0 -147
- package/src/index.ts +0 -72
- package/src/local-signer.ts +0 -78
- package/src/signal/crypto.ts +0 -229
- package/src/signal/index.ts +0 -28
- package/src/signal/keys.ts +0 -54
- package/src/signal/memory-store.ts +0 -66
- package/src/signal/ratchet.ts +0 -162
- package/src/signal/session.ts +0 -189
- package/src/signal/store.ts +0 -49
- package/src/signal/x3dh.ts +0 -130
- package/src/signer.ts +0 -21
- package/src/types/broadcasts.ts +0 -81
- package/src/types/commerce.ts +0 -206
- package/src/types/directory.ts +0 -98
- package/src/types/escrow.ts +0 -163
- package/src/types/events.ts +0 -155
- package/src/types/explorer.ts +0 -152
- package/src/types/groups.ts +0 -62
- package/src/types/identity.ts +0 -113
- package/src/types/index.ts +0 -16
- package/src/types/ledger.ts +0 -78
- package/src/types/marketplace.ts +0 -166
- package/src/types/messaging.ts +0 -77
- package/src/types/payments.ts +0 -103
- package/src/types/profile.ts +0 -55
- package/src/types/reputation.ts +0 -98
- package/src/types/search.ts +0 -61
- package/src/types/social.ts +0 -186
- package/src/websocket.ts +0 -112
- package/tests/signal.test.ts +0 -353
- package/tests/staging.test.ts +0 -650
- package/tsconfig.json +0 -15
- package/vitest.config.ts +0 -7
package/src/types/commerce.ts
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import type { LedgerType } from "./ledger.js";
|
|
2
|
-
|
|
3
|
-
export interface MoneyAmount {
|
|
4
|
-
asset: string;
|
|
5
|
-
amount: string;
|
|
6
|
-
network?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface FeeAmount {
|
|
10
|
-
amount: string;
|
|
11
|
-
asset: string;
|
|
12
|
-
percent?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface PriceQuote {
|
|
16
|
-
base: string;
|
|
17
|
-
quote: string;
|
|
18
|
-
network?: string;
|
|
19
|
-
bid: string;
|
|
20
|
-
ask: string;
|
|
21
|
-
mid: string;
|
|
22
|
-
volume24h: string;
|
|
23
|
-
change24h: string;
|
|
24
|
-
source: string;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface PriceCandle {
|
|
29
|
-
open: string;
|
|
30
|
-
high: string;
|
|
31
|
-
low: string;
|
|
32
|
-
close: string;
|
|
33
|
-
volume: string;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface PriceHistory {
|
|
38
|
-
base: string;
|
|
39
|
-
quote: string;
|
|
40
|
-
interval: string;
|
|
41
|
-
candles: Array<PriceCandle>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface GasEstimate {
|
|
45
|
-
network: string;
|
|
46
|
-
unit: string;
|
|
47
|
-
slow: string;
|
|
48
|
-
standard: string;
|
|
49
|
-
fast: string;
|
|
50
|
-
estimatedFee?: string;
|
|
51
|
-
updatedAt: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface TradePair {
|
|
55
|
-
base: string;
|
|
56
|
-
quote: string;
|
|
57
|
-
networks: Array<string>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface SwapQuote {
|
|
61
|
-
quoteId: string;
|
|
62
|
-
from: MoneyAmount;
|
|
63
|
-
to: MoneyAmount;
|
|
64
|
-
rate: string;
|
|
65
|
-
priceImpact: string;
|
|
66
|
-
fee: FeeAmount;
|
|
67
|
-
route: Array<string>;
|
|
68
|
-
expiresAt: string;
|
|
69
|
-
slippageTolerance: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface SwapExecuteRequest {
|
|
73
|
-
quoteId: string;
|
|
74
|
-
paymentAuthorization: string;
|
|
75
|
-
slippageTolerance?: string;
|
|
76
|
-
deadline?: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface SwapExecution {
|
|
80
|
-
swapId: string;
|
|
81
|
-
quoteId: string;
|
|
82
|
-
agentId?: string;
|
|
83
|
-
status: string;
|
|
84
|
-
from: MoneyAmount;
|
|
85
|
-
to: MoneyAmount;
|
|
86
|
-
txHash?: string;
|
|
87
|
-
ledgerEntry?: string;
|
|
88
|
-
completedAt?: string;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface BridgeRoute {
|
|
93
|
-
provider: string;
|
|
94
|
-
from: MoneyAmount;
|
|
95
|
-
to: MoneyAmount;
|
|
96
|
-
estimatedTime: string;
|
|
97
|
-
fee: FeeAmount;
|
|
98
|
-
minAmount: string;
|
|
99
|
-
maxAmount: string;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface BridgeQuote {
|
|
103
|
-
quoteId: string;
|
|
104
|
-
from: MoneyAmount;
|
|
105
|
-
to: MoneyAmount;
|
|
106
|
-
provider: string;
|
|
107
|
-
fee: FeeAmount;
|
|
108
|
-
estimatedTime: string;
|
|
109
|
-
expiresAt: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export interface BridgeExecuteRequest {
|
|
113
|
-
quoteId: string;
|
|
114
|
-
destinationAddress: string;
|
|
115
|
-
paymentAuthorization: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface BridgeExecution {
|
|
119
|
-
bridgeId: string;
|
|
120
|
-
quoteId: string;
|
|
121
|
-
agentId?: string;
|
|
122
|
-
status: string;
|
|
123
|
-
from: MoneyAmount;
|
|
124
|
-
to: MoneyAmount;
|
|
125
|
-
provider: string;
|
|
126
|
-
destinationAddress: string;
|
|
127
|
-
txHash?: string;
|
|
128
|
-
sourceTxHash?: string;
|
|
129
|
-
destinationTxHash?: string;
|
|
130
|
-
ledgerEntry?: string;
|
|
131
|
-
completedAt?: string;
|
|
132
|
-
createdAt: string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface FeeConfig {
|
|
136
|
-
feeId: string;
|
|
137
|
-
scope: string;
|
|
138
|
-
transactionType: LedgerType;
|
|
139
|
-
agents: Array<string>;
|
|
140
|
-
rate: string;
|
|
141
|
-
effectiveFrom: string;
|
|
142
|
-
effectiveUntil?: string;
|
|
143
|
-
createdBy: string;
|
|
144
|
-
reason: string;
|
|
145
|
-
revoked: boolean;
|
|
146
|
-
updatedAt: string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface AgentPaymentStatus {
|
|
150
|
-
handle: string;
|
|
151
|
-
status: string;
|
|
152
|
-
reason?: string;
|
|
153
|
-
updatedBy: string;
|
|
154
|
-
updatedAt: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface AdminAuditEntry {
|
|
158
|
-
auditId: string;
|
|
159
|
-
action: string;
|
|
160
|
-
actor: string;
|
|
161
|
-
timestamp: string;
|
|
162
|
-
params: Record<string, string>;
|
|
163
|
-
reason: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface SystemConfig {
|
|
167
|
-
key: string;
|
|
168
|
-
value: string;
|
|
169
|
-
updatedBy: string;
|
|
170
|
-
updatedAt: string;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export interface StatsSnapshot {
|
|
174
|
-
timestamp: string;
|
|
175
|
-
agents: AgentStats;
|
|
176
|
-
transactions: TransactionStats;
|
|
177
|
-
volume: VolumeStats;
|
|
178
|
-
fees: FeeStats;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export interface AgentStats {
|
|
182
|
-
registered: number;
|
|
183
|
-
active_30d: number;
|
|
184
|
-
directory_cards: number;
|
|
185
|
-
groups: number;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export interface TransactionStats {
|
|
189
|
-
total: number;
|
|
190
|
-
settled: number;
|
|
191
|
-
by_type: Record<string, number>;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface VolumeStats {
|
|
195
|
-
total_usd: string;
|
|
196
|
-
by_asset: Record<string, string>;
|
|
197
|
-
by_network: Record<string, string>;
|
|
198
|
-
last_24h_usd: string;
|
|
199
|
-
last_30d_usd: string;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface FeeStats {
|
|
203
|
-
total_usd: string;
|
|
204
|
-
last_24h_usd: string;
|
|
205
|
-
last_30d_usd: string;
|
|
206
|
-
}
|
package/src/types/directory.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import type { Identity, PaymentMethod } from "./identity.js";
|
|
2
|
-
|
|
3
|
-
export interface AgentInterface {
|
|
4
|
-
url: string;
|
|
5
|
-
binding: string;
|
|
6
|
-
version: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface AgentPayment {
|
|
10
|
-
network: string;
|
|
11
|
-
asset: string;
|
|
12
|
-
rateType: string;
|
|
13
|
-
amount: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface AgentDocs {
|
|
17
|
-
swaggerJson?: string;
|
|
18
|
-
swaggerMd?: string;
|
|
19
|
-
skillMd?: string;
|
|
20
|
-
swaggerJsonUrl?: string;
|
|
21
|
-
swaggerMdUrl?: string;
|
|
22
|
-
skillMdUrl?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface AgentWebhook {
|
|
26
|
-
event: string;
|
|
27
|
-
url: string;
|
|
28
|
-
secretRef?: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
metadata?: Record<string, string>;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface AgentCard {
|
|
34
|
-
agentId: string;
|
|
35
|
-
name: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
username?: string;
|
|
38
|
-
cryptoId: string;
|
|
39
|
-
publicKey?: string;
|
|
40
|
-
url?: string;
|
|
41
|
-
endpoint?: string;
|
|
42
|
-
supportedInterfaces?: Array<AgentInterface>;
|
|
43
|
-
skills?: Array<string>;
|
|
44
|
-
capabilities?: Array<string>;
|
|
45
|
-
tags?: Array<string>;
|
|
46
|
-
paymentMethods?: Array<PaymentMethod>;
|
|
47
|
-
paymentRequirements?: AgentPayment;
|
|
48
|
-
groups?: Array<string>;
|
|
49
|
-
docs?: AgentDocs;
|
|
50
|
-
webhooks?: Array<AgentWebhook>;
|
|
51
|
-
metadata?: Record<string, string>;
|
|
52
|
-
signature?: string;
|
|
53
|
-
createdAt: string;
|
|
54
|
-
updatedAt: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface AgentInternalAPI {
|
|
58
|
-
docsUrl?: string;
|
|
59
|
-
endpoints?: Array<AgentInterface>;
|
|
60
|
-
details?: Record<string, string>;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface ExtendedAgentCard {
|
|
64
|
-
agentId: string;
|
|
65
|
-
agent: AgentCard;
|
|
66
|
-
privateSkills?: Array<string>;
|
|
67
|
-
rateLimits?: Record<string, string>;
|
|
68
|
-
internalApi?: AgentInternalAPI;
|
|
69
|
-
metadata?: Record<string, string>;
|
|
70
|
-
updatedAt: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface AgentQueryParams {
|
|
74
|
-
q?: string;
|
|
75
|
-
skill?: string;
|
|
76
|
-
capability?: string;
|
|
77
|
-
tag?: string;
|
|
78
|
-
tags?: Array<string>;
|
|
79
|
-
username?: string;
|
|
80
|
-
cryptoId?: string;
|
|
81
|
-
network?: string;
|
|
82
|
-
asset?: string;
|
|
83
|
-
maxAmount?: string;
|
|
84
|
-
group?: string;
|
|
85
|
-
limit?: number;
|
|
86
|
-
offset?: number;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface ResolveResponse {
|
|
90
|
-
identity: Identity | null;
|
|
91
|
-
agent?: AgentCard;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface ReverseResponse {
|
|
95
|
-
cryptoId: string;
|
|
96
|
-
identities: Array<Identity>;
|
|
97
|
-
agents?: Array<AgentCard>;
|
|
98
|
-
}
|
package/src/types/escrow.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
export type EscrowStatus =
|
|
2
|
-
| "funded"
|
|
3
|
-
| "accepted"
|
|
4
|
-
| "delivered"
|
|
5
|
-
| "revision_requested"
|
|
6
|
-
| "settled"
|
|
7
|
-
| "cancelled"
|
|
8
|
-
| "disputed"
|
|
9
|
-
| "resolved"
|
|
10
|
-
| "expired";
|
|
11
|
-
|
|
12
|
-
export type EscrowDisputeTier = "mediation" | "arbitration";
|
|
13
|
-
|
|
14
|
-
export type EscrowDisputeStatus =
|
|
15
|
-
| "open"
|
|
16
|
-
| "proposed"
|
|
17
|
-
| "accepted"
|
|
18
|
-
| "escalated"
|
|
19
|
-
| "resolved";
|
|
20
|
-
|
|
21
|
-
export type EscrowEvidenceType =
|
|
22
|
-
| "message"
|
|
23
|
-
| "delivery"
|
|
24
|
-
| "file"
|
|
25
|
-
| "external_link"
|
|
26
|
-
| "transaction";
|
|
27
|
-
|
|
28
|
-
export interface EscrowTerms {
|
|
29
|
-
description: string;
|
|
30
|
-
deliverables?: Array<string>;
|
|
31
|
-
deadline: string;
|
|
32
|
-
maxRevisions: number;
|
|
33
|
-
autoReleaseAfter?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface EscrowMilestone {
|
|
37
|
-
milestoneId: string;
|
|
38
|
-
title: string;
|
|
39
|
-
amount: string;
|
|
40
|
-
deadline: string;
|
|
41
|
-
status: string;
|
|
42
|
-
revisionCount: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface EscrowDelivery {
|
|
46
|
-
deliveryId: string;
|
|
47
|
-
submittedBy: string;
|
|
48
|
-
description: string;
|
|
49
|
-
refs?: Array<string>;
|
|
50
|
-
submittedAt: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface EscrowExtension {
|
|
54
|
-
extensionId: string;
|
|
55
|
-
requestedBy: string;
|
|
56
|
-
reason?: string;
|
|
57
|
-
deadline: string;
|
|
58
|
-
status: string;
|
|
59
|
-
requestedAt: string;
|
|
60
|
-
approvedAt?: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface EscrowEvidence {
|
|
64
|
-
evidenceId: string;
|
|
65
|
-
disputeId: string;
|
|
66
|
-
submittedBy: string;
|
|
67
|
-
type: EscrowEvidenceType;
|
|
68
|
-
description: string;
|
|
69
|
-
ref?: string;
|
|
70
|
-
submittedAt: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface EscrowMediationProposal {
|
|
74
|
-
proposedAt: string;
|
|
75
|
-
resolution: string;
|
|
76
|
-
clientAmount?: string;
|
|
77
|
-
providerAmount?: string;
|
|
78
|
-
rationale?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface EscrowCouncilVote {
|
|
82
|
-
agent: string;
|
|
83
|
-
vote: string;
|
|
84
|
-
clientPct?: number;
|
|
85
|
-
providerPct?: number;
|
|
86
|
-
round: number;
|
|
87
|
-
rationale?: string;
|
|
88
|
-
votedAt: string;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface EscrowArbitrationOutcome {
|
|
92
|
-
resolution: string;
|
|
93
|
-
clientPct?: number;
|
|
94
|
-
providerPct?: number;
|
|
95
|
-
round: number;
|
|
96
|
-
rationale?: string;
|
|
97
|
-
resolvedAt: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface EscrowDispute {
|
|
101
|
-
disputeId: string;
|
|
102
|
-
escrowId: string;
|
|
103
|
-
tier: EscrowDisputeTier;
|
|
104
|
-
openedBy: string;
|
|
105
|
-
reason: string;
|
|
106
|
-
evidence?: Array<EscrowEvidence>;
|
|
107
|
-
status: EscrowDisputeStatus;
|
|
108
|
-
proposal?: EscrowMediationProposal;
|
|
109
|
-
mediationAcceptedBy?: Array<string>;
|
|
110
|
-
arbitrationPaidBy?: Array<string>;
|
|
111
|
-
arbitrationRound?: number;
|
|
112
|
-
council?: Array<EscrowCouncilVote>;
|
|
113
|
-
arbitrationOutcome?: EscrowArbitrationOutcome;
|
|
114
|
-
openedAt: string;
|
|
115
|
-
escalatedAt?: string;
|
|
116
|
-
resolvedAt?: string;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface Escrow {
|
|
120
|
-
escrowId: string;
|
|
121
|
-
status: EscrowStatus;
|
|
122
|
-
client: string;
|
|
123
|
-
clientCryptoId?: string;
|
|
124
|
-
provider: string;
|
|
125
|
-
providerCryptoId?: string;
|
|
126
|
-
amount: string;
|
|
127
|
-
asset: string;
|
|
128
|
-
network: string;
|
|
129
|
-
terms: EscrowTerms;
|
|
130
|
-
milestones?: Array<EscrowMilestone>;
|
|
131
|
-
deliveries?: Array<EscrowDelivery>;
|
|
132
|
-
extensions?: Array<EscrowExtension>;
|
|
133
|
-
revisionCount: number;
|
|
134
|
-
dispute?: EscrowDispute;
|
|
135
|
-
createdAt: string;
|
|
136
|
-
fundedAt: string;
|
|
137
|
-
acceptedAt?: string;
|
|
138
|
-
deliveredAt?: string;
|
|
139
|
-
resolvedAt?: string;
|
|
140
|
-
cancelledAt?: string;
|
|
141
|
-
onChainTx?: string;
|
|
142
|
-
ledgerTxId?: string;
|
|
143
|
-
releaseLedgerTxId?: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface EscrowCreateRequest {
|
|
147
|
-
provider: string;
|
|
148
|
-
amount: string;
|
|
149
|
-
asset: string;
|
|
150
|
-
network: string;
|
|
151
|
-
terms: EscrowTerms;
|
|
152
|
-
milestones?: Array<Omit<EscrowMilestone, "milestoneId" | "status" | "revisionCount">>;
|
|
153
|
-
payment?: Record<string, string>;
|
|
154
|
-
signature?: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface EscrowQueryParams {
|
|
158
|
-
client?: string;
|
|
159
|
-
provider?: string;
|
|
160
|
-
status?: EscrowStatus;
|
|
161
|
-
limit?: number;
|
|
162
|
-
offset?: number;
|
|
163
|
-
}
|
package/src/types/events.ts
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
export type EventStatus = "scheduled" | "live" | "ended" | "cancelled";
|
|
2
|
-
export type EventVisibility = "public" | "unlisted" | "invite-only";
|
|
3
|
-
export type EventEncryption = "none" | "envelope";
|
|
4
|
-
export type EventQuestionStatus =
|
|
5
|
-
| "pending"
|
|
6
|
-
| "promoted"
|
|
7
|
-
| "answered"
|
|
8
|
-
| "dismissed";
|
|
9
|
-
export type EventPollStatus = "open" | "closed";
|
|
10
|
-
|
|
11
|
-
export interface EventSchedule {
|
|
12
|
-
startAt: string;
|
|
13
|
-
endAt: string;
|
|
14
|
-
timezone: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface EventAgendaItem {
|
|
18
|
-
time: string;
|
|
19
|
-
title: string;
|
|
20
|
-
speaker?: string;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface EventTicketPrice {
|
|
24
|
-
amount: string;
|
|
25
|
-
asset: string;
|
|
26
|
-
network: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface EventTicketTier {
|
|
30
|
-
tier: string;
|
|
31
|
-
amount: string;
|
|
32
|
-
capacity?: number;
|
|
33
|
-
perks?: Array<string>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface EventPaymentPolicy {
|
|
37
|
-
type: string;
|
|
38
|
-
ticket?: EventTicketPrice;
|
|
39
|
-
tiered?: Array<EventTicketTier>;
|
|
40
|
-
refund?: Record<string, string>;
|
|
41
|
-
meta?: Record<string, string>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface Event {
|
|
45
|
-
eventId: string;
|
|
46
|
-
title: string;
|
|
47
|
-
description?: string;
|
|
48
|
-
type: string;
|
|
49
|
-
host: string;
|
|
50
|
-
hostCryptoId?: string;
|
|
51
|
-
speakers?: Array<string>;
|
|
52
|
-
moderators?: Array<string>;
|
|
53
|
-
mutedSpeakers?: Array<string>;
|
|
54
|
-
schedule: EventSchedule;
|
|
55
|
-
agenda?: Array<EventAgendaItem>;
|
|
56
|
-
currentAgendaIndex?: number;
|
|
57
|
-
capacity?: number;
|
|
58
|
-
attendeeCount: number;
|
|
59
|
-
status: EventStatus;
|
|
60
|
-
visibility: EventVisibility;
|
|
61
|
-
encryption: EventEncryption;
|
|
62
|
-
tags?: Array<string>;
|
|
63
|
-
recording: boolean;
|
|
64
|
-
recordingVisibility?: EventVisibility;
|
|
65
|
-
stagePaused: boolean;
|
|
66
|
-
paymentPolicy?: EventPaymentPolicy;
|
|
67
|
-
seriesId?: string;
|
|
68
|
-
createdAt: string;
|
|
69
|
-
updatedAt: string;
|
|
70
|
-
cancelledAt?: string;
|
|
71
|
-
endedAt?: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface EventQueryParams {
|
|
75
|
-
q?: string;
|
|
76
|
-
type?: string;
|
|
77
|
-
host?: string;
|
|
78
|
-
seriesId?: string;
|
|
79
|
-
status?: EventStatus;
|
|
80
|
-
visibility?: EventVisibility;
|
|
81
|
-
tag?: string;
|
|
82
|
-
from?: string;
|
|
83
|
-
to?: string;
|
|
84
|
-
limit?: number;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface EventAttendee {
|
|
88
|
-
eventId: string;
|
|
89
|
-
agentId: string;
|
|
90
|
-
tier?: string;
|
|
91
|
-
status: string;
|
|
92
|
-
joinedAt: string;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface EventStageMessage {
|
|
96
|
-
messageId: string;
|
|
97
|
-
eventId: string;
|
|
98
|
-
sender: string;
|
|
99
|
-
role: string;
|
|
100
|
-
timestamp: string;
|
|
101
|
-
contentType: string;
|
|
102
|
-
body: string;
|
|
103
|
-
pinned: boolean;
|
|
104
|
-
sequence: number;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface EventQuestion {
|
|
108
|
-
questionId: string;
|
|
109
|
-
eventId: string;
|
|
110
|
-
asker: string;
|
|
111
|
-
body: string;
|
|
112
|
-
submittedAt: string;
|
|
113
|
-
status: EventQuestionStatus;
|
|
114
|
-
upvotes: number;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface EventPoll {
|
|
118
|
-
pollId: string;
|
|
119
|
-
eventId: string;
|
|
120
|
-
question: string;
|
|
121
|
-
options: Array<string>;
|
|
122
|
-
createdBy: string;
|
|
123
|
-
status: EventPollStatus;
|
|
124
|
-
results: Record<string, number>;
|
|
125
|
-
totalVotes: number;
|
|
126
|
-
createdAt: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface EventRecording {
|
|
130
|
-
eventId: string;
|
|
131
|
-
title: string;
|
|
132
|
-
duration: string;
|
|
133
|
-
messages: Array<EventStageMessage>;
|
|
134
|
-
questions: Array<EventQuestion>;
|
|
135
|
-
polls: Array<EventPoll>;
|
|
136
|
-
attendeePeak: number;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export interface EventRecurrence {
|
|
140
|
-
frequency: string;
|
|
141
|
-
day?: string;
|
|
142
|
-
time: string;
|
|
143
|
-
timezone: string;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface EventSeries {
|
|
147
|
-
seriesId: string;
|
|
148
|
-
title: string;
|
|
149
|
-
host: string;
|
|
150
|
-
recurrence: EventRecurrence;
|
|
151
|
-
nextEventId?: string;
|
|
152
|
-
followers?: Array<string>;
|
|
153
|
-
createdAt: string;
|
|
154
|
-
updatedAt: string;
|
|
155
|
-
}
|