@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.
Files changed (170) hide show
  1. package/dist/api/a2a.d.ts +28 -0
  2. package/dist/api/a2a.js +21 -0
  3. package/dist/api/admin.d.ts +38 -0
  4. package/dist/api/admin.js +49 -0
  5. package/dist/api/broadcasts.d.ts +32 -0
  6. package/dist/api/broadcasts.js +51 -0
  7. package/dist/api/channels.d.ts +43 -0
  8. package/dist/api/channels.js +57 -0
  9. package/dist/api/directory.d.ts +15 -0
  10. package/dist/api/directory.js +26 -0
  11. package/dist/api/escrow.d.ts +47 -0
  12. package/dist/api/escrow.js +76 -0
  13. package/dist/api/events.d.ts +45 -0
  14. package/dist/api/events.js +77 -0
  15. package/dist/api/explorer.d.ts +19 -0
  16. package/dist/api/explorer.js +21 -0
  17. package/dist/api/groups.d.ts +19 -0
  18. package/dist/api/groups.js +32 -0
  19. package/dist/api/inbox.d.ts +27 -0
  20. package/dist/api/inbox.js +48 -0
  21. package/dist/api/keys.d.ts +9 -0
  22. package/dist/api/keys.js +14 -0
  23. package/dist/api/ledger.d.ts +11 -0
  24. package/dist/api/ledger.js +14 -0
  25. package/dist/api/marketplace.d.ts +53 -0
  26. package/dist/api/marketplace.js +81 -0
  27. package/dist/api/messages.d.ts +11 -0
  28. package/dist/api/messages.js +17 -0
  29. package/dist/api/moderation.d.ts +30 -0
  30. package/dist/api/moderation.js +32 -0
  31. package/dist/api/payments.d.ts +15 -0
  32. package/dist/api/payments.js +26 -0
  33. package/dist/api/pricing.d.ts +69 -0
  34. package/dist/api/pricing.js +60 -0
  35. package/dist/api/profiles.d.ts +18 -0
  36. package/dist/api/profiles.js +23 -0
  37. package/dist/api/registry.d.ts +26 -0
  38. package/dist/api/registry.js +87 -0
  39. package/dist/api/reputation.d.ts +24 -0
  40. package/dist/api/reputation.js +29 -0
  41. package/dist/api/search.d.ts +46 -0
  42. package/dist/api/search.js +41 -0
  43. package/dist/api/stats.d.ts +11 -0
  44. package/dist/api/stats.js +20 -0
  45. package/dist/auth.d.ts +16 -0
  46. package/dist/auth.js +36 -0
  47. package/dist/client.d.ts +63 -0
  48. package/dist/client.js +73 -0
  49. package/dist/crypto.d.ts +12 -0
  50. package/dist/crypto.js +49 -0
  51. package/dist/http.d.ts +30 -0
  52. package/dist/http.js +101 -0
  53. package/dist/index.d.ts +39 -0
  54. package/dist/index.js +32 -0
  55. package/dist/local-signer.d.ts +15 -0
  56. package/dist/local-signer.js +51 -0
  57. package/dist/signal/crypto.d.ts +29 -0
  58. package/dist/signal/crypto.js +156 -0
  59. package/dist/signal/index.d.ts +11 -0
  60. package/dist/signal/index.js +6 -0
  61. package/dist/signal/keys.d.ts +14 -0
  62. package/dist/signal/keys.js +36 -0
  63. package/dist/signal/memory-store.d.ts +21 -0
  64. package/dist/signal/memory-store.js +50 -0
  65. package/dist/signal/ratchet.d.ts +12 -0
  66. package/dist/signal/ratchet.js +106 -0
  67. package/dist/signal/session.d.ts +17 -0
  68. package/dist/signal/session.js +117 -0
  69. package/dist/signal/store.d.ts +36 -0
  70. package/dist/signal/store.js +6 -0
  71. package/dist/signal/x3dh.d.ts +18 -0
  72. package/dist/signal/x3dh.js +86 -0
  73. package/dist/signer.d.ts +13 -0
  74. package/dist/signer.js +9 -0
  75. package/dist/types/broadcasts.d.ts +74 -0
  76. package/dist/types/broadcasts.js +1 -0
  77. package/dist/types/commerce.d.ts +183 -0
  78. package/dist/types/commerce.js +1 -0
  79. package/dist/types/directory.d.ts +88 -0
  80. package/dist/types/directory.js +1 -0
  81. package/dist/types/escrow.d.ts +129 -0
  82. package/dist/types/escrow.js +1 -0
  83. package/dist/types/events.d.ts +137 -0
  84. package/dist/types/events.js +1 -0
  85. package/dist/types/explorer.d.ts +133 -0
  86. package/dist/types/explorer.js +1 -0
  87. package/dist/types/groups.d.ts +56 -0
  88. package/dist/types/groups.js +1 -0
  89. package/dist/types/identity.d.ts +94 -0
  90. package/dist/types/identity.js +1 -0
  91. package/dist/types/index.d.ts +16 -0
  92. package/dist/types/index.js +16 -0
  93. package/dist/types/ledger.d.ts +57 -0
  94. package/dist/types/ledger.js +1 -0
  95. package/dist/types/marketplace.d.ts +141 -0
  96. package/dist/types/marketplace.js +1 -0
  97. package/dist/types/messaging.d.ts +67 -0
  98. package/dist/types/messaging.js +1 -0
  99. package/dist/types/payments.d.ts +88 -0
  100. package/dist/types/payments.js +1 -0
  101. package/dist/types/profile.d.ts +49 -0
  102. package/dist/types/profile.js +1 -0
  103. package/dist/types/reputation.d.ts +90 -0
  104. package/dist/types/reputation.js +1 -0
  105. package/dist/types/search.d.ts +56 -0
  106. package/dist/types/search.js +1 -0
  107. package/dist/types/social.d.ts +158 -0
  108. package/dist/types/social.js +1 -0
  109. package/dist/websocket.d.ts +26 -0
  110. package/dist/websocket.js +83 -0
  111. package/package.json +30 -0
  112. package/src/api/a2a.ts +50 -0
  113. package/src/api/admin.ts +95 -0
  114. package/src/api/broadcasts.ts +110 -0
  115. package/src/api/channels.ts +110 -0
  116. package/src/api/directory.ts +45 -0
  117. package/src/api/escrow.ts +163 -0
  118. package/src/api/events.ts +133 -0
  119. package/src/api/explorer.ts +48 -0
  120. package/src/api/groups.ts +64 -0
  121. package/src/api/inbox.ts +71 -0
  122. package/src/api/keys.ts +18 -0
  123. package/src/api/ledger.ts +28 -0
  124. package/src/api/marketplace.ts +165 -0
  125. package/src/api/messages.ts +23 -0
  126. package/src/api/moderation.ts +71 -0
  127. package/src/api/payments.ts +47 -0
  128. package/src/api/pricing.ts +122 -0
  129. package/src/api/profiles.ts +43 -0
  130. package/src/api/registry.ts +143 -0
  131. package/src/api/reputation.ts +60 -0
  132. package/src/api/search.ts +59 -0
  133. package/src/api/stats.ts +32 -0
  134. package/src/auth.ts +75 -0
  135. package/src/client.ts +120 -0
  136. package/src/crypto.ts +74 -0
  137. package/src/http.ts +147 -0
  138. package/src/index.ts +72 -0
  139. package/src/local-signer.ts +78 -0
  140. package/src/signal/crypto.ts +229 -0
  141. package/src/signal/index.ts +28 -0
  142. package/src/signal/keys.ts +54 -0
  143. package/src/signal/memory-store.ts +66 -0
  144. package/src/signal/ratchet.ts +162 -0
  145. package/src/signal/session.ts +189 -0
  146. package/src/signal/store.ts +49 -0
  147. package/src/signal/x3dh.ts +130 -0
  148. package/src/signer.ts +21 -0
  149. package/src/types/broadcasts.ts +81 -0
  150. package/src/types/commerce.ts +206 -0
  151. package/src/types/directory.ts +98 -0
  152. package/src/types/escrow.ts +163 -0
  153. package/src/types/events.ts +155 -0
  154. package/src/types/explorer.ts +152 -0
  155. package/src/types/groups.ts +62 -0
  156. package/src/types/identity.ts +113 -0
  157. package/src/types/index.ts +16 -0
  158. package/src/types/ledger.ts +78 -0
  159. package/src/types/marketplace.ts +166 -0
  160. package/src/types/messaging.ts +77 -0
  161. package/src/types/payments.ts +103 -0
  162. package/src/types/profile.ts +55 -0
  163. package/src/types/reputation.ts +98 -0
  164. package/src/types/search.ts +61 -0
  165. package/src/types/social.ts +186 -0
  166. package/src/websocket.ts +112 -0
  167. package/tests/signal.test.ts +353 -0
  168. package/tests/staging.test.ts +650 -0
  169. package/tsconfig.json +15 -0
  170. package/vitest.config.ts +7 -0
@@ -0,0 +1,129 @@
1
+ export type EscrowStatus = "funded" | "accepted" | "delivered" | "revision_requested" | "settled" | "cancelled" | "disputed" | "resolved" | "expired";
2
+ export type EscrowDisputeTier = "mediation" | "arbitration";
3
+ export type EscrowDisputeStatus = "open" | "proposed" | "accepted" | "escalated" | "resolved";
4
+ export type EscrowEvidenceType = "message" | "delivery" | "file" | "external_link" | "transaction";
5
+ export interface EscrowTerms {
6
+ description: string;
7
+ deliverables?: Array<string>;
8
+ deadline: string;
9
+ maxRevisions: number;
10
+ autoReleaseAfter?: string;
11
+ }
12
+ export interface EscrowMilestone {
13
+ milestoneId: string;
14
+ title: string;
15
+ amount: string;
16
+ deadline: string;
17
+ status: string;
18
+ revisionCount: number;
19
+ }
20
+ export interface EscrowDelivery {
21
+ deliveryId: string;
22
+ submittedBy: string;
23
+ description: string;
24
+ refs?: Array<string>;
25
+ submittedAt: string;
26
+ }
27
+ export interface EscrowExtension {
28
+ extensionId: string;
29
+ requestedBy: string;
30
+ reason?: string;
31
+ deadline: string;
32
+ status: string;
33
+ requestedAt: string;
34
+ approvedAt?: string;
35
+ }
36
+ export interface EscrowEvidence {
37
+ evidenceId: string;
38
+ disputeId: string;
39
+ submittedBy: string;
40
+ type: EscrowEvidenceType;
41
+ description: string;
42
+ ref?: string;
43
+ submittedAt: string;
44
+ }
45
+ export interface EscrowMediationProposal {
46
+ proposedAt: string;
47
+ resolution: string;
48
+ clientAmount?: string;
49
+ providerAmount?: string;
50
+ rationale?: string;
51
+ }
52
+ export interface EscrowCouncilVote {
53
+ agent: string;
54
+ vote: string;
55
+ clientPct?: number;
56
+ providerPct?: number;
57
+ round: number;
58
+ rationale?: string;
59
+ votedAt: string;
60
+ }
61
+ export interface EscrowArbitrationOutcome {
62
+ resolution: string;
63
+ clientPct?: number;
64
+ providerPct?: number;
65
+ round: number;
66
+ rationale?: string;
67
+ resolvedAt: string;
68
+ }
69
+ export interface EscrowDispute {
70
+ disputeId: string;
71
+ escrowId: string;
72
+ tier: EscrowDisputeTier;
73
+ openedBy: string;
74
+ reason: string;
75
+ evidence?: Array<EscrowEvidence>;
76
+ status: EscrowDisputeStatus;
77
+ proposal?: EscrowMediationProposal;
78
+ mediationAcceptedBy?: Array<string>;
79
+ arbitrationPaidBy?: Array<string>;
80
+ arbitrationRound?: number;
81
+ council?: Array<EscrowCouncilVote>;
82
+ arbitrationOutcome?: EscrowArbitrationOutcome;
83
+ openedAt: string;
84
+ escalatedAt?: string;
85
+ resolvedAt?: string;
86
+ }
87
+ export interface Escrow {
88
+ escrowId: string;
89
+ status: EscrowStatus;
90
+ client: string;
91
+ clientCryptoId?: string;
92
+ provider: string;
93
+ providerCryptoId?: string;
94
+ amount: string;
95
+ asset: string;
96
+ network: string;
97
+ terms: EscrowTerms;
98
+ milestones?: Array<EscrowMilestone>;
99
+ deliveries?: Array<EscrowDelivery>;
100
+ extensions?: Array<EscrowExtension>;
101
+ revisionCount: number;
102
+ dispute?: EscrowDispute;
103
+ createdAt: string;
104
+ fundedAt: string;
105
+ acceptedAt?: string;
106
+ deliveredAt?: string;
107
+ resolvedAt?: string;
108
+ cancelledAt?: string;
109
+ onChainTx?: string;
110
+ ledgerTxId?: string;
111
+ releaseLedgerTxId?: string;
112
+ }
113
+ export interface EscrowCreateRequest {
114
+ provider: string;
115
+ amount: string;
116
+ asset: string;
117
+ network: string;
118
+ terms: EscrowTerms;
119
+ milestones?: Array<Omit<EscrowMilestone, "milestoneId" | "status" | "revisionCount">>;
120
+ payment?: Record<string, string>;
121
+ signature?: string;
122
+ }
123
+ export interface EscrowQueryParams {
124
+ client?: string;
125
+ provider?: string;
126
+ status?: EscrowStatus;
127
+ limit?: number;
128
+ offset?: number;
129
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,137 @@
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 = "pending" | "promoted" | "answered" | "dismissed";
5
+ export type EventPollStatus = "open" | "closed";
6
+ export interface EventSchedule {
7
+ startAt: string;
8
+ endAt: string;
9
+ timezone: string;
10
+ }
11
+ export interface EventAgendaItem {
12
+ time: string;
13
+ title: string;
14
+ speaker?: string;
15
+ }
16
+ export interface EventTicketPrice {
17
+ amount: string;
18
+ asset: string;
19
+ network: string;
20
+ }
21
+ export interface EventTicketTier {
22
+ tier: string;
23
+ amount: string;
24
+ capacity?: number;
25
+ perks?: Array<string>;
26
+ }
27
+ export interface EventPaymentPolicy {
28
+ type: string;
29
+ ticket?: EventTicketPrice;
30
+ tiered?: Array<EventTicketTier>;
31
+ refund?: Record<string, string>;
32
+ meta?: Record<string, string>;
33
+ }
34
+ export interface Event {
35
+ eventId: string;
36
+ title: string;
37
+ description?: string;
38
+ type: string;
39
+ host: string;
40
+ hostCryptoId?: string;
41
+ speakers?: Array<string>;
42
+ moderators?: Array<string>;
43
+ mutedSpeakers?: Array<string>;
44
+ schedule: EventSchedule;
45
+ agenda?: Array<EventAgendaItem>;
46
+ currentAgendaIndex?: number;
47
+ capacity?: number;
48
+ attendeeCount: number;
49
+ status: EventStatus;
50
+ visibility: EventVisibility;
51
+ encryption: EventEncryption;
52
+ tags?: Array<string>;
53
+ recording: boolean;
54
+ recordingVisibility?: EventVisibility;
55
+ stagePaused: boolean;
56
+ paymentPolicy?: EventPaymentPolicy;
57
+ seriesId?: string;
58
+ createdAt: string;
59
+ updatedAt: string;
60
+ cancelledAt?: string;
61
+ endedAt?: string;
62
+ }
63
+ export interface EventQueryParams {
64
+ q?: string;
65
+ type?: string;
66
+ host?: string;
67
+ seriesId?: string;
68
+ status?: EventStatus;
69
+ visibility?: EventVisibility;
70
+ tag?: string;
71
+ from?: string;
72
+ to?: string;
73
+ limit?: number;
74
+ }
75
+ export interface EventAttendee {
76
+ eventId: string;
77
+ agentId: string;
78
+ tier?: string;
79
+ status: string;
80
+ joinedAt: string;
81
+ }
82
+ export interface EventStageMessage {
83
+ messageId: string;
84
+ eventId: string;
85
+ sender: string;
86
+ role: string;
87
+ timestamp: string;
88
+ contentType: string;
89
+ body: string;
90
+ pinned: boolean;
91
+ sequence: number;
92
+ }
93
+ export interface EventQuestion {
94
+ questionId: string;
95
+ eventId: string;
96
+ asker: string;
97
+ body: string;
98
+ submittedAt: string;
99
+ status: EventQuestionStatus;
100
+ upvotes: number;
101
+ }
102
+ export interface EventPoll {
103
+ pollId: string;
104
+ eventId: string;
105
+ question: string;
106
+ options: Array<string>;
107
+ createdBy: string;
108
+ status: EventPollStatus;
109
+ results: Record<string, number>;
110
+ totalVotes: number;
111
+ createdAt: string;
112
+ }
113
+ export interface EventRecording {
114
+ eventId: string;
115
+ title: string;
116
+ duration: string;
117
+ messages: Array<EventStageMessage>;
118
+ questions: Array<EventQuestion>;
119
+ polls: Array<EventPoll>;
120
+ attendeePeak: number;
121
+ }
122
+ export interface EventRecurrence {
123
+ frequency: string;
124
+ day?: string;
125
+ time: string;
126
+ timezone: string;
127
+ }
128
+ export interface EventSeries {
129
+ seriesId: string;
130
+ title: string;
131
+ host: string;
132
+ recurrence: EventRecurrence;
133
+ nextEventId?: string;
134
+ followers?: Array<string>;
135
+ createdAt: string;
136
+ updatedAt: string;
137
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,133 @@
1
+ import type { LedgerReference, LedgerStatus, LedgerType, LedgerVisibility } from "./ledger.js";
2
+ export interface ExplorerFeeSummary {
3
+ txId: string;
4
+ amount: string;
5
+ rate?: string;
6
+ }
7
+ export interface ExplorerFeeDetail {
8
+ txId: string;
9
+ amount: string;
10
+ amountFormatted: string;
11
+ rate?: string;
12
+ }
13
+ export interface ExplorerTransactionSummary {
14
+ txId: string;
15
+ visibility: LedgerVisibility;
16
+ type: LedgerType;
17
+ from?: string | null;
18
+ to?: string | null;
19
+ amount?: string | null;
20
+ asset?: string | null;
21
+ network: string;
22
+ timestamp: string;
23
+ onChainTx: string;
24
+ status: LedgerStatus;
25
+ fee?: ExplorerFeeSummary;
26
+ }
27
+ export interface ExplorerParty {
28
+ username?: string;
29
+ cryptoId?: string;
30
+ reputation: number;
31
+ }
32
+ export interface ExplorerRelatedTransaction {
33
+ txId: string;
34
+ type: LedgerType;
35
+ relationship: string;
36
+ }
37
+ export interface ExplorerTransactionDetail {
38
+ txId: string;
39
+ visibility: LedgerVisibility;
40
+ type: LedgerType;
41
+ from?: ExplorerParty | null;
42
+ to?: ExplorerParty | null;
43
+ amount?: string | null;
44
+ amountFormatted?: string | null;
45
+ asset?: string | null;
46
+ network: string;
47
+ timestamp: string;
48
+ onChainTx: string;
49
+ onChainVerified: boolean;
50
+ blockNumber?: number;
51
+ confirmations?: number;
52
+ status: LedgerStatus;
53
+ reference?: LedgerReference | null;
54
+ fee?: ExplorerFeeDetail;
55
+ relatedTransactions: Array<ExplorerRelatedTransaction>;
56
+ }
57
+ export interface ExplorerVerification {
58
+ txId: string;
59
+ onChainTx: string;
60
+ network: string;
61
+ verified: boolean;
62
+ blockNumber?: number;
63
+ blockTimestamp?: string;
64
+ confirmations?: number;
65
+ explorerUrl?: string;
66
+ error?: string;
67
+ }
68
+ export interface ExplorerVolumeCount {
69
+ count: number;
70
+ volumeUsd: string;
71
+ }
72
+ export interface ExplorerFeeCount {
73
+ count: number;
74
+ totalUsd: string;
75
+ }
76
+ export interface ExplorerCounterparty {
77
+ username: string;
78
+ transactionCount: number;
79
+ volumeUsd: string;
80
+ }
81
+ export interface ExplorerNetworkActivity {
82
+ count: number;
83
+ volumeUsd: string;
84
+ }
85
+ export interface ExplorerAgentSummary {
86
+ totalTransactions: number;
87
+ totalVolumeUsd: string;
88
+ sent: ExplorerVolumeCount;
89
+ received: ExplorerVolumeCount;
90
+ feesPaid: ExplorerFeeCount;
91
+ topCounterparties: Array<ExplorerCounterparty>;
92
+ byType: Record<string, number>;
93
+ byNetwork: Record<string, ExplorerNetworkActivity>;
94
+ }
95
+ export interface ExplorerAgentResponse {
96
+ agent: ExplorerParty;
97
+ summary: ExplorerAgentSummary;
98
+ recentTransactions: Array<ExplorerTransactionSummary>;
99
+ }
100
+ export interface ExplorerLedgerOverview {
101
+ totalEntries: number;
102
+ latestTxId?: string;
103
+ latestTimestamp?: string;
104
+ }
105
+ export interface ExplorerActivityWindow {
106
+ transactions: number;
107
+ volumeUsd: string;
108
+ feesUsd: string;
109
+ uniqueAgents: number;
110
+ }
111
+ export interface ExplorerAllTimeOverview {
112
+ volumeUsd: string;
113
+ feesUsd: string;
114
+ registeredAgents: number;
115
+ }
116
+ export interface ExplorerNetworkOverview {
117
+ transactions: number;
118
+ volumeUsd: string;
119
+ }
120
+ export interface ExplorerOverview {
121
+ timestamp: string;
122
+ ledger: ExplorerLedgerOverview;
123
+ last24h: ExplorerActivityWindow;
124
+ allTime: ExplorerAllTimeOverview;
125
+ byNetwork: Record<string, ExplorerNetworkOverview>;
126
+ recentTransactions: Array<ExplorerTransactionSummary>;
127
+ }
128
+ export interface ExplorerTransactionListResponse {
129
+ transactions: Array<ExplorerTransactionSummary>;
130
+ total: number;
131
+ page: number;
132
+ pageSize: number;
133
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,56 @@
1
+ export type GroupMembershipPolicy = "open" | "approval" | "invite-only";
2
+ export interface PaymentPrice {
3
+ amount: string;
4
+ asset: string;
5
+ network: string;
6
+ }
7
+ export interface PaymentPolicy {
8
+ joinFee?: PaymentPrice;
9
+ subscriptionPrice?: PaymentPrice;
10
+ subscriptionInterval?: string;
11
+ }
12
+ export interface GroupMetadata {
13
+ groupId: string;
14
+ name: string;
15
+ description?: string;
16
+ createdBy: string;
17
+ createdAt: string;
18
+ membershipPolicy: GroupMembershipPolicy;
19
+ membersPublic?: boolean;
20
+ membershipEpoch: number;
21
+ memberCount: number;
22
+ tags?: Array<string>;
23
+ paymentPolicy?: PaymentPolicy;
24
+ }
25
+ export interface GroupMember {
26
+ groupId: string;
27
+ agentId: string;
28
+ role: string;
29
+ status: string;
30
+ joinedAt: string;
31
+ updatedAt: string;
32
+ subscriptionInterval?: string;
33
+ subscriptionStatus?: string;
34
+ currentPeriodEnd?: string;
35
+ subscriptionGraceEnd?: string;
36
+ autoRenew?: boolean;
37
+ }
38
+ export interface GroupQueryParams {
39
+ q?: string;
40
+ tag?: string;
41
+ tags?: Array<string>;
42
+ membershipPolicy?: GroupMembershipPolicy;
43
+ hasPaymentPolicy?: boolean;
44
+ minMembers?: number;
45
+ maxMembers?: number;
46
+ limit?: number;
47
+ }
48
+ export interface GroupCreateRequest {
49
+ name: string;
50
+ description?: string;
51
+ membershipPolicy: GroupMembershipPolicy;
52
+ membersPublic?: boolean;
53
+ tags?: Array<string>;
54
+ paymentPolicy?: PaymentPolicy;
55
+ signature?: string;
56
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,94 @@
1
+ export type IdentityStatus = "active" | "expiring" | "auction" | "expired" | "released" | "deleted";
2
+ export interface PaymentMethod {
3
+ network: string;
4
+ address: string;
5
+ assets: Array<string>;
6
+ }
7
+ export interface IdentityMetadata {
8
+ avatar?: string;
9
+ links?: Array<string>;
10
+ tags?: Array<string>;
11
+ }
12
+ export interface Identity {
13
+ username: string;
14
+ bio: string;
15
+ cryptoId: string;
16
+ publicKey: string;
17
+ registeredAt: string;
18
+ expiresAt: string;
19
+ status: IdentityStatus;
20
+ registrationTx?: string;
21
+ paymentMethods?: Array<PaymentMethod>;
22
+ metadata?: IdentityMetadata;
23
+ subnames?: Array<Subname>;
24
+ signature?: string;
25
+ payment?: Record<string, string>;
26
+ lastRenewalTx?: string;
27
+ updatedAt: string;
28
+ }
29
+ export interface Subname {
30
+ subname: string;
31
+ target: string;
32
+ bio?: string;
33
+ createdAt: string;
34
+ }
35
+ export interface IdentityProfileUpdate {
36
+ bio?: string;
37
+ metadata?: IdentityMetadata;
38
+ signature?: string;
39
+ }
40
+ export interface RenewalRequest {
41
+ payment?: Record<string, string>;
42
+ signature?: string;
43
+ }
44
+ export interface IdentityClaimRequest {
45
+ cryptoId: string;
46
+ publicKey: string;
47
+ payment?: Record<string, string>;
48
+ signature?: string;
49
+ }
50
+ export interface SubnameCreateRequest {
51
+ subname: string;
52
+ target: string;
53
+ bio?: string;
54
+ createdAt?: string;
55
+ signature?: string;
56
+ }
57
+ export interface AvailabilityResponse {
58
+ available: boolean;
59
+ name: string;
60
+ identity?: Identity;
61
+ lifecycle?: IdentityLifecycle;
62
+ }
63
+ export interface IdentityExport {
64
+ identity: Identity;
65
+ ledgerTransactions: Array<import("./ledger.js").LedgerTransaction>;
66
+ exportedAt: string;
67
+ verification: Record<string, string>;
68
+ }
69
+ export interface IdentityLifecycle {
70
+ phase: string;
71
+ annualFee: string;
72
+ graceEndsAt?: string;
73
+ auctionStartsAt?: string;
74
+ auctionEndsAt?: string;
75
+ availableAt?: string;
76
+ currentPrice?: string;
77
+ }
78
+ export interface ProfileVisibility {
79
+ activity: boolean;
80
+ groups: boolean;
81
+ broadcasts: boolean;
82
+ attestations: boolean;
83
+ agentCard: boolean;
84
+ searchEngineIndexing: boolean;
85
+ }
86
+ export interface ProfileVisibilityUpdate {
87
+ activity?: boolean;
88
+ groups?: boolean;
89
+ broadcasts?: boolean;
90
+ attestations?: boolean;
91
+ agentCard?: boolean;
92
+ searchEngineIndexing?: boolean;
93
+ signature?: string;
94
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export * from "./identity.js";
2
+ export * from "./ledger.js";
3
+ export * from "./messaging.js";
4
+ export * from "./directory.js";
5
+ export * from "./payments.js";
6
+ export * from "./reputation.js";
7
+ export * from "./social.js";
8
+ export * from "./groups.js";
9
+ export * from "./marketplace.js";
10
+ export * from "./broadcasts.js";
11
+ export * from "./events.js";
12
+ export * from "./escrow.js";
13
+ export * from "./commerce.js";
14
+ export * from "./explorer.js";
15
+ export * from "./search.js";
16
+ export * from "./profile.js";
@@ -0,0 +1,16 @@
1
+ export * from "./identity.js";
2
+ export * from "./ledger.js";
3
+ export * from "./messaging.js";
4
+ export * from "./directory.js";
5
+ export * from "./payments.js";
6
+ export * from "./reputation.js";
7
+ export * from "./social.js";
8
+ export * from "./groups.js";
9
+ export * from "./marketplace.js";
10
+ export * from "./broadcasts.js";
11
+ export * from "./events.js";
12
+ export * from "./escrow.js";
13
+ export * from "./commerce.js";
14
+ export * from "./explorer.js";
15
+ export * from "./search.js";
16
+ export * from "./profile.js";
@@ -0,0 +1,57 @@
1
+ export type LedgerVisibility = "unshielded" | "shielded";
2
+ export type LedgerType = "REGISTRATION" | "RENEWAL" | "SALE" | "PAYMENT" | "SUBSCRIPTION" | "GROUP_FEE" | "EVENT_TICKET" | "EVENT_REFUND" | "REVENUE_SHARE" | "ESCROW_FUND" | "ESCROW_RELEASE" | "ESCROW_REFUND" | "ARBITRATION_FEE" | "FEE";
3
+ export type LedgerStatus = "PENDING" | "SETTLED" | "FAILED";
4
+ export interface LedgerReference {
5
+ kind: string;
6
+ id?: string;
7
+ parentTxId?: string;
8
+ rate?: string;
9
+ }
10
+ export interface LedgerTransaction {
11
+ txId: string;
12
+ visibility: LedgerVisibility;
13
+ type: LedgerType;
14
+ from?: string | null;
15
+ to?: string | null;
16
+ amount?: string | null;
17
+ asset?: string | null;
18
+ network: string;
19
+ timestamp: string;
20
+ reference?: LedgerReference | null;
21
+ onChainTx: string;
22
+ status: LedgerStatus;
23
+ metadata?: Record<string, string>;
24
+ }
25
+ export interface LedgerListParams {
26
+ limit?: number;
27
+ offset?: number;
28
+ agent?: string;
29
+ type?: LedgerType;
30
+ network?: string;
31
+ status?: LedgerStatus;
32
+ from?: string;
33
+ to?: string;
34
+ after?: string;
35
+ before?: string;
36
+ asset?: string;
37
+ visibility?: LedgerVisibility;
38
+ }
39
+ export interface LedgerVerifyRequest {
40
+ onChainTx: string;
41
+ network: string;
42
+ ledgerTxId?: string;
43
+ from?: string;
44
+ to?: string;
45
+ amount?: string;
46
+ asset?: string;
47
+ }
48
+ export interface LedgerVerifyResult {
49
+ verified: boolean;
50
+ network: string;
51
+ matchesLedger: boolean;
52
+ blockNumber?: number;
53
+ blockTimestamp?: string;
54
+ confirmations?: number;
55
+ ledgerTxId?: string;
56
+ error?: string;
57
+ }
@@ -0,0 +1 @@
1
+ export {};