@hashgraphonline/standards-sdk 0.1.188 → 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.
- package/dist/browser/services/registry-broker/client/agent-network.d.ts +210 -66
- package/dist/browser/services/registry-broker/client/agent-network.d.ts.map +1 -1
- package/dist/browser/services/registry-broker/client.d.ts +1 -1
- package/dist/browser/services/registry-broker/client.d.ts.map +1 -1
- package/dist/browser/standards-sdk.browser.js +37 -10
- package/dist/browser/standards-sdk.browser.js.map +1 -1
- package/dist/browser-root/services/registry-broker/client/agent-network.d.ts +210 -66
- package/dist/browser-root/services/registry-broker/client/agent-network.d.ts.map +1 -1
- package/dist/browser-root/services/registry-broker/client.d.ts +1 -1
- package/dist/browser-root/services/registry-broker/client.d.ts.map +1 -1
- package/dist/browser-root/standards-sdk.root-browser.js +78 -11
- package/dist/browser-root/standards-sdk.root-browser.js.map +1 -1
- package/dist/cjs/services/registry-broker/client/agent-network.d.ts +210 -66
- package/dist/cjs/services/registry-broker/client/agent-network.d.ts.map +1 -1
- package/dist/cjs/services/registry-broker/client.d.ts +1 -1
- package/dist/cjs/services/registry-broker/client.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +1 -1
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/es/services/registry-broker/client/agent-network.d.ts +210 -66
- package/dist/es/services/registry-broker/client/agent-network.d.ts.map +1 -1
- package/dist/es/services/registry-broker/client.d.ts +1 -1
- package/dist/es/services/registry-broker/client.d.ts.map +1 -1
- package/dist/es/standards-sdk.es.js +5 -1
- package/dist/es/standards-sdk.es126.js +1 -1
- package/dist/es/standards-sdk.es133.js +5 -5
- package/dist/es/standards-sdk.es143.js +1 -1
- package/dist/es/standards-sdk.es144.js +1 -1
- package/dist/es/standards-sdk.es145.js +5 -5
- package/dist/es/standards-sdk.es147.js +1 -1
- package/dist/es/standards-sdk.es150.js +1 -1
- package/dist/es/standards-sdk.es152.js +79 -11
- package/dist/es/standards-sdk.es152.js.map +1 -1
- package/dist/es/standards-sdk.es190.js +670 -15
- package/dist/es/standards-sdk.es190.js.map +1 -1
- package/dist/es/standards-sdk.es191.js +158 -658
- package/dist/es/standards-sdk.es191.js.map +1 -1
- package/dist/es/standards-sdk.es192.js +289 -139
- package/dist/es/standards-sdk.es192.js.map +1 -1
- package/dist/es/standards-sdk.es193.js +298 -274
- package/dist/es/standards-sdk.es193.js.map +1 -1
- package/dist/es/standards-sdk.es194.js +369 -262
- package/dist/es/standards-sdk.es194.js.map +1 -1
- package/dist/es/standards-sdk.es195.js +194 -316
- package/dist/es/standards-sdk.es195.js.map +1 -1
- package/dist/es/standards-sdk.es196.js +64 -319
- package/dist/es/standards-sdk.es196.js.map +1 -1
- package/dist/es/standards-sdk.es197.js +63 -66
- package/dist/es/standards-sdk.es197.js.map +1 -1
- package/dist/es/standards-sdk.es198.js +15 -71
- package/dist/es/standards-sdk.es198.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +1 -1
- package/dist/es/standards-sdk.es72.js +1 -1
- package/package.json +1 -1
|
@@ -8552,29 +8552,36 @@ class RegistryBrokerParseError extends Error {
|
|
|
8552
8552
|
}
|
|
8553
8553
|
const agentNetworkProviderSchema = enumType([
|
|
8554
8554
|
"openclaw",
|
|
8555
|
-
"dot",
|
|
8556
8555
|
"grok",
|
|
8556
|
+
"dot",
|
|
8557
8557
|
"muse",
|
|
8558
|
-
"
|
|
8558
|
+
"api",
|
|
8559
|
+
"other"
|
|
8559
8560
|
]);
|
|
8560
8561
|
const agentConnectionStateSchema = enumType([
|
|
8561
8562
|
"unavailable",
|
|
8562
8563
|
"pending_pairing",
|
|
8563
8564
|
"interactive_verified",
|
|
8564
|
-
"
|
|
8565
|
-
"
|
|
8565
|
+
"polling_verified",
|
|
8566
|
+
"push_verified",
|
|
8567
|
+
"needs_reconnect",
|
|
8566
8568
|
"paused",
|
|
8567
|
-
"
|
|
8568
|
-
"needs_reconnect"
|
|
8569
|
+
"degraded"
|
|
8569
8570
|
]);
|
|
8570
8571
|
const agentRegistrationStateSchema = enumType([
|
|
8571
8572
|
"unregistered",
|
|
8573
|
+
"quote_issued",
|
|
8572
8574
|
"pending",
|
|
8573
8575
|
"registered",
|
|
8574
|
-
"linked",
|
|
8575
8576
|
"failed"
|
|
8576
8577
|
]);
|
|
8577
|
-
const
|
|
8578
|
+
const agentRegistrationResultStateSchema = enumType([
|
|
8579
|
+
"registered",
|
|
8580
|
+
"pending",
|
|
8581
|
+
"linked",
|
|
8582
|
+
"unregistered"
|
|
8583
|
+
]);
|
|
8584
|
+
const agentReceiveModeSchema = enumType(["none", "poll", "push"]);
|
|
8578
8585
|
const agentRequestStateSchema = enumType([
|
|
8579
8586
|
"accepted",
|
|
8580
8587
|
"awaiting_consent",
|
|
@@ -8633,7 +8640,7 @@ const agentPairingCompleteSchema = objectType({
|
|
|
8633
8640
|
const agentMessageViewSchema = objectType({
|
|
8634
8641
|
messageId: stringType().uuid(),
|
|
8635
8642
|
conversationId: stringType().uuid(),
|
|
8636
|
-
schemaVersion:
|
|
8643
|
+
schemaVersion: literalType("hol-agent-message/1"),
|
|
8637
8644
|
kind: agentMessageKindSchema,
|
|
8638
8645
|
senderUaid: stringType(),
|
|
8639
8646
|
recipientUaid: stringType(),
|
|
@@ -8693,12 +8700,32 @@ const agentReplyResultSchema = objectType({
|
|
|
8693
8700
|
});
|
|
8694
8701
|
const agentRuntimeRegistrationResultSchema = objectType({
|
|
8695
8702
|
runtime: agentRuntimeViewSchema,
|
|
8696
|
-
registration:
|
|
8703
|
+
registration: agentRegistrationResultStateSchema
|
|
8697
8704
|
});
|
|
8698
8705
|
const agentProbeResultSchema = objectType({
|
|
8699
8706
|
nonce: stringType(),
|
|
8700
8707
|
issuedAt: isoDate
|
|
8701
8708
|
});
|
|
8709
|
+
const agentSubscriptionEventTypeSchema = enumType([
|
|
8710
|
+
"notify_request",
|
|
8711
|
+
"notify_event",
|
|
8712
|
+
"notify_response"
|
|
8713
|
+
]);
|
|
8714
|
+
const agentSubscriptionViewSchema = objectType({
|
|
8715
|
+
subscriptionId: stringType().uuid(),
|
|
8716
|
+
runtimeId: stringType().uuid(),
|
|
8717
|
+
eventType: agentSubscriptionEventTypeSchema,
|
|
8718
|
+
callbackUrl: stringType().nullable(),
|
|
8719
|
+
state: stringType(),
|
|
8720
|
+
expiresAt: isoDate.nullable(),
|
|
8721
|
+
createdAt: isoDate
|
|
8722
|
+
});
|
|
8723
|
+
const agentSubscriptionListSchema = objectType({
|
|
8724
|
+
subscriptions: arrayType(agentSubscriptionViewSchema)
|
|
8725
|
+
});
|
|
8726
|
+
const agentSubscriptionCreatedSchema = objectType({
|
|
8727
|
+
subscription: agentSubscriptionViewSchema
|
|
8728
|
+
});
|
|
8702
8729
|
const sleep = (ms, signal) => new Promise((resolve, reject) => {
|
|
8703
8730
|
const t = setTimeout(resolve, ms);
|
|
8704
8731
|
signal?.addEventListener(
|
|
@@ -8717,7 +8744,9 @@ const encodePath = (value) => encodeURIComponent(value);
|
|
|
8717
8744
|
const qs = (params) => {
|
|
8718
8745
|
const query = new URLSearchParams();
|
|
8719
8746
|
for (const [k, v] of Object.entries(params)) {
|
|
8720
|
-
if (v !== void 0)
|
|
8747
|
+
if (v !== void 0) {
|
|
8748
|
+
query.set(k, String(v));
|
|
8749
|
+
}
|
|
8721
8750
|
}
|
|
8722
8751
|
const s = query.toString();
|
|
8723
8752
|
return s ? `?${s}` : "";
|
|
@@ -8788,6 +8817,40 @@ function createAgentNetworkApi(client) {
|
|
|
8788
8817
|
method: "DELETE"
|
|
8789
8818
|
});
|
|
8790
8819
|
},
|
|
8820
|
+
listRuntimeInbox: (runtimeId, query) => json(
|
|
8821
|
+
`/agent-runtimes/${encodePath(runtimeId)}/inbox${qs({
|
|
8822
|
+
cursor: query?.cursor,
|
|
8823
|
+
limit: query?.limit,
|
|
8824
|
+
includeAcknowledged: query?.includeAcknowledged
|
|
8825
|
+
})}`,
|
|
8826
|
+
agentInboxListSchema,
|
|
8827
|
+
{}
|
|
8828
|
+
),
|
|
8829
|
+
getRuntimeConversation: (runtimeId, conversationId, query) => json(
|
|
8830
|
+
`/agent-runtimes/${encodePath(runtimeId)}/conversations/${encodePath(
|
|
8831
|
+
conversationId
|
|
8832
|
+
)}${qs({ cursor: query?.cursor, limit: query?.limit })}`,
|
|
8833
|
+
agentConversationViewSchema,
|
|
8834
|
+
{}
|
|
8835
|
+
),
|
|
8836
|
+
createAgentSubscription: async (runtimeId, input) => (await json(
|
|
8837
|
+
`/agent-runtimes/${encodePath(runtimeId)}/subscriptions`,
|
|
8838
|
+
agentSubscriptionCreatedSchema,
|
|
8839
|
+
{ method: "POST", body: input }
|
|
8840
|
+
)).subscription,
|
|
8841
|
+
listAgentSubscriptions: async (runtimeId) => (await json(
|
|
8842
|
+
`/agent-runtimes/${encodePath(runtimeId)}/subscriptions`,
|
|
8843
|
+
agentSubscriptionListSchema,
|
|
8844
|
+
{}
|
|
8845
|
+
)).subscriptions,
|
|
8846
|
+
revokeAgentSubscription: async (runtimeId, subscriptionId) => {
|
|
8847
|
+
await client.request(
|
|
8848
|
+
`/agent-runtimes/${encodePath(runtimeId)}/subscriptions/${encodePath(
|
|
8849
|
+
subscriptionId
|
|
8850
|
+
)}`,
|
|
8851
|
+
{ method: "DELETE" }
|
|
8852
|
+
);
|
|
8853
|
+
},
|
|
8791
8854
|
agentMe: async (token) => {
|
|
8792
8855
|
const raw = await client.requestJson(
|
|
8793
8856
|
"/agent-runtimes/me",
|
|
@@ -44225,12 +44288,16 @@ export {
|
|
|
44225
44288
|
agentPairingStartSchema,
|
|
44226
44289
|
agentProbeResultSchema,
|
|
44227
44290
|
agentReceiveModeSchema,
|
|
44291
|
+
agentRegistrationResultStateSchema,
|
|
44228
44292
|
agentRegistrationStateSchema,
|
|
44229
44293
|
agentReplyResultSchema,
|
|
44230
44294
|
agentRequestStateSchema,
|
|
44231
44295
|
agentRuntimeQuoteSchema,
|
|
44232
44296
|
agentRuntimeRegistrationResultSchema,
|
|
44233
44297
|
agentRuntimeViewSchema,
|
|
44298
|
+
agentSubscriptionEventTypeSchema,
|
|
44299
|
+
agentSubscriptionListSchema,
|
|
44300
|
+
agentSubscriptionViewSchema,
|
|
44234
44301
|
buildJobStatusMessage,
|
|
44235
44302
|
buildPaymentApproveMessage,
|
|
44236
44303
|
buildPaymentDeclineMessage,
|