@agentic-trust/agentic-trust-sdk 1.0.43
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/LICENSE +22 -0
- package/README.md +213 -0
- package/abis/BaseRegistrarImplementation.json +1013 -0
- package/abis/ETHRegistrarController.json +1004 -0
- package/abis/IdentityRegistry.json +1044 -0
- package/abis/NameWrapper.json +2026 -0
- package/abis/PublicResolver.json +1772 -0
- package/abis/ReputationRegistry.json +701 -0
- package/abis/ValidationRegistry.json +505 -0
- package/dist/AIAgentAssociationClient.d.ts +58 -0
- package/dist/AIAgentAssociationClient.d.ts.map +1 -0
- package/dist/AIAgentAssociationClient.js +100 -0
- package/dist/AIAgentAssociationClient.js.map +1 -0
- package/dist/AIAgentDiscoveryClient.d.ts +673 -0
- package/dist/AIAgentDiscoveryClient.d.ts.map +1 -0
- package/dist/AIAgentDiscoveryClient.js +3184 -0
- package/dist/AIAgentDiscoveryClient.js.map +1 -0
- package/dist/AIAgentENSClient.d.ts +149 -0
- package/dist/AIAgentENSClient.d.ts.map +1 -0
- package/dist/AIAgentENSClient.js +958 -0
- package/dist/AIAgentENSClient.js.map +1 -0
- package/dist/AIAgentIdentityClient.d.ts +159 -0
- package/dist/AIAgentIdentityClient.d.ts.map +1 -0
- package/dist/AIAgentIdentityClient.js +660 -0
- package/dist/AIAgentIdentityClient.js.map +1 -0
- package/dist/AIAgentL2ENSDurenClient.d.ts +120 -0
- package/dist/AIAgentL2ENSDurenClient.d.ts.map +1 -0
- package/dist/AIAgentL2ENSDurenClient.js +735 -0
- package/dist/AIAgentL2ENSDurenClient.js.map +1 -0
- package/dist/AIAgentL2ENSNamespaceClient.d.ts +58 -0
- package/dist/AIAgentL2ENSNamespaceClient.d.ts.map +1 -0
- package/dist/AIAgentL2ENSNamespaceClient.js +214 -0
- package/dist/AIAgentL2ENSNamespaceClient.js.map +1 -0
- package/dist/AIAgentReputationClient.d.ts +69 -0
- package/dist/AIAgentReputationClient.d.ts.map +1 -0
- package/dist/AIAgentReputationClient.js +203 -0
- package/dist/AIAgentReputationClient.js.map +1 -0
- package/dist/AIAgentValidationClient.d.ts +60 -0
- package/dist/AIAgentValidationClient.d.ts.map +1 -0
- package/dist/AIAgentValidationClient.js +123 -0
- package/dist/AIAgentValidationClient.js.map +1 -0
- package/dist/OrgIdentityClient.d.ts +27 -0
- package/dist/OrgIdentityClient.d.ts.map +1 -0
- package/dist/OrgIdentityClient.js +169 -0
- package/dist/OrgIdentityClient.js.map +1 -0
- package/dist/abis/BaseRegistrarImplementation.json +1013 -0
- package/dist/abis/ETHRegistrarController.json +1004 -0
- package/dist/abis/IdentityRegistry.json +1044 -0
- package/dist/abis/NameWrapper.json +2026 -0
- package/dist/abis/PublicResolver.json +1772 -0
- package/dist/abis/ReputationRegistry.json +701 -0
- package/dist/abis/ValidationRegistry.json +505 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/schema.d.ts +13 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +696 -0
- package/dist/schema.js.map +1 -0
- package/dist/schemaKb.d.ts +12 -0
- package/dist/schemaKb.d.ts.map +1 -0
- package/dist/schemaKb.js +593 -0
- package/dist/schemaKb.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/did8004.d.ts +57 -0
- package/dist/utils/did8004.d.ts.map +1 -0
- package/dist/utils/did8004.js +127 -0
- package/dist/utils/did8004.js.map +1 -0
- package/dist/utils/didEns.d.ts +46 -0
- package/dist/utils/didEns.d.ts.map +1 -0
- package/dist/utils/didEns.js +107 -0
- package/dist/utils/didEns.js.map +1 -0
- package/dist/utils/didEthr.d.ts +40 -0
- package/dist/utils/didEthr.d.ts.map +1 -0
- package/dist/utils/didEthr.js +87 -0
- package/dist/utils/didEthr.js.map +1 -0
- package/package.json +79 -0
package/dist/schema.js
ADDED
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared GraphQL schema for both local (Express) and Cloudflare Workers implementations.
|
|
3
|
+
*
|
|
4
|
+
* This schema corresponds to the non-KB discovery GraphQL endpoint (e.g. `/graphql`),
|
|
5
|
+
* not the GraphDB knowledge-base endpoint (`/graphql-kb`). For KB schema, see `schemaKb.ts`.
|
|
6
|
+
*/
|
|
7
|
+
import { buildSchema } from 'graphql';
|
|
8
|
+
export const graphQLSchemaString = `
|
|
9
|
+
type OasfSkill {
|
|
10
|
+
key: String!
|
|
11
|
+
nameKey: String
|
|
12
|
+
uid: Int
|
|
13
|
+
caption: String
|
|
14
|
+
extendsKey: String
|
|
15
|
+
category: String
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type OasfDomain {
|
|
19
|
+
key: String!
|
|
20
|
+
nameKey: String
|
|
21
|
+
uid: Int
|
|
22
|
+
caption: String
|
|
23
|
+
extendsKey: String
|
|
24
|
+
category: String
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type IntentType {
|
|
28
|
+
key: String!
|
|
29
|
+
label: String
|
|
30
|
+
description: String
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
type TaskType {
|
|
34
|
+
key: String!
|
|
35
|
+
label: String
|
|
36
|
+
description: String
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
type IntentTaskMapping {
|
|
40
|
+
intent: IntentType!
|
|
41
|
+
task: TaskType!
|
|
42
|
+
requiredSkills: [String!]!
|
|
43
|
+
optionalSkills: [String!]!
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type Agent {
|
|
47
|
+
chainId: Int!
|
|
48
|
+
|
|
49
|
+
agentId: String!
|
|
50
|
+
agentName: String!
|
|
51
|
+
|
|
52
|
+
didIdentity: String!
|
|
53
|
+
didAccount: String!
|
|
54
|
+
didName: String
|
|
55
|
+
|
|
56
|
+
# Agent's configured account (signing/execution), stored as "{chainId}:{0x...}"
|
|
57
|
+
agentAccount: String!
|
|
58
|
+
|
|
59
|
+
# ERC-721 NFT owner account (identity owner), stored as "{chainId}:{0x...}"
|
|
60
|
+
agentIdentityOwnerAccount: String!
|
|
61
|
+
eoaAgentIdentityOwnerAccount: String
|
|
62
|
+
|
|
63
|
+
eoaAgentAccount: String
|
|
64
|
+
# Account typing for operational + identity owner accounts ("eoa" | "aa")
|
|
65
|
+
agentAccountType: String
|
|
66
|
+
agentIdentityOwnerAccountType: String
|
|
67
|
+
agentCategory: String
|
|
68
|
+
agentUri: String
|
|
69
|
+
createdAtBlock: Int!
|
|
70
|
+
createdAtTime: Int!
|
|
71
|
+
type: String
|
|
72
|
+
description: String
|
|
73
|
+
image: String
|
|
74
|
+
a2aEndpoint: String
|
|
75
|
+
supportedTrust: String
|
|
76
|
+
rawJson: String
|
|
77
|
+
agentCardJson: String
|
|
78
|
+
agentCardReadAt: Int
|
|
79
|
+
updatedAtTime: Int
|
|
80
|
+
did: String
|
|
81
|
+
mcp: Boolean
|
|
82
|
+
x402support: Boolean
|
|
83
|
+
active: Boolean
|
|
84
|
+
feedbackCount: Int
|
|
85
|
+
feedbackAverageScore: Float
|
|
86
|
+
validationPendingCount: Int
|
|
87
|
+
validationCompletedCount: Int
|
|
88
|
+
validationRequestedCount: Int
|
|
89
|
+
initiatedAssociationCount: Int
|
|
90
|
+
approvedAssociationCount: Int
|
|
91
|
+
atiOverallScore: Int
|
|
92
|
+
atiOverallConfidence: Float
|
|
93
|
+
atiVersion: String
|
|
94
|
+
atiComputedAt: Int
|
|
95
|
+
atiBundleJson: String
|
|
96
|
+
trustLedgerScore: Int
|
|
97
|
+
trustLedgerBadgeCount: Int
|
|
98
|
+
trustLedgerOverallRank: Int
|
|
99
|
+
trustLedgerCapabilityRank: Int
|
|
100
|
+
metadata: [AgentMetadata!]!
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
type TrustReason {
|
|
104
|
+
code: String!
|
|
105
|
+
weight: Float
|
|
106
|
+
detail: String
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
type TrustScore {
|
|
110
|
+
interfaceId: String!
|
|
111
|
+
score: Float!
|
|
112
|
+
reputationScore: Float!
|
|
113
|
+
overlapScore: Float!
|
|
114
|
+
clientMembershipCount: Int!
|
|
115
|
+
agentMembershipCount: Int!
|
|
116
|
+
sharedMembershipCount: Int!
|
|
117
|
+
sharedMembershipKeys: [String!]!
|
|
118
|
+
reasons: [TrustReason!]!
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
type AgentTrustComponent {
|
|
122
|
+
component: String!
|
|
123
|
+
score: Float!
|
|
124
|
+
weight: Float!
|
|
125
|
+
evidenceCountsJson: String
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
type AgentTrustIndex {
|
|
129
|
+
chainId: Int!
|
|
130
|
+
agentId: String!
|
|
131
|
+
overallScore: Int!
|
|
132
|
+
overallConfidence: Float
|
|
133
|
+
version: String!
|
|
134
|
+
computedAt: Int!
|
|
135
|
+
bundleJson: String
|
|
136
|
+
components: [AgentTrustComponent!]!
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
type TrustLedgerBadgeDefinition {
|
|
140
|
+
badgeId: String!
|
|
141
|
+
program: String!
|
|
142
|
+
name: String!
|
|
143
|
+
description: String
|
|
144
|
+
iconRef: String
|
|
145
|
+
points: Int!
|
|
146
|
+
ruleId: String!
|
|
147
|
+
ruleJson: String
|
|
148
|
+
active: Boolean!
|
|
149
|
+
createdAt: Int!
|
|
150
|
+
updatedAt: Int!
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
input TrustLedgerBadgeDefinitionInput {
|
|
154
|
+
badgeId: String!
|
|
155
|
+
program: String!
|
|
156
|
+
name: String!
|
|
157
|
+
description: String
|
|
158
|
+
iconRef: String
|
|
159
|
+
points: Int!
|
|
160
|
+
ruleId: String!
|
|
161
|
+
ruleJson: String
|
|
162
|
+
active: Boolean!
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
type AssociationAccount {
|
|
166
|
+
id: String!
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type Association {
|
|
170
|
+
chainId: Int!
|
|
171
|
+
associationId: String!
|
|
172
|
+
|
|
173
|
+
initiatorAccount: AssociationAccount!
|
|
174
|
+
approverAccount: AssociationAccount!
|
|
175
|
+
|
|
176
|
+
initiator: String!
|
|
177
|
+
approver: String!
|
|
178
|
+
validAt: Int!
|
|
179
|
+
validUntil: Int!
|
|
180
|
+
interfaceId: String!
|
|
181
|
+
data: String!
|
|
182
|
+
|
|
183
|
+
initiatorKeyType: String!
|
|
184
|
+
approverKeyType: String!
|
|
185
|
+
initiatorSignature: String!
|
|
186
|
+
approverSignature: String!
|
|
187
|
+
|
|
188
|
+
revokedAt: Int
|
|
189
|
+
|
|
190
|
+
createdTxHash: String!
|
|
191
|
+
createdBlockNumber: Int!
|
|
192
|
+
createdTimestamp: Int!
|
|
193
|
+
lastUpdatedTxHash: String!
|
|
194
|
+
lastUpdatedBlockNumber: Int!
|
|
195
|
+
lastUpdatedTimestamp: Int!
|
|
196
|
+
|
|
197
|
+
initiatorAgent: Agent
|
|
198
|
+
approverAgent: Agent
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
enum AssociationRole {
|
|
202
|
+
INITIATOR
|
|
203
|
+
APPROVER
|
|
204
|
+
ANY
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
input AssociationWhereInput {
|
|
208
|
+
chainId: Int
|
|
209
|
+
chainId_in: [Int!]
|
|
210
|
+
associationId: String
|
|
211
|
+
associationId_in: [String!]
|
|
212
|
+
interfaceId: String
|
|
213
|
+
interfaceId_in: [String!]
|
|
214
|
+
initiatorAccountId: String
|
|
215
|
+
approverAccountId: String
|
|
216
|
+
initiatorAccountId_in: [String!]
|
|
217
|
+
approverAccountId_in: [String!]
|
|
218
|
+
revoked: Boolean
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
enum AgentOrderBy {
|
|
222
|
+
agentId
|
|
223
|
+
agentName
|
|
224
|
+
createdAtTime
|
|
225
|
+
createdAtBlock
|
|
226
|
+
agentIdentityOwnerAccount
|
|
227
|
+
eoaAgentIdentityOwnerAccount
|
|
228
|
+
eoaAgentAccount
|
|
229
|
+
agentCategory
|
|
230
|
+
trustLedgerScore
|
|
231
|
+
trustLedgerBadgeCount
|
|
232
|
+
trustLedgerOverallRank
|
|
233
|
+
trustLedgerCapabilityRank
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
enum OrderDirection {
|
|
237
|
+
ASC
|
|
238
|
+
DESC
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
input AgentWhereInput {
|
|
242
|
+
chainId: Int
|
|
243
|
+
chainId_in: [Int!]
|
|
244
|
+
|
|
245
|
+
agentId: String
|
|
246
|
+
agentId_in: [String!]
|
|
247
|
+
|
|
248
|
+
agentIdentityOwnerAccount: String
|
|
249
|
+
agentIdentityOwnerAccount_in: [String!]
|
|
250
|
+
|
|
251
|
+
eoaAgentIdentityOwnerAccount: String
|
|
252
|
+
eoaAgentIdentityOwnerAccount_in: [String!]
|
|
253
|
+
|
|
254
|
+
agentAccount: String
|
|
255
|
+
agentAccount_in: [String!]
|
|
256
|
+
|
|
257
|
+
eoaAgentAccount: String
|
|
258
|
+
eoaAgentAccount_in: [String!]
|
|
259
|
+
|
|
260
|
+
agentCategory: String
|
|
261
|
+
agentCategory_in: [String!]
|
|
262
|
+
agentCategory_contains: String
|
|
263
|
+
agentCategory_contains_nocase: String
|
|
264
|
+
|
|
265
|
+
agentName_contains: String
|
|
266
|
+
agentName_contains_nocase: String
|
|
267
|
+
agentName_starts_with: String
|
|
268
|
+
agentName_starts_with_nocase: String
|
|
269
|
+
agentName_ends_with: String
|
|
270
|
+
agentName_ends_with_nocase: String
|
|
271
|
+
|
|
272
|
+
description_contains: String
|
|
273
|
+
description_contains_nocase: String
|
|
274
|
+
|
|
275
|
+
did: String
|
|
276
|
+
did_contains: String
|
|
277
|
+
did_contains_nocase: String
|
|
278
|
+
|
|
279
|
+
createdAtTime_gt: Int
|
|
280
|
+
createdAtTime_gte: Int
|
|
281
|
+
createdAtTime_lt: Int
|
|
282
|
+
createdAtTime_lte: Int
|
|
283
|
+
|
|
284
|
+
hasA2aEndpoint: Boolean
|
|
285
|
+
|
|
286
|
+
mcp: Boolean
|
|
287
|
+
x402support: Boolean
|
|
288
|
+
active: Boolean
|
|
289
|
+
|
|
290
|
+
operator_in: [String!]
|
|
291
|
+
supportedTrust_in: [String!]
|
|
292
|
+
a2aSkills_in: [String!]
|
|
293
|
+
mcpTools_in: [String!]
|
|
294
|
+
mcpPrompts_in: [String!]
|
|
295
|
+
mcpResources_in: [String!]
|
|
296
|
+
|
|
297
|
+
feedbackCount_gt: Int
|
|
298
|
+
feedbackCount_gte: Int
|
|
299
|
+
feedbackCount_lt: Int
|
|
300
|
+
feedbackCount_lte: Int
|
|
301
|
+
|
|
302
|
+
validationPendingCount_gt: Int
|
|
303
|
+
validationPendingCount_gte: Int
|
|
304
|
+
validationPendingCount_lt: Int
|
|
305
|
+
validationPendingCount_lte: Int
|
|
306
|
+
|
|
307
|
+
validationCompletedCount_gt: Int
|
|
308
|
+
validationCompletedCount_gte: Int
|
|
309
|
+
validationCompletedCount_lt: Int
|
|
310
|
+
validationCompletedCount_lte: Int
|
|
311
|
+
|
|
312
|
+
validationRequestedCount_gt: Int
|
|
313
|
+
validationRequestedCount_gte: Int
|
|
314
|
+
validationRequestedCount_lt: Int
|
|
315
|
+
validationRequestedCount_lte: Int
|
|
316
|
+
|
|
317
|
+
feedbackAverageScore_gt: Float
|
|
318
|
+
feedbackAverageScore_gte: Float
|
|
319
|
+
feedbackAverageScore_lt: Float
|
|
320
|
+
feedbackAverageScore_lte: Float
|
|
321
|
+
|
|
322
|
+
atiOverallScore_gt: Int
|
|
323
|
+
atiOverallScore_gte: Int
|
|
324
|
+
atiOverallScore_lt: Int
|
|
325
|
+
atiOverallScore_lte: Int
|
|
326
|
+
|
|
327
|
+
trustLedgerScore_gt: Int
|
|
328
|
+
trustLedgerScore_gte: Int
|
|
329
|
+
trustLedgerScore_lt: Int
|
|
330
|
+
trustLedgerScore_lte: Int
|
|
331
|
+
|
|
332
|
+
trustLedgerBadgeCount_gt: Int
|
|
333
|
+
trustLedgerBadgeCount_gte: Int
|
|
334
|
+
trustLedgerBadgeCount_lt: Int
|
|
335
|
+
trustLedgerBadgeCount_lte: Int
|
|
336
|
+
|
|
337
|
+
trustLedgerOverallRank_gt: Int
|
|
338
|
+
trustLedgerOverallRank_gte: Int
|
|
339
|
+
trustLedgerOverallRank_lt: Int
|
|
340
|
+
trustLedgerOverallRank_lte: Int
|
|
341
|
+
|
|
342
|
+
trustLedgerCapabilityRank_gt: Int
|
|
343
|
+
trustLedgerCapabilityRank_gte: Int
|
|
344
|
+
trustLedgerCapabilityRank_lt: Int
|
|
345
|
+
trustLedgerCapabilityRank_lte: Int
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
type AgentSearchResult {
|
|
349
|
+
agents: [Agent!]!
|
|
350
|
+
total: Int!
|
|
351
|
+
hasMore: Boolean!
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
type AgentMetadata {
|
|
355
|
+
chainId: Int!
|
|
356
|
+
agentId: String!
|
|
357
|
+
id: String!
|
|
358
|
+
key: String!
|
|
359
|
+
value: String
|
|
360
|
+
valueText: String
|
|
361
|
+
indexedKey: String
|
|
362
|
+
updatedAtTime: Int
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
type AgentMetadataSearchResult {
|
|
366
|
+
entries: [AgentMetadata!]!
|
|
367
|
+
total: Int!
|
|
368
|
+
hasMore: Boolean!
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
type SemanticAgentMatch {
|
|
372
|
+
agent: Agent
|
|
373
|
+
score: Float!
|
|
374
|
+
matchReasons: [String!]
|
|
375
|
+
matchedSkills: [String!]
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
type SemanticAgentSearchResult {
|
|
379
|
+
matches: [SemanticAgentMatch!]!
|
|
380
|
+
total: Int!
|
|
381
|
+
intentType: String
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
input SemanticAgentSearchInput {
|
|
385
|
+
# Natural language query (optional if intentJson is provided)
|
|
386
|
+
text: String
|
|
387
|
+
# Structured intent payload as JSON string (optional if text is provided)
|
|
388
|
+
intentJson: String
|
|
389
|
+
topK: Int
|
|
390
|
+
minScore: Float
|
|
391
|
+
requiredSkills: [String!]
|
|
392
|
+
filters: SemanticSearchFilterInput
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
input SemanticSearchFilterInput {
|
|
396
|
+
capabilities: [String!]
|
|
397
|
+
inputMode: String
|
|
398
|
+
outputMode: String
|
|
399
|
+
tags: [String!]
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
enum AgentMetadataOrderBy {
|
|
403
|
+
agentId
|
|
404
|
+
key
|
|
405
|
+
updatedAtTime
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
input AgentMetadataWhereInput {
|
|
409
|
+
chainId: Int
|
|
410
|
+
agentId: String
|
|
411
|
+
agentId_in: [String!]
|
|
412
|
+
key: String
|
|
413
|
+
key_in: [String!]
|
|
414
|
+
key_contains: String
|
|
415
|
+
key_contains_nocase: String
|
|
416
|
+
valueText_contains: String
|
|
417
|
+
valueText_contains_nocase: String
|
|
418
|
+
value_contains: String
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
type AccessCode {
|
|
422
|
+
address: String!
|
|
423
|
+
accessCode: String!
|
|
424
|
+
createdAt: Int!
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
type RepFeedback {
|
|
428
|
+
id: ID!
|
|
429
|
+
chainId: Int!
|
|
430
|
+
agentId: String!
|
|
431
|
+
clientAddress: String!
|
|
432
|
+
feedbackIndex: Int!
|
|
433
|
+
score: Int
|
|
434
|
+
tag1: String
|
|
435
|
+
tag2: String
|
|
436
|
+
feedbackUri: String
|
|
437
|
+
feedbackJson: String
|
|
438
|
+
agentRegistry: String
|
|
439
|
+
feedbackCreatedAt: String
|
|
440
|
+
feedbackAuth: String
|
|
441
|
+
skill: String
|
|
442
|
+
capability: String
|
|
443
|
+
contextJson: String
|
|
444
|
+
feedbackType: String
|
|
445
|
+
domain: String
|
|
446
|
+
comment: String
|
|
447
|
+
ratingPct: Int
|
|
448
|
+
feedbackTimestamp: String
|
|
449
|
+
feedbackHash: String
|
|
450
|
+
txHash: String
|
|
451
|
+
blockNumber: Int
|
|
452
|
+
timestamp: Int
|
|
453
|
+
isRevoked: Boolean
|
|
454
|
+
revokedTxHash: String
|
|
455
|
+
revokedBlockNumber: Int
|
|
456
|
+
revokedTimestamp: Int
|
|
457
|
+
responseCount: Int
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
type RepFeedbackRevocation {
|
|
461
|
+
id: ID!
|
|
462
|
+
chainId: Int!
|
|
463
|
+
agentId: String!
|
|
464
|
+
clientAddress: String!
|
|
465
|
+
feedbackIndex: Int!
|
|
466
|
+
txHash: String
|
|
467
|
+
blockNumber: Int
|
|
468
|
+
timestamp: Int
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
type RepFeedbackResponse {
|
|
472
|
+
id: ID!
|
|
473
|
+
chainId: Int!
|
|
474
|
+
agentId: String!
|
|
475
|
+
clientAddress: String!
|
|
476
|
+
feedbackIndex: Int!
|
|
477
|
+
responder: String
|
|
478
|
+
responseUri: String
|
|
479
|
+
responseJson: String
|
|
480
|
+
responseHash: String
|
|
481
|
+
txHash: String
|
|
482
|
+
blockNumber: Int
|
|
483
|
+
timestamp: Int
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
type ValidationRequest {
|
|
487
|
+
id: ID!
|
|
488
|
+
chainId: Int!
|
|
489
|
+
agentId: String!
|
|
490
|
+
validatorAddress: String!
|
|
491
|
+
requestUri: String
|
|
492
|
+
requestJson: String
|
|
493
|
+
requestHash: String
|
|
494
|
+
txHash: String
|
|
495
|
+
blockNumber: Int
|
|
496
|
+
timestamp: Int
|
|
497
|
+
createdAt: Int
|
|
498
|
+
updatedAt: Int
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
type ValidationResponse {
|
|
502
|
+
id: ID!
|
|
503
|
+
chainId: Int!
|
|
504
|
+
agentId: String!
|
|
505
|
+
validatorAddress: String!
|
|
506
|
+
requestHash: String
|
|
507
|
+
response: Int
|
|
508
|
+
responseUri: String
|
|
509
|
+
responseJson: String
|
|
510
|
+
responseHash: String
|
|
511
|
+
tag: String
|
|
512
|
+
txHash: String
|
|
513
|
+
blockNumber: Int
|
|
514
|
+
timestamp: Int
|
|
515
|
+
createdAt: Int
|
|
516
|
+
updatedAt: Int
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
enum FeedbackOrderBy {
|
|
520
|
+
blockNumber
|
|
521
|
+
timestamp
|
|
522
|
+
score
|
|
523
|
+
ratingPct
|
|
524
|
+
feedbackIndex
|
|
525
|
+
responseCount
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
input FeedbackWhereInput {
|
|
529
|
+
chainId: Int
|
|
530
|
+
chainId_in: [Int!]
|
|
531
|
+
|
|
532
|
+
agentId: String
|
|
533
|
+
agentId_in: [String!]
|
|
534
|
+
|
|
535
|
+
clientAddress: String
|
|
536
|
+
clientAddress_in: [String!]
|
|
537
|
+
|
|
538
|
+
feedbackIndex: Int
|
|
539
|
+
feedbackIndex_in: [Int!]
|
|
540
|
+
|
|
541
|
+
score_gt: Int
|
|
542
|
+
score_gte: Int
|
|
543
|
+
score_lt: Int
|
|
544
|
+
score_lte: Int
|
|
545
|
+
|
|
546
|
+
ratingPct_gt: Int
|
|
547
|
+
ratingPct_gte: Int
|
|
548
|
+
ratingPct_lt: Int
|
|
549
|
+
ratingPct_lte: Int
|
|
550
|
+
|
|
551
|
+
isRevoked: Boolean
|
|
552
|
+
|
|
553
|
+
domain_contains: String
|
|
554
|
+
domain_contains_nocase: String
|
|
555
|
+
|
|
556
|
+
comment_contains: String
|
|
557
|
+
comment_contains_nocase: String
|
|
558
|
+
|
|
559
|
+
feedbackUri_contains: String
|
|
560
|
+
feedbackUri_contains_nocase: String
|
|
561
|
+
|
|
562
|
+
feedbackType_in: [String!]
|
|
563
|
+
feedbackType_contains: String
|
|
564
|
+
feedbackType_contains_nocase: String
|
|
565
|
+
|
|
566
|
+
feedbackHash: String
|
|
567
|
+
feedbackHash_in: [String!]
|
|
568
|
+
|
|
569
|
+
tag1: String
|
|
570
|
+
tag2: String
|
|
571
|
+
|
|
572
|
+
txHash: String
|
|
573
|
+
txHash_in: [String!]
|
|
574
|
+
|
|
575
|
+
responseCount_gt: Int
|
|
576
|
+
responseCount_gte: Int
|
|
577
|
+
responseCount_lt: Int
|
|
578
|
+
responseCount_lte: Int
|
|
579
|
+
|
|
580
|
+
timestamp_gt: Int
|
|
581
|
+
timestamp_gte: Int
|
|
582
|
+
timestamp_lt: Int
|
|
583
|
+
timestamp_lte: Int
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
type FeedbackSearchResult {
|
|
587
|
+
feedbacks: [RepFeedback!]!
|
|
588
|
+
total: Int!
|
|
589
|
+
hasMore: Boolean!
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
type Query {
|
|
593
|
+
oasfSkills(key: String, nameKey: String, category: String, extendsKey: String, limit: Int, offset: Int, orderBy: String, orderDirection: String): [OasfSkill!]!
|
|
594
|
+
|
|
595
|
+
oasfDomains(key: String, nameKey: String, category: String, extendsKey: String, limit: Int, offset: Int, orderBy: String, orderDirection: String): [OasfDomain!]!
|
|
596
|
+
|
|
597
|
+
intentTypes(key: String, label: String, limit: Int, offset: Int): [IntentType!]!
|
|
598
|
+
|
|
599
|
+
taskTypes(key: String, label: String, limit: Int, offset: Int): [TaskType!]!
|
|
600
|
+
|
|
601
|
+
intentTaskMappings(intentKey: String, taskKey: String, limit: Int, offset: Int): [IntentTaskMapping!]!
|
|
602
|
+
|
|
603
|
+
agents(chainId: Int, agentId: String, agentIdentityOwnerAccount: String, agentName: String, limit: Int, offset: Int, orderBy: String, orderDirection: String): [Agent!]!
|
|
604
|
+
|
|
605
|
+
agent(chainId: Int!, agentId: String!): Agent
|
|
606
|
+
|
|
607
|
+
agentByName(agentName: String!): Agent
|
|
608
|
+
|
|
609
|
+
agentsByChain(chainId: Int!, limit: Int, offset: Int, orderBy: String, orderDirection: String): [Agent!]!
|
|
610
|
+
|
|
611
|
+
agentsByOwner(agentIdentityOwnerAccount: String!, chainId: Int, limit: Int, offset: Int, orderBy: String, orderDirection: String): [Agent!]!
|
|
612
|
+
|
|
613
|
+
searchAgents(query: String!, chainId: Int, limit: Int, offset: Int, orderBy: String, orderDirection: String): [Agent!]!
|
|
614
|
+
|
|
615
|
+
searchAgentsGraph(where: AgentWhereInput, first: Int, skip: Int, orderBy: AgentOrderBy, orderDirection: OrderDirection): AgentSearchResult!
|
|
616
|
+
|
|
617
|
+
getAccessCode(address: String!): AccessCode
|
|
618
|
+
|
|
619
|
+
countAgents(chainId: Int, agentId: String, agentIdentityOwnerAccount: String, agentName: String): Int!
|
|
620
|
+
|
|
621
|
+
semanticAgentSearch(input: SemanticAgentSearchInput!): SemanticAgentSearchResult!
|
|
622
|
+
|
|
623
|
+
agentMetadata(where: AgentMetadataWhereInput, first: Int, skip: Int, orderBy: AgentMetadataOrderBy, orderDirection: OrderDirection): AgentMetadataSearchResult!
|
|
624
|
+
|
|
625
|
+
agentMetadataById(chainId: Int!, id: String!): AgentMetadata
|
|
626
|
+
|
|
627
|
+
associations(where: AssociationWhereInput, first: Int, skip: Int, orderBy: String, orderDirection: String): [Association!]!
|
|
628
|
+
|
|
629
|
+
agentAssociations(chainId: Int!, agentId: String!, role: AssociationRole, interfaceId: String, first: Int, skip: Int): [Association!]!
|
|
630
|
+
|
|
631
|
+
graphqlEndpointAssociations(chainId: Int!, agentId: String!, role: AssociationRole, first: Int, skip: Int): [Association!]!
|
|
632
|
+
|
|
633
|
+
graphqlEndpointAssociationsBetween(chainId: Int!, agentId: String!, agentIdB: String!, first: Int, skip: Int): [Association!]!
|
|
634
|
+
|
|
635
|
+
trustScore(chainId: Int!, agentId: String!, client: String!, interfaceId: String): TrustScore!
|
|
636
|
+
|
|
637
|
+
agentTrustIndex(chainId: Int!, agentId: String!): AgentTrustIndex
|
|
638
|
+
agentTrustComponents(chainId: Int!, agentId: String!): [AgentTrustComponent!]!
|
|
639
|
+
|
|
640
|
+
trustLedgerBadgeDefinitions(program: String, active: Boolean): [TrustLedgerBadgeDefinition!]!
|
|
641
|
+
|
|
642
|
+
feedbacks(chainId: Int, agentId: String, clientAddress: String, feedbackIndex: Int, limit: Int, offset: Int, orderBy: String, orderDirection: String): [RepFeedback!]!
|
|
643
|
+
|
|
644
|
+
feedback(id: ID!): RepFeedback
|
|
645
|
+
|
|
646
|
+
feedbackByReference(chainId: Int!, agentId: String!, clientAddress: String!, feedbackIndex: Int!): RepFeedback
|
|
647
|
+
|
|
648
|
+
searchFeedbacks(query: String!, chainId: Int, agentId: String, limit: Int, offset: Int, orderBy: String, orderDirection: String): [RepFeedback!]!
|
|
649
|
+
|
|
650
|
+
searchFeedbacksGraph(where: FeedbackWhereInput, first: Int, skip: Int, orderBy: FeedbackOrderBy, orderDirection: OrderDirection): FeedbackSearchResult!
|
|
651
|
+
|
|
652
|
+
countFeedbacks(chainId: Int, agentId: String, clientAddress: String, feedbackIndex: Int, isRevoked: Boolean): Int!
|
|
653
|
+
|
|
654
|
+
feedbackResponses(chainId: Int, agentId: String, clientAddress: String, feedbackIndex: Int, limit: Int, offset: Int, orderBy: String, orderDirection: String): [RepFeedbackResponse!]!
|
|
655
|
+
|
|
656
|
+
feedbackRevocations(chainId: Int, agentId: String, clientAddress: String, feedbackIndex: Int, limit: Int, offset: Int, orderBy: String, orderDirection: String): [RepFeedbackRevocation!]!
|
|
657
|
+
|
|
658
|
+
validationRequests(chainId: Int, agentId: String, validatorAddress: String, requestHash: String, limit: Int, offset: Int, orderBy: String, orderDirection: String): [ValidationRequest!]!
|
|
659
|
+
|
|
660
|
+
validationRequest(id: ID!): ValidationRequest
|
|
661
|
+
|
|
662
|
+
validationResponses(chainId: Int, agentId: String, validatorAddress: String, requestHash: String, tag: String, response: Int, limit: Int, offset: Int, orderBy: String, orderDirection: String): [ValidationResponse!]!
|
|
663
|
+
|
|
664
|
+
validationResponse(id: ID!): ValidationResponse
|
|
665
|
+
|
|
666
|
+
countValidationRequests(chainId: Int, agentId: String, validatorAddress: String, requestHash: String): Int!
|
|
667
|
+
|
|
668
|
+
countValidationResponses(chainId: Int, agentId: String, validatorAddress: String, requestHash: String, tag: String): Int!
|
|
669
|
+
|
|
670
|
+
fetchAgentCard(url: String!, authHeader: String): String!
|
|
671
|
+
callA2A(url: String!, method: String!, paramsJson: String, authHeader: String): String!
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
type Mutation {
|
|
675
|
+
createAccessCode(address: String!): AccessCode!
|
|
676
|
+
indexAgent(agentId: String!, chainId: Int): IndexAgentResult!
|
|
677
|
+
indexAgentByUaid(uaid: String!): IndexAgentResult!
|
|
678
|
+
|
|
679
|
+
upsertTrustLedgerBadgeDefinition(input: TrustLedgerBadgeDefinitionInput!): TrustLedgerBadgeDefinition!
|
|
680
|
+
|
|
681
|
+
setTrustLedgerBadgeActive(badgeId: String!, active: Boolean!): TrustLedgerBadgeDefinition!
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
type IndexAgentResult {
|
|
685
|
+
success: Boolean!
|
|
686
|
+
message: String!
|
|
687
|
+
processedChains: [String!]!
|
|
688
|
+
}
|
|
689
|
+
`;
|
|
690
|
+
/**
|
|
691
|
+
* Build GraphQL schema from shared schema string.
|
|
692
|
+
*/
|
|
693
|
+
export function buildGraphQLSchema() {
|
|
694
|
+
return buildSchema(graphQLSchemaString);
|
|
695
|
+
}
|
|
696
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAsB,MAAM,SAAS,CAAC;AAE1D,MAAM,CAAC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyqBlC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAChC,OAAO,WAAW,CAAC,mBAAmB,CAAC,CAAC;AAC1C,CAAC"}
|