@skillsregistry/contracts 1.0.1 → 2.0.0
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/responses.d.ts +53 -53
- package/dist/schemas.test.js +280 -1
- package/dist/schemas.test.js.map +1 -1
- package/dist/upstream.d.ts +472 -16
- package/dist/upstream.d.ts.map +1 -1
- package/dist/upstream.js +201 -0
- package/dist/upstream.js.map +1 -1
- package/package.json +9 -9
- package/LICENSE +0 -201
package/dist/responses.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ export declare const HealthResponseSchema: z.ZodObject<{
|
|
|
28
28
|
aiIdentity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
timestamp: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
version: string;
|
|
31
32
|
ok: boolean;
|
|
32
33
|
service: string;
|
|
33
|
-
version: string;
|
|
34
34
|
environment: string;
|
|
35
35
|
dbStatus: string;
|
|
36
36
|
dbLatencyMs: number;
|
|
@@ -42,9 +42,9 @@ export declare const HealthResponseSchema: z.ZodObject<{
|
|
|
42
42
|
timestamp: string;
|
|
43
43
|
aiIdentity?: string | null | undefined;
|
|
44
44
|
}, {
|
|
45
|
+
version: string;
|
|
45
46
|
ok: boolean;
|
|
46
47
|
service: string;
|
|
47
|
-
version: string;
|
|
48
48
|
environment: string;
|
|
49
49
|
dbStatus: string;
|
|
50
50
|
dbLatencyMs: number;
|
|
@@ -81,6 +81,7 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
81
81
|
id: string;
|
|
82
82
|
slug: string;
|
|
83
83
|
score: number;
|
|
84
|
+
source?: string | undefined;
|
|
84
85
|
matchSource?: string | undefined;
|
|
85
86
|
trustScore?: number | undefined;
|
|
86
87
|
verificationTier?: string | undefined;
|
|
@@ -89,7 +90,6 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
89
90
|
executionLayer?: string | undefined;
|
|
90
91
|
runtimeEnv?: string | undefined;
|
|
91
92
|
visibility?: string | undefined;
|
|
92
|
-
source?: string | undefined;
|
|
93
93
|
publisherKeyId?: string | null | undefined;
|
|
94
94
|
signatureVerifiedAt?: string | null | undefined;
|
|
95
95
|
signatureFailureReason?: string | null | undefined;
|
|
@@ -99,6 +99,7 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
99
99
|
id: string;
|
|
100
100
|
slug: string;
|
|
101
101
|
score: number;
|
|
102
|
+
source?: string | undefined;
|
|
102
103
|
matchSource?: string | undefined;
|
|
103
104
|
trustScore?: number | undefined;
|
|
104
105
|
verificationTier?: string | undefined;
|
|
@@ -107,7 +108,6 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
107
108
|
executionLayer?: string | undefined;
|
|
108
109
|
runtimeEnv?: string | undefined;
|
|
109
110
|
visibility?: string | undefined;
|
|
110
|
-
source?: string | undefined;
|
|
111
111
|
publisherKeyId?: string | null | undefined;
|
|
112
112
|
signatureVerifiedAt?: string | null | undefined;
|
|
113
113
|
signatureFailureReason?: string | null | undefined;
|
|
@@ -120,12 +120,12 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
120
120
|
score: z.ZodNumber;
|
|
121
121
|
weight: z.ZodNumber;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
score: number;
|
|
124
123
|
source: string;
|
|
124
|
+
score: number;
|
|
125
125
|
weight: number;
|
|
126
126
|
}, {
|
|
127
|
-
score: number;
|
|
128
127
|
source: string;
|
|
128
|
+
score: number;
|
|
129
129
|
weight: number;
|
|
130
130
|
}>, "many">;
|
|
131
131
|
latencyMs: z.ZodNumber;
|
|
@@ -137,8 +137,8 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
137
137
|
tier: number;
|
|
138
138
|
confidence: number;
|
|
139
139
|
signals: {
|
|
140
|
-
score: number;
|
|
141
140
|
source: string;
|
|
141
|
+
score: number;
|
|
142
142
|
weight: number;
|
|
143
143
|
}[];
|
|
144
144
|
latencyMs: number;
|
|
@@ -149,8 +149,8 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
149
149
|
tier: number;
|
|
150
150
|
confidence: number;
|
|
151
151
|
signals: {
|
|
152
|
-
score: number;
|
|
153
152
|
source: string;
|
|
153
|
+
score: number;
|
|
154
154
|
weight: number;
|
|
155
155
|
}[];
|
|
156
156
|
latencyMs: number;
|
|
@@ -164,6 +164,7 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
164
164
|
id: string;
|
|
165
165
|
slug: string;
|
|
166
166
|
score: number;
|
|
167
|
+
source?: string | undefined;
|
|
167
168
|
matchSource?: string | undefined;
|
|
168
169
|
trustScore?: number | undefined;
|
|
169
170
|
verificationTier?: string | undefined;
|
|
@@ -172,7 +173,6 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
172
173
|
executionLayer?: string | undefined;
|
|
173
174
|
runtimeEnv?: string | undefined;
|
|
174
175
|
visibility?: string | undefined;
|
|
175
|
-
source?: string | undefined;
|
|
176
176
|
publisherKeyId?: string | null | undefined;
|
|
177
177
|
signatureVerifiedAt?: string | null | undefined;
|
|
178
178
|
signatureFailureReason?: string | null | undefined;
|
|
@@ -182,8 +182,8 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
182
182
|
tier: number;
|
|
183
183
|
confidence: number;
|
|
184
184
|
signals: {
|
|
185
|
-
score: number;
|
|
186
185
|
source: string;
|
|
186
|
+
score: number;
|
|
187
187
|
weight: number;
|
|
188
188
|
}[];
|
|
189
189
|
latencyMs: number;
|
|
@@ -197,6 +197,7 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
197
197
|
id: string;
|
|
198
198
|
slug: string;
|
|
199
199
|
score: number;
|
|
200
|
+
source?: string | undefined;
|
|
200
201
|
matchSource?: string | undefined;
|
|
201
202
|
trustScore?: number | undefined;
|
|
202
203
|
verificationTier?: string | undefined;
|
|
@@ -205,7 +206,6 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
205
206
|
executionLayer?: string | undefined;
|
|
206
207
|
runtimeEnv?: string | undefined;
|
|
207
208
|
visibility?: string | undefined;
|
|
208
|
-
source?: string | undefined;
|
|
209
209
|
publisherKeyId?: string | null | undefined;
|
|
210
210
|
signatureVerifiedAt?: string | null | undefined;
|
|
211
211
|
signatureFailureReason?: string | null | undefined;
|
|
@@ -215,8 +215,8 @@ export declare const SearchResponseSchema: z.ZodObject<{
|
|
|
215
215
|
tier: number;
|
|
216
216
|
confidence: number;
|
|
217
217
|
signals: {
|
|
218
|
-
score: number;
|
|
219
218
|
source: string;
|
|
219
|
+
score: number;
|
|
220
220
|
weight: number;
|
|
221
221
|
}[];
|
|
222
222
|
latencyMs: number;
|
|
@@ -298,11 +298,12 @@ export declare const SkillDetailSchema: z.ZodObject<{
|
|
|
298
298
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
299
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
300
|
description: string;
|
|
301
|
-
status: string;
|
|
302
|
-
version: string;
|
|
303
301
|
name: string;
|
|
304
302
|
id: string;
|
|
303
|
+
status: string;
|
|
305
304
|
slug: string;
|
|
305
|
+
version: string;
|
|
306
|
+
source: string;
|
|
306
307
|
trustScore: number;
|
|
307
308
|
verificationTier: string;
|
|
308
309
|
tags: string[];
|
|
@@ -310,7 +311,6 @@ export declare const SkillDetailSchema: z.ZodObject<{
|
|
|
310
311
|
executionLayer: string;
|
|
311
312
|
runtimeEnv: string;
|
|
312
313
|
visibility: string;
|
|
313
|
-
source: string;
|
|
314
314
|
publisherKeyId: string | null;
|
|
315
315
|
signatureVerifiedAt: string | null;
|
|
316
316
|
signatureFailureReason: string | null;
|
|
@@ -370,11 +370,12 @@ export declare const SkillDetailSchema: z.ZodObject<{
|
|
|
370
370
|
specGaps?: unknown;
|
|
371
371
|
}, {
|
|
372
372
|
description: string;
|
|
373
|
-
status: string;
|
|
374
|
-
version: string;
|
|
375
373
|
name: string;
|
|
376
374
|
id: string;
|
|
375
|
+
status: string;
|
|
377
376
|
slug: string;
|
|
377
|
+
version: string;
|
|
378
|
+
source: string;
|
|
378
379
|
trustScore: number;
|
|
379
380
|
verificationTier: string;
|
|
380
381
|
tags: string[];
|
|
@@ -382,7 +383,6 @@ export declare const SkillDetailSchema: z.ZodObject<{
|
|
|
382
383
|
executionLayer: string;
|
|
383
384
|
runtimeEnv: string;
|
|
384
385
|
visibility: string;
|
|
385
|
-
source: string;
|
|
386
386
|
publisherKeyId: string | null;
|
|
387
387
|
signatureVerifiedAt: string | null;
|
|
388
388
|
signatureFailureReason: string | null;
|
|
@@ -467,16 +467,16 @@ export declare const SkillPullResponseSchema: z.ZodObject<{
|
|
|
467
467
|
signatureFailureReason: z.ZodNullable<z.ZodString>;
|
|
468
468
|
}, "strip", z.ZodTypeAny, {
|
|
469
469
|
description: string | null;
|
|
470
|
-
status: string;
|
|
471
|
-
version: string;
|
|
472
470
|
name: string;
|
|
471
|
+
status: string;
|
|
473
472
|
slug: string;
|
|
473
|
+
version: string;
|
|
474
|
+
source: string;
|
|
474
475
|
trustScore: number;
|
|
475
476
|
verificationTier: string;
|
|
476
477
|
tags: string[];
|
|
477
478
|
executionLayer: string;
|
|
478
479
|
runtimeEnv: string;
|
|
479
|
-
source: string;
|
|
480
480
|
publisherKeyId: string | null;
|
|
481
481
|
signatureVerifiedAt: string | null;
|
|
482
482
|
signatureFailureReason: string | null;
|
|
@@ -491,16 +491,16 @@ export declare const SkillPullResponseSchema: z.ZodObject<{
|
|
|
491
491
|
authRequirements?: unknown;
|
|
492
492
|
}, {
|
|
493
493
|
description: string | null;
|
|
494
|
-
status: string;
|
|
495
|
-
version: string;
|
|
496
494
|
name: string;
|
|
495
|
+
status: string;
|
|
497
496
|
slug: string;
|
|
497
|
+
version: string;
|
|
498
|
+
source: string;
|
|
498
499
|
trustScore: number;
|
|
499
500
|
verificationTier: string;
|
|
500
501
|
tags: string[];
|
|
501
502
|
executionLayer: string;
|
|
502
503
|
runtimeEnv: string;
|
|
503
|
-
source: string;
|
|
504
504
|
publisherKeyId: string | null;
|
|
505
505
|
signatureVerifiedAt: string | null;
|
|
506
506
|
signatureFailureReason: string | null;
|
|
@@ -540,16 +540,16 @@ export declare const SkillVersionsResponseSchema: z.ZodObject<{
|
|
|
540
540
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
541
541
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
|
-
status: string;
|
|
544
|
-
version: string;
|
|
545
543
|
name: string;
|
|
546
544
|
id: string;
|
|
545
|
+
status: string;
|
|
546
|
+
version: string;
|
|
547
|
+
source: string;
|
|
547
548
|
trustScore: number;
|
|
548
549
|
verificationTier: string;
|
|
549
550
|
executionLayer: string;
|
|
550
551
|
runtimeEnv: string;
|
|
551
552
|
visibility: string;
|
|
552
|
-
source: string;
|
|
553
553
|
publisherKeyId: string | null;
|
|
554
554
|
signatureVerifiedAt: string | null;
|
|
555
555
|
signatureFailureReason: string | null;
|
|
@@ -562,16 +562,16 @@ export declare const SkillVersionsResponseSchema: z.ZodObject<{
|
|
|
562
562
|
updatedAt: string | null;
|
|
563
563
|
publishedAt: string | null;
|
|
564
564
|
}, {
|
|
565
|
-
status: string;
|
|
566
|
-
version: string;
|
|
567
565
|
name: string;
|
|
568
566
|
id: string;
|
|
567
|
+
status: string;
|
|
568
|
+
version: string;
|
|
569
|
+
source: string;
|
|
569
570
|
trustScore: number;
|
|
570
571
|
verificationTier: string;
|
|
571
572
|
executionLayer: string;
|
|
572
573
|
runtimeEnv: string;
|
|
573
574
|
visibility: string;
|
|
574
|
-
source: string;
|
|
575
575
|
publisherKeyId: string | null;
|
|
576
576
|
signatureVerifiedAt: string | null;
|
|
577
577
|
signatureFailureReason: string | null;
|
|
@@ -588,16 +588,16 @@ export declare const SkillVersionsResponseSchema: z.ZodObject<{
|
|
|
588
588
|
slug: string;
|
|
589
589
|
totalVersions: number;
|
|
590
590
|
versions: {
|
|
591
|
-
status: string;
|
|
592
|
-
version: string;
|
|
593
591
|
name: string;
|
|
594
592
|
id: string;
|
|
593
|
+
status: string;
|
|
594
|
+
version: string;
|
|
595
|
+
source: string;
|
|
595
596
|
trustScore: number;
|
|
596
597
|
verificationTier: string;
|
|
597
598
|
executionLayer: string;
|
|
598
599
|
runtimeEnv: string;
|
|
599
600
|
visibility: string;
|
|
600
|
-
source: string;
|
|
601
601
|
publisherKeyId: string | null;
|
|
602
602
|
signatureVerifiedAt: string | null;
|
|
603
603
|
signatureFailureReason: string | null;
|
|
@@ -614,16 +614,16 @@ export declare const SkillVersionsResponseSchema: z.ZodObject<{
|
|
|
614
614
|
slug: string;
|
|
615
615
|
totalVersions: number;
|
|
616
616
|
versions: {
|
|
617
|
-
status: string;
|
|
618
|
-
version: string;
|
|
619
617
|
name: string;
|
|
620
618
|
id: string;
|
|
619
|
+
status: string;
|
|
620
|
+
version: string;
|
|
621
|
+
source: string;
|
|
621
622
|
trustScore: number;
|
|
622
623
|
verificationTier: string;
|
|
623
624
|
executionLayer: string;
|
|
624
625
|
runtimeEnv: string;
|
|
625
626
|
visibility: string;
|
|
626
|
-
source: string;
|
|
627
627
|
publisherKeyId: string | null;
|
|
628
628
|
signatureVerifiedAt: string | null;
|
|
629
629
|
signatureFailureReason: string | null;
|
|
@@ -1040,25 +1040,25 @@ export declare const PublishResultSchema: z.ZodObject<{
|
|
|
1040
1040
|
version: z.ZodString;
|
|
1041
1041
|
status: z.ZodString;
|
|
1042
1042
|
}, "strip", z.ZodTypeAny, {
|
|
1043
|
-
status: string;
|
|
1044
|
-
version: string;
|
|
1045
1043
|
id: string;
|
|
1046
|
-
slug: string;
|
|
1047
|
-
}, {
|
|
1048
1044
|
status: string;
|
|
1045
|
+
slug: string;
|
|
1049
1046
|
version: string;
|
|
1047
|
+
}, {
|
|
1050
1048
|
id: string;
|
|
1049
|
+
status: string;
|
|
1051
1050
|
slug: string;
|
|
1051
|
+
version: string;
|
|
1052
1052
|
}>;
|
|
1053
1053
|
export declare const DeleteResultSchema: z.ZodObject<{
|
|
1054
1054
|
id: z.ZodString;
|
|
1055
1055
|
status: z.ZodLiteral<"deleted">;
|
|
1056
1056
|
}, "strip", z.ZodTypeAny, {
|
|
1057
|
-
status: "deleted";
|
|
1058
1057
|
id: string;
|
|
1059
|
-
}, {
|
|
1060
1058
|
status: "deleted";
|
|
1059
|
+
}, {
|
|
1061
1060
|
id: string;
|
|
1061
|
+
status: "deleted";
|
|
1062
1062
|
}>;
|
|
1063
1063
|
export declare const AuthorProfileSchema: z.ZodObject<{
|
|
1064
1064
|
id: z.ZodString;
|
|
@@ -1127,13 +1127,13 @@ export declare const AuthorSkillsResponseSchema: z.ZodObject<{
|
|
|
1127
1127
|
limit: z.ZodNumber;
|
|
1128
1128
|
offset: z.ZodNumber;
|
|
1129
1129
|
}, "strip", z.ZodTypeAny, {
|
|
1130
|
-
skills: unknown[];
|
|
1131
1130
|
limit: number;
|
|
1132
1131
|
offset: number;
|
|
1133
|
-
}, {
|
|
1134
1132
|
skills: unknown[];
|
|
1133
|
+
}, {
|
|
1135
1134
|
limit: number;
|
|
1136
1135
|
offset: number;
|
|
1136
|
+
skills: unknown[];
|
|
1137
1137
|
}>;
|
|
1138
1138
|
declare const AdminSkillsListItemSchema: z.ZodObject<{
|
|
1139
1139
|
id: z.ZodString;
|
|
@@ -1146,20 +1146,20 @@ declare const AdminSkillsListItemSchema: z.ZodObject<{
|
|
|
1146
1146
|
mothershipPublishedAt: z.ZodNullable<z.ZodString>;
|
|
1147
1147
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1148
1148
|
}, "strip", z.ZodTypeAny, {
|
|
1149
|
-
version: string;
|
|
1150
1149
|
name: string;
|
|
1151
1150
|
id: string;
|
|
1152
1151
|
slug: string;
|
|
1152
|
+
version: string;
|
|
1153
1153
|
source: string;
|
|
1154
1154
|
createdAt: string | null;
|
|
1155
1155
|
mothershipPublishStatus: string | null;
|
|
1156
1156
|
mothershipUrl: string | null;
|
|
1157
1157
|
mothershipPublishedAt: string | null;
|
|
1158
1158
|
}, {
|
|
1159
|
-
version: string;
|
|
1160
1159
|
name: string;
|
|
1161
1160
|
id: string;
|
|
1162
1161
|
slug: string;
|
|
1162
|
+
version: string;
|
|
1163
1163
|
source: string;
|
|
1164
1164
|
createdAt: string | null;
|
|
1165
1165
|
mothershipPublishStatus: string | null;
|
|
@@ -1178,20 +1178,20 @@ export declare const AdminSkillsListResponseSchema: z.ZodObject<{
|
|
|
1178
1178
|
mothershipPublishedAt: z.ZodNullable<z.ZodString>;
|
|
1179
1179
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1180
1180
|
}, "strip", z.ZodTypeAny, {
|
|
1181
|
-
version: string;
|
|
1182
1181
|
name: string;
|
|
1183
1182
|
id: string;
|
|
1184
1183
|
slug: string;
|
|
1184
|
+
version: string;
|
|
1185
1185
|
source: string;
|
|
1186
1186
|
createdAt: string | null;
|
|
1187
1187
|
mothershipPublishStatus: string | null;
|
|
1188
1188
|
mothershipUrl: string | null;
|
|
1189
1189
|
mothershipPublishedAt: string | null;
|
|
1190
1190
|
}, {
|
|
1191
|
-
version: string;
|
|
1192
1191
|
name: string;
|
|
1193
1192
|
id: string;
|
|
1194
1193
|
slug: string;
|
|
1194
|
+
version: string;
|
|
1195
1195
|
source: string;
|
|
1196
1196
|
createdAt: string | null;
|
|
1197
1197
|
mothershipPublishStatus: string | null;
|
|
@@ -1202,11 +1202,13 @@ export declare const AdminSkillsListResponseSchema: z.ZodObject<{
|
|
|
1202
1202
|
limit: z.ZodNumber;
|
|
1203
1203
|
offset: z.ZodNumber;
|
|
1204
1204
|
}, "strip", z.ZodTypeAny, {
|
|
1205
|
+
limit: number;
|
|
1206
|
+
offset: number;
|
|
1205
1207
|
skills: {
|
|
1206
|
-
version: string;
|
|
1207
1208
|
name: string;
|
|
1208
1209
|
id: string;
|
|
1209
1210
|
slug: string;
|
|
1211
|
+
version: string;
|
|
1210
1212
|
source: string;
|
|
1211
1213
|
createdAt: string | null;
|
|
1212
1214
|
mothershipPublishStatus: string | null;
|
|
@@ -1214,14 +1216,14 @@ export declare const AdminSkillsListResponseSchema: z.ZodObject<{
|
|
|
1214
1216
|
mothershipPublishedAt: string | null;
|
|
1215
1217
|
}[];
|
|
1216
1218
|
total: number;
|
|
1219
|
+
}, {
|
|
1217
1220
|
limit: number;
|
|
1218
1221
|
offset: number;
|
|
1219
|
-
}, {
|
|
1220
1222
|
skills: {
|
|
1221
|
-
version: string;
|
|
1222
1223
|
name: string;
|
|
1223
1224
|
id: string;
|
|
1224
1225
|
slug: string;
|
|
1226
|
+
version: string;
|
|
1225
1227
|
source: string;
|
|
1226
1228
|
createdAt: string | null;
|
|
1227
1229
|
mothershipPublishStatus: string | null;
|
|
@@ -1229,8 +1231,6 @@ export declare const AdminSkillsListResponseSchema: z.ZodObject<{
|
|
|
1229
1231
|
mothershipPublishedAt: string | null;
|
|
1230
1232
|
}[];
|
|
1231
1233
|
total: number;
|
|
1232
|
-
limit: number;
|
|
1233
|
-
offset: number;
|
|
1234
1234
|
}>;
|
|
1235
1235
|
export type AdminSkillsListItem = z.infer<typeof AdminSkillsListItemSchema>;
|
|
1236
1236
|
export type AdminSkillsListResponse = z.infer<typeof AdminSkillsListResponseSchema>;
|