@hashgraphonline/standards-sdk 0.1.187 → 0.1.189

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 (196) hide show
  1. package/dist/browser/services/registry-broker/client/agent-network.d.ts +1118 -0
  2. package/dist/browser/services/registry-broker/client/agent-network.d.ts.map +1 -0
  3. package/dist/browser/services/registry-broker/client/base-client.d.ts +4 -0
  4. package/dist/browser/services/registry-broker/client/base-client.d.ts.map +1 -1
  5. package/dist/browser/services/registry-broker/client.d.ts +1 -0
  6. package/dist/browser/services/registry-broker/client.d.ts.map +1 -1
  7. package/dist/browser/standards-sdk.browser.js +176 -0
  8. package/dist/browser/standards-sdk.browser.js.map +1 -1
  9. package/dist/browser-root/services/registry-broker/client/agent-network.d.ts +1118 -0
  10. package/dist/browser-root/services/registry-broker/client/agent-network.d.ts.map +1 -0
  11. package/dist/browser-root/services/registry-broker/client/base-client.d.ts +4 -0
  12. package/dist/browser-root/services/registry-broker/client/base-client.d.ts.map +1 -1
  13. package/dist/browser-root/services/registry-broker/client.d.ts +1 -0
  14. package/dist/browser-root/services/registry-broker/client.d.ts.map +1 -1
  15. package/dist/browser-root/standards-sdk.root-browser.js +471 -15
  16. package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
  17. package/dist/cjs/services/registry-broker/client/agent-network.d.ts +1118 -0
  18. package/dist/cjs/services/registry-broker/client/agent-network.d.ts.map +1 -0
  19. package/dist/cjs/services/registry-broker/client/base-client.d.ts +4 -0
  20. package/dist/cjs/services/registry-broker/client/base-client.d.ts.map +1 -1
  21. package/dist/cjs/services/registry-broker/client.d.ts +1 -0
  22. package/dist/cjs/services/registry-broker/client.d.ts.map +1 -1
  23. package/dist/cjs/standards-sdk.cjs +2 -2
  24. package/dist/cjs/standards-sdk.cjs.map +1 -1
  25. package/dist/es/services/registry-broker/client/agent-network.d.ts +1118 -0
  26. package/dist/es/services/registry-broker/client/agent-network.d.ts.map +1 -0
  27. package/dist/es/services/registry-broker/client/base-client.d.ts +4 -0
  28. package/dist/es/services/registry-broker/client/base-client.d.ts.map +1 -1
  29. package/dist/es/services/registry-broker/client.d.ts +1 -0
  30. package/dist/es/services/registry-broker/client.d.ts.map +1 -1
  31. package/dist/es/standards-sdk.es.js +54 -27
  32. package/dist/es/standards-sdk.es.js.map +1 -1
  33. package/dist/es/standards-sdk.es104.js +1 -1
  34. package/dist/es/standards-sdk.es106.js +1 -1
  35. package/dist/es/standards-sdk.es108.js +1 -1
  36. package/dist/es/standards-sdk.es11.js +1 -1
  37. package/dist/es/standards-sdk.es110.js +1 -1
  38. package/dist/es/standards-sdk.es116.js +2 -2
  39. package/dist/es/standards-sdk.es12.js +1 -1
  40. package/dist/es/standards-sdk.es120.js +4 -4
  41. package/dist/es/standards-sdk.es121.js +11 -11
  42. package/dist/es/standards-sdk.es126.js +1 -1
  43. package/dist/es/standards-sdk.es132.js +3 -2
  44. package/dist/es/standards-sdk.es132.js.map +1 -1
  45. package/dist/es/standards-sdk.es147.js +3 -3
  46. package/dist/es/standards-sdk.es148.js +1 -1
  47. package/dist/es/standards-sdk.es150.js +24 -15
  48. package/dist/es/standards-sdk.es150.js.map +1 -1
  49. package/dist/es/standards-sdk.es152.js +440 -248
  50. package/dist/es/standards-sdk.es152.js.map +1 -1
  51. package/dist/es/standards-sdk.es153.js +259 -4
  52. package/dist/es/standards-sdk.es153.js.map +1 -1
  53. package/dist/es/standards-sdk.es154.js +4 -81
  54. package/dist/es/standards-sdk.es154.js.map +1 -1
  55. package/dist/es/standards-sdk.es155.js +71 -77
  56. package/dist/es/standards-sdk.es155.js.map +1 -1
  57. package/dist/es/standards-sdk.es156.js +80 -53
  58. package/dist/es/standards-sdk.es156.js.map +1 -1
  59. package/dist/es/standards-sdk.es157.js +59 -2546
  60. package/dist/es/standards-sdk.es157.js.map +1 -1
  61. package/dist/es/standards-sdk.es158.js +2547 -159
  62. package/dist/es/standards-sdk.es158.js.map +1 -1
  63. package/dist/es/standards-sdk.es159.js +159 -7
  64. package/dist/es/standards-sdk.es159.js.map +1 -1
  65. package/dist/es/standards-sdk.es16.js +3 -2
  66. package/dist/es/standards-sdk.es16.js.map +1 -1
  67. package/dist/es/standards-sdk.es160.js +7 -86
  68. package/dist/es/standards-sdk.es160.js.map +1 -1
  69. package/dist/es/standards-sdk.es161.js +64 -43
  70. package/dist/es/standards-sdk.es161.js.map +1 -1
  71. package/dist/es/standards-sdk.es162.js +57 -186
  72. package/dist/es/standards-sdk.es162.js.map +1 -1
  73. package/dist/es/standards-sdk.es163.js +188 -20
  74. package/dist/es/standards-sdk.es163.js.map +1 -1
  75. package/dist/es/standards-sdk.es164.js +22 -54
  76. package/dist/es/standards-sdk.es164.js.map +1 -1
  77. package/dist/es/standards-sdk.es165.js +41 -78
  78. package/dist/es/standards-sdk.es165.js.map +1 -1
  79. package/dist/es/standards-sdk.es166.js +81 -35
  80. package/dist/es/standards-sdk.es166.js.map +1 -1
  81. package/dist/es/standards-sdk.es167.js +36 -191
  82. package/dist/es/standards-sdk.es167.js.map +1 -1
  83. package/dist/es/standards-sdk.es168.js +191 -43
  84. package/dist/es/standards-sdk.es168.js.map +1 -1
  85. package/dist/es/standards-sdk.es169.js +46 -39
  86. package/dist/es/standards-sdk.es169.js.map +1 -1
  87. package/dist/es/standards-sdk.es170.js +37 -44
  88. package/dist/es/standards-sdk.es170.js.map +1 -1
  89. package/dist/es/standards-sdk.es171.js +46 -39
  90. package/dist/es/standards-sdk.es171.js.map +1 -1
  91. package/dist/es/standards-sdk.es172.js +29 -102
  92. package/dist/es/standards-sdk.es172.js.map +1 -1
  93. package/dist/es/standards-sdk.es173.js +104 -36
  94. package/dist/es/standards-sdk.es173.js.map +1 -1
  95. package/dist/es/standards-sdk.es174.js +43 -33
  96. package/dist/es/standards-sdk.es174.js.map +1 -1
  97. package/dist/es/standards-sdk.es175.js +44 -72
  98. package/dist/es/standards-sdk.es175.js.map +1 -1
  99. package/dist/es/standards-sdk.es176.js +65 -61
  100. package/dist/es/standards-sdk.es176.js.map +1 -1
  101. package/dist/es/standards-sdk.es177.js +63 -39
  102. package/dist/es/standards-sdk.es177.js.map +1 -1
  103. package/dist/es/standards-sdk.es178.js +44 -36
  104. package/dist/es/standards-sdk.es178.js.map +1 -1
  105. package/dist/es/standards-sdk.es179.js +36 -30
  106. package/dist/es/standards-sdk.es179.js.map +1 -1
  107. package/dist/es/standards-sdk.es18.js +6 -5
  108. package/dist/es/standards-sdk.es18.js.map +1 -1
  109. package/dist/es/standards-sdk.es180.js +30 -34
  110. package/dist/es/standards-sdk.es180.js.map +1 -1
  111. package/dist/es/standards-sdk.es181.js +34 -48
  112. package/dist/es/standards-sdk.es181.js.map +1 -1
  113. package/dist/es/standards-sdk.es182.js +48 -138
  114. package/dist/es/standards-sdk.es182.js.map +1 -1
  115. package/dist/es/standards-sdk.es183.js +133 -37
  116. package/dist/es/standards-sdk.es183.js.map +1 -1
  117. package/dist/es/standards-sdk.es184.js +34 -12474
  118. package/dist/es/standards-sdk.es184.js.map +1 -1
  119. package/dist/es/standards-sdk.es185.js +12425 -615
  120. package/dist/es/standards-sdk.es185.js.map +1 -1
  121. package/dist/es/standards-sdk.es186.js +47 -102
  122. package/dist/es/standards-sdk.es186.js.map +1 -1
  123. package/dist/es/standards-sdk.es187.js +96 -58
  124. package/dist/es/standards-sdk.es187.js.map +1 -1
  125. package/dist/es/standards-sdk.es188.js +73 -48
  126. package/dist/es/standards-sdk.es188.js.map +1 -1
  127. package/dist/es/standards-sdk.es189.js +180 -61
  128. package/dist/es/standards-sdk.es189.js.map +1 -1
  129. package/dist/es/standards-sdk.es19.js +4 -3
  130. package/dist/es/standards-sdk.es19.js.map +1 -1
  131. package/dist/es/standards-sdk.es190.js +659 -187
  132. package/dist/es/standards-sdk.es190.js.map +1 -1
  133. package/dist/es/standards-sdk.es197.js +71 -15
  134. package/dist/es/standards-sdk.es197.js.map +1 -1
  135. package/dist/es/standards-sdk.es198.js +14 -136
  136. package/dist/es/standards-sdk.es198.js.map +1 -1
  137. package/dist/es/standards-sdk.es199.js +104 -482
  138. package/dist/es/standards-sdk.es199.js.map +1 -1
  139. package/dist/es/standards-sdk.es200.js +480 -222
  140. package/dist/es/standards-sdk.es200.js.map +1 -1
  141. package/dist/es/standards-sdk.es201.js +239 -176
  142. package/dist/es/standards-sdk.es201.js.map +1 -1
  143. package/dist/es/standards-sdk.es202.js +178 -101
  144. package/dist/es/standards-sdk.es202.js.map +1 -1
  145. package/dist/es/standards-sdk.es203.js +75 -108
  146. package/dist/es/standards-sdk.es203.js.map +1 -1
  147. package/dist/es/standards-sdk.es204.js +116 -148
  148. package/dist/es/standards-sdk.es204.js.map +1 -1
  149. package/dist/es/standards-sdk.es205.js +146 -646
  150. package/dist/es/standards-sdk.es205.js.map +1 -1
  151. package/dist/es/standards-sdk.es206.js +661 -162
  152. package/dist/es/standards-sdk.es206.js.map +1 -1
  153. package/dist/es/standards-sdk.es207.js +156 -206
  154. package/dist/es/standards-sdk.es207.js.map +1 -1
  155. package/dist/es/standards-sdk.es208.js +219 -223
  156. package/dist/es/standards-sdk.es208.js.map +1 -1
  157. package/dist/es/standards-sdk.es209.js +242 -0
  158. package/dist/es/standards-sdk.es209.js.map +1 -0
  159. package/dist/es/standards-sdk.es22.js +1 -1
  160. package/dist/es/standards-sdk.es27.js +6 -5
  161. package/dist/es/standards-sdk.es27.js.map +1 -1
  162. package/dist/es/standards-sdk.es30.js +1 -1
  163. package/dist/es/standards-sdk.es31.js +1 -1
  164. package/dist/es/standards-sdk.es35.js +4 -3
  165. package/dist/es/standards-sdk.es35.js.map +1 -1
  166. package/dist/es/standards-sdk.es36.js +3 -3
  167. package/dist/es/standards-sdk.es37.js +1 -1
  168. package/dist/es/standards-sdk.es4.js +1 -1
  169. package/dist/es/standards-sdk.es53.js +1 -1
  170. package/dist/es/standards-sdk.es56.js +1 -1
  171. package/dist/es/standards-sdk.es59.js +1 -1
  172. package/dist/es/standards-sdk.es60.js +1 -1
  173. package/dist/es/standards-sdk.es62.js +1 -1
  174. package/dist/es/standards-sdk.es63.js +2 -2
  175. package/dist/es/standards-sdk.es64.js +1 -1
  176. package/dist/es/standards-sdk.es65.js +1 -1
  177. package/dist/es/standards-sdk.es66.js +1 -1
  178. package/dist/es/standards-sdk.es67.js +4 -3
  179. package/dist/es/standards-sdk.es67.js.map +1 -1
  180. package/dist/es/standards-sdk.es69.js +1 -1
  181. package/dist/es/standards-sdk.es7.js +1 -1
  182. package/dist/es/standards-sdk.es71.js +1 -1
  183. package/dist/es/standards-sdk.es72.js +2 -2
  184. package/dist/es/standards-sdk.es75.js +3 -3
  185. package/dist/es/standards-sdk.es76.js +1 -1
  186. package/dist/es/standards-sdk.es78.js +1 -1
  187. package/dist/es/standards-sdk.es83.js +1 -1
  188. package/dist/es/standards-sdk.es84.js +3 -2
  189. package/dist/es/standards-sdk.es84.js.map +1 -1
  190. package/dist/es/standards-sdk.es85.js +1 -1
  191. package/dist/es/standards-sdk.es88.js +1 -1
  192. package/dist/es/standards-sdk.es90.js +1 -1
  193. package/dist/es/standards-sdk.es94.js +3 -3
  194. package/dist/es/standards-sdk.es98.js +1 -1
  195. package/dist/es/standards-sdk.es99.js +1 -1
  196. package/package.json +1 -1
@@ -0,0 +1,1118 @@
1
+ import { z } from 'zod';
2
+ import { RegistryBrokerClient } from './base-client';
3
+ export declare const agentNetworkProviderSchema: z.ZodEnum<["openclaw", "grok", "dot", "muse", "api", "other"]>;
4
+ export type AgentNetworkProvider = z.infer<typeof agentNetworkProviderSchema>;
5
+ export declare const agentConnectionStateSchema: z.ZodEnum<["unavailable", "pending_pairing", "interactive_verified", "polling_verified", "push_verified", "needs_reconnect", "paused", "degraded"]>;
6
+ export declare const agentRegistrationStateSchema: z.ZodEnum<["unregistered", "quote_issued", "pending", "registered", "failed"]>;
7
+ /**
8
+ * The registration *result* enum is distinct from the persisted lifecycle
9
+ * state — a register call resolves to one of these, including `linked` for
10
+ * owners attaching an existing UAID.
11
+ */
12
+ export declare const agentRegistrationResultStateSchema: z.ZodEnum<["registered", "pending", "linked", "unregistered"]>;
13
+ export declare const agentReceiveModeSchema: z.ZodEnum<["none", "poll", "push"]>;
14
+ export declare const agentRequestStateSchema: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
15
+ export type AgentRequestState = z.infer<typeof agentRequestStateSchema>;
16
+ export declare const agentDeliveryStateSchema: z.ZodEnum<["pending", "notifying", "provider_accepted", "acknowledged", "retry_scheduled", "permanently_failed"]>;
17
+ export type AgentDeliveryState = z.infer<typeof agentDeliveryStateSchema>;
18
+ export declare const agentMessageKindSchema: z.ZodEnum<["request", "response", "event"]>;
19
+ export type AgentMessageKind = z.infer<typeof agentMessageKindSchema>;
20
+ export declare const agentRuntimeViewSchema: z.ZodObject<{
21
+ runtimeId: z.ZodString;
22
+ uaid: z.ZodNullable<z.ZodString>;
23
+ ownerType: z.ZodString;
24
+ ownerId: z.ZodString;
25
+ declaredProvider: z.ZodEnum<["openclaw", "grok", "dot", "muse", "api", "other"]>;
26
+ connectionState: z.ZodEnum<["unavailable", "pending_pairing", "interactive_verified", "polling_verified", "push_verified", "needs_reconnect", "paused", "degraded"]>;
27
+ registrationState: z.ZodEnum<["unregistered", "quote_issued", "pending", "registered", "failed"]>;
28
+ registrationAttemptId: z.ZodNullable<z.ZodString>;
29
+ receiveMode: z.ZodEnum<["none", "poll", "push"]>;
30
+ gatewayUrl: z.ZodNullable<z.ZodString>;
31
+ paused: z.ZodBoolean;
32
+ allowedPeerUaids: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
33
+ capabilities: z.ZodArray<z.ZodString, "many">;
34
+ lastActivityAt: z.ZodNullable<z.ZodString>;
35
+ createdAt: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ capabilities?: string[];
38
+ uaid?: string;
39
+ createdAt?: string;
40
+ ownerType?: string;
41
+ ownerId?: string;
42
+ paused?: boolean;
43
+ runtimeId?: string;
44
+ declaredProvider?: "api" | "openclaw" | "grok" | "dot" | "muse" | "other";
45
+ connectionState?: "degraded" | "unavailable" | "pending_pairing" | "interactive_verified" | "polling_verified" | "push_verified" | "needs_reconnect" | "paused";
46
+ registrationState?: "failed" | "pending" | "registered" | "unregistered" | "quote_issued";
47
+ registrationAttemptId?: string;
48
+ receiveMode?: "push" | "poll" | "none";
49
+ gatewayUrl?: string;
50
+ allowedPeerUaids?: string[];
51
+ lastActivityAt?: string;
52
+ }, {
53
+ capabilities?: string[];
54
+ uaid?: string;
55
+ createdAt?: string;
56
+ ownerType?: string;
57
+ ownerId?: string;
58
+ paused?: boolean;
59
+ runtimeId?: string;
60
+ declaredProvider?: "api" | "openclaw" | "grok" | "dot" | "muse" | "other";
61
+ connectionState?: "degraded" | "unavailable" | "pending_pairing" | "interactive_verified" | "polling_verified" | "push_verified" | "needs_reconnect" | "paused";
62
+ registrationState?: "failed" | "pending" | "registered" | "unregistered" | "quote_issued";
63
+ registrationAttemptId?: string;
64
+ receiveMode?: "push" | "poll" | "none";
65
+ gatewayUrl?: string;
66
+ allowedPeerUaids?: string[];
67
+ lastActivityAt?: string;
68
+ }>;
69
+ export type AgentRuntimeView = z.infer<typeof agentRuntimeViewSchema>;
70
+ export declare const agentRuntimeQuoteSchema: z.ZodObject<{
71
+ quoteId: z.ZodString;
72
+ expiresAt: z.ZodString;
73
+ registrationFeeCredits: z.ZodNullable<z.ZodNumber>;
74
+ gatewayUrl: z.ZodString;
75
+ }, "strip", z.ZodTypeAny, {
76
+ expiresAt?: string;
77
+ quoteId?: string;
78
+ gatewayUrl?: string;
79
+ registrationFeeCredits?: number;
80
+ }, {
81
+ expiresAt?: string;
82
+ quoteId?: string;
83
+ gatewayUrl?: string;
84
+ registrationFeeCredits?: number;
85
+ }>;
86
+ export type AgentRuntimeQuote = z.infer<typeof agentRuntimeQuoteSchema>;
87
+ export declare const agentPairingStartSchema: z.ZodObject<{
88
+ grantId: z.ZodString;
89
+ pairingCode: z.ZodString;
90
+ expiresAt: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ expiresAt?: string;
93
+ grantId?: string;
94
+ pairingCode?: string;
95
+ }, {
96
+ expiresAt?: string;
97
+ grantId?: string;
98
+ pairingCode?: string;
99
+ }>;
100
+ export type AgentPairingStart = z.infer<typeof agentPairingStartSchema>;
101
+ export declare const agentPairingCompleteSchema: z.ZodObject<{
102
+ grantId: z.ZodString;
103
+ runtimeId: z.ZodString;
104
+ token: z.ZodString;
105
+ scopes: z.ZodArray<z.ZodString, "many">;
106
+ }, "strip", z.ZodTypeAny, {
107
+ token?: string;
108
+ runtimeId?: string;
109
+ grantId?: string;
110
+ scopes?: string[];
111
+ }, {
112
+ token?: string;
113
+ runtimeId?: string;
114
+ grantId?: string;
115
+ scopes?: string[];
116
+ }>;
117
+ export type AgentPairingComplete = z.infer<typeof agentPairingCompleteSchema>;
118
+ export declare const agentMessageViewSchema: z.ZodObject<{
119
+ messageId: z.ZodString;
120
+ conversationId: z.ZodString;
121
+ schemaVersion: z.ZodLiteral<"hol-agent-message/1">;
122
+ kind: z.ZodEnum<["request", "response", "event"]>;
123
+ senderUaid: z.ZodString;
124
+ recipientUaid: z.ZodString;
125
+ inReplyTo: z.ZodNullable<z.ZodString>;
126
+ content: z.ZodObject<{
127
+ type: z.ZodLiteral<"text">;
128
+ text: z.ZodString;
129
+ }, "strip", z.ZodTypeAny, {
130
+ text?: string;
131
+ type?: "text";
132
+ }, {
133
+ text?: string;
134
+ type?: "text";
135
+ }>;
136
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
137
+ createdAt: z.ZodString;
138
+ expiresAt: z.ZodString;
139
+ traceId: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ createdAt?: string;
142
+ expiresAt?: string;
143
+ messageId?: string;
144
+ content?: {
145
+ text?: string;
146
+ type?: "text";
147
+ };
148
+ kind?: "request" | "response" | "event";
149
+ senderUaid?: string;
150
+ traceId?: string;
151
+ schemaVersion?: "hol-agent-message/1";
152
+ conversationId?: string;
153
+ recipientUaid?: string;
154
+ inReplyTo?: string;
155
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
156
+ }, {
157
+ createdAt?: string;
158
+ expiresAt?: string;
159
+ messageId?: string;
160
+ content?: {
161
+ text?: string;
162
+ type?: "text";
163
+ };
164
+ kind?: "request" | "response" | "event";
165
+ senderUaid?: string;
166
+ traceId?: string;
167
+ schemaVersion?: "hol-agent-message/1";
168
+ conversationId?: string;
169
+ recipientUaid?: string;
170
+ inReplyTo?: string;
171
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
172
+ }>;
173
+ export type AgentMessageView = z.infer<typeof agentMessageViewSchema>;
174
+ export declare const agentMessageAcceptedSchema: z.ZodObject<{
175
+ messageId: z.ZodString;
176
+ conversationId: z.ZodString;
177
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
178
+ createdAt: z.ZodString;
179
+ expiresAt: z.ZodString;
180
+ deduplicated: z.ZodBoolean;
181
+ }, "strip", z.ZodTypeAny, {
182
+ createdAt?: string;
183
+ expiresAt?: string;
184
+ messageId?: string;
185
+ conversationId?: string;
186
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
187
+ deduplicated?: boolean;
188
+ }, {
189
+ createdAt?: string;
190
+ expiresAt?: string;
191
+ messageId?: string;
192
+ conversationId?: string;
193
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
194
+ deduplicated?: boolean;
195
+ }>;
196
+ export type AgentMessageAccepted = z.infer<typeof agentMessageAcceptedSchema>;
197
+ export declare const agentLeaseViewSchema: z.ZodObject<{
198
+ leaseId: z.ZodString;
199
+ messageId: z.ZodString;
200
+ fencingToken: z.ZodNumber;
201
+ expiresAt: z.ZodString;
202
+ }, "strip", z.ZodTypeAny, {
203
+ expiresAt?: string;
204
+ messageId?: string;
205
+ leaseId?: string;
206
+ fencingToken?: number;
207
+ }, {
208
+ expiresAt?: string;
209
+ messageId?: string;
210
+ leaseId?: string;
211
+ fencingToken?: number;
212
+ }>;
213
+ export type AgentLeaseView = z.infer<typeof agentLeaseViewSchema>;
214
+ export declare const agentClaimedMessageSchema: z.ZodObject<{
215
+ message: z.ZodObject<{
216
+ messageId: z.ZodString;
217
+ conversationId: z.ZodString;
218
+ schemaVersion: z.ZodLiteral<"hol-agent-message/1">;
219
+ kind: z.ZodEnum<["request", "response", "event"]>;
220
+ senderUaid: z.ZodString;
221
+ recipientUaid: z.ZodString;
222
+ inReplyTo: z.ZodNullable<z.ZodString>;
223
+ content: z.ZodObject<{
224
+ type: z.ZodLiteral<"text">;
225
+ text: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ text?: string;
228
+ type?: "text";
229
+ }, {
230
+ text?: string;
231
+ type?: "text";
232
+ }>;
233
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
234
+ createdAt: z.ZodString;
235
+ expiresAt: z.ZodString;
236
+ traceId: z.ZodString;
237
+ }, "strip", z.ZodTypeAny, {
238
+ createdAt?: string;
239
+ expiresAt?: string;
240
+ messageId?: string;
241
+ content?: {
242
+ text?: string;
243
+ type?: "text";
244
+ };
245
+ kind?: "request" | "response" | "event";
246
+ senderUaid?: string;
247
+ traceId?: string;
248
+ schemaVersion?: "hol-agent-message/1";
249
+ conversationId?: string;
250
+ recipientUaid?: string;
251
+ inReplyTo?: string;
252
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
253
+ }, {
254
+ createdAt?: string;
255
+ expiresAt?: string;
256
+ messageId?: string;
257
+ content?: {
258
+ text?: string;
259
+ type?: "text";
260
+ };
261
+ kind?: "request" | "response" | "event";
262
+ senderUaid?: string;
263
+ traceId?: string;
264
+ schemaVersion?: "hol-agent-message/1";
265
+ conversationId?: string;
266
+ recipientUaid?: string;
267
+ inReplyTo?: string;
268
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
269
+ }>;
270
+ lease: z.ZodObject<{
271
+ leaseId: z.ZodString;
272
+ messageId: z.ZodString;
273
+ fencingToken: z.ZodNumber;
274
+ expiresAt: z.ZodString;
275
+ }, "strip", z.ZodTypeAny, {
276
+ expiresAt?: string;
277
+ messageId?: string;
278
+ leaseId?: string;
279
+ fencingToken?: number;
280
+ }, {
281
+ expiresAt?: string;
282
+ messageId?: string;
283
+ leaseId?: string;
284
+ fencingToken?: number;
285
+ }>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ message?: {
288
+ createdAt?: string;
289
+ expiresAt?: string;
290
+ messageId?: string;
291
+ content?: {
292
+ text?: string;
293
+ type?: "text";
294
+ };
295
+ kind?: "request" | "response" | "event";
296
+ senderUaid?: string;
297
+ traceId?: string;
298
+ schemaVersion?: "hol-agent-message/1";
299
+ conversationId?: string;
300
+ recipientUaid?: string;
301
+ inReplyTo?: string;
302
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
303
+ };
304
+ lease?: {
305
+ expiresAt?: string;
306
+ messageId?: string;
307
+ leaseId?: string;
308
+ fencingToken?: number;
309
+ };
310
+ }, {
311
+ message?: {
312
+ createdAt?: string;
313
+ expiresAt?: string;
314
+ messageId?: string;
315
+ content?: {
316
+ text?: string;
317
+ type?: "text";
318
+ };
319
+ kind?: "request" | "response" | "event";
320
+ senderUaid?: string;
321
+ traceId?: string;
322
+ schemaVersion?: "hol-agent-message/1";
323
+ conversationId?: string;
324
+ recipientUaid?: string;
325
+ inReplyTo?: string;
326
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
327
+ };
328
+ lease?: {
329
+ expiresAt?: string;
330
+ messageId?: string;
331
+ leaseId?: string;
332
+ fencingToken?: number;
333
+ };
334
+ }>;
335
+ export type AgentClaimedMessage = z.infer<typeof agentClaimedMessageSchema>;
336
+ export declare const agentInboxItemSchema: z.ZodObject<{
337
+ messageId: z.ZodString;
338
+ conversationId: z.ZodString;
339
+ kind: z.ZodEnum<["request", "response", "event"]>;
340
+ senderUaid: z.ZodString;
341
+ content: z.ZodObject<{
342
+ type: z.ZodLiteral<"text">;
343
+ text: z.ZodString;
344
+ }, "strip", z.ZodTypeAny, {
345
+ text?: string;
346
+ type?: "text";
347
+ }, {
348
+ text?: string;
349
+ type?: "text";
350
+ }>;
351
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
352
+ deliveryState: z.ZodEnum<["pending", "notifying", "provider_accepted", "acknowledged", "retry_scheduled", "permanently_failed"]>;
353
+ acknowledged: z.ZodBoolean;
354
+ leaseId: z.ZodNullable<z.ZodString>;
355
+ fencingToken: z.ZodNullable<z.ZodNumber>;
356
+ createdAt: z.ZodString;
357
+ expiresAt: z.ZodString;
358
+ }, "strip", z.ZodTypeAny, {
359
+ createdAt?: string;
360
+ expiresAt?: string;
361
+ messageId?: string;
362
+ content?: {
363
+ text?: string;
364
+ type?: "text";
365
+ };
366
+ kind?: "request" | "response" | "event";
367
+ deliveryState?: "pending" | "notifying" | "provider_accepted" | "acknowledged" | "retry_scheduled" | "permanently_failed";
368
+ senderUaid?: string;
369
+ acknowledged?: boolean;
370
+ conversationId?: string;
371
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
372
+ leaseId?: string;
373
+ fencingToken?: number;
374
+ }, {
375
+ createdAt?: string;
376
+ expiresAt?: string;
377
+ messageId?: string;
378
+ content?: {
379
+ text?: string;
380
+ type?: "text";
381
+ };
382
+ kind?: "request" | "response" | "event";
383
+ deliveryState?: "pending" | "notifying" | "provider_accepted" | "acknowledged" | "retry_scheduled" | "permanently_failed";
384
+ senderUaid?: string;
385
+ acknowledged?: boolean;
386
+ conversationId?: string;
387
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
388
+ leaseId?: string;
389
+ fencingToken?: number;
390
+ }>;
391
+ export type AgentInboxItem = z.infer<typeof agentInboxItemSchema>;
392
+ export declare const agentInboxListSchema: z.ZodObject<{
393
+ items: z.ZodArray<z.ZodObject<{
394
+ messageId: z.ZodString;
395
+ conversationId: z.ZodString;
396
+ kind: z.ZodEnum<["request", "response", "event"]>;
397
+ senderUaid: z.ZodString;
398
+ content: z.ZodObject<{
399
+ type: z.ZodLiteral<"text">;
400
+ text: z.ZodString;
401
+ }, "strip", z.ZodTypeAny, {
402
+ text?: string;
403
+ type?: "text";
404
+ }, {
405
+ text?: string;
406
+ type?: "text";
407
+ }>;
408
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
409
+ deliveryState: z.ZodEnum<["pending", "notifying", "provider_accepted", "acknowledged", "retry_scheduled", "permanently_failed"]>;
410
+ acknowledged: z.ZodBoolean;
411
+ leaseId: z.ZodNullable<z.ZodString>;
412
+ fencingToken: z.ZodNullable<z.ZodNumber>;
413
+ createdAt: z.ZodString;
414
+ expiresAt: z.ZodString;
415
+ }, "strip", z.ZodTypeAny, {
416
+ createdAt?: string;
417
+ expiresAt?: string;
418
+ messageId?: string;
419
+ content?: {
420
+ text?: string;
421
+ type?: "text";
422
+ };
423
+ kind?: "request" | "response" | "event";
424
+ deliveryState?: "pending" | "notifying" | "provider_accepted" | "acknowledged" | "retry_scheduled" | "permanently_failed";
425
+ senderUaid?: string;
426
+ acknowledged?: boolean;
427
+ conversationId?: string;
428
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
429
+ leaseId?: string;
430
+ fencingToken?: number;
431
+ }, {
432
+ createdAt?: string;
433
+ expiresAt?: string;
434
+ messageId?: string;
435
+ content?: {
436
+ text?: string;
437
+ type?: "text";
438
+ };
439
+ kind?: "request" | "response" | "event";
440
+ deliveryState?: "pending" | "notifying" | "provider_accepted" | "acknowledged" | "retry_scheduled" | "permanently_failed";
441
+ senderUaid?: string;
442
+ acknowledged?: boolean;
443
+ conversationId?: string;
444
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
445
+ leaseId?: string;
446
+ fencingToken?: number;
447
+ }>, "many">;
448
+ nextCursor: z.ZodNullable<z.ZodString>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ items?: {
451
+ createdAt?: string;
452
+ expiresAt?: string;
453
+ messageId?: string;
454
+ content?: {
455
+ text?: string;
456
+ type?: "text";
457
+ };
458
+ kind?: "request" | "response" | "event";
459
+ deliveryState?: "pending" | "notifying" | "provider_accepted" | "acknowledged" | "retry_scheduled" | "permanently_failed";
460
+ senderUaid?: string;
461
+ acknowledged?: boolean;
462
+ conversationId?: string;
463
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
464
+ leaseId?: string;
465
+ fencingToken?: number;
466
+ }[];
467
+ nextCursor?: string;
468
+ }, {
469
+ items?: {
470
+ createdAt?: string;
471
+ expiresAt?: string;
472
+ messageId?: string;
473
+ content?: {
474
+ text?: string;
475
+ type?: "text";
476
+ };
477
+ kind?: "request" | "response" | "event";
478
+ deliveryState?: "pending" | "notifying" | "provider_accepted" | "acknowledged" | "retry_scheduled" | "permanently_failed";
479
+ senderUaid?: string;
480
+ acknowledged?: boolean;
481
+ conversationId?: string;
482
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
483
+ leaseId?: string;
484
+ fencingToken?: number;
485
+ }[];
486
+ nextCursor?: string;
487
+ }>;
488
+ export type AgentInboxList = z.infer<typeof agentInboxListSchema>;
489
+ export declare const agentConversationViewSchema: z.ZodObject<{
490
+ conversationId: z.ZodString;
491
+ state: z.ZodEnum<["active", "canceled", "expired"]>;
492
+ participants: z.ZodArray<z.ZodObject<{
493
+ uaid: z.ZodString;
494
+ }, "strip", z.ZodTypeAny, {
495
+ uaid?: string;
496
+ }, {
497
+ uaid?: string;
498
+ }>, "many">;
499
+ messages: z.ZodArray<z.ZodObject<{
500
+ messageId: z.ZodString;
501
+ conversationId: z.ZodString;
502
+ schemaVersion: z.ZodLiteral<"hol-agent-message/1">;
503
+ kind: z.ZodEnum<["request", "response", "event"]>;
504
+ senderUaid: z.ZodString;
505
+ recipientUaid: z.ZodString;
506
+ inReplyTo: z.ZodNullable<z.ZodString>;
507
+ content: z.ZodObject<{
508
+ type: z.ZodLiteral<"text">;
509
+ text: z.ZodString;
510
+ }, "strip", z.ZodTypeAny, {
511
+ text?: string;
512
+ type?: "text";
513
+ }, {
514
+ text?: string;
515
+ type?: "text";
516
+ }>;
517
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
518
+ createdAt: z.ZodString;
519
+ expiresAt: z.ZodString;
520
+ traceId: z.ZodString;
521
+ }, "strip", z.ZodTypeAny, {
522
+ createdAt?: string;
523
+ expiresAt?: string;
524
+ messageId?: string;
525
+ content?: {
526
+ text?: string;
527
+ type?: "text";
528
+ };
529
+ kind?: "request" | "response" | "event";
530
+ senderUaid?: string;
531
+ traceId?: string;
532
+ schemaVersion?: "hol-agent-message/1";
533
+ conversationId?: string;
534
+ recipientUaid?: string;
535
+ inReplyTo?: string;
536
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
537
+ }, {
538
+ createdAt?: string;
539
+ expiresAt?: string;
540
+ messageId?: string;
541
+ content?: {
542
+ text?: string;
543
+ type?: "text";
544
+ };
545
+ kind?: "request" | "response" | "event";
546
+ senderUaid?: string;
547
+ traceId?: string;
548
+ schemaVersion?: "hol-agent-message/1";
549
+ conversationId?: string;
550
+ recipientUaid?: string;
551
+ inReplyTo?: string;
552
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
553
+ }>, "many">;
554
+ nextCursor: z.ZodNullable<z.ZodString>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ state?: "expired" | "canceled" | "active";
557
+ nextCursor?: string;
558
+ conversationId?: string;
559
+ participants?: {
560
+ uaid?: string;
561
+ }[];
562
+ messages?: {
563
+ createdAt?: string;
564
+ expiresAt?: string;
565
+ messageId?: string;
566
+ content?: {
567
+ text?: string;
568
+ type?: "text";
569
+ };
570
+ kind?: "request" | "response" | "event";
571
+ senderUaid?: string;
572
+ traceId?: string;
573
+ schemaVersion?: "hol-agent-message/1";
574
+ conversationId?: string;
575
+ recipientUaid?: string;
576
+ inReplyTo?: string;
577
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
578
+ }[];
579
+ }, {
580
+ state?: "expired" | "canceled" | "active";
581
+ nextCursor?: string;
582
+ conversationId?: string;
583
+ participants?: {
584
+ uaid?: string;
585
+ }[];
586
+ messages?: {
587
+ createdAt?: string;
588
+ expiresAt?: string;
589
+ messageId?: string;
590
+ content?: {
591
+ text?: string;
592
+ type?: "text";
593
+ };
594
+ kind?: "request" | "response" | "event";
595
+ senderUaid?: string;
596
+ traceId?: string;
597
+ schemaVersion?: "hol-agent-message/1";
598
+ conversationId?: string;
599
+ recipientUaid?: string;
600
+ inReplyTo?: string;
601
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
602
+ }[];
603
+ }>;
604
+ export type AgentConversationView = z.infer<typeof agentConversationViewSchema>;
605
+ export declare const agentReplyResultSchema: z.ZodObject<{
606
+ request: z.ZodObject<{
607
+ messageId: z.ZodString;
608
+ conversationId: z.ZodString;
609
+ schemaVersion: z.ZodLiteral<"hol-agent-message/1">;
610
+ kind: z.ZodEnum<["request", "response", "event"]>;
611
+ senderUaid: z.ZodString;
612
+ recipientUaid: z.ZodString;
613
+ inReplyTo: z.ZodNullable<z.ZodString>;
614
+ content: z.ZodObject<{
615
+ type: z.ZodLiteral<"text">;
616
+ text: z.ZodString;
617
+ }, "strip", z.ZodTypeAny, {
618
+ text?: string;
619
+ type?: "text";
620
+ }, {
621
+ text?: string;
622
+ type?: "text";
623
+ }>;
624
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
625
+ createdAt: z.ZodString;
626
+ expiresAt: z.ZodString;
627
+ traceId: z.ZodString;
628
+ }, "strip", z.ZodTypeAny, {
629
+ createdAt?: string;
630
+ expiresAt?: string;
631
+ messageId?: string;
632
+ content?: {
633
+ text?: string;
634
+ type?: "text";
635
+ };
636
+ kind?: "request" | "response" | "event";
637
+ senderUaid?: string;
638
+ traceId?: string;
639
+ schemaVersion?: "hol-agent-message/1";
640
+ conversationId?: string;
641
+ recipientUaid?: string;
642
+ inReplyTo?: string;
643
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
644
+ }, {
645
+ createdAt?: string;
646
+ expiresAt?: string;
647
+ messageId?: string;
648
+ content?: {
649
+ text?: string;
650
+ type?: "text";
651
+ };
652
+ kind?: "request" | "response" | "event";
653
+ senderUaid?: string;
654
+ traceId?: string;
655
+ schemaVersion?: "hol-agent-message/1";
656
+ conversationId?: string;
657
+ recipientUaid?: string;
658
+ inReplyTo?: string;
659
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
660
+ }>;
661
+ response: z.ZodObject<{
662
+ messageId: z.ZodString;
663
+ conversationId: z.ZodString;
664
+ schemaVersion: z.ZodLiteral<"hol-agent-message/1">;
665
+ kind: z.ZodEnum<["request", "response", "event"]>;
666
+ senderUaid: z.ZodString;
667
+ recipientUaid: z.ZodString;
668
+ inReplyTo: z.ZodNullable<z.ZodString>;
669
+ content: z.ZodObject<{
670
+ type: z.ZodLiteral<"text">;
671
+ text: z.ZodString;
672
+ }, "strip", z.ZodTypeAny, {
673
+ text?: string;
674
+ type?: "text";
675
+ }, {
676
+ text?: string;
677
+ type?: "text";
678
+ }>;
679
+ requestState: z.ZodEnum<["accepted", "awaiting_consent", "queued", "processing", "completed", "rejected", "failed", "expired", "canceled"]>;
680
+ createdAt: z.ZodString;
681
+ expiresAt: z.ZodString;
682
+ traceId: z.ZodString;
683
+ }, "strip", z.ZodTypeAny, {
684
+ createdAt?: string;
685
+ expiresAt?: string;
686
+ messageId?: string;
687
+ content?: {
688
+ text?: string;
689
+ type?: "text";
690
+ };
691
+ kind?: "request" | "response" | "event";
692
+ senderUaid?: string;
693
+ traceId?: string;
694
+ schemaVersion?: "hol-agent-message/1";
695
+ conversationId?: string;
696
+ recipientUaid?: string;
697
+ inReplyTo?: string;
698
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
699
+ }, {
700
+ createdAt?: string;
701
+ expiresAt?: string;
702
+ messageId?: string;
703
+ content?: {
704
+ text?: string;
705
+ type?: "text";
706
+ };
707
+ kind?: "request" | "response" | "event";
708
+ senderUaid?: string;
709
+ traceId?: string;
710
+ schemaVersion?: "hol-agent-message/1";
711
+ conversationId?: string;
712
+ recipientUaid?: string;
713
+ inReplyTo?: string;
714
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
715
+ }>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ request?: {
718
+ createdAt?: string;
719
+ expiresAt?: string;
720
+ messageId?: string;
721
+ content?: {
722
+ text?: string;
723
+ type?: "text";
724
+ };
725
+ kind?: "request" | "response" | "event";
726
+ senderUaid?: string;
727
+ traceId?: string;
728
+ schemaVersion?: "hol-agent-message/1";
729
+ conversationId?: string;
730
+ recipientUaid?: string;
731
+ inReplyTo?: string;
732
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
733
+ };
734
+ response?: {
735
+ createdAt?: string;
736
+ expiresAt?: string;
737
+ messageId?: string;
738
+ content?: {
739
+ text?: string;
740
+ type?: "text";
741
+ };
742
+ kind?: "request" | "response" | "event";
743
+ senderUaid?: string;
744
+ traceId?: string;
745
+ schemaVersion?: "hol-agent-message/1";
746
+ conversationId?: string;
747
+ recipientUaid?: string;
748
+ inReplyTo?: string;
749
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
750
+ };
751
+ }, {
752
+ request?: {
753
+ createdAt?: string;
754
+ expiresAt?: string;
755
+ messageId?: string;
756
+ content?: {
757
+ text?: string;
758
+ type?: "text";
759
+ };
760
+ kind?: "request" | "response" | "event";
761
+ senderUaid?: string;
762
+ traceId?: string;
763
+ schemaVersion?: "hol-agent-message/1";
764
+ conversationId?: string;
765
+ recipientUaid?: string;
766
+ inReplyTo?: string;
767
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
768
+ };
769
+ response?: {
770
+ createdAt?: string;
771
+ expiresAt?: string;
772
+ messageId?: string;
773
+ content?: {
774
+ text?: string;
775
+ type?: "text";
776
+ };
777
+ kind?: "request" | "response" | "event";
778
+ senderUaid?: string;
779
+ traceId?: string;
780
+ schemaVersion?: "hol-agent-message/1";
781
+ conversationId?: string;
782
+ recipientUaid?: string;
783
+ inReplyTo?: string;
784
+ requestState?: "failed" | "completed" | "queued" | "rejected" | "expired" | "accepted" | "awaiting_consent" | "processing" | "canceled";
785
+ };
786
+ }>;
787
+ export type AgentReplyResult = z.infer<typeof agentReplyResultSchema>;
788
+ export declare const agentRuntimeRegistrationResultSchema: z.ZodObject<{
789
+ runtime: z.ZodObject<{
790
+ runtimeId: z.ZodString;
791
+ uaid: z.ZodNullable<z.ZodString>;
792
+ ownerType: z.ZodString;
793
+ ownerId: z.ZodString;
794
+ declaredProvider: z.ZodEnum<["openclaw", "grok", "dot", "muse", "api", "other"]>;
795
+ connectionState: z.ZodEnum<["unavailable", "pending_pairing", "interactive_verified", "polling_verified", "push_verified", "needs_reconnect", "paused", "degraded"]>;
796
+ registrationState: z.ZodEnum<["unregistered", "quote_issued", "pending", "registered", "failed"]>;
797
+ registrationAttemptId: z.ZodNullable<z.ZodString>;
798
+ receiveMode: z.ZodEnum<["none", "poll", "push"]>;
799
+ gatewayUrl: z.ZodNullable<z.ZodString>;
800
+ paused: z.ZodBoolean;
801
+ allowedPeerUaids: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
802
+ capabilities: z.ZodArray<z.ZodString, "many">;
803
+ lastActivityAt: z.ZodNullable<z.ZodString>;
804
+ createdAt: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ capabilities?: string[];
807
+ uaid?: string;
808
+ createdAt?: string;
809
+ ownerType?: string;
810
+ ownerId?: string;
811
+ paused?: boolean;
812
+ runtimeId?: string;
813
+ declaredProvider?: "api" | "openclaw" | "grok" | "dot" | "muse" | "other";
814
+ connectionState?: "degraded" | "unavailable" | "pending_pairing" | "interactive_verified" | "polling_verified" | "push_verified" | "needs_reconnect" | "paused";
815
+ registrationState?: "failed" | "pending" | "registered" | "unregistered" | "quote_issued";
816
+ registrationAttemptId?: string;
817
+ receiveMode?: "push" | "poll" | "none";
818
+ gatewayUrl?: string;
819
+ allowedPeerUaids?: string[];
820
+ lastActivityAt?: string;
821
+ }, {
822
+ capabilities?: string[];
823
+ uaid?: string;
824
+ createdAt?: string;
825
+ ownerType?: string;
826
+ ownerId?: string;
827
+ paused?: boolean;
828
+ runtimeId?: string;
829
+ declaredProvider?: "api" | "openclaw" | "grok" | "dot" | "muse" | "other";
830
+ connectionState?: "degraded" | "unavailable" | "pending_pairing" | "interactive_verified" | "polling_verified" | "push_verified" | "needs_reconnect" | "paused";
831
+ registrationState?: "failed" | "pending" | "registered" | "unregistered" | "quote_issued";
832
+ registrationAttemptId?: string;
833
+ receiveMode?: "push" | "poll" | "none";
834
+ gatewayUrl?: string;
835
+ allowedPeerUaids?: string[];
836
+ lastActivityAt?: string;
837
+ }>;
838
+ registration: z.ZodEnum<["registered", "pending", "linked", "unregistered"]>;
839
+ }, "strip", z.ZodTypeAny, {
840
+ runtime?: {
841
+ capabilities?: string[];
842
+ uaid?: string;
843
+ createdAt?: string;
844
+ ownerType?: string;
845
+ ownerId?: string;
846
+ paused?: boolean;
847
+ runtimeId?: string;
848
+ declaredProvider?: "api" | "openclaw" | "grok" | "dot" | "muse" | "other";
849
+ connectionState?: "degraded" | "unavailable" | "pending_pairing" | "interactive_verified" | "polling_verified" | "push_verified" | "needs_reconnect" | "paused";
850
+ registrationState?: "failed" | "pending" | "registered" | "unregistered" | "quote_issued";
851
+ registrationAttemptId?: string;
852
+ receiveMode?: "push" | "poll" | "none";
853
+ gatewayUrl?: string;
854
+ allowedPeerUaids?: string[];
855
+ lastActivityAt?: string;
856
+ };
857
+ registration?: "pending" | "registered" | "unregistered" | "linked";
858
+ }, {
859
+ runtime?: {
860
+ capabilities?: string[];
861
+ uaid?: string;
862
+ createdAt?: string;
863
+ ownerType?: string;
864
+ ownerId?: string;
865
+ paused?: boolean;
866
+ runtimeId?: string;
867
+ declaredProvider?: "api" | "openclaw" | "grok" | "dot" | "muse" | "other";
868
+ connectionState?: "degraded" | "unavailable" | "pending_pairing" | "interactive_verified" | "polling_verified" | "push_verified" | "needs_reconnect" | "paused";
869
+ registrationState?: "failed" | "pending" | "registered" | "unregistered" | "quote_issued";
870
+ registrationAttemptId?: string;
871
+ receiveMode?: "push" | "poll" | "none";
872
+ gatewayUrl?: string;
873
+ allowedPeerUaids?: string[];
874
+ lastActivityAt?: string;
875
+ };
876
+ registration?: "pending" | "registered" | "unregistered" | "linked";
877
+ }>;
878
+ export type AgentRuntimeRegistrationResult = z.infer<typeof agentRuntimeRegistrationResultSchema>;
879
+ export declare const agentProbeResultSchema: z.ZodObject<{
880
+ nonce: z.ZodString;
881
+ issuedAt: z.ZodString;
882
+ }, "strip", z.ZodTypeAny, {
883
+ nonce?: string;
884
+ issuedAt?: string;
885
+ }, {
886
+ nonce?: string;
887
+ issuedAt?: string;
888
+ }>;
889
+ export declare const agentSubscriptionEventTypeSchema: z.ZodEnum<["notify_request", "notify_event", "notify_response"]>;
890
+ export type AgentSubscriptionEventType = z.infer<typeof agentSubscriptionEventTypeSchema>;
891
+ export declare const agentSubscriptionViewSchema: z.ZodObject<{
892
+ subscriptionId: z.ZodString;
893
+ runtimeId: z.ZodString;
894
+ eventType: z.ZodEnum<["notify_request", "notify_event", "notify_response"]>;
895
+ callbackUrl: z.ZodNullable<z.ZodString>;
896
+ state: z.ZodString;
897
+ expiresAt: z.ZodNullable<z.ZodString>;
898
+ createdAt: z.ZodString;
899
+ }, "strip", z.ZodTypeAny, {
900
+ state?: string;
901
+ createdAt?: string;
902
+ expiresAt?: string;
903
+ runtimeId?: string;
904
+ subscriptionId?: string;
905
+ eventType?: "notify_request" | "notify_event" | "notify_response";
906
+ callbackUrl?: string;
907
+ }, {
908
+ state?: string;
909
+ createdAt?: string;
910
+ expiresAt?: string;
911
+ runtimeId?: string;
912
+ subscriptionId?: string;
913
+ eventType?: "notify_request" | "notify_event" | "notify_response";
914
+ callbackUrl?: string;
915
+ }>;
916
+ export type AgentSubscriptionView = z.infer<typeof agentSubscriptionViewSchema>;
917
+ export declare const agentSubscriptionListSchema: z.ZodObject<{
918
+ subscriptions: z.ZodArray<z.ZodObject<{
919
+ subscriptionId: z.ZodString;
920
+ runtimeId: z.ZodString;
921
+ eventType: z.ZodEnum<["notify_request", "notify_event", "notify_response"]>;
922
+ callbackUrl: z.ZodNullable<z.ZodString>;
923
+ state: z.ZodString;
924
+ expiresAt: z.ZodNullable<z.ZodString>;
925
+ createdAt: z.ZodString;
926
+ }, "strip", z.ZodTypeAny, {
927
+ state?: string;
928
+ createdAt?: string;
929
+ expiresAt?: string;
930
+ runtimeId?: string;
931
+ subscriptionId?: string;
932
+ eventType?: "notify_request" | "notify_event" | "notify_response";
933
+ callbackUrl?: string;
934
+ }, {
935
+ state?: string;
936
+ createdAt?: string;
937
+ expiresAt?: string;
938
+ runtimeId?: string;
939
+ subscriptionId?: string;
940
+ eventType?: "notify_request" | "notify_event" | "notify_response";
941
+ callbackUrl?: string;
942
+ }>, "many">;
943
+ }, "strip", z.ZodTypeAny, {
944
+ subscriptions?: {
945
+ state?: string;
946
+ createdAt?: string;
947
+ expiresAt?: string;
948
+ runtimeId?: string;
949
+ subscriptionId?: string;
950
+ eventType?: "notify_request" | "notify_event" | "notify_response";
951
+ callbackUrl?: string;
952
+ }[];
953
+ }, {
954
+ subscriptions?: {
955
+ state?: string;
956
+ createdAt?: string;
957
+ expiresAt?: string;
958
+ runtimeId?: string;
959
+ subscriptionId?: string;
960
+ eventType?: "notify_request" | "notify_event" | "notify_response";
961
+ callbackUrl?: string;
962
+ }[];
963
+ }>;
964
+ export declare const agentSubscriptionCreatedSchema: z.ZodObject<{
965
+ subscription: z.ZodObject<{
966
+ subscriptionId: z.ZodString;
967
+ runtimeId: z.ZodString;
968
+ eventType: z.ZodEnum<["notify_request", "notify_event", "notify_response"]>;
969
+ callbackUrl: z.ZodNullable<z.ZodString>;
970
+ state: z.ZodString;
971
+ expiresAt: z.ZodNullable<z.ZodString>;
972
+ createdAt: z.ZodString;
973
+ }, "strip", z.ZodTypeAny, {
974
+ state?: string;
975
+ createdAt?: string;
976
+ expiresAt?: string;
977
+ runtimeId?: string;
978
+ subscriptionId?: string;
979
+ eventType?: "notify_request" | "notify_event" | "notify_response";
980
+ callbackUrl?: string;
981
+ }, {
982
+ state?: string;
983
+ createdAt?: string;
984
+ expiresAt?: string;
985
+ runtimeId?: string;
986
+ subscriptionId?: string;
987
+ eventType?: "notify_request" | "notify_event" | "notify_response";
988
+ callbackUrl?: string;
989
+ }>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ subscription?: {
992
+ state?: string;
993
+ createdAt?: string;
994
+ expiresAt?: string;
995
+ runtimeId?: string;
996
+ subscriptionId?: string;
997
+ eventType?: "notify_request" | "notify_event" | "notify_response";
998
+ callbackUrl?: string;
999
+ };
1000
+ }, {
1001
+ subscription?: {
1002
+ state?: string;
1003
+ createdAt?: string;
1004
+ expiresAt?: string;
1005
+ runtimeId?: string;
1006
+ subscriptionId?: string;
1007
+ eventType?: "notify_request" | "notify_event" | "notify_response";
1008
+ callbackUrl?: string;
1009
+ };
1010
+ }>;
1011
+ export interface RegisterAgentRuntimeInput {
1012
+ displayName: string;
1013
+ declaredProvider: AgentNetworkProvider;
1014
+ description?: string;
1015
+ capabilities?: string[];
1016
+ linkExistingUaid?: string;
1017
+ preferredReceiveMode?: 'poll' | 'push';
1018
+ }
1019
+ export interface UpdateAgentRuntimePolicyInput {
1020
+ paused?: boolean;
1021
+ allowedPeerUaids?: string[];
1022
+ maxOutboundPerMinute?: number;
1023
+ maxPendingMessages?: number;
1024
+ receiveMode?: 'poll' | 'push';
1025
+ }
1026
+ export interface SendAgentMessageInput {
1027
+ recipientUaid: string;
1028
+ conversationId?: string;
1029
+ kind: 'request' | 'event';
1030
+ content: {
1031
+ type: 'text';
1032
+ text: string;
1033
+ };
1034
+ expiresInSeconds?: number;
1035
+ /** Caller-generated dedupe key — passed through unchanged. */
1036
+ idempotencyKey: string;
1037
+ }
1038
+ export interface AgentLeaseRef {
1039
+ leaseId: string;
1040
+ fencingToken: number;
1041
+ }
1042
+ export interface ReplyToAgentMessageInput extends AgentLeaseRef {
1043
+ content: {
1044
+ type: 'text';
1045
+ text: string;
1046
+ };
1047
+ idempotencyKey: string;
1048
+ outcome?: 'answered' | 'partial' | 'refused';
1049
+ }
1050
+ export interface AgentInboxQuery {
1051
+ cursor?: string;
1052
+ limit?: number;
1053
+ includeAcknowledged?: boolean;
1054
+ }
1055
+ export interface CreateAgentSubscriptionInput {
1056
+ eventType?: AgentSubscriptionEventType;
1057
+ /** Public HTTPS webhook target — validated for safety server-side. */
1058
+ callbackUrl: string;
1059
+ signingSecret?: string;
1060
+ expiresAt?: string;
1061
+ }
1062
+ export interface WaitForAgentReplyOptions {
1063
+ /** Absolute bound — never resends the request. Default 60s. */
1064
+ timeoutMs?: number;
1065
+ pollIntervalMs?: number;
1066
+ signal?: AbortSignal;
1067
+ }
1068
+ export interface RegistryBrokerAgentNetworkApi {
1069
+ quoteRuntime(): Promise<AgentRuntimeQuote>;
1070
+ registerRuntime(input: RegisterAgentRuntimeInput): Promise<AgentRuntimeRegistrationResult>;
1071
+ listRuntimes(): Promise<AgentRuntimeView[]>;
1072
+ updateRuntimePolicy(runtimeId: string, input: UpdateAgentRuntimePolicyInput): Promise<AgentRuntimeView>;
1073
+ probeRuntime(runtimeId: string): Promise<{
1074
+ nonce: string;
1075
+ issuedAt: string;
1076
+ }>;
1077
+ startAgentConnection(runtimeId: string): Promise<AgentPairingStart>;
1078
+ completeAgentPairing(pairingCode: string): Promise<AgentPairingComplete>;
1079
+ revokeAgentConnection(grantId: string): Promise<void>;
1080
+ /** Owner-scoped inbox read — no bot grant token required. */
1081
+ listRuntimeInbox(runtimeId: string, query?: AgentInboxQuery): Promise<AgentInboxList>;
1082
+ /** Owner-scoped conversation read scoped to an owned runtime. */
1083
+ getRuntimeConversation(runtimeId: string, conversationId: string, query?: {
1084
+ cursor?: string;
1085
+ limit?: number;
1086
+ }): Promise<AgentConversationView>;
1087
+ createAgentSubscription(runtimeId: string, input: CreateAgentSubscriptionInput): Promise<AgentSubscriptionView>;
1088
+ listAgentSubscriptions(runtimeId: string): Promise<AgentSubscriptionView[]>;
1089
+ revokeAgentSubscription(runtimeId: string, subscriptionId: string): Promise<void>;
1090
+ agentMe(token: string): Promise<AgentRuntimeView>;
1091
+ sendAgentMessage(token: string, input: SendAgentMessageInput): Promise<AgentMessageAccepted>;
1092
+ getAgentMessage(token: string, messageId: string): Promise<AgentMessageView>;
1093
+ getAgentConversation(token: string, conversationId: string, query?: {
1094
+ cursor?: string;
1095
+ limit?: number;
1096
+ }): Promise<AgentConversationView>;
1097
+ listAgentInbox(token: string, query?: AgentInboxQuery): Promise<AgentInboxList>;
1098
+ claimAgentMessage(token: string): Promise<AgentClaimedMessage | null>;
1099
+ acknowledgeAgentMessage(token: string, messageId: string, lease: AgentLeaseRef): Promise<AgentMessageView>;
1100
+ renewAgentMessageLease(token: string, messageId: string, lease: AgentLeaseRef & {
1101
+ extendSeconds?: number;
1102
+ }): Promise<AgentLeaseView>;
1103
+ replyToAgentMessage(token: string, messageId: string, input: ReplyToAgentMessageInput): Promise<AgentReplyResult>;
1104
+ rejectAgentMessage(token: string, messageId: string, lease: AgentLeaseRef & {
1105
+ reason?: string;
1106
+ }): Promise<AgentMessageView>;
1107
+ cancelAgentConversation(token: string, conversationId: string): Promise<{
1108
+ conversationId: string;
1109
+ canceledMessages: number;
1110
+ }>;
1111
+ /**
1112
+ * Bounded wait for a reply — polls status without resending. Returns the
1113
+ * response message when the request completes, null on timeout.
1114
+ */
1115
+ waitForAgentReply(token: string, messageId: string, options?: WaitForAgentReplyOptions): Promise<AgentMessageView | null>;
1116
+ }
1117
+ export declare function createAgentNetworkApi(client: RegistryBrokerClient): RegistryBrokerAgentNetworkApi;
1118
+ //# sourceMappingURL=agent-network.d.ts.map