@bsv/message-box-client 1.4.0 → 1.4.2

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.
@@ -75,7 +75,47 @@ export interface ListPermissionsParams {
75
75
  */
76
76
  export interface GetQuoteParams {
77
77
  /** Recipient identity key */
78
- recipient: string
78
+ recipient: string | string[]
79
79
  /** MessageBox type */
80
80
  messageBox: string
81
81
  }
82
+ export interface SendListParams {
83
+ recipients: PubKeyHex[]
84
+ messageBox: string
85
+ body: string | object
86
+ skipEncryption?: boolean
87
+ }
88
+
89
+ export interface SendListResult {
90
+ status: 'success' | 'partial' | 'error'
91
+ description: string
92
+ sent: Array<{ recipient: PubKeyHex, messageId: string }>
93
+ blocked: PubKeyHex[]
94
+ failed: Array<{ recipient: PubKeyHex, error: string }>
95
+ totals?: {
96
+ deliveryFees: number
97
+ recipientFees: number
98
+ totalForPayableRecipients: number
99
+ }
100
+ }
101
+ export interface MessageBoxMultiQuote {
102
+ quotesByRecipient: Array<{
103
+ recipient: PubKeyHex
104
+ messageBox: string
105
+ deliveryFee: number
106
+ recipientFee: number
107
+ status: 'blocked' | 'always_allow' | 'payment_required'
108
+ }>
109
+ totals?: {
110
+ deliveryFees: number
111
+ recipientFees: number
112
+ totalForPayableRecipients: number
113
+ }
114
+ blockedRecipients: PubKeyHex[]
115
+ /**
116
+ * When multiple overlays are involved, each host returns its own
117
+ * delivery agent identity key. This map preserves them.
118
+ * If all recipients resolve to one host, you’ll just have one entry.
119
+ */
120
+ deliveryAgentIdentityKeyByHost: Record<string, string>
121
+ }