@tinyhumansai/tinyplace 0.1.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/dist/api/a2a.d.ts +28 -0
- package/dist/api/a2a.js +21 -0
- package/dist/api/admin.d.ts +38 -0
- package/dist/api/admin.js +49 -0
- package/dist/api/broadcasts.d.ts +32 -0
- package/dist/api/broadcasts.js +51 -0
- package/dist/api/channels.d.ts +43 -0
- package/dist/api/channels.js +57 -0
- package/dist/api/directory.d.ts +15 -0
- package/dist/api/directory.js +26 -0
- package/dist/api/escrow.d.ts +47 -0
- package/dist/api/escrow.js +76 -0
- package/dist/api/events.d.ts +45 -0
- package/dist/api/events.js +77 -0
- package/dist/api/explorer.d.ts +19 -0
- package/dist/api/explorer.js +21 -0
- package/dist/api/groups.d.ts +19 -0
- package/dist/api/groups.js +32 -0
- package/dist/api/inbox.d.ts +27 -0
- package/dist/api/inbox.js +48 -0
- package/dist/api/keys.d.ts +9 -0
- package/dist/api/keys.js +14 -0
- package/dist/api/ledger.d.ts +11 -0
- package/dist/api/ledger.js +14 -0
- package/dist/api/marketplace.d.ts +53 -0
- package/dist/api/marketplace.js +81 -0
- package/dist/api/messages.d.ts +11 -0
- package/dist/api/messages.js +17 -0
- package/dist/api/moderation.d.ts +30 -0
- package/dist/api/moderation.js +32 -0
- package/dist/api/payments.d.ts +15 -0
- package/dist/api/payments.js +26 -0
- package/dist/api/pricing.d.ts +69 -0
- package/dist/api/pricing.js +60 -0
- package/dist/api/profiles.d.ts +18 -0
- package/dist/api/profiles.js +23 -0
- package/dist/api/registry.d.ts +26 -0
- package/dist/api/registry.js +87 -0
- package/dist/api/reputation.d.ts +24 -0
- package/dist/api/reputation.js +29 -0
- package/dist/api/search.d.ts +46 -0
- package/dist/api/search.js +41 -0
- package/dist/api/stats.d.ts +11 -0
- package/dist/api/stats.js +20 -0
- package/dist/auth.d.ts +16 -0
- package/dist/auth.js +36 -0
- package/dist/client.d.ts +63 -0
- package/dist/client.js +73 -0
- package/dist/crypto.d.ts +12 -0
- package/dist/crypto.js +49 -0
- package/dist/http.d.ts +30 -0
- package/dist/http.js +101 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +32 -0
- package/dist/local-signer.d.ts +15 -0
- package/dist/local-signer.js +51 -0
- package/dist/signal/crypto.d.ts +29 -0
- package/dist/signal/crypto.js +156 -0
- package/dist/signal/index.d.ts +11 -0
- package/dist/signal/index.js +6 -0
- package/dist/signal/keys.d.ts +14 -0
- package/dist/signal/keys.js +36 -0
- package/dist/signal/memory-store.d.ts +21 -0
- package/dist/signal/memory-store.js +50 -0
- package/dist/signal/ratchet.d.ts +12 -0
- package/dist/signal/ratchet.js +106 -0
- package/dist/signal/session.d.ts +17 -0
- package/dist/signal/session.js +117 -0
- package/dist/signal/store.d.ts +36 -0
- package/dist/signal/store.js +6 -0
- package/dist/signal/x3dh.d.ts +18 -0
- package/dist/signal/x3dh.js +86 -0
- package/dist/signer.d.ts +13 -0
- package/dist/signer.js +9 -0
- package/dist/types/broadcasts.d.ts +74 -0
- package/dist/types/broadcasts.js +1 -0
- package/dist/types/commerce.d.ts +183 -0
- package/dist/types/commerce.js +1 -0
- package/dist/types/directory.d.ts +88 -0
- package/dist/types/directory.js +1 -0
- package/dist/types/escrow.d.ts +129 -0
- package/dist/types/escrow.js +1 -0
- package/dist/types/events.d.ts +137 -0
- package/dist/types/events.js +1 -0
- package/dist/types/explorer.d.ts +133 -0
- package/dist/types/explorer.js +1 -0
- package/dist/types/groups.d.ts +56 -0
- package/dist/types/groups.js +1 -0
- package/dist/types/identity.d.ts +94 -0
- package/dist/types/identity.js +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.js +16 -0
- package/dist/types/ledger.d.ts +57 -0
- package/dist/types/ledger.js +1 -0
- package/dist/types/marketplace.d.ts +141 -0
- package/dist/types/marketplace.js +1 -0
- package/dist/types/messaging.d.ts +67 -0
- package/dist/types/messaging.js +1 -0
- package/dist/types/payments.d.ts +88 -0
- package/dist/types/payments.js +1 -0
- package/dist/types/profile.d.ts +49 -0
- package/dist/types/profile.js +1 -0
- package/dist/types/reputation.d.ts +90 -0
- package/dist/types/reputation.js +1 -0
- package/dist/types/search.d.ts +56 -0
- package/dist/types/search.js +1 -0
- package/dist/types/social.d.ts +158 -0
- package/dist/types/social.js +1 -0
- package/dist/websocket.d.ts +26 -0
- package/dist/websocket.js +83 -0
- package/package.json +30 -0
- package/src/api/a2a.ts +50 -0
- package/src/api/admin.ts +95 -0
- package/src/api/broadcasts.ts +110 -0
- package/src/api/channels.ts +110 -0
- package/src/api/directory.ts +45 -0
- package/src/api/escrow.ts +163 -0
- package/src/api/events.ts +133 -0
- package/src/api/explorer.ts +48 -0
- package/src/api/groups.ts +64 -0
- package/src/api/inbox.ts +71 -0
- package/src/api/keys.ts +18 -0
- package/src/api/ledger.ts +28 -0
- package/src/api/marketplace.ts +165 -0
- package/src/api/messages.ts +23 -0
- package/src/api/moderation.ts +71 -0
- package/src/api/payments.ts +47 -0
- package/src/api/pricing.ts +122 -0
- package/src/api/profiles.ts +43 -0
- package/src/api/registry.ts +143 -0
- package/src/api/reputation.ts +60 -0
- package/src/api/search.ts +59 -0
- package/src/api/stats.ts +32 -0
- package/src/auth.ts +75 -0
- package/src/client.ts +120 -0
- package/src/crypto.ts +74 -0
- package/src/http.ts +147 -0
- package/src/index.ts +72 -0
- package/src/local-signer.ts +78 -0
- package/src/signal/crypto.ts +229 -0
- package/src/signal/index.ts +28 -0
- package/src/signal/keys.ts +54 -0
- package/src/signal/memory-store.ts +66 -0
- package/src/signal/ratchet.ts +162 -0
- package/src/signal/session.ts +189 -0
- package/src/signal/store.ts +49 -0
- package/src/signal/x3dh.ts +130 -0
- package/src/signer.ts +21 -0
- package/src/types/broadcasts.ts +81 -0
- package/src/types/commerce.ts +206 -0
- package/src/types/directory.ts +98 -0
- package/src/types/escrow.ts +163 -0
- package/src/types/events.ts +155 -0
- package/src/types/explorer.ts +152 -0
- package/src/types/groups.ts +62 -0
- package/src/types/identity.ts +113 -0
- package/src/types/index.ts +16 -0
- package/src/types/ledger.ts +78 -0
- package/src/types/marketplace.ts +166 -0
- package/src/types/messaging.ts +77 -0
- package/src/types/payments.ts +103 -0
- package/src/types/profile.ts +55 -0
- package/src/types/reputation.ts +98 -0
- package/src/types/search.ts +61 -0
- package/src/types/social.ts +186 -0
- package/src/websocket.ts +112 -0
- package/tests/signal.test.ts +353 -0
- package/tests/staging.test.ts +650 -0
- package/tsconfig.json +15 -0
- package/vitest.config.ts +7 -0
|
@@ -0,0 +1,206 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
}
|