@renai-labs/sdk 0.1.20 → 0.1.21
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/error.js +11 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +46 -68
- package/dist/generated/@tanstack/react-query.gen.js +29 -35
- package/dist/generated/internal/types.gen.d.ts +9 -20
- package/dist/generated/sdk.gen.d.ts +16 -12
- package/dist/generated/sdk.gen.js +19 -29
- package/dist/generated/types.gen.d.ts +268 -117
- package/dist/generated/zod.gen.d.ts +159 -97
- package/dist/generated/zod.gen.js +133 -55
- package/package.json +1 -1
|
@@ -1161,6 +1161,13 @@ export declare const zTopology: z.ZodObject<{
|
|
|
1161
1161
|
address: z.ZodEmail;
|
|
1162
1162
|
}, z.core.$strip>>>;
|
|
1163
1163
|
}, z.core.$strip>;
|
|
1164
|
+
export declare const zSkillVersionFiles: z.ZodObject<{
|
|
1165
|
+
type: z.ZodLiteral<"files">;
|
|
1166
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1167
|
+
path: z.ZodString;
|
|
1168
|
+
contentBase64: z.ZodString;
|
|
1169
|
+
}, z.core.$strip>>;
|
|
1170
|
+
}, z.core.$strip>;
|
|
1164
1171
|
export declare const zSkillVersion: z.ZodObject<{
|
|
1165
1172
|
id: z.ZodString;
|
|
1166
1173
|
skillId: z.ZodString;
|
|
@@ -1170,7 +1177,7 @@ export declare const zSkillVersion: z.ZodObject<{
|
|
|
1170
1177
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1171
1178
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
1172
1179
|
type: z.ZodLiteral<"s3">;
|
|
1173
|
-
|
|
1180
|
+
key: z.ZodString;
|
|
1174
1181
|
}, z.core.$strip>, z.ZodObject<{
|
|
1175
1182
|
type: z.ZodLiteral<"git">;
|
|
1176
1183
|
url: z.ZodURL;
|
|
@@ -1182,7 +1189,44 @@ export declare const zSkillVersion: z.ZodObject<{
|
|
|
1182
1189
|
description: z.ZodOptional<z.ZodString>;
|
|
1183
1190
|
}, z.core.$strip>>;
|
|
1184
1191
|
releaseNotes: z.ZodNullable<z.ZodString>;
|
|
1185
|
-
|
|
1192
|
+
}, z.core.$strip>;
|
|
1193
|
+
export declare const zSkillArchiveResult: z.ZodObject<{
|
|
1194
|
+
id: z.ZodString;
|
|
1195
|
+
slug: z.ZodString;
|
|
1196
|
+
name: z.ZodString;
|
|
1197
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1198
|
+
icon: z.ZodNullable<z.ZodString>;
|
|
1199
|
+
docUrl: z.ZodNullable<z.ZodString>;
|
|
1200
|
+
repository: z.ZodNullable<z.ZodObject<{
|
|
1201
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1202
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1203
|
+
}, z.core.$strip>>;
|
|
1204
|
+
orgId: z.ZodString;
|
|
1205
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
1206
|
+
publisherId: z.ZodNullable<z.ZodString>;
|
|
1207
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
1208
|
+
websiteMetadata: z.ZodNullable<z.ZodObject<{
|
|
1209
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
1213
|
+
favicon: z.ZodOptional<z.ZodURL>;
|
|
1214
|
+
supportUrl: z.ZodOptional<z.ZodURL>;
|
|
1215
|
+
privacyPolicyUrl: z.ZodOptional<z.ZodURL>;
|
|
1216
|
+
}, z.core.$strip>>;
|
|
1217
|
+
sortOrder: z.ZodNullable<z.ZodInt>;
|
|
1218
|
+
popularityScore: z.ZodNullable<z.ZodInt>;
|
|
1219
|
+
trendingScore: z.ZodNullable<z.ZodInt>;
|
|
1220
|
+
rank: z.ZodNullable<z.ZodInt>;
|
|
1221
|
+
latestVersionId: z.ZodNullable<z.ZodString>;
|
|
1222
|
+
createdAt: z.ZodISODateTime;
|
|
1223
|
+
updatedAt: z.ZodISODateTime;
|
|
1224
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1225
|
+
deprecatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1226
|
+
deprecationMessage: z.ZodNullable<z.ZodString>;
|
|
1227
|
+
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1228
|
+
agentCount: z.ZodInt;
|
|
1229
|
+
projectCount: z.ZodInt;
|
|
1186
1230
|
}, z.core.$strip>;
|
|
1187
1231
|
export declare const zSkill: z.ZodObject<{
|
|
1188
1232
|
id: z.ZodString;
|
|
@@ -1541,6 +1585,32 @@ export declare const zProjectMcp: z.ZodObject<{
|
|
|
1541
1585
|
createdAt: z.ZodISODateTime;
|
|
1542
1586
|
updatedAt: z.ZodISODateTime;
|
|
1543
1587
|
}, z.core.$strip>;
|
|
1588
|
+
export declare const zSkillPinConflict: z.ZodObject<{
|
|
1589
|
+
skillSlug: z.ZodString;
|
|
1590
|
+
pinnedVersion: z.ZodString;
|
|
1591
|
+
effectiveVersion: z.ZodString;
|
|
1592
|
+
reason: z.ZodEnum<{
|
|
1593
|
+
outranked: "outranked";
|
|
1594
|
+
"pin-archived": "pin-archived";
|
|
1595
|
+
}>;
|
|
1596
|
+
}, z.core.$strip>;
|
|
1597
|
+
export declare const zProjectSkillResolution: z.ZodObject<{
|
|
1598
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
1599
|
+
skillId: z.ZodString;
|
|
1600
|
+
skillSlug: z.ZodString;
|
|
1601
|
+
effectiveVersionId: z.ZodString;
|
|
1602
|
+
effectiveVersion: z.ZodString;
|
|
1603
|
+
}, z.core.$strip>>;
|
|
1604
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
1605
|
+
skillSlug: z.ZodString;
|
|
1606
|
+
pinnedVersion: z.ZodString;
|
|
1607
|
+
effectiveVersion: z.ZodString;
|
|
1608
|
+
reason: z.ZodEnum<{
|
|
1609
|
+
outranked: "outranked";
|
|
1610
|
+
"pin-archived": "pin-archived";
|
|
1611
|
+
}>;
|
|
1612
|
+
}, z.core.$strip>>;
|
|
1613
|
+
}, z.core.$strip>;
|
|
1544
1614
|
export declare const zProjectSkill: z.ZodObject<{
|
|
1545
1615
|
id: z.ZodString;
|
|
1546
1616
|
projectId: z.ZodString;
|
|
@@ -13852,6 +13922,29 @@ export declare const zProjectSkillAddResponse: z.ZodObject<{
|
|
|
13852
13922
|
createdAt: z.ZodISODateTime;
|
|
13853
13923
|
updatedAt: z.ZodISODateTime;
|
|
13854
13924
|
}, z.core.$strip>;
|
|
13925
|
+
export declare const zProjectSkillResolutionPath: z.ZodObject<{
|
|
13926
|
+
id: z.ZodString;
|
|
13927
|
+
}, z.core.$strip>;
|
|
13928
|
+
/**
|
|
13929
|
+
* Effective versions and pin-conflict warnings
|
|
13930
|
+
*/
|
|
13931
|
+
export declare const zProjectSkillResolutionResponse: z.ZodObject<{
|
|
13932
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
13933
|
+
skillId: z.ZodString;
|
|
13934
|
+
skillSlug: z.ZodString;
|
|
13935
|
+
effectiveVersionId: z.ZodString;
|
|
13936
|
+
effectiveVersion: z.ZodString;
|
|
13937
|
+
}, z.core.$strip>>;
|
|
13938
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
13939
|
+
skillSlug: z.ZodString;
|
|
13940
|
+
pinnedVersion: z.ZodString;
|
|
13941
|
+
effectiveVersion: z.ZodString;
|
|
13942
|
+
reason: z.ZodEnum<{
|
|
13943
|
+
outranked: "outranked";
|
|
13944
|
+
"pin-archived": "pin-archived";
|
|
13945
|
+
}>;
|
|
13946
|
+
}, z.core.$strip>>;
|
|
13947
|
+
}, z.core.$strip>;
|
|
13855
13948
|
export declare const zProjectSkillRemovePath: z.ZodObject<{
|
|
13856
13949
|
id: z.ZodString;
|
|
13857
13950
|
skillId: z.ZodString;
|
|
@@ -14946,6 +15039,10 @@ export declare const zSkillListQuery: z.ZodObject<{
|
|
|
14946
15039
|
org: "org";
|
|
14947
15040
|
private: "private";
|
|
14948
15041
|
}>>;
|
|
15042
|
+
query: z.ZodOptional<z.ZodString>;
|
|
15043
|
+
published: z.ZodOptional<z.ZodBoolean>;
|
|
15044
|
+
publisherId: z.ZodOptional<z.ZodString>;
|
|
15045
|
+
tagged: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
14949
15046
|
}, z.core.$strip>;
|
|
14950
15047
|
/**
|
|
14951
15048
|
* List of skills
|
|
@@ -14988,38 +15085,15 @@ export declare const zSkillListResponse: z.ZodArray<z.ZodObject<{
|
|
|
14988
15085
|
}, z.core.$strip>>;
|
|
14989
15086
|
export declare const zSkillCreateBody: z.ZodObject<{
|
|
14990
15087
|
slug: z.ZodOptional<z.ZodString>;
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
icon: z.ZodOptional<z.ZodString
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
releaseNotes: z.ZodOptional<z.ZodString>;
|
|
14997
|
-
source: z.ZodOptional<z.ZodString>;
|
|
14998
|
-
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
14999
|
-
org: "org";
|
|
15000
|
-
private: "private";
|
|
15001
|
-
}>>>;
|
|
15002
|
-
files: z.ZodArray<z.ZodString>;
|
|
15003
|
-
}, z.core.$strip>;
|
|
15004
|
-
/**
|
|
15005
|
-
* Created skill
|
|
15006
|
-
*/
|
|
15007
|
-
export declare const zSkillCreateResponse: z.ZodObject<{
|
|
15008
|
-
id: z.ZodString;
|
|
15009
|
-
slug: z.ZodString;
|
|
15010
|
-
name: z.ZodString;
|
|
15011
|
-
description: z.ZodNullable<z.ZodString>;
|
|
15012
|
-
icon: z.ZodNullable<z.ZodString>;
|
|
15013
|
-
docUrl: z.ZodNullable<z.ZodString>;
|
|
15014
|
-
repository: z.ZodNullable<z.ZodObject<{
|
|
15088
|
+
nameOverride: z.ZodOptional<z.ZodString>;
|
|
15089
|
+
descriptionOverride: z.ZodOptional<z.ZodString>;
|
|
15090
|
+
icon: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15091
|
+
docUrl: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodURL>>>;
|
|
15092
|
+
repository: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15015
15093
|
url: z.ZodOptional<z.ZodURL>;
|
|
15016
15094
|
source: z.ZodOptional<z.ZodString>;
|
|
15017
|
-
}, z.core.$strip
|
|
15018
|
-
|
|
15019
|
-
userId: z.ZodNullable<z.ZodString>;
|
|
15020
|
-
publisherId: z.ZodNullable<z.ZodString>;
|
|
15021
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
15022
|
-
websiteMetadata: z.ZodNullable<z.ZodObject<{
|
|
15095
|
+
}, z.core.$strip>>>>;
|
|
15096
|
+
websiteMetadata: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15023
15097
|
title: z.ZodOptional<z.ZodString>;
|
|
15024
15098
|
description: z.ZodOptional<z.ZodString>;
|
|
15025
15099
|
longDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -15027,51 +15101,33 @@ export declare const zSkillCreateResponse: z.ZodObject<{
|
|
|
15027
15101
|
favicon: z.ZodOptional<z.ZodURL>;
|
|
15028
15102
|
supportUrl: z.ZodOptional<z.ZodURL>;
|
|
15029
15103
|
privacyPolicyUrl: z.ZodOptional<z.ZodURL>;
|
|
15104
|
+
}, z.core.$strip>>>>;
|
|
15105
|
+
version: z.ZodOptional<z.ZodString>;
|
|
15106
|
+
releaseNotes: z.ZodOptional<z.ZodString>;
|
|
15107
|
+
requiredCredentials: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15108
|
+
name: z.ZodString;
|
|
15109
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15110
|
+
}, z.core.$strip>>>>;
|
|
15111
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15112
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15113
|
+
path: z.ZodString;
|
|
15114
|
+
contentBase64: z.ZodString;
|
|
15115
|
+
}, z.core.$strip>>>;
|
|
15116
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
15117
|
+
type: z.ZodLiteral<"git">;
|
|
15118
|
+
url: z.ZodURL;
|
|
15119
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
15120
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15030
15121
|
}, z.core.$strip>>;
|
|
15031
|
-
|
|
15032
|
-
popularityScore: z.ZodNullable<z.ZodInt>;
|
|
15033
|
-
trendingScore: z.ZodNullable<z.ZodInt>;
|
|
15034
|
-
rank: z.ZodNullable<z.ZodInt>;
|
|
15035
|
-
latestVersionId: z.ZodNullable<z.ZodString>;
|
|
15036
|
-
createdAt: z.ZodISODateTime;
|
|
15037
|
-
updatedAt: z.ZodISODateTime;
|
|
15038
|
-
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15039
|
-
deprecatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15040
|
-
deprecationMessage: z.ZodNullable<z.ZodString>;
|
|
15041
|
-
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
15042
|
-
}, z.core.$strip>;
|
|
15043
|
-
export declare const zSkillSearchBody: z.ZodObject<{
|
|
15044
|
-
query: z.ZodOptional<z.ZodString>;
|
|
15045
|
-
sources: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15046
|
-
org: "org";
|
|
15047
|
-
user: "user";
|
|
15048
|
-
registry: "registry";
|
|
15049
|
-
}>>>>;
|
|
15050
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
|
|
15051
|
-
}, z.core.$strip>;
|
|
15052
|
-
/**
|
|
15053
|
-
* Matching skills
|
|
15054
|
-
*/
|
|
15055
|
-
export declare const zSkillSearchResponse: z.ZodArray<z.ZodObject<{
|
|
15056
|
-
id: z.ZodString;
|
|
15057
|
-
slug: z.ZodString;
|
|
15058
|
-
name: z.ZodString;
|
|
15059
|
-
description: z.ZodNullable<z.ZodString>;
|
|
15060
|
-
icon: z.ZodNullable<z.ZodString>;
|
|
15061
|
-
source: z.ZodEnum<{
|
|
15122
|
+
visibility: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
15062
15123
|
org: "org";
|
|
15063
|
-
|
|
15064
|
-
|
|
15065
|
-
}>;
|
|
15066
|
-
updatedAt: z.ZodISODateTime;
|
|
15067
|
-
}, z.core.$strip>>;
|
|
15068
|
-
export declare const zSkillGetBySlugPath: z.ZodObject<{
|
|
15069
|
-
slug: z.ZodString;
|
|
15124
|
+
private: "private";
|
|
15125
|
+
}>>>;
|
|
15070
15126
|
}, z.core.$strip>;
|
|
15071
15127
|
/**
|
|
15072
|
-
*
|
|
15128
|
+
* Created skill
|
|
15073
15129
|
*/
|
|
15074
|
-
export declare const
|
|
15130
|
+
export declare const zSkillCreateResponse: z.ZodObject<{
|
|
15075
15131
|
id: z.ZodString;
|
|
15076
15132
|
slug: z.ZodString;
|
|
15077
15133
|
name: z.ZodString;
|
|
@@ -15108,7 +15164,7 @@ export declare const zSkillGetBySlugResponse: z.ZodObject<{
|
|
|
15108
15164
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
15109
15165
|
}, z.core.$strip>;
|
|
15110
15166
|
export declare const zSkillGetPath: z.ZodObject<{
|
|
15111
|
-
|
|
15167
|
+
idOrSlug: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
15112
15168
|
}, z.core.$strip>;
|
|
15113
15169
|
/**
|
|
15114
15170
|
* Skill details
|
|
@@ -15151,7 +15207,7 @@ export declare const zSkillGetResponse: z.ZodObject<{
|
|
|
15151
15207
|
}, z.core.$strip>;
|
|
15152
15208
|
export declare const zSkillUpdateBody: z.ZodObject<{
|
|
15153
15209
|
name: z.ZodOptional<z.ZodString>;
|
|
15154
|
-
description: z.ZodOptional<z.
|
|
15210
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15155
15211
|
icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15156
15212
|
docUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15157
15213
|
repository: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -15215,7 +15271,7 @@ export declare const zSkillArchivePath: z.ZodObject<{
|
|
|
15215
15271
|
id: z.ZodString;
|
|
15216
15272
|
}, z.core.$strip>;
|
|
15217
15273
|
/**
|
|
15218
|
-
* Archived skill
|
|
15274
|
+
* Archived skill with the blast radius of agents and projects that referenced it
|
|
15219
15275
|
*/
|
|
15220
15276
|
export declare const zSkillArchiveResponse: z.ZodObject<{
|
|
15221
15277
|
id: z.ZodString;
|
|
@@ -15252,6 +15308,8 @@ export declare const zSkillArchiveResponse: z.ZodObject<{
|
|
|
15252
15308
|
deprecatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15253
15309
|
deprecationMessage: z.ZodNullable<z.ZodString>;
|
|
15254
15310
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
15311
|
+
agentCount: z.ZodInt;
|
|
15312
|
+
projectCount: z.ZodInt;
|
|
15255
15313
|
}, z.core.$strip>;
|
|
15256
15314
|
export declare const zSkillPublishPath: z.ZodObject<{
|
|
15257
15315
|
id: z.ZodString;
|
|
@@ -15494,7 +15552,7 @@ export declare const zSkillVersionListResponse: z.ZodArray<z.ZodObject<{
|
|
|
15494
15552
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15495
15553
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
15496
15554
|
type: z.ZodLiteral<"s3">;
|
|
15497
|
-
|
|
15555
|
+
key: z.ZodString;
|
|
15498
15556
|
}, z.core.$strip>, z.ZodObject<{
|
|
15499
15557
|
type: z.ZodLiteral<"git">;
|
|
15500
15558
|
url: z.ZodURL;
|
|
@@ -15506,14 +15564,28 @@ export declare const zSkillVersionListResponse: z.ZodArray<z.ZodObject<{
|
|
|
15506
15564
|
description: z.ZodOptional<z.ZodString>;
|
|
15507
15565
|
}, z.core.$strip>>;
|
|
15508
15566
|
releaseNotes: z.ZodNullable<z.ZodString>;
|
|
15509
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
15510
15567
|
}, z.core.$strip>>;
|
|
15511
15568
|
export declare const zSkillVersionCreateBody: z.ZodObject<{
|
|
15512
|
-
version: z.ZodOptional<z.ZodString
|
|
15569
|
+
version: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
|
|
15570
|
+
patch: "patch";
|
|
15571
|
+
major: "major";
|
|
15572
|
+
minor: "minor";
|
|
15573
|
+
}>]>>>;
|
|
15513
15574
|
releaseNotes: z.ZodOptional<z.ZodString>;
|
|
15514
|
-
requiredCredentials: z.ZodOptional<z.
|
|
15515
|
-
|
|
15516
|
-
|
|
15575
|
+
requiredCredentials: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15576
|
+
name: z.ZodString;
|
|
15577
|
+
description: z.ZodOptional<z.ZodString>;
|
|
15578
|
+
}, z.core.$strip>>>>;
|
|
15579
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15580
|
+
path: z.ZodString;
|
|
15581
|
+
contentBase64: z.ZodString;
|
|
15582
|
+
}, z.core.$strip>>>;
|
|
15583
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
15584
|
+
type: z.ZodLiteral<"git">;
|
|
15585
|
+
url: z.ZodURL;
|
|
15586
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
15587
|
+
path: z.ZodOptional<z.ZodString>;
|
|
15588
|
+
}, z.core.$strip>>;
|
|
15517
15589
|
}, z.core.$strip>;
|
|
15518
15590
|
export declare const zSkillVersionCreatePath: z.ZodObject<{
|
|
15519
15591
|
id: z.ZodString;
|
|
@@ -15530,7 +15602,7 @@ export declare const zSkillVersionCreateResponse: z.ZodObject<{
|
|
|
15530
15602
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15531
15603
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
15532
15604
|
type: z.ZodLiteral<"s3">;
|
|
15533
|
-
|
|
15605
|
+
key: z.ZodString;
|
|
15534
15606
|
}, z.core.$strip>, z.ZodObject<{
|
|
15535
15607
|
type: z.ZodLiteral<"git">;
|
|
15536
15608
|
url: z.ZodURL;
|
|
@@ -15542,7 +15614,6 @@ export declare const zSkillVersionCreateResponse: z.ZodObject<{
|
|
|
15542
15614
|
description: z.ZodOptional<z.ZodString>;
|
|
15543
15615
|
}, z.core.$strip>>;
|
|
15544
15616
|
releaseNotes: z.ZodNullable<z.ZodString>;
|
|
15545
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
15546
15617
|
}, z.core.$strip>;
|
|
15547
15618
|
export declare const zSkillVersionGetPath: z.ZodObject<{
|
|
15548
15619
|
id: z.ZodString;
|
|
@@ -15560,7 +15631,7 @@ export declare const zSkillVersionGetResponse: z.ZodObject<{
|
|
|
15560
15631
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15561
15632
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
15562
15633
|
type: z.ZodLiteral<"s3">;
|
|
15563
|
-
|
|
15634
|
+
key: z.ZodString;
|
|
15564
15635
|
}, z.core.$strip>, z.ZodObject<{
|
|
15565
15636
|
type: z.ZodLiteral<"git">;
|
|
15566
15637
|
url: z.ZodURL;
|
|
@@ -15572,28 +15643,20 @@ export declare const zSkillVersionGetResponse: z.ZodObject<{
|
|
|
15572
15643
|
description: z.ZodOptional<z.ZodString>;
|
|
15573
15644
|
}, z.core.$strip>>;
|
|
15574
15645
|
releaseNotes: z.ZodNullable<z.ZodString>;
|
|
15575
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
15576
15646
|
}, z.core.$strip>;
|
|
15577
15647
|
export declare const zSkillVersionDataPath: z.ZodObject<{
|
|
15578
15648
|
id: z.ZodString;
|
|
15579
15649
|
version: z.ZodString;
|
|
15580
15650
|
}, z.core.$strip>;
|
|
15581
|
-
export declare const zSkillVersionDataQuery: z.ZodObject<{
|
|
15582
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
15583
|
-
json: "json";
|
|
15584
|
-
presigned: "presigned";
|
|
15585
|
-
}>>;
|
|
15586
|
-
}, z.core.$strip>;
|
|
15587
15651
|
/**
|
|
15588
|
-
*
|
|
15652
|
+
* One shape per skill kind: file-backed versions return their files base64-encoded (binary-safe); git-backed versions return the git source pointer verbatim (Read fix #1).
|
|
15589
15653
|
*/
|
|
15590
15654
|
export declare const zSkillVersionDataResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
15655
|
+
type: z.ZodLiteral<"files">;
|
|
15591
15656
|
files: z.ZodArray<z.ZodObject<{
|
|
15592
15657
|
path: z.ZodString;
|
|
15593
|
-
|
|
15658
|
+
contentBase64: z.ZodString;
|
|
15594
15659
|
}, z.core.$strip>>;
|
|
15595
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
15596
|
-
url: z.ZodURL;
|
|
15597
15660
|
}, z.core.$strip>, z.ZodObject<{
|
|
15598
15661
|
type: z.ZodLiteral<"git">;
|
|
15599
15662
|
url: z.ZodURL;
|
|
@@ -15616,7 +15679,7 @@ export declare const zSkillVersionArchiveResponse: z.ZodObject<{
|
|
|
15616
15679
|
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
15617
15680
|
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
15618
15681
|
type: z.ZodLiteral<"s3">;
|
|
15619
|
-
|
|
15682
|
+
key: z.ZodString;
|
|
15620
15683
|
}, z.core.$strip>, z.ZodObject<{
|
|
15621
15684
|
type: z.ZodLiteral<"git">;
|
|
15622
15685
|
url: z.ZodURL;
|
|
@@ -15628,7 +15691,6 @@ export declare const zSkillVersionArchiveResponse: z.ZodObject<{
|
|
|
15628
15691
|
description: z.ZodOptional<z.ZodString>;
|
|
15629
15692
|
}, z.core.$strip>>;
|
|
15630
15693
|
releaseNotes: z.ZodNullable<z.ZodString>;
|
|
15631
|
-
contentHash: z.ZodNullable<z.ZodString>;
|
|
15632
15694
|
}, z.core.$strip>;
|
|
15633
15695
|
/**
|
|
15634
15696
|
* Agent-stack topology
|
|
@@ -773,6 +773,13 @@ export const zTopology = z.object({
|
|
|
773
773
|
}))
|
|
774
774
|
.optional(),
|
|
775
775
|
});
|
|
776
|
+
export const zSkillVersionFiles = z.object({
|
|
777
|
+
type: z.literal("files"),
|
|
778
|
+
files: z.array(z.object({
|
|
779
|
+
path: z.string(),
|
|
780
|
+
contentBase64: z.string(),
|
|
781
|
+
})),
|
|
782
|
+
});
|
|
776
783
|
export const zSkillVersion = z.object({
|
|
777
784
|
id: z.string(),
|
|
778
785
|
skillId: z.string(),
|
|
@@ -788,7 +795,7 @@ export const zSkillVersion = z.object({
|
|
|
788
795
|
source: z.union([
|
|
789
796
|
z.object({
|
|
790
797
|
type: z.literal("s3"),
|
|
791
|
-
|
|
798
|
+
key: z.string(),
|
|
792
799
|
}),
|
|
793
800
|
z.object({
|
|
794
801
|
type: z.literal("git"),
|
|
@@ -799,7 +806,43 @@ export const zSkillVersion = z.object({
|
|
|
799
806
|
]),
|
|
800
807
|
requiredCredentials: z.array(zRequiredCredential),
|
|
801
808
|
releaseNotes: z.string().nullable(),
|
|
802
|
-
|
|
809
|
+
});
|
|
810
|
+
export const zSkillArchiveResult = z.object({
|
|
811
|
+
id: z.string(),
|
|
812
|
+
slug: z.string(),
|
|
813
|
+
name: z.string(),
|
|
814
|
+
description: z.string().nullable(),
|
|
815
|
+
icon: z.string().nullable(),
|
|
816
|
+
docUrl: z.string().nullable(),
|
|
817
|
+
repository: zRepository.nullable(),
|
|
818
|
+
orgId: z.string(),
|
|
819
|
+
userId: z.string().nullable(),
|
|
820
|
+
publisherId: z.string().nullable(),
|
|
821
|
+
parentId: z.string().nullable(),
|
|
822
|
+
websiteMetadata: zWebsiteMetadata.nullable(),
|
|
823
|
+
sortOrder: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
824
|
+
popularityScore: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
825
|
+
trendingScore: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
826
|
+
rank: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
827
|
+
latestVersionId: z.string().nullable(),
|
|
828
|
+
createdAt: z.iso
|
|
829
|
+
.datetime()
|
|
830
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
831
|
+
updatedAt: z.iso
|
|
832
|
+
.datetime()
|
|
833
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
834
|
+
archivedAt: z.iso
|
|
835
|
+
.datetime()
|
|
836
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
837
|
+
.nullable(),
|
|
838
|
+
deprecatedAt: z.iso
|
|
839
|
+
.datetime()
|
|
840
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
841
|
+
.nullable(),
|
|
842
|
+
deprecationMessage: z.string().nullable(),
|
|
843
|
+
tags: z.array(z.string()).optional().default([]),
|
|
844
|
+
agentCount: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
845
|
+
projectCount: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
803
846
|
});
|
|
804
847
|
export const zSkill = z.object({
|
|
805
848
|
id: z.string(),
|
|
@@ -1072,6 +1115,21 @@ export const zProjectMcp = z.object({
|
|
|
1072
1115
|
.datetime()
|
|
1073
1116
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1074
1117
|
});
|
|
1118
|
+
export const zSkillPinConflict = z.object({
|
|
1119
|
+
skillSlug: z.string(),
|
|
1120
|
+
pinnedVersion: z.string(),
|
|
1121
|
+
effectiveVersion: z.string(),
|
|
1122
|
+
reason: z.enum(["outranked", "pin-archived"]),
|
|
1123
|
+
});
|
|
1124
|
+
export const zProjectSkillResolution = z.object({
|
|
1125
|
+
skills: z.array(z.object({
|
|
1126
|
+
skillId: z.string(),
|
|
1127
|
+
skillSlug: z.string(),
|
|
1128
|
+
effectiveVersionId: z.string(),
|
|
1129
|
+
effectiveVersion: z.string(),
|
|
1130
|
+
})),
|
|
1131
|
+
conflicts: z.array(zSkillPinConflict),
|
|
1132
|
+
});
|
|
1075
1133
|
export const zProjectSkill = z.object({
|
|
1076
1134
|
id: z.string(),
|
|
1077
1135
|
projectId: z.string(),
|
|
@@ -3301,6 +3359,13 @@ export const zProjectSkillAddPath = z.object({
|
|
|
3301
3359
|
* Attached skill
|
|
3302
3360
|
*/
|
|
3303
3361
|
export const zProjectSkillAddResponse = zProjectSkill;
|
|
3362
|
+
export const zProjectSkillResolutionPath = z.object({
|
|
3363
|
+
id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3364
|
+
});
|
|
3365
|
+
/**
|
|
3366
|
+
* Effective versions and pin-conflict warnings
|
|
3367
|
+
*/
|
|
3368
|
+
export const zProjectSkillResolutionResponse = zProjectSkillResolution;
|
|
3304
3369
|
export const zProjectSkillRemovePath = z.object({
|
|
3305
3370
|
id: z.string().regex(/^prj_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3306
3371
|
skillId: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
@@ -3597,6 +3662,10 @@ export const zSkillListQuery = z.object({
|
|
|
3597
3662
|
includeDeprecated: z.boolean().optional(),
|
|
3598
3663
|
sort: z.enum(["popular", "trending", "recent"]).optional(),
|
|
3599
3664
|
visibility: z.enum(["private", "org"]).optional(),
|
|
3665
|
+
query: z.string().optional(),
|
|
3666
|
+
published: z.boolean().optional(),
|
|
3667
|
+
publisherId: z.string().optional(),
|
|
3668
|
+
tagged: z.union([z.string(), z.array(z.string())]).optional(),
|
|
3600
3669
|
});
|
|
3601
3670
|
/**
|
|
3602
3671
|
* List of skills
|
|
@@ -3604,54 +3673,56 @@ export const zSkillListQuery = z.object({
|
|
|
3604
3673
|
export const zSkillListResponse = z.array(zSkill);
|
|
3605
3674
|
export const zSkillCreateBody = z.object({
|
|
3606
3675
|
slug: z.string().optional(),
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
icon: z.string().
|
|
3610
|
-
|
|
3611
|
-
|
|
3676
|
+
nameOverride: z.string().min(1).optional(),
|
|
3677
|
+
descriptionOverride: z.string().optional(),
|
|
3678
|
+
icon: z.string().nullish().default(null),
|
|
3679
|
+
docUrl: z.url().nullish().default(null),
|
|
3680
|
+
repository: zRepository.nullish().default(null),
|
|
3681
|
+
websiteMetadata: zWebsiteMetadata.nullish().default(null),
|
|
3682
|
+
version: z.string().optional(),
|
|
3612
3683
|
releaseNotes: z.string().optional(),
|
|
3613
|
-
|
|
3684
|
+
requiredCredentials: z.array(zRequiredCredential).optional().default([]),
|
|
3685
|
+
tags: z.array(z.string()).optional(),
|
|
3686
|
+
files: z
|
|
3687
|
+
.array(z.object({
|
|
3688
|
+
path: z.string().min(1),
|
|
3689
|
+
contentBase64: z
|
|
3690
|
+
.string()
|
|
3691
|
+
.regex(/^$|^(?:[0-9a-zA-Z+\/]{4})*(?:(?:[0-9a-zA-Z+\/]{2}==)|(?:[0-9a-zA-Z+\/]{3}=))?$/),
|
|
3692
|
+
}))
|
|
3693
|
+
.min(1)
|
|
3694
|
+
.optional(),
|
|
3695
|
+
source: z
|
|
3696
|
+
.object({
|
|
3697
|
+
type: z.literal("git"),
|
|
3698
|
+
url: z.url(),
|
|
3699
|
+
ref: z.string().optional(),
|
|
3700
|
+
path: z.string().optional(),
|
|
3701
|
+
})
|
|
3702
|
+
.optional(),
|
|
3614
3703
|
visibility: z.enum(["private", "org"]).optional().default("org"),
|
|
3615
|
-
files: z.array(z.string()),
|
|
3616
3704
|
});
|
|
3617
3705
|
/**
|
|
3618
3706
|
* Created skill
|
|
3619
3707
|
*/
|
|
3620
3708
|
export const zSkillCreateResponse = zSkill;
|
|
3621
|
-
export const zSkillSearchBody = z.object({
|
|
3622
|
-
query: z.string().optional(),
|
|
3623
|
-
sources: z
|
|
3624
|
-
.array(z.enum(["user", "org", "registry"]))
|
|
3625
|
-
.min(1)
|
|
3626
|
-
.optional()
|
|
3627
|
-
.default(["user", "org", "registry"]),
|
|
3628
|
-
limit: z.int().gte(1).lte(50).optional().default(20),
|
|
3629
|
-
});
|
|
3630
|
-
/**
|
|
3631
|
-
* Matching skills
|
|
3632
|
-
*/
|
|
3633
|
-
export const zSkillSearchResponse = z.array(zSearchResult);
|
|
3634
|
-
export const zSkillGetBySlugPath = z.object({
|
|
3635
|
-
slug: z
|
|
3636
|
-
.string()
|
|
3637
|
-
.min(1)
|
|
3638
|
-
.max(128)
|
|
3639
|
-
.regex(/^[a-z0-9-]+$/),
|
|
3640
|
-
});
|
|
3641
|
-
/**
|
|
3642
|
-
* Skill details
|
|
3643
|
-
*/
|
|
3644
|
-
export const zSkillGetBySlugResponse = zSkill;
|
|
3645
3709
|
export const zSkillGetPath = z.object({
|
|
3646
|
-
|
|
3710
|
+
idOrSlug: z.union([
|
|
3711
|
+
z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3712
|
+
z
|
|
3713
|
+
.string()
|
|
3714
|
+
.min(1)
|
|
3715
|
+
.max(128)
|
|
3716
|
+
.regex(/^[a-z0-9-]+$/),
|
|
3717
|
+
]),
|
|
3647
3718
|
});
|
|
3648
3719
|
/**
|
|
3649
3720
|
* Skill details
|
|
3650
3721
|
*/
|
|
3651
3722
|
export const zSkillGetResponse = zSkill;
|
|
3652
3723
|
export const zSkillUpdateBody = z.object({
|
|
3653
|
-
name: z.string().optional(),
|
|
3654
|
-
description: z.string().
|
|
3724
|
+
name: z.string().min(1).optional(),
|
|
3725
|
+
description: z.string().optional(),
|
|
3655
3726
|
icon: z.string().nullish(),
|
|
3656
3727
|
docUrl: z.string().nullish(),
|
|
3657
3728
|
repository: zRepository.nullish(),
|
|
@@ -3669,9 +3740,9 @@ export const zSkillArchivePath = z.object({
|
|
|
3669
3740
|
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3670
3741
|
});
|
|
3671
3742
|
/**
|
|
3672
|
-
* Archived skill
|
|
3743
|
+
* Archived skill with the blast radius of agents and projects that referenced it
|
|
3673
3744
|
*/
|
|
3674
|
-
export const zSkillArchiveResponse =
|
|
3745
|
+
export const zSkillArchiveResponse = zSkillArchiveResult;
|
|
3675
3746
|
export const zSkillPublishPath = z.object({
|
|
3676
3747
|
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3677
3748
|
});
|
|
@@ -3728,11 +3799,29 @@ export const zSkillVersionListQuery = z.object({
|
|
|
3728
3799
|
*/
|
|
3729
3800
|
export const zSkillVersionListResponse = z.array(zSkillVersion);
|
|
3730
3801
|
export const zSkillVersionCreateBody = z.object({
|
|
3731
|
-
version: z
|
|
3802
|
+
version: z
|
|
3803
|
+
.union([z.string(), z.enum(["major", "minor", "patch"])])
|
|
3804
|
+
.optional()
|
|
3805
|
+
.default("patch"),
|
|
3732
3806
|
releaseNotes: z.string().optional(),
|
|
3733
|
-
requiredCredentials: z.
|
|
3734
|
-
|
|
3735
|
-
|
|
3807
|
+
requiredCredentials: z.array(zRequiredCredential).optional().default([]),
|
|
3808
|
+
files: z
|
|
3809
|
+
.array(z.object({
|
|
3810
|
+
path: z.string().min(1),
|
|
3811
|
+
contentBase64: z
|
|
3812
|
+
.string()
|
|
3813
|
+
.regex(/^$|^(?:[0-9a-zA-Z+\/]{4})*(?:(?:[0-9a-zA-Z+\/]{2}==)|(?:[0-9a-zA-Z+\/]{3}=))?$/),
|
|
3814
|
+
}))
|
|
3815
|
+
.min(1)
|
|
3816
|
+
.optional(),
|
|
3817
|
+
source: z
|
|
3818
|
+
.object({
|
|
3819
|
+
type: z.literal("git"),
|
|
3820
|
+
url: z.url(),
|
|
3821
|
+
ref: z.string().optional(),
|
|
3822
|
+
path: z.string().optional(),
|
|
3823
|
+
})
|
|
3824
|
+
.optional(),
|
|
3736
3825
|
});
|
|
3737
3826
|
export const zSkillVersionCreatePath = z.object({
|
|
3738
3827
|
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
@@ -3753,22 +3842,11 @@ export const zSkillVersionDataPath = z.object({
|
|
|
3753
3842
|
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
3754
3843
|
version: z.string().min(1).max(32),
|
|
3755
3844
|
});
|
|
3756
|
-
export const zSkillVersionDataQuery = z.object({
|
|
3757
|
-
format: z.enum(["json", "presigned"]).optional(),
|
|
3758
|
-
});
|
|
3759
3845
|
/**
|
|
3760
|
-
*
|
|
3846
|
+
* One shape per skill kind: file-backed versions return their files base64-encoded (binary-safe); git-backed versions return the git source pointer verbatim (Read fix #1).
|
|
3761
3847
|
*/
|
|
3762
3848
|
export const zSkillVersionDataResponse = z.union([
|
|
3763
|
-
|
|
3764
|
-
files: z.array(z.object({
|
|
3765
|
-
path: z.string().min(1),
|
|
3766
|
-
content: z.string(),
|
|
3767
|
-
})),
|
|
3768
|
-
}),
|
|
3769
|
-
z.object({
|
|
3770
|
-
url: z.url(),
|
|
3771
|
-
}),
|
|
3849
|
+
zSkillVersionFiles,
|
|
3772
3850
|
z.object({
|
|
3773
3851
|
type: z.literal("git"),
|
|
3774
3852
|
url: z.url(),
|