@sourcey/catalog-verifier 1.1.22 → 1.1.23
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/README.md +4 -1
- package/SOURCEY-CLOSURE.json +255 -111
- package/dist/contracts/agent-readiness/src/binding.d.ts +28 -1
- package/dist/contracts/agent-readiness/src/binding.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/binding.js +75 -16
- package/dist/contracts/agent-readiness/src/binding.js.map +1 -1
- package/dist/contracts/agent-readiness/src/client.d.ts +30 -0
- package/dist/contracts/agent-readiness/src/client.d.ts.map +1 -0
- package/dist/contracts/agent-readiness/src/client.js +25 -0
- package/dist/contracts/agent-readiness/src/client.js.map +1 -0
- package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts +91 -0
- package/dist/contracts/agent-readiness/src/declaration-acquisition.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/declaration-acquisition.js +6 -0
- package/dist/contracts/agent-readiness/src/declaration-acquisition.js.map +1 -1
- package/dist/contracts/agent-readiness/src/declaration.d.ts +358 -0
- package/dist/contracts/agent-readiness/src/declaration.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/declaration.js +34 -79
- package/dist/contracts/agent-readiness/src/declaration.js.map +1 -1
- package/dist/contracts/agent-readiness/src/{operate-policy.d.ts → grade-policy.d.ts} +31 -79
- package/dist/contracts/agent-readiness/src/grade-policy.d.ts.map +1 -0
- package/dist/contracts/agent-readiness/src/grade-policy.js +93 -0
- package/dist/contracts/agent-readiness/src/grade-policy.js.map +1 -0
- package/dist/contracts/agent-readiness/src/index.d.ts +3 -1
- package/dist/contracts/agent-readiness/src/index.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/index.js +3 -1
- package/dist/contracts/agent-readiness/src/index.js.map +1 -1
- package/dist/contracts/agent-readiness/src/jobs.d.ts +12 -3
- package/dist/contracts/agent-readiness/src/jobs.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/jobs.js +8 -1
- package/dist/contracts/agent-readiness/src/jobs.js.map +1 -1
- package/dist/contracts/agent-readiness/src/offer-relations.d.ts +89 -0
- package/dist/contracts/agent-readiness/src/offer-relations.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/operation.d.ts +106 -0
- package/dist/contracts/agent-readiness/src/operation.d.ts.map +1 -0
- package/dist/contracts/agent-readiness/src/operation.js +228 -0
- package/dist/contracts/agent-readiness/src/operation.js.map +1 -0
- package/dist/contracts/agent-readiness/src/release-index.d.ts +277 -89
- package/dist/contracts/agent-readiness/src/release-index.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/revision.d.ts +500 -166
- package/dist/contracts/agent-readiness/src/revision.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/revision.js +100 -37
- package/dist/contracts/agent-readiness/src/revision.js.map +1 -1
- package/dist/contracts/agent-readiness/src/run.d.ts +386 -98
- package/dist/contracts/agent-readiness/src/run.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/run.js +333 -52
- package/dist/contracts/agent-readiness/src/run.js.map +1 -1
- package/dist/contracts/agent-readiness/src/shared.d.ts +51 -17
- package/dist/contracts/agent-readiness/src/shared.d.ts.map +1 -1
- package/dist/contracts/agent-readiness/src/shared.js +52 -23
- package/dist/contracts/agent-readiness/src/shared.js.map +1 -1
- package/dist/contracts/agent-readiness/src/surfaces.d.ts +25 -0
- package/dist/contracts/agent-readiness/src/surfaces.d.ts.map +1 -0
- package/dist/contracts/agent-readiness/src/surfaces.js +76 -0
- package/dist/contracts/agent-readiness/src/surfaces.js.map +1 -0
- package/dist/contracts/api/src/endpoints.d.ts +885 -254
- package/dist/contracts/api/src/endpoints.d.ts.map +1 -1
- package/dist/contracts/api/src/read.d.ts +354 -109
- package/dist/contracts/api/src/read.d.ts.map +1 -1
- package/dist/contracts/api/src/read.js +1 -1
- package/dist/contracts/api/src/routes.d.ts +27 -23
- package/dist/contracts/api/src/routes.d.ts.map +1 -1
- package/dist/contracts/api/src/routes.js +2 -3
- package/dist/contracts/api/src/routes.js.map +1 -1
- package/dist/contracts/api/src/submissions.d.ts +91 -0
- package/dist/contracts/api/src/submissions.d.ts.map +1 -1
- package/dist/contracts/datasets/src/index.d.ts +13 -10
- package/dist/contracts/datasets/src/index.d.ts.map +1 -1
- package/dist/modules/agent-readiness-engine/src/assertions.d.ts.map +1 -1
- package/dist/modules/agent-readiness-engine/src/assertions.js +25 -0
- package/dist/modules/agent-readiness-engine/src/assertions.js.map +1 -1
- package/dist/modules/agent-readiness-engine/src/authority.d.ts +81 -0
- package/dist/modules/agent-readiness-engine/src/authority.d.ts.map +1 -0
- package/dist/modules/agent-readiness-engine/src/authority.js +189 -0
- package/dist/modules/agent-readiness-engine/src/authority.js.map +1 -0
- package/dist/modules/agent-readiness-engine/src/challenges.d.ts +13 -0
- package/dist/modules/agent-readiness-engine/src/challenges.d.ts.map +1 -0
- package/dist/modules/agent-readiness-engine/src/challenges.js +67 -0
- package/dist/modules/agent-readiness-engine/src/challenges.js.map +1 -0
- package/dist/modules/agent-readiness-engine/src/documents.d.ts +21 -0
- package/dist/modules/agent-readiness-engine/src/documents.d.ts.map +1 -0
- package/dist/modules/agent-readiness-engine/src/documents.js +69 -0
- package/dist/modules/agent-readiness-engine/src/documents.js.map +1 -0
- package/dist/modules/agent-readiness-engine/src/naming.d.ts +19 -0
- package/dist/modules/agent-readiness-engine/src/naming.d.ts.map +1 -0
- package/dist/modules/agent-readiness-engine/src/naming.js +28 -0
- package/dist/modules/agent-readiness-engine/src/naming.js.map +1 -0
- package/dist/modules/agent-readiness-engine/src/path.d.ts +68 -15
- package/dist/modules/agent-readiness-engine/src/path.d.ts.map +1 -1
- package/dist/modules/agent-readiness-engine/src/path.js +467 -153
- package/dist/modules/agent-readiness-engine/src/path.js.map +1 -1
- package/dist/modules/agent-readiness-engine/src/profile.d.ts +85 -0
- package/dist/modules/agent-readiness-engine/src/profile.d.ts.map +1 -0
- package/dist/modules/agent-readiness-engine/src/profile.js +176 -0
- package/dist/modules/agent-readiness-engine/src/profile.js.map +1 -0
- package/dist/modules/agent-readiness-engine/src/rate.d.ts +10 -20
- package/dist/modules/agent-readiness-engine/src/rate.d.ts.map +1 -1
- package/dist/modules/agent-readiness-engine/src/rate.js +29 -47
- package/dist/modules/agent-readiness-engine/src/rate.js.map +1 -1
- package/dist/modules/agent-readiness-engine/src/records.d.ts +30 -0
- package/dist/modules/agent-readiness-engine/src/records.d.ts.map +1 -0
- package/dist/modules/agent-readiness-engine/src/records.js +59 -0
- package/dist/modules/agent-readiness-engine/src/records.js.map +1 -0
- package/dist/modules/agent-readiness-jobs/src/index.d.ts +16 -8
- package/dist/modules/agent-readiness-jobs/src/index.d.ts.map +1 -1
- package/dist/modules/agent-readiness-jobs/src/index.js +12 -7
- package/dist/modules/agent-readiness-jobs/src/index.js.map +1 -1
- package/dist/modules/agent-readiness-policy/src/current-policy.d.ts +13 -17
- package/dist/modules/agent-readiness-policy/src/current-policy.d.ts.map +1 -1
- package/dist/modules/agent-readiness-policy/src/current-policy.js +1 -1
- package/dist/modules/agent-readiness-policy/src/current-policy.js.map +1 -1
- package/dist/modules/agent-readiness-policy/src/{operate-policy.d.ts → grade-policy.d.ts} +3 -3
- package/dist/modules/agent-readiness-policy/src/grade-policy.d.ts.map +1 -0
- package/dist/modules/agent-readiness-policy/src/grade-policy.js +82 -0
- package/dist/modules/agent-readiness-policy/src/grade-policy.js.map +1 -0
- package/dist/modules/agent-readiness-policy/src/index.d.ts +4 -4
- package/dist/modules/agent-readiness-policy/src/index.d.ts.map +1 -1
- package/dist/modules/agent-readiness-policy/src/index.js +35 -22
- package/dist/modules/agent-readiness-policy/src/index.js.map +1 -1
- package/dist/modules/agent-readiness-policy/src/revision.d.ts +3 -3
- package/dist/modules/agent-readiness-policy/src/revision.d.ts.map +1 -1
- package/dist/modules/agent-readiness-policy/src/revision.js +40 -32
- package/dist/modules/agent-readiness-policy/src/revision.js.map +1 -1
- package/dist/modules/artifact/src/policy-closure.js +1 -1
- package/dist/modules/artifact/src/policy-closure.js.map +1 -1
- package/dist/modules/release/src/verification-policies.d.ts +13 -17
- package/dist/modules/release/src/verification-policies.d.ts.map +1 -1
- package/dist/modules/release/src/verification-policies.js +1 -1
- package/dist/modules/release/src/verification-policies.js.map +1 -1
- package/dist/modules/sourcey-publication/src/verifier.d.ts +5 -0
- package/dist/modules/sourcey-publication/src/verifier.d.ts.map +1 -1
- package/dist/modules/sourcey-publication/src/verifier.js +13 -0
- package/dist/modules/sourcey-publication/src/verifier.js.map +1 -1
- package/package.json +1 -1
- package/dist/contracts/agent-readiness/src/operate-policy.d.ts.map +0 -1
- package/dist/contracts/agent-readiness/src/operate-policy.js +0 -86
- package/dist/contracts/agent-readiness/src/operate-policy.js.map +0 -1
- package/dist/modules/agent-readiness-policy/src/operate-policy.d.ts.map +0 -1
- package/dist/modules/agent-readiness-policy/src/operate-policy.js +0 -110
- package/dist/modules/agent-readiness-policy/src/operate-policy.js.map +0 -1
|
@@ -65,6 +65,8 @@ export declare const agentReadinessEndpointSchema: z.ZodObject<{
|
|
|
65
65
|
websocket: "websocket";
|
|
66
66
|
}>;
|
|
67
67
|
roles: z.ZodArray<z.ZodEnum<{
|
|
68
|
+
access_request: "access_request";
|
|
69
|
+
access_setting: "access_setting";
|
|
68
70
|
authorization: "authorization";
|
|
69
71
|
checkout: "checkout";
|
|
70
72
|
protected_resource: "protected_resource";
|
|
@@ -193,6 +195,92 @@ declare const agentReadinessDeclarationSchema: z.ZodObject<{
|
|
|
193
195
|
name: z.ZodString;
|
|
194
196
|
}, z.core.$strict>;
|
|
195
197
|
}, z.core.$strict>;
|
|
198
|
+
job_operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
199
|
+
operation_id: z.ZodString;
|
|
200
|
+
interface_id: z.ZodString;
|
|
201
|
+
kind: z.ZodLiteral<"http">;
|
|
202
|
+
endpoint_id: z.ZodString;
|
|
203
|
+
method: z.ZodEnum<{
|
|
204
|
+
GET: "GET";
|
|
205
|
+
PATCH: "PATCH";
|
|
206
|
+
POST: "POST";
|
|
207
|
+
PUT: "PUT";
|
|
208
|
+
}>;
|
|
209
|
+
url: z.ZodURL;
|
|
210
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
211
|
+
name: z.ZodString;
|
|
212
|
+
value: z.ZodString;
|
|
213
|
+
}, z.core.$strict>>;
|
|
214
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
215
|
+
media_type: z.ZodString;
|
|
216
|
+
}, z.core.$strict>>;
|
|
217
|
+
spec: z.ZodNullable<z.ZodObject<{
|
|
218
|
+
url: z.ZodURL;
|
|
219
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
220
|
+
create: z.ZodObject<{
|
|
221
|
+
method: z.ZodEnum<{
|
|
222
|
+
DELETE: "DELETE";
|
|
223
|
+
GET: "GET";
|
|
224
|
+
PATCH: "PATCH";
|
|
225
|
+
POST: "POST";
|
|
226
|
+
PUT: "PUT";
|
|
227
|
+
}>;
|
|
228
|
+
path: z.ZodString;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
revoke: z.ZodObject<{
|
|
231
|
+
method: z.ZodEnum<{
|
|
232
|
+
DELETE: "DELETE";
|
|
233
|
+
GET: "GET";
|
|
234
|
+
PATCH: "PATCH";
|
|
235
|
+
POST: "POST";
|
|
236
|
+
PUT: "PUT";
|
|
237
|
+
}>;
|
|
238
|
+
path: z.ZodString;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
}, z.core.$strict>>;
|
|
241
|
+
}, z.core.$strict>>;
|
|
242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
+
operation_id: z.ZodString;
|
|
244
|
+
interface_id: z.ZodString;
|
|
245
|
+
kind: z.ZodLiteral<"mcp">;
|
|
246
|
+
endpoint_id: z.ZodString;
|
|
247
|
+
tool: z.ZodString;
|
|
248
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
249
|
+
operation_id: z.ZodString;
|
|
250
|
+
interface_id: z.ZodString;
|
|
251
|
+
kind: z.ZodLiteral<"spec">;
|
|
252
|
+
spec_url: z.ZodURL;
|
|
253
|
+
method: z.ZodEnum<{
|
|
254
|
+
DELETE: "DELETE";
|
|
255
|
+
GET: "GET";
|
|
256
|
+
PATCH: "PATCH";
|
|
257
|
+
POST: "POST";
|
|
258
|
+
PUT: "PUT";
|
|
259
|
+
}>;
|
|
260
|
+
path: z.ZodString;
|
|
261
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
262
|
+
create: z.ZodObject<{
|
|
263
|
+
method: z.ZodEnum<{
|
|
264
|
+
DELETE: "DELETE";
|
|
265
|
+
GET: "GET";
|
|
266
|
+
PATCH: "PATCH";
|
|
267
|
+
POST: "POST";
|
|
268
|
+
PUT: "PUT";
|
|
269
|
+
}>;
|
|
270
|
+
path: z.ZodString;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
revoke: z.ZodObject<{
|
|
273
|
+
method: z.ZodEnum<{
|
|
274
|
+
DELETE: "DELETE";
|
|
275
|
+
GET: "GET";
|
|
276
|
+
PATCH: "PATCH";
|
|
277
|
+
POST: "POST";
|
|
278
|
+
PUT: "PUT";
|
|
279
|
+
}>;
|
|
280
|
+
path: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
}, z.core.$strict>>;
|
|
283
|
+
}, z.core.$strict>], "kind">>;
|
|
196
284
|
job_bindings: z.ZodArray<z.ZodObject<{
|
|
197
285
|
binding_id: z.ZodString;
|
|
198
286
|
interface_id: z.ZodString;
|
|
@@ -732,6 +820,8 @@ declare const agentReadinessDeclarationSchema: z.ZodObject<{
|
|
|
732
820
|
websocket: "websocket";
|
|
733
821
|
}>;
|
|
734
822
|
roles: z.ZodArray<z.ZodEnum<{
|
|
823
|
+
access_request: "access_request";
|
|
824
|
+
access_setting: "access_setting";
|
|
735
825
|
authorization: "authorization";
|
|
736
826
|
checkout: "checkout";
|
|
737
827
|
protected_resource: "protected_resource";
|
|
@@ -833,6 +923,7 @@ declare const agentReadinessDeclarationSchema: z.ZodObject<{
|
|
|
833
923
|
endpoint: "endpoint";
|
|
834
924
|
interface: "interface";
|
|
835
925
|
job_binding: "job_binding";
|
|
926
|
+
job_operation: "job_operation";
|
|
836
927
|
offer_relation: "offer_relation";
|
|
837
928
|
participant: "participant";
|
|
838
929
|
relation: "relation";
|
|
@@ -884,6 +975,92 @@ export declare const agentReadinessDeclarationRevisionCoreSchema: z.ZodObject<{
|
|
|
884
975
|
name: z.ZodString;
|
|
885
976
|
}, z.core.$strict>;
|
|
886
977
|
}, z.core.$strict>;
|
|
978
|
+
job_operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
979
|
+
operation_id: z.ZodString;
|
|
980
|
+
interface_id: z.ZodString;
|
|
981
|
+
kind: z.ZodLiteral<"http">;
|
|
982
|
+
endpoint_id: z.ZodString;
|
|
983
|
+
method: z.ZodEnum<{
|
|
984
|
+
GET: "GET";
|
|
985
|
+
PATCH: "PATCH";
|
|
986
|
+
POST: "POST";
|
|
987
|
+
PUT: "PUT";
|
|
988
|
+
}>;
|
|
989
|
+
url: z.ZodURL;
|
|
990
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
991
|
+
name: z.ZodString;
|
|
992
|
+
value: z.ZodString;
|
|
993
|
+
}, z.core.$strict>>;
|
|
994
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
995
|
+
media_type: z.ZodString;
|
|
996
|
+
}, z.core.$strict>>;
|
|
997
|
+
spec: z.ZodNullable<z.ZodObject<{
|
|
998
|
+
url: z.ZodURL;
|
|
999
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
1000
|
+
create: z.ZodObject<{
|
|
1001
|
+
method: z.ZodEnum<{
|
|
1002
|
+
DELETE: "DELETE";
|
|
1003
|
+
GET: "GET";
|
|
1004
|
+
PATCH: "PATCH";
|
|
1005
|
+
POST: "POST";
|
|
1006
|
+
PUT: "PUT";
|
|
1007
|
+
}>;
|
|
1008
|
+
path: z.ZodString;
|
|
1009
|
+
}, z.core.$strict>;
|
|
1010
|
+
revoke: z.ZodObject<{
|
|
1011
|
+
method: z.ZodEnum<{
|
|
1012
|
+
DELETE: "DELETE";
|
|
1013
|
+
GET: "GET";
|
|
1014
|
+
PATCH: "PATCH";
|
|
1015
|
+
POST: "POST";
|
|
1016
|
+
PUT: "PUT";
|
|
1017
|
+
}>;
|
|
1018
|
+
path: z.ZodString;
|
|
1019
|
+
}, z.core.$strict>;
|
|
1020
|
+
}, z.core.$strict>>;
|
|
1021
|
+
}, z.core.$strict>>;
|
|
1022
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1023
|
+
operation_id: z.ZodString;
|
|
1024
|
+
interface_id: z.ZodString;
|
|
1025
|
+
kind: z.ZodLiteral<"mcp">;
|
|
1026
|
+
endpoint_id: z.ZodString;
|
|
1027
|
+
tool: z.ZodString;
|
|
1028
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1029
|
+
operation_id: z.ZodString;
|
|
1030
|
+
interface_id: z.ZodString;
|
|
1031
|
+
kind: z.ZodLiteral<"spec">;
|
|
1032
|
+
spec_url: z.ZodURL;
|
|
1033
|
+
method: z.ZodEnum<{
|
|
1034
|
+
DELETE: "DELETE";
|
|
1035
|
+
GET: "GET";
|
|
1036
|
+
PATCH: "PATCH";
|
|
1037
|
+
POST: "POST";
|
|
1038
|
+
PUT: "PUT";
|
|
1039
|
+
}>;
|
|
1040
|
+
path: z.ZodString;
|
|
1041
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
1042
|
+
create: z.ZodObject<{
|
|
1043
|
+
method: z.ZodEnum<{
|
|
1044
|
+
DELETE: "DELETE";
|
|
1045
|
+
GET: "GET";
|
|
1046
|
+
PATCH: "PATCH";
|
|
1047
|
+
POST: "POST";
|
|
1048
|
+
PUT: "PUT";
|
|
1049
|
+
}>;
|
|
1050
|
+
path: z.ZodString;
|
|
1051
|
+
}, z.core.$strict>;
|
|
1052
|
+
revoke: z.ZodObject<{
|
|
1053
|
+
method: z.ZodEnum<{
|
|
1054
|
+
DELETE: "DELETE";
|
|
1055
|
+
GET: "GET";
|
|
1056
|
+
PATCH: "PATCH";
|
|
1057
|
+
POST: "POST";
|
|
1058
|
+
PUT: "PUT";
|
|
1059
|
+
}>;
|
|
1060
|
+
path: z.ZodString;
|
|
1061
|
+
}, z.core.$strict>;
|
|
1062
|
+
}, z.core.$strict>>;
|
|
1063
|
+
}, z.core.$strict>], "kind">>;
|
|
887
1064
|
job_bindings: z.ZodArray<z.ZodObject<{
|
|
888
1065
|
binding_id: z.ZodString;
|
|
889
1066
|
interface_id: z.ZodString;
|
|
@@ -1423,6 +1600,8 @@ export declare const agentReadinessDeclarationRevisionCoreSchema: z.ZodObject<{
|
|
|
1423
1600
|
websocket: "websocket";
|
|
1424
1601
|
}>;
|
|
1425
1602
|
roles: z.ZodArray<z.ZodEnum<{
|
|
1603
|
+
access_request: "access_request";
|
|
1604
|
+
access_setting: "access_setting";
|
|
1426
1605
|
authorization: "authorization";
|
|
1427
1606
|
checkout: "checkout";
|
|
1428
1607
|
protected_resource: "protected_resource";
|
|
@@ -1540,6 +1719,7 @@ export declare const agentReadinessDeclarationRevisionCoreSchema: z.ZodObject<{
|
|
|
1540
1719
|
endpoint: "endpoint";
|
|
1541
1720
|
interface: "interface";
|
|
1542
1721
|
job_binding: "job_binding";
|
|
1722
|
+
job_operation: "job_operation";
|
|
1543
1723
|
participant: "participant";
|
|
1544
1724
|
relation: "relation";
|
|
1545
1725
|
resource: "resource";
|
|
@@ -1569,6 +1749,92 @@ export declare const agentReadinessDeclarationRevisionSchema: z.ZodObject<{
|
|
|
1569
1749
|
name: z.ZodString;
|
|
1570
1750
|
}, z.core.$strict>;
|
|
1571
1751
|
}, z.core.$strict>;
|
|
1752
|
+
job_operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1753
|
+
operation_id: z.ZodString;
|
|
1754
|
+
interface_id: z.ZodString;
|
|
1755
|
+
kind: z.ZodLiteral<"http">;
|
|
1756
|
+
endpoint_id: z.ZodString;
|
|
1757
|
+
method: z.ZodEnum<{
|
|
1758
|
+
GET: "GET";
|
|
1759
|
+
PATCH: "PATCH";
|
|
1760
|
+
POST: "POST";
|
|
1761
|
+
PUT: "PUT";
|
|
1762
|
+
}>;
|
|
1763
|
+
url: z.ZodURL;
|
|
1764
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
1765
|
+
name: z.ZodString;
|
|
1766
|
+
value: z.ZodString;
|
|
1767
|
+
}, z.core.$strict>>;
|
|
1768
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
1769
|
+
media_type: z.ZodString;
|
|
1770
|
+
}, z.core.$strict>>;
|
|
1771
|
+
spec: z.ZodNullable<z.ZodObject<{
|
|
1772
|
+
url: z.ZodURL;
|
|
1773
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
1774
|
+
create: z.ZodObject<{
|
|
1775
|
+
method: z.ZodEnum<{
|
|
1776
|
+
DELETE: "DELETE";
|
|
1777
|
+
GET: "GET";
|
|
1778
|
+
PATCH: "PATCH";
|
|
1779
|
+
POST: "POST";
|
|
1780
|
+
PUT: "PUT";
|
|
1781
|
+
}>;
|
|
1782
|
+
path: z.ZodString;
|
|
1783
|
+
}, z.core.$strict>;
|
|
1784
|
+
revoke: z.ZodObject<{
|
|
1785
|
+
method: z.ZodEnum<{
|
|
1786
|
+
DELETE: "DELETE";
|
|
1787
|
+
GET: "GET";
|
|
1788
|
+
PATCH: "PATCH";
|
|
1789
|
+
POST: "POST";
|
|
1790
|
+
PUT: "PUT";
|
|
1791
|
+
}>;
|
|
1792
|
+
path: z.ZodString;
|
|
1793
|
+
}, z.core.$strict>;
|
|
1794
|
+
}, z.core.$strict>>;
|
|
1795
|
+
}, z.core.$strict>>;
|
|
1796
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1797
|
+
operation_id: z.ZodString;
|
|
1798
|
+
interface_id: z.ZodString;
|
|
1799
|
+
kind: z.ZodLiteral<"mcp">;
|
|
1800
|
+
endpoint_id: z.ZodString;
|
|
1801
|
+
tool: z.ZodString;
|
|
1802
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1803
|
+
operation_id: z.ZodString;
|
|
1804
|
+
interface_id: z.ZodString;
|
|
1805
|
+
kind: z.ZodLiteral<"spec">;
|
|
1806
|
+
spec_url: z.ZodURL;
|
|
1807
|
+
method: z.ZodEnum<{
|
|
1808
|
+
DELETE: "DELETE";
|
|
1809
|
+
GET: "GET";
|
|
1810
|
+
PATCH: "PATCH";
|
|
1811
|
+
POST: "POST";
|
|
1812
|
+
PUT: "PUT";
|
|
1813
|
+
}>;
|
|
1814
|
+
path: z.ZodString;
|
|
1815
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
1816
|
+
create: z.ZodObject<{
|
|
1817
|
+
method: z.ZodEnum<{
|
|
1818
|
+
DELETE: "DELETE";
|
|
1819
|
+
GET: "GET";
|
|
1820
|
+
PATCH: "PATCH";
|
|
1821
|
+
POST: "POST";
|
|
1822
|
+
PUT: "PUT";
|
|
1823
|
+
}>;
|
|
1824
|
+
path: z.ZodString;
|
|
1825
|
+
}, z.core.$strict>;
|
|
1826
|
+
revoke: z.ZodObject<{
|
|
1827
|
+
method: z.ZodEnum<{
|
|
1828
|
+
DELETE: "DELETE";
|
|
1829
|
+
GET: "GET";
|
|
1830
|
+
PATCH: "PATCH";
|
|
1831
|
+
POST: "POST";
|
|
1832
|
+
PUT: "PUT";
|
|
1833
|
+
}>;
|
|
1834
|
+
path: z.ZodString;
|
|
1835
|
+
}, z.core.$strict>;
|
|
1836
|
+
}, z.core.$strict>>;
|
|
1837
|
+
}, z.core.$strict>], "kind">>;
|
|
1572
1838
|
job_bindings: z.ZodArray<z.ZodObject<{
|
|
1573
1839
|
binding_id: z.ZodString;
|
|
1574
1840
|
interface_id: z.ZodString;
|
|
@@ -2108,6 +2374,8 @@ export declare const agentReadinessDeclarationRevisionSchema: z.ZodObject<{
|
|
|
2108
2374
|
websocket: "websocket";
|
|
2109
2375
|
}>;
|
|
2110
2376
|
roles: z.ZodArray<z.ZodEnum<{
|
|
2377
|
+
access_request: "access_request";
|
|
2378
|
+
access_setting: "access_setting";
|
|
2111
2379
|
authorization: "authorization";
|
|
2112
2380
|
checkout: "checkout";
|
|
2113
2381
|
protected_resource: "protected_resource";
|
|
@@ -2225,6 +2493,7 @@ export declare const agentReadinessDeclarationRevisionSchema: z.ZodObject<{
|
|
|
2225
2493
|
endpoint: "endpoint";
|
|
2226
2494
|
interface: "interface";
|
|
2227
2495
|
job_binding: "job_binding";
|
|
2496
|
+
job_operation: "job_operation";
|
|
2228
2497
|
participant: "participant";
|
|
2229
2498
|
relation: "relation";
|
|
2230
2499
|
resource: "resource";
|
|
@@ -2274,6 +2543,92 @@ export declare const agentReadinessAuthoringSchema: z.ZodObject<{
|
|
|
2274
2543
|
name: z.ZodString;
|
|
2275
2544
|
}, z.core.$strict>;
|
|
2276
2545
|
}, z.core.$strict>;
|
|
2546
|
+
job_operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2547
|
+
operation_id: z.ZodString;
|
|
2548
|
+
interface_id: z.ZodString;
|
|
2549
|
+
kind: z.ZodLiteral<"http">;
|
|
2550
|
+
endpoint_id: z.ZodString;
|
|
2551
|
+
method: z.ZodEnum<{
|
|
2552
|
+
GET: "GET";
|
|
2553
|
+
PATCH: "PATCH";
|
|
2554
|
+
POST: "POST";
|
|
2555
|
+
PUT: "PUT";
|
|
2556
|
+
}>;
|
|
2557
|
+
url: z.ZodURL;
|
|
2558
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
2559
|
+
name: z.ZodString;
|
|
2560
|
+
value: z.ZodString;
|
|
2561
|
+
}, z.core.$strict>>;
|
|
2562
|
+
body: z.ZodNullable<z.ZodObject<{
|
|
2563
|
+
media_type: z.ZodString;
|
|
2564
|
+
}, z.core.$strict>>;
|
|
2565
|
+
spec: z.ZodNullable<z.ZodObject<{
|
|
2566
|
+
url: z.ZodURL;
|
|
2567
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
2568
|
+
create: z.ZodObject<{
|
|
2569
|
+
method: z.ZodEnum<{
|
|
2570
|
+
DELETE: "DELETE";
|
|
2571
|
+
GET: "GET";
|
|
2572
|
+
PATCH: "PATCH";
|
|
2573
|
+
POST: "POST";
|
|
2574
|
+
PUT: "PUT";
|
|
2575
|
+
}>;
|
|
2576
|
+
path: z.ZodString;
|
|
2577
|
+
}, z.core.$strict>;
|
|
2578
|
+
revoke: z.ZodObject<{
|
|
2579
|
+
method: z.ZodEnum<{
|
|
2580
|
+
DELETE: "DELETE";
|
|
2581
|
+
GET: "GET";
|
|
2582
|
+
PATCH: "PATCH";
|
|
2583
|
+
POST: "POST";
|
|
2584
|
+
PUT: "PUT";
|
|
2585
|
+
}>;
|
|
2586
|
+
path: z.ZodString;
|
|
2587
|
+
}, z.core.$strict>;
|
|
2588
|
+
}, z.core.$strict>>;
|
|
2589
|
+
}, z.core.$strict>>;
|
|
2590
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2591
|
+
operation_id: z.ZodString;
|
|
2592
|
+
interface_id: z.ZodString;
|
|
2593
|
+
kind: z.ZodLiteral<"mcp">;
|
|
2594
|
+
endpoint_id: z.ZodString;
|
|
2595
|
+
tool: z.ZodString;
|
|
2596
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2597
|
+
operation_id: z.ZodString;
|
|
2598
|
+
interface_id: z.ZodString;
|
|
2599
|
+
kind: z.ZodLiteral<"spec">;
|
|
2600
|
+
spec_url: z.ZodURL;
|
|
2601
|
+
method: z.ZodEnum<{
|
|
2602
|
+
DELETE: "DELETE";
|
|
2603
|
+
GET: "GET";
|
|
2604
|
+
PATCH: "PATCH";
|
|
2605
|
+
POST: "POST";
|
|
2606
|
+
PUT: "PUT";
|
|
2607
|
+
}>;
|
|
2608
|
+
path: z.ZodString;
|
|
2609
|
+
key_operations: z.ZodNullable<z.ZodObject<{
|
|
2610
|
+
create: z.ZodObject<{
|
|
2611
|
+
method: z.ZodEnum<{
|
|
2612
|
+
DELETE: "DELETE";
|
|
2613
|
+
GET: "GET";
|
|
2614
|
+
PATCH: "PATCH";
|
|
2615
|
+
POST: "POST";
|
|
2616
|
+
PUT: "PUT";
|
|
2617
|
+
}>;
|
|
2618
|
+
path: z.ZodString;
|
|
2619
|
+
}, z.core.$strict>;
|
|
2620
|
+
revoke: z.ZodObject<{
|
|
2621
|
+
method: z.ZodEnum<{
|
|
2622
|
+
DELETE: "DELETE";
|
|
2623
|
+
GET: "GET";
|
|
2624
|
+
PATCH: "PATCH";
|
|
2625
|
+
POST: "POST";
|
|
2626
|
+
PUT: "PUT";
|
|
2627
|
+
}>;
|
|
2628
|
+
path: z.ZodString;
|
|
2629
|
+
}, z.core.$strict>;
|
|
2630
|
+
}, z.core.$strict>>;
|
|
2631
|
+
}, z.core.$strict>], "kind">>;
|
|
2277
2632
|
job_bindings: z.ZodArray<z.ZodObject<{
|
|
2278
2633
|
binding_id: z.ZodString;
|
|
2279
2634
|
interface_id: z.ZodString;
|
|
@@ -2813,6 +3168,8 @@ export declare const agentReadinessAuthoringSchema: z.ZodObject<{
|
|
|
2813
3168
|
websocket: "websocket";
|
|
2814
3169
|
}>;
|
|
2815
3170
|
roles: z.ZodArray<z.ZodEnum<{
|
|
3171
|
+
access_request: "access_request";
|
|
3172
|
+
access_setting: "access_setting";
|
|
2816
3173
|
authorization: "authorization";
|
|
2817
3174
|
checkout: "checkout";
|
|
2818
3175
|
protected_resource: "protected_resource";
|
|
@@ -2914,6 +3271,7 @@ export declare const agentReadinessAuthoringSchema: z.ZodObject<{
|
|
|
2914
3271
|
endpoint: "endpoint";
|
|
2915
3272
|
interface: "interface";
|
|
2916
3273
|
job_binding: "job_binding";
|
|
3274
|
+
job_operation: "job_operation";
|
|
2917
3275
|
offer_relation: "offer_relation";
|
|
2918
3276
|
participant: "participant";
|
|
2919
3277
|
relation: "relation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../contracts/agent-readiness/src/declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../contracts/agent-readiness/src/declaration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,yCAAyC,EACzC,wCAAwC,GACzC,MAAM,4BAA4B,CAAC;AAgBpC,eAAO,MAAM,mCAAmC;;;;;;;EAO9C,CAAC;AAOH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;kBASxC,CAAC;AAEL,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAcrC,CAAC;AA6BL,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAerC,CAAC;AAmBL,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiC9C,CAAC;AAUL,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOrC,CAAC;AAEZ,eAAO,MAAM,wCAAwC;;;;EAInD,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;;;;;;kBAM3C,CAAC;AA2EZ,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;kBAMtC,CAAC;AA8BZ,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -2,7 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
import { authoringSourceSchema, entityIdentityAuthoringSchema } from "../../authoring/src/index.js";
|
|
3
3
|
import { catalogAuthoringUrlSchema } from "../../revisions/src/index.js";
|
|
4
4
|
import { standardImplementationBindingSchema } from "../../standards/src/index.js";
|
|
5
|
-
import {
|
|
5
|
+
import { agentReadinessJobBindingSchema, validateDeclaredJobBindings } from "./binding.js";
|
|
6
|
+
import { agentReadinessJobOperationFieldPaths, agentReadinessJobOperationSchema, validateDeclaredJobOperations, } from "./operation.js";
|
|
7
|
+
import { validateProbedSurfaces } from "./surfaces.js";
|
|
6
8
|
export { AGENT_READINESS_REPOSITORY, AGENT_READINESS_REPOSITORY_URL, agentReadinessDeclarationProvenanceSchema, agentReadinessDeclarationReferenceSchema, } from "./declaration-reference.js";
|
|
7
9
|
import { agentReadinessDigestSchema, agentReadinessEntityIdSchema, agentReadinessHostnameSchema, agentReadinessIdentifierSchema, agentReadinessInstantSchema, agentReadinessOfferIdSchema, agentReadinessResourceRoleSchema, agentReadinessScopeKeySchema, agentReadinessScopeSchema, agentReadinessSurfaceReferenceSchema, } from "./shared.js";
|
|
8
10
|
export const agentReadinessParticipantRoleSchema = z.enum([
|
|
@@ -43,11 +45,24 @@ export const agentReadinessResourceSchema = z
|
|
|
43
45
|
assertCanonicalOptionalHosts(value.allowed_redirect_hosts, context);
|
|
44
46
|
});
|
|
45
47
|
const agentReadinessEndpointTransportSchema = z.enum(["http", "websocket", "grpc"]);
|
|
48
|
+
/**
|
|
49
|
+
* What an endpoint is for. `registration` is where a person or agent signs up
|
|
50
|
+
* (a sign-up API when it answers as an API); `access_request` is a vendor page
|
|
51
|
+
* where a person asks the vendor for access (sales or approval): with no
|
|
52
|
+
* `registration` endpoint beside it, access is the vendor's decision once its
|
|
53
|
+
* request is answered (north star §5.6, Onboard `gated`); `access_setting` is
|
|
54
|
+
* where a person on the account turns the interface that lists it on for
|
|
55
|
+
* agents once, such as an organization setting that allows an MCP server's
|
|
56
|
+
* write tools (Onboard `approval`); `checkout` is where a person puts a card on
|
|
57
|
+
* file (Pay).
|
|
58
|
+
*/
|
|
46
59
|
const agentReadinessEndpointRoleSchema = z.enum([
|
|
47
60
|
"service",
|
|
48
61
|
"authorization",
|
|
49
62
|
"token",
|
|
50
63
|
"registration",
|
|
64
|
+
"access_request",
|
|
65
|
+
"access_setting",
|
|
51
66
|
"protected_resource",
|
|
52
67
|
"checkout",
|
|
53
68
|
"status",
|
|
@@ -146,6 +161,7 @@ const agentReadinessDeclarationSourceTargetSchema = z
|
|
|
146
161
|
"interface",
|
|
147
162
|
"relation",
|
|
148
163
|
"offer_relation",
|
|
164
|
+
"job_operation",
|
|
149
165
|
"job_binding",
|
|
150
166
|
"surface_exclusion",
|
|
151
167
|
]),
|
|
@@ -176,6 +192,7 @@ const agentReadinessDeclarationGraphSourceTargetSchema = z
|
|
|
176
192
|
"endpoint",
|
|
177
193
|
"interface",
|
|
178
194
|
"relation",
|
|
195
|
+
"job_operation",
|
|
179
196
|
"job_binding",
|
|
180
197
|
"surface_exclusion",
|
|
181
198
|
]),
|
|
@@ -203,9 +220,14 @@ const agentReadinessDeclarationCoreSchema = z
|
|
|
203
220
|
declaration_id: agentReadinessIdentifierSchema,
|
|
204
221
|
scope: agentReadinessScopeSchema,
|
|
205
222
|
/**
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
|
|
223
|
+
* The job's request on each API or MCP server that performs it (north star
|
|
224
|
+
* §5.3): what the probe suite reads, and what every listing's letter rests on.
|
|
225
|
+
*/
|
|
226
|
+
job_operations: z.array(agentReadinessJobOperationSchema).max(4),
|
|
227
|
+
/**
|
|
228
|
+
* How a declared interface performs the job end to end, for a verified run.
|
|
229
|
+
* Optional: a listing is probed and graded without one, and a binding adds
|
|
230
|
+
* only the proof that the job itself succeeds.
|
|
209
231
|
*/
|
|
210
232
|
job_bindings: z.array(agentReadinessJobBindingSchema).max(8),
|
|
211
233
|
participants: z.array(agentReadinessParticipantSchema).min(1),
|
|
@@ -220,31 +242,9 @@ const agentReadinessDeclarationCoreSchema = z
|
|
|
220
242
|
declared_at: agentReadinessInstantSchema,
|
|
221
243
|
})
|
|
222
244
|
.strict();
|
|
223
|
-
function validateSurfaceExclusions(value, context) {
|
|
224
|
-
const ruledOut = value.surface_exclusions;
|
|
225
|
-
assertUnique(ruledOut.map(({ exclusion_id }) => exclusion_id), context, ["surface_exclusions"], "Surface exclusion IDs must be unique.");
|
|
226
|
-
const roles = ruledOut.map(({ role }) => role);
|
|
227
|
-
if (new Set(roles).size !== roles.length) {
|
|
228
|
-
context.addIssue({
|
|
229
|
-
code: "custom",
|
|
230
|
-
path: ["surface_exclusions"],
|
|
231
|
-
message: "A surface role may be excluded only once.",
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
const declared = new Set(value.resources.flatMap((resource) => resource.roles));
|
|
235
|
-
for (const [index, surface] of ruledOut.entries()) {
|
|
236
|
-
if (declared.has(surface.role)) {
|
|
237
|
-
context.addIssue({
|
|
238
|
-
code: "custom",
|
|
239
|
-
path: ["surface_exclusions", index, "role"],
|
|
240
|
-
message: `Role '${surface.role}' is declared by a resource and cannot also be excluded.`,
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
245
|
const agentReadinessDeclarationSchema = agentReadinessDeclarationCoreSchema
|
|
246
246
|
.superRefine(validateDeclarationGraph)
|
|
247
|
-
.superRefine(
|
|
247
|
+
.superRefine(validateProbedSurfaces);
|
|
248
248
|
const agentReadinessDeclarationGraphCoreSchema = agentReadinessDeclarationCoreSchema
|
|
249
249
|
.omit({ offer_relations: true, source_bindings: true })
|
|
250
250
|
.safeExtend({
|
|
@@ -253,7 +253,7 @@ const agentReadinessDeclarationGraphCoreSchema = agentReadinessDeclarationCoreSc
|
|
|
253
253
|
.strict();
|
|
254
254
|
const agentReadinessDeclarationGraphSchema = agentReadinessDeclarationGraphCoreSchema.superRefine((value, context) => {
|
|
255
255
|
validateDeclarationGraph({ ...value, offer_relations: [] }, context);
|
|
256
|
-
|
|
256
|
+
validateProbedSurfaces(value, context);
|
|
257
257
|
});
|
|
258
258
|
export const agentReadinessDeclarationRevisionContract = "sourcey.agent-readiness-declaration-revision/v1alpha1";
|
|
259
259
|
const agentReadinessDeclarationRevisionFieldsSchema = z
|
|
@@ -351,6 +351,7 @@ export const agentReadinessAuthoringSchema = z
|
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
function validateDeclarationGraph(value, context) {
|
|
354
|
+
assertUnique(value.job_operations.map((operation) => operation.operation_id), context, ["job_operations"], "Job operation IDs must be unique.");
|
|
354
355
|
assertUnique(value.job_bindings.map((binding) => binding.binding_id), context, ["job_bindings"], "Job binding IDs must be unique.");
|
|
355
356
|
assertUnique(value.participants.map((participant) => participant.participant_id), context, ["participants"], "Participant IDs must be unique.");
|
|
356
357
|
assertUnique(value.resources.map((resource) => resource.resource_id), context, ["resources"], "Resource IDs must be unique.");
|
|
@@ -368,7 +369,8 @@ function validateDeclarationGraph(value, context) {
|
|
|
368
369
|
assertSurfaceOperators(value.interfaces, "interfaces", participants, context);
|
|
369
370
|
const resourceIds = new Set(value.resources.map((resource) => resource.resource_id));
|
|
370
371
|
const endpointIds = new Set(value.endpoints.map((endpoint) => endpoint.endpoint_id));
|
|
371
|
-
|
|
372
|
+
validateDeclaredJobOperations(value, context);
|
|
373
|
+
validateDeclaredJobBindings(value, context);
|
|
372
374
|
for (const [index, declaredInterface] of value.interfaces.entries()) {
|
|
373
375
|
for (const endpointId of declaredInterface.endpoint_ids) {
|
|
374
376
|
if (!endpointIds.has(endpointId)) {
|
|
@@ -439,56 +441,6 @@ function validateDeclarationGraph(value, context) {
|
|
|
439
441
|
assertAcyclic(value.relations, "precedes", context);
|
|
440
442
|
validateSourceBindings(value, context);
|
|
441
443
|
}
|
|
442
|
-
/**
|
|
443
|
-
* Each binding performs the job through its own interface: that interface is
|
|
444
|
-
* declared, every call it makes uses one of the interface's HTTP endpoints and
|
|
445
|
-
* keeps that endpoint's origin, and every credential reaches only declared
|
|
446
|
-
* endpoints. Whether it performs the right job is checked against the job
|
|
447
|
-
* library, which a declaration does not carry.
|
|
448
|
-
*/
|
|
449
|
-
function validateJobBindings(value, context) {
|
|
450
|
-
const endpoints = new Map(value.endpoints.map((endpoint) => [endpoint.endpoint_id, endpoint]));
|
|
451
|
-
const interfaces = new Map(value.interfaces.map((declared) => [declared.interface_id, declared.endpoint_ids]));
|
|
452
|
-
for (const [index, binding] of value.job_bindings.entries()) {
|
|
453
|
-
const issue = (message) => context.addIssue({ code: "custom", path: ["job_bindings", index], message });
|
|
454
|
-
const reachable = interfaces.get(binding.interface_id);
|
|
455
|
-
if (!reachable)
|
|
456
|
-
issue(`Job binding references unknown interface '${binding.interface_id}'.`);
|
|
457
|
-
for (const { call } of agentReadinessBindingCalls(binding)) {
|
|
458
|
-
const endpoint = endpoints.get(call.endpoint_id);
|
|
459
|
-
if (!endpoint) {
|
|
460
|
-
issue(`Call '${call.call_id}' uses unknown endpoint '${call.endpoint_id}'.`);
|
|
461
|
-
continue;
|
|
462
|
-
}
|
|
463
|
-
if (reachable && !reachable.includes(call.endpoint_id)) {
|
|
464
|
-
issue(`Call '${call.call_id}' uses '${call.endpoint_id}', outside its interface.`);
|
|
465
|
-
}
|
|
466
|
-
if (endpoint.transport !== "http") {
|
|
467
|
-
issue(`Call '${call.call_id}' needs an HTTP endpoint.`);
|
|
468
|
-
}
|
|
469
|
-
if (call.kind === "http" &&
|
|
470
|
-
call.url.match(/^https:\/\/[^/?#]+/u)?.[0] !== new URL(endpoint.uri).origin) {
|
|
471
|
-
issue(`Call '${call.call_id}' leaves the origin of '${call.endpoint_id}'.`);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
const { delegation, sustain } = binding;
|
|
475
|
-
const credentialEndpoints = [
|
|
476
|
-
...(delegation.kind === "entered" ? delegation.credentials : []),
|
|
477
|
-
...(delegation.kind === "oauth" ? delegation.keep : []),
|
|
478
|
-
...(delegation.kind === "minted" ? [delegation.from, ...delegation.keep] : []),
|
|
479
|
-
...(sustain.rotation.kind === "refresh" || sustain.rotation.kind === "mint"
|
|
480
|
-
? sustain.rotation.keep
|
|
481
|
-
: []),
|
|
482
|
-
].flatMap(({ endpoint_ids }) => endpoint_ids);
|
|
483
|
-
if (delegation.kind === "oauth") {
|
|
484
|
-
credentialEndpoints.push(delegation.authorization_endpoint_id, delegation.token_endpoint_id);
|
|
485
|
-
}
|
|
486
|
-
for (const id of new Set(credentialEndpoints)) {
|
|
487
|
-
if (!endpoints.has(id))
|
|
488
|
-
issue(`Credentials reach unknown endpoint '${id}'.`);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
444
|
function validateSourceBindings(value, context) {
|
|
493
445
|
const targets = new Map();
|
|
494
446
|
const required = new Set();
|
|
@@ -498,6 +450,9 @@ function validateSourceBindings(value, context) {
|
|
|
498
450
|
required.add(`${kind}:${id}:${path}`);
|
|
499
451
|
};
|
|
500
452
|
addTarget("declaration", value.declaration_id, ["/scope/product/name", "/scope/job/name"]);
|
|
453
|
+
for (const operation of value.job_operations) {
|
|
454
|
+
addTarget("job_operation", operation.operation_id, agentReadinessJobOperationFieldPaths(operation));
|
|
455
|
+
}
|
|
501
456
|
for (const binding of value.job_bindings) {
|
|
502
457
|
addTarget("job_binding", binding.binding_id, ["/interface_id", "/calls"]);
|
|
503
458
|
}
|